/* ===========================================================================
   Storefront
   ===========================================================================
   Driven by per-store CSS custom properties (--shop-*) that the theme layer
   writes into a style attribute on <html>. Every value in that attribute has
   been validated by ThemeSettings, so this file can use them directly.

   The platform tokens are NOT used for colour here: a storefront must look like
   the merchant's shop, not like Zhopwe. Spacing, type scale and motion are
   shared, because those are craft rather than brand.
   =========================================================================== */

/* ── The platform's dark scheme stops at the shop door ──────────────────────
   tokens.css switches every semantic role to its dark value when the VISITOR's
   system asks for dark, and the storefront loads tokens.css for its type,
   spacing and motion. The merchant's palette does not switch — it is whatever
   they chose — so a shopper browsing a light shop from a dark phone was
   getting the platform's dark text and surface roles inside it: near-black
   `code` and `pre` blocks in a merchant's own page copy, and a jade-300 link
   colour on a white background.

   The storefront is themed by the merchant, not by the reader, so the roles
   are pinned back to their light values for the whole document. Everything
   that should follow the merchant lives in --shop-*, and that is untouched. */
.shop {
    /* Native controls follow color-scheme, not our custom properties: with the
       platform scheme left at dark, the shop's own language <select> rendered as
       a black pill with black text in the middle of a white header. Pinning it
       here fixes the select, the scrollbars and the date picker together. */
    color-scheme: light;

    --surface-page:   var(--neutral-50);
    --surface-card:   var(--neutral-0);
    --surface-raised: var(--neutral-0);
    --surface-sunken: var(--neutral-100);
    --text-primary:   var(--neutral-900);
    --text-secondary: var(--neutral-700);
    /* Follows the platform's own --text-muted, which moved from --neutral-500
       to --neutral-600 for contrast; pinning the old value here would have
       quietly kept the 3.47:1 table-header failure alive on the storefront
       only. */
    --text-muted:     var(--neutral-600);
    --text-link:       var(--jade-700);
    --text-link-hover: var(--jade-800);
    --border-subtle:  var(--neutral-150);
    --border-default: var(--neutral-200);
    --border-strong:  var(--neutral-300);

    font-family: var(--shop-font-body);
    font-size: var(--shop-base-size);
    color: var(--shop-text);
    background: var(--shop-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.shop h1, .shop h2, .shop h3, .shop h4 {
    font-family: var(--shop-font-heading);
    color: var(--shop-text);
}

.shop-container {
    width: 100%;
    max-width: var(--shop-container);
    margin-inline: auto;
    padding-inline: var(--space-5);
}

.shop-main { flex: 1; }

/* ── Announcement ─────────────────────────────────────────────────────────── */

.shop-announcement {
    padding: var(--space-2) var(--space-4);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--shop-on-primary);
    background: var(--shop-primary);
}
.shop-announcement a { color: inherit; }

/* ── Header ───────────────────────────────────────────────────────────────── */

.shop-header {
    border-bottom: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
    background: var(--shop-bg);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.shop-header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    min-height: 4.25rem;
    /*
     * Allowed to wrap, because at the narrow end it has to.
     *
     * The row is the brand plus the cart/search/account controls, and nothing
     * in it can usefully shrink: the brand is a logo and a shop name, and the
     * icon buttons are already at the minimum tap target. Measured at a 320px
     * viewport: brand 120px + actions 217px + a 20px gap is 357px, so the
     * header ran 57px past the edge and the cart icon — the control a shopper
     * most needs — was the part off-screen. Every storefront page, every
     * language.
     *
     * Wrapping to a second row keeps all of it reachable and costs nothing
     * above that width: at 390px the row is 357px and still fits on one line,
     * so this changes no layout that was already working.
     */
    flex-wrap: wrap;
}

.shop-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: inherit;
    font-family: var(--shop-font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-heading);
}

/* Whatever shape the merchant uploads, the picture keeps its proportions:
   the header caps the height, the merchant's own setting caps the width, and
   object-fit means neither one stretches it. A tall or square logo comes out
   smaller than a wide one — which is true of every shopfront sign. */
.shop-logo {
    max-height: 3rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.shop-nav { margin-inline-start: auto; }

.shop-nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-target);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-base);
    color: inherit;
    text-decoration: none;
    border-radius: var(--shop-radius);
    opacity: 0.8;
    transition: opacity var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
}

.shop-nav-link:hover {
    opacity: 1;
    color: inherit;
    background: color-mix(in srgb, var(--shop-text) 6%, transparent);
}

.shop-header-actions { display: flex; align-items: center; gap: var(--space-1); }

.shop-icon-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: var(--tap-target);
    height: var(--tap-target);
    color: inherit;
    text-decoration: none;
    border-radius: var(--shop-radius);
}
.shop-icon-button:hover { background: color-mix(in srgb, var(--shop-text) 6%, transparent); color: inherit; }

.shop-cart-count {
    position: absolute;
    top: 0.35rem;
    inset-inline-end: 0.3rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding-inline: 0.2rem;
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    font-weight: var(--weight-bold);
    line-height: 1;
    color: var(--shop-on-primary);
    background: var(--shop-primary);
    border-radius: 999px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: var(--tap-target);
    padding: var(--space-3) var(--space-5);
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--shop-radius);
    cursor: pointer;
    transition: filter var(--duration-fast) var(--ease-out),
                transform var(--duration-instant) var(--ease-out);
}

.shop-btn:active:not(:disabled) { transform: translateY(1px); }
.shop-btn:focus-visible { outline: 2px solid var(--shop-primary); outline-offset: 2px; }

.shop-btn-primary {
    background: var(--shop-primary);
    color: var(--shop-on-primary);
    border-color: var(--shop-primary);
}
.shop-btn-primary:hover:not(:disabled) { filter: brightness(0.92); color: var(--shop-on-primary); }

.shop-btn-secondary {
    background: transparent;
    color: var(--shop-text);
    border-color: color-mix(in srgb, var(--shop-text) 22%, transparent);
}
.shop-btn-secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--shop-text) 5%, transparent); color: inherit; }

.shop-btn-accent {
    background: var(--shop-accent);
    color: var(--text-on-accent);
    border-color: var(--shop-accent);
}

.shop-btn:disabled, .shop-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.shop-btn-block { width: 100%; }

/* ── Sections ─────────────────────────────────────────────────────────────── */

/*
 * Section rhythm is scaled by the merchant's own "spacing" theme setting.
 * --shop-space-scale is a unitless multiplier written by the theme settings, so
 * one setting moves every band's padding and the grid's gutters together
 * instead of the merchant tuning six numbers that must agree.
 */
.shop-section { padding-block: calc(var(--space-16) * var(--shop-space-scale, 1)); }
.shop-section-tight { padding-block: calc(var(--space-10) * var(--shop-space-scale, 1)); }

.shop-section-head { margin-bottom: var(--space-8); }
.shop-section-title { font-size: clamp(var(--text-xl), 3.5vw, var(--text-3xl)); letter-spacing: var(--tracking-display); }
.shop-section-body { margin-top: var(--space-3); opacity: 0.75; max-width: 42rem; text-wrap: pretty; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.shop-hero {
    position: relative;
    display: grid;
    align-items: center;
    background: var(--shop-surface);
}

.shop-hero-short { min-height: 16rem; }
.shop-hero-tall { min-height: 30rem; }

.shop-hero-inner { padding-block: var(--space-16); }
.shop-hero-center { text-align: center; }
.shop-hero-center .shop-hero-copy { margin-inline: auto; }

.shop-hero-copy { max-width: 36rem; }

.shop-hero-title {
    font-size: clamp(var(--text-2xl), 6vw, var(--text-5xl));
    line-height: 1.1;
    letter-spacing: var(--tracking-display);
}

.shop-hero-sub { margin-top: var(--space-4); font-size: var(--text-lg); opacity: 0.8; text-wrap: pretty; }
.shop-hero-actions { margin-top: var(--space-8); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.shop-hero-center .shop-hero-actions { justify-content: center; }

/* ── A hero with a picture behind it ──────────────────────────────────────────
   `--hero-image` / `--hero-image-mobile` are written as an `image-set()` by
   the section template, which is the only place that knows which asset the
   merchant chose. Everything about HOW it is painted stays here.

   The picture is on a ::before rather than on the section itself, for one
   practical reason: the scrim that makes the text readable has to sit between
   the picture and the words, and `background-image` plus `background-color`
   on one element paint in the wrong order for that.

   MOBILE FIRST, and literally: the default rule names the mobile image, and
   the desktop one is swapped in at 52rem. A phone therefore never downloads
   the 1448px file in order to paint a 390px band. */
/* The two picture slots are DECLARED here, empty.

   They are filled by the section template, which writes an `image-set()` into
   a style attribute because only PHP knows which asset the merchant chose. A
   custom property that is only ever set from PHP is invisible to this
   stylesheet and to anyone reading it, and `DesignSystemTest` rightly fails a
   `var()` whose property is defined nowhere. Declaring them as `none` makes
   the contract visible, gives the band a defined state when the template sets
   nothing, and keeps the test honest rather than exempted. */
.shop-hero-media {
    --hero-image: none;
    --hero-image-mobile: none;
    background: var(--shop-bg);
}

.shop-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image-mobile, var(--hero-image, none));
    background-size: cover;
    /* Centre-top: every background in the shipped pack carries its botanical
       detail around the edges and keeps the middle open, and a band cropped
       from the centre keeps that open middle where the words go. */
    background-position: 50% 30%;
    background-repeat: no-repeat;
    z-index: 0;
}
@media (min-width: 52rem) {
    .shop-hero-media::before {
        background-image: var(--hero-image, var(--hero-image-mobile, none));
        background-position: 50% 45%;
    }
}

/* The scrim.

   A wash of the PAGE's own colour, strongest at the start edge where the copy
   sits and clearing before the middle, so the picture is still a picture on
   the other side. It is the contrast control, not decoration: these ivory
   backgrounds have sunlit folds in them that dark text does not survive.

   `--hero-scrim` is set per strength below so the gradient itself is written
   once; `none` removes the layer rather than painting a transparent one. */
.shop-hero-overlay-soft   { --hero-scrim: 72%; --hero-scrim-end: 62%; }
.shop-hero-overlay-strong { --hero-scrim: 92%; --hero-scrim-end: 78%; }

.shop-hero-overlay-soft::after,
.shop-hero-overlay-strong::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to inline-end,
        color-mix(in srgb, var(--shop-bg) var(--hero-scrim), transparent) 0%,
        color-mix(in srgb, var(--shop-bg) var(--hero-scrim-end), transparent) 38%,
        transparent 72%);
    z-index: 0;
}
/* With no products beside it the copy is the only thing on the band, so the
   wash runs the whole width and the gradient would leave the right half of a
   long headline unreadable. */
.shop-hero-overlay-soft:not(.shop-hero-split)::after,
.shop-hero-overlay-strong:not(.shop-hero-split)::after {
    background: color-mix(in srgb, var(--shop-bg) var(--hero-scrim-end), transparent);
}

/* The copy has to win the stacking contest against both pseudo-elements. */
.shop-hero-inner { position: relative; z-index: 1; }

/* A background whose artwork is dark takes light text. `ThemeAssets::tone()`
   decides which, from a value recorded per asset — not guessed per template,
   because guessing wrong is how a near-black headline ended up on a navy band
   in this file's history. Every piece of text is given the colour explicitly
   for the same reason: `.shop h1` is a more specific selector than this one,
   so inheritance cannot be relied on. */
.shop-hero-tone-dark .shop-hero-title,
.shop-hero-tone-dark .shop-hero-sub,
.shop-hero-tone-dark .shop-eyebrow {
    color: var(--shop-on-primary);
}
.shop-hero-tone-dark.shop-hero-overlay-soft::after,
.shop-hero-tone-dark.shop-hero-overlay-strong::after {
    background: linear-gradient(
        to inline-end,
        color-mix(in srgb, var(--shop-text) var(--hero-scrim), transparent) 0%,
        color-mix(in srgb, var(--shop-text) var(--hero-scrim-end), transparent) 38%,
        transparent 72%);
}

/* ── A hero with real products beside it ──────────────────────────────────────
   One column on a phone — copy, then products — and two side by side from
   52rem. The copy column is given a max so a long Sinhala or Tamil headline
   wraps into a readable measure instead of running under the product column.

   The products are a plain grid of the SAME card partial the shop's grids use.
   Nothing here is a special hero card with its own price or badge logic: the
   rules about what a "Reduced" badge means and when "only N left" may be shown
   live in one file, and this band obeys them like every other. */
@media (min-width: 52rem) {
    .shop-hero-split .shop-hero-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: clamp(var(--space-8), 5vw, var(--space-16));
        align-items: center;
    }
}

/* The merchant's own picture in the second column (hero `side_image`). */
.shop-hero-picture { margin-top: var(--space-8); }
.shop-hero-picture img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--shop-radius); }
@media (min-width: 52rem) {
    .shop-hero-picture { margin-top: 0; }
}

.shop-hero-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-10);
}
@media (min-width: 52rem) {
    .shop-hero-products { margin-top: 0; gap: var(--space-5); }
}

/* On a phone the lead takes the full width and the rest pair up under it. */
.shop-hero-card-lead { grid-column: 1 / -1; }

/* A hero card is smaller type than a grid card: it is beside a headline, not
   competing with one. */
.shop-hero-card .shop-card-title { font-size: var(--text-base); }
.shop-hero-card .shop-card-body { padding-top: var(--space-2); }

/* THE WHOLE CARD SITS ON A PANEL, not just its picture.

   In a grid the card's words are on the page's own background and are
   readable by construction. In the hero they are over a PHOTOGRAPH, and a
   screenshot caught exactly what that does: "TotalCare Shampoo" and its price
   laid over a sunlit fold of fabric, dark grey on mid-beige, unreadable at a
   glance and failing contrast outright in places. The tinted media tile
   underneath the picture did nothing for them, because they are not inside it.

   So the panel wraps the card. It is the shop's own surface colour, nearly
   opaque, which keeps the text on a known background whatever picture the
   merchant chooses — the same reasoning as the hero's scrim, applied to the
   other column.

   Only in the hero: `.shop-hero-card` is a class the grid never carries, so a
   product card everywhere else is untouched. */
.shop-hero-card {
    padding: var(--space-3);
    border-radius: var(--shop-radius);
    background: color-mix(in srgb, var(--shop-surface) 90%, transparent);
    border: 1px solid color-mix(in srgb, var(--shop-text) 6%, transparent);
}
/* A touch of blur where it is supported, so the panel reads as glass over the
   photograph rather than as a flat rectangle stuck on it. Purely additive:
   the panel is already opaque enough without it. */
@supports (backdrop-filter: blur(1px)) {
    .shop-hero-card { backdrop-filter: blur(6px); }
}
/* The media tile would be a second surface inside the first. */
.shop-hero-card .shop-card-media {
    background: color-mix(in srgb, var(--shop-primary) 4%, var(--shop-surface));
}

/* THE HEIGHT OF THIS COLUMN IS THE HEIGHT OF THE BAND, which is the thing
   that goes wrong here. The first attempt stacked a wide lead card above two
   square ones; at a 38rem column that came to roughly 800px of hero, with the
   headline floating in the middle of the empty half beside it. A shopper then
   has to scroll past the fold to reach the first row of the actual shop.

   So on desktop the lead takes the LEFT column across both rows and the two
   supporting products stack beside it. The tallest thing in the column is now
   one card rather than one card plus another, and the band is about the height
   of the copy it sits next to. */
