/* .shop - where available, featured trio, the range (01-layout section 8; ref-19..21, refm-13).
   Container max 1280, padding 120/32 (mobile 80/20). Stockist grid dropped (no stockists yet,
   04-copy). No literal colours: tokens and band variables only. */

.shop{ --local-card-line:var(--line-strong); }
.shop .shop-inner{ max-width:var(--container-shop); margin-inline:auto; padding:var(--space-30) var(--space-8); }

/* head */
.shop .shop-title{ margin-top:var(--space-4); max-width:980px; }

/* coming soon */
.shop .shop-soon{ margin-top:var(--space-20); text-align:center; }
.shop .shop-soon-label{ font-size:13px; letter-spacing:.32em; color:var(--fg-2); }
.shop .shop-soon-list{
  margin-top:var(--space-5); display:flex; flex-wrap:wrap; justify-content:center; gap:var(--space-4) var(--space-3);
  font-size:19px; line-height:1.4; color:var(--fg-3);
}
.shop .shop-soon-list li + li::before{ content:"·"; margin-right:var(--space-3); color:var(--fg-2); }

/* "or order direct" rule */
.shop .shop-rule{
  margin-top:100px; display:flex; align-items:center; justify-content:center; gap:var(--space-5);
  font-size:12px; letter-spacing:.42em; color:var(--fg-2);
}
.shop .shop-rule::before, .shop .shop-rule::after{ content:""; width:80px; height:1px; background:var(--fg); opacity:.7; }

