/* ==========================================================================
   Chrysalis Labs · inner-page kit v1.2 · 6 Oct 2026 · local prototype, not live.
   Sits on top of the shared foundation. Load order on every inner page:
     <link rel="stylesheet" href="/directions/shared/base.css">
     <link rel="stylesheet" href="/kit/site.css">
   Root-absolute paths: inner pages live at different depths (/shop/, /product/<slug>/ ...),
   so they need the local server (http://127.0.0.1:8788/), not file://.

   v1.1 (owner feedback, 6 Oct): Alik likes the live theme's circular search/account/cart
   controls, pill CTAs and rounded cards. Selective rounding is the house style, using the
   base.css v1.1 tokens only:
     --r-card 16px  white cards (products, info, summary, steps, tables)
     --r-tile 12px  the image tile inside a card, fields
     --r-block 24px panels, banners, empty states
     --r-chip pill  chips, format tabs, steppers, status labels
     circles        header controls (base .cl-iconbtn), card actions, icon wells
   v1.2 (review fixes, 6 Oct): one 4:5 tile for every format (generic vial / diagonal pen / spray),
   catalogue numbers off on listings, header-circle current ring, 44px breadcrumb targets, focus never
   under the sticky header, labels at .08em, one-line announcement bar fallback, no-JS notice + nav.
   Look: light editorial (white / mist / fog sections, ink text, hairlines, Neue Montreal,
   small Michroma labels, Orbitron numerals). Cut-outs sit on a mist tile inside a white card.
   Cards, boxes and fields are light islands: their text stays ink whatever the page theme.
   Every class is prefixed k- so it never collides with base.css (cl-) or a direction stylesheet.

   Contents
     1  tokens + surfaces      10  form fields, checks, options, quantity, search
     2  page shell             11  order summary, cart lines, checkout steps
     3  breadcrumbs            12  empty states, notices, placeholders, toast
     4  page header            13  facts, numbers, steps, key-values, info + link cards
     5  sections + panels      14  chips, status labels
     6  prose                  15  accordion (card variant)
     7  policy + toc           16  utilities, entrance, reduced motion
     8  listing grid, tabs, product card
     9  data table
   ========================================================================== */

/* ---------- 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; }

/* Shared chrome, kit additions (v1.2, 6 Oct) ------------------------------------------------------ */
/* Header circles: the page you are on keeps a full ring (search on /search/, cart on /cart/ and
   /checkout/, account on /my-account/; site.js sets aria-current where a page does not). Outline ring =
   navigation (header); filled tint disc = an action on a card (add / open). The difference is deliberate. */
.cl-header .cl-iconbtn[aria-current]::before { border-color: var(--fg); }

/* Announcement bar: the catalogue message is a real link (quiet; underline + arrow nudge on hover) */
.cl-bar__a { position: relative; display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .28em; transition: color var(--d-s) var(--ease-out), text-decoration-color var(--d-s) var(--ease-out); }
.cl-bar__a::after { content: ""; position: absolute; inset: -12px -8px; }   /* ~40px tall hit area: the whole bar row */
.cl-bar__a .i { --i: 14px; transition: transform var(--d-s) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cl-bar__a:hover { color: var(--fg); text-decoration-color: currentColor; }
  .cl-bar__a:hover .i { transform: translateX(var(--nudge)); }
}
.cl-bar__a:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 4px; color: var(--fg); }
@media (max-width: 599px) {
  /* While messages crossfade, the hidden ones are never focusable */
  .cl-bar > span:not(.is-on) .cl-bar__a { visibility: hidden; }
  /* Static fallback (no JS, reduced motion): one message, the first, never three stacked lines */
  html:not(.k-js) .cl-bar > span:not(.cl-bar__sep), html.m-reduce .cl-bar > span:not(.cl-bar__sep) { display: none; }
  html:not(.k-js) .cl-bar > span:first-child, html.m-reduce .cl-bar > span:first-child { display: block; grid-area: 1 / 1; opacity: 1; transition: none; }
}
@media (max-width: 599px) and (prefers-reduced-motion: reduce) {
  .cl-bar > span:not(.cl-bar__sep) { display: none; }
  .cl-bar > span:first-child { display: block; grid-area: 1 / 1; opacity: 1; transition: none; }
}

/* No JavaScript: the 21+ notice (the gate needs JS; WordPress must also check it server-side) and, on
   phones, the header links shown as a second row because the menu button needs JS */
