/* shop.css: magazin, collections, product pages, cart, checkout, confirmation. Owned by the SHOP agent.
   Builds on tokens.css / base.css / components.css / hero.css; never redefines their classes (additions listed in SHOP_NEEDS.md).
   Card language = DESIGN.md 11 (VineWinner): ONE product backdrop behind every bottle, 16px cards, 999px pills.
   UI micro-motion only here (class A): transform / opacity / colour, <300ms, ease-out, never from scale(0), no `transition: all`. */



/* pages without a photo hero clear the fixed header (same values as content.css .page-top, scoped here) */
body[data-shop] .page-top{padding-top:calc(var(--header-h) + env(safe-area-inset-top,0px) + clamp(16px,4vh,48px))}
body[data-shop] .crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:0 .55em;font-size:var(--fs-small);letter-spacing:.08em;color:var(--ink-muted);margin:0 0 clamp(8px,1.6vh,16px)}
body[data-shop] .crumbs a{color:var(--ink-muted);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;transition:color var(--t-ui) var(--ease-out)}
body[data-shop] .crumbs a:hover{color:var(--ink)}
body[data-shop] .crumbs [aria-current]{color:var(--ink)}
.cat-title{font-size:clamp(36px,5vw,72px);line-height:1.02;margin:0 0 clamp(28px,5vh,56px)}

/* ---------- buttons added by the shop ---------- */
.btn--line{border-color:var(--hairline-strong);color:var(--ink);background:transparent}
.btn--line:hover{border-color:var(--ink-muted);background:rgba(243,236,224,.06)}
.btn.is-loading .btn__label{opacity:.55}
.btn.is-added{border-color:var(--accent)}
.linkbtn{background:none;border:0;padding:0 4px;min-height:44px;color:var(--accent);font:600 12.5px/1 var(--font-body);letter-spacing:.12em;text-transform:uppercase;
  transition:color var(--t-ui) var(--ease-out)}
.linkbtn:hover{color:var(--accent-hover)}
.linkbtn[hidden]{display:none}

/* ---------- filter bar: pill dropdowns (DESIGN.md 11.4) ---------- */
.shop{position:relative;z-index:2}

.cat{position:relative}
/* loop 1: air between the hero's last line and the filter bar (inside the section, so the film cut stays a cut) */
.shop .cat{padding-top:clamp(40px,7vh,72px)}
.page-top .cat{padding-top:0}
.fbar{position:relative;z-index:5}
.fbar__scroll,.cbar__scroll{display:flex;gap:8px;align-items:center;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  margin:0 calc(-1 * var(--gutter));padding:2px var(--gutter);scroll-padding:0 var(--gutter)}
.fbar__scroll::-webkit-scrollbar,.cbar__scroll::-webkit-scrollbar{display:none}
.fpill{flex:none}
/* loop 1: the reference's filter row is ONE segmented bar (shared hairline, dividers), not loose pills; sort stays apart */
.fseg{display:flex;flex:none;border:1px solid var(--hairline);border-radius:var(--r-s);background:rgba(243,236,224,.025);overflow:hidden}
.fseg .fpill+.fpill{border-left:1px solid var(--hairline)}
.fseg .fpill__btn{border:0;border-radius:0;background:transparent;min-height:46px;padding:0 18px 0 20px}
.fseg .fpill__btn:hover,.fseg .fpill__btn[aria-expanded="true"]{background:rgba(243,236,224,.06)}
.fseg .fpill__btn.is-active{box-shadow:inset 0 -2px 0 var(--accent)}
@media (min-width:1100px){.fseg{flex:1 1 auto;max-width:880px}.fseg .fpill{flex:1 1 0}.fseg .fpill__btn{width:100%;justify-content:center}}
.fpill--sort{margin-left:auto}
.fpill__btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px 0 18px;border-radius:var(--r-pill);border:1px solid var(--hairline);
  background:rgba(243,236,224,.035);color:var(--ink);font:400 14px/1 var(--font-body);letter-spacing:.01em;white-space:nowrap;
  transition:background-color var(--t-ui) var(--ease-out),border-color var(--t-ui) var(--ease-out)}