@media (min-width: 52rem) {
    .shop-hero-products {
        grid-template-columns: 1.15fr 1fr;
        align-items: start;
    }
    .shop-hero-card-lead:not(:only-child) {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
}

/* `--shop-card-aspect` is the merchant's chosen card shape and is right for a
   grid of twelve. A hero is a different composition: the lead is portrait
   because these are tall bottles and jars, and the supporting two are square
   so the pair matches the lead's height rather than overrunning it. */
.shop-hero-card-lead .shop-card-media { aspect-ratio: 3 / 4; }

/* 3:2, chosen by arithmetic rather than by eye. The lead is 3:4 in a column
   about 1.15 times the width of the supporting one; for the two stacked cards
   to finish level with it, each needs to be a little wider than tall. At 1:1
   the right-hand column overran the lead by about a card's caption, which is
   the ragged bottom edge a screenshot caught here. */
.shop-hero-card:not(.shop-hero-card-lead) .shop-card-media { aspect-ratio: 3 / 2; }

/* ── Product grid ─────────────────────────────────────────────────────────── */

.shop-grid {
    display: grid;
    gap: calc(var(--space-6) * var(--shop-space-scale, 1)) calc(var(--space-5) * var(--shop-space-scale, 1));
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
}

@media (max-width: 64rem) { .shop-grid { grid-template-columns: repeat(min(var(--cols, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 48rem) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); } }

.shop-card { display: flex; flex-direction: column; }

.shop-card-media {
    position: relative;
    aspect-ratio: var(--shop-card-aspect);
    overflow: hidden;
    border-radius: var(--shop-radius);
    background: var(--shop-surface);
}

/* ── WHY `contain` AND NOT `cover` ───────────────────────────────────────────
   A merchant's photographs do not all have the same shape. Measured on a real
   catalogue: of 24 products, 8 were 4:5, 11 were square and 5 were 3:4. The
   tile is 4:5, so `cover` fitted eight of them and cropped the other sixteen —
   the square ones lost their top and bottom, the tall ones lost their sides,
   and on a cosmetics label that is where the product name is.

   `cover` is the right default for photography a designer chose and framed.
   It is the wrong one for a catalogue whose pictures arrive from whoever
   photographed the stock. The tile keeps its ratio so the grid stays even;
   the picture sits inside it whole, on the theme's own surface colour, which
   on the white-background product shots this is built for is invisible. */
.shop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--duration-slow) var(--ease-out);
}
.shop-card:hover .shop-card-media img { transform: scale(1.03); }

/* The "no photograph" icon, on a --shop-surface tile.
   --shop-text at 25% composited over that tile measured 1.69:1. The matrix
   measured it against white; the real backdrop is --shop-surface, which is
   darker still. Mixed INTO --shop-surface rather than into transparent so the
   result is a flat, measurable colour instead of an alpha whose contrast
   depends on whatever happens to be behind it. */
.shop-card-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: color-mix(in srgb, var(--shop-text) 62%, var(--shop-surface));
}

.shop-card-body { padding-top: var(--space-3); }

.shop-card-title {
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    line-height: 1.4;
}
.shop-card-title a { color: inherit; text-decoration: none; }
.shop-card-title a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* The whole card is clickable, but the accessible name comes from the real
   link in the title — so a screen reader announces the product name, not
   "link, link, link". */
.shop-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}
.shop-card { position: relative; }

/*
 * The rating on a card. Smaller than the product page's and with no link of
 * its own, because the card title is already the link to the same page.
 */
.shop-card-rating {
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    display: flex;
    gap: var(--space-1);
    align-items: baseline;
    flex-wrap: wrap;
}
.shop-card-rating span:first-child { color: var(--shop-primary); letter-spacing: 0.06em; }
.shop-card-rating span:last-child { opacity: 0.7; }

.shop-card-price { margin-top: var(--space-1); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
/* The struck-through was-price. `opacity: 0.55` put it at 3.75:1 — and opacity
   is the wrong tool for de-emphasising text anyway, because it makes the
   rendered contrast a property of whatever is behind the element rather than
   of a colour anyone can measure. A mix into --shop-bg is the same visual idea
   with an answer: 6.05:1 on the default palette. The line-through, not the
   lightness, is what says "this is the old price". */
.shop-card-compare {
    margin-inline-start: var(--space-2);
    font-weight: var(--weight-regular);
    color: color-mix(in srgb, var(--shop-text) 70%, var(--shop-bg));
    text-decoration: line-through;
}

.shop-badge {
    position: absolute;
    top: var(--space-2);
    inset-inline-start: var(--space-2);
    padding: 0.15rem var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    border-radius: var(--shop-radius);
    background: var(--shop-bg);
    color: var(--shop-text);
}
.shop-badge-sold-out { background: color-mix(in srgb, var(--shop-text) 80%, transparent); color: var(--shop-bg); }

.shop-availability { margin-top: var(--space-1); font-size: var(--text-sm); }
/* The three availability lines, measured on both backdrops a storefront draws
   them on — --shop-bg on a product page and --shop-surface in a card.
   --success-600 was already clear (6.14 / 5.77); --amber-600 was 4.27 / 4.02
   and was darkened in tokens.css; out-of-stock was `opacity: 0.6` at 4.38 and
   is now a mix with a number against its name. */
.shop-in-stock { color: var(--success-600); }
.shop-low-stock { color: var(--amber-600); }
.shop-out-of-stock { color: color-mix(in srgb, var(--shop-text) 70%, var(--shop-bg)); }

/* ── Product page ─────────────────────────────────────────────────────────── */

.shop-product {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-12);
    align-items: start;
    padding-block: var(--space-10);
}

@media (max-width: 60rem) {
    .shop-product { grid-template-columns: 1fr; gap: var(--space-8); }
}

.shop-product-media { display: grid; gap: var(--space-3); }

.shop-product-image {
    aspect-ratio: var(--shop-card-aspect);
    border-radius: var(--shop-radius);
    overflow: hidden;
    background: var(--shop-surface);
}
/* The same reasoning as the card, and it matters more here: this is the image
   a shopper opens to read the label before paying. */
.shop-product-image img { width: 100%; height: 100%; object-fit: contain; }

.shop-product-thumbs { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.shop-product-thumb {
    width: 4.5rem;
    aspect-ratio: 1;
    border-radius: var(--shop-radius);
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--shop-surface);
    cursor: pointer;
    padding: 0;
}
.shop-product-thumb[aria-current="true"] { border-color: var(--shop-primary); }

/* A thumbnail is a square picker for pictures that are not square, and it is
   how a shopper tells one angle of a jar from another. Cropping it to the
   square is how two different photographs end up looking like the same one. */
.shop-product-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.shop-product-title { font-size: clamp(var(--text-xl), 4vw, var(--text-3xl)); letter-spacing: var(--tracking-display); }
/* The rating, beside the price. Small, quiet, and a link — the reviews
   themselves are rendered once, at the bottom. */
.shop-product-rating { margin-top: var(--space-2); font-size: var(--text-sm); }
.shop-product-rating a { color: inherit; text-decoration: none; display: inline-flex; gap: var(--space-2); align-items: baseline; }
.shop-product-rating a:hover { text-decoration: underline; color: inherit; }
.shop-product-rating span:first-child { color: var(--shop-primary); letter-spacing: 0.08em; }
.shop-product-rating span:last-child { opacity: 0.7; }

/* Benefits the merchant typed as dashes, rendered as the list they are. */
.shop-product-points {
    margin-top: var(--space-3);
    padding-left: var(--space-5);
    display: grid;
    gap: var(--space-1);
}
.shop-product-points li { line-height: 1.6; }
.shop-product-points-lead { margin-top: var(--space-4); font-weight: var(--weight-semibold); }

/* The heading that separates "about this product" from "ordering". */
.shop-qa-group {
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.6;
}
.shop-qa-group + .shop-qa-list { margin-top: var(--space-2); }

.shop-product-price { margin-top: var(--space-4); font-size: var(--text-xl); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.shop-product-description { margin-top: var(--space-6); line-height: 1.7; }
.shop-product-description p + p { margin-top: var(--space-4); }
.shop-product-form { margin-top: var(--space-8); display: grid; gap: var(--space-4); }

.shop-option { display: grid; gap: var(--space-2); }
.shop-option-label { font-weight: var(--weight-medium); font-size: var(--text-sm); }
.shop-option-values { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.shop-option-value {
    min-height: var(--tap-target);
    padding: var(--space-2) var(--space-4);
    border: 1px solid color-mix(in srgb, var(--shop-text) 22%, transparent);
    border-radius: var(--shop-radius);
    background: transparent;
    cursor: pointer;
    font: inherit;
}
.shop-option-value[aria-pressed="true"] {
    border-color: var(--shop-primary);
    background: color-mix(in srgb, var(--shop-primary) 10%, transparent);
}

.shop-qty { display: flex; align-items: center; gap: var(--space-2); }
.shop-qty input {
    width: 4.5rem;
    min-height: var(--tap-target);
    padding: var(--space-2);
    text-align: center;
    font: inherit;
    border: 1px solid color-mix(in srgb, var(--shop-text) 22%, transparent);
    border-radius: var(--shop-radius);
    background: var(--shop-bg);
    color: inherit;
}

.shop-meta-list { margin-top: var(--space-8); display: grid; gap: var(--space-2); font-size: var(--text-sm); opacity: 0.8; }

/* ── Trust badges ─────────────────────────────────────────────────────────── */

.shop-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--space-3);
    padding-block: var(--space-6);
    border-block: 1px solid color-mix(in srgb, var(--shop-text) 10%, transparent);
}

/* Each tile is the link, and its contents are CENTRED within it. Left-aligned
   in a wide column, three short labels drifted apart and the row read as three
   stranded words with a lot of nothing between them. The surface fill gives
   the band something to be, so the height it occupies is deliberate. */
.shop-trust-item {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    justify-content: center;
    padding: var(--space-5) var(--space-4);
    border-radius: var(--shop-radius);
    background: var(--shop-surface);
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.shop-trust-item:hover {
    background: color-mix(in srgb, var(--shop-primary) 8%, var(--shop-surface));
    color: inherit;
}

/* Nothing moves for a visitor who has asked their system not to animate. */
@media (prefers-reduced-motion: no-preference) {
    .shop-trust-item:hover { transform: translateY(-1px); }
}

.shop-trust-icon { color: var(--shop-primary); flex-shrink: 0; display: flex; }
.shop-trust-title { font-weight: var(--weight-semibold); font-size: var(--text-base); }
.shop-trust-body { margin-top: 0.15rem; font-size: var(--text-sm); opacity: 0.75; }

/* ── Questions and answers ───────────────────────────────────────────────────
   A stack of disclosures, not a wall of text: a shopper has one question and
   wants to find it, not read twelve answers to find theirs. The first is open
   so the band does not read as a row of closed boxes. */

.shop-qa-list {
    margin-top: var(--space-5);
    border-top: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
}

.shop-qa-item {
    border-bottom: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
}

.shop-qa-q {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    align-items: center;
    padding-block: var(--space-4);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    list-style: none;
}

/* The default triangle differs between browsers and sits badly against a
   flex row, so it is replaced with one marker drawn from the theme's text. */
.shop-qa-q::-webkit-details-marker { display: none; }
.shop-qa-q::after {
    content: "+";
    flex: none;
    font-weight: var(--weight-regular);
    font-size: var(--text-lg);
    opacity: 0.55;
}
.shop-qa-item[open] .shop-qa-q::after { content: "\2212"; }

.shop-qa-a {
    padding-bottom: var(--space-4);
    opacity: 0.85;
    line-height: 1.7;
    text-wrap: pretty;
}
.shop-qa-a p + p { margin-top: var(--space-3); }
.shop-qa-points { margin-top: var(--space-2); padding-left: var(--space-5); display: grid; gap: var(--space-1); }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.shop-footer {
    margin-top: var(--space-16);
    padding-block: var(--space-12) var(--space-8);
    /* `background-color`, NOT the `background` shorthand: the shorthand resets
       `background-image`, and a footer the merchant has given a picture sets
       one. This cost a debugging round — the class was right, the custom
       property held a valid image-set, and the computed background-image was
       `none`. */
    background-color: var(--shop-surface);
    border-top: 1px solid color-mix(in srgb, var(--shop-text) 10%, transparent);
}

/*
 * The about column, then one column per group of links the merchant named.
 *
 * `auto-fit` rather than a fixed three: this was `repeat(2, …)` beside a single
 * list of links, so the third column was always empty and the footer had a
 * conspicuous hole in it. Now the track grows with the number of columns and
 * there is no hole whether a shop names none or four.
 */
/*
 * ── THE FOOTER'S COLUMNS ───────────────────────────────────────────────────
 *
 * This was `1.5fr` for the brand block then `repeat(auto-fit, minmax(9rem,
 * 1fr))` for the rest. `auto-fit` collapses the tracks it has no items for,
 * so a shop whose policy pages all sit in one group — which is every shop
 * that has not used the footer-group field — rendered a very wide brand block,
 * one narrow list, and a stretch of empty footer between them. It read as a
 * broken grid and it was really a grid with nothing to put in it.
 *
 * Two changes. The brand column is given a sane maximum instead of a share of
 * whatever is left, so it stops swallowing the row; and the link columns are
 * `auto-fill` at a fixed minimum, so they keep their width and sit next to
 * each other rather than spreading to the far edge. The contact column, which
 * every shop with a phone number now has, means the common case is three
 * columns rather than two.
 */
.shop-footer-grid {
    display: grid;
    /* The brand block is capped rather than given a share of the row, so it
       stops swallowing the width; the link columns take equal shares of what
       is left, so two of them reach the right edge instead of huddling in the
       middle with a stretch of empty footer beside them. */
    grid-template-columns: minmax(0, 22rem) repeat(auto-fit, minmax(10rem, 1fr));
    gap: var(--space-8);
    align-items: start;
}
@media (max-width: 64rem) {
    .shop-footer-grid {
        grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
        justify-content: start;
    }
    /* The brand block keeps the full width above the columns. */
    .shop-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 40rem) { .shop-footer-grid { grid-template-columns: 1fr; gap: var(--space-6); } }

.shop-footer-about { max-width: 28rem; font-size: var(--text-sm); opacity: 0.8; text-wrap: pretty; }
.shop-footer-heading { font-size: var(--text-sm); font-weight: var(--weight-semibold); margin-bottom: var(--space-3); }
.shop-footer-links { list-style: none; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.shop-footer-links a { color: inherit; text-decoration: none; opacity: 0.8; }
.shop-footer-links a:hover { opacity: 1; text-decoration: underline; color: inherit; }

/*
 * How the shop can be paid: each method by name, bank transfer with the
 * logos of the banks it takes, and PayHere as its official banner (the cards
 * it takes). Built only from the gateways that can actually take money —
 * see StorefrontChrome::paymentMarks().
 */
.shop-footer-pay {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    align-items: center;
    margin-top: var(--space-5);
    font-size: var(--text-sm);
}
.shop-footer-pay-label { opacity: 0.7; }
.shop-footer-pay-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop-footer-pay-list li {
    /* The same hairline the cards use: a border token would not follow the
       merchant's text colour, and these sit on the footer's own background. */
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: var(--shop-radius);
    padding: var(--space-1) var(--space-2);
}
.shop-footer-pay-list li.shop-pay-mark { display: inline-flex; align-items: center; gap: var(--space-2); }
/* Logos and the PayHere banner are drawn on white by their owners, so they
   sit on a white tile whatever colour the footer is. */
.shop-pay-banks { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.shop-pay-banks img {
    display: block;
    width: 60px;
    height: 24px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
}
.shop-footer-pay-list li.shop-pay-mark-image { padding: 0; border: 0; }
.shop-pay-mark-image img {
    display: block;
    width: min(400px, 100%);
    height: auto;
    background: #fff;
    border-radius: 4px;
}
/* At checkout, under the method's name. */
.shop-pay-banks-choice { margin-top: var(--space-2); }
.shop-pay-banks-choice img { width: 70px; height: 28px; border: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent); }
.shop-pay-choice-image { display: block; margin-top: var(--space-2); width: min(320px, 100%); height: auto; }

/* Order page: one card per bank account. */
.shop-conf-banks { display: grid; gap: var(--space-3); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.shop-conf-bankcard {
    padding: var(--space-3);
    border: 1px solid color-mix(in srgb, var(--shop-text) 14%, transparent);
    border-radius: var(--shop-radius);
    background: var(--shop-surface);
}
.shop-conf-banklogo { display: block; width: 120px; height: 48px; object-fit: contain; object-position: left center; margin-bottom: var(--space-2); }
.shop-conf-bankname { font-weight: 600; margin: 0 0 var(--space-2); }
.shop-copy-btn {
    margin-inline-start: var(--space-2);
    padding: 2px 10px;
    font: inherit;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--shop-primary);
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 999px;
    cursor: pointer;
}

.shop-footer-base {
    margin-top: var(--space-10);
    padding-top: var(--space-5);
    border-top: 1px solid color-mix(in srgb, var(--shop-text) 10%, transparent);
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: var(--text-sm);
    opacity: 0.7;
}

/* The merchant's own networks; the margin moved here from an inline style
   when the list stopped being three fixed fields. Wraps, because the list
   is now as long as they want it. */
.shop-social { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.shop-social a { color: inherit; opacity: 0.75; }
.shop-social a:hover { opacity: 1; }

/* ── Preview banner ───────────────────────────────────────────────────────── */

.shop-preview-banner {
    padding: var(--space-2) var(--space-4);
    text-align: center;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-on-notice-band);
    background: var(--surface-notice-band);
    border-bottom: 2px solid var(--border-notice-band);
}

/* A labelled demo store says so on every page. Deliberately louder than the
   preview banner — the preview banner tells a merchant something they already
   know, whereas this tells a stranger something they could not otherwise
   guess. It wraps rather than scrolling, because the Sinhala and Tamil strings
   are longer than the English and a phone must show all of it. */
.shop-demo-banner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-2);
    align-items: baseline;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-on-notice-band);
    background: var(--surface-notice-band);
    border-bottom: 2px solid var(--border-notice-band);
}

