/* ==========================================================================
   Chrysalis Labs · catalogue pages for WordPress · catalogue.css · 6 Oct 2026 (local integration, product area)
   Shop (/shop/), format archives (/product-category/{vials,pens,sprays}/), product cards anywhere.
   Loads after cl-v2-foundation (base.css v1.3 → type → header-v2 → foundation).

   PART A is a VERBATIM copy of the approved inner-page kit (chrysalis-homepage/site/kit/site.css v1.2,
   sections 1-5, 8, 12 and 16), and PART B a verbatim copy of site/kit/shop.css v1.1 (sections 1, 2, 4, 5,
   7). Only the rules these pages use are copied. Left out on purpose:
     - the kit's html:not(.k-js) header / announcement-bar rules: WordPress never sets html.k-js, so they
       would put the desktop nav in a second phone row next to the foundation's own no-JS nav row;
     - .k-jsonly / button[data-k-add] hiding (the WordPress sort and add buttons work without JS);
     - the prototype note (.k-proto), the toast and the [placeholder] token (never shown to customers).
   PART C is the WordPress glue (states, pagination, notices). Re-copy PART A/B when the kit changes.
   ========================================================================== */

/* ============================== PART A · kit/site.css v1.2 (verbatim excerpts) ============================== */

/* ---------- 1. Tokens (kit-only; colours always come from theme tokens) ---------- */
:root {
  --k-measure: 68ch;                         /* prose column */
  --k-error: #B3261E;                        /* errors only (7.1:1 on white, 6.4:1 on fog) */
  --k-error-tint: rgba(179, 38, 30, .06);
  --k-head-top: clamp(28px, 3.2vw, 64px);
  --k-sec-y: clamp(48px, 2.5rem + 3vw, 104px);
  --k-control-h: 48px;                       /* inputs and selects: >= 44px target */
  --k-sticky-top: calc(var(--header-h) + 24px);
  --k-r-field: var(--r-tile, 12px);          /* inputs, selects, textareas */
  --k-r-opt: 14px;                           /* option rows (delivery, payment): one step above a field */
  --k-r-check: 6px;
  --k-card-pad: 12px;                        /* white card padding around the tile (live theme: 11-12px) */
  --k-box-pad: clamp(20px, 2.4vw, 32px);     /* summary, checkout steps, form cards */
  --k-act: 44px;                             /* circular card action */
  --k-tile-bg: var(--c-mist);
  --k-shadow-hover: 0 18px 40px -24px rgba(14, 14, 16, .28), 0 2px 6px -3px rgba(14, 14, 16, .10);
}
/* Surfaces follow the section they sit in: a white page gets mist wells and hairline-ringed
   cards; a mist or fog page gets white wells and borderless white cards. */
[data-theme], [data-tone] { --k-surface: var(--c-white); --k-surface-2: var(--c-mist); --k-ring: transparent; }
:is([data-theme="white"], [data-theme="light"], [data-tone="white"], [data-tone="light"]) { --k-surface: var(--c-mist); --k-surface-2: var(--c-white); --k-ring: var(--rule); }
:is([data-theme="void"], [data-theme="dark"], [data-theme="onyx"], [data-theme="ink"],
    [data-tone="void"], [data-tone="dark"], [data-tone="onyx"], [data-tone="ink"]) { --k-surface: rgba(255, 255, 255, .06); --k-surface-2: rgba(255, 255, 255, .10); --k-ring: transparent; }

/* Light island: white box whose text and hairlines stay in the light family */
.k-card, .k-box, .k-sum, .k-step, .k-cart__lines, .k-infocard, .k-linkcard, .k-table-wrap, .k-search, .k-acc--cards .cl-acc__item {
  --bg: var(--c-white); --fg: var(--l-fg); --fg-2: var(--l-fg-2); --fg-3: var(--l-fg-3);
  --rule: rgba(14, 14, 16, .12); --rule-2: rgba(14, 14, 16, .26); --line-ui: rgba(14, 14, 16, .52);
  --tint: rgba(14, 14, 16, .04); --wipe: var(--c-graphite); --focus: #0E0E10;
  --k-surface: var(--c-mist); --k-surface-2: var(--c-white);
  background-color: var(--c-white); color: var(--fg);
}
.k-box, .k-sum, .k-step, .k-cart__lines { border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--k-ring); }
.k-box, .k-sum, .k-step { padding: var(--k-box-pad); }