.fpill__btn:hover{background:rgba(243,236,224,.07);border-color:var(--hairline-strong)}
.fpill__btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;opacity:.7;transition:transform var(--t-ui) var(--ease-out)}
.fpill__btn[aria-expanded="true"]{border-color:var(--ink-faint);background:rgba(243,236,224,.07)}
.fpill__btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.fpill__btn.is-active{border-color:var(--accent)}
.fpill__n{display:none;min-width:20px;height:20px;padding:0 6px;border-radius:var(--r-pill);background:var(--accent);color:var(--on-accent);font:600 11px/20px var(--font-body);text-align:center}
.fpill__btn.is-active .fpill__n{display:inline-block}

.fpop{position:absolute;z-index:6;min-width:220px;max-width:min(320px,calc(100vw - 2 * var(--gutter)));max-height:min(360px,60svh);overflow:auto;
  padding:8px;border-radius:var(--r-card);background:var(--surface);border:1px solid var(--hairline-strong);box-shadow:0 18px 50px rgba(0,0,0,.55);
  opacity:1;transform:none;transition:opacity 180ms var(--ease-out),transform 180ms var(--ease-out)}
@starting-style{.fpop{opacity:0;transform:translateY(-4px)}}
.fpop[hidden]{display:none}
.fpop__list{list-style:none;margin:0;padding:0}
.fopt{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:10px;cursor:pointer;font-size:14.5px;color:var(--ink);
  transition:background-color var(--t-fast) var(--ease-out)}
.fopt:hover{background:var(--surface-2)}
.fopt input{width:18px;height:18px;margin:0;accent-color:var(--accent);flex:none}
.fopt__n{margin-left:auto;color:var(--ink-muted);font-size:13px}

.cbar{margin-top:12px}
/* loop 1: one quiet row everywhere (a second wrapped line read as noise); a soft edge says it scrolls when it does not fit */
.cbar__scroll{gap:2px}
@media (max-width:1439px){.cbar__scroll{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent)}}
.cbar__scroll{list-style:none;margin-top:0;margin-bottom:0}
.cbar li{flex:none}
.cpill{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;border-radius:var(--r-pill);color:var(--ink-muted);text-decoration:none;
  font-size:13.5px;white-space:nowrap;border:1px solid transparent;transition:color var(--t-ui) var(--ease-out),border-color var(--t-ui) var(--ease-out)}
a.cpill:hover{color:var(--ink);border-color:var(--hairline)}
.cpill[aria-current="page"]{color:var(--ink);border-color:var(--hairline-strong);background:rgba(243,236,224,.04)}
.cpill.is-empty{color:var(--ink-muted);opacity:.62;cursor:default}
.cpill__n{font-size:12px;color:var(--ink-muted)}

.cat__status{display:flex;align-items:center;gap:16px;min-height:44px;margin:clamp(16px,3vh,28px) 0 clamp(14px,2vh,20px)}
.cat__count{font-size:13.5px;letter-spacing:.01em;color:var(--ink-muted)}
.cat__empty{padding:clamp(48px,10vh,120px) 0;text-align:center;display:grid;justify-items:center;gap:22px;color:var(--ink-muted)}
.cat__empty[hidden]{display:none}

/* ---------- grid 4 / 2 / 1 with one 2x2 featured tile (DESIGN.md 11.3) ---------- */
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(30px,4vh,44px) clamp(10px,.9vw,14px);grid-auto-flow:row dense}
.tile--feat{grid-column:span 2;grid-row:span 2;display:flex;flex-direction:column}
.tile--feat .stage{flex:1 1 auto;aspect-ratio:auto;min-height:0}
/* :not([hidden]) on every rule below that sets display: a hidden tile is filtered out (C-20260925-102),
   and `.grid.is-flat .tile--feat` (3 classes) is more specific than `.tile[hidden]` (class + attribute,
   2) -- without the guard the flat-mode override for the featured tile wins the cascade and the
   filtered-out 140 lei bottle stays on screen no matter which colour/facet excludes it. */
.grid.is-flat .tile--feat:not([hidden]){grid-column:auto;grid-row:auto;display:block}
.grid.is-flat .tile--feat .stage{aspect-ratio:4/5}
.grid--related{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1100px){.grid,.grid--related{grid-template-columns:repeat(2,minmax(0,1fr))}}

.tile[hidden]{display:none}

