/* ===================================================================
   O-CHA FOODS / PY FOOD — Design System
   Single committed light brand world (red / white / charcoal / gold accent)
   =================================================================== */

:root{
  --red:#D62328;
  --red-dark:#A81A1F;
  --red-deep:#7C1216;
  --red-tint:#FDEAE9;
  --ink:#241C19;
  --ink-soft:#6B5F58;
  --ink-faint:#9C9088;
  --paper:#FFFFFF;
  --sand:#FBF6EE;
  --sand-deep:#F3E9D7;
  --line:#EAE0D0;
  --gold:#F2AE00;
  --gold-tint:#FFF6DE;
  --green-line:#1E8E4A;

  --radius-lg:20px;
  --radius:14px;
  --radius-sm:9px;
  --shadow-sm: 0 2px 10px -4px rgba(36,28,25,.14);
  --shadow-md: 0 14px 34px -16px rgba(36,28,25,.28);
  --maxw:1220px;
  --gutter:20px;

  --font-display:'Prompt', 'Noto Sans Thai', system-ui, sans-serif;
  --font-body:'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;

  color-scheme: light;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; text-wrap:balance; color:var(--ink); }
p{ margin:0; }
.container{ max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
:focus-visible{ outline:2.5px solid var(--red); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ *{ animation-duration:.001ms !important; transition-duration:.001ms !important; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-display); font-weight:600; font-size:12.5px;
  letter-spacing:.14em; text-transform:uppercase; color:var(--red);
}
.eyebrow::before{ content:""; width:20px; height:2px; background:var(--gold); border-radius:2px; }
.eyebrow.on-red{ color:var(--gold); }
.eyebrow.on-red::before{ background:#fff; }

.section{ padding-block:64px; }
.section.tight{ padding-block:44px; }
.section.sand{ background:var(--sand); }
.section-head{ max-width:640px; margin-bottom:36px; }
.section-head h2{ font-size:clamp(26px,3.4vw,38px); font-weight:700; margin-top:10px; }
.section-head p{ color:var(--ink-soft); margin-top:12px; font-size:15.5px; }
.section-head-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-display); font-weight:600; font-size:14.5px;
  padding:13px 24px; border-radius:999px; border:1.5px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:scale(.97); }