.shop-demo-banner strong { font-weight: var(--weight-semibold); }

/* ── Empty states ─────────────────────────────────────────────────────────── */

.shop-empty {
    display: grid;
    place-items: center;
    gap: var(--space-4);
    padding-block: var(--space-20);
    text-align: center;
}
.shop-empty-title { font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.shop-empty-body { opacity: 0.7; max-width: 30rem; }

/* ── Breadcrumb ───────────────────────────────────────────────────────────────
   The storefront does not load the platform's component stylesheet — it is
   the merchant's shop, not our interface — so the few shared patterns it uses
   are defined here against the theme's own properties. */

.shop-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--text-sm);
    opacity: 0.7;
}

.shop-breadcrumb li { display: flex; align-items: center; gap: var(--space-2); }

.shop-breadcrumb li:not(:last-child)::after {
    content: "/";
    opacity: 0.5;
}

.shop-breadcrumb a { color: inherit; text-decoration: none; }
.shop-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* Form fields on the storefront, themed rather than inheriting the platform's. */

.shop-field { margin-bottom: var(--space-5); }

.shop-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
}

.shop-input {
    display: block;
    width: 100%;
    min-height: var(--tap-target);
    padding: var(--space-3);
    /* 16px so iOS Safari does not zoom the page when the field is focused. */
    font-size: 16px;
    font-family: inherit;
    color: var(--shop-text);
    background: var(--shop-bg);
    border: 1px solid color-mix(in srgb, var(--shop-text) 22%, transparent);
    border-radius: var(--shop-radius);
}

.shop-input:focus {
    outline: none;
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--shop-primary) 22%, transparent);
}

.shop-input[aria-invalid="true"] { border-color: var(--danger-600); }


/* ===========================================================================
   Discovery: listings, filters and pagination
   ===========================================================================
   The filter column is a sidebar on a desktop and a collapsed <details> block
   above the results on a phone. It is markup order, not a media-query trick:
   on a phone the results are what the shopper came for, so the filters sit
   above them and take one tap to open rather than pushing the grid off screen.
   Everything here uses the --shop-* theme variables, so a merchant's colours,
   corner radius and spacing apply to the filters as much as to the products. */

.shop-listing { padding-block-end: calc(var(--space-12) * var(--shop-space-scale, 1)); }
.shop-listing-head { padding-block: calc(var(--space-8) * var(--shop-space-scale, 1)); }
.shop-listing-count { margin-top: var(--space-3); opacity: 0.7; font-size: var(--text-sm); }

.shop-listing-layout {
    display: grid;
    gap: calc(var(--space-8) * var(--shop-space-scale, 1));
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 64rem) {
    .shop-listing-layout { grid-template-columns: 15rem minmax(0, 1fr); }
    .shop-listing-filters { position: sticky; top: var(--space-4); align-self: start; }
}

.shop-notice {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--shop-radius);
    background: var(--shop-surface);
    border: 1px solid color-mix(in srgb, var(--shop-text) 14%, transparent);
    font-size: var(--text-sm);
}

/* ── Filters ─────────────────────────────────────────────────────────────── */

.shop-filters { display: grid; gap: var(--space-5); }

.shop-filter-group { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.shop-filter-legend { font-weight: var(--weight-semibold); font-size: var(--text-sm); padding: 0; }
.shop-filter-hint { font-size: var(--text-xs); opacity: 0.7; }

.shop-filter-row { display: flex; align-items: center; gap: var(--space-2); }
.shop-filter-row .shop-input { min-inline-size: 0; }

.shop-filter-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    /* A comfortable tap target: these are the controls a shopper on a phone
       pokes at repeatedly, and a 16px checkbox alone is not one. */
    min-height: var(--tap-target);
    cursor: pointer;
    font-size: var(--text-sm);
}

.shop-filter-check > span { display: flex; align-items: center; gap: var(--space-2); }
.shop-filter-count { opacity: 0.6; font-variant-numeric: tabular-nums; }

.shop-swatch {
    inline-size: 1rem;
    block-size: 1rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--shop-text) 25%, transparent);
}

.shop-filter-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.shop-search-form {
    margin-top: var(--space-5);
    margin-bottom: var(--space-6);
    display: flex;
    gap: var(--space-2);
    max-width: 34rem;
}

/* ── Category chips ──────────────────────────────────────────────────────── */

.shop-chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }

.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--tap-target);
    padding: var(--space-2) var(--space-4);
    border: 1px solid color-mix(in srgb, var(--shop-text) 20%, transparent);
    border-radius: var(--shop-radius);
    text-decoration: none;
    color: inherit;
    font-size: var(--text-sm);
}

.shop-chip:hover { border-color: var(--shop-primary); }

.shop-subcategories { margin-bottom: calc(var(--space-6) * var(--shop-space-scale, 1)); }

/* ── Pagination ──────────────────────────────────────────────────────────── */

.shop-pagination {
    margin-top: calc(var(--space-8) * var(--shop-space-scale, 1));
    display: grid;
    gap: var(--space-4);
    justify-items: center;
}

.shop-pagination-summary { font-size: var(--text-sm); opacity: 0.7; }

.shop-pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-pagination-link,
.shop-pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: var(--tap-target);
    min-height: var(--tap-target);
    padding-inline: var(--space-2);
    border-radius: var(--shop-radius);
    text-decoration: none;
    color: inherit;
    font-variant-numeric: tabular-nums;
}

.shop-pagination-link:hover { background: var(--shop-surface); }

.shop-pagination-current {
    background: var(--shop-primary);
    color: var(--shop-on-primary);
    font-weight: var(--weight-semibold);
}

.shop-pagination-edge {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-target);
    padding-inline: var(--space-3);
    opacity: 0.4;
    font-size: var(--text-sm);
}

/* ── Shop by category ─────────────────────────────────────────────────────────
   Picture tiles with the name under them, not over them. A caption laid over a
   photograph is the classic way to produce unreadable text: the contrast
   depends on whichever part of whichever image happens to be behind the words,
   and a merchant who uploads a pale photograph gets white-on-white with no
   warning. Under the picture it is the page's own text on the page's own
   background, and it is readable whatever they upload. */

.shop-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-category-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-decoration: none;
    color: inherit;
}

.shop-category-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--shop-radius);
    background: color-mix(in srgb, var(--shop-primary) 5%, var(--shop-bg));
}
/* `cover` here, unlike a product card's `contain`: a collection image is a
   scene that may be cropped, where a packshot is an object that may not. */
.shop-category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}
.shop-category-link:hover .shop-category-media img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
    .shop-category-media img { transition: none; }
    .shop-category-link:hover .shop-category-media img { transform: none; }
}

.shop-category-body { display: flex; flex-direction: column; gap: var(--space-1); }

.shop-category-title {
    font-family: var(--shop-font-heading);
    font-size: var(--text-md);
}
.shop-category-link:hover .shop-category-title { text-decoration: underline; }

/* The count is secondary information, so it is smaller — but mixed toward the
   text colour rather than dimmed with opacity, which is what put the struck
   price at 3.75:1 elsewhere in this file. */
.shop-category-count {
    font-size: var(--text-sm);
    color: color-mix(in srgb, var(--shop-text) 70%, var(--shop-bg));
}

/* ════════════════════════════════════════════════════════════════════════════
   FORM AND MESSAGE PRIMITIVES THE STOREFRONT LAYOUT NEVER LOADED
   ════════════════════════════════════════════════════════════════════════════

   `.alert`, `.field-error`, `.field-help`, `.field-required`, `.field-optional`,
   `.field-row`, `.stack` and `.small` are declared in `components.css` — and
   the storefront layout links `tokens.css`, `base.css`, `storefront.css` and
   one per-page file. It has never linked `components.css`.

   So every one of those classes has been INERT ON A SHOP since the storefront
   existed. `partials/flashes` and `partials/field_errors` are shared by every
   surface and draw their markup with `.alert`; on a storefront that rendered
   as an unstyled `<div>`. A shopper whose card details were rejected, or whose
   address line was too long, got the message as ordinary black body text in
   the middle of the page, with no box, no colour and no required markers on
   the fields it was about.

   Two separate pieces of work found this independently and each wrote its own
   rendition into its own per-page file — one scoped `.shop-flow`, one scoped
   `.shop` — which left eight class names declared twice, in two files, drifting
   from the first edit onwards, and still covered none of the product, listing
   or review-form pages.

   This is the one copy. It lives here because `storefront.css` is the file
   every storefront page loads, which is the same reason the problem existed.
   Scoped under `.shop` so it cannot reach the dashboard, and written against
   the merchant's own palette rather than the platform's surfaces: a success
   message on an ivory shop should be warm, and neither shop should get
   Zhopwe's green.
   ════════════════════════════════════════════════════════════════════════════ */

.shop .flash-region { display: grid; gap: var(--space-3); }

.shop .stack { display: grid; gap: var(--space-4); }
.shop .stack-sm { gap: var(--space-3); }
.shop .small { font-size: var(--text-sm); }

.shop .field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 var(--space-4);
}

.shop .field-help {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    color: color-mix(in srgb, var(--shop-text) 72%, var(--shop-bg));
    text-wrap: pretty;
}

.shop .field-error {
    margin-top: var(--space-2);
    display: flex;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    line-height: var(--leading-snug);
    color: var(--danger-600);
}

/* The marker is CONTENT, not decoration: a field that must be filled in has to
   say so in text a screen reader reaches as part of the label, not as a colour
   someone may not see. */
.shop .field-required::after {
    content: " *";
    color: var(--danger-600);
    font-weight: var(--weight-semibold);
}

.shop .field-optional {
    margin-inline-start: var(--space-2);
    font-weight: var(--weight-regular);
    font-size: var(--text-xs);
    color: color-mix(in srgb, var(--shop-text) 58%, var(--shop-bg));
}

/* "Recommended" beside a field label, and the amber nudge under it: advice,
   not a requirement, so it is neither the red error nor the grey help. */
.shop .field-recommended {
    margin-inline-start: var(--space-2);
    font-weight: var(--weight-medium);
    font-size: var(--text-xs);
    color: var(--amber-600);
}
.shop .field-nudge { color: var(--amber-600); }
.shop .field-nudge-box {
    margin-top: var(--space-2);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    border-inline-start: 3px solid var(--warning-600);
    background: color-mix(in srgb, var(--warning-600) 9%, var(--shop-surface));
    border-radius: var(--radius-sm, 4px);
    color: var(--shop-text);
}

.shop .alert {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    border-radius: var(--shop-radius);
    border: 1px solid color-mix(in srgb, var(--shop-text) 10%, transparent);
    border-inline-start: 3px solid color-mix(in srgb, var(--shop-text) 30%, transparent);
    background: var(--shop-surface);
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    text-wrap: pretty;
}

.shop .alert > div { min-width: 0; }
.shop .alert-title { font-weight: var(--weight-semibold); }
.shop .alert-title + .alert-body { margin-top: var(--space-2); }
.shop .alert-body { color: color-mix(in srgb, var(--shop-text) 80%, var(--shop-bg)); }
.shop .alert-body a { color: inherit; }

.shop .alert-body ul {
    margin: 0;
    padding-inline-start: var(--space-5);
    display: grid;
    gap: var(--space-1);
}