/* ---------- THE product backdrop (one for every bottle, DESIGN.md 11.3): base rules live in components.css (.stage, __light, __floor, __bottle, __tags); shop extras below ---------- */
/* packages are photographs: they sit on the same backdrop as an inset print (their short description repeats the
   long one in the source, so the product page shows the structured blocks only) */
.stage__photo{position:absolute;z-index:2;left:9%;right:9%;top:50%;width:82%;height:auto;border-radius:12px;transform:translateY(-54%);
  box-shadow:0 22px 44px rgba(0,0,0,.5);transition:transform var(--t-tile) var(--ease-out);pointer-events:none}
.stage--pkg .stage__floor{display:none}
.stage__tags--r{left:auto;right:16px;align-items:flex-end;top:16px}
.tag{display:inline-flex;align-items:center;min-height:26px;padding:0 11px;border-radius:var(--r-pill);background:rgba(243,236,224,.1);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:var(--ink);font:600 11.5px/1 var(--font-body);letter-spacing:.02em}
.fav{position:absolute;z-index:5;top:6px;right:6px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:var(--r-pill);background:transparent;color:var(--ink);
  transition:color var(--t-ui) var(--ease-out),transform var(--t-ui) var(--ease-out)}
.fav svg{width:20px;height:20px;transition:fill var(--t-ui) var(--ease-out)}
.fav:hover{transform:scale(1.06)}
.fav:active{transform:scale(.96)}
.fav[aria-pressed="true"]{color:var(--accent)}
.fav[aria-pressed="true"] svg{fill:currentColor}
.dots{position:absolute;z-index:4;left:18px;bottom:18px;display:flex;gap:6px}
.dots--static i{display:block;width:5px;height:5px;border-radius:50%;background:rgba(243,236,224,.3)}
.dots--static i.on{background:var(--ink)}

/* tile */
.tile{position:relative;min-width:0;isolation:isolate}
.tile__link{position:absolute;inset:0;z-index:3;border-radius:var(--r-card)} /* the whole tile (stage + name + price) is one target */
.tile__link:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
@media (hover:hover) and (pointer:fine){
  .tile:hover .stage__bottle{transform:translateX(-50%) scale(1.03)}
  .tile:hover .stage__photo{transform:translateY(-54%) scale(1.02)}
  .tile:hover .stage{--stage-light:rgba(243,236,224,.1)}
}
.tile__add{position:absolute;z-index:5;left:auto;right:12px;bottom:12px;min-height:44px;padding:0 18px;border-radius:var(--r-pill);background:rgba(14,11,9,.72);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:12px}
.tile__add:hover{background:rgba(14,11,9,.86)}
@media (hover:hover) and (pointer:fine){
  .tile__add{opacity:0;transform:translateY(8px);transition:opacity 200ms var(--ease-out),transform 200ms var(--ease-out),background-color var(--t-ui) var(--ease-out),border-color var(--t-ui) var(--ease-out)}
  .tile:hover .tile__add,.tile:focus-within .tile__add,.tile__add.is-added,.tile__add.is-loading{opacity:1;transform:none}
}
@media (hover:none),(pointer:coarse){
  .tile__add{right:10px;bottom:10px;padding:0 14px;font-size:12px}
}
.tile__meta{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-top:16px}
.tile__name{font:400 15px/1.35 var(--font-display);letter-spacing:.02em;margin:0;min-width:0}
.tile__name{color:var(--ink);transition:color var(--t-ui) var(--ease-out)}
@media (hover:hover) and (pointer:fine){.tile:hover .tile__name{color:var(--accent-hover)}}
.tile__price{flex:none;font:400 15px/1.3 var(--font-body);color:var(--ink);white-space:nowrap;text-align:right}
.tile__price.is-sale{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
del{color:var(--ink-muted);font-weight:400;font-size:.86em;text-decoration-thickness:1px}
ins{text-decoration:none;color:var(--ink)}
.tile__sub,.tile__year{font-size:13.5px;line-height:1.45;color:var(--ink-muted)}
.tile__sub{margin-top:6px}
.tile__year{margin-top:0}
.tile__stock{margin-top:4px;font-size:12.5px;line-height:1.4;color:var(--ink-muted)}
.tile__stock.is-low{color:var(--accent-hover)}
.tile--feat .tile__name{font-size:clamp(18px,1.5vw,22px)}

/* ---------- product page (DESIGN.md 11.5): 50/50 panel floating over a blurred own-plane still ---------- */
.pdp-sec{position:relative;isolation:isolate}
.pdp-bg{position:absolute;inset:0 0 auto 0;height:min(100%,1400px);z-index:-1;overflow:hidden;pointer-events:none}
.pdp-bg img{width:100%;height:100%;object-fit:cover;filter:blur(12px) saturate(.9);transform:scale(1.08)}
.pdp-bg::after{content:"";position:absolute;inset:0;background:
  linear-gradient(to bottom,rgba(14,11,9,.4) 0%,rgba(14,11,9,.4) 45%,var(--ground-deep) 100%)}
.pdp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-radius:var(--r-card);background:rgba(14,11,9,.94);border:1px solid var(--hairline);
  box-shadow:0 40px 100px rgba(0,0,0,.45);overflow:clip}