.btn-red{ background:var(--red); color:#fff; box-shadow:var(--shadow-sm); }
.btn-red:hover{ background:var(--red-dark); }
.btn-line{ background:#06C755; color:#fff; }
.btn-line:hover{ background:#05a648; }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--red); color:var(--red); }
.btn-outline-white{ background:transparent; color:#fff; border-color:rgba(255,255,255,.55); }
.btn-outline-white:hover{ background:rgba(255,255,255,.14); }
.btn-white{ background:#fff; color:var(--red); }
.btn-white:hover{ background:var(--gold-tint); }
.btn-sm{ padding:9px 16px; font-size:13.5px; }
.btn svg{ width:16px; height:16px; flex:none; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.92); backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding-block:16px; transition:padding .2s ease;
}
.site-header.shrink .header-row{ padding-block:9px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; }
.brand img{ height:42px; width:42px; border-radius:50%; object-fit:cover; box-shadow:0 0 0 2px var(--gold); transition:height .2s ease; }
.site-header.shrink .brand img{ height:34px; width:34px; }
.brand .word{ line-height:1.15; }
.brand .word b{ display:block; color:var(--red); font-size:17px; }
.brand .word span{ display:block; font-size:11px; color:var(--ink-soft); font-weight:500; letter-spacing:.03em; }

.main-nav{ display:flex; align-items:center; gap:28px; }
.main-nav a{ font-size:14.5px; font-weight:500; color:var(--ink); padding-block:6px; border-bottom:2px solid transparent; }
.main-nav a:hover, .main-nav a.active{ color:var(--red); border-color:var(--red); }

.header-actions{ display:flex; align-items:center; gap:10px; }
.lang-switch{ display:flex; align-items:center; border:1px solid var(--line); border-radius:999px; overflow:hidden; font-family:var(--font-display); font-size:12.5px; font-weight:600; }
.lang-switch button{ background:none; border:0; padding:7px 12px; color:var(--ink-soft); }
.lang-switch button.active{ background:var(--red); color:#fff; }
.hamburger{ display:none; background:none; border:1px solid var(--line); border-radius:10px; width:42px; height:42px; align-items:center; justify-content:center; }
.hamburger span, .hamburger span::before, .hamburger span::after{ content:""; display:block; width:18px; height:2px; background:var(--ink); position:relative; transition:transform .2s; }
.hamburger span::before{ position:absolute; top:-6px; }
.hamburger span::after{ position:absolute; top:6px; }

.mobile-nav{ display:none; position:fixed; inset:0; z-index:80; background:rgba(36,28,25,.5); }
.mobile-nav.open{ display:block; }
.mobile-nav .panel{ position:absolute; top:0; right:0; bottom:0; width:min(320px,84vw); background:#fff; padding:22px 22px calc(22px + env(safe-area-inset-bottom,0px)); overflow-y:auto; }
.mobile-nav .panel a{ display:block; padding:13px 4px; font-family:var(--font-display); font-weight:600; font-size:16px; border-bottom:1px solid var(--line); }
.mobile-nav .close{ background:none; border:0; font-size:22px; line-height:1; padding:8px; margin-left:auto; display:block; }
.mobile-nav .actions{ margin-top:18px; display:flex; flex-direction:column; gap:10px; }

@media (max-width:920px){
  .main-nav{ display:none; }
  .header-actions .lang-switch{ display:none; }
  .hamburger{ display:inline-flex; }
}

/* ---------- Hero ---------- */
.hero{ background:var(--red); position:relative; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:40px; padding-block:52px; }
.hero-copy h1{ color:#fff; font-size:clamp(32px,4.6vw,54px); font-weight:700; line-height:1.12; margin-top:14px; }
.hero-copy .lead{ color:#FCE0DE; font-size:16.5px; margin-top:16px; max-width:46ch; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.hero-stats{ display:flex; gap:26px; margin-top:36px; flex-wrap:wrap; }
.hero-stats div b{ display:block; color:#fff; font-family:var(--font-display); font-size:20px; }
.hero-stats div span{ color:#FCC9C6; font-size:12.5px; }
.hero-photo{ position:relative; border-radius:var(--radius-lg); overflow:hidden; box-shadow:0 30px 60px -24px rgba(0,0,0,.45); aspect-ratio:4/4.6; }
.hero-photo img{ width:100%; height:100%; object-fit:cover; }
.hero-photo.fit-contain{ background:var(--sand); }
.hero-photo.fit-contain img{ object-fit:contain; }
.hero-photo .tag{ position:absolute; left:16px; bottom:16px; background:#fff; border-radius:var(--radius-sm); padding:10px 14px; box-shadow:var(--shadow-md); font-family:var(--font-display); font-weight:600; font-size:13px; display:flex; align-items:center; gap:8px; }
.hero-photo .tag .dot{ width:8px; height:8px; border-radius:50%; background:var(--green-line); }
@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; padding-block:36px; }
  .hero-photo{ aspect-ratio:16/11; order:-1; }
}

/* ---------- Category rail ---------- */
.cat-rail{ display:grid; grid-template-columns:repeat(7,1fr); gap:16px; }
.cat-card{ display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; padding:16px 8px; border-radius:var(--radius); transition:background .15s ease, transform .15s ease; }
.cat-card:hover{ background:var(--sand); transform:translateY(-3px); }
.cat-ring{ width:84px; height:84px; border-radius:50%; padding:4px; background:linear-gradient(135deg,var(--gold),var(--red)); }
.cat-ring span{ display:block; width:100%; height:100%; border-radius:50%; overflow:hidden; background:#fff; border:3px solid #fff; }
.cat-ring img{ width:100%; height:100%; object-fit:cover; }
.cat-card b{ font-family:var(--font-display); font-size:13.5px; font-weight:600; }
.cat-card small{ color:var(--ink-soft); font-size:11.5px; }
@media (max-width:920px){ .cat-rail{ grid-template-columns:repeat(4,1fr); } }
@media (max-width:520px){ .cat-rail{ grid-template-columns:repeat(3,1fr); gap:10px; } .cat-ring{ width:66px; height:66px; } }

/* ---------- Product cards ---------- */
.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.product-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .2s ease, transform .2s ease; }
.product-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }
.product-media{ aspect-ratio:1/1; background:var(--sand); overflow:hidden; position:relative; }
.product-media img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.product-card:hover .product-media img{ transform:scale(1.06); }
.product-badge{ position:absolute; top:10px; left:10px; background:var(--gold); color:var(--ink); font-family:var(--font-display); font-weight:700; font-size:10.5px; letter-spacing:.04em; padding:4px 9px; border-radius:999px; }
.product-body{ padding:16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-cat{ font-size:11.5px; color:var(--red); font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.product-body h3{ font-size:16.5px; font-weight:600; }
.product-body p{ font-size:13px; color:var(--ink-soft); flex:1; }
.product-actions{ display:flex; gap:8px; margin-top:6px; }
.product-actions .btn{ flex:1; padding-inline:0; }
@media (max-width:980px){ .product-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .product-grid{ grid-template-columns:1fr 1fr; gap:12px; } .product-body{ padding:11px; } .product-actions{ flex-direction:column; } }

/* ---------- About split ---------- */
.about-split{ display:grid; grid-template-columns:.85fr 1fr; gap:48px; align-items:center; }
.about-media{ position:relative; }
.about-media img{ border-radius:var(--radius-lg); width:100%; aspect-ratio:4/3.4; object-fit:cover; box-shadow:var(--shadow-md); }
.about-media .chip{ position:absolute; right:-14px; bottom:-18px; background:#fff; border-radius:var(--radius); box-shadow:var(--shadow-md); padding:14px 18px; display:flex; gap:12px; align-items:center; }
.about-media .chip b{ display:block; font-family:var(--font-display); font-size:20px; color:var(--red); }
.about-media .chip span{ font-size:11.5px; color:var(--ink-soft); }
.about-facts{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:26px; }
.fact{ border:1px solid var(--line); border-radius:var(--radius); padding:14px; }
.fact b{ display:block; font-family:var(--font-display); color:var(--red); font-size:15px; margin-bottom:4px; }
.fact span{ font-size:12.5px; color:var(--ink-soft); }
@media (max-width:900px){ .about-split{ grid-template-columns:1fr; } .about-media .chip{ position:static; margin-top:-40px; margin-inline:16px; } }
@media (max-width:560px){ .about-facts{ grid-template-columns:1fr 1fr; } }

/* ---------- Badge / trust strip ---------- */
.badge-strip{ display:flex; gap:14px; flex-wrap:wrap; }
.badge-pill{ display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:10px 18px 10px 10px; }
.badge-pill .ic{ width:36px; height:36px; border-radius:50%; background:var(--red-tint); color:var(--red); display:flex; align-items:center; justify-content:center; flex:none; }
.badge-pill b{ font-family:var(--font-display); font-size:13.5px; display:block; }
.badge-pill span{ font-size:11.5px; color:var(--ink-soft); }

/* ---------- Service / value cards ---------- */
.cards-3, .cards-4{ display:grid; gap:18px; }
.cards-3{ grid-template-columns:repeat(3,1fr); }
.cards-4{ grid-template-columns:repeat(4,1fr); }
.value-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:24px 22px; }
.value-card .ic{ width:48px; height:48px; border-radius:12px; background:var(--red); color:#fff; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.value-card .ic svg{ width:24px; height:24px; }
.value-card h3{ font-size:16.5px; font-weight:600; margin-bottom:8px; }
.value-card p{ font-size:13.5px; color:var(--ink-soft); }
@media (max-width:920px){ .cards-3,.cards-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .cards-3,.cards-4{ grid-template-columns:1fr; } }

/* ---------- Placeholder blocks (social / reviews) ---------- */
.placeholder-block{ border:1.5px dashed var(--line); border-radius:var(--radius); background:var(--sand); padding:26px; text-align:center; color:var(--ink-soft); font-size:13px; }
.social-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.social-tile{ aspect-ratio:1/1; border-radius:var(--radius-sm); background:var(--sand-deep); display:flex; align-items:center; justify-content:center; color:var(--ink-faint); border:1px solid var(--line); }
.social-tile svg{ width:26px; height:26px; }
@media (max-width:900px){ .social-grid{ grid-template-columns:repeat(4,1fr); } }
@media (max-width:560px){ .social-grid{ grid-template-columns:repeat(3,1fr); } }

.review-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.review-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.stars{ color:var(--gold); font-size:15px; letter-spacing:2px; }
@media (max-width:900px){ .review-grid{ grid-template-columns:1fr; } }

/* ---------- Final CTA ---------- */
.final-cta{ background:linear-gradient(135deg,var(--red-deep),var(--red)); border-radius:var(--radius-lg); padding:44px 36px; display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap; }
.final-cta h2{ color:#fff; font-size:clamp(22px,3vw,30px); max-width:520px; }
.final-cta p{ color:#FCE0DE; margin-top:8px; font-size:14.5px; }
.final-cta-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink); color:#E9E2DC; padding-block:52px 26px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1.1fr; gap:32px; }
.footer-grid h4{ color:#fff; font-size:14px; margin-bottom:14px; letter-spacing:.02em; }
.footer-grid a, .footer-grid li{ color:#C9BFB7; font-size:13.5px; }
.footer-grid li{ margin-bottom:9px; }
.footer-grid a:hover{ color:#fff; }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand img{ height:40px; width:40px; border-radius:50%; }
.footer-brand b{ color:#fff; font-family:var(--font-display); font-size:17px; }
.footer-social{ display:flex; gap:10px; margin-top:14px; }
.footer-social a{ width:36px; height:36px; border-radius:50%; border:1px solid #4A403A; display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ background:var(--red); border-color:var(--red); }
.footer-bottom{ border-top:1px solid #3A312C; margin-top:38px; padding-top:20px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:12.5px; color:#9C8F87; }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }

/* ---------- Floating contact rail ---------- */
.float-rail{ position:fixed; right:18px; bottom:18px; z-index:70; display:flex; flex-direction:column; gap:10px; align-items:flex-end; }
.float-btn{ width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-md); color:#fff; }
.float-btn svg{ width:24px; height:24px; }
.float-btn.line{ background:#06C755; }
.float-btn.call{ background:var(--red); }
.float-btn.mail{ background:var(--ink); }
.mobile-callbar{ position:fixed; left:0; right:0; bottom:0; z-index:65; display:none; background:#fff; border-top:1px solid var(--line); padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px)); gap:10px; }
@media (max-width:760px){
  .mobile-callbar{ display:flex; }
  .float-rail{ bottom:84px; right:14px; }
  .float-btn{ width:46px; height:46px; }
}

/* ---------- Breadcrumb / page header ---------- */
.page-head{ background:var(--sand); border-bottom:1px solid var(--line); padding-block:34px; }
.crumb{ font-size:13px; color:var(--ink-soft); margin-bottom:10px; }
.crumb a:hover{ color:var(--red); }
.page-head h1{ font-size:clamp(26px,3.6vw,40px); }
.page-head p{ margin-top:10px; color:var(--ink-soft); max-width:60ch; }

/* ---------- Category filter chips (Products page) ---------- */
.filter-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:30px; }
.filter-chip{ border:1.5px solid var(--line); border-radius:999px; padding:9px 18px; font-family:var(--font-display); font-weight:600; font-size:13.5px; background:#fff; }
.filter-chip.active, .filter-chip:hover{ border-color:var(--red); color:var(--red); background:var(--red-tint); }

/* ---------- Product detail ---------- */
.pd-grid{ display:grid; grid-template-columns:.9fr 1fr; gap:44px; }
.pd-media{ position:sticky; top:96px; align-self:start; }
.pd-media img{ width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius-lg); box-shadow:var(--shadow-md); }
.pd-info .cat{ color:var(--red); font-weight:600; font-size:13px; text-transform:uppercase; letter-spacing:.05em; }
.pd-info h1{ font-size:clamp(24px,3.2vw,34px); margin-top:8px; }
.pd-info .desc{ margin-top:16px; color:var(--ink-soft); font-size:15px; max-width:56ch; }
.pd-specs{ margin-top:22px; border-top:1px solid var(--line); }
.pd-specs .row{ display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--line); font-size:14px; }
.pd-specs .row span:first-child{ color:var(--ink-soft); }
.pd-actions{ display:flex; gap:12px; margin-top:26px; flex-wrap:wrap; }
.pd-note{ margin-top:18px; background:var(--sand); border-radius:var(--radius); padding:14px 16px; font-size:13px; color:var(--ink-soft); }
@media (max-width:860px){ .pd-grid{ grid-template-columns:1fr; } .pd-media{ position:static; } }

/* ---------- Owner / History page ---------- */
.owner-hero{ display:grid; grid-template-columns:.75fr 1fr; gap:44px; align-items:center; }
.owner-photo{ border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:3/3.6; box-shadow:var(--shadow-md); background:var(--sand-deep); }
.owner-photo img{ width:100%; height:100%; object-fit:cover; }
.timeline{ position:relative; margin-top:8px; padding-left:26px; border-left:2px solid var(--line); }
.tl-item{ position:relative; padding-bottom:30px; }
.tl-item::before{ content:""; position:absolute; left:-32px; top:2px; width:12px; height:12px; border-radius:50%; background:var(--red); box-shadow:0 0 0 4px var(--red-tint); }
.tl-item b{ font-family:var(--font-display); color:var(--red); font-size:13px; }
.tl-item h4{ font-size:16px; margin-top:4px; }
.tl-item p{ font-size:13.5px; color:var(--ink-soft); margin-top:4px; }
@media (max-width:860px){ .owner-hero{ grid-template-columns:1fr; } .owner-photo{ aspect-ratio:16/10; } }

/* ---------- Utility ---------- */
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
@media (max-width:860px){ .two-col{ grid-template-columns:1fr; } }
.stack-16{ display:flex; flex-direction:column; gap:16px; }
.center{ text-align:center; margin-inline:auto; }