/* ---------- 2. Page shell ---------- */
/* Inner pages are light: <html lang="en" data-theme="white">. motion.js takes the attribute over
   (and drops it on a matchMedia revert), so the backdrop also falls back to white here; otherwise the
   translucent sticky header would show the foundation's default void backdrop as a grey band. */
html:not([data-theme]), html:not([data-theme]) body { background-color: var(--c-white); }
.k-main { display: block; }
.k-page { padding-bottom: var(--k-sec-y); }
.k-wrap-narrow { width: 100%; max-width: 880px; margin-inline: auto; padding-inline: var(--side); }

/* Sticky-header offset for anything scrolled into view (focus, #anchors) comes from one place, so a
   focused control is never hidden under the 56-64px header (WCAG 2.4.11). base.css gives every [id]
   the same offset as a scroll-margin; it is reset here so the two never add up. */
html { scroll-padding-top: calc(var(--header-h, 56px) + 16px); }
:where([id]) { scroll-margin-top: 0; }

/* ---------- 3. Breadcrumbs ---------- */
/* <nav class="k-crumbs" aria-label="Breadcrumb"><ol><li><a href="/">Home</a></li><li><span aria-current="page">Shop</span></li></ol></nav> */
.k-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: var(--fs-micro); line-height: 1.3; color: var(--fg-3); }
.k-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.k-crumbs li + li::before { content: "/"; padding: 0 10px; color: var(--fg-3); opacity: .7; }
.k-crumbs a { position: relative; display: inline-flex; align-items: center; min-height: var(--target); color: var(--fg-2); transition: color var(--d-s) var(--ease-out); }
/* hit area at least 44px wide, centred on the word, without moving the text (short words like "Home" or
   "Cart" are only ~25-35px wide; the slash gaps leave room for it) */
.k-crumbs a::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: max(100% + 16px, 44px); transform: translateX(-50%); }
.k-crumbs a:hover, .k-crumbs a:focus-visible { color: var(--fg); }
.k-crumbs [aria-current] { display: inline-flex; align-items: center; min-height: var(--target); color: var(--fg); overflow-wrap: anywhere; }

/* ---------- 4. Page header ---------- */
/* <header class="k-head" data-theme="white"><div class="wrap"> crumbs · .k-head__grid (eyebrow | h1 + lede + meta) </div></header> */
.k-head { padding-top: calc(var(--k-head-top) - 12px); }
.k-head__grid { margin-top: clamp(20px, 2.5vw, 44px); padding-bottom: clamp(32px, 3.5vw, 64px); border-bottom: 1px solid var(--rule); row-gap: 14px; align-items: start; }
.k-head__eyebrow { --col-lg: 1 / span 3; padding-top: .55em; }
.k-head__body { --col-lg: 4 / span 9; }
.k-head__title { max-width: 18ch; }
.k-head__title.t-h1 { font-size: clamp(2.125rem, 1.15rem + 3.4vw, 4rem); }   /* inner pages a step below the homepage h1 */
.k-head__lede { margin-top: 18px; }
.k-head__meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.k-head__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.k-head--flush .k-head__grid { border-bottom: 0; padding-bottom: 0; }

/* ---------- 5. Sections + panels ---------- */
.k-sec { padding-block: var(--k-sec-y); position: relative; }
.k-sec--tight { padding-block: clamp(32px, 3vw, 56px); }
.k-sec--top0 { padding-top: 0; }
.k-sec[data-theme="white"] + .k-sec[data-theme="white"] { padding-top: 0; }   /* consecutive white blocks share one gap */
.k-head[data-theme="white"] + .k-sec[data-theme="white"] { padding-top: clamp(28px, 3vw, 48px); }
.k-sec-head { row-gap: 12px; align-items: end; margin-bottom: clamp(28px, 3vw, 48px); }
.k-sec-head__label { --col-lg: 1 / span 3; }
.k-sec-head__title { --col-lg: 4 / span 6; }
.k-sec-head__side { --col-lg: 10 / span 3; justify-self: start; }
@media (min-width: 900px) { .k-sec-head__side { justify-self: end; } }
.k-sec-head p.t-lede { margin-top: 12px; }
.k-split { row-gap: 32px; }
.k-split__aside { --col-lg: 1 / span 3; }
.k-split__body { --col-lg: 4 / span 9; }
.k-split__body--prose { --col-lg: 4 / span 7; }