.shop .alert-actions {
    margin-top: var(--space-3);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* The four variants: the semantic hue on the edge and in the words, over a
   tint of the MERCHANT's surface.

   The status ramp is read directly (`--danger-600`, not `--text-danger`),
   because `.shop` pins the surface and text roles back to their light values
   but not the status roles — so a visitor on a dark phone was getting the dark
   scheme's pale red on a warm ivory card. */
.shop .alert-success {
    border-inline-start-color: var(--success-600);
    background: color-mix(in srgb, var(--success-600) 7%, var(--shop-surface));
}
.shop .alert-danger {
    border-inline-start-color: var(--danger-600);
    background: color-mix(in srgb, var(--danger-600) 7%, var(--shop-surface));
}
.shop .alert-danger .alert-title { color: var(--danger-600); }
.shop .alert-warning {
    border-inline-start-color: var(--warning-600);
    background: color-mix(in srgb, var(--warning-600) 9%, var(--shop-surface));
}
.shop .alert-info {
    border-inline-start-color: var(--shop-primary);
    background: color-mix(in srgb, var(--shop-primary) 6%, var(--shop-surface));
}

/* ── Add to cart, on a card ───────────────────────────────────────────────────
   Pushed to the bottom of the card so the buttons line up across a row whose
   titles wrap to different numbers of lines — a ragged row of buy buttons is
   the thing that makes a tidy grid look unfinished.

   `margin-top: auto` needs the card to be a flex column, which `.shop-card`
   already is. */
.shop-card-add {
    margin-top: var(--space-3);
    display: flex;
}
.shop-card-add .shop-btn {
    width: 100%;
    padding-block: var(--space-3);
    font-size: var(--text-xs);
}

/* The card's body grows so the form below it sits at the bottom. */
.shop-card-body { display: flex; flex-direction: column; flex: 1; }
.shop-card-add { margin-top: auto; }

/* ── Customer reviews ─────────────────────────────────────────────────────────
   A wall of quotes, with NO avatars anywhere — no photograph, no coloured
   initial disc. The data has no such field and the shop does not invent one,
   so the card is built out of the stars, the words and the name, and has to
   look finished with exactly that.

   Equal-height cards in a row, so a two-line review and a six-line one do not
   make the band look ragged. `align-items: stretch` is the grid default and is
   relied on deliberately here. */

.shop-review-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-review {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    background: var(--shop-surface);
    border-radius: var(--shop-radius);
    border: 1px solid color-mix(in srgb, var(--shop-text) 8%, transparent);
}

/* Stars are a graphic that carries the rating (WCAG 1.4.11: 3:1), and a
   theme's accent is often a pale decorative colour (Lustre's champagne is
   2.3:1 on its ivory). Darkened toward the text colour, the hue stays and the
   stars stay legible on every theme — ThemeContrastTest checks the mix. */
.shop-review-stars {
    color: var(--shop-rating-colour, color-mix(in srgb, var(--shop-accent) 55%, var(--shop-text)));
    font-size: var(--text-md);
    letter-spacing: 0.08em;
    line-height: 1;
}

.shop-review-title {
    font-family: var(--shop-font-heading);
    font-size: var(--text-md);
}

/* A blockquote with no quotation marks drawn around it: the customer's
   punctuation is their own, and a decorative pair of curly quotes added by the
   theme turns a sentence into a pull quote it was never written as. */
.shop-review-body {
    margin: 0;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    text-wrap: pretty;
}

/* Pushed to the bottom so the names line up across cards of different
   lengths — the thing that makes a ragged row read as a designed one. */
.shop-review-foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
}

.shop-review-author { font-weight: var(--weight-medium); }

/* The verified badge is a claim about a real transaction, so it is given the
   weight of one: a quiet filled pill rather than a green tick that competes
   with the stars. Colour is not the only carrier — it is a word. */
.shop-review-verified {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--shop-primary) 10%, transparent);
    color: color-mix(in srgb, var(--shop-primary) 90%, var(--shop-text));
    font-size: var(--text-xs);
}

.shop-review-product { margin-inline-start: auto; }

/* The section head carries the shop's overall rating on the opposite edge. It
   wraps under the heading on a phone rather than squeezing both onto one line. */
.shop-reviews-head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: end;
    justify-content: space-between;
}
.shop-reviews-summary { font-size: var(--text-md); }
.shop-reviews-summary span[aria-hidden] { color: var(--shop-rating-colour, color-mix(in srgb, var(--shop-accent) 55%, var(--shop-text))); }

/* ════════════════════════════════════════════════════════════════════════════
   EDITORIAL SPLIT, FAQ, AND THE THREE THEME IDENTITIES
   ════════════════════════════════════════════════════════════════════════════

   Why this block exists.

   The three shipped themes differed only in token VALUES — a colour, a
   container width, a radius — because no selector could reach one theme and
   not another. The result was one design in three colourways, which is what a
   merchant means when they say "these all look the same". `<body data-theme>`
   is the hook; everything below is the part that makes a theme a theme.

   Each identity is built from type, rhythm and rule-weight rather than from
   photography, because a shop opens before its photography is ready and a
   theme that only looks good with perfect images looks unfinished on day one.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Editorial split ──────────────────────────────────────────────────────── */

.shop-split-inner {
    display: grid;
    gap: clamp(var(--space-6), 5vw, var(--space-12));
    align-items: center;
}
@media (min-width: 52rem) {
    .shop-split-inner { grid-template-columns: 1fr 1fr; }
    .shop-split-right .shop-split-media { order: 2; }
}

.shop-split-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--shop-radius);
    background: var(--shop-surface);
}
.shop-split-media img { width: 100%; height: 100%; object-fit: cover; }

/* A photograph is shown whole. The fixed ratio above exists for the plate, and
   applying it to a merchant's own picture silently cropped it — a tall bottle
   lost its cap and its base to a band that wanted to be 4:3. */
.shop-split-media-photo { aspect-ratio: auto; }
.shop-split-media-photo img { height: auto; display: block; object-fit: contain; }

/* The typographic plate shown when a merchant has no photograph yet: an
   initial, set large, on the theme's own surface. A deliberate mark rather
   than the icon of a missing file. */
.shop-split-plate {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(120% 120% at 20% 10%,
            color-mix(in srgb, var(--shop-primary) 14%, var(--shop-surface)) 0%,
            var(--shop-surface) 60%);
}
.shop-split-plate-mark {
    font-family: var(--shop-font-heading);
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 1;
    color: color-mix(in srgb, var(--shop-primary) 55%, var(--shop-surface));
}

.shop-split-actions { margin-top: var(--space-6); }

/* ── Questions before buying ──────────────────────────────────────────────── */

.shop-faq-list { margin-top: var(--space-6); }

.shop-faq-item {
    border-top: 1px solid color-mix(in srgb, var(--shop-text) 14%, transparent);
    padding-block: var(--space-4);
}
.shop-faq-item:last-child {
    border-bottom: 1px solid color-mix(in srgb, var(--shop-text) 14%, transparent);
}

.shop-faq-q {
    cursor: pointer;
    font-weight: var(--weight-medium);
    font-size: var(--text-md);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
}
.shop-faq-q::-webkit-details-marker { display: none; }
.shop-faq-q::after {
    content: "+";
    font-family: var(--shop-font-heading);
    opacity: 0.6;
}
.shop-faq-item[open] .shop-faq-q::after { content: "–"; }
.shop-faq-a { margin-top: var(--space-3); opacity: 0.8; max-width: 40rem; }

/* ════════════════════════════════════════════════════════════════════════════
   1. LUSTRE — editorial, photography-led, generous
   For beauty, fashion and jewellery: a wide quiet hero, an underlined
   section head, and cards that sit in air rather than in boxes.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Lustre's own palette derivatives ─────────────────────────────────────────
   Named once, here, rather than spelled out at each use.

   Every value is a `color-mix` over the merchant's OWN settings — never a
   literal, which DesignSystemTest forbids outside tokens.css and which would
   in any case ignore the colours the merchant chose. A shop that sets a plum
   primary and a brass accent gets a plum-and-brass version of this design, not
   a green one with two plum buttons.

   `--lustre-rule` and `--lustre-hairline` are the two weights of line the
   whole theme is drawn with: a visible gold rule under a section head, and a
   near-invisible warm line around a card. Having exactly two, named, is what
   stops a third appearing in a template later. */
[data-theme="anuradha"] {
    --lustre-ink-soft:  color-mix(in srgb, var(--shop-text) 68%, transparent);
    --lustre-ink-faint: color-mix(in srgb, var(--shop-text) 45%, transparent);
    --lustre-rule:      color-mix(in srgb, var(--shop-accent) 70%, transparent);
    --lustre-hairline:  color-mix(in srgb, var(--shop-text) 10%, transparent);
    --lustre-tint:      color-mix(in srgb, var(--shop-primary) 5%, var(--shop-bg));
    --lustre-deep:      color-mix(in srgb, var(--shop-primary) 88%, var(--shop-text));
    --lustre-lift:      0 1px 2px color-mix(in srgb, var(--shop-text) 6%, transparent),
                        0 12px 32px color-mix(in srgb, var(--shop-text) 8%, transparent);
}

/* ── The eyebrow ─────────────────────────────────────────────────────────────
   Small, letter-spaced, in the accent: the line above a heading that says what
   kind of thing follows. It is a SPAN inside the heading's block, never a
   heading of its own — an <h3> reading "OUR BEST SELLERS" above an <h2> is a
   heading order a screen reader announces as a nested section that does not
   exist. */
.shop-eyebrow {
    display: block;
    font-family: var(--shop-font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    /* 55% accent, not 85%.

       At 85% this was champagne gold on warm ivory and measured 2.93:1 at
       12px — a decorative line nobody with less than perfect sight could
       read. Mixing it further toward the body text keeps it recognisably the
       accent colour while bringing it over 4.5:1, which is what a 12px label
       needs. Measured, not judged by eye: small gold-on-cream is the single
       most common way a luxury palette fails contrast. */
    color: color-mix(in srgb, var(--shop-accent) 55%, var(--shop-text));
    margin-bottom: var(--space-3);
}

[data-theme="anuradha"] .shop-section-title {
    font-weight: var(--weight-regular);
    letter-spacing: var(--tracking-display);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
}

/* A short rule under the section head, not a full-width border.
   The border-bottom this replaces ran the whole width of the page and read as
   a horizontal rule separating content — furniture, not emphasis. A 3.5rem
   gold stroke under the words is the editorial version of the same idea. */
[data-theme="anuradha"] .shop-section-title::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 2px;
    margin-top: var(--space-4);
    background: var(--lustre-rule);
}
[data-theme="anuradha"] .shop-section-head-center { text-align: center; }
[data-theme="anuradha"] .shop-section-head-center .shop-section-title::after {
    margin-inline: auto;
}

/* ── Cards ───────────────────────────────────────────────────────────────────
   Lustre's cards sit in air: no border, no box — the photograph and the words
   under it. What is added here is a warm tile BEHIND the photograph, because
   these products are packshots on white and a white packshot on a white page
   has no edges at all. The tile is 5% of the primary over the page, which is
   just enough to see where one card stops. */
[data-theme="anuradha"] .shop-card-media {
    background: var(--lustre-tint);
    border-radius: var(--shop-radius);
    overflow: hidden;
    transition: box-shadow var(--duration-normal) var(--ease-out);
}
[data-theme="anuradha"] .shop-card:hover .shop-card-media {
    box-shadow: var(--lustre-lift);
}
/* The image itself lifts, not the card: the title and price stay put, so a
   row of cards does not shimmer as the pointer crosses it. */
[data-theme="anuradha"] .shop-card-media img {
    transition: transform var(--duration-slow) var(--ease-out);
}
[data-theme="anuradha"] .shop-card:hover .shop-card-media img {
    transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
    [data-theme="anuradha"] .shop-card-media img { transition: none; }
    [data-theme="anuradha"] .shop-card:hover .shop-card-media img { transform: none; }
}

[data-theme="anuradha"] .shop-card-title {
    font-family: var(--shop-font-heading);
    font-size: var(--text-md);
    font-weight: var(--weight-regular);
    letter-spacing: var(--tracking-normal);
}
[data-theme="anuradha"] .shop-card-price {
    font-family: var(--shop-font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-regular);
}

/* ── Buttons ─────────────────────────────────────────────────────────────────
   A luxury button is quiet and large: generous padding, wide letter-spacing,
   no gradient. The hover deepens rather than lightens, which is what ink does
   and what a gradient cannot. */
[data-theme="anuradha"] .shop-btn {
    padding-inline: var(--space-8);
    padding-block: var(--space-4);
    letter-spacing: var(--tracking-wide);
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
    text-transform: uppercase;
    transition: background-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
}
[data-theme="anuradha"] .shop-btn-primary:hover {
    background: var(--lustre-deep);
}
/* The outlined button is a hairline in the primary, filling on hover. Its
   text colour is set explicitly on both states: the filled state is
   --shop-on-primary over --shop-primary, which is the pairing the merchant
   chose and the only one guaranteed to be readable. */
[data-theme="anuradha"] .shop-btn-secondary {
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--shop-primary) 40%, transparent);
    color: var(--shop-primary);
}
[data-theme="anuradha"] .shop-btn-secondary:hover {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: var(--shop-on-primary);
}

/* ── Header ──────────────────────────────────────────────────────────────── */

[data-theme="anuradha"] .shop-header {
    background: var(--shop-bg);
    border-bottom: 1px solid var(--lustre-hairline);
}
[data-theme="anuradha"] .shop-nav-link {
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}
/* The gold underline marks the page you are on. It is drawn under the link
   rather than behind it so it cannot reduce the contrast of the label. */
[data-theme="anuradha"] .shop-nav-link[aria-current="page"]::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: var(--space-1);
    background: var(--lustre-rule);
}

[data-theme="anuradha"] .shop-announcement {
    background: var(--lustre-deep);
    color: var(--shop-on-primary);
    letter-spacing: var(--tracking-wide);
    font-size: var(--text-xs);
    text-transform: uppercase;
}

/* ── Footer ──────────────────────────────────────────────────────────────────
   Deep emerald with ivory text. Every piece of text in the band is given its
   colour explicitly, for the reason the Emporium hero comment records: `.shop
   h1`-style selectors are more specific than the band's, so inheritance is not
   something this file is allowed to rely on. */
[data-theme="anuradha"] .shop-footer {
    /* Colour only — see the note on `.shop-footer`. This rule is also MORE
       specific than `.shop-footer-media`, so as a shorthand it won outright
       and blanked the merchant's chosen picture on the one theme this work is
       for. */
    background-color: var(--lustre-deep);
    color: var(--shop-on-primary);
    border-top: none;
}
[data-theme="anuradha"] .shop-footer h2,
[data-theme="anuradha"] .shop-footer h3,
[data-theme="anuradha"] .shop-footer p,
[data-theme="anuradha"] .shop-footer a,
[data-theme="anuradha"] .shop-footer li {
    color: var(--shop-on-primary);
}
[data-theme="anuradha"] .shop-footer a:hover {
    color: color-mix(in srgb, var(--shop-accent) 80%, var(--shop-on-primary));
}
[data-theme="anuradha"] .shop-footer h3 {
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    font-family: var(--shop-font-body);
    font-weight: var(--weight-semibold);
    /* Mixed toward the accent rather than dimmed with opacity: opacity on a
       heading over a dark band is how the 3.75:1 struck-price failure happened
       elsewhere in this file. */
    color: color-mix(in srgb, var(--shop-accent) 75%, var(--shop-on-primary));
}

/* ════════════════════════════════════════════════════════════════════════════
   2. EMPORIUM — dense, bordered, fast to scan
   For shops with a lot of stock: a compact hero bar, ruled section heads and
   cards that are real cards, with a border and a hover lift.
   ════════════════════════════════════════════════════════════════════════════ */

[data-theme="pettah"] .shop-hero {
    background: var(--shop-primary);
    /* No literal fallback: ThemeSettings always resolves --shop-on-primary,
       and DesignSystemTest forbids a literal colour outside tokens.css. */
    color: var(--shop-on-primary);
    min-height: 11rem;
}
[data-theme="pettah"] .shop-hero-inner { padding-block: var(--space-8); }
/* `.shop h1` sets `color: var(--shop-text)` with a more specific selector
   than `.shop-hero`, so the title did NOT inherit the band's on-primary
   colour: near-black on a navy bar, which a screenshot caught before this
   shipped. Every piece of text in the band is given the colour explicitly. */