.pdp__stagecol{padding:0}
/* loop 1: the reference's stage IS the left half of the panel (no card inside the card) */
.pdp .stage--pdp{border-radius:0}
.stage--pdp{--foot:12%;--floor-blur:24px;position:sticky;top:var(--header-h);aspect-ratio:auto;height:min(calc(100svh - var(--header-h)),880px);min-height:460px}
.stage--pdp .stage__bottle{height:75.8%}
.stage--pdp .stage__photo{left:6%;right:6%;width:88%}
.stage__slide{position:absolute;inset:0;opacity:0;transition:opacity 240ms var(--ease-out)}
.stage__slide.is-on{opacity:1}
.stage__slide--photo img{width:100%;height:100%;object-fit:cover}
.stage--pdp .dots{bottom:14px;gap:0}
.stage--pdp .dots button{display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;padding:0}
.stage--pdp .dots i{display:block;width:6px;height:6px;border-radius:50%;background:rgba(243,236,224,.32);transition:background-color var(--t-ui) var(--ease-out),transform var(--t-ui) var(--ease-out)}
.stage--pdp .dots button[aria-current="true"] i{background:var(--ink);transform:scale(1.15)}
.pdp__back{position:absolute;z-index:5;top:8px;left:12px;display:inline-flex;align-items:center;min-height:44px;padding:0 8px;color:var(--ink-muted);text-decoration:none;font-size:13.5px;
  transition:color var(--t-ui) var(--ease-out)}
.pdp__back:hover{color:var(--ink)}
.pdp__info{padding:clamp(28px,4vw,64px) clamp(22px,4vw,64px) clamp(36px,5vw,72px)}
.pdp__head{display:flex;align-items:flex-start;gap:16px}
.pdp__name{font-size:clamp(24px,2.1vw,34px);line-height:1.14;letter-spacing:.02em;flex:1;min-width:0}
.fav--pdp{position:static;flex:none;border:1px solid var(--hairline);border-radius:12px;margin-top:2px}
.pdp__range{margin-top:12px;font-size:15px;color:var(--ink-muted)}
.pdp__price{margin-top:14px;font:600 22px/1.3 var(--font-body);color:var(--ink);display:flex;gap:12px;align-items:baseline}
.pdp__stock{margin-top:6px;font-size:13.5px;color:var(--ink-muted)}
.pdp__stock.is-low{color:var(--accent-hover)}
.specs{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:6px;font-size:14.5px}
.spec__k{color:var(--ink)}
.spec__v{color:var(--ink-muted)}
.pdp__sku{margin-top:6px;font-size:14.5px}
.pdp__short{margin-top:22px;color:var(--ink-muted);line-height:1.7;max-width:60ch}
.buy{display:flex;gap:12px;margin-top:30px}
.qty{display:inline-flex;align-items:center;flex:none;height:52px;border:1px solid var(--hairline-strong);border-radius:var(--r-s)}
.qty__b{display:grid;place-items:center;width:44px;height:50px;border:0;background:transparent;color:var(--ink);transition:opacity var(--t-ui) var(--ease-out)}
.qty__b svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
.qty__b:disabled{opacity:.3;cursor:default}
.qty input{width:44px;height:50px;border:0;background:transparent;text-align:center;font-size:15px;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}
.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.btn--buy{flex:1;min-height:52px}
.pdp__min{margin-top:10px;font-size:12.5px;letter-spacing:.08em;color:var(--ink-muted)}
.pdp__h{font:600 12.5px/1 var(--font-body);letter-spacing:var(--track-eyebrow);text-transform:uppercase;color:var(--accent);margin:0 0 18px}
.pdp__desc,.pdp__sheet,.pdp__awards{margin-top:clamp(40px,6vh,64px);padding-top:clamp(28px,4vh,40px);border-top:1px solid var(--hairline)}
.dblock+.dblock{margin-top:22px}
.dblock__t{font:600 15px/1.3 var(--font-body);letter-spacing:.01em;color:var(--ink);margin:0 0 6px}
.dblock p,.dpara{color:var(--ink-muted);line-height:1.72;max-width:62ch}
.dpara+.dpara{margin-top:14px}
.tsheet{margin:0;display:grid}
.tsheet__row{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--hairline);font-size:14.5px}
.tsheet dt{color:var(--ink)}
.tsheet dd{margin:0;color:var(--ink-muted)}
.awards{list-style:none;margin:0;padding:0;display:grid;gap:10px;color:var(--ink-muted);font-size:14.5px}
.awards li{display:flex;gap:12px;align-items:baseline}
.awards li::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--accent);transform:translateY(-2px)}