.k-nojs-note { padding: 12px var(--side); border-bottom: 1px solid var(--rule); background: var(--bg); color: var(--fg-2); font-size: .8125rem; line-height: 1.45; text-align: center; }
.k-nojs-note strong { color: var(--fg); font-weight: 500; }
.k-nojs-note a { color: var(--fg); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
@media (max-width: 899px) {
  html:not(.k-js) .cl-header__inner { grid-template-areas: "menu logo icons" "nav nav nav"; height: auto; min-height: var(--header-h-css); }
  html:not(.k-js) .cl-nav { display: flex; gap: 4px; margin-inline: calc(var(--side) * -1); padding: 0 calc(var(--side) - 10px) 2px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--rule); }
  html:not(.k-js) .cl-nav::-webkit-scrollbar { display: none; }
  html:not(.k-js) .cl-nav a { flex: none; justify-content: center; min-width: var(--target); padding-inline: 10px; }
  html:not(.k-js) .cl-nav a::after { left: 10px; right: 10px; }
}

/* ---------- 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; }

/* ---------- 6. Prose (policies, about, any long copy) ---------- */
.k-prose { max-width: var(--k-measure); color: var(--fg); font-size: 1.0625rem; line-height: 1.65; }
.k-prose > * + * { margin-top: 1em; }
.k-prose h2 { margin-top: 2.4em; font-size: var(--fs-h4); line-height: 1.3; font-weight: 400; letter-spacing: -.008em; }
.k-prose h3 { margin-top: 1.8em; font-size: 1.0625rem; font-weight: 500; }
.k-prose h2 + *, .k-prose h3 + * { margin-top: .6em; }
.k-prose :is(ul, ol) { padding-left: 1.2em; }
.k-prose li + li { margin-top: .4em; }
.k-prose a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.k-prose small, .k-prose .k-fine { font-size: var(--fs-small); color: var(--fg-3); }
.k-prose .k-table-wrap { margin-block: 1.4em; }
.k-prose > :first-child { margin-top: 0; }
/* Numbered clause: <section class="k-clause" id="c-1"><h2><span class="k-clause__n t-num">01</span>Scope of supply</h2><p>…</p></section> */
.k-clause { scroll-margin-top: 8px; }   /* + html scroll-padding (header + 16px) = the sticky contents offset */
.k-clause + .k-clause { margin-top: 2.2em; padding-top: 2.2em; border-top: 1px solid var(--rule); }
.k-clause h2 { margin-top: 0; display: flex; align-items: baseline; gap: 16px; }
.k-clause__n { flex: none; min-width: 2.2em; font-size: .75rem; color: var(--fg-3); }
.k-version { color: var(--fg-3); font-size: var(--fs-micro); }

/* ---------- 7. Policy layout + sticky in-page contents (a rounded well) ---------- */
/* <div class="wrap grid k-policy"><nav class="k-toc" aria-label="On this page" data-k-toc><details><summary>On this page …</summary><ol>…</ol></details></nav><article class="k-policy__body k-prose">…</article></div> */
.k-policy { row-gap: 32px; align-items: start; }
.k-policy > .k-toc { --col-lg: 1 / span 3; }
.k-policy > .k-policy__body { --col-lg: 4 / span 7; }
.k-toc { font-size: var(--fs-small); }
.k-toc details { border-radius: var(--r-card); background: var(--k-surface); padding: 0 20px; }
.k-toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer; list-style: none;
  font-family: var(--font-label); font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2);
}
.k-toc summary::-webkit-details-marker { display: none; }
.k-toc summary::marker { content: ""; }
.k-toc summary .i { color: var(--fg-2); transition: transform var(--d-s) var(--ease-in-out); }
.k-toc details[open] > summary .i { transform: rotate(180deg); }
.k-toc summary:focus-visible { outline-offset: 4px; border-radius: 8px; }
.k-toc ol { margin: 0; padding: 0 0 16px; list-style: none; }
.k-toc li a {
  position: relative; display: flex; gap: 12px; align-items: baseline; min-height: var(--target); padding: 10px 0 10px 14px;
  color: var(--fg-2); line-height: 1.35; transition: color var(--d-s) var(--ease-out);
}
.k-toc li a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--rule-2); transition: background var(--d-s) var(--ease-out); }
.k-toc li a .t-num { font-size: 10.5px; font-weight: 500; color: var(--fg-3); min-width: 2em; }
.k-toc li a:hover, .k-toc li a:focus-visible { color: var(--fg); }
.k-toc li a:focus-visible { outline-offset: 0; border-radius: 6px; }
.k-toc li a[aria-current="true"] { color: var(--fg); }
.k-toc li a[aria-current="true"]::before { background: var(--fg); width: 2px; }
@media (min-width: 900px) {
  .k-toc { position: sticky; top: var(--k-sticky-top); max-height: calc(100vh - var(--k-sticky-top) - 24px); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-card); }
  .k-toc details { padding: 4px 24px 8px; }
  .k-toc summary { cursor: default; pointer-events: none; }
  .k-toc summary .i { display: none; }
}