[data-theme="pettah"] .shop-hero-title,
[data-theme="pettah"] .shop-hero-sub,
[data-theme="pettah"] .shop-hero-copy {
    color: var(--shop-on-primary);
}

/* 8 Nov 2026 (Twixen Chem): with no picture the band IS the primary colour,
   so a primary button disappeared into it — navy on navy. Invert the buttons
   (and the eyebrow) inside the plain band. */
[data-theme="pettah"] .shop-hero:not(.shop-hero-media) .shop-btn-primary {
    background: var(--shop-on-primary);
    color: var(--shop-primary);
    border-color: var(--shop-on-primary);
}
[data-theme="pettah"] .shop-hero:not(.shop-hero-media) .shop-btn-secondary {
    background: transparent;
    color: var(--shop-on-primary);
    border-color: var(--shop-on-primary);
}
[data-theme="pettah"] .shop-hero:not(.shop-hero-media) .shop-eyebrow { color: var(--shop-on-primary); opacity: 0.85; }

/* Emporium footer: a solid primary band (owner, 8 Nov 2026 — the plain white
   footer read as unfinished on Twixen Chem). Every text colour is set
   explicitly, the same lesson as the hero title above. */
[data-theme="pettah"] .shop-footer:not(.shop-footer-media) {
    background-color: var(--shop-primary);
    color: var(--shop-on-primary);
    border-top: 0;
}
[data-theme="pettah"] .shop-footer:not(.shop-footer-media) :is(p, a, span, li, small, .shop-footer-heading, .shop-footer-about) {
    color: var(--shop-on-primary);
}
[data-theme="pettah"] .shop-footer:not(.shop-footer-media) .shop-footer-heading {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--text-xs);
    opacity: 0.75;
}
[data-theme="pettah"] .shop-footer:not(.shop-footer-media) .shop-footer-base {
    border-top-color: color-mix(in srgb, var(--shop-on-primary) 20%, transparent);
    opacity: 0.85;
}
[data-theme="pettah"] .shop-footer:not(.shop-footer-media) .shop-social-link {
    border-color: color-mix(in srgb, var(--shop-on-primary) 40%, transparent);
    background: transparent;
}
[data-theme="pettah"] .shop-footer:not(.shop-footer-media) .shop-footer-pay-list > * { color: var(--shop-text); }

/* Emporium's own top of page (owner, 8 Nov 2026): the language strip was the
   accent-tinted peach every theme shares; here it is a cool primary tint, and
   the announcement bar reads as a compact spec line with accent icons. */
[data-theme="pettah"] .shop-lang-strip {
    background: color-mix(in srgb, var(--shop-primary) 9%, var(--shop-bg));
}
[data-theme="pettah"] .shop-announcement {
    background: color-mix(in srgb, var(--shop-primary) 72%, var(--shop-text));
}
[data-theme="pettah"] .shop-announcement-icon { color: var(--shop-accent); }
[data-theme="pettah"] .shop-announcement-items,
[data-theme="pettah"] .shop-announcement-text {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

[data-theme="pettah"] .shop-hero-title {
    font-size: clamp(var(--text-xl), 3.4vw, var(--text-3xl));
    font-weight: var(--weight-bold, 700);
    letter-spacing: -0.01em;
}
[data-theme="pettah"] .shop-section-title {
    font-size: var(--text-lg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
[data-theme="pettah"] .shop-card {
    border: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
    border-radius: var(--shop-radius);
    padding: var(--space-3);
    transition: box-shadow var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}
[data-theme="pettah"] .shop-card:hover {
    box-shadow: 0 6px 20px color-mix(in srgb, var(--shop-text) 14%, transparent);
    transform: translateY(-2px);
}
[data-theme="pettah"] .shop-card-body { padding-top: var(--space-2); }

/* ════════════════════════════════════════════════════════════════════════════
   3. ATELIER — narrow, serif, storytelling
   For a shop built around a few things it wants to explain: a centred column,
   a rule above each section head, and wide letter-spaced small caps.
   ════════════════════════════════════════════════════════════════════════════ */

[data-theme="serendib"] .shop-hero {
    background: var(--shop-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
}
[data-theme="serendib"] .shop-hero-title {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    line-height: 1.15;
}
[data-theme="serendib"] .shop-hero-sub {
    font-size: var(--text-md);
    letter-spacing: 0.02em;
    opacity: 0.75;
}
[data-theme="serendib"] .shop-section-head,
[data-theme="serendib"] .shop-faq .shop-section-title,
[data-theme="serendib"] .shop-split-copy .shop-section-title { text-align: left; }
[data-theme="serendib"] .shop-section-title::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 2px;
    margin-bottom: var(--space-4);
    background: var(--shop-accent, var(--shop-primary));
}
[data-theme="serendib"] .shop-card-title {
    font-family: var(--shop-font-heading);
    font-size: var(--text-md);
}
[data-theme="serendib"] .shop-card-media { border-radius: var(--shop-radius); }

/* ════════════════════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER, ON A SHOP

   components.css already styles this control — and a storefront does not load
   components.css. So the shop's header was showing the browser's own grey
   system dropdown next to hand-made icon buttons: the one piece of furniture
   on the page that looked like a form, directly above a hero. The rules below
   are the same control in the SHOP's tokens, so it reads as part of the
   header; the markup and the no-JS behaviour are unchanged.
   ════════════════════════════════════════════════════════════════════════════ */

.shop .lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.shop .lang-switcher-icon {
    position: absolute;
    inset-inline-start: 0.65rem;
    display: inline-flex;
    opacity: 0.65;
    pointer-events: none;
}

/* The chevron, drawn rather than fetched: a data-URI arrow cannot read a
   custom property, so it would have to carry a literal colour and would stop
   matching a theme that changes its text colour. */
.shop .lang-switcher::after {
    content: "";
    position: absolute;
    inset-inline-end: 0.7rem;
    width: 0.45rem;
    height: 0.45rem;
    background: currentColor;
    opacity: 0.55;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    pointer-events: none;
}

.shop .lang-select {
    appearance: none;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--shop-text);
    background-color: transparent;
    border: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent);
    border-radius: 999px;
    padding-block: 0.45rem;
    padding-inline: var(--space-8) 1.6rem;
    max-width: 11rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.shop .lang-select:hover {
    background-color: color-mix(in srgb, var(--shop-text) 6%, transparent);
    border-color: color-mix(in srgb, var(--shop-text) 28%, transparent);
}

.shop .lang-select:focus-visible {
    outline: 2px solid var(--shop-primary);
    outline-offset: 2px;
}

/* The options themselves are painted by the operating system; naming the two
   colours keeps a dark-mode shop from rendering dark text on a dark list. */
.shop .lang-select option {
    color: var(--shop-text);
    background-color: var(--shop-bg);
}

/* ════════════════════════════════════════════════════════════════════════════
   REVIEWS

   What is on the page is what the merchant approved. The stars are text, not
   images: a glyph scales with the type, reads aloud correctly beside the
   number the markup supplies, and needs no sprite to load before a shopper
   can see whether anybody liked the product.
   ════════════════════════════════════════════════════════════════════════════ */

.shop-reviews { border-top: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent); }

.shop-reviews-summary {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    flex-wrap: wrap;
    font-size: 1.125rem;
}

.shop-review {
    border-top: 1px solid color-mix(in srgb, var(--shop-text) 10%, transparent);
    padding-top: var(--space-5);
}

.shop-review-head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.shop-review-photos {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-3);
}

.shop-review-photos img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--shop-radius);
}

/* Each rating is a full-width row rather than a star widget: a radio group
   that works with a keyboard and a screen reader beats one that only works
   with a mouse. */
.shop-review-star {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-block: var(--space-1);
    cursor: pointer;
}

.shop-review-form {
    border-top: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
    padding-top: var(--space-6);
}

.shop-review-form .field { margin-top: var(--space-4); }

/* 7 Nov 2026: the product-card badge rule above is `position: absolute`; in a
   review head that left every "Verified purchase" stacked over the top of the
   page (the first thing a phone visitor saw). */
.shop-review-head .shop-badge,
.shop-pdp-quote-head .shop-badge { position: static; }
.shop-badge {
    font-size: var(--space-3);
    font-weight: 600;
    padding: 0.15rem var(--space-2);
    border-radius: 999px;
    background: color-mix(in srgb, var(--shop-primary) 12%, transparent);
    color: var(--shop-primary);
}

/* The review form's own fields.

   `.field`, `.field-label` and `.input` are components.css classes, and a
   storefront does not load components.css — so on the shop the form rendered
   as bare inline labels and boxes, which is what an unstyled form looks like.
   These are the same controls in the shop's tokens; the markup is unchanged. */

.shop-review-form .field { display: block; }

.shop-review-form .field-label,
.shop-review-form legend.field-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.shop-review-form .input {
    display: block;
    width: 100%;
    font: inherit;
    color: var(--shop-text);
    background-color: var(--shop-bg);
    border: 1px solid color-mix(in srgb, var(--shop-text) 22%, transparent);
    border-radius: var(--shop-radius);
    padding: var(--space-3);
}

.shop-review-form .input:focus-visible {
    outline: 2px solid var(--shop-primary);
    outline-offset: 1px;
}

.shop-review-form input[type="file"].input { padding: var(--space-2); }

.shop-review-form .field-help {
    margin-top: var(--space-2);
    font-size: 0.875rem;
    opacity: 0.75;
}

/* A delivery option that cannot be used with the payment method currently
   chosen. Greyed, not hidden: the shopper can see the option exists and read
   why it is unavailable, which is the point of saying "not available with cash
   on delivery" beside it. */
.shop .plan-choice-option.is-unavailable {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ════════════════════════════════════════════════════════════════════════════
   THE CHOICES AT CHECKOUT — delivery and payment

   `.plan-choice-*` is declared in auth.css, which a storefront does not load,
   so these rows arrived on the shop as bare radio buttons and run-together
   text. Here they are cards: the method's NAME is the thing you read, and
   everything underneath it — the description, the days, the charge — is
   quieter, so a shopper scanning the list sees three names rather than three
   paragraphs.
   ════════════════════════════════════════════════════════════════════════════ */

.shop .plan-choice { display: grid; gap: var(--space-3); }

.shop .plan-choice-option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent);
    border-radius: var(--shop-radius);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.shop .plan-choice-option:hover {
    border-color: color-mix(in srgb, var(--shop-text) 32%, transparent);
}

/* The chosen one is unmistakable: a shopper should never have to look at a
   radio dot to know what they are about to be charged for. */
.shop .plan-choice-option:has(input:checked) {
    border-color: var(--shop-primary);
    background-color: color-mix(in srgb, var(--shop-primary) 5%, transparent);
    box-shadow: inset 0 0 0 1px var(--shop-primary);
}

.shop .plan-choice-option:has(input:focus-visible) {
    outline: 2px solid var(--shop-primary);
    outline-offset: 2px;
}

.shop .plan-choice-option input {
    margin-top: 0.2rem;
    accent-color: var(--shop-primary);
    flex: none;
}

.shop .plan-choice-body {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.shop .plan-choice-name {
    font-weight: 600;
    line-height: 1.35;
}

/* Everything that is not the name: quieter, and smaller. */
.shop .plan-choice-price {
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 1.45;
}

/* ════════════════════════════════════════════════════════════════════════════
   TRACK YOUR ORDER

   One field and one button, then a card: where the parcel is, in a sentence
   big enough to read at arm's length, and the facts under it. The card takes
   its tone from the state — moving, delivered, stopped — using the shop's own
   colours rather than a traffic-light palette this stylesheet would have to
   invent.
   ════════════════════════════════════════════════════════════════════════════ */

.shop-track-intro { margin-top: var(--space-3); opacity: 0.8; }

.shop-track-form {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.shop-track-form .input {
    flex: 1;
    min-width: 0;
    font: inherit;
    color: var(--shop-text);
    background-color: var(--shop-bg);
    border: 1px solid color-mix(in srgb, var(--shop-text) 22%, transparent);
    border-radius: var(--shop-radius);
    padding: var(--space-3);
}

.shop-track-alt {
    margin-top: var(--space-5);
    border-top: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
    padding-top: var(--space-4);
}

.shop-track-alt summary {
    cursor: pointer;
    font-size: 0.875rem;
    opacity: 0.75;
}

.shop-track-alt .field { margin-top: var(--space-4); }

.shop-track-alt .field-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.shop-track-alt .input {
    display: block;
    width: 100%;
    font: inherit;
    color: var(--shop-text);
    background-color: var(--shop-bg);
    border: 1px solid color-mix(in srgb, var(--shop-text) 22%, transparent);
    border-radius: var(--shop-radius);
    padding: var(--space-3);
}

.shop-track-card {
    margin-top: var(--space-8);
    border: 1px solid color-mix(in srgb, var(--shop-text) 14%, transparent);
    border-radius: calc(var(--shop-radius) * 1.5);
    overflow: hidden;
}

.shop-track-hero {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-6);
}

/* The icon's tint carries the state. Mixed from the shop's own colours, so a
   shop with a different palette does not suddenly grow a stranger's green. */
.shop-track-ic {
    flex: none;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: calc(var(--shop-radius) * 1.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--shop-primary) 12%, transparent);
    color: var(--shop-primary);
}

.shop-track-ic svg { width: 1.6rem; height: 1.6rem; }

.shop-track-delivered .shop-track-ic {
    background: color-mix(in srgb, var(--shop-primary) 18%, transparent);
}

.shop-track-stopped .shop-track-ic {
    background: color-mix(in srgb, var(--shop-accent) 18%, transparent);
    color: color-mix(in srgb, var(--shop-accent) 55%, var(--shop-text));
}

.shop-track-head {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
}

.shop-track-said {
    margin-top: var(--space-1);
    font-size: 0.875rem;
    opacity: 0.75;
}

.shop-track-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: var(--space-4);
    margin: 0;
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid color-mix(in srgb, var(--shop-text) 10%, transparent);
}

.shop-track-facts dt {
    font-size: 0.8125rem;
    opacity: 0.6;
}

.shop-track-facts dd {
    margin: 0;
    margin-top: 0.15rem;
}

/* ── What the courier said ───────────────────────────────────────────────────
   The parcel's own history, under the shop's record of the order. Set apart by
   a rule and a lighter weight rather than a second card: it is more detail
   about the same parcel, not a second subject. */

.shop-track-courier-now {
    padding: var(--space-5) var(--space-6) 0;
    font-size: 0.9375rem;
}

.shop-track-courier-now .shop-track-where::before,
.shop-track-courier-now .shop-track-when::before {
    content: " · ";
    opacity: 0.5;
}

.shop-track-courier-now .shop-track-when { opacity: 0.6; }