/* load entrance (UI class): stage fades up, details follow in a short stagger; reduced motion resolves instantly (base.css) */
@keyframes shopIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.pdp__stagecol,.pdp__info>*{animation:shopIn 280ms var(--ease-out) both}
/* reference (VineWinner product open): the bottle lands first, the details follow block by block, top to bottom */
.pdp__info>*{animation-delay:calc(120ms + var(--k,6) * 45ms)}
.pdp__info>:nth-child(1){--k:0}.pdp__info>:nth-child(2){--k:1}.pdp__info>:nth-child(3){--k:2}.pdp__info>:nth-child(4){--k:3}
.pdp__info>:nth-child(5){--k:4}.pdp__info>:nth-child(6){--k:5}.pdp__info>:nth-child(7){--k:6}.pdp__info>:nth-child(8){--k:7}

@media (max-width:900px){
  .pdp{grid-template-columns:1fr}
  .stage--pdp{position:relative;top:auto;height:auto;min-height:0;aspect-ratio:4/5;max-height:72svh;width:100%}
  .pdp__info{padding:26px 18px 40px}
}
@media (max-height:520px) and (orientation:landscape){
  .pdp{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
  .stage--pdp{position:sticky;top:calc(var(--header-h) + 8px);aspect-ratio:auto;height:calc(100svh - var(--header-h) - 20px - var(--bars));min-height:0;max-height:none}
  .pdp__info{padding:22px 22px 32px}
}
.related .sec-head{margin-bottom:clamp(28px,5vh,52px)}

/* ---------- cart ---------- */
.cart__grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:clamp(28px,4vw,64px);align-items:start}
.cart__grid[hidden],.cart__empty[hidden],.co[hidden]{display:none}
.cart__empty{display:grid;justify-items:start;gap:26px;padding:clamp(16px,4vh,40px) 0}
.clines{list-style:none;margin:0;padding:0;border-top:1px solid var(--hairline)}
.cline{display:grid;grid-template-columns:88px minmax(0,1fr) auto 44px;gap:18px 20px;align-items:center;padding:18px 0;border-bottom:1px solid var(--hairline);
  transition:opacity 180ms var(--ease-out),transform 180ms var(--ease-out)}