/* featured cards: 3-up from 768 px, one per row below (owner 2026-10-01) */
.shop .shop-cards{ margin-top:var(--space-20); display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-8); }
.shop .shop-card-wrap{ display:flex; }
.shop .shop-card{
  flex:1; display:flex; flex-direction:column; padding:var(--space-8);
  border:1px solid var(--local-card-line);
}
.shop .shop-card-media{
  position:relative; aspect-ratio:4 / 5; display:grid; place-items:center; overflow:hidden;
  background:var(--surface-2);
}
.shop .shop-card-media::after{ /* floor shadow: bottom 8%, 40% x 5% */
  content:""; position:absolute; left:30%; bottom:8%; width:40%; height:5%; z-index:0; pointer-events:none;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--ink) 22%,transparent),transparent);
}
.shop .shop-card-media img{ position:relative; z-index:1; width:78%; height:auto; aspect-ratio:1; object-fit:contain; }
.shop .shop-card-title{ margin-top:var(--space-6); display:flex; align-items:baseline; flex-wrap:wrap; gap:0 var(--space-2); line-height:1.1; }
.shop .shop-card-code{ font-family:var(--font-wordmark); font-stretch:125%; font-weight:900; font-size:22px; letter-spacing:-.02em; text-transform:uppercase; }
.shop .shop-card-dot{ color:var(--fg-2); }
.shop .shop-card-name{ font-family:var(--font-display); font-weight:500; font-size:26px; white-space:nowrap; letter-spacing:-.01em; }
.shop .shop-card-notes{ margin-top:var(--space-2); font-size:12px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--fg-2); }
.shop .shop-card-line{ margin-top:var(--space-3); font-size:14px; line-height:1.5; }
.shop .shop-card-spacer{ flex:1; min-height:24px; }
.shop .shop-card-mg{ margin:0; padding:0; border:0; min-width:0; display:flex; gap:var(--space-2); }
.shop .shop-pill{ position:relative; display:inline-flex; cursor:pointer; }
.shop .shop-pill::after{ content:""; position:absolute; inset:-4px 0; } /* 44 px hit area, visual pill 36 px (CONTRACT 3.7) */
.shop .shop-pill input{ position:absolute; inset:0; margin:0; opacity:0; cursor:pointer; }
.shop .shop-pill span{
  display:inline-flex; align-items:center; height:36px; padding-inline:16px calc(16px - .24em);
  border:1px solid var(--fg); border-radius:18px;
  font-size:12px; font-weight:600; letter-spacing:.24em; color:var(--fg);
  transition:background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.shop .shop-pill input:checked + span{ background-color:var(--fg); color:var(--surface); }
.shop .shop-pill input:focus-visible + span{ outline:2px solid var(--focus); outline-offset:2px; }
.shop .shop-card-price{ margin-top:var(--space-4); display:flex; align-items:baseline; gap:var(--space-2); }
.shop .shop-card-amount{ font-family:var(--font-wordmark); font-stretch:125%; font-weight:900; font-size:30px; line-height:1; letter-spacing:-.02em; }
.shop .shop-card-cur{ font-size:15px; color:var(--fg-2); }
.shop .shop-card-save{ margin-top:var(--space-1); font-family:var(--font-serif); font-size:14px; color:var(--fg-2); }
.shop .shop-card-cta{ margin-top:var(--space-4); width:100%; }
.shop .shop-card-cta[data-added]{ background-color:var(--accent-btn); color:var(--white); }

/* the range */
.shop .shop-range{ margin-top:var(--space-30); scroll-margin-top:var(--nav-h); }
.shop .shop-range-head, .shop .shop-bit-head{ text-align:center; }
.shop .shop-range-head .t-label, .shop .shop-bit-head .t-label{ font-size:13px; letter-spacing:.32em; }
.shop .shop-range-title, .shop .shop-bit-title{ margin-top:var(--space-4); }
.shop .shop-bit-head{ margin-top:var(--space-20); }
.shop .shop-bit-note{ margin-top:var(--space-3); color:var(--fg-2); }

.shop .shop-rows{ margin-top:var(--space-12); border-top:1px solid var(--line); }
.shop .shop-row{
  display:grid; grid-template-columns:64px minmax(0,1fr) auto 96px auto; align-items:center; gap:var(--space-6);
  padding-block:var(--space-3); border-bottom:1px solid var(--line);
}
.shop .shop-row-img{ width:64px; height:64px; object-fit:contain; }
.shop .shop-row-name{ font-family:var(--font-display); font-weight:500; font-size:24px; line-height:1.15; letter-spacing:-.01em; }
.shop .shop-row-note{ margin-top:2px; font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--fg-2); }
.shop .shop-row-mg{ display:flex; gap:var(--space-2); }
.shop .shop-badge{
  display:inline-flex; align-items:center; height:26px; padding-inline:10px calc(10px - .2em);
  border:1px solid var(--local-card-line); border-radius:var(--r-pill);
  font-size:10px; font-weight:500; letter-spacing:.2em; color:var(--fg-2); white-space:nowrap;
}
/* row strength picker (owner 2026-10-01): the card pills one size down; fieldset reset as .shop-card-mg */
.shop fieldset.shop-row-mg{ margin:0; padding:0; border:0; min-width:0; }
.shop .shop-row-mg .shop-pill span{ height:30px; padding-inline:12px calc(12px - .2em); border-radius:15px; font-size:10px; letter-spacing:.2em; }
.shop .shop-row-mg .shop-pill::after{ inset:-7px 0; } /* 44 px hit area over a 30 px pill */
.shop .shop-row-price{ font-size:18px; text-align:right; }
.shop .shop-row-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; min-width:88px;
  padding-inline:20px calc(20px - .32em); border:1px solid var(--fg); border-radius:var(--r-pill);
  font-size:12px; font-weight:500; letter-spacing:.32em; text-transform:uppercase; color:var(--fg);
  transition:background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.shop .shop-row-btn:active{ transform:scale(.97); }
.shop .shop-row-btn[data-added]{ background-color:var(--accent-btn); border-color:var(--accent-btn); color:var(--white); }