/* Panel (24px): banners, wells and teasers. Paint it with the foundation's data-tone:
   <div class="k-panel" data-tone="ink"> (dark island) · data-tone="mist" · or no tone = surface well. */
.k-panel { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-block); padding: clamp(24px, 4vw, 56px); background-color: var(--k-surface); }
.k-panel[data-tone] { background-color: var(--bg); }
.k-panel--flush { padding: 0; }
.k-panel__grid { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
@media (min-width: 900px) { .k-panel__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.k-panel__media { position: relative; margin: 0; border-radius: var(--r-tile); overflow: hidden; }
.k-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.k-panel .t-lede { color: var(--fg-2); }
.k-panel__actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }


/* ---------- 8. Listing grid, format tabs, product card ---------- */
/* Format tabs = pill row. Links (category routes) or buttons (in-place filter).
   aria-current="page" / aria-pressed / aria-selected marks the active one.
   <nav class="k-tabs" aria-label="Formats" data-k-filter-scope="#grid"><ul class="k-tabs__list" role="list">
     <li><a class="k-tab" href="/shop/" data-k-filter="all" aria-current="page">All <span class="k-tab__n">31</span></a></li>… */
.k-tabs { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(var(--side) * -1); padding: 2px var(--side); }
.k-tabs::-webkit-scrollbar { display: none; }
.k-tabs__list { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; min-width: max-content; }
.k-tab {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: var(--target); padding: 0 8px 0 20px;
  border: 1px solid var(--rule-2); border-radius: var(--r-chip);
  font-size: .9375rem; line-height: 1; color: var(--fg); white-space: nowrap; cursor: pointer;
  transition: background-color var(--d-s) var(--ease-out), border-color var(--d-s) var(--ease-out), color var(--d-s) var(--ease-out), transform var(--d-xs) var(--ease-out);
}
.k-tab__n {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--r-chip);
  background: var(--tint); color: var(--fg-2);
  font-family: var(--font-num); font-size: 10.5px; font-weight: 500; letter-spacing: .04em;
  transition: background-color var(--d-s) var(--ease-out), color var(--d-s) var(--ease-out);
}
.k-tab:not(:has(.k-tab__n)) { padding-right: 20px; }
@media (hover: hover) and (pointer: fine) { .k-tab:hover { border-color: var(--line-ui); } }
.k-tab:active { transform: scale(.97); }
.k-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.k-tab:is([aria-current="page"], [aria-pressed="true"], [aria-selected="true"]) { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.k-tab:is([aria-current="page"], [aria-pressed="true"], [aria-selected="true"]) .k-tab__n { background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); }
@media (min-width: 600px) { .k-tabs { margin-inline: 0; padding-inline: 0; } }
.k-listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 18px; color: var(--fg-3); font-size: var(--fs-micro); }

/* Grid of white cards. Put it on a mist (or fog) section; on white the cards get a hairline ring. */
.k-grid {
  --k-gap: clamp(10px, 1.3vw, 20px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--k-gap);
  margin: clamp(20px, 2.4vw, 32px) 0 0; padding: 0; list-style: none;
}
@media (min-width: 600px) { .k-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .k-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.k-grid[hidden], .k-card[hidden] { display: none; }
.k-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .k-grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* v1.2 (6 Oct): one tile shape. Every product (vial, pen, spray) uses its generic 4:5 cut-out (the pen is
   the diagonal generic pen), so the grid has no wide cards: no holes when a list is sorted or searched,
   and pens fill their tile on phones exactly like vials and sprays. */
/* Keyboard focus never leaves a card's ring under the sticky header: site.js scrolls the whole card
   into view when its link or action gets keyboard focus (html scroll-padding covers everything else). */

/* Product card
   <li class="k-card k-card--vial" data-format="Vial" data-slug="…">
     <figure class="k-card__fig"><img …></figure>
     <div class="k-card__body"><h3 class="k-card__name"><a class="k-card__a" href="/product/…/">BPC-157</a></h3>
       <p class="t-meta k-card__meta">Vial · 10 mg</p><p class="k-card__price"><span class="k-card__amt">AED 230</span> <span class="k-card__unit">per vial</span></p></div>
     <span class="t-num k-card__n" aria-hidden="true">02</span>
     <button class="k-card__act" type="button" data-k-add …>(cart + check icons)</button>   one content: adds to cart
     <span class="k-card__act" aria-hidden="true">(arrow)</span>                           several contents: the card opens the product
   </li>
   The name link covers the whole card; the add button sits above it (z-index 2). */
.k-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto;
  grid-template-areas: "media media" "body body" "price act"; column-gap: 8px;
  min-width: 0; padding: var(--k-card-pad); border-radius: var(--r-card);
  box-shadow: 0 0 0 1px var(--k-ring);
  transition: box-shadow var(--d-s) var(--ease-out), transform var(--d-xs) var(--ease-out);
}
.k-card__fig {
  grid-area: media; position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate;
  border-radius: var(--r-tile); background: var(--k-tile-bg);
}
/* Vial, pen (diagonal) and spray cut-outs are 4:5 like the tile, so they fill it edge to edge and the
   baked shadow meets the tile edge, never a visible image edge. */