.shop-track-courier-quiet {
    padding: var(--space-5) var(--space-6) 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

.shop-track-steps-title {
    margin: var(--space-5) 0 0;
    padding-inline: var(--space-6);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.6;
}

.shop-track-steps {
    list-style: none;
    margin: var(--space-2) 0 0;
    padding: 0 var(--space-6) var(--space-2);
}

.shop-track-steps li {
    display: grid;
    padding-block: var(--space-3);
    border-bottom: 1px solid color-mix(in srgb, var(--shop-text) 8%, transparent);
}

.shop-track-steps li:last-child { border-bottom: 0; }

.shop-track-step-what { font-weight: 600; font-size: 0.9375rem; }

.shop-track-step-when,
.shop-track-step-note {
    font-size: 0.8125rem;
    opacity: 0.6;
}

.shop-track-foot {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid color-mix(in srgb, var(--shop-text) 10%, transparent);
    font-size: 0.8125rem;
    opacity: 0.6;
}


/* ── The buy bar ─────────────────────────────────────────────────────────────
   Appears when the real Add to cart scrolls out of view, and is a link to it
   rather than a second form. Fixed to the bottom, where a thumb already is. */

.shop-buybar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: var(--z-sticky);
    background: var(--shop-bg);
    border-top: 1px solid color-mix(in srgb, var(--shop-text) 14%, transparent);
    box-shadow: 0 -6px 24px color-mix(in srgb, var(--shop-text) 10%, transparent);
    padding: var(--space-3) var(--space-4);
    /* Clear of a phone's home indicator. */
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
}
.shop-buybar[hidden] { display: none; }

.shop-buybar-inner {
    max-width: var(--shop-container);
    margin-inline: auto;
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.shop-buybar-thumb {
    width: 2.75rem; height: 2.75rem; flex: none;
    object-fit: contain;
    border-radius: var(--shop-radius);
    background: var(--shop-surface);
}

.shop-buybar-text { display: grid; min-width: 0; flex: 1; }
.shop-buybar-title {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-buybar-price { font-size: var(--text-sm); opacity: 0.75; font-variant-numeric: tabular-nums; }
.shop-buybar-cta { flex: none; }

/* On a phone the title is the thing to give up, not the button. */
@media (max-width: 30rem) {
    .shop-buybar-thumb { display: none; }
    .shop-buybar-cta { padding-inline: var(--space-5); }
    /* Owner, 20 Nov 2026: a long Sinhala/Tamil button hid the name and price.
       The button gets at most 50% and wraps; the name gets two lines. */
    .shop-buybar-cta { flex: 0 1 auto; max-width: 50%; white-space: normal; text-align: center; line-height: 1.2; padding-inline: var(--space-3); font-size: var(--text-sm); }
    .shop-buybar-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
    .shop-buybar-price { white-space: nowrap; }
}

/* ── Reassurance under the Add to cart button ────────────────────────────── */

.shop-assure {
    list-style: none;
    margin: var(--space-4) 0 0;
    padding: 0;
    display: grid;
    gap: var(--space-2);
    font-size: var(--text-sm);
}
.shop-assure-item { display: flex; gap: var(--space-2); align-items: center; }
.shop-assure-ic { color: var(--shop-primary); flex: none; display: flex; }
.shop-assure-ic svg { width: 1.15rem; height: 1.15rem; }
.shop-assure a { color: inherit; }

/* "Read all 13 reviews" — a disclosure, so every review stays in the page. */
.shop-review-more { margin-top: var(--space-6); }
.shop-review-more > summary {
    cursor: pointer;
    font-weight: var(--weight-semibold);
    padding-block: var(--space-3);
    border-block: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
}

/* ═════════════════════════════════════════════════════════════════════════════
   THE PICTURE BEHIND A SECTION

   Every section type can carry one of the platform's textures. Until this
   existed, seventeen of the twenty-six shipped images could not appear on a
   shop at all: the hero offered the large ones, the category band offered the
   tiles, and the silks, marbles, leaf shadows and gold waves were catalogued,
   built at four widths in two formats, served — and reachable from no control.

   The wrapper is emitted by home.php only when a background is chosen, so a
   shop that has set none has exactly the markup it had before.

   The scrim is the CONTRAST control, not decoration. These textures are pale
   gold and ivory: body copy over the lit part of one measures well under
   4.5:1, and over its shadow measures fine. `color-mix` with the page colour
   keeps the wash in the merchant's own palette rather than greying it out.
   ═════════════════════════════════════════════════════════════════════════════ */

/* Declared here because PHP writes the VALUE and not the declaration: the
   wrapper carries `--band-image` in a style attribute, and a stylesheet that
   only ever reads a property it never declares is a property nothing can
   check. `--feature-columns` is the same arrangement for the feature band's
   column count. The defaults are "no picture" and "four columns", which is
   what a section with neither set should render. */
.shop-band,
.shop-feature-list {
    --band-image: none;
    --feature-columns: 4;
}

.shop-band {
    position: relative;
    isolation: isolate;
    background-image: var(--band-image, none);
    background-size: cover;
    background-position: center;
    /* A texture is a texture: on a tall band a 400px-wide swatch would be
       stretched past recognition, so it repeats instead of scaling. The large
       assets fill the band outright and never reach this. */
    background-repeat: repeat;
}

/* The scrim is a layer and not a background-blend, so the text above it is
   never composited with the picture — a blend mode would lighten the words
   along with the band. */
.shop-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--band-scrim, transparent);
}
.shop-band-scrim-none   { --band-scrim: transparent; }
.shop-band-scrim-soft   { --band-scrim: color-mix(in srgb, var(--shop-bg) 72%, transparent); }
.shop-band-scrim-strong { --band-scrim: color-mix(in srgb, var(--shop-bg) 90%, transparent); }

/* A dark texture under dark body copy is unreadable whatever the scrim does,
   so on those the wash goes the other way and the text flips with it. */
.shop-band-tone-dark.shop-band-scrim-soft   { --band-scrim: color-mix(in srgb, var(--lustre-deep, var(--shop-primary)) 68%, transparent); }
.shop-band-tone-dark.shop-band-scrim-strong { --band-scrim: color-mix(in srgb, var(--lustre-deep, var(--shop-primary)) 88%, transparent); }
.shop-band-tone-dark.shop-band-scrim-soft,
.shop-band-tone-dark.shop-band-scrim-strong { color: var(--shop-on-primary); }
.shop-band-tone-dark.shop-band-scrim-soft .shop-section-title,
.shop-band-tone-dark.shop-band-scrim-strong .shop-section-title,
.shop-band-tone-dark.shop-band-scrim-soft .shop-section-body,
.shop-band-tone-dark.shop-band-scrim-strong .shop-section-body { color: inherit; }

/* ═════════════════════════════════════════════════════════════════════════════
   WHY BUY HERE — the merchant's own reasons
   ═════════════════════════════════════════════════════════════════════════════ */

.shop-features-head { max-width: 46rem; }

.shop-feature-list {
    list-style: none;
    margin: var(--space-6) 0 0;
    padding: 0;
    display: grid;
    gap: var(--space-5);
    /* `--feature-columns` is the merchant's choice; `auto-fit` is the floor,
       so four columns become two on a tablet without a second media query. */
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
@media (min-width: 64rem) {
    .shop-feature-list {
        grid-template-columns: repeat(var(--feature-columns, 4), minmax(0, 1fr));
    }
}

.shop-feature {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
    align-items: center;
}

.shop-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: var(--space-1);
    border-radius: 999px;
    color: var(--shop-primary);
    background: color-mix(in srgb, var(--shop-primary) 8%, var(--shop-surface));
    border: 1px solid color-mix(in srgb, var(--shop-accent) 35%, transparent);
    flex: none;
}
.shop-feature-icon svg { width: 1.5rem; height: 1.5rem; }

.shop-feature-title {
    margin: 0;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    font-family: var(--shop-font-heading);
}
.shop-feature-body {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--lustre-ink-soft, inherit);
    max-width: 22rem;
}

/* The whole tile is the link when the merchant gave one. `display: contents`
   so the anchor does not become a box inside the flex column and break the
   spacing the tile already has. */
.shop-feature-body-link {
    display: contents;
    color: inherit;
    text-decoration: none;
}
.shop-feature:has(.shop-feature-body-link:hover) .shop-feature-icon,
.shop-feature:has(.shop-feature-body-link:focus-visible) .shop-feature-icon {
    border-color: var(--shop-accent);
}
/* The outline has to be drawn somewhere: `display: contents` leaves the anchor
   with no box of its own, so focus is shown on the tile around it. */
.shop-feature:has(.shop-feature-body-link:focus-visible) {
    outline: 2px solid var(--shop-primary);
    outline-offset: var(--space-3);
}

/* ═════════════════════════════════════════════════════════════════════════════
   THE OFFER BAND

   A picture in one column, the merchant's words and the PRODUCT'S OWN price in
   the other. There is no typed price anywhere in this component — see the
   template for why that is a rule and not a preference.
   ═════════════════════════════════════════════════════════════════════════════ */

.shop-promo-inner {
    display: grid;
    gap: var(--space-6);
    align-items: center;
}
@media (min-width: 60rem) {
    .shop-promo-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); }
    .shop-promo-image-last .shop-promo-figure { order: 2; }
}
.shop-promo-no-image .shop-promo-inner { grid-template-columns: minmax(0, 1fr); }
.shop-promo-no-image .shop-promo-copy { max-width: 46rem; }

.shop-promo-figure {
    position: relative;
    border-radius: var(--shop-radius);
    overflow: hidden;
    background: var(--shop-surface);
}
.shop-promo-figure img {
    display: block;
    width: 100%;
    height: 100%;
    /* 4:3 rather than the picture's own ratio: the assets vary between almost
       square and panoramic, and a band whose height changes with the merchant's
       choice of texture is a band that reflows the page under them. */
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* The saving, calculated — never typed. */
.shop-promo-flash {
    position: absolute;
    inset-block-start: var(--space-4);
    inset-inline-start: var(--space-4);
    margin: 0;
    padding: var(--space-2) var(--space-4);
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    color: var(--shop-on-primary);
    background: var(--shop-primary);
}
.shop-promo-flash-inline {
    position: static;
    display: inline-block;
    margin-inline-start: var(--space-3);
    padding-block: var(--space-1);
}

.shop-promo-copy { display: grid; gap: var(--space-4); align-content: start; }
.shop-promo-copy > * { margin: 0; }

.shop-promo-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
}
.shop-promo-points li {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}
.shop-promo-tick {
    display: inline-flex;
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--shop-primary);
    background: color-mix(in srgb, var(--shop-primary) 10%, transparent);
}
.shop-promo-tick svg { width: 1rem; height: 1rem; }
.shop-promo-point-body {
    display: block;
    font-size: var(--text-sm);
    color: var(--lustre-ink-soft, inherit);
}

.shop-promo-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.shop-promo-now {
    font-size: var(--text-2xl);
    font-family: var(--shop-font-heading);
    color: var(--shop-primary);
}
.shop-promo-was {
    font-size: var(--text-base);
    color: var(--lustre-ink-faint, inherit);
}

/* ═════════════════════════════════════════════════════════════════════════════
   THE HERO'S CHIPS — the merchant's own short reassurances
   ═════════════════════════════════════════════════════════════════════════════ */

.shop-hero-chips {
    list-style: none;
    margin: var(--space-6) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.shop-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: 999px;
    font-size: var(--text-sm);
    /* A translucent panel, because these sit on photography as often as not:
       the chips in the supplied design are over a botanical hero, and text
       directly on it measured 1.31:1. */
    background: color-mix(in srgb, var(--shop-surface) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--shop-text) 10%, transparent);
    color: var(--shop-text);
}
.shop-hero-chip-icon { display: inline-flex; color: var(--shop-primary); flex: none; }
.shop-hero-chip-icon svg { width: 1.05rem; height: 1.05rem; }

/* ═════════════════════════════════════════════════════════════════════════════
   THE TOP BAR — a sentence, a list of benefits, and the shop's own social links
   ═════════════════════════════════════════════════════════════════════════════ */

.shop-announcement-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2) var(--space-5);
}
.shop-announcement-text { margin: 0; }

.shop-announcement-items,
.shop-announcement-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-5);
}
.shop-announcement-items li,
.shop-announcement-social li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}
.shop-announcement-icon { display: inline-flex; flex: none; opacity: 0.85; }
.shop-announcement-icon svg { width: 1rem; height: 1rem; }

/* Pushed to the far end where there is room, and simply next in line where
   there is not — the bar wraps rather than scrolling sideways. */
@media (min-width: 64rem) {
    .shop-announcement-inner { justify-content: flex-start; }
    .shop-announcement-social { margin-inline-start: auto; }
}

/* Phones: one line of the bar, not three rows plus icons. The benefits stack
   in one grid cell and storefront.js moves `is-current` along; the social
   links are in the footer with their names. Without JavaScript only the first
   benefit shows. */
@media (max-width: 47.9375rem) {
    .shop-announcement { padding-block: var(--space-1); }
    .shop-announcement-social { display: none; }
    .shop-announcement-items { display: grid; }
    .shop-announcement-items li {
        grid-area: 1 / 1;
        justify-content: center;
        transition: opacity 0.4s ease;
    }
    .shop-announcement-items li + li { visibility: hidden; opacity: 0; }
    .shop-announcement-items[data-rotating] li { visibility: hidden; opacity: 0; }
    .shop-announcement-items[data-rotating] li.is-current { visibility: visible; opacity: 1; }
}

/* ═════════════════════════════════════════════════════════════════════════════
   THE SHOP DROPDOWN

   A <details> the browser opens and closes itself: keyboard operable with no
   key handler, and it works with JavaScript off. A div with a click listener
   would need every one of those behaviours written by hand, and the version of
   that which usually ships is a menu a keyboard cannot open.
   ═════════════════════════════════════════════════════════════════════════════ */

.shop-nav-shop { position: relative; }

.shop-nav-dropdown > summary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    cursor: pointer;
    /* The browser's own marker is replaced by the caret in the markup, which
       can be positioned and coloured; `list-style: none` is needed as well for
       Safari, which draws the triangle through ::-webkit-details-marker. */
    list-style: none;
}
.shop-nav-dropdown > summary::-webkit-details-marker { display: none; }
.shop-nav-dropdown[open] .shop-nav-caret { transform: rotate(180deg); }
.shop-nav-caret { display: inline-flex; transition: transform var(--duration-fast) var(--ease-out); }

.shop-nav-panel {
    list-style: none;
    margin: 0;
    padding: var(--space-2);
    display: grid;
    gap: 2px;
    min-width: 13rem;
    position: absolute;
    inset-block-start: calc(100% + var(--space-3));
    inset-inline-start: 0;
    z-index: var(--z-dropdown);
    background: var(--shop-bg);
    border: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
    border-radius: var(--shop-radius);
    box-shadow: var(--lustre-lift, 0 2px 8px color-mix(in srgb, var(--shop-text) 12%, transparent));
}
.shop-nav-panel a {
    display: block;
    padding: var(--space-2) var(--space-3);
    border-radius: calc(var(--shop-radius) / 2);
    color: inherit;
    text-decoration: none;
    font-size: var(--text-sm);
}
.shop-nav-panel a:hover,
.shop-nav-panel a:focus-visible { background: color-mix(in srgb, var(--shop-primary) 8%, transparent); }

/* On a phone the header has no room for a floating panel, so the list opens in
   flow and pushes the page down — which is the correct behaviour for a
   disclosure on a narrow screen, and needs no script to switch between. */
@media (max-width: 48rem) {
    .shop-nav-panel {
        position: static;
        min-width: 0;
        box-shadow: none;
        border: 0;
        padding-inline: 0;
    }
}