/* ---------- 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 (clean-up
   7 Oct, same rule as product/catalogue.css). 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)); }
}

/* ---------- 9. Data table (one white card with hairline rules) ---------- */
/* <div class="k-table-wrap"><table class="k-table k-table--stack"><caption class="u-vh">…</caption><thead>…</thead><tbody><tr><td data-label="Zone">…</td>…</tr></tbody></table></div> */
.k-table-wrap { width: 100%; overflow-x: auto; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--k-ring); padding: 6px 20px 2px; }
.k-table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.k-table th, .k-table td { padding: 14px 20px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.k-table th:last-child, .k-table td:last-child { padding-right: 0; }
.k-table tbody tr:last-child > * { border-bottom: 0; }
.k-table thead th { font-family: var(--font-label); font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); padding-top: 14px; border-bottom-color: var(--rule-2); }
.k-table tbody th { font-weight: 400; }
.k-table .num { text-align: right; white-space: nowrap; }
.k-table caption { text-align: left; }
@media (max-width: 599px) {
  .k-table-wrap { padding: 2px 16px; }
  .k-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .k-table--stack, .k-table--stack tbody, .k-table--stack tr, .k-table--stack th, .k-table--stack td { display: block; width: 100%; }
  .k-table--stack tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .k-table--stack tbody tr:last-child { border-bottom: 0; }
  .k-table--stack th, .k-table--stack td { padding: 3px 0; border: 0; text-align: left; }
  .k-table--stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--font-label); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
  .k-table--stack .num { text-align: left; }
}

/* ---------- 10. Form fields ---------- */
/* <div class="k-field"><label class="k-label" for="x">Email <span class="k-req" aria-hidden="true">*</span></label>
     <p class="k-hint" id="x-hint">…</p><input class="k-input" id="x" aria-describedby="x-hint x-err">
     <p class="k-error" id="x-err" hidden>…</p></div> */
.k-form { display: grid; gap: 22px; }
.k-form__row { display: grid; gap: 22px; }
@media (min-width: 600px) { .k-form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.k-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 22px; }
.k-legend { padding: 0; margin-bottom: 4px; font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -.008em; }
.k-field { display: grid; gap: 8px; min-width: 0; }
.k-label { font-size: .9375rem; font-weight: 500; line-height: 1.3; color: var(--fg); }
.k-label .k-opt-tag { font-weight: 400; color: var(--fg-3); }
.k-req { color: var(--fg-3); font-weight: 400; margin-left: 2px; }
.k-hint { font-size: var(--fs-micro); line-height: 1.4; color: var(--fg-3); }
.k-input {
  display: block; width: 100%; min-height: var(--k-control-h); margin: 0; padding: 12px 16px;
  border: 1px solid var(--rule-2); border-radius: var(--k-r-field); background: var(--c-white); color: var(--l-fg);
  font: inherit; font-size: 1rem; line-height: 1.35;            /* 16px: no zoom on iOS */
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--d-s) var(--ease-out), box-shadow var(--d-s) var(--ease-out);
}
.k-input::placeholder { color: var(--l-fg-3); opacity: 1; }
@media (hover: hover) and (pointer: fine) { .k-input:hover { border-color: var(--line-ui); } }
.k-input:focus { outline: none; }
.k-input:focus-visible, .k-input:focus { border-color: var(--l-fg); box-shadow: 0 0 0 1px var(--l-fg), 0 0 0 5px rgba(14, 14, 16, .08); outline: 2px solid transparent; }
textarea.k-input { min-height: 132px; resize: vertical; }
select.k-input {
  padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.k-input:disabled { opacity: .55; cursor: not-allowed; }
.k-input[readonly] { background: var(--c-mist); }
.k-error { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-micro); line-height: 1.4; color: var(--k-error); }
.k-error[hidden] { display: none; }
.k-field.is-invalid .k-input, .k-input[aria-invalid="true"] { border-color: var(--k-error); box-shadow: 0 0 0 1px var(--k-error); }
.k-errsum { padding: 16px 18px; border: 1px solid var(--k-error); border-radius: var(--r-tile); background: var(--k-error-tint); color: var(--l-fg); font-size: var(--fs-small); }
.k-errsum[hidden] { display: none; }
.k-errsum h2 { font-size: 1rem; font-weight: 500; }
.k-errsum ul { margin: 8px 0 0; padding-left: 1.1em; }
.k-errsum a { color: var(--k-error); text-decoration: underline; text-underline-offset: .2em; }