.cline.is-leaving{opacity:0;transform:translateX(-8px)}
.stage--xs{--foot:10%;--floor-blur:6px;display:block;width:88px;aspect-ratio:4/5;border-radius:12px}
.stage--xs img{position:absolute;left:50%;bottom:8%;height:80%;width:auto;transform:translateX(-50%);max-width:none}
.stage--xs.stage--photo img{left:0;bottom:auto;top:0;width:100%;height:100%;object-fit:cover;transform:none}
.cline__img{display:block;border-radius:12px}
.cline__name{display:inline-flex;align-items:center;min-height:44px;font:400 16px/1.3 var(--font-display);letter-spacing:.02em;color:var(--ink);text-decoration:none}
.cline__name:hover{color:var(--accent-hover)}
.cline__unit{margin:0 0 10px;font-size:14px;color:var(--ink-muted)}
.cline__note{font-size:12px;letter-spacing:.06em}
.cline .qty{height:46px}
.cline .qty__b,.cline .qty input{height:44px}
.cline__total{font:600 15.5px/1 var(--font-body);white-space:nowrap}
.cline__rm{color:var(--ink-muted)}
.cline__rm:hover{color:var(--ink)}
.sum{background:var(--surface);border:1px solid var(--hairline);border-radius:var(--r-card);padding:clamp(22px,2.4vw,32px)}
.sum__t{font:400 22px/1.2 var(--font-display);margin:0 0 18px}
.sum__lines{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:10px;font-size:14px;color:var(--ink-muted)}
.sum__lines li{display:flex;justify-content:space-between;gap:16px}
.sum__lines li>span:last-child{white-space:nowrap;color:var(--ink)}
.sum__x{color:var(--ink-muted);white-space:nowrap}
.sum__rows{margin:0;display:grid}
.sum__rows>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--hairline);font-size:14.5px}
.sum__rows dt{color:var(--ink-muted)}
.sum__rows dd{margin:0;text-align:right}
.sum__total{font-size:17px!important;font-weight:600}
.sum__total dt{color:var(--ink)!important}
.sum__note{margin:16px 0 0;font-size:13.5px;line-height:1.5;color:var(--ink-muted)}
.sum__note[hidden]{display:none}
.sum .btn--block{margin-top:20px}
.state--error{padding:14px 18px;border-radius:var(--r-s);border:1px solid var(--error);color:var(--error);margin-bottom:24px}
.state[hidden]{display:none}
@media (max-width:900px){.cart__grid{grid-template-columns:1fr}}
@media (max-width:560px){
  .cline{grid-template-columns:72px minmax(0,1fr) 44px;grid-template-areas:"img main rm" "img total total";gap:8px 14px}
  .cline__img{grid-area:img;align-self:start}
  .stage--xs{width:72px}
  .cline__main{grid-area:main}
  .cline__total{grid-area:total;justify-self:end}
  .cline__rm{grid-area:rm;align-self:start}
}

/* ---------- checkout ---------- */
.co{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:clamp(28px,4vw,72px);align-items:start}
.co__side{position:sticky;top:calc(var(--header-h) + 20px)}
.co__set{border:0;margin:0 0 clamp(28px,4vh,40px);padding:0;min-width:0}
.co__set[hidden]{display:none}
.co__set legend{font:400 clamp(22px,2vw,28px)/1.2 var(--font-display);margin:0 0 20px;padding:0}
.co__fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px}
.co__fields .field{grid-column:1/-1}
.co__fields .field--half{grid-column:auto}
.co__fields .field+.field{margin-top:0}
.field abbr{text-decoration:none;color:var(--accent)}
.field .opt{text-transform:none;letter-spacing:0;font-weight:400;color:var(--ink-muted)}
.field select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3ece0' stroke-width='1.5'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:18px;padding-right:44px}
.field select option{background:var(--surface);color:var(--ink)}
.field.is-invalid select{border-color:var(--error)}
.co__ship-toggle,.co__terms{margin:0 0 clamp(24px,3vh,32px)}
.check-field.is-invalid .check{color:var(--error)}
.check a{color:var(--ink)}
.check{min-height:44px;align-items:center}
.opt-card{display:flex;gap:14px;align-items:flex-start;padding:18px;border:1px solid var(--hairline-strong);border-radius:var(--r-s);background:var(--surface);cursor:pointer}
.opt-card input{width:18px;height:18px;margin:3px 0 0;accent-color:var(--accent);flex:none}
.opt-card strong{display:block;font-weight:600;font-size:15px}
.opt-card small{display:block;margin-top:4px;font-size:13.5px;line-height:1.5;color:var(--ink-muted)}
.pay{padding:20px;border:1px solid var(--hairline-strong);border-radius:var(--r-s);background:var(--surface);display:grid;gap:16px;justify-items:start}
.pay__txt{font-size:14px;line-height:1.6;color:var(--ink-muted)}
.pay__btn svg{width:18px;height:18px}
.co__err{display:flex;align-items:center;gap:12px;padding:14px 18px;margin-bottom:24px;border-radius:var(--r-s);border:1px solid var(--error);color:var(--error);font-size:14.5px}
.co__err[hidden]{display:none}
.co__submit{min-height:56px}
@media (max-width:900px){.co{grid-template-columns:1fr}.co__side{position:static;order:-1}}
@media (max-width:560px){.co__fields{grid-template-columns:1fr}.co__fields .field--half{grid-column:1/-1}}