.k-card__fig img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%;
  transition: transform var(--d-l) var(--ease-out);
}
/* Wherever a cut-out is contained in a tile of another shape, fade the image's own edges so the
   baked contact shadow never ends in a hard line. */
.k-linkcard__media--cut img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 86%, transparent 100%), linear-gradient(180deg, #000 0, #000 84%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 86%, transparent 100%), linear-gradient(180deg, #000 0, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* light pass: a soft white band crosses the tile on hover (CSS twin of the data-sweep verb) */
.k-card__fig::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  transform: translateX(-110%); opacity: 0;
}
/* catalogue number: off on listings (category, filtered, sorted and search lists show them out of order);
   a list that shows the full catalogue order can opt in with data-k-numbered */
.k-card__n { display: none; grid-area: media; align-self: start; justify-self: start; z-index: 2; margin: 12px 14px; font-size: 10.5px; font-weight: 500; color: var(--fg-3); pointer-events: none; }
[data-k-numbered] > .k-card .k-card__n { display: block; }
.k-card__body { grid-area: body; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 4px 0; }
.k-card__name { font-size: clamp(1rem, .96rem + .2vw, 1.125rem); font-weight: 500; line-height: 1.25; letter-spacing: -.008em; overflow-wrap: anywhere; }
.k-card__a { color: inherit; }
.k-card__a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }   /* whole card is the link */
.k-card__a:focus-visible { outline: none; }
/* Keyboard ring drawn by the link's own full-card overlay, so it also shows where :has() is not supported (fix pass
   6 Oct). Same box (the card), radius and offset as the :has() ring below, which stays as the enhancement: where both
   apply they coincide, so the look is unchanged. */