/* Checkbox (never pre-ticked for confirmations): <label class="k-check"><input type="checkbox" required><span>…</span></label> */
.k-check { display: flex; align-items: flex-start; gap: 14px; min-height: var(--target); padding: 10px 0; cursor: pointer; font-size: .9375rem; line-height: 1.45; }
.k-check input {
  -webkit-appearance: none; appearance: none; flex: none; display: grid; place-content: center;
  width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--line-ui); border-radius: var(--k-r-check); background: var(--c-white); cursor: pointer;
  transition: background var(--d-xs) var(--ease-out), border-color var(--d-xs) var(--ease-out);
}
.k-check input::before { content: ""; width: 11px; height: 6px; margin-top: -3px; border-left: 1.5px solid var(--c-white); border-bottom: 1.5px solid var(--c-white); transform: rotate(-45deg) scale(0); transition: transform var(--d-xs) var(--ease-out); }
.k-check input:checked { background: var(--l-fg); border-color: var(--l-fg); }
.k-check input:checked::before { transform: rotate(-45deg) scale(1); }
.k-check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.k-check input[aria-invalid="true"] { border-color: var(--k-error); box-shadow: 0 0 0 1px var(--k-error); }
.k-check a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; position: relative; z-index: 1; }
.k-check__wrap > .k-error { margin-left: 36px; }

/* Option row (delivery, payment): <label class="k-opt"><input type="radio" name="pay" checked><span class="k-opt__body"><span class="k-opt__title">…</span><span class="k-opt__sub">…</span></span><span class="k-opt__price">…</span></label> */
.k-opts { display: grid; gap: 10px; }
.k-opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px;
  min-height: 72px; padding: 14px 18px 14px 16px; border: 1px solid var(--rule-2); border-radius: var(--k-r-opt); cursor: pointer;
  transition: border-color var(--d-s) var(--ease-out), box-shadow var(--d-s) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .k-opt:hover { border-color: var(--line-ui); } }
.k-opt:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.k-opt input {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--line-ui); border-radius: 50%;
  display: grid; place-content: center; background: var(--c-white); cursor: pointer;
}
.k-opt input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--l-fg); transform: scale(0); transition: transform var(--d-xs) var(--ease-out); }
.k-opt input:checked { border-color: var(--l-fg); }
.k-opt input:checked::before { transform: scale(1); }
.k-opt input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.k-opt__title { display: block; font-weight: 500; }
.k-opt__sub { display: block; margin-top: 2px; font-size: var(--fs-micro); color: var(--fg-3); }
.k-opt__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-opt--static { cursor: default; }

/* Quantity stepper (pill, 44px circles):
   <div class="k-qty" data-k-qty><button type="button" data-qty-dec aria-label="Decrease quantity">−</button><input type="number" min="1" value="1" aria-label="Quantity"><button type="button" data-qty-inc aria-label="Increase quantity">+</button></div> */
.k-qty { display: inline-flex; align-items: center; height: 48px; padding: 0 1px; border: 1px solid var(--rule-2); border-radius: var(--r-chip); }
.k-qty button { display: grid; place-items: center; width: var(--target); height: var(--target); border-radius: 50%; color: var(--fg); transition: background-color var(--d-xs) var(--ease-out), transform var(--d-xs) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .k-qty button:hover { background: var(--tint); } }
.k-qty button:active { transform: scale(.92); }
.k-qty button:disabled { opacity: .35; cursor: not-allowed; background: none; transform: none; }
.k-qty button:focus-visible { outline-offset: -2px; }
.k-qty input {
  width: 40px; height: var(--target); padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--fg);
  font-family: var(--font-num); font-size: .8125rem; font-weight: 500; text-align: center; -moz-appearance: textfield; appearance: textfield;
}
.k-qty input::-webkit-outer-spin-button, .k-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.k-qty input:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.k-qty--sm input { width: 32px; }