@media (hover:hover) and (pointer:fine){
  .shop .shop-row-btn:hover{ background-color:var(--fg); color:var(--surface); }
}
/* card lift scale(1.012) 300 ms + photo zoom 1.03 700 ms (CONTRACT 3.3 vocabulary); fine pointers,
   motion allowed. The card owns the transform, so the reveal sits on its wrapper li. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .shop .shop-card{ transition:transform var(--d-ui) var(--ease-out); }
  .shop .shop-card-media img{ transition:transform var(--d-bar) var(--ease-p2o); }
  .shop .shop-card:hover, .shop .shop-card:focus-within{ transform:scale(1.012); }
  .shop .shop-card:hover .shop-card-media img, .shop .shop-card:focus-within .shop-card-media img{ transform:scale(1.03); }
}
.shop .shop-row-btn:focus-visible{ background-color:var(--fg); color:var(--surface); }

@media (max-width:1023px) and (min-width:768px){
  .shop .shop-cards{ gap:var(--space-4); }
  .shop .shop-card{ padding:var(--space-5); }
  .shop .shop-card-code{ font-size:20px; }
  .shop .shop-card-name{ font-size:24px; }
}

@media (max-width:767px){
  .shop .shop-inner{ padding:var(--space-20) var(--space-5); }
  .shop .shop-soon-list{ font-size:17px; }
  .shop .shop-rule{ gap:var(--space-3); letter-spacing:.32em; }
  .shop .shop-rule::before, .shop .shop-rule::after{ flex:1; width:auto; max-width:80px; }
  /* the trio one card per row, the same card as desktop with its strength picker (owner 2026-10-01:
     "put the three one by one on screen"); the reference's three-tile strip (refm-13) is retired */
  .shop .shop-cards{ margin-top:var(--space-10); grid-template-columns:minmax(0,1fr); gap:var(--space-5); }
  .shop .shop-card-wrap{ width:100%; max-width:440px; margin-inline:auto; }
  .shop .shop-card{ padding:var(--space-6); }
  .shop .shop-range{ margin-top:var(--space-20); }

  .shop .shop-rows{ margin-top:var(--space-10); }
  .shop .shop-row{
    grid-template-columns:56px minmax(0,1fr) auto; grid-template-areas:"img text btn" "img meta meta";
    column-gap:var(--space-4); row-gap:var(--space-1);
  }
  .shop .shop-row-img{ grid-area:img; width:56px; height:56px; }
  .shop .shop-row-text{ grid-area:text; }
  .shop .shop-row-mg{ grid-area:meta; flex-wrap:wrap; align-items:center; }
  .shop .shop-row-price{ grid-area:meta; justify-self:end; align-self:center; font-size:15px; }
  .shop .shop-row-btn{ grid-area:btn; min-width:72px; padding-inline:14px calc(14px - .32em); }
  .shop .shop-row-name{ font-size:20px; }
  .shop .shop-bit-head{ margin-top:var(--space-16); }
}

/* ---------- home rework (owner 2026-10-02). Additive only: the base .shop-card / .shop-pill /
   .shop-row rules above are shared with /shop.html and stay untouched. ---------- */

/* #shop head: eyebrow + loud title left, the catalog CTA top right on the title row (owner 2026-10-02);
   foot: the short line + the note */
.shop .shop-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:var(--space-4) var(--space-12); }
.shop .shop-head-main{ min-width:0; }
.shop .shop-lede{ max-width:52ch; margin:0; color:var(--fg); }
.shop .shop-head-cta{ flex:none; }
.shop .shop-foot{
  margin-top:var(--space-8); padding-top:var(--space-6); border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-4) var(--space-8);
}
.shop .shop-foot-note{ margin:0; }

/* card fit (review 2026-10-02): the card is a flex child of its wrap, so min-width:auto let the
   unwrapped pill row push it 24 px past a 223 px tablet column; it now shrinks to the column and the
   pills wrap when they must. */
.shop .shop-card-wrap, .shop .shop-card{ min-width:0; }
.shop .shop-card-mg{ flex-wrap:wrap; }
.shop .shop-card-price{ flex-wrap:wrap; }
.shop .shop-card-media img{ max-width:100%; }

/* card title (moved from catalog.css so the home trio and the catalog share it): code, dot and name
   flow as one line of text. The only break point is the space after the code, and a name never
   splits (.shop-card-name is nowrap), so a long name drops whole to the next line. The dot sits
   12 px left of its slot and the title clips at its left edge: mid-line the dot rests in the gap
   after the code; when it would open the second line it falls outside the clip, so neither
   "RABBIT.09 ·" nor "· Gingerbread" can show. */
.shop .shop-card-title{ display:block; clip-path:inset(-1em -100vw -1em 0); }
.shop .shop-card-code{ margin-right:var(--space-3); }
.shop .shop-card-code::after{ content:" "; }
.shop .shop-card-dot{ margin-left:calc(-1 * var(--space-3)); margin-right:var(--space-2); }

