/* ==========================================================================
   plushe.studio — design system
   Palette, type and components lifted from the Atelier curtain mockup.
   ========================================================================== */
:root{
  --paper:#E7E4DD; --panel:#FBFAF7; --card:#FFFFFF;
  --ink:#23201C; --muted:#8A8378; --faint:#B4AEA2;
  --line:#D9D4CA; --line-soft:#E7E3DA;
  --brass:#A9853F; --brass-deep:#8A6C31; --brass-soft:#C9A961;
  --sage:#6F7A63;
  --green:#3F7A4A; --green-deep:#2F5E38; --green-soft:#9CC3A0;
  --shadow:0 1px 2px rgba(35,32,28,.05), 0 8px 24px -12px rgba(35,32,28,.14);
  --shadow-lg:0 40px 80px -40px rgba(35,32,28,.5);
  --wrap:1180px;
}

*{box-sizing:border-box; margin:0; padding:0}
html{scroll-behavior:smooth}
body{
  font-family:"Instrument Sans",system-ui,sans-serif;
  background:var(--paper); color:var(--ink);
  -webkit-font-smoothing:antialiased; font-size:15px; line-height:1.55;
  min-height:100vh; display:flex; flex-direction:column;
}
.display{font-family:"Fraunces",serif}
.mono{font-family:"IBM Plex Mono",monospace}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
h1,h2,h3,h4{font-family:"Fraunces",serif; font-weight:500; line-height:1.15}

.wrap{max-width:var(--wrap); margin:0 auto; padding:0 24px; width:100%}
.eyebrow{font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:var(--muted)}
.muted{color:var(--muted)}
.price{font-family:"IBM Plex Mono",monospace; color:var(--ink)}

/* ---------- Header / nav ---------- */
.site-header{position:sticky; top:0; z-index:40; background:rgba(251,250,247,.92);
  backdrop-filter:blur(8px); border-bottom:1px solid var(--line)}