/* Search field (pill): icon · input · circular submit
   <form class="k-search" role="search" action="/search/" method="get" data-k-search="#results">
     <svg class="i i--20 k-search__i">…search…</svg><label class="u-vh" for="q">Search the catalogue</label>
     <input class="k-search__input" id="q" name="q" type="search" placeholder="Search compounds" autocomplete="off" enterkeyhint="search">
     <button class="k-search__go" type="submit" aria-label="Search">…arrow…</button></form> */
.k-search {
  display: flex; align-items: center; gap: 4px; width: 100%; max-width: 720px; min-height: 60px; padding: 6px 6px 6px 20px;
  border-radius: var(--r-chip); box-shadow: inset 0 0 0 1px var(--rule-2);
  transition: box-shadow var(--d-s) var(--ease-out);
}
.k-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--l-fg), 0 0 0 5px rgba(14, 14, 16, .08); }
.k-search__i { color: var(--fg-2); }
.k-search__input {
  flex: 1; min-width: 0; height: 48px; padding: 0 8px 0 10px; border: 0; background: transparent; color: var(--l-fg);
  font: inherit; font-size: 1.0625rem; -webkit-appearance: none; appearance: none;
}
.k-search__input::placeholder { color: var(--l-fg-3); }
.k-search__input:focus { outline: none; }
.k-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.k-search__go {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--l-fg); color: var(--c-white);
  transition: background-color var(--d-s) var(--ease-out), transform var(--d-xs) var(--ease-out);
}
.k-search__go .i { transition: transform var(--d-s) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .k-search__go:hover { background: var(--c-graphite); } .k-search__go:hover .i { transform: translateX(var(--nudge)); } }
.k-search__go:active { transform: scale(.94); }
.k-search__go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- 11. Order summary, cart lines, checkout steps ---------- */
.k-checkout { row-gap: 32px; align-items: start; }
.k-checkout__form { --col-lg: 1 / span 7; }
.k-checkout__aside { --col-lg: 8 / span 5; }
@media (min-width: 1100px) { .k-checkout__aside { --col-lg: 9 / span 4; } }
@media (min-width: 900px) { .k-checkout__aside { position: sticky; top: var(--k-sticky-top); } }
.k-step + .k-step { margin-top: 16px; }
.k-step__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.k-step__n {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--k-surface); color: var(--fg-2); font-size: .6875rem;
}

.k-sum__title { padding: 0 0 6px; font-size: var(--fs-h4); line-height: 1.3; }
.k-sum__lines { margin: 0; padding: 0; list-style: none; }
.k-sum__line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.k-sum__line img { width: 52px; height: 52px; padding: 3px; border-radius: 10px; background: var(--k-tile-bg); object-fit: contain; object-position: 50% 55%; }
.k-sum__name { font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.k-sum__meta { display: block; margin-top: 2px; }
.k-sum__amt { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .9375rem; }
.k-sum__rows { margin: 0; padding: 8px 0 0; }
.k-sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; font-size: .9375rem; }
.k-sum__row dt { color: var(--fg-2); }
.k-sum__row dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.k-sum__row--minus dd { color: var(--fg); }
.k-sum__row--total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--rule-2); font-size: 1.25rem; letter-spacing: -.01em; }
.k-sum__row--total dt { color: var(--fg); }
.k-sum__notes { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-tile); background: var(--k-surface); display: grid; gap: 8px; color: var(--fg-2); font-size: var(--fs-micro); line-height: 1.45; }
.k-sum__cta { margin-top: 20px; display: grid; gap: 12px; }
.k-sum .k-field { margin-top: 12px; }