.k-card__a:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-card); }
.k-card:has(.k-card__a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.k-card__meta { font-size: 10.5px; overflow-wrap: anywhere; }
.k-card__price { grid-area: price; align-self: end; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; min-width: 0; padding: 14px 0 2px 4px; }
.k-card__from { font-size: var(--fs-micro); color: var(--fg-2); }
.k-card__amt { font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-card__unit { font-size: var(--fs-micro); color: var(--fg-3); white-space: nowrap; }
/* Circular action at the end of the price row (live theme placement; same family as the header circles) */
.k-card__act {
  grid-area: act; align-self: end; justify-self: end; position: relative; z-index: 2; margin-top: 10px;
  display: grid; place-items: center; width: var(--k-act); height: var(--k-act); border-radius: 50%;
  background: var(--k-tile-bg); color: var(--l-fg);
  box-shadow: inset 0 0 0 1px rgba(14, 14, 16, .06);
  transition: background-color var(--d-s) var(--ease-out), color var(--d-s) var(--ease-out), transform var(--d-xs) var(--ease-out), box-shadow var(--d-s) var(--ease-out);
}
span.k-card__act { pointer-events: none; }
.k-card__act > .i { grid-area: 1 / 1; transition: transform var(--d-s) var(--ease-out), opacity var(--d-s) var(--ease-out); }
.k-card__act .k-act__done { opacity: 0; transform: scale(.6); }
.k-card__act.is-added .k-act__ico { opacity: 0; transform: scale(.6); }
.k-card__act.is-added .k-act__done { opacity: 1; transform: none; }
.k-card__act.is-added { background: var(--l-fg); color: var(--c-white); }
button.k-card__act:active { transform: scale(.93); }
button.k-card__act:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.k-card:has(.k-card__a:active) { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .k-card:hover { box-shadow: 0 0 0 1px var(--rule-2), var(--k-shadow-hover); }
  .k-card:hover .k-card__fig img { transform: translateY(-2%) scale(1.02); }
  .k-card:hover .k-card__fig::after { opacity: 1; transform: translateX(110%); transition: transform var(--d-xl) var(--ease-in-out), opacity var(--d-s) var(--ease-out); }
  .k-card:hover .k-card__act, button.k-card__act:hover { background: var(--l-fg); color: var(--c-white); }
  .k-card:hover span.k-card__act > .i { transform: translateX(var(--nudge)); }
}
.k-card:has(.k-card__a:focus-visible) span.k-card__act { background: var(--l-fg); color: var(--c-white); }

/* One-line rows (accessory, search hits, compact lists): small tile · name · meta · price · arrow circle */
.k-rows { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.k-row { position: relative; border-top: 1px solid var(--rule); transition: border-color var(--d-s) var(--ease-out); }
.k-row__a {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img name price" "img meta meta";
  align-items: center; column-gap: 16px; row-gap: 2px; min-height: 88px; padding: 12px 0; border-radius: var(--r-tile);
}
.k-row__img { grid-area: img; width: 64px; height: 64px; padding: 4px; border-radius: 10px; background: var(--k-surface); object-fit: contain; object-position: 50% 55%; }
.k-row__name { grid-area: name; font-size: var(--fs-h4); line-height: 1.25; overflow-wrap: anywhere; }
.k-row__meta { grid-area: meta; }
.k-row__price { grid-area: price; font-size: .9375rem; text-align: right; white-space: nowrap; }
.k-row__go { display: none; }
@media (min-width: 900px) {
  .k-row__a { grid-template-columns: 72px minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr) var(--target); grid-template-areas: "img name meta price go"; }
  .k-row__img { width: 72px; height: 72px; }
  .k-row__price { text-align: left; }
  .k-row__go {
    grid-area: go; display: grid; place-items: center; width: var(--target); height: var(--target); border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--rule); color: var(--fg);   /* ring as light as the header circles (base v1.1b) */
    transition: background-color var(--d-s) var(--ease-out), color var(--d-s) var(--ease-out), box-shadow var(--d-s) var(--ease-out);
  }
  .k-row__go .i { transition: transform var(--d-s) var(--ease-out); }
}
.k-row__a:focus-visible { outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .k-row:hover { border-top-color: var(--fg); }
  .k-row:hover .k-row__go { background: var(--fg); color: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }
  .k-row:hover .k-row__go .i { transform: translateX(var(--nudge)); }
}


/* ---------- 12. Empty states, notices, placeholders, toast ---------- */
/* <div class="k-empty"><svg class="i i--48">…</svg><h2 class="k-empty__title">…</h2><p class="k-empty__body">…</p><div class="k-empty__actions">…</div></div> */
.k-empty {
  display: grid; justify-items: start; gap: 14px;
  padding: clamp(28px, 4.5vw, 64px); border-radius: var(--r-block); background: var(--k-surface);
}
.k-empty > svg.i:first-child {
  --i: 28px; stroke-width: 12.8; box-sizing: content-box; padding: 18px; border-radius: 50%;
  background: var(--k-surface-2); color: var(--fg); margin-bottom: 6px;
}
.k-empty__title { font-size: var(--fs-h3); font-weight: 400; line-height: 1.12; letter-spacing: -.016em; }
.k-empty__body { max-width: 46ch; color: var(--fg-2); }
.k-empty__actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.k-empty[hidden] { display: none; }
.k-empty--center { justify-items: center; text-align: center; }

.k-notice { padding: 14px 18px; border-radius: var(--r-tile); background: var(--k-surface); color: var(--fg-2); font-size: var(--fs-small); line-height: 1.5; }
.k-notice strong { color: var(--fg); }
.k-notice--proto { background: transparent; border: 1px dashed var(--line-ui); }
.k-notice--ok { background: transparent; box-shadow: inset 0 0 0 1px var(--fg); color: var(--fg); }
.k-notice[hidden] { display: none; }
.k-fineprint { color: var(--fg-3); font-size: var(--fs-micro); line-height: 1.5; max-width: 78ch; }
.k-fineprint + .k-fineprint { margin-top: 4px; }

/* ---------- 16. Utilities, entrance, reduced motion ---------- */
.k-mt-1 { margin-top: 8px; } .k-mt-2 { margin-top: 16px; } .k-mt-3 { margin-top: 24px; } .k-mt-4 { margin-top: 40px; } .k-mt-5 { margin-top: 64px; }
.k-stack > * + * { margin-top: var(--k-gap, 16px); }
.k-nowrap { white-space: nowrap; }
.k-tab-num { font-variant-numeric: tabular-nums; }
code { font-family: var(--font-num); font-size: .85em; letter-spacing: .02em; }

/* Entrance after a filter change or a JS render (site.js adds .k-in with --k-i = position) */
@media (prefers-reduced-motion: no-preference) {
  .k-in { animation: k-in var(--d-m) var(--ease-out) both; animation-delay: calc(var(--k-i, 0) * 40ms); }
  @keyframes k-in { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) {
  .k-card, .k-linkcard, .k-card__fig img, .k-linkcard__media img { transition: none; }
  .k-card:hover .k-card__fig img, .k-linkcard:hover .k-linkcard__media img, .k-card:has(.k-card__a:active), .k-linkcard:active { transform: none; }
  .k-card__fig::after, .k-card:hover .k-card__fig::after { display: none; }
  .k-tab:active, .k-chip:active, button.k-card__act:active, .k-qty button:active, .k-search__go:active { transform: none; }
  .k-progress__bar span { transition: none; }
  .k-toast, .k-toast.is-on { transform: none; transition: opacity .12s linear; }
}

/* ============================== PART B · kit/shop.css v1.1 (verbatim excerpts) ============================== */
/* ---------- 1. Listing section: a calmer top than a content section ---------- */
.k-shop { padding-top: clamp(28px, 3vw, 48px); }


/* ---------- 2. Toolbar: format pills (left) · sort pill (right) ---------- */
.k-shopbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.k-shopbar > .k-tabs { flex: 0 1 auto; min-width: 0; }
@media (max-width: 599px) {
  .k-shopbar > .k-tabs { flex: 1 1 100%; }
  /* four pills fit a 390px phone without a sideways scroll (still scrolls on narrower screens) */
  .k-shop .k-tabs__list { gap: 5px; }
  .k-shop .k-tab { gap: 8px; padding: 0 5px 0 13px; font-size: .9063rem; }
  .k-shop .k-tab__n { min-width: 26px; height: 26px; padding: 0 7px; }
}

.k-sort { position: relative; display: flex; align-items: center; gap: 12px; }
.k-stock-filter__label { cursor: pointer; }
.k-stock-filter__check { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; accent-color: var(--fg); }
.k-stock-filter__label:focus-within { outline: 2px solid var(--fg); outline-offset: 3px; }
.k-sort__label { font-size: var(--fs-micro); color: var(--fg-2); white-space: nowrap; }
.k-sort__field { position: relative; display: inline-flex; align-items: center; }
.k-sort__select {
  min-height: var(--target); margin: 0; padding: 0 46px 0 20px;
  border: 1px solid var(--rule-2); border-radius: var(--r-chip); background: transparent; color: var(--fg);
  font: inherit; font-size: .9375rem; line-height: 1.2; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--d-s) var(--ease-out), background-color var(--d-s) var(--ease-out), transform var(--d-xs) var(--ease-out);
}
.k-sort__select option { color: var(--l-fg); background: var(--c-white); }
.k-sort__caret { position: absolute; right: 18px; top: 50%; translate: 0 -50%; color: var(--fg-2); pointer-events: none; transition: transform var(--d-s) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .k-sort__select:hover { border-color: var(--line-ui); }
  .k-sort__field:hover .k-sort__caret { transform: translateY(1px); }
}
.k-sort__select:active { transform: scale(.98); }
.k-sort__select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.k-sort__select:is([data-active], :focus-visible) { border-color: var(--fg); }
@media (max-width: 599px) {
  .k-sort { flex: 1 1 100%; justify-content: space-between; }
  .k-sort__field { flex: 0 1 236px; }
  .k-sort__select { width: 100%; font-size: 1rem; }   /* 16px: no zoom on iOS */
}

/* the price line + live count under the toolbar */
.k-shop .k-listbar { padding-top: 16px; }

/* ---------- 4. Accessory block (BAC Water) ---------- */
.k-shop__acc { margin-top: clamp(40px, 4.5vw, 72px); }
.k-shop__acc .k-rows { border-bottom-color: var(--rule); }

/* ---------- 5. Volume banner: dark 24px panel, shelf render with the light pass ---------- */
.k-volume-sec { margin-top: clamp(56px, 6vw, 104px); }
.k-volume { display: grid; }
.k-volume__cap { position: relative; z-index: 2; display: grid; gap: 10px; padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 40px) 4px; }
.k-volume__t { font-size: var(--fs-h3); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; max-width: 20ch; color: var(--fg); }
.k-volume__d { max-width: 46ch; color: var(--fg-2); font-size: var(--fs-small); line-height: 1.5; }
.k-volume__media { position: relative; padding-bottom: clamp(16px, 2vw, 28px); }
/* the reflections end softly inside the panel instead of being cut by its rounded bottom edge */
.k-volume__shelf { aspect-ratio: 3 / 1;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 82%, transparent 100%); }
/* phones: a 16:9 crop centred on the pen (the shelf's middle object) instead of a 3:1 strip */
@media (max-width: 599px) {
  .k-volume__shelf { aspect-ratio: 16 / 9; }
  .k-volume__media { margin-top: -80px; }   /* the render's empty black top half tucks under the caption */
}
@media (min-width: 900px) {
  .k-volume { position: relative; }
  /* the caption sits in the render's empty top-left band (the objects stand on the lower shelf line) */
  .k-volume__cap { position: absolute; left: 0; top: 0; max-width: 46%; padding: clamp(28px, 2.8vw, 44px) clamp(32px, 3.4vw, 52px); gap: 8px; }
  .k-volume__t { font-size: clamp(1.5rem, .9rem + 1.1vw, 2.125rem); }
}

