/* Native Food V2 — warm editorial, taken from the NTF brochure palette (cream, lacquer red, olive, terracotta) */
:root{
  --paper:#faf6ef; --paper-2:#f2eadd; --card:#fffdf9;
  --ink:#231c1a; --ink-2:#5b504b; --line:#e3d8c7;
  --red:#8f1d21; --red-deep:#5a1418; --olive:#5e6a3b; --terra:#c0603f;
  --on-dark:#f7efe4; --on-dark-2:#cbbcab;
  --serif:'Noto Serif Thai',Georgia,serif;
  --sans:'IBM Plex Sans Thai',Thonburi,Tahoma,sans-serif;
  --script:'Dancing Script',cursive;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.75 var(--sans)}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
h1,h2,h3,p,figure,ul,ol,dl,dd{margin:0}
h1,h2{font-family:var(--serif);font-weight:700;letter-spacing:-.01em;line-height:1.25}
h2{font-size:clamp(28px,3.4vw,44px)}
h3{font-weight:600;line-height:1.45}
.wrap{width:min(1240px,100% - 32px);margin-inline:auto}
.nowrap{white-space:nowrap}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--terra);outline-offset:3px}

.kicker{font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--terra);margin-bottom:14px}
.script{font-family:var(--script);font-weight:500;font-size:30px;color:var(--olive);line-height:1.2}
.lead{font-size:18px;color:var(--ink-2);max-width:34em}
.note{font-size:12px;color:var(--ink-2);margin-top:18px}
.text-link{display:inline-block;font-weight:600;color:var(--red);border-bottom:1px solid currentColor;padding-bottom:2px}

.btn{display:inline-flex;align-items:center;gap:12px;padding:14px 24px;border-radius:999px;font-weight:600;font-size:15px;transition:transform .2s,background .2s,color .2s}
.btn:hover{transform:translateY(-2px)}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:var(--red-deep)}
.btn-line{border:1.5px solid var(--ink);color:var(--ink)}
.btn-line:hover{background:var(--ink);color:var(--paper)}
.btn-light{background:var(--on-dark);color:var(--red-deep)}
.btn-ghost{border:1.5px solid var(--on-dark-2);color:var(--on-dark)}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}