/* modal (Stripe demo) */
.modal{position:fixed;inset:0;z-index:var(--z-drawer);display:grid;place-items:center;padding:20px;background:rgba(8,6,5,.66);opacity:0;transition:opacity 200ms var(--ease-out)}
.modal[hidden]{display:none}
.modal.is-open{opacity:1}
.modal__panel{width:min(440px,100%);padding:28px;border-radius:var(--r-card);background:var(--surface);border:1px solid var(--hairline-strong);box-shadow:0 30px 80px rgba(0,0,0,.6);
  display:grid;gap:16px;justify-items:start;color:var(--ink-muted);transform:translateY(8px) scale(.98);transition:transform 220ms var(--ease-out)}
.modal.is-open .modal__panel{transform:none}
.modal__t{font:400 24px/1.2 var(--font-display);color:var(--ink)}

/* confirmation */
.wrap--confirm{max-width:760px}
.order-meta{list-style:none;margin:0 0 28px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.order-meta li{padding:16px 18px;border:1px solid var(--hairline);border-radius:var(--r-s);display:grid;gap:6px;min-width:0}
.order-meta span{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-muted)}
.order-meta strong{font-weight:600;overflow-wrap:anywhere}
.confirm .sum{margin-bottom:28px}
@media (max-width:560px){.order-meta{grid-template-columns:1fr}}

/* phones and short landscape: the stage carries "Înapoi la magazin", so the breadcrumb goes (reference mobile product page) */
@media (max-width:560px),(max-height:520px) and (orientation:landscape){body[data-shop] .pdp-sec .crumbs{display:none}}

/* C-20260925-84: tablets (2 columns, DESIGN.md 11.3): the featured tile spans the whole row, so no neighbour gives its two rows a height and its
   flex stage collapsed to 0 px (only the name was left, floating above the grid). It becomes one full-width row with its own proportion. */
@media (min-width:561px) and (max-width:1100px) and (min-height:521px){
  .tile--feat{grid-column:1/-1;grid-row:auto;display:block}
  .tile--feat .stage{aspect-ratio:16/10}
  .grid.is-flat .tile--feat{grid-column:auto}
  .grid.is-flat .tile--feat .stage{aspect-ratio:4/5}
}

/* ---------- phones (kept last so it wins over the base tile rules above) ---------- */
@media (max-width:560px){
  /* phones: 2 columns (Alfred 2026-09-25: halves the scroll), the featured tile spans both columns */
  .grid,.grid--related{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 10px}
  .tile--feat,.grid.is-flat .tile--feat:not([hidden]){grid-column:1/-1;grid-row:auto;display:block}
  .tile--feat .stage,.grid.is-flat .tile--feat .stage{aspect-ratio:1/1}
  .grid.is-flat .tile--feat{grid-column:auto}
  .grid.is-flat .tile--feat .stage{aspect-ratio:4/5}
  .stage__tags{top:10px;left:10px}
  .tag{min-height:24px;padding:0 9px;font-size:11px}
  .fav{top:2px;right:2px}
  .dots{left:14px;bottom:14px}
}


/* loop 1: phones on their side read the grid like a small desktop (2 columns made one bottle taller than the screen) */
@media (max-height:520px) and (orientation:landscape) and (min-width:700px){
  .grid,.grid--related{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 10px}
}

/* loop 1: narrow tiles (phones, landscape phones, anything under 250px wide) get the reference's compact card:
   name max 2 lines, price under it, one-line variety, and an icon-only add button that leaves the bottle visible */