/* RUO fine print closes the listing section (same mist backdrop down to the footer) */
.k-shop__ruo { margin-top: clamp(28px, 3vw, 44px); }

/* ---------- 7. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .k-sort__select, .k-sort__caret, .k-ss__clear { transition: none; }
  .k-sort__select:active, .k-ss__clear:active, .k-sort__field:hover .k-sort__caret { transform: none; }
}

/* ============================== PART C · WordPress glue (product area) ============================== */
/* Card add form: the button stays the grid item (the form is only there so the add works without JavaScript). */
.k-card__form { display: contents; }
/* Calm unavailable line (WooCommerce reports no option of the listing in stock). Never "Coming soon". */
.k-card__state { color: var(--fg-3); font-size: var(--fs-micro); line-height: 1.4; }
.k-row__state { display: block; margin-top: 2px; color: var(--fg-3); font-size: var(--fs-micro); font-weight: 400; }
/* Sort: a pointer / touch choice submits at once (shop.js); a keyboard change shows this Sort pill instead (WCAG 3.2.2,
   review fix 6 Oct); without JavaScript the pill is always there. */
.k-sort__go { min-height: var(--target); }
html:not(.no-js) .k-sort__go:not(.is-shown) { display: none; }
/* Pagination (only above 48 listings): the kit's pill tabs */
.k-pager { margin-top: clamp(28px, 3vw, 44px); display: flex; justify-content: center; }
.k-pager .k-tab { justify-content: center; min-width: var(--target); padding: 0 16px; }
.k-pager__prev .i { transform: rotate(180deg); }
/* Added-to-cart confirmation after a card add without JavaScript, and other WooCommerce notices */
.k-shop__added { margin-top: 14px; }
.k-shop__added-a { color: var(--fg); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.k-shop__notices:empty { display: none; }
.k-shop__notices { margin-top: 14px; }
.k-shop__notices :is(ul, .woocommerce-error, .woocommerce-message, .woocommerce-info) {
  margin: 0; padding: 14px 18px; list-style: none; border-radius: var(--r-tile);
  background: var(--k-surface); color: var(--fg); font-size: var(--fs-small); line-height: 1.5;
}
.k-shop__empty { margin-top: clamp(20px, 2.4vw, 32px); }