/* .shop-compact: the whole section inside one desktop viewport (1440x900 and 1280x720).
   Paddings, the card photo and the type scale follow the viewport height. */
@media (min-width:768px){
  .shop.shop-compact{ min-height:100vh; display:flex; flex-direction:column; justify-content:center; }
  .shop.shop-compact .shop-inner{ width:100%; padding-block:clamp(28px,6vh,72px); }
  .shop.shop-compact .shop-title{ margin-top:var(--space-3); }
  .shop.shop-compact .shop-cards{ margin-top:clamp(20px,4vh,40px); gap:clamp(16px,2.2vw,32px); }
  .shop.shop-compact .shop-card{ padding:clamp(16px,2.2vh,24px); }
  .shop.shop-compact{ --shop-media-h:clamp(112px,20vh,210px); }
  .shop.shop-compact .shop-card-media{ aspect-ratio:auto; height:var(--shop-media-h); }
  .shop.shop-compact .shop-card-media img{ width:calc(var(--shop-media-h) * .86); }
  .shop.shop-compact .shop-card-title{ margin-top:clamp(10px,1.6vh,16px); }
  .shop.shop-compact .shop-card-code{ font-size:18px; }
  .shop.shop-compact .shop-card-name{ font-size:22px; }
  .shop.shop-compact .shop-card-notes{ margin-top:var(--space-1); }
  .shop.shop-compact .shop-card-line{ margin-top:var(--space-1); font-size:13px; }
  .shop.shop-compact .shop-card-spacer{ min-height:12px; }
  .shop.shop-compact .shop-card-price{ margin-top:var(--space-3); }
  .shop.shop-compact .shop-card-amount{ font-size:26px; }
  .shop.shop-compact .shop-card-save{ display:none; } /* "20 slim pouches per can" lives in the foot note */
  .shop.shop-compact .shop-card-cta{ margin-top:var(--space-3); }
  .shop.shop-compact .shop-foot{ margin-top:clamp(16px,3vh,32px); padding-top:clamp(12px,2vh,24px); }
}

/* short desktop viewports (a 720p screen minus browser chrome is ~633 px, review 2026-10-02): the
   section gives back paddings, photo height, title and button size so it still fits one screen */
@media (min-width:768px) and (max-height:700px){
  .shop.shop-compact{ --shop-media-h:clamp(88px,16vh,112px); }
  .shop.shop-compact .shop-inner{ padding-block:clamp(16px,3.5vh,24px); }
  .shop.shop-compact .shop-title{ margin-top:var(--space-2); font-size:clamp(30px,3.4vw,44px); }
  .shop.shop-compact .shop-head-cta{ min-height:44px; }
  .shop.shop-compact .shop-cards{ margin-top:var(--space-4); }
  .shop.shop-compact .shop-card{ padding:var(--space-4); }
  .shop.shop-compact .shop-card-title{ margin-top:var(--space-2); }
  .shop.shop-compact .shop-card-spacer{ min-height:8px; }
  .shop.shop-compact .shop-card-price{ margin-top:var(--space-2); }
  .shop.shop-compact .shop-card-amount{ font-size:22px; }
  .shop.shop-compact .shop-card-cta{ margin-top:var(--space-2); min-height:44px; }
  .shop.shop-compact .shop-foot{ margin-top:var(--space-4); padding-top:var(--space-3); }
  .shop.shop-compact .shop-lede{ font-size:14px; line-height:1.55; }
}

/* #range: the order-direct list opens its own section, so no lead-in gap above it */
.shop.shop-list .shop-range{ margin-top:0; }
.shop .shop-range-head .t-eyebrow{ text-align:center; }
.shop .shop-more{ margin-top:var(--space-16); display:flex; flex-direction:column; align-items:center; gap:var(--space-5); text-align:center; }
.shop .shop-more-line{ color:var(--fg-2); }

@media (max-width:767px){
  .shop .shop-head{ gap:var(--space-4); }
  .shop .shop-head-cta{ width:100%; }
  .shop .shop-foot{ flex-direction:column; align-items:flex-start; }
  .shop .shop-more{ margin-top:var(--space-12); }
  .shop .shop-more-cta{ width:100%; }
}