/* ═════════════════════════════════════════════════════════════════════════════
   THE HEADER'S SEARCH BOX

   A box to type in, not an icon that loads a page with a box on it. The icon
   stays for the narrow layouts where the box does not fit, so nothing is lost
   on a phone.
   ═════════════════════════════════════════════════════════════════════════════ */

.shop-search-inline {
    display: none;
    align-items: center;
    gap: var(--space-1);
    padding-inline-start: var(--space-3);
    border: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent);
    border-radius: 999px;
    background: var(--shop-surface);
}
.shop-search-inline:focus-within { border-color: var(--shop-primary); }
.shop-search-inline input {
    border: 0;
    background: none;
    padding-block: var(--space-2);
    font: inherit;
    font-size: var(--text-sm);
    color: inherit;
    inline-size: 9rem;
    min-inline-size: 0;
}
.shop-search-inline input:focus { outline: none; }
.shop-search-inline button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--shop-primary);
    cursor: pointer;
}

@media (min-width: 64rem) {
    .shop-search-inline { display: inline-flex; }
    .shop-search-inline input { inline-size: 11rem; }
    /* Two search controls side by side would be two ways to do one thing. */
    .shop-icon-search { display: none; }
}

/* ── "Bestseller" ──────────────────────────────────────────────────────────
   The accent rather than the primary, so it reads as a note about the product
   and not as the "Reduced" flash, which is a claim about money. A shopper who
   has learned to ignore badges should still be able to tell these two apart at
   a glance. It only ever appears on a product that genuinely sold units in
   this shop — see the card partial. */
.shop-badge-bestseller {
    background: color-mix(in srgb, var(--shop-accent) 92%, var(--shop-text));
    color: var(--shop-bg);
}

/* ── Lustre: the new bands in the theme's own voice ────────────────────────
   Everything above is the platform's vocabulary and renders on all three
   themes. These are Comfobeautys' theme specifically: the serif, the gold
   hairline, the squared-off corners. */

[data-theme="anuradha"] .shop-feature-icon {
    border-radius: 0;
    border-color: var(--lustre-rule);
    background: var(--lustre-tint);
}
[data-theme="anuradha"] .shop-feature-title {
    letter-spacing: var(--tracking-wide);
}
[data-theme="anuradha"] .shop-promo-figure { border-radius: 0; }
[data-theme="anuradha"] .shop-promo-flash {
    border-radius: 0;
    text-transform: uppercase;
    font-size: var(--text-xs);
}
[data-theme="anuradha"] .shop-hero-chip {
    border-radius: 0;
    border-color: var(--lustre-rule);
}
[data-theme="anuradha"] .shop-nav-panel { border-radius: 0; border-color: var(--lustre-rule); }
[data-theme="anuradha"] .shop-search-inline {
    border-radius: 0;
    border-color: var(--lustre-rule);
}
[data-theme="anuradha"] .shop-search-inline button { border-radius: 0; }
[data-theme="anuradha"] .shop-announcement-items { letter-spacing: var(--tracking-wide); }

/* ── The footer's signup box ───────────────────────────────────────────────
   Shown only when the merchant switched it on, and posting to an endpoint
   that writes a row they can read — there is no decorative version of this
   component. See the layout and `NewsletterController`. */

.shop-signup {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
}
@media (min-width: 56rem) {
    .shop-signup {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: center;
        gap: var(--space-8);
    }
}
.shop-signup-copy > * { margin: 0; }
.shop-signup-body {
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    color: var(--lustre-ink-soft, inherit);
}

.shop-signup-field { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.shop-signup-input {
    flex: 1 1 14rem;
    min-inline-size: 0;
    padding: var(--space-3) var(--space-4);
    font: inherit;
    color: inherit;
    background: var(--shop-surface);
    border: 1px solid color-mix(in srgb, var(--shop-text) 20%, transparent);
    border-radius: var(--shop-radius);
}
.shop-signup-input:focus-visible {
    outline: 2px solid var(--shop-primary);
    outline-offset: 1px;
}

[data-theme="anuradha"] .shop-signup-input {
    border-radius: 0;
    border-color: var(--lustre-rule);
}
.shop-signup-note {
    grid-column: 1 / -1;
    margin: 0;
    font-size: var(--text-sm);
    /* The confirmation, in the footer's own colour. It is read in place and
       says what happened; the form stays where it is rather than being
       replaced, so a second address can be added without a hunt. */
    color: inherit;
}
/* In the surrounding text colour, which every scheme keeps readable — not the
   accent, which is decorative and can be as faint as 2.3:1. */
.shop-signup-note-error { color: inherit; font-weight: var(--weight-semibold); }

/* ═════════════════════════════════════════════════════════════════════════════
   SOCIAL MARKS

   The glyph is chosen from the HOST of the link the merchant pasted, so the
   list stays theirs to extend — see `SocialNetworks`. Monochrome and taking
   the colour of the text around them, which is how a link to a profile is
   meant to look and what every platform's own brand guidance asks for.
   ═════════════════════════════════════════════════════════════════════════════ */

.shop-social {
    list-style: none;
    margin: var(--space-5) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.shop-social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--shop-radius);
    color: inherit;
    text-decoration: none;
    font-size: var(--text-sm);
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    opacity: 0.85;
}
.shop-social-link:hover,
.shop-social-link:focus-visible { opacity: 1; border-color: currentColor; }
.shop-social-icon { display: inline-flex; flex: none; }
.shop-social-icon svg { width: 1.05rem; height: 1.05rem; }

/* In the top bar there is no room for the names, so the glyph carries the
   link and the name is the accessible name only. */
.shop-announcement-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 1.75rem;
    block-size: 1.75rem;
    color: inherit;
    opacity: 0.85;
}
.shop-announcement-social-link:hover,
.shop-announcement-social-link:focus-visible { opacity: 1; }
.shop-announcement-social-link svg { width: 1rem; height: 1rem; }

.shop-footer-contact .shop-footer-links a { opacity: 0.8; }
.shop-footer-contact .shop-footer-links a:hover { opacity: 1; }

/* ── The picture behind the footer ─────────────────────────────────────────
   Declared here because PHP writes the VALUE into a style attribute and never
   the declaration. The scrim is the contrast control: the footer's text is
   light on a dark panel and these textures are pale gold and ivory, so without
   a wash over them the copyright line disappears into the silk. */
.shop-footer { --footer-image: none; }

.shop-footer-media {
    position: relative;
    isolation: isolate;
    background-image: var(--footer-image);
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}
.shop-footer-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--footer-scrim, transparent);
}
.shop-footer-scrim-none   { --footer-scrim: transparent; }
.shop-footer-scrim-soft   { --footer-scrim: color-mix(in srgb, var(--lustre-deep, var(--shop-primary)) 72%, transparent); }
.shop-footer-scrim-strong { --footer-scrim: color-mix(in srgb, var(--lustre-deep, var(--shop-primary)) 92%, transparent); }

[data-theme="anuradha"] .shop-social-link { border-radius: 0; border-color: var(--lustre-rule); }

/* ── The band at the top of a listing page ─────────────────────────────────
   Rendered by `partials/listing_band` on the collections index, a collection,
   a category and search results — one partial, so the four cannot drift. The
   picture is the merchant's choice; unset means no band at all rather than a
   platform default on every shop. */
.shop-listing-banner {
    --listing-band-image: none;
    --listing-band-image-mobile: none;
    block-size: 10rem;
    margin-block-end: var(--space-6);
    border-radius: var(--shop-radius);
    background-image: var(--listing-band-image-mobile, var(--listing-band-image));
    background-size: cover;
    background-position: center;
}
@media (min-width: 48rem) {
    .shop-listing-banner {
        block-size: 14rem;
        background-image: var(--listing-band-image, var(--listing-band-image-mobile));
    }
}
[data-theme="anuradha"] .shop-listing-banner { border-radius: 0; }

/* ── Theme engine: design tokens (DesignTokens) ─────────────────────────────
 *
 * Each rule applies only when the merchant has set that token away from
 * "as the theme does it" — the property is then present in the <html> style
 * attribute, and absent otherwise. A shop that has set none renders exactly
 * as before, whatever the theme's own rules say.
 */
html[style*="--shop-shadow:"] .shop-card,
html[style*="--shop-shadow:"] .shop-btn { box-shadow: var(--shop-shadow); }

html[style*="--shop-btn-radius:"] .shop-btn { border-radius: var(--shop-btn-radius); }
html[style*="--shop-btn-style:outline"] .shop-btn-primary,
html[style*="--shop-btn-style:outline"] .shop-btn-accent {
    background: transparent;
    color: var(--shop-primary);
    border-color: var(--shop-primary);
}
html[style*="--shop-btn-style:outline"] .shop-btn-primary:hover:not(:disabled) {
    background: var(--shop-primary);
    color: var(--shop-on-primary);
    filter: none;
}

html[style*="--shop-border-width:"] .shop-btn,
html[style*="--shop-border-width:"] .shop-input { border-width: var(--shop-border-width); }
html[style*="--shop-border-width:"] .shop-card {
    border: var(--shop-border-width) solid color-mix(in srgb, var(--shop-text) 14%, transparent);
    border-radius: var(--shop-radius);
}

html[style*="--shop-heading-scale:"] .shop-section-title {
    font-size: calc(clamp(var(--text-xl), 3.5vw, var(--text-3xl)) * var(--shop-heading-scale));
}
html[style*="--shop-heading-scale:"] .shop-hero-title {
    font-size: calc(clamp(var(--text-2xl), 6vw, var(--text-5xl)) * var(--shop-heading-scale));
}
html[style*="--shop-heading-scale:"] .shop-product-title {
    font-size: calc(clamp(var(--text-xl), 4vw, var(--text-3xl)) * var(--shop-heading-scale));
}

html[style*="--shop-heading-tracking:"] .shop-section-title,
html[style*="--shop-heading-tracking:"] .shop-hero-title,
html[style*="--shop-heading-tracking:"] .shop-product-title { letter-spacing: var(--shop-heading-tracking); }

/* A section wearing a colour scheme (its wrapper redefines --shop-bg etc.). */
.shop-section-wrap[class*="shop-scheme-"] { background-color: var(--shop-bg); color: var(--shop-text); }

/* ── apps.twixen.com reference (erplink): "CB-001312 · Web ref COM-1042" ── */
.order-ref-web { display: block; font-weight: normal; font-size: var(--text-xs, 0.75rem); color: var(--text-muted, inherit); }

/* A set with no photo of its own: its products' photos side by side, in a
   card or on its page. */
.shop-kit-collage {
    width: 100%;
    height: 100%;
    display: grid;
    gap: 2px;
    grid-template-columns: 1fr 1fr;
    background: var(--shop-surface);
}
.shop-kit-collage { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.shop-kit-collage-1, .shop-kit-collage-2 { grid-template-rows: minmax(0, 1fr); }
.shop-kit-collage-1 { grid-template-columns: 1fr; }
.shop-card-media > .shop-kit-collage { position: absolute; inset: 0; }
.shop-kit-collage .shop-media-frame.shop-media-fit-contain.shop-media-raw img.shop-media-img { padding: 4%; }
.shop-card:hover .shop-kit-collage img { transform: none; }
.shop-kit-collage-3 > :first-child { grid-row: span 2; }
.shop-kit-collage .shop-media-frame { width: 100%; height: 100%; min-height: 0; overflow: hidden; aspect-ratio: auto; }
.shop-kit-collage .shop-media-img, .shop-kit-collage img { width: 100%; height: 100%; object-fit: contain; }

/* ════════════════════════════════════════════════════════════════════════════
   THE SHOP'S LANGUAGES, ALL VISIBLE (storefront/partials/lang_switch and
   lang_strip). A segmented control of three script letters in the header —
   A · අ · அ — and, until the shopper picks, a thin strip above the page
   inviting them in their own language.
   ════════════════════════════════════════════════════════════════════════════ */

.shop .shop-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent);
    border-radius: 999px;
}

.shop .shop-lang-item {
    display: inline-grid;
    place-items: center;
    min-inline-size: 2rem;
    block-size: 2rem;
    padding-inline: 0.35rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    color: var(--shop-text);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.shop .shop-lang-item:hover { background: color-mix(in srgb, var(--shop-text) 8%, transparent); }

.shop .shop-lang-item.is-current {
    background: var(--shop-primary);
    color: var(--shop-on-primary);
}

.shop .shop-lang-item:focus-visible {
    outline: 2px solid var(--shop-primary);
    outline-offset: 2px;
}

.shop-lang-strip {
    font-size: var(--text-sm);
    color: var(--shop-text);
    background: color-mix(in srgb, var(--shop-accent, var(--shop-primary)) 16%, var(--shop-bg));
    border-block-end: 1px solid color-mix(in srgb, var(--shop-text) 10%, transparent);
}

.shop-lang-strip-inner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-block-size: 2.5rem;
    padding-block: var(--space-1);
}

.shop-lang-strip-icon { flex: none; opacity: 0.7; }

.shop-lang-strip-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
    min-inline-size: 0;
}