/* Header */
.site-header{position:sticky;top:0;z-index:20;background:rgba(250,246,239,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:76px}
.brand img{height:62px;width:auto}
#main-nav{display:flex;align-items:center;gap:28px;font-size:15px;font-weight:500}
#main-nav a:not(.nav-cta):hover{color:var(--red)}
.nav-cta{padding:9px 18px;border-radius:999px;background:var(--red);color:#fff}
.menu-toggle{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:none;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:5px}
.menu-toggle span{display:block;width:18px;height:2px;background:var(--ink);transition:transform .2s}
.menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(3.5px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}

/* Hero */
.hero{padding:64px 0 0;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.hero h1{font-size:clamp(36px,5vw,64px);line-height:1.2}
.hero h1 span{color:var(--red)}
.hero .lead{margin-top:22px}
.hero .script{margin-top:34px}
.hero-media{position:relative;padding:0 0 56px 56px}
.hero-photo{position:relative}
.hero-photo::before{content:"";position:absolute;inset:-18px 18px 18px -18px;border:1.5px solid var(--red);border-radius:220px 220px 6px 6px;z-index:-1}
.hero-photo img{width:100%;aspect-ratio:695/630;object-fit:cover;border-radius:220px 220px 6px 6px}
.hero-inset{position:absolute;left:0;bottom:0;width:44%;background:var(--card);padding:8px;border-radius:6px;box-shadow:0 18px 40px rgba(35,28,26,.18)}
.hero-inset img{border-radius:3px;aspect-ratio:4/3;object-fit:cover}
.hero-inset figcaption{font-family:var(--script);font-weight:500;font-size:20px;color:var(--olive);padding:6px 6px 2px}
.pillars{display:grid;grid-template-columns:repeat(3,1fr);margin-top:56px;border-top:1px solid var(--line)}
.pillars div{padding:26px 28px 34px 0}
.pillars div+div{padding-left:28px;border-left:1px solid var(--line)}
.pillars b{font-family:var(--serif);color:var(--terra);font-size:15px}
.pillars .pillar-title{font-family:var(--serif);font-weight:700;font-size:21px;line-height:1.45;margin-top:6px;color:var(--ink)}
.pillars p:not(.pillar-title){color:var(--ink-2);font-size:14px}

/* Sections */
.section{padding:104px 0}
.head{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:44px}
.head>p{max-width:30em;color:var(--ink-2)}

/* Products */
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.cat{position:relative;display:flex;flex-direction:column;justify-content:flex-start;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:0 0 22px;cursor:pointer;overflow:hidden;transition:transform .25s,box-shadow .25s}
.cat:hover{transform:translateY(-4px);box-shadow:0 20px 40px rgba(35,28,26,.12)}
.cat img{width:100%;aspect-ratio:4/3;object-fit:cover}
.cat-count{position:absolute;top:12px;left:12px;background:var(--paper);color:var(--red);font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px}
.cat h3{font-family:var(--serif);font-size:21px;padding:18px 20px 2px}
.cat p{font-size:14px;color:var(--ink-2);padding:0 20px}
.cat .cat-copy{font-size:13px;line-height:1.7;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line);margin-inline:20px;padding-inline:0}
.custom-band{display:grid;grid-template-columns:1.2fr 1fr;gap:48px;align-items:center;margin-top:56px;background:var(--paper-2);border-radius:8px;padding:28px}
.custom-band img{border-radius:6px;width:100%;aspect-ratio:16/10;object-fit:cover}
.custom-band h3{font-family:var(--serif);font-size:clamp(22px,2.4vw,30px);line-height:1.35}
.custom-band p:not(.kicker){color:var(--ink-2);margin:14px 0 20px}
.catalog{margin-top:72px}
.catalog-bar{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.catalog-bar h3{font-family:var(--serif);font-size:24px;margin-right:auto}
.catalog-bar h3 span{font-family:var(--sans);font-size:14px;font-weight:500;color:var(--ink-2)}
.filters{display:flex;flex-wrap:wrap;gap:8px}
.filters button{border:1px solid var(--line);background:var(--card);padding:7px 16px;border-radius:999px;font-size:14px;cursor:pointer}
.filters button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.search input{width:250px;border:1px solid var(--line);background:var(--card);padding:9px 16px;border-radius:999px;font-size:14px}
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;margin-top:24px}
/* White cards so the white-background packshots sit seamlessly */
.product{background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px;display:flex;flex-direction:column;transition:box-shadow .25s,transform .25s}
/* .product sets display:flex, which would override the hidden attribute used by the filter and paging */
.product[hidden]{display:none}
.product:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(35,28,26,.1)}
.product img{width:100%;aspect-ratio:1;object-fit:contain;margin-bottom:12px}
.product h4{margin:0;font-size:16px;font-weight:600;line-height:1.4}
.product .en{font-size:12px;color:var(--terra);font-weight:500}
.product p{font-size:13px;color:var(--ink-2);line-height:1.6;margin-top:6px}
.empty{grid-column:1/-1;color:var(--ink-2);padding:24px 0}
.catalog-more{display:flex;margin:28px auto 0;background:none;cursor:pointer}
.catalog-more[hidden]{display:none}

/* Process */
.process{background:var(--paper-2)}
.steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(6,1fr);gap:0;counter-reset:s}
.steps li{position:relative;padding:0 18px 0 0}
.steps li::before{content:"";position:absolute;top:21px;left:44px;right:0;height:1.5px;background:var(--line)}
.steps li:last-child::before{display:none}
.steps span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--red);color:#fff;font-family:var(--serif);font-weight:700;font-size:15px;position:relative}
.steps li:nth-child(even) span{background:var(--olive)}
.steps h3{font-family:var(--serif);font-size:18px;margin-top:18px}
.steps small{display:block;font-size:12px;color:var(--terra);font-weight:500}
.steps p{font-size:14px;color:var(--ink-2);margin-top:6px}
.align{display:grid;grid-template-columns:1fr 1.1fr;gap:56px;align-items:center;margin-top:72px}
.align img{border-radius:6px;width:100%;aspect-ratio:610/385;object-fit:cover}
.align h3{font-family:var(--serif);font-size:clamp(22px,2.4vw,30px);margin-bottom:22px}
.checks{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:14px 28px}
.checks li{position:relative;padding-left:34px;font-weight:500}
.checks li::before{content:"✓";position:absolute;left:0;top:2px;width:22px;height:22px;border-radius:50%;background:var(--terra);color:#fff;font-size:12px;display:grid;place-items:center}
.checks small{display:block;font-size:12px;color:var(--ink-2);font-weight:400}

/* Capability (dark) */
.capability{background:var(--ink);color:var(--on-dark);padding:104px 0 88px}
.cap-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.cap-photo img{border-radius:6px;width:100%;aspect-ratio:570/525;object-fit:cover}
.capability .kicker{color:#e09a7b}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:28px 32px;margin-top:40px}
.stats div{border-top:1px solid rgba(247,239,228,.22);padding-top:18px}
.stats div:first-child{grid-column:1/-1}
.stats strong{display:block;font-family:var(--serif);font-size:clamp(38px,4.6vw,60px);line-height:1.1;color:#fff}
.stats span{font-weight:600}
.stats small{display:block;color:var(--on-dark-2);font-size:13px}
.capability .note{color:var(--on-dark-2)}
.lines{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:56px}
.lines img{border-radius:6px;width:100%;aspect-ratio:493/170;object-fit:cover}
.lines figcaption{font-size:13px;color:var(--on-dark-2);margin-top:10px}

/* Packaging */
.packs{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
/* Card colour matches the cream backdrop baked into the packaging photos */
.pack{background:#f9f1e5;border:1px solid var(--line);border-radius:8px;padding:28px;text-align:center}
.pack{padding:16px 16px 24px}
.pack img{width:100%;aspect-ratio:2.2/1;object-fit:cover;border-radius:6px}
.pack h3{font-family:var(--serif);font-size:21px;margin-top:18px}
.pack p{color:var(--terra);font-weight:600}

/* Quality (red) */
.quality{background:var(--red-deep);color:var(--on-dark);padding:96px 0 72px}
.quality .kicker{color:#e9a98c}
.q-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:56px;align-items:center}
.q-grid>div>p:last-child{color:var(--on-dark-2);margin-top:16px}
.badges{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.badges li{border:1px solid rgba(247,239,228,.25);border-radius:8px;padding:20px}
.badges b{display:block;font-family:var(--serif);font-size:20px;color:#fff}
.badges span{font-size:13px;color:var(--on-dark-2)}
/* Marks keep their white artwork background, so each sits on a white tile */
.cert{display:flex;flex-direction:column;align-items:center;text-align:center;padding:14px 12px 18px}
.badges .cert-logo{display:grid;place-items:center;width:100%;height:96px;background:#fff;border-radius:6px;margin-bottom:14px}
.cert-logo img{max-height:72px;max-width:80%;width:auto;height:auto}
/* BRCGS is a wide lockup: let it use more of the tile so "Food Safety" stays readable */
.cert-logo img[src*="cert-brcgs"]{max-width:92%}
/* Each <i> is a phrase that must not split; lines break only between phrases */
.badges i{font-style:normal;display:inline-block}
/* Export sits in the last cell of the 3x2 (2-column on phones) grid, as a card without a logo tile */
.badges .export{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:rgba(247,239,228,.08)}
.badges .export b{margin-bottom:6px}
.quality .note{color:var(--on-dark-2);margin-top:36px}

/* Contact (dark) */
.contact{background:var(--ink);color:var(--on-dark);padding:104px 0}
.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:64px;align-items:end}
.contact .script{color:#c9b98a}
.contact h2{margin-top:8px}
.contact-grid>div>p:not(.script){color:var(--on-dark-2);margin-top:18px;max-width:30em}
.contact-list div{display:grid;grid-template-columns:96px 1fr;gap:12px;padding:16px 0;border-top:1px solid rgba(247,239,228,.18)}
.contact-list dt{color:var(--on-dark-2);font-size:14px}
.contact-list a:hover{color:#fff;text-decoration:underline}

/* Reveal */
@media (prefers-reduced-motion:no-preference){
  .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
  .reveal.is-in{opacity:1;transform:none}
}

/* Responsive */
@media (max-width:1080px){
  .steps{grid-template-columns:repeat(3,1fr);row-gap:36px}
  .steps li:nth-child(3)::before{display:none}
  .cat-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .menu-toggle{display:flex}
  #main-nav{display:none;position:absolute;top:76px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:var(--paper);border-bottom:1px solid var(--line);padding:8px 16px 18px}
  #main-nav.is-open{display:flex}
  #main-nav a{padding:12px 0;border-bottom:1px solid var(--line)}
  #main-nav .nav-cta{margin-top:12px;text-align:center;border:0}
  .hero{padding-top:40px}
  .hero-grid,.cap-grid,.align,.q-grid,.contact-grid,.custom-band{grid-template-columns:1fr;gap:40px}
  .hero-media{padding:0 0 40px 28px}
  .head{flex-direction:column;align-items:flex-start;gap:16px}
  .section{padding:72px 0}
  .capability,.contact{padding:72px 0}
  .quality{padding:72px 0 56px}
  }
@media (max-width:640px){
  body{font-size:15px}
  .pillars{grid-template-columns:1fr;margin-top:40px}
  .pillars div,.pillars div+div{padding:18px 0;border-left:0;border-bottom:1px solid var(--line)}
  .cat-grid{gap:12px}
  .cat h3{font-size:17px;padding:14px 14px 2px}
  .cat p{font-size:13px;padding:0 14px}
  .cat .cat-copy{font-size:12px;margin-inline:14px;padding-inline:0}
  .cat{padding-bottom:16px}
  .custom-band{padding:16px;gap:20px}
  .steps{grid-template-columns:1fr 1fr}
  .steps li::before{display:none}
  .checks{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr}
  .lines,.packs{grid-template-columns:1fr}
  .badges{grid-template-columns:1fr 1fr}
  .search,.search input{width:100%}
  .products{grid-template-columns:1fr 1fr;gap:12px}
  .product{padding:12px}
  .hero-inset figcaption{font-size:16px}
}

/* FAQ */
.faq-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:56px;align-items:start}
.faq .head-col>p:not(.kicker){color:var(--ink-2);margin:16px 0 18px}
.faq-list details{border-top:1px solid var(--line)}
.faq-list details:last-child{border-bottom:1px solid var(--line)}
.faq-list summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:20px;padding:20px 0;font-family:var(--serif);font-weight:600;font-size:18px;line-height:1.5}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";flex-shrink:0;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;color:var(--red);font-family:var(--sans);font-weight:500;transition:transform .2s}
.faq-list details[open] summary::after{transform:rotate(45deg)}
.faq-list details p{color:var(--ink-2);padding:0 48px 22px 0}
@media (max-width:900px){.faq-grid{grid-template-columns:1fr;gap:28px}}
@media (max-width:640px){.faq-list summary{font-size:16px}.faq-list details p{padding-right:0}}

/* Language toggle: the open language is the dark segment, the other one is the link */
.lang-toggle{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--card);font-size:13px;line-height:1}
.lang-toggle a,.lang-toggle span{padding:8px 14px;border-radius:999px;font-weight:600;letter-spacing:.02em}
.lang-toggle span[aria-current]{background:var(--ink);color:#fff}
.lang-toggle a{color:var(--ink-2);transition:color .2s,background .2s}
.lang-toggle a:hover{color:var(--red);background:var(--paper-2)}
@media (max-width:900px){
  #main-nav .lang-toggle{align-self:flex-start;margin:14px 0 0}
  #main-nav .lang-toggle a{padding:8px 14px;border-bottom:0}
}

/* Network: Native Food, Foodcility and Plaijawak */
.network{background:var(--paper-2);border-top:1px solid var(--line)}
.net-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.net-card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-top:4px solid var(--terra);border-radius:8px;padding:26px 26px 28px}
.net-fc{border-top-color:var(--olive)}
.net-pj{border-top-color:var(--red)}
.net-here{background:var(--ink);color:var(--on-dark);border-color:var(--ink);border-top-color:var(--terra)}
.net-tag{align-self:flex-start;font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--terra);background:var(--paper-2);padding:4px 12px;border-radius:999px}
.net-here .net-tag{background:rgba(247,239,228,.12);color:#f0b79d}
.net-mark{display:flex;align-items:center;height:96px;margin:20px 0 14px}
.net-mark img{max-height:80px;width:auto}
.net-mark img.pj-logo{width:96px;height:96px;max-height:none;border-radius:12px}
.net-here .net-mark img{filter:brightness(0) invert(1);opacity:.92}
.net-card h3{font-family:var(--serif);font-size:24px;line-height:1.3}
.net-role{font-size:13px;font-weight:600;letter-spacing:.03em;color:var(--olive);margin:2px 0 12px}
.net-here .net-role{color:#c9d3a3}
.net-pj .net-role{color:var(--red)}
.net-card p:not(.net-tag):not(.net-role){color:var(--ink-2);font-size:15px;margin-bottom:22px}
.net-here p:not(.net-tag):not(.net-role){color:var(--on-dark-2)}
.net-link{margin-top:auto;align-self:flex-start;font-weight:600;font-size:15px;color:var(--red);border-bottom:1px solid currentColor;padding-bottom:2px}
.net-here .net-link{color:#fff}
.net-link:hover{opacity:.8}
@media (max-width:900px){.net-grid{grid-template-columns:1fr}.net-mark{height:80px}.net-mark img{max-height:64px}.net-mark img.pj-logo{width:80px;height:80px}}

/* Footer */
.footer{background:#1a1412;color:var(--on-dark-2);font-size:14px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:40px;padding:64px 0 44px}
.footer-brand img{height:64px;width:auto;filter:brightness(0) invert(1);opacity:.9}
.footer-brand p:not(.script){margin-top:16px;max-width:26em;line-height:1.7}
.footer-brand .script{font-size:22px;color:#c9b98a;margin-top:14px}
.footer-h{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#e09a7b;margin-bottom:14px}
html[lang="th"] .footer-h{letter-spacing:.02em;font-size:13px}  /* wide tracking only suits Latin capitals */
.footer-col{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.footer-col a{color:var(--on-dark)}
.footer-col a:hover{color:#fff;text-decoration:underline}
.footer address{font-style:normal;line-height:1.7;margin-bottom:4px}
.footer-bottom{display:flex;justify-content:space-between;gap:16px;padding:20px 0;border-top:1px solid rgba(247,239,228,.14);font-size:13px}
.footer-lang a{color:var(--on-dark);text-decoration:underline}
.footer-lang [aria-current]{color:#fff;font-weight:600}
@media (max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;gap:32px}.footer-brand{grid-column:1/-1}}
@media (max-width:640px){.footer-grid{grid-template-columns:1fr;padding:48px 0 32px}.footer-bottom{flex-direction:column}}

/* Latin text in serif headings falls back to Georgia, whose numerals are old-style ("o1");
   numbers use the sans face instead. English headings are narrower than the Thai ones need. */
.steps span,.pillars b,.stats strong{font-family:var(--sans);font-weight:600;letter-spacing:0}
html[lang="en"] .hero h1{font-size:clamp(34px,4.2vw,56px);letter-spacing:-.015em}

/* Catalogue cards: the card (or its name) opens the product details */
.has-product-modal .product{cursor:pointer}
.product h4 .product-open{all:unset;cursor:pointer;font:inherit;color:inherit}
.product h4 .product-open:focus-visible{outline:3px solid var(--terra);outline-offset:3px;border-radius:2px}
/* with the dialog on, long descriptions are cut to 3 lines because the full text is in the dialog */
.has-product-modal .product p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.product p{margin-bottom:0}

/* Product details dialog */
html.modal-open{overflow:hidden}
.pd{border:0;padding:0;border-radius:12px;background:var(--paper);color:var(--ink);box-shadow:0 30px 80px rgba(35,28,26,.35);width:calc(100% - 32px);max-width:900px}
.pd::backdrop{background:rgba(35,28,26,.55)}
.pd[open]{display:grid;grid-template-columns:1fr 1fr}
.pd-media{background:#fff;display:grid;place-items:center;padding:28px;border-radius:12px 0 0 12px}
.pd-media img{width:100%;max-width:400px;aspect-ratio:1;object-fit:contain}
.pd-body{padding:40px 36px 28px;display:flex;flex-direction:column}
.pd-cat{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--terra);text-transform:uppercase}
.pd-body h3{font-family:var(--serif);font-size:clamp(24px,3vw,32px);line-height:1.25;margin-top:6px}
.pd-alt{color:var(--olive);font-weight:600;margin-top:2px}
.pd-desc{color:var(--ink-2);font-size:16px;margin-top:16px}
.pd-pack{font-size:14px;color:var(--ink-2);margin-top:16px;padding-top:16px;border-top:1px dashed var(--line)}
.pd-pack a{color:var(--red);font-weight:600;white-space:nowrap}
.pd-nav{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:24px;color:var(--ink-2);font-size:14px}
.pd-nav button{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:22px;line-height:1;cursor:pointer;color:var(--ink)}
.pd-nav button:disabled{opacity:.35;cursor:default}
.pd-close{position:absolute;top:12px;right:12px;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:24px;line-height:1;cursor:pointer;color:var(--ink);z-index:1}
@media (max-width:640px){
  /* the details open as a sheet from the bottom of the screen */
  .pd{width:100%;max-width:100%;max-height:92vh;margin:auto 0 0;border-radius:16px 16px 0 0;overflow:auto}
  .pd[open]{display:block}
  .pd-media{border-radius:16px 16px 0 0;padding:20px}
  .pd-media img{max-width:240px}
  .pd-body{padding:20px 20px 24px}
}
@media (prefers-reduced-motion:no-preference){
  .pd[open]{animation:sheet-in .25s ease-out}
  @keyframes sheet-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
}