.nav{display:flex; align-items:center; justify-content:space-between; height:66px; gap:24px}
.brand{display:inline-flex; flex-direction:column; gap:2px; line-height:1.05}
.brand .logo{display:inline-flex; align-items:baseline; color:var(--ink); transition:color .15s}
/* Stylish wordmark: serif "Plushé" · brass dot · tracked uppercase "STUDIO". */
.l-name{font-family:"Fraunces",serif; font-weight:600; font-size:24px; letter-spacing:.2px}
.dot{color:var(--green); font-family:"Fraunces",serif; font-weight:600; margin:0 1px}
.l-studio{font-family:"Fraunces",serif; font-weight:600; font-size:.62em; letter-spacing:.26em; text-transform:uppercase; color:var(--green)}
.brand .logo .l-studio{font-size:15px}
.brand .tag{font-size:9.5px; letter-spacing:.3em; text-transform:uppercase; color:var(--muted); padding-left:2px}
.brand:hover .logo{color:var(--green-deep)}
.brand:hover .dot,.brand:hover .l-studio{color:var(--green-deep)}
/* Footer brand mark reuses the same lockup, sized down; lighter green reads on the dark footer. */
.foot-brand{display:inline-flex; align-items:baseline; color:#fff}
.foot-brand .l-name{font-size:20px}
.foot-brand .l-studio{font-size:12.5px; color:var(--green-soft)}
.nav-links{display:flex; align-items:center; gap:26px; list-style:none}
.nav-links a{font-size:13px; letter-spacing:.04em; color:var(--ink); padding:6px 0; border-bottom:1.5px solid transparent; transition:.15s}
.nav-links a:hover,.nav-links a.active{border-color:var(--brass); color:var(--brass-deep)}
.nav-actions{display:flex; align-items:center; gap:14px}
.basket-link{position:relative; display:inline-flex; align-items:center; gap:7px; font-size:13px;
  border:1px solid var(--line); background:var(--card); border-radius:999px; padding:8px 15px; box-shadow:var(--shadow); transition:.15s}
.basket-link:hover{border-color:var(--brass); color:var(--brass-deep)}
.basket-count{font-family:"IBM Plex Mono",monospace; font-size:11px; background:var(--brass); color:#fff;
  border-radius:999px; min-width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; padding:0 5px}
.nav-toggle{display:none; background:none; border:0; font-size:22px; cursor:pointer; color:var(--ink)}

/* WhatsApp header pill */
.wa-link{display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:500;
  border:1px solid #25D36655; background:#25D3661a; color:#128C4B; border-radius:999px; padding:8px 14px; transition:.15s}
.wa-link:hover{background:#25D366; border-color:#25D366; color:#fff}
.wa-link svg{flex:none}

/* Floating WhatsApp button (all pages) */
.wa-fab{position:fixed; right:20px; bottom:20px; z-index:60; display:inline-flex; align-items:center; gap:10px;
  background:#25D366; color:#fff; border-radius:999px; padding:12px 18px; font-weight:600; font-size:14px;
  box-shadow:0 10px 26px -8px rgba(18,140,75,.7); transition:transform .15s, box-shadow .15s}
.wa-fab:hover{transform:translateY(-2px); box-shadow:0 16px 34px -10px rgba(18,140,75,.8); color:#fff}
.wa-fab svg{flex:none}
.wa-fab-text{white-space:nowrap}
@media (max-width:560px){ .wa-fab{padding:14px} .wa-fab-text{display:none} }

/* WhatsApp contact card + button (Contact page) */
.wa-card{border:1px solid #25D36640; background:linear-gradient(180deg,#25D3660f,#25D36605);
  border-radius:14px; padding:20px}
.btn.wa{background:#25D366; color:#fff; gap:9px; box-shadow:0 6px 18px -6px rgba(18,140,75,.6)}
.btn.wa:hover{background:#128C4B; color:#fff}
.btn.wa svg{flex:none}

main{flex:1}

/* ---------- Buttons ---------- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; font:inherit; font-size:14px;
  font-weight:500; padding:12px 20px; border-radius:9px; cursor:pointer; border:1px solid transparent;
  transition:.15s; letter-spacing:.01em}
.btn.primary{background:var(--brass); color:#fff; box-shadow:0 4px 14px -4px rgba(169,133,63,.6)}
.btn.primary:hover{background:var(--brass-deep)}
.btn.ghost{background:transparent; border-color:var(--line); color:var(--ink)}
.btn.ghost:hover{border-color:var(--ink)}
.btn.ink{background:var(--ink); color:#fff}
.btn.ink:hover{background:#000}
.btn.sm{padding:8px 14px; font-size:13px}
.btn.block{width:100%}
.btn.danger{background:transparent; border-color:#c76b5a; color:#b4503c}
.btn.danger:hover{background:#b4503c; color:#fff}

/* ---------- Hero (full-width text on a soft brand-coloured backdrop) ---------- */
.hero{position:relative; padding:104px 0 92px; overflow:hidden;
  background:
    radial-gradient(58% 90% at 6% 0%, rgba(63,122,74,.16), transparent 60%),
    radial-gradient(64% 100% at 100% 4%, rgba(201,169,97,.18), transparent 58%),
    radial-gradient(90% 70% at 50% 120%, rgba(63,122,74,.08), transparent 60%),
    linear-gradient(180deg,#f5f3ed 0%, #ebe8de 55%, #e5e1d7 100%)}
/* Fine top hairline in brand green for a crisp, designed edge. */
.hero::after{content:""; position:absolute; left:0; right:0; top:0; height:3px;
  background:linear-gradient(90deg,var(--green),var(--brass-soft) 60%,transparent)}
.hero .wrap{position:relative; z-index:1}
.hero h1{font-size:clamp(34px,6.2vw,64px); letter-spacing:-.6px; margin:18px 0 20px; max-width:20ch}
.hero p{font-size:18px; color:#4a453d; max-width:56ch; margin-bottom:30px}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap}
.hero-art{position:relative; border-radius:4px; overflow:hidden; box-shadow:var(--shadow-lg);
  background:linear-gradient(160deg,#cfc7b6,#a98f6f 55%,#6f7a63)}
/* No image yet: keep the 4:5 gradient placeholder (unchanged). */
.hero-art:not(.has-img){aspect-ratio:4/5}
/* With an image: keep the vertical height fixed (as before) and let the box hug the image
   horizontally — the image scales to the height at its natural aspect, no stretching. */
.hero-art.has-img{height:clamp(360px,44vw,560px); width:fit-content; max-width:100%; justify-self:center}
.hero-art img{display:block; height:100%; width:auto; max-width:100%}

/* ---------- Section headings ---------- */
.section{padding:64px 0}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:32px}
.section-head h2{font-size:30px}
.section-head .link{font-size:13px; color:var(--brass-deep); border-bottom:1px solid var(--brass-soft); padding-bottom:2px}

/* ---------- Category tiles ---------- */
.cat-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.cat-tile{position:relative; aspect-ratio:3/4; border-radius:6px; overflow:hidden; box-shadow:var(--shadow);
  display:flex; align-items:flex-end; color:#fff; transition:transform .25s, box-shadow .25s}
.cat-tile:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.cat-tile .fill{position:absolute; inset:0; background:linear-gradient(160deg,#b9a284,#6f7a63); z-index:0}
.cat-tile img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0}
.cat-tile .veil{position:absolute; inset:0; background:linear-gradient(to top,rgba(35,32,28,.6),transparent 55%); z-index:1}
.cat-tile .cap{position:relative; z-index:2; padding:18px 20px}
.cat-tile .cap h3{color:#fff; font-size:20px}
.cat-tile .cap span{font-size:11px; letter-spacing:.18em; text-transform:uppercase; opacity:.85}

/* ---------- Product grid / cards ---------- */
.prod-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px}
.prod-grid.cols-3{grid-template-columns:repeat(3,1fr)}
.card{background:var(--card); border:1px solid var(--line-soft); border-radius:8px; overflow:hidden;
  box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s}
.prod-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.prod-card .thumb{aspect-ratio:4/5; overflow:hidden; background:linear-gradient(160deg,#e3ddd0,#cabfa9); position:relative}
.prod-card .thumb img{width:100%; height:100%; object-fit:cover; transition:transform .4s}
.prod-card:hover .thumb img{transform:scale(1.04)}
.prod-card .badge{position:absolute; top:10px; left:10px; z-index:2}
.prod-card .body{padding:14px 15px 16px}
.prod-card .cat{font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted)}
.prod-card .name{font-family:"Fraunces",serif; font-size:17px; margin:3px 0 8px}
.prod-card .foot{display:flex; align-items:baseline; justify-content:space-between}
/* Tail tile of a long range: the photo dimmed behind a "+N more shades" plate. */
.prod-more .thumb{position:relative}
.prod-more .thumb img{filter:saturate(.7) brightness(.7)}
.prod-more .more-veil{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:2px; color:#fff; background:rgba(20,17,13,.34); text-align:center}
.prod-more .more-n{font-family:"Fraunces",serif; font-size:30px; line-height:1}
.prod-more .more-t{font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; opacity:.9}
.prod-card .pr{font-family:"IBM Plex Mono",monospace; font-size:13.5px}
.prod-card .from{font-size:10.5px; color:var(--faint)}

.badge{display:inline-block; font-size:10px; letter-spacing:.14em; text-transform:uppercase;
  background:var(--brass); color:#fff; padding:4px 9px; border-radius:999px}
.badge.sage{background:var(--sage)}
.badge.ink{background:var(--ink)}
.badge.ghost{background:var(--card); color:var(--muted); border:1px solid var(--line)}

/* ---------- Filters / toolbar ---------- */
.toolbar{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:18px 0 26px; border-bottom:1px solid var(--line-soft); margin-bottom:30px}
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{font:inherit; font-size:13px; border:1px solid var(--line); background:var(--card); color:var(--ink);
  padding:8px 14px; border-radius:999px; cursor:pointer; transition:.13s; display:inline-block}
.chip:hover{border-color:var(--faint)}
.chip.on{border-color:var(--ink); background:var(--ink); color:#fff}

/* ---------- Page header band ---------- */
.page-band{padding:48px 0 36px; background:var(--panel); border-bottom:1px solid var(--line)}
.page-band h1{font-size:38px; margin-top:8px}
.page-band p{color:var(--muted); max-width:60ch; margin-top:10px}
.breadcrumb{font-size:12px; color:var(--muted)}
.breadcrumb a:hover{color:var(--brass-deep)}

/* ---------- Product detail ---------- */
.pdp{display:grid; grid-template-columns:1.05fr .95fr; gap:48px; padding:48px 0}
/* The frame follows the PHOTO's own shape (capped), instead of forcing every product into a tall 4/5
   box — that box turned wide or small photos into a huge rectangle of empty panel. */
.gallery .main{border-radius:6px; overflow:hidden; box-shadow:var(--shadow);
  background:var(--panel); display:flex; align-items:center; justify-content:center;
  min-height:240px; max-height:min(74vh,620px)}
/* Contain so the WHOLE image is visible (large images are no longer cropped). */
.gallery .main img{width:100%; height:auto; max-height:min(74vh,620px); object-fit:contain}
.gallery .thumbs{display:flex; gap:10px; margin-top:12px}
.gallery .thumbs button{width:70px; aspect-ratio:1; border-radius:6px; overflow:hidden; border:1px solid var(--line);
  background:none; cursor:pointer; padding:0}
.gallery .thumbs button.on{outline:2px solid var(--brass); outline-offset:2px}
.pdp-info h1{font-size:34px; margin:6px 0 12px}
.pdp-price{font-family:"IBM Plex Mono",monospace; font-size:22px; margin:16px 0}
.pdp-price small{font-size:12px; color:var(--muted)}
.pdp-desc{color:#48433b; margin:14px 0 22px}
.swatch-row{display:flex; gap:10px; flex-wrap:wrap; margin:8px 0 22px}
.swatch{width:40px; height:40px; border-radius:50%; border:1px solid var(--line); cursor:pointer; position:relative;
  outline:2px solid transparent; outline-offset:2px; transition:.12s}
.swatch.on{outline-color:var(--brass)}
.variant-chips{display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 22px}
.spec-list{list-style:none; border-top:1px solid var(--line-soft); margin-top:24px}
.spec-list li{display:flex; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--line-soft); font-size:14px}
.spec-list li span:first-child{color:var(--muted)}
.pdp-actions{display:flex; gap:12px; margin-top:8px}

/* ---------- Enquiry basket / ticket ---------- */
.ticket{background:var(--card); border:1px solid var(--line); border-radius:10px; padding:20px 22px; box-shadow:var(--shadow)}
.ticket h3{font-size:18px; margin-bottom:14px}
.basket-line{display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--line-soft)}
.basket-line .bi{width:74px; aspect-ratio:1; border-radius:6px; overflow:hidden; flex:0 0 auto;
  background:linear-gradient(160deg,#e3ddd0,#cabfa9)}
.basket-line .bi img{width:100%; height:100%; object-fit:cover}
.basket-line .bd{flex:1; min-width:0}
.basket-line .bd .nm{font-weight:500}
.basket-line .bd .vr{font-size:12.5px; color:var(--muted)}
.basket-line .bp{font-family:"IBM Plex Mono",monospace; font-size:13px; text-align:right; white-space:nowrap}
.qty{display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:8px; overflow:hidden}
.qty button{border:0; background:var(--panel); width:28px; height:28px; cursor:pointer; font-size:15px; color:var(--ink)}
.qty input{width:38px; text-align:center; border:0; font-family:"IBM Plex Mono",monospace; background:transparent}
.total{display:flex; align-items:baseline; justify-content:space-between; margin:16px 0}
.total .lbl{font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted)}
.total .amt{font-family:"Fraunces",serif; font-size:28px}

/* ---------- Forms ---------- */
.field{margin-bottom:16px}
.field label{display:block; font-size:12px; color:var(--muted); margin-bottom:6px; letter-spacing:.03em}
.field input,.field textarea,.field select{width:100%; font:inherit; padding:11px 13px; border:1px solid var(--line);
  border-radius:8px; background:var(--card); color:var(--ink)}
.field input:focus,.field textarea:focus,.field select:focus{outline:none; border-color:var(--brass)}
.field textarea{min-height:110px; resize:vertical}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.form-note{font-size:12.5px; color:var(--muted)}
.text-danger,.validation-summary-errors{color:#b4503c; font-size:13px}
.field .text-danger{margin-top:5px}

/* ---------- Alerts ---------- */
.alert{border-radius:8px; padding:12px 16px; font-size:14px; margin-bottom:18px; border:1px solid transparent}
.alert.success{background:#eef1e9; border-color:#cfd8c1; color:#4b5540}
.alert.error{background:#f6e9e6; border-color:#e3c7c0; color:#8a4433}

/* ---------- Footer ---------- */
.site-footer{background:var(--ink); color:#d8d3c8; margin-top:72px; padding:56px 0 30px}
.site-footer .cols{display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; margin-bottom:36px}
.site-footer h4{color:#fff; font-family:"Fraunces",serif; font-size:18px; margin-bottom:14px}
.site-footer a{color:#c9c3b6; font-size:13.5px; display:block; padding:4px 0}
.site-footer a:hover{color:#fff}
.site-footer .tag{font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:var(--faint); margin-top:8px}
.site-footer .fine{border-top:1px solid rgba(255,255,255,.12); padding-top:20px; display:flex;
  justify-content:space-between; gap:16px; font-size:12px; color:var(--faint); flex-wrap:wrap}

/* ---------- Empty state ---------- */
.empty{text-align:center; padding:64px 20px; color:var(--muted)}
.empty h3{font-size:22px; color:var(--ink); margin-bottom:8px}

/* ---------- Toast ---------- */
.toast{position:fixed; bottom:24px; left:50%; transform:translate(-50%,20px); opacity:0; pointer-events:none;
  background:var(--ink); color:#fff; padding:12px 20px; border-radius:10px; font-size:13px;
  box-shadow:0 12px 30px -8px rgba(0,0,0,.4); transition:.25s; z-index:50}
.toast.show{opacity:1; transform:translate(-50%,0)}

/* ---------- Responsive ---------- */

/* Tablet / small laptop: single-column hero, 2-up grids, hamburger nav. */
@media (max-width:940px){
  .hero{padding:56px 0 44px}
  .hero .wrap{grid-template-columns:1fr; gap:24px}
  .hero h1{font-size:clamp(30px,7vw,46px); margin:12px 0 14px}
  .hero p{font-size:16px; margin-bottom:22px}
  /* Stacked: the image spans the column at its natural aspect — no tall fixed box. */
  .hero-art{max-width:none}
  .hero-art.has-img{height:auto; width:100%; justify-self:stretch}
  .hero-art.has-img img{width:100%; height:auto}
  .pdp{grid-template-columns:1fr; gap:26px; padding:32px 0}
  .prod-grid,.prod-grid.cols-3{grid-template-columns:repeat(2,1fr); gap:16px}
  .cat-grid{grid-template-columns:repeat(2,1fr); gap:14px}
  .site-footer .cols{grid-template-columns:1fr 1fr; gap:24px}
  .section{padding:46px 0}
  .section-head{flex-wrap:wrap; gap:10px; margin-bottom:22px}
  .section-head h2{font-size:26px}
  .page-band{padding:36px 0 28px}
  .page-band h1{font-size:30px}

  /* Header: brand left, [cart + hamburger] right (hamburger last, not floating mid-row). */
  .nav{gap:12px}
  .brand{margin-right:auto}
  .nav-actions{order:2; gap:10px}
  .nav-toggle{order:3; display:block}
  .nav-links{position:absolute; top:66px; left:0; right:0; background:var(--panel); border-bottom:1px solid var(--line);
    flex-direction:column; align-items:flex-start; gap:0; padding:8px 24px; display:none; z-index:39}
  .nav-links.open{display:flex}
  .nav-links a{width:100%; padding:12px 0; border-bottom:1px solid var(--line-soft)}
}

/* Phone: single-column everything, larger tap targets, tighter type + spacing. */
@media (max-width:640px){
  .wrap{padding:0 18px}
  .wa-link{display:none}              /* the floating WhatsApp button + menu already cover this */
  .l-name{font-size:21px}
  .brand .logo .l-studio{font-size:13px}
  .basket-link{padding:8px 13px}
  .hero{padding:40px 0 34px}
  .hero h1{font-size:29px}
  .hero-cta{flex-direction:column; align-items:stretch; gap:10px}
  .hero-cta .btn{width:100%}
  .prod-grid,.prod-grid.cols-3,.cat-grid{grid-template-columns:1fr; gap:14px}
  .cat-tile{aspect-ratio:16/10}       /* full-width category banners read better wide than tall */
  .field-row{grid-template-columns:1fr}
  .section{padding:34px 0}
  .section-head h2{font-size:24px}
  .page-band h1{font-size:26px}
  .pdp-info h1{font-size:26px}
  .pdp-price{font-size:20px}
  .pdp-actions{flex-direction:column}   /* full-width, easy-to-tap Add to cart on phones */
  .pdp-actions .btn{width:100%}
  .gallery .thumbs button{width:60px}
  .total .amt{font-size:24px}
  .site-footer{margin-top:44px; padding:40px 0 26px}
  .site-footer .cols{grid-template-columns:1fr 1fr; gap:20px}
  .site-footer .fine{flex-direction:column; gap:8px}

  /* Cart & checkout: roomy tickets, bigger tap targets, no overflow. */
  .ticket{padding:18px 16px}
  .basket-line{gap:12px}
  .basket-line .bi{width:60px}
  .basket-line .bp{font-size:12.5px; white-space:nowrap}
  .qty button{width:34px; height:34px; font-size:17px}
  .qty input{width:44px; height:34px}
}

/* Very small phones: footer to a single column. */
@media (max-width:420px){
  .site-footer .cols{grid-template-columns:1fr}
}

/* Safety net: any hard-coded multi-column inline grid (checkout, contact, product editor,
   etc.) collapses to a single column on narrow screens so nothing overflows the viewport. */
@media (max-width:820px){
  [style*="grid-template-columns"]{grid-template-columns:1fr !important}
}
/* Never let a stray wide element cause horizontal scrolling of the whole page.
   `clip` contains overflow without creating a scroll container, so it won't break the
   sticky header/sidebar the way overflow-x:hidden would. */
body{overflow-x:clip}

/* ==========================================================================
   Mobile purchase flow
   Phones are the main way people browse and buy here, so product, curtain, cart and
   checkout get first-class treatment: the price and the primary action are always within
   thumb reach, taps are big enough, and nothing sits in two squeezed columns.
   ========================================================================== */

/* Two-column purchase layouts (cart, checkout) that collapse cleanly. */
.buy-grid{display:grid; grid-template-columns:1.6fr .9fr; gap:32px; align-items:start}
.buy-grid.checkout{grid-template-columns:1.2fr .8fr}

/* The sticky action bar is a phone-only device — desktop keeps the in-page button. */
.buy-bar{display:none}

@media (max-width:900px){
  .buy-grid,.buy-grid.checkout{grid-template-columns:1fr; gap:16px}

  .buy-bar{position:fixed; left:0; right:0; bottom:0; z-index:55; display:flex; align-items:center; gap:14px;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    background:rgba(251,250,247,.97); backdrop-filter:blur(10px); border-top:1px solid var(--line);
    box-shadow:0 -10px 26px -20px rgba(35,32,28,.9)}
  .buy-bar .bb-info{flex:1; min-width:0}
  .buy-bar .bb-k{display:block; font-size:9.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted)}
  .buy-bar .bb-v{display:block; font-family:"IBM Plex Mono",monospace; font-size:16px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .buy-bar .btn{flex:0 0 auto; min-height:48px; padding:13px 22px; font-size:15px}
  .buy-bar .btn[disabled]{opacity:.45}
  /* room for the bar, and lift the things that live in that corner */
  body.has-buy-bar{padding-bottom:88px}
  body.has-buy-bar .wa-fab{bottom:calc(86px + env(safe-area-inset-bottom))}
  body.has-buy-bar .toast{bottom:calc(98px + env(safe-area-inset-bottom))}
  body.has-buy-bar .pdp-actions{display:none}      /* the bar IS the action now — don't show it twice */
  body.has-buy-bar .hide-when-bar{display:none}    /* ...same for in-flow buttons the bar duplicates */

  /* Tap targets and iOS keyboards: 16px inputs stop Safari zooming the page on focus. */
  .field input,.field textarea,.field select{font-size:16px; padding:13px 14px}
  .btn{min-height:46px; padding:13px 20px}
  .btn.sm{min-height:38px; padding:9px 14px}
  .qty{border-radius:10px}
  .qty button{width:44px; height:44px; font-size:19px}
  .qty input{width:54px; height:44px; font-size:16px}

  /* Gallery: photo capped so it never eats the screen; thumbs swipe sideways. */
  .gallery .main,.gallery .main img{max-height:min(56vh,460px)}
  .gallery .thumbs{overflow-x:auto; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; padding-bottom:2px}
  .gallery .thumbs::-webkit-scrollbar{display:none}
  .gallery .thumbs button{flex:0 0 auto; scroll-snap-align:start}

  .ticket{padding:16px 15px; border-radius:12px}
  .basket-line{gap:12px; padding:12px 0}
  .basket-line .bi{width:58px}
  .spec-list li{font-size:13.5px}
}
