/* Chrysalis v2, step 4: the shop (Claude, 10 Nov 2026, overnight). Loaded on the shop and its category pages while
   chv2_is_shop() (inc/v2/v2-site.php; the product search keeps its own light page); every rule sits under body.chv2s4.
   The same idea as the homepage and the product page: a black floor, the products in plain white light. The shop's own
   stylesheet takes all its colours from a few variables (assets/v3/shop/shop.css), so most of the dark look is those
   variables turned over (section 1) plus the handful of fixed colours it spells out (section 2).
   3. vial cards: the silver vial of the first screen   4. other cards   5. head */

/* ---------- 1. the colours, turned over ---------- */
.chv2s4 .c3-root.s3{
  --s3-ink:#fff;--s3-paper:#000;--s3-tile:#0c0c0e;--s3-tile-2:#1b1b1f;
  --s3-mute:#a6a7ad;--s3-mute-2:#8d8e94;--s3-line:rgba(255,255,255,.12);--s3-line-2:rgba(255,255,255,.28);
  background:#000;color:#fff;color-scheme:dark}

/* ---------- 2. the fixed colours of shop.css: text on a white fill is black now ---------- */
.chv2s4 .s3 .s3-btn--black,
.chv2s4 .s3 .s3-tab[aria-current="page"],
.chv2s4 .s3 .s3-topics .s3-chip[aria-current="page"],
.chv2s4 .s3 .s3-chip[aria-pressed="true"],
.chv2s4 .s3 .s3-pg[aria-current="page"],
.chv2s4 .s3 .s3-add:hover,
.chv2s4 .s3 .s3-add.is-added,
.chv2s4 .s3 .s3-area[aria-current="page"]{color:#0e0e10}
.chv2s4 .s3 .s3-btn--black:hover{background:#e4e5e9}
.chv2s4 .s3 .s3-btn--black[disabled]{color:#8d8e94}
.chv2s4 .s3 .s3-tab[aria-current="page"] .s3-n,
.chv2s4 .s3 .s3-area[aria-current="page"] .s3-area__c{color:rgba(14,14,16,.62)}
.chv2s4 .s3 .s3-soon{background:repeating-linear-gradient(135deg,transparent 0 4px,rgba(255,255,255,.14) 4px 5px)}
.chv2s4 .s3 .s3-tab[aria-current="page"] .s3-soon{background:repeating-linear-gradient(135deg,transparent 0 4px,rgba(14,14,16,.16) 4px 5px)}
.chv2s4 .s3 .s3-status--soon{background:repeating-linear-gradient(135deg,transparent 0 5px,rgba(255,255,255,.1) 5px 6px)}
.chv2s4 .s3 .s3-toggle i{background:#2a2a2f}
.chv2s4 .s3 .s3-t::after{background:linear-gradient(102deg,transparent 32%,rgba(255,255,255,.1) 50%,transparent 68%)}
.chv2s4 .s3 .s3-area{box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.chv2s4 .s3 .s3-area::before{opacity:.75}
.chv2s4 .s3 .s3-t--water .s3-fig img{mix-blend-mode:normal}
.chv2s4 .s3 .s3-sort__sel{background:#000}
.chv2s4 .s3 .s3-sort__sel option{background:#121214;color:#fff}

/* ---------- 3. vial cards: the silver vial of the first screen (inc/v2/v2-shop.php puts the render in) ----------
   The render is the whole studio (1200 x 1500); the vial stands at 32.14-67.86 % of its width and 20.76-82.10 % of its height
   (render/out/products/meta.json). The picture box of a card is the vial itself, so the render is sized from those numbers:
   height 100 / 61.34 = 163.03 %, top -20.76 x 1.6303 = -33.84 %, centred. Its studio (grey wall, black floor) fades out in a
   narrow oval just around the vial, so the wall/floor line never shows as a band across a wide card (tablet). */
.chv2s4 .s3 .s3-pb--vial img.chv2-r,
.chv2s4 .s3 .s3-lv img.chv2-r{height:163.03%;top:-33.84%;
  -webkit-mask-image:radial-gradient(ellipse 29% 45% at 50% 53%,#000 66%,transparent 100%);mask-image:radial-gradient(ellipse 29% 45% at 50% 53%,#000 66%,transparent 100%)}
.chv2s4 .s3 .s3-pb--vial:has(img.chv2-r) .s3-floor,
.chv2s4 .s3 .s3-lv:has(img.chv2-r) .s3-floor{display:none}
.chv2s4 .s3 .s3-lv:not(.is-sel) img.chv2-r{opacity:.42}

/* ---------- 4. the cards: one quiet edge on the black ---------- */
.chv2s4 .s3 .s3-t{box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.chv2s4 .s3 .s3-t:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}

/* ---------- 5. the head: the title in the silver of the homepage ---------- */
.chv2s4 .s3 .s3-h1{background:linear-gradient(180deg,#fff 0%,#e9eaee 38%,#a8abb3 70%,#d9dbe0 100%);-webkit-background-clip:text;background-clip:text;color:transparent;padding-bottom:.06em}
.chv2s4 .s3 .s3-grp__h{color:#fff}

/* ---------- 6. the page behind the page: black, so the phone's top strip (iPhone Safari tints it from the page's own background;
   the theme-color meta alone no longer does it) and the overscroll match the dark page ---------- */
html:has(body.chv2s4),html:has(body.chv2s4) body{background-color:#000}

/* ---------- 7. step 5: the true cut-out of the silver vial (class chv2-c, inc/v2/v2-shop.php) ----------
   The same frame as the studio picture (1200 x 1500, the vial at the same place), so the same size and place; no mask, the
   cut-out has its own edge and its own soft floor reflection, which falls into the card's foot. */
.chv2s4 .s3 .s3-pb--vial img.chv2-c,
.chv2s4 .s3 .s3-lv img.chv2-c{height:163.03%;top:-33.84%;-webkit-mask-image:none;mask-image:none}
.chv2s4 .s3 .s3-pb--vial:has(img.chv2-c) .s3-floor,
.chv2s4 .s3 .s3-lv:has(img.chv2-c) .s3-floor{display:none}
.chv2s4 .s3 .s3-lv:not(.is-sel) img.chv2-c{opacity:.42}
/* a soft pool of light on the floor under the vial, as on the first screen */
.chv2s4 .s3 .s3-pb--vial:has(img.chv2-c)::before,
.chv2s4 .s3 .s3-lv.is-sel:has(img.chv2-c)::before{content:"";position:absolute;z-index:-1;left:50%;top:100%;width:300%;height:26%;transform:translate(-50%,-46%);
  background:radial-gradient(closest-side,rgba(255,255,255,.17),rgba(255,255,255,.06) 55%,rgba(255,255,255,0));pointer-events:none}