.tile{container-type:inline-size}
.tile__add-ic{display:none;width:20px;height:20px}
@container (max-width:250px){
  .tile__meta{display:block;margin-top:12px}
  .tile__name{font-size:14px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .tile__price{text-align:left;margin-top:4px;font-size:14px}
  .tile__price.is-sale{flex-direction:row;align-items:baseline;gap:8px}
  .tile__sub{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden} /* C-20260925-74: was one line with an ellipsis that cut variety names mid-word ("Fetea…") */
  .tile__sub,.tile__year{font-size:12.5px}
  .tile__add{width:44px;min-width:44px;padding:0;right:8px;bottom:8px;border-radius:var(--r-pill)}
  .tile__add .btn__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tile__add-ic{display:block}
}

/* loop 2: the reference's phone product page is full-bleed: stage straight under the header, no panel margins, no blurred strip */
@media (max-width:560px){
  body[data-shop] .pdp-sec.page-top{padding-top:var(--header-h)}
  .pdp-sec>.wrap{padding-left:0;padding-right:0}
  .pdp{border-radius:0;border-left:0;border-right:0;box-shadow:none}
  .pdp-bg{display:none}
  .stage--pdp{max-height:66svh}
  .pdp__name{font-size:23px}
  .pdp__info{padding:24px 20px 40px}
}
/* C-20260925-76: the confirmation empty state keeps the same breathing room as the empty cart (the button sat on the sentence) */
[data-order-none] .lede{margin:0 0 26px}

/* ---------- C-20260925-91: swipeable gallery on tiles and on the product stage ----------
   A native scroll-snap track (iOS momentum, vertical page scroll left to the browser: touch-action pan-x pan-y, no hijack).
   On tiles the track sits above .tile__link (z 3, later in the DOM); shop.js turns a tap (< 8 px movement) into the link. */
.stage__track{position:absolute;inset:0;z-index:3;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
  scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;border-radius:inherit;
  -webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.stage__track::-webkit-scrollbar{display:none}
.stage__track>.stage__slide{position:relative;inset:auto;flex:0 0 100%;width:100%;height:100%;opacity:1;transition:none;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden}
.stage__track.is-drag,.stage__track.is-anim{scroll-snap-type:none}
.stage__track img{-webkit-user-drag:none;user-drag:none}
@media (hover:hover) and (pointer:fine){.stage__track{cursor:grab}.stage--tile .stage__track{cursor:pointer}.stage__track.is-drag{cursor:grabbing}}
.stage__slide--photo img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.stage__slide--photo{background:var(--surface)}

/* tile dots are pointer targets now (the tile itself stays the keyboard/AT path); they follow the track */
.dots--tile{z-index:6;left:8px;bottom:6px;gap:0}
.dots--tile button{display:grid;place-items:center;width:22px;height:34px;border:0;background:transparent;padding:0;cursor:pointer}
.has-gallery .dots i{display:block;width:6px;height:6px;border-radius:50%;background:rgba(243,236,224,.32);
  transition:background-color var(--t-ui) var(--ease-out),transform var(--t-ui) var(--ease-out)}
.has-gallery .dots button[aria-current="true"] i{background:var(--ink);transform:scale(1.15)}
.stage--pdp.has-gallery .dots{z-index:6}
@media (max-width:560px){.dots--tile{left:6px;bottom:4px}}
@media (prefers-reduced-motion:reduce){.has-gallery .dots i{transition:none}}

/* ---------- C-20260925-92: dot row readable on every photo ----------
   A dark scrim under the dot row inside each photo slide (the bottle slide is already dark, and a scrim there would
   shade the bottle's foot); active dot cream, inactive cream 50 %, 1 px dark hairline halo. */
.stage__slide--photo::after{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--dot-scrim-h,72px);pointer-events:none;
  background:linear-gradient(to top,rgba(10,8,6,.7) 0%,rgba(10,8,6,.6) 45%,rgba(10,8,6,.24) 75%,rgba(10,8,6,0) 100%)}
.stage--pdp{--dot-scrim-h:104px}
.has-gallery .dots i{background:rgba(243,236,224,.5);box-shadow:0 0 0 1px rgba(10,8,6,.55)}
.has-gallery .dots button[aria-current="true"] i{background:var(--ink)}
/* tiles never showed photos before the swipe; on a light photo the tile's own chrome (heart, "Premiat"/"Reducere"
   pills) lost its ground, so the photo slides of a TILE get the same scrim at the top edge (product page unchanged) */
.stage--tile .stage__slide--photo::before{content:"";position:absolute;left:0;right:0;top:0;height:72px;pointer-events:none;z-index:1;
  background:linear-gradient(to bottom,rgba(10,8,6,.5) 0%,rgba(10,8,6,.3) 45%,rgba(10,8,6,0) 100%)}