.k-cart { row-gap: 24px; align-items: start; }
.k-cart__lines { --col-lg: 1 / span 7; padding: 4px 20px; }
.k-cart__aside { --col-lg: 8 / span 5; }
@media (min-width: 1100px) { .k-cart__aside { --col-lg: 9 / span 4; } }
@media (min-width: 900px) { .k-cart__aside { position: sticky; top: var(--k-sticky-top); } }
.k-line { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "img info" "img ctl"; column-gap: 16px; row-gap: 12px; padding: 16px 0; border-top: 1px solid var(--rule); }
.k-line:first-child { border-top: 0; }
.k-line__img { grid-area: img; width: 76px; height: 76px; padding: 4px; border-radius: var(--r-tile); background: var(--k-tile-bg); object-fit: contain; object-position: 50% 55%; }
.k-line__info { grid-area: info; display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.k-line__name { font-size: 1.0625rem; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.k-line__name a { color: inherit; }
.k-line__meta { display: block; margin-top: 4px; }
.k-line__unit { display: block; margin-top: 4px; font-size: var(--fs-micro); color: var(--fg-3); }
.k-line__total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-line__ctl { grid-area: ctl; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.k-line__remove { min-height: var(--target); font-size: var(--fs-small); color: var(--fg-2); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.k-line__remove:hover { color: var(--fg); }
@media (min-width: 600px) { .k-line { grid-template-columns: 96px minmax(0, 1fr); } .k-line__img { width: 96px; height: 96px; } }
.k-progress { margin-top: 12px; font-size: var(--fs-micro); color: var(--fg-2); }
.k-progress__bar { height: 4px; margin-top: 8px; border-radius: var(--r-chip); background: var(--rule); position: relative; overflow: hidden; }
.k-progress__bar span { position: absolute; inset: 0; border-radius: inherit; background: var(--fg); transform-origin: 0 50%; transition: transform var(--d-m) var(--ease-out); }

/* ---------- 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; }

/* Unconfirmed fact, rendered visibly: <span class="k-ph" title="Placeholder: not confirmed">[store email]</span> */
.k-ph { padding: 1px 6px; border: 1px dashed var(--line-ui); border-radius: 6px; color: var(--fg); font-family: var(--font-num); font-size: .78em; letter-spacing: .04em; white-space: nowrap; }

.k-toast {
  position: fixed; z-index: 120; right: var(--side); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; width: min(420px, calc(100vw - 2 * var(--side)));
  padding: 12px 12px 12px 20px; border-radius: var(--r-card);
  background: var(--c-ink); color: var(--c-white); box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 24px 48px -24px rgba(0, 0, 0, .45);
  transform: translateY(12px); opacity: 0; pointer-events: none;
  transition: transform .2s var(--ease-in), opacity .2s var(--ease-in);
}
.k-toast.is-on { transform: none; opacity: 1; pointer-events: auto; transition: transform var(--d-s) var(--ease-out), opacity var(--d-s) var(--ease-out); }
.k-toast__title { font-weight: 500; }
.k-toast__text { grid-column: 1; color: var(--d-fg-2); font-size: var(--fs-micro); }
.k-toast__a {
  grid-row: 1 / span 2; grid-column: 2; display: inline-flex; align-items: center; gap: 8px; min-height: var(--target); padding: 0 18px;
  border-radius: var(--r-btn); background: var(--c-white); color: var(--c-void);
  font-size: .8125rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transition: background-color var(--d-s) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .k-toast__a:hover { background: var(--c-silver); } }
.k-toast :focus-visible { outline: 2px solid var(--c-white); outline-offset: 2px; }

/* ---------- 13. Facts, numbers, steps, key-values, info cards, link cards ---------- */
.k-facts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.k-fact { display: grid; align-content: start; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.k-fact .i { color: var(--fg); }
.k-fact__text { color: var(--fg-2); font-size: var(--fs-small); max-width: 42ch; }
@media (min-width: 900px) {
  .k-facts { grid-template-columns: repeat(var(--k-cols, 3), minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
  .k-fact { padding: 24px 28px 28px 0; border-bottom: 0; }
  .k-fact + .k-fact { padding-left: 28px; border-left: 1px solid var(--rule); }
}
.k-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.k-number { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--rule); }
.k-number:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--rule); }
.k-number__v { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.k-number__l { margin-top: 12px; }
.k-number__t { margin-top: 6px; color: var(--fg-2); font-size: var(--fs-small); max-width: 32ch; }
@media (min-width: 900px) {
  .k-numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .k-number { padding: 24px 24px 28px 0; }
  .k-number + .k-number { padding-left: 24px; border-left: 1px solid var(--rule); }
}
.k-steps { margin: 0; padding: 0; list-style: none; counter-reset: k-step; border-top: 1px solid var(--rule); }
.k-steps li { counter-increment: k-step; display: grid; grid-template-columns: 3em minmax(0, 1fr); column-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.k-steps li::before { content: counter(k-step, decimal-leading-zero); font-family: var(--font-num); font-size: .75rem; font-weight: 500; color: var(--fg-3); padding-top: 4px; }
.k-steps__t { font-size: var(--fs-h4); line-height: 1.3; }
.k-steps__d { grid-column: 2; margin-top: 4px; color: var(--fg-2); font-size: var(--fs-small); }
.k-kv { margin: 0; border-top: 1px solid var(--rule); }
.k-kv > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.k-kv dt { font-family: var(--font-label); font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.k-kv dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 600px) { .k-kv > div { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: baseline; } }

/* Icon well: a 48px circle holding a 24px icon (same family as the header circles) */
.k-ico { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--k-surface); color: var(--fg); }
.k-panel:not([data-tone]) .k-ico, .k-empty .k-ico, .k-notice .k-ico { background: var(--k-surface-2); }   /* a well inside a well takes the other surface */

/* Info cards: white 16px cards in a row
   <div class="k-cards"><div class="k-infocard"><span class="k-ico"><svg class="i i--24">…</svg></span><h3 class="k-infocard__t">…</h3><p class="k-infocard__d">…</p></div></div> */
.k-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .k-cards { grid-template-columns: repeat(var(--k-cols, 3), minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 20px); } }
.k-infocard {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 24px; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--k-ring);
}
.k-infocard .k-ico { margin-bottom: 8px; }
.k-infocard__t { font-size: var(--fs-h4); font-weight: 400; line-height: 1.3; }
.k-infocard__d { color: var(--fg-2); font-size: var(--fs-small); max-width: 40ch; }

/* Link card: media tile + title + meta + arrow circle. Format entries (Vials / Pens / Sprays), hub links.
   <a class="k-linkcard" href="/product-category/vials/"><span class="k-linkcard__media"><img …></span>
     <span class="k-linkcard__body"><span class="k-linkcard__t">Vials</span><span class="t-meta k-linkcard__d">16 compounds · from AED 160</span></span>
     <span class="k-linkcard__go" aria-hidden="true"><svg class="i i--20">…arrow…</svg></span></a> */
.k-linkcard {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; grid-template-areas: "media media" "body go";
  column-gap: 12px; align-items: end; 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-linkcard__media { grid-area: media; position: relative; display: block; overflow: hidden; aspect-ratio: var(--k-media-ratio, 16 / 10); border-radius: var(--r-tile); background: var(--k-tile-bg); }
.k-linkcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: var(--k-media-fit, cover); object-position: var(--k-media-pos, 50% 50%); transition: transform var(--d-l) var(--ease-out); }
/* cut-outs: the element takes the image's own shape (edge fade follows the drawn image) */
.k-linkcard__media--cut img { inset: auto; left: 50%; top: 50%; width: auto; height: 100%; aspect-ratio: 4 / 5; translate: -50% -50%; object-fit: cover; }
.k-linkcard__media--wide img { width: 96%; height: auto; aspect-ratio: 16 / 10; }
.k-linkcard__body { grid-area: body; display: grid; gap: 4px; min-width: 0; padding: 14px 4px 6px; }
.k-linkcard__t { font-size: var(--fs-h4); font-weight: 500; line-height: 1.25; letter-spacing: -.008em; }
.k-linkcard__d { overflow-wrap: anywhere; }
.k-linkcard__body .k-status { margin-top: 6px; justify-self: start; }
.k-linkcard__go {
  grid-area: go; align-self: end; margin: 0 2px 4px 0; 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-linkcard__go .i { transition: transform var(--d-s) var(--ease-out); }
.k-linkcard:active { transform: scale(.99); }
.k-linkcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .k-linkcard:hover { box-shadow: 0 0 0 1px var(--rule-2), var(--k-shadow-hover); }
  .k-linkcard:hover .k-linkcard__media img { transform: scale(1.03); }
  .k-linkcard:hover .k-linkcard__go { background: var(--fg); color: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }
  .k-linkcard:hover .k-linkcard__go .i { transform: translate(var(--nudge-x, var(--nudge)), var(--nudge-y, 0px)); }
}
.k-linkcard:focus-visible .k-linkcard__go { background: var(--fg); color: var(--bg); }
/* Plain link card (no media): body · arrow circle on one line */
.k-linkcard--plain { grid-template-rows: auto; grid-template-areas: "body go"; align-items: center; padding: 16px 16px 16px 22px; }
.k-linkcard--plain .k-linkcard__body { padding: 4px 0; }
.k-linkcard--plain .k-linkcard__go { align-self: center; margin: 0; }
.k-linkcards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .k-linkcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .k-linkcards { grid-template-columns: repeat(var(--k-cols, 3), minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 20px); } }
.k-linkcards > li { display: grid; min-width: 0; }
.k-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.k-list li { display: flex; align-items: center; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.k-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.k-actions--tight { gap: 10px; }

/* ---------- 14. Chips + status labels ---------- */
/* Pill filter chips on top of base .chip: <div class="k-chips" role="group" aria-label="Content" data-k-chips="single">
     <button class="chip k-chip" type="button" aria-pressed="true">10 mg</button>…</div>
   data-k-chips="single" keeps one pressed (site.js); links use aria-current instead. */
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.k-chip { min-height: 40px; padding: 0 18px; font-size: .875rem; 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-chip[aria-current="page"], .k-chip[aria-current="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.k-chip:active { transform: scale(.97); }
@media (pointer: coarse) { .k-chip { min-height: var(--target); } }
.k-chip .t-3 { font-family: var(--font-num); font-size: 10.5px; }
.k-chip[aria-pressed="true"] .t-3 { color: inherit; opacity: .7; }

/* Status labels (hub, internal review): <span class="k-status" data-status="approved|working|placeholder|proposal|planned|hidden">Working copy</span> */
.k-status {
  display: inline-flex; align-items: center; gap: 8px; min-height: 26px; padding: 0 10px 0 8px; border-radius: var(--r-chip);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-family: var(--font-num); font-size: 10px; font-weight: 500; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap;
}
.k-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--fg); }
.k-status[data-status="approved"]::before { background: var(--fg); }
.k-status[data-status="working"]::before { background: linear-gradient(90deg, var(--fg) 50%, transparent 50%); }
.k-status[data-status="placeholder"]::before { border-style: dashed; border-color: var(--fg-2); }
.k-status[data-status="proposal"]::before { border-color: var(--fg-2); }
.k-status[data-status="planned"]::before { border-color: var(--fg-3); border-style: dotted; }
.k-status[data-status="hidden"]::before { border-color: var(--fg-3); background: repeating-linear-gradient(45deg, var(--fg-3) 0 1px, transparent 1px 3px); }

/* ---------- 15. Accordion card variant (on the foundation's .cl-acc + data-acc) ---------- */
/* <div class="cl-acc k-acc--cards" data-acc><details class="cl-acc__item">…</details></div> */
.k-acc--cards { display: grid; gap: 10px; border-top: 0; }
.k-acc--cards .cl-acc__item { border-bottom: 0; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--k-ring); transition: box-shadow var(--d-s) var(--ease-out); }
.k-acc--cards .cl-acc__q { min-height: 72px; padding: 16px 16px 16px 24px; border-radius: var(--r-card); }
.k-acc--cards .cl-acc__q:focus-visible { outline-offset: -2px; }
.k-acc--cards .cl-acc__q .i {
  box-sizing: content-box; padding: 9px; border-radius: 50%; background: var(--c-mist); color: var(--l-fg);
  transition: transform var(--d-s) var(--ease-in-out), background-color var(--d-s) var(--ease-out), color var(--d-s) var(--ease-out);
}
.k-acc--cards .cl-acc__item[open] > .cl-acc__q .i { background: var(--l-fg); color: var(--c-white); }
.k-acc--cards .cl-acc__a-in { padding: 0 24px 24px; }
@media (hover: hover) and (pointer: fine) {
  .k-acc--cards .cl-acc__item:hover { border-bottom-color: transparent; box-shadow: 0 0 0 1px var(--rule-2); }
  .k-acc--cards .cl-acc__q:hover .i { background: var(--c-fog); }
  .k-acc--cards .cl-acc__item[open] > .cl-acc__q:hover .i { background: var(--c-graphite); }
}

/* ---------- 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; }
.k-hide { display: none !important; }
html.k-js .k-nojs { display: none !important; }
html:not(.k-js) .k-jsonly, html:not(.k-js) button[data-k-add] { display: none !important; }
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; }
}