.shop-lang-strip-links a {
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* The phone's own language, put first by the script: a suggestion, never a switch. */
.shop-lang-strip-links a.is-suggested {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    text-decoration: none;
    background: var(--shop-primary);
    color: var(--shop-on-primary);
}

.shop-lang-strip-close {
    flex: none;
    display: inline-grid;
    place-items: center;
    inline-size: 2rem;
    block-size: 2rem;
    border-radius: 999px;
    color: inherit;
}

.shop-lang-strip-close:hover { background: color-mix(in srgb, var(--shop-text) 8%, transparent); }
.shop-lang-strip a:focus-visible { outline: 2px solid var(--shop-primary); outline-offset: 2px; }

/* Product page: how it can be paid, under the buttons. */
.shop-pdp-pay { margin-top: var(--space-4); font-size: var(--text-sm); }
.shop-pdp-pay-label { margin: 0 0 var(--space-2); opacity: 0.75; }
.shop-pdp-pay .shop-footer-pay-list li.shop-pay-mark { border: 1px solid color-mix(in srgb, var(--shop-text) 14%, transparent); border-radius: var(--shop-radius); padding: var(--space-1) var(--space-2); }
.shop-pdp-pay .shop-pay-mark-image img { width: min(320px, 100%); }

/* ── Review quotes under the buy buttons ─────────────────────────────────── */
.shop-pdp-quotes { margin-top: var(--space-6); font-size: var(--text-sm); }
.shop-pdp-quotes-title { margin: 0 0 var(--space-3); font-size: var(--text-base); }
.shop-pdp-quotes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.shop-pdp-quote {
    padding: var(--space-3) var(--space-4);
    background: var(--shop-surface);
    border-radius: var(--shop-radius);
    border: 1px solid color-mix(in srgb, var(--shop-text) 8%, transparent);
}
.shop-pdp-quote-head { margin: 0 0 var(--space-1); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.shop-pdp-quote-stars { color: var(--shop-rating-colour, color-mix(in srgb, var(--shop-accent) 55%, var(--shop-text))); letter-spacing: var(--tracking-wide); }
.shop-pdp-quote-body { margin: 0; }
.shop-review-verified-note { font-size: var(--text-xs); opacity: 0.7; }
.shop-pdp-quotes-list > li:nth-child(n+4) { display: none; }
.shop-pdp-quotes-list[data-shuffled] > li { display: none; }
.shop-pdp-quotes-list[data-shuffled] > li.is-shown { display: block; }
.shop-pdp-quotes-all { display: inline-block; margin-top: var(--space-3); font-weight: 600; }

/* ── Mix & match offers (owner, 25 Oct 2026) ───────────────────────────────
   One gold tag under the product price; one offer card above the cart and at
   the top of checkout — never among the order summary's money lines. */
.shop-offer-tag {
    display: inline-flex; align-items: center; gap: .5rem; max-width: 100%;
    margin-block: var(--space-2) var(--space-1); padding: .45rem .8rem .45rem .6rem;
    border-radius: 999px; text-decoration: none; font-size: var(--text-sm); line-height: 1.3;
    color: var(--shop-text);
    background: linear-gradient(135deg, color-mix(in srgb, var(--shop-accent) 22%, var(--shop-surface)), color-mix(in srgb, var(--shop-accent) 8%, var(--shop-surface)));
    border: 1px solid color-mix(in srgb, var(--shop-accent) 55%, transparent);
}
.shop-offer-tag svg { width: 1.1rem; height: 1.1rem; flex: none; color: color-mix(in srgb, var(--shop-accent) 75%, var(--shop-text)); }
.shop-offer-tag strong { font-weight: 700; color: var(--shop-primary); }
.shop-offer-tag-go { font-size: 1.1rem; color: var(--shop-primary); }
.shop-offer-tag:hover, .shop-offer-tag:focus-visible { border-color: var(--shop-accent); box-shadow: 0 2px 10px color-mix(in srgb, var(--shop-accent) 25%, transparent); }

.shop-offer-banner {
    position: relative; overflow: hidden;
    margin-block: 0 var(--space-5); padding: var(--space-4);
    border-radius: calc(var(--shop-radius) + 6px);
    border: 1px solid color-mix(in srgb, var(--shop-accent) 45%, transparent);
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--shop-accent) 26%, transparent) 0%, transparent 60%),
        linear-gradient(160deg, color-mix(in srgb, var(--shop-accent) 12%, var(--shop-surface)), var(--shop-surface));
    box-shadow: 0 6px 24px color-mix(in srgb, var(--shop-accent) 14%, transparent);
}
.shop-offer-banner-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.shop-offer-gift {
    display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
    color: var(--shop-on-primary); background: linear-gradient(145deg, var(--shop-primary), color-mix(in srgb, var(--shop-primary) 70%, var(--shop-accent)));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--shop-accent) 30%, transparent);
}
.shop-offer-gift svg { width: 1.4rem; height: 1.4rem; }
.shop-offer-kicker { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--shop-accent) 70%, var(--shop-text)); }
.shop-offer-title { margin: .1rem 0 0; font-family: var(--shop-font-heading); font-size: 1.15rem; line-height: 1.25; color: var(--shop-primary); }

.shop-offer-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--space-2); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.shop-offer-tile {
    display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem; text-align: center;
    border-radius: var(--shop-radius); background: var(--shop-surface);
    border: 1.5px dashed color-mix(in srgb, var(--shop-accent) 60%, transparent);
}
.shop-offer-tile-qty { font-size: var(--text-sm); font-weight: 600; color: color-mix(in srgb, var(--shop-text) 75%, transparent); }
.shop-offer-tile-price { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; color: var(--shop-primary); }
.shop-offer-tile-state { font-size: .78rem; color: color-mix(in srgb, var(--shop-text) 65%, transparent); }
.shop-offer-tile.is-unlocked { border-style: solid; border-color: var(--shop-accent); }
.shop-offer-tile.is-best { border-style: solid; border-color: var(--shop-primary); background: var(--shop-primary); }
.shop-offer-tile.is-best .shop-offer-tile-qty,
.shop-offer-tile.is-best .shop-offer-tile-price,
.shop-offer-tile.is-best .shop-offer-tile-state { color: var(--shop-on-primary); }
.shop-offer-tile.is-best .shop-offer-tile-state { font-weight: 700; }

.shop-offer-progress { position: relative; height: .5rem; margin: var(--space-2) .6rem var(--space-5); border-radius: 999px; background: color-mix(in srgb, var(--shop-accent) 20%, var(--shop-surface)); }
.shop-offer-progress-bar { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--shop-accent), var(--shop-primary)); transition: width .3s ease; }
.shop-offer-progress-mark {
    position: absolute; top: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%;
    font-size: .7rem; font-weight: 700; background: var(--shop-surface); color: var(--shop-text);
    border: 2px solid color-mix(in srgb, var(--shop-accent) 60%, transparent);
}
.shop-offer-progress-mark.is-done { background: var(--shop-primary); color: var(--shop-on-primary); border-color: var(--shop-primary); }

.shop-offer-status { margin: 0 0 var(--space-1); font-size: var(--text-base, 1rem); }
.shop-offer-status strong { color: var(--shop-primary); }
.shop-offer-how { margin: 0 0 var(--space-2); font-size: var(--text-sm); color: color-mix(in srgb, var(--shop-text) 75%, transparent); }
.shop-offer-rule, .shop-offer-cod {
    margin: 0; padding: .55rem .75rem; border-radius: var(--shop-radius); font-size: var(--text-sm);
    background: #fdf3dc; color: #6b4a06; border: 1px solid #f0d59a;
}
.shop-offer-cod { margin-top: var(--space-2); font-weight: 600; }
.shop-offer-banner.is-cod .shop-offer-tile.is-best { background: var(--shop-surface); border-color: color-mix(in srgb, var(--shop-accent) 60%, transparent); border-style: dashed; }
.shop-offer-banner.is-cod .shop-offer-tile.is-best .shop-offer-tile-qty,
.shop-offer-banner.is-cod .shop-offer-tile.is-best .shop-offer-tile-price { color: var(--shop-primary); }
.shop-offer-banner.is-cod .shop-offer-tile.is-best .shop-offer-tile-state { visibility: hidden; }
.shop-offer-banner.is-cod .shop-offer-status { opacity: .55; }
.shop-offer-banner.is-cod .shop-offer-rule { display: none; }
.shop-pay-normal-price { display: block; margin-top: .2rem; font-size: .8rem; font-weight: 600; color: #8a5a00; }
@media (min-width: 900px) {
    .shop-offer-banner { padding: var(--space-5); display: grid; grid-template-columns: minmax(16rem, 1fr) 1.4fr; column-gap: var(--space-5); align-items: start; }
    .shop-offer-banner > :not(.shop-offer-banner-head):not(.shop-offer-tiles) { grid-column: 1 / -1; }
    .shop-offer-banner-head { margin-bottom: 0; }
}
.shop-flow-row[hidden], .shop-offer-cod[hidden] { display: none !important; }

/* Pay-less strip: "Bank transfer 10% off · Card 5% off" (owner, 25 Oct 2026). */
.shop-paydisc-strip {
    display: flex; align-items: center; gap: .55rem; margin: var(--space-2) 0; padding: .55rem .8rem;
    border-radius: var(--shop-radius); font-size: var(--text-sm); line-height: 1.35;
    background: color-mix(in srgb, var(--shop-primary) 8%, var(--shop-surface));
    border: 1px solid color-mix(in srgb, var(--shop-primary) 30%, transparent); color: var(--shop-text);
}
.shop-paydisc-strip svg { width: 1.15rem; height: 1.15rem; flex: none; color: var(--shop-primary); }
.shop-paydisc-strip strong { color: var(--shop-primary); }
.shop-paydisc-strip.is-product { display: inline-flex; margin-top: var(--space-1); border-radius: 999px; padding: .4rem .8rem; }
.shop-paydisc-strip.is-cart, .shop-paydisc-strip.is-checkout { margin: 0 0 var(--space-4); }
.shop-offer-paydisc { margin: var(--space-2) 0 0; font-size: var(--text-sm); font-weight: 600; color: var(--shop-primary); }
.shop-paydisc-badge {
    display: inline-block; align-self: flex-start; width: max-content; margin: .2rem 0 0; padding: .1rem .55rem; border-radius: 999px; vertical-align: middle;
    font-size: .72rem; font-weight: 700; color: var(--shop-on-primary); background: var(--shop-primary);
}
.shop-paydisc-line { display: block; margin-top: .2rem; font-size: .82rem; font-weight: 600; color: var(--shop-primary); }
.shop-paydisc-row { color: var(--shop-primary); }

/* Checkout: delivery charge waits for the district (district-priced stores). */
.shop-co-delivery-pending{margin:0;padding:.85rem 1rem;border:1px dashed var(--shop-border,#d9d4c7);border-radius:12px;background:var(--shop-surface-alt,#faf7f0);color:var(--shop-muted,#5f5a4f);font-size:.95rem}

/* "Save with a set" (owner, 12 Nov 2026): compact choices above Add to cart;
   the single product is the default first row. Built for phone width first. */
.shop-sets { border: 0; padding: 0; margin: var(--space-3) 0 var(--space-3); min-width: 0; }
.shop-sets-legend { padding: 0; margin-bottom: .4rem; font-size: var(--text-sm); font-weight: 700; color: var(--shop-text); }
.shop-set {
    display: flex; align-items: center; gap: .55rem; min-height: 2.75rem;
    padding: .4rem .6rem; margin-top: .35rem; cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent); border-radius: var(--shop-radius);
    background: var(--shop-surface); font-size: var(--text-sm); line-height: 1.25;
}
.shop-set:has(input:checked) { border-color: var(--shop-primary); background: color-mix(in srgb, var(--shop-primary) 6%, var(--shop-surface)); box-shadow: 0 0 0 1px var(--shop-primary); }
.shop-set input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--shop-primary); }
.shop-set-thumb { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 6px; overflow: hidden; }
.shop-set-thumb img { width: 100%; height: 100%; object-fit: contain; }
.shop-set-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.shop-set-title { font-weight: 600; overflow-wrap: anywhere; }
.shop-set-tag { display: inline-block; margin-left: .25rem; padding: 0 .4rem; border-radius: 999px; font-size: .68rem; font-weight: 700; white-space: nowrap; vertical-align: 1px;
    color: var(--shop-text); background: color-mix(in srgb, var(--shop-accent) 30%, var(--shop-surface)); }
.shop-set-save { font-size: .75rem; font-weight: 600; color: var(--shop-primary); }
.shop-set-price { flex: none; text-align: right; font-weight: 700; white-space: nowrap; display: flex; flex-direction: column; }
.shop-set-price s { font-weight: 400; font-size: .72rem; opacity: .6; }
.shop-sets-more > summary { list-style: none; cursor: pointer; margin-top: .4rem; font-size: var(--text-sm); font-weight: 600; color: var(--shop-primary); }
.shop-sets-more > summary::-webkit-details-marker { display: none; }
.shop-set-tag { white-space: normal; }
/* "How to order" video, folded until tapped. */
.shop-howto { margin: var(--space-3) 0; }
.shop-howto > summary { cursor: pointer; font-size: var(--text-sm); font-weight: 600; color: var(--shop-primary); list-style: none; }
.shop-howto > summary::-webkit-details-marker { display: none; }
.shop-howto video { display: block; width: 100%; max-width: 20rem; height: auto; margin-top: var(--space-2); border-radius: var(--shop-radius); background: var(--shop-text); }
/* "Order on WhatsApp" help at checkout (OrderHelp): a card over the bottom of the page. */
.shop-help-pop {
    position: fixed; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); z-index: 60;
    max-width: 26rem; margin-inline: auto; padding: var(--space-4) var(--space-4) var(--space-3);
    background: var(--shop-surface); color: var(--shop-text);
    border: 2px solid var(--shop-primary); border-radius: calc(var(--shop-radius) + 4px);
    box-shadow: 0 10px 34px color-mix(in srgb, var(--shop-text) 30%, transparent);
}
.shop-help-pop[hidden] { display: none; }
.shop-help-pop-title { margin: 0 1.6rem .3rem 0; font-weight: 700; font-size: var(--text-md); }
.shop-help-pop-body { margin: 0 0 var(--space-3); font-size: var(--text-sm); }
.shop-help-pop-x { position: absolute; top: .3rem; right: .4rem; width: 2.25rem; height: 2.25rem; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--shop-text); cursor: pointer; }
.shop-help-pop-wa { margin-bottom: var(--space-2); color: var(--shop-on-primary); background: var(--shop-primary); border-color: transparent; }
/* Shorter checkout on phones (owner, 12 Nov 2026). */
.shop-co-fold { margin: var(--space-2) 0; }
.shop-co-fold > summary { cursor: pointer; font-size: var(--text-sm); font-weight: 600; color: var(--shop-primary); padding: .35rem 0; }
.shop-co-fold[open] > summary { margin-bottom: var(--space-2); }
.shop-wa-choice { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .35rem 0 .5rem; }
.shop-wa-opt { display: flex; align-items: center; gap: .45rem; min-height: 2.9rem; padding: .5rem .7rem; cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--shop-text) 22%, transparent); border-radius: var(--shop-radius);
    background: var(--shop-surface); font-size: var(--text-sm); font-weight: 600; line-height: 1.25; }
.shop-wa-opt:has(input:checked) { border-color: var(--shop-primary); box-shadow: 0 0 0 1px var(--shop-primary); background: color-mix(in srgb, var(--shop-primary) 7%, var(--shop-surface)); }
.shop-wa-opt input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--shop-primary); }
.shop-co-pd-summary { margin: .25rem 0 .5rem; font-size: var(--text-sm); }
.shop-co-pd-change { border: 0; background: none; padding: .25rem .4rem; color: var(--shop-primary); font-weight: 600; text-decoration: underline; cursor: pointer; }
.shop-co-pd[hidden], .shop-co-pd-summary[hidden] { display: none; }
.shop .field-error[hidden] { display: none; }
.shop-co-choices.is-single .plan-choice-option { cursor: default; }
.shop-co-choices.is-single .plan-choice-option input { position: absolute; opacity: 0; pointer-events: none; }
.shop-co-trust { list-style: none; margin: 0 0 var(--space-3); padding: var(--space-3); display: grid; gap: .35rem;
    font-size: var(--text-sm); line-height: 1.35; border-radius: var(--shop-radius);
    background: color-mix(in srgb, var(--shop-primary) 6%, var(--shop-surface)); border: 1px solid color-mix(in srgb, var(--shop-primary) 25%, transparent); }
ul.shop-co-trust[role="list"] { padding: var(--space-3) var(--space-4); }
/* A payment method's instructions show once it is the one chosen. */
.plan-choice-option:has(input[name="payment_method"]:not(:checked)) .shop-pay-instr { display: none; }
/* Reviews one tap from the price (owner, 12 Nov 2026). */
.shop-review-chip { display: inline-flex; align-items: center; gap: .35rem; margin: var(--space-1) 0 var(--space-2); padding: .4rem .75rem;
    border-radius: 999px; font-size: var(--text-sm); font-weight: 600; text-decoration: none; color: var(--shop-text);
    background: color-mix(in srgb, var(--shop-accent) 18%, var(--shop-surface)); border: 1px solid color-mix(in srgb, var(--shop-accent) 50%, transparent); }
.shop-review-chip > span { color: color-mix(in srgb, var(--shop-accent) 80%, var(--shop-text)); }
.shop-buybar-rating { font-size: .8em; font-weight: 600; color: color-mix(in srgb, var(--shop-accent) 80%, var(--shop-text)); }
.shop-pdp-form .shop-add-cart, .shop-product-form .shop-add-cart { margin-top: 0; }
