/* =============================================================================
   ArtNest storefront
   Editorial maker-supply shop. Mobile-first, no build step.

   Art direction: the earthy palette is the room; the logo's rainbow is what is
   in it. Chrome (header, type, footer, buttons) stays quiet and earthy so the
   shop reads as a real business. Colour arrives through the products — one
   accent per category, carried by the generated product marks.
   ============================================================================= */

/* ------------------------------------------------------------------ fonts */

@font-face {
    font-family: 'Fraunces';
    src: url('/assets/fonts/fraunces-var.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-stretch: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('/assets/fonts/dmsans-var.woff2') format('woff2-variations');
    font-weight: 100 1000;
    font-stretch: normal;
    font-style: normal;
    font-display: swap;
}

/* Metric-matched fallbacks. Line boxes are identical to the real fonts, so the
   swap changes letterforms without moving anything vertically. */
@font-face {
    font-family: 'Fraunces Fallback';
    src: local('Georgia'), local('Times New Roman'), local('Nimbus Roman'), local('serif');
    ascent-override: 97.8%;
    descent-override: 25.5%;
    line-gap-override: 0%;
    size-adjust: 100%;
}

@font-face {
    font-family: 'DM Sans Fallback';
    src: local('Arial'), local('Helvetica Neue'), local('Roboto'), local('Liberation Sans'), local('sans-serif');
    ascent-override: 99.2%;
    descent-override: 31%;
    line-gap-override: 0%;
    size-adjust: 104%;
}

/* ----------------------------------------------------------------- tokens */

:root {
    /* Ground */
    --paper: #F5F2ED;
    --paper-2: #FBF9F6;
    --paper-3: #EDE7DE;
    --rule: #E2DBD1;
    --rule-strong: #D2C9BC;

    /* Ink. All three clear 4.5:1 on --paper. */
    --ink: #2D2926;
    --ink-2: #5C554E;
    --ink-3: #6E675F;

    /* Brand. `clay` is decorative; `clay-deep` is the text/interactive safe
       variant (4.96:1 on paper, 5.70:1 behind white). */
    --clay: #C8553D;
    --clay-deep: #B0432D;
    --clay-press: #93361F;
    --clay-tint: #F6E9E3;
    --sage: #5B7B6B;
    --sage-deep: #415C4E;
    --sage-tint: #E8EEEA;
    --gold: #D4A017;
    --gold-deep: #7C5A0C;
    --gold-tint: #F7EEDA;
    --indigo: #3D6187;
    --indigo-deep: #33526F;
    --indigo-tint: #E7EDF3;
    /* Logo wordmark rainbow — sampled from logo.png letter fills */
    --brand-a: #E04E3A;
    --brand-r: #F08A3A;
    --brand-t: #E8B030;
    --brand-n: #5B9B7A;
    --brand-e: #5BAFD4;
    --brand-s: #D47A6A;
    /* Darker than WhatsApp's own green so white button labels clear 4.5:1
       (the brand green only reaches 3.46:1). */
    --whatsapp: #157A3E;
    --whatsapp-press: #0F5C2E;
    --danger: #A3251C;

    /* Type */
    --font-display: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
    --font-body: 'DM Sans', 'DM Sans Fallback', system-ui, -apple-system, sans-serif;

    /* Spacing rhythm, 4px base */
    --s1: 0.25rem;
    --s2: 0.5rem;
    --s3: 0.75rem;
    --s4: 1rem;
    --s5: 1.5rem;
    --s6: 2rem;
    --s7: 3rem;
    --s8: 4rem;
    --s9: 6rem;

    --r-sm: 6px;
    --r: 10px;
    --r-lg: 18px;
    --r-xl: 26px;

    /* Elevation is mostly hairlines; shadow is reserved for things that
       genuinely float above the page. */
    --lift-1: 0 1px 2px rgba(45, 41, 38, .05);
    --lift-2: 0 4px 18px -6px rgba(45, 41, 38, .16);
    --lift-3: 0 18px 48px -16px rgba(45, 41, 38, .28);

    --ease: cubic-bezier(.2, .7, .3, 1);
    --t-fast: 120ms;
    --t: 200ms;
    --t-slow: 320ms;

    --header-h: 58px;
    --wrap: 1240px;
    --gutter: 1.25rem;

    /* Per-page accent, overridden on category and product pages. */
    --accent: var(--clay);
    --accent-deep: var(--clay-deep);
    --accent-tint: var(--clay-tint);
}

@media (min-width: 900px) {
    :root {
        --header-h: 74px;
        --gutter: 2rem;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--paper);
    /* Paper grain, generated locally as a small tiled SVG. No image file, no
       network, and cheap because the browser rasterises one 140px tile. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='.32'/%3E%3C/svg%3E");
    background-repeat: repeat;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    font-variation-settings: 'opsz' 16, 'wght' 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body.has-buybar {
    --buybar-height: 76px;
    padding-bottom: calc(var(--buybar-height) + env(safe-area-inset-bottom));
}

body.has-buybar.buybar-anchor-visible {
    padding-bottom: 0;
}

@media (min-width: 900px) {
    body.has-buybar,
    body.has-buybar.buybar-anchor-visible {
        padding-bottom: 0;
    }
}

body.is-locked {
    overflow: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* Generated product marks fill their frame everywhere they appear. */
.art-svg {
    width: 100%;
    height: 100%;
}

img {
    height: auto;
}

a {
    color: var(--clay-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

button {
    font: inherit;
    color: inherit;
}

/* One focus treatment everywhere, visible on every ground we use. */
:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 3px;
}

.on-dark :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--paper);
}

::selection {
    background: var(--clay);
    color: #fff;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--s4);
    z-index: 900;
    padding: 0.75rem 1.25rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 0 0 var(--r) var(--r);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

[x-cloak] {
    display: none !important;
}

/* ------------------------------------------------------------- typography */

.display-xl,
.display-l,
.display-m,
.display-s {
    font-family: var(--font-display);
    margin: 0;
    text-wrap: balance;
}

/* WONK and a high SOFT are what make Fraunces feel drawn rather than set;
   they are used only at display sizes where the detail is legible. */
.display-xl {
    font-size: clamp(2.75rem, 12.5vw, 6.5rem);
    line-height: 0.94;
    letter-spacing: -0.032em;
    font-variation-settings: 'opsz' 144, 'wght' 600, 'SOFT' 48, 'WONK' 1;
}

.display-l {
    font-size: clamp(1.9rem, 6.4vw, 3.1rem);
    line-height: 1.04;
    letter-spacing: -0.024em;
    font-variation-settings: 'opsz' 96, 'wght' 600, 'SOFT' 36, 'WONK' 1;
}

.display-m {
    font-size: clamp(1.55rem, 5vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.018em;
    font-variation-settings: 'opsz' 60, 'wght' 580, 'SOFT' 28, 'WONK' 1;
}

.display-s {
    font-size: 1.0625rem;
    line-height: 1.28;
    letter-spacing: -0.006em;
    font-variation-settings: 'opsz' 24, 'wght' 560, 'SOFT' 18, 'WONK' 0;
}

.display-xl em,
.display-l em {
    font-style: italic;
    color: var(--clay-deep);
    font-variation-settings: 'opsz' 144, 'wght' 500, 'SOFT' 80, 'WONK' 1;
}

.eyebrow {
    font-size: 0.6875rem;
    font-variation-settings: 'opsz' 11, 'wght' 620;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0;
}

.eyebrow-accent {
    color: var(--accent-deep);
}

.lede {
    font-size: 1.0625rem;
    line-height: 1.62;
    color: var(--ink-2);
    margin: 0;
    max-width: 46ch;
}

.meta {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ink-3);
    margin: 0;
}

.num {
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- layout */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap-narrow {
    max-width: 820px;
}

.section {
    padding-block: clamp(2.75rem, 8vw, 5.5rem);
}

.section-tight {
    padding-block: clamp(1.75rem, 5vw, 3rem);
}

.section-rule {
    border-top: none;
    position: relative;
}

.section-rule-bleed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: var(--rule);
    pointer-events: none;
}

/* Section headings sit left and are paired with a link on the right — an
   editorial masthead rather than a centred marketing block. */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s3) var(--s5);
    margin-bottom: var(--s5);
}

.section-head > div {
    max-width: 38ch;
}

.section-head .eyebrow {
    margin-bottom: 0.6rem;
}

.section-head p {
    margin: 0.6rem 0 0;
    color: var(--ink-2);
    font-size: 0.9375rem;
}

@media (min-width: 1280px) {
    .section-head {
        flex-wrap: nowrap;
        align-items: flex-end;
    }

    .section-head > div {
        max-width: none;
        flex: 1 1 auto;
        min-width: 0;
    }

    .section-head .display-l {
        white-space: nowrap;
    }

    .section-head .text-link {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 600;
    color: var(--ink);
    text-decoration: none;
    padding: 0.6rem 0;
    border-bottom: 1.5px solid var(--rule-strong);
    transition: border-color var(--t) var(--ease), color var(--t) var(--ease), gap var(--t) var(--ease);
}

.text-link:hover {
    color: var(--clay-deep);
    border-bottom-color: var(--clay);
    gap: 0.7rem;
}

.text-link svg {
    width: 15px;
    height: 15px;
}

/* --------------------------------------------------------------- buttons */

.btn {
    --btn-bg: var(--clay-deep);
    --btn-fg: #fff;
    --btn-bd: var(--clay-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1.5px solid var(--btn-bd);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-variation-settings: 'opsz' 15, 'wght' 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
                color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}

.btn:hover {
    --btn-bg: var(--clay-press);
    --btn-bd: var(--clay-press);
    color: #fff;
}

.btn:active {
    transform: translateY(1px);
}

.btn-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    --btn-bd: var(--rule-strong);
}

.btn-ghost:hover {
    --btn-bg: var(--paper-2);
    --btn-bd: var(--ink);
    color: var(--ink);
}

.btn-ink {
    --btn-bg: var(--ink);
    --btn-bd: var(--ink);
}

.btn-ink:hover {
    --btn-bg: #16130F;
    --btn-bd: #16130F;
}

.btn-wa {
    --btn-bg: var(--whatsapp);
    --btn-bd: var(--whatsapp);
}

.btn-wa:hover {
    --btn-bg: var(--whatsapp-press);
    --btn-bd: var(--whatsapp-press);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    min-height: 40px;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
}

.btn[disabled],
.btn[aria-disabled='true'] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3);
}

.btn-row > .btn {
    flex: 1 1 auto;
}

@media (min-width: 560px) {
    .btn-row > .btn {
        flex: 0 0 auto;
    }
}

/* Small pill used for facts, not decoration. */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--paper-2);
    font-size: 0.75rem;
    font-variation-settings: 'opsz' 12, 'wght' 550;
    color: var(--ink-2);
    white-space: nowrap;
}

.chip::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

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

/* -------------------------------------------------------- announcement */

.announce {
    margin: 0;
    background: var(--ink);
    color: #EDE7DE;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-align: center;
    padding: 0.5rem var(--gutter);
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
}

/* -------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: none;
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--rule);
    pointer-events: none;
}

@supports not (backdrop-filter: blur(1px)) {
    .site-header {
        background: var(--paper);
    }
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--s3);
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--ink);
    margin-right: auto;
    min-height: 44px;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
}

.brand-text {
    display: none;
    flex-direction: column;
    line-height: 1.1;
    gap: 0.15rem;
}

.brand-mark {
    display: flex;
    align-items: baseline;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 800;
    font-variation-settings: 'opsz' 14, 'wght' 800;
    letter-spacing: 0.06em;
    line-height: 1;
}

.brand-mark span:nth-child(1) { color: var(--brand-a); }
.brand-mark span:nth-child(2) { color: var(--brand-r); }
.brand-mark span:nth-child(3) { color: var(--brand-t); }
.brand-mark span:nth-child(4) { color: var(--brand-n); }
.brand-mark span:nth-child(5) { color: var(--brand-e); }
.brand-mark span:nth-child(6) { color: var(--brand-s); }
.brand-mark span:nth-child(7) { color: var(--brand-a); }

.brand-tagline {
    font-size: 0.5625rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-variation-settings: 'opsz' 9, 'wght' 600;
}

.header-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.header-nav a {
    position: relative;
    padding: 0.5rem 0.7rem;
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 500;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--r-sm);
}

/* Category links carry their own accent on hover — the only place colour
   leaks into the chrome, and it teaches the colour coding. */
.header-nav a::after {
    content: '';
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.28rem;
    height: 1.5px;
    background: var(--nav-accent, var(--clay));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t) var(--ease);
}

.header-nav a:hover::after,
.header-nav a[aria-current='page']::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: var(--ink);
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--t) var(--ease);
}

.icon-btn:hover {
    background: var(--paper-3);
    color: var(--ink);
}

.icon-btn svg {
    width: 21px;
    height: 21px;
}

.icon-wishlist svg {
    fill: none;
}

/* Desktop search reads as a field, not an icon, so it advertises itself. */
.search-trigger-wide {
    display: none;
    align-items: center;
    gap: 0.55rem;
    height: 42px;
    min-width: 236px;
    padding: 0 0.5rem 0 0.85rem;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink-3);
    font-size: 0.875rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.search-trigger-wide:hover {
    border-color: var(--ink);
    color: var(--ink-2);
}

.search-trigger-wide svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.search-trigger-wide span {
    margin-right: auto;
}

.kbd {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--rule-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-variation-settings: 'opsz' 11, 'wght' 600;
    color: var(--ink-3);
    line-height: 1;
}

.cart-badge {
    position: absolute;
    top: 5px;
    right: 4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--clay-deep);
    color: #fff;
    font-size: 0.6875rem;
    font-variation-settings: 'opsz' 11, 'wght' 700;
    border-radius: 999px;
    line-height: 1;
}

.cart-badge[data-count='0'] {
    display: none;
}

/* ------------------------------------------------------------ overlays */

.overlay-scrim {
    position: absolute;
    inset: 0;
    background: rgba(30, 26, 22, .46);
    opacity: 0;
    transition: opacity var(--t) var(--ease);
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 500;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
}

.drawer.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--t) var(--ease);
}

.drawer.is-open .overlay-scrim {
    opacity: 1;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(420px, 92vw);
    height: 100%;
    background: var(--paper);
    box-shadow: var(--lift-3);
    transform: translateX(100%);
    transition: transform var(--t-slow) var(--ease);
}

.drawer.is-open .drawer-panel {
    transform: none;
}

/* The cart contents are swapped as one HTMX fragment, so this wrapper has to
   carry the panel's column layout or the footer floats up under the last line. */
#an-cart-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    padding: var(--s3) var(--s3) var(--s3) var(--s5);
    border-bottom: 1px solid var(--rule);
}

.drawer-head h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-variation-settings: 'opsz' 24, 'wght' 580, 'SOFT' 20, 'WONK' 0;
    margin: 0;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--s2) var(--s5);
}

.drawer-foot {
    padding: var(--s4) var(--s5) calc(var(--s4) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rule);
    background: var(--paper-2);
}

/* Mobile navigation ---------------------------------------------------- */

/* Scoped to the navigation rows themselves — an unscoped `.nav-panel a` also
   captured the WhatsApp button in the footer and forced its label to ink. */
.nav-panel > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    min-height: 56px;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-variation-settings: 'opsz' 24, 'wght' 560, 'SOFT' 22, 'WONK' 0;
}

.nav-panel > a small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-variation-settings: 'opsz' 12, 'wght' 500;
    color: var(--ink-3);
}

.nav-panel .nav-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--nav-accent, var(--rule-strong));
    flex-shrink: 0;
}

.nav-panel-foot {
    padding-top: var(--s5);
}

/* -------------------------------------------------------- search overlay */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 600;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
}

.search-overlay.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--t) var(--ease);
}

.search-dialog {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    transform: translateY(1.25rem);
    transition: transform var(--t-slow) var(--ease);
    max-height: 100dvh;
}

.search-overlay.is-open .search-dialog {
    transform: none;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: var(--s2);
    padding: calc(env(safe-area-inset-top) + 0.6rem) var(--gutter) 0.6rem;
    border-bottom: none;
    box-shadow: inset 0 -1px 0 var(--rule);
    background: var(--paper);
    flex-shrink: 0;
}

.search-field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-field > svg {
    position: absolute;
    left: 0.95rem;
    width: 19px;
    height: 19px;
    color: var(--ink-3);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 52px;
    padding: 0 2.6rem 0 2.9rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem; /* never below 16px: stops iOS zooming the viewport */
    font-variation-settings: 'opsz' 16, 'wght' 500;
}

/* The browser's own clear button would sit next to ours. */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.search-input::placeholder {
    color: var(--ink-3);
    opacity: 1;
}

.search-input:focus {
    outline: none;
    border-color: var(--ink);
    background: var(--paper-2);
}

.search-clear {
    position: absolute;
    right: 0.35rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--ink-3);
    border-radius: 50%;
    cursor: pointer;
}

.search-clear:hover {
    background: var(--paper-3);
    color: var(--ink);
}

.search-dismiss {
    flex-shrink: 0;
    height: 48px;
    padding: 0 0.9rem;
    border: none;
    background: transparent;
    color: var(--ink-2);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 600;
    border-radius: var(--r);
    cursor: pointer;
}

.search-dismiss:hover {
    background: var(--paper-3);
    color: var(--ink);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: var(--s4) var(--gutter) calc(var(--s7) + env(safe-area-inset-bottom));
    scrollbar-width: thin;
    scrollbar-color: var(--rule-strong) transparent;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--rule-strong);
    border-radius: 999px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--ink-3);
}

.search-group + .search-group {
    margin-top: var(--s5);
}

.search-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s3);
    padding-bottom: 0.5rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--rule);
}

.search-group-head a {
    font-size: 0.75rem;
    color: var(--ink-3);
    text-decoration: none;
}

.search-group-head a:hover {
    color: var(--clay-deep);
    text-decoration: underline;
}

.search-row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: var(--s3);
    min-height: 68px;
    padding: 0.6rem 0.7rem;
    margin-inline: -0.7rem;
    border-radius: var(--r);
    color: var(--ink);
    text-decoration: none;
    transition: background var(--t-fast) var(--ease);
}

.search-row:hover,
.search-row[aria-selected='true'] {
    background: var(--paper-3);
}

.search-row[aria-selected='true'] {
    box-shadow: inset 3px 0 0 var(--row-accent, var(--clay));
}

.search-row-art {
    width: 52px;
    height: 52px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--paper-3);
    flex-shrink: 0;
}

.search-row-art img,
.search-row-art svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-row-text {
    min-width: 0;
}

.search-row-text b {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-variation-settings: 'opsz' 15, 'wght' 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-row-price {
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 650;
    color: var(--ink);
    white-space: nowrap;
    text-align: right;
}

.search-row-price.is-request {
    font-variation-settings: 'opsz' 12, 'wght' 550;
    font-size: 0.75rem;
    color: var(--ink-3);
    max-width: 6.5rem;
    white-space: normal;
    line-height: 1.25;
}

/* Narrow screens: let the marker stack over two lines so long product
   names keep the width they need. */
@media (max-width: 520px) {
    .search-row-price.is-request {
        max-width: 4.25rem;
    }
}

.search-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s3);
    margin-bottom: var(--s5);
}

.search-shortcut {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 56px;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--rule);
    border-radius: var(--r);
    background: var(--paper-2);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.8125rem;
    font-variation-settings: 'opsz' 13, 'wght' 550;
    line-height: 1.25;
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.search-shortcut:hover {
    border-color: var(--row-accent, var(--clay));
    background: var(--paper);
    color: var(--ink);
}

.search-shortcut .swatch {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--row-accent, var(--clay));
    flex-shrink: 0;
    opacity: 0.85;
}

.search-foot {
    margin-top: var(--s5);
    padding-top: var(--s4);
    border-top: 1px solid var(--rule);
}

.search-hints {
    display: none;
    flex-shrink: 0;
    gap: var(--s4);
    padding: 0.7rem var(--s5);
    box-shadow: inset 0 1px 0 var(--rule);
    background: var(--paper-2);
    font-size: 0.75rem;
    color: var(--ink-3);
}

.search-hints span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Skeletons: the shape of the answer, so nothing jumps when it lands. */
.search-skeleton {
    display: none;
}

.search-form.htmx-request .search-skeleton {
    display: block;
}

.search-form.htmx-request .search-results-inner {
    display: none;
}

.skel-row {
    display: grid;
    grid-template-columns: 52px 1fr 64px;
    align-items: center;
    gap: var(--s3);
    min-height: 68px;
    padding: 0.6rem 0;
}

.skel {
    background: linear-gradient(90deg, var(--paper-3) 0%, #F3EEE7 50%, var(--paper-3) 100%);
    background-size: 220% 100%;
    animation: shimmer 1.15s linear infinite;
    border-radius: var(--r-sm);
}

.skel-art {
    width: 52px;
    height: 52px;
}

.skel-line {
    height: 11px;
    border-radius: 999px;
}

@keyframes shimmer {
    to {
        background-position: -220% 0;
    }
}

/* --------------------------------------------------------- product cards */

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s3) var(--s3);
    align-items: stretch;
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--s5) var(--s4);
    }
}

@media (min-width: 1000px) {
    .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    color: var(--ink);
    isolation: isolate;
}

.card-product {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--lift-1);
    transition: border-color var(--t) var(--ease), box-shadow var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.card-product:hover {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--rule));
    box-shadow: var(--lift-2);
    transform: translateY(-2px);
}

.card-media {
    position: relative;
}

.card-media-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.card-art {
    position: relative;
    aspect-ratio: 1;
    min-height: 200px;
    overflow: hidden;
    background: var(--accent-tint);
}

.card-art > img,
.card-art > svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-art.has-photo {
    background: var(--paper);
}

.card-price-badge {
    position: absolute;
    left: 0.55rem;
    bottom: 0.55rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    background: color-mix(in srgb, var(--clay-deep) 92%, #000 8%);
    color: #fff;
    border-radius: 999px;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-variation-settings: 'opsz' 11, 'wght' 700;
    line-height: 1.2;
    box-shadow: 0 2px 10px rgba(30, 26, 22, .18);
}

.card-price-badge.is-request {
    background: color-mix(in srgb, var(--sage-deep) 90%, #000 10%);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.625rem;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.25rem;
    padding: 0.75rem 0.8rem 0.85rem;
}

.card-cat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-variation-settings: 'opsz' 10, 'wght' 650;
    color: var(--accent-deep);
    margin: 0;
}

.card-cat::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.card-title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 600;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.card-title a {
    color: var(--ink);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--clay-deep);
}

.card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    min-height: 44px;
}

.card-desc {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc.is-empty {
    display: none;
}

.card-actions {
    min-height: 44px;
}

.card-cta {
    min-height: 44px;
}

.card-cta-plus {
    font-size: 1.05rem;
    line-height: 1;
    font-variation-settings: 'opsz' 16, 'wght' 700;
}

.card-quick-add {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.5rem;
    align-items: stretch;
    margin: 0;
}

.card-quick-add .card-qty {
    width: 92px;
    max-width: 92px;
}

.card-quick-add .card-cta {
    min-height: 44px;
    padding-inline: clamp(0.55rem, 1.5vw + 0.35rem, 1.35rem);
    justify-content: center;
}

@media (max-width: 639px) {
    .card-quick-add {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 0.4rem;
    }

    .card-quick-add .card-qty {
        width: 80px;
        max-width: 80px;
    }

    .card-quick-add .stepper-sm button {
        width: 24px;
        min-width: 24px;
    }

    .card-quick-add .stepper-sm input {
        flex: 1 1 32px;
        font-size: 0.75rem;
    }
}

.card-product .wishlist-btn {
    top: 0.5rem;
    right: 0.5rem;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.card-quick-add .stepper-sm button {
    width: 28px;
    min-width: 28px;
    height: 44px;
    padding: 0;
    font-size: 1rem;
}

.card-quick-add .stepper-sm input {
    width: 36px;
    min-width: 0;
    flex: 1 1 36px;
    height: 44px;
    padding: 0;
    font-size: 0.8125rem;
}

@media (max-width: 767px) {
    .card-footer {
        gap: 0.5rem;
        padding-top: 0.35rem;
    }
}

@media (min-width: 768px) {
    .card-art {
        min-height: 240px;
    }

    .card-footer {
        position: relative;
        min-height: calc(44px + 0.65rem);
    }

    .card-desc {
        min-height: calc(44px + 0.65rem);
        padding-bottom: 0.15rem;
        transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
    }

    .card-desc.is-empty {
        display: block;
        visibility: hidden;
    }

    .card-actions {
        position: absolute;
        inset: 0.65rem 0 0;
        opacity: 0;
        transform: translateY(0.25rem);
        transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
        pointer-events: none;
    }

    .card-product:hover .card-desc,
    .card-product:focus-within .card-desc {
        opacity: 0;
        transform: translateY(-0.2rem);
    }

    .card-product:hover .card-actions,
    .card-product:focus-within .card-actions {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media (min-width: 768px) and (hover: none) {
    .card-footer {
        position: static;
        min-height: 0;
        gap: 0.5rem;
        padding-top: 0.35rem;
    }

    .card-desc {
        min-height: 0;
        padding-bottom: 0;
    }

    .card-desc.is-empty {
        display: none;
    }

    .card-actions {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

.card-price {
    font-size: 0.9375rem;
    font-variation-settings: 'opsz' 15, 'wght' 650;
    color: var(--ink);
}

.card-price.is-request {
    font-size: 0.8125rem;
    font-variation-settings: 'opsz' 13, 'wght' 550;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

@media (min-width: 640px) {
    .card-title {
        font-size: 0.9375rem;
    }
}

/* -------------------------------------------------------- category tiles */

.cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s3);
}

@media (min-width: 620px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s4);
    }
}

@media (min-width: 1000px) {
    .cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cat-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--paper-2);
    box-shadow: inset 0 0 0 1px var(--rule);
    color: var(--ink);
    text-decoration: none;
    transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}

.cat-tile:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px var(--accent), var(--lift-2);
    color: var(--ink);
}

.cat-tile-art {
    aspect-ratio: 160 / 96;
    background: var(--accent-tint);
}

.cat-tile-art svg {
    width: 100%;
    height: 100%;
}

.cat-tile-body {
    padding: var(--s4);
}

.cat-tile-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-variation-settings: 'opsz' 28, 'wght' 580, 'SOFT' 26, 'WONK' 1;
    line-height: 1.15;
    letter-spacing: -0.012em;
    margin: 0 0 0.3rem;
}

.cat-tile-body p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ink-2);
}

.cat-tile-count {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-variation-settings: 'opsz' 11, 'wght' 620;
    color: var(--accent-deep);
}

/* ----------------------------------------------------------------- hero */

.hero {
    position: relative;
    padding-block: clamp(2.25rem, 8vw, 5rem) clamp(2.5rem, 7vw, 4.5rem);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: clamp(2.5rem, 5vw, 5rem);
    }
}

.hero h1 {
    margin: 0.75rem 0 0;
}

.hero .lede {
    margin-top: var(--s4);
}

.hero .btn-row {
    margin-top: var(--s5);
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s3) var(--s4);
    margin: var(--s5) 0 0;
    padding: var(--s5) 0 0;
    border-top: none;
    position: relative;
    list-style: none;
}

.hero-facts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: var(--rule);
    pointer-events: none;
}

@media (max-width: 420px) {
    .hero-facts {
        grid-template-columns: 1fr;
        gap: var(--s4);
    }
}

.hero-facts li {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ink-2);
}

.hero-facts b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-variation-settings: 'opsz' 30, 'wght' 600, 'SOFT' 26, 'WONK' 1;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 0.2rem;
}

/* A single large nest built from the four category marks: the art system
   introducing itself, rather than a stock photograph standing in for one. */
.hero-nest {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    width: min(100%, 520px);
    max-width: 520px;
    margin-inline: auto;
}

.hero-nest a {
    display: grid;
    place-items: center;
    /* Matches the category mark's own viewBox so the composition is never
       cropped by the slice fit. */
    aspect-ratio: 160 / 96;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--tile-tint, var(--paper-2));
    box-shadow:
        inset 0 0 0 2px color-mix(in srgb, var(--tile-accent, var(--clay)) 28%, var(--rule)),
        inset 0 -28px 40px -24px color-mix(in srgb, var(--tile-accent, var(--clay)) 18%, transparent);
    transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}

.hero-nest a:nth-child(1) { transform: rotate(-2deg); }
.hero-nest a:nth-child(2) { transform: rotate(1.5deg) translateY(-6px); }
.hero-nest a:nth-child(3) { transform: rotate(2deg) translateY(5px); }
.hero-nest a:nth-child(4) { transform: rotate(-1.5deg); }

.hero-nest a:hover {
    transform: rotate(0) scale(1.03);
    z-index: 1;
    box-shadow:
        inset 0 0 0 2px var(--tile-accent, var(--clay)),
        var(--lift-2);
}

.hero-nest svg,
.hero-nest .art-hero {
    width: 88%;
    height: 88%;
}

.hero-nest-caption {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 34ch;
    margin-inline: auto;
}

/* ---------------------------------------------------------- info bands */

.band {
    background: var(--paper-2);
    border-block: none;
    position: relative;
    clear: both;
    isolation: isolate;
}

.band-bleed::before,
.band-bleed::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: var(--rule);
    pointer-events: none;
}

.band-bleed::before {
    top: 0;
}

.band-bleed::after {
    bottom: 0;
}

/* Related products on PDP — sits close under the product, same page rhythm. */
.pdp-related {
    position: relative;
    margin-top: 0;
}

@media (min-width: 900px) {
    .pdp-related.section {
        padding-block: var(--s4) var(--s6);
    }

    .pdp-related .section-head {
        margin-bottom: var(--s3);
    }

    .pdp-related .section-head .display-l {
        font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    }

    .pdp-related .grid {
        gap: var(--s4) var(--s3);
    }

    .pdp-related .card-art {
        min-height: 0;
    }

    .pdp-related .card-body {
        padding: 0.7rem 0.8rem 0.85rem;
    }

    .pdp-related .card-footer {
        position: static;
        min-height: 0;
        gap: 0.55rem;
        padding-top: 0.35rem;
    }

    .pdp-related .card-desc {
        min-height: 0;
    }

    .pdp-related .card-desc.is-empty {
        display: none;
    }

    .pdp-related .card-actions {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

.pincode-label-short {
    display: none;
}

.steps {
    display: grid;
    gap: var(--s5);
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 760px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--s6);
        position: relative;
        padding-top: var(--s4);
    }

    .steps::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--ink);
    }
}

.steps li {
    counter-increment: step;
    padding-top: var(--s4);
    border-top: 2px solid var(--ink);
}

@media (min-width: 760px) {
    .steps li {
        border-top: none;
        padding-top: 0;
    }
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 620, 'SOFT' 0, 'WONK' 0;
    letter-spacing: 0.08em;
    color: var(--clay-deep);
    margin-bottom: 0.5rem;
}

.steps h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-variation-settings: 'opsz' 30, 'wght' 580, 'SOFT' 26, 'WONK' 1;
    letter-spacing: -0.014em;
    margin: 0 0 0.4rem;
}

.steps p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--ink-2);
    line-height: 1.55;
}

.steps a {
    color: var(--clay-deep);
}

/* WhatsApp band ------------------------------------------------------- */

.wa-band {
    background: var(--sage-deep);
    color: #EDF2EE;
}

.wa-band .display-l {
    color: #fff;
}

.wa-band p {
    color: #D3E0D8;
    margin: var(--s3) 0 0;
    max-width: 44ch;
}

.wa-band .btn-wa {
    --btn-bg: rgba(255, 255, 255, .12);
    --btn-bd: rgba(255, 255, 255, .38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.wa-band .btn-wa:hover {
    --btn-bg: rgba(255, 255, 255, .2);
    --btn-bd: rgba(255, 255, 255, .5);
}

.wa-band-inner {
    display: grid;
    gap: var(--s5);
    align-items: center;
}

@media (min-width: 800px) {
    .wa-band-inner {
        grid-template-columns: 1fr auto;
        gap: var(--s7);
    }
}

.wa-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s5);
    margin: var(--s4) 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    color: #C5D6CB;
}

.wa-numbers b {
    display: block;
    color: #fff;
    font-variation-settings: 'opsz' 14, 'wght' 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

.wa-numbers a {
    color: #fff;
    text-decoration: none;
}

.wa-numbers a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------ page head */

.page-head {
    padding-block: var(--s5) var(--s4);
}

.page-head .display-m {
    margin-top: 0.5rem;
}

.page-head .lede {
    margin-top: var(--s3);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: var(--s4) 0 0;
    margin: 0;
    list-style: none;
    font-size: 0.75rem;
    color: var(--ink-3);
}

.crumbs a {
    color: var(--ink-3);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--clay-deep);
    text-decoration: underline;
}

.crumbs li + li::before {
    content: '/';
    margin-right: 0.4rem;
    color: var(--rule-strong);
}

.crumbs li {
    display: flex;
    align-items: center;
}

.result-count {
    font-size: 0.8125rem;
    color: var(--ink-3);
    margin: 0 0 var(--s4);
}

/* ------------------------------------------------------------------ PDP */

.pdp-page {
    position: relative;
    /* Leftover aliases from earlier polish passes — keep reviews/stars working
       even if a rule still names the old tokens. */
    --line: var(--rule);
    --radius-sm: var(--r-sm);
}

.pdp-page .crumbs {
    margin-bottom: var(--s3);
}

.pdp {
    display: grid;
    gap: var(--s5);
    padding-bottom: var(--s6);
    position: relative;
    isolation: isolate;
}

.pdp-gallery,
.pdp-about,
.pdp-buy,
.pdp-reviews {
    min-width: 0;
}

.pdp-buy {
    position: static;
}

.pdp-about .eyebrow,
.pdp-reviews .eyebrow {
    color: var(--accent-deep);
}

.pdp-about-body {
    margin-top: var(--s3);
    padding-left: var(--s4);
    border-left: 2px solid color-mix(in srgb, var(--accent) 55%, var(--rule-strong));
}

.pdp-about .prose {
    font-size: 1.03125rem;
    line-height: 1.72;
}

@media (min-width: 900px) {
    .wrap.pdp-page {
        max-width: min(var(--wrap), 1280px);
        padding-bottom: 0;
    }

    .pdp-page .crumbs {
        margin-bottom: var(--s3);
    }

    .pdp {
        /* Track mins keep the abs-positioned figure from collapsing.
           Gallery + about stack in the left column; buy spans both rows. */
        grid-template-columns: minmax(280px, 520px) minmax(320px, 420px);
        grid-template-areas:
            "gallery buy"
            "reviews reviews";
        justify-content: center;
        gap: var(--s5) var(--s6);
        align-items: start;
        padding-bottom: var(--s3);
    }

    .pdp:has(.pdp-about) {
        grid-template-areas:
            "gallery buy"
            "about buy"
            "reviews reviews";
    }

    .pdp:has(.pdp-thumbs) {
        grid-template-columns: minmax(320px, calc(520px + 68px + var(--s3))) minmax(320px, 420px);
    }

    .pdp-gallery {
        grid-area: gallery;
        display: grid;
        grid-template-columns: 68px minmax(0, 1fr);
        grid-template-rows: auto;
        gap: var(--s3);
        align-items: start;
        width: 100%;
        justify-self: stretch;
    }

    .pdp-gallery:not(:has(.pdp-thumbs)) {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdp-figure {
        grid-column: 2;
        grid-row: 1;
        aspect-ratio: 1;
        width: 100%;
        max-width: 520px;
        max-height: 520px;
        height: auto;
        border-radius: calc(var(--r-xl) + 2px);
        box-shadow:
            inset 0 0 0 1px rgba(45, 41, 38, .06),
            var(--lift-1);
    }

    .pdp-gallery:not(:has(.pdp-thumbs)) .pdp-figure {
        grid-column: 1;
    }

    .pdp-thumbs {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        margin-top: 0;
        max-height: 520px;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 0;
        scrollbar-width: thin;
    }

    .pdp-thumb {
        width: 64px;
        height: 64px;
    }

    .pdp-buy {
        grid-area: buy;
        align-self: start;
        position: static;
        padding: var(--s5);
        background: var(--paper-2);
        border: 1px solid var(--rule);
        border-radius: calc(var(--r-xl) + 2px);
        box-shadow: var(--lift-1);
    }

    .pdp-about {
        grid-area: about;
        margin: 0;
        padding: var(--s5);
        background: var(--paper-2);
        border: 1px solid var(--rule);
        border-radius: calc(var(--r-xl) + 2px);
        box-shadow: var(--lift-1);
        overflow: hidden;
    }

    .pdp-about .eyebrow {
        margin-bottom: 0;
    }

    .pdp-about-body {
        margin-top: var(--s3);
        padding: 0.1rem 0 0 var(--s4);
        border-left-width: 2px;
    }

    .pdp-about .prose {
        font-size: 1.125rem;
        line-height: 1.78;
        max-width: none;
        color: var(--ink-2);
    }
}

.pdp-figure {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--accent-tint);
    box-shadow: inset 0 0 0 1px rgba(45, 41, 38, .07);
}

.pdp-figure > img,
.pdp-figure > svg,
.pdp-video-poster,
.pdp-video-poster > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-figure > svg {
    object-fit: contain;
}

.pdp-video-poster {
    display: grid;
    place-items: center;
    background: var(--accent-tint);
}

.pdp-video-poster > img {
    object-fit: cover;
}

.pdp-play-cue {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(24, 21, 18, 0.28);
    pointer-events: none;
}

.pdp-play-cue svg {
    width: 56px;
    height: 56px;
    padding: 14px;
    border-radius: 50%;
    background: rgba(251, 249, 246, 0.92);
    color: var(--ink);
    box-shadow: var(--lift-2);
}

.pdp-figure--video .pdp-zoom {
    cursor: pointer;
}

/* The zoom affordance is a transparent sheet over the frame rather than a
   wrapper around the image, so the `.pdp-figure > img|svg` sizing above — and
   the mobile height cap below it — keep working untouched. */
.pdp-zoom {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    text-decoration: none;
    cursor: zoom-in;
}

.pdp-zoom-cue {
    position: absolute;
    top: var(--s3);
    right: var(--s3);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(251, 249, 246, .93);
    color: var(--ink);
    box-shadow: var(--lift-2);
    opacity: 0;
    transform: scale(.88);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.pdp-figure:hover .pdp-zoom-cue,
.pdp-zoom:focus-visible .pdp-zoom-cue {
    opacity: 1;
    transform: none;
}

/* Touch has no hover to reveal the cue with, so it simply stays out. */
@media (hover: none) {
    .pdp-zoom {
        cursor: default;
    }

    .pdp-zoom-cue {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 899px) {
    .pdp-page .crumbs {
        padding-top: var(--s2);
        font-size: 0.6875rem;
    }

    .pdp {
        gap: var(--s3);
        padding-bottom: var(--s5);
    }

    .pdp-figure {
        aspect-ratio: auto;
        height: min(42vh, 42dvh);
        max-height: min(42vh, 42dvh);
    }

    .pdp-figure > img {
        object-fit: cover;
    }

    .art-note {
        left: var(--s2);
        bottom: var(--s2);
        padding: 0.2rem 0.45rem;
        font-size: 0.5625rem;
        letter-spacing: 0.06em;
    }

    .pdp-buy .display-m {
        font-size: clamp(1.2rem, 4.8vw, 1.45rem);
        line-height: 1.1;
        margin-top: 0.2rem;
    }

    .pdp-buy .display-m::after {
        width: 2.75rem;
        margin-top: 0.4rem;
    }

    .pdp-price {
        font-size: clamp(1.3rem, 4.2vw, 1.5rem);
        margin-top: var(--s2);
    }

    .pdp-buy .field-variants,
    .pdp-buy .field-qty {
        margin-top: var(--s2);
    }

    .pdp-buy .field-qty > .field-label {
        margin-bottom: 0.3rem;
        font-size: 0.6875rem;
        letter-spacing: 0.1em;
    }

    .pdp-buy .field-qty .stepper button,
    .pdp-buy .field-qty .stepper input {
        width: 40px;
        height: 40px;
    }

    .pdp-buy .field-qty .stepper input {
        width: 44px;
        font-size: 0.8125rem;
    }

    .pdp-buy .buy-actions {
        margin-top: var(--s3);
        gap: var(--s2);
    }

    .pdp-buy .buy-actions .btn-row .btn {
        min-height: 44px;
        padding: 0.5rem 0.65rem;
        font-size: 0.8125rem;
    }

    .pdp-buy .pincode-check,
    .pdp-buy .pdp-meta,
    .pdp-buy .assurances--compact {
        margin-top: var(--s3);
    }

    .pdp-buy .pincode-check {
        padding: var(--s3);
    }

    .pdp-buy .pincode-check > .field-label {
        margin-bottom: 0.5rem;
    }

    .pdp-buy .pickup-hint {
        margin-top: 0.65rem;
    }

    .pdp-about {
        padding-top: var(--s2);
    }

    .pdp-about-body {
        margin-top: var(--s3);
        padding-left: var(--s3);
    }

    .pdp-about .prose {
        font-size: 0.96875rem;
        line-height: 1.68;
    }

    .pdp-reviews {
        margin-top: var(--s4);
        padding: var(--s4);
    }

    .pdp-reviews-lede {
        font-size: 1.05rem;
        max-width: 28ch;
    }

    .review-form-kicker {
        margin-bottom: var(--s2);
    }
}

/* Says out loud that the artwork is generated, so a mark never reads as a
   broken image. */
.art-note {
    position: absolute;
    left: var(--s4);
    bottom: var(--s4);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--paper-2) 90%, transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-variation-settings: 'opsz' 11, 'wght' 620;
    color: var(--ink-2);
}

.pdp-thumbs {
    display: flex;
    gap: var(--s2);
    margin-top: var(--s3);
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.pdp-thumb {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    padding: 0;
    border: 1.5px solid var(--rule);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--paper-2);
    cursor: pointer;
}

.pdp-thumb.is-active {
    border-color: var(--ink);
}

.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-thumb--video {
    position: relative;
}

.pdp-thumb-video-label {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.pdp-thumb-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(24, 21, 18, 0.28);
    pointer-events: none;
}

/* ------------------------------------------------------- image lightbox */

/* Teleported to <body>, so it stacks over the sticky header (200) and the
   header overlays (500/600) instead of inside the PDP's own context. */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 700;
    visibility: hidden;
    opacity: 0;
    background: rgba(24, 21, 18, .9);
    transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
}

.lightbox.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--t) var(--ease);
}

.lightbox-dialog {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: calc(env(safe-area-inset-top) + var(--s7)) var(--s5)
             calc(env(safe-area-inset-bottom) + var(--s7));
    transform: scale(.96);
    transition: transform var(--t-slow) var(--ease);
}

.lightbox.is-open .lightbox-dialog {
    transform: none;
}

.lightbox-stage {
    position: relative;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    cursor: zoom-out;
}

.lightbox-img {
    max-width: min(100%, 1100px);
    max-height: 100%;
    border-radius: var(--r-lg);
    /* Leaves the two-finger gesture to the browser so a photo pinches open. */
    touch-action: pinch-zoom;
}

.lightbox-stage--video {
    width: min(100%, 960px);
    cursor: default;
}

.lightbox-video {
    position: relative;
    width: min(100vw - 2rem, 960px);
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #000;
}

.lightbox-video-el,
.lightbox-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.lightbox--video .lightbox-stage {
    cursor: default;
}

/* A generated mark is vector and has no native size to be limited by, so it
   simply takes the room the viewport offers. */
.lightbox-stage--art {
    width: min(80vmin, 820px);
    height: min(80vmin, 820px);
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--accent-tint);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(251, 249, 246, .16);
    color: var(--paper);
    cursor: pointer;
    transition: background var(--t-fast) var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(251, 249, 246, .3);
}

.lightbox-close {
    top: calc(env(safe-area-inset-top) + var(--s3));
    right: var(--s3);
}

.lightbox-nav {
    top: 50%;
    margin-top: -22px;
}

.lightbox-prev {
    left: var(--s3);
}

.lightbox-next {
    right: var(--s3);
}

.lightbox-prev svg {
    transform: rotate(180deg);
}

.lightbox-count {
    position: absolute;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom) + var(--s3));
    margin: 0;
    padding: 0.2rem 0.7rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(251, 249, 246, .16);
    color: var(--paper);
    font-size: 0.8125rem;
}

.lightbox :focus-visible {
    outline-color: var(--paper);
}

.pdp-price {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-variation-settings: 'opsz' 48, 'wght' 600, 'SOFT' 20, 'WONK' 0;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: var(--s2) 0 0;
}

/* Closes the product-info block and opens the purchase controls. The title
   above already carries the short accent rule, so this one runs full width
   and stays faint rather than competing with it. */
.pdp-buy .pdp-price::after {
    content: '';
    display: block;
    height: 1px;
    margin-top: var(--s3);
    background: var(--rule);
}

.pdp-buy .pdp-head {
    margin-bottom: var(--s1);
}

.pdp-title {
    min-width: 0;
}

.pdp-buy .display-m {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.pdp-buy .display-m::after {
    content: '';
    display: block;
    width: 3.25rem;
    height: 2px;
    margin-top: 0.5rem;
    background: color-mix(in srgb, var(--accent, var(--clay)) 72%, var(--rule-strong));
    border-radius: 1px;
}

.pdp-buy .field-variants {
    margin-top: var(--s3);
}

.pdp-buy .field-qty {
    margin-top: var(--s3);
}

.pdp-buy .field-qty > .field-label {
    margin-bottom: 0.45rem;
}

.pdp-buy .field-qty .stepper button,
.pdp-buy .field-qty .stepper input {
    width: 44px;
    height: 44px;
}

.pdp-buy .field-qty .stepper input {
    width: 48px;
    font-size: 0.875rem;
}

.pdp-buy .buy-actions {
    margin-top: var(--s3);
    margin-bottom: 0;
}

.pdp-buy .buy-actions .btn-row .btn {
    padding-inline: 0.85rem;
}

.pdp-buy .pincode-check,
.pdp-buy .pdp-meta,
.pdp-buy .assurances--compact {
    margin-top: var(--s3);
}

.pdp-price--por small {
    margin-top: 0.45rem;
    line-height: 1.4;
}

@media (min-width: 900px) {
    .pdp-buy .pdp-head {
        margin-bottom: 0;
    }

    .pdp-buy .pdp-title {
        margin-top: var(--s3);
    }

    .pdp-buy .pdp-title::before {
        content: '';
        display: block;
        width: clamp(3.5rem, 36%, 8rem);
        height: 2px;
        margin-bottom: 0.85rem;
        background: color-mix(in srgb, var(--accent, var(--clay)) 78%, var(--rule-strong));
        border-radius: 1px;
    }

    .pdp-buy .display-m {
        font-size: clamp(1.45rem, 2vw, 1.85rem);
        line-height: 1.14;
        margin-top: 0;
        font-variation-settings: 'opsz' 64, 'wght' 580, 'SOFT' 32, 'WONK' 1;
    }

    .pdp-buy .display-m::after {
        display: none;
    }

    .pdp-buy .pdp-price {
        font-size: clamp(1.55rem, 2.1vw, 1.85rem);
        margin-top: var(--s4);
    }

    .pdp-buy .pdp-price::after {
        margin-top: var(--s4);
        background: var(--rule);
    }

    .pdp-buy .field {
        margin-top: var(--s3);
    }

    .pdp-buy .field-variants,
    .pdp-buy .field-qty {
        margin-top: var(--s3);
    }

    .pdp-buy .field-qty > .field-label {
        margin-bottom: 0.4rem;
    }

    .pdp-buy .buy-actions {
        margin-top: var(--s4);
        gap: var(--s3);
    }

    .pdp-buy .buy-actions .btn-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--s2);
    }

    .pdp-buy .buy-actions .btn {
        min-height: 48px;
        letter-spacing: 0.01em;
    }

    .pdp-buy .buy-actions .btn-row .btn {
        min-height: 48px;
        padding-inline: 1rem;
    }

    .pdp-buy .buy-actions > .btn-ghost {
        background: var(--paper);
    }

    .pdp-buy .pincode-check,
    .pdp-buy .pdp-meta,
    .pdp-buy .assurances--compact {
        margin-top: var(--s3);
    }

    .pdp-buy .option,
    .pdp-buy .option-card {
        min-height: 44px;
        padding: 0.55rem 0.8rem;
        font-size: 0.8125rem;
    }

    .pdp-buy .option-card {
        min-height: 4rem;
    }

    .pdp-buy .options--cards {
        grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    }

    .pdp-buy .field-qty .stepper button,
    .pdp-buy .field-qty .stepper input {
        width: 42px;
        height: 42px;
    }

    .pdp-buy .field-qty .stepper input {
        width: 46px;
    }
}

.pdp-price small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-variation-settings: 'opsz' 12, 'wght' 500;
    letter-spacing: 0;
    color: var(--ink-3);
    margin-top: 0.5rem;
}

.field {
    margin-top: var(--s5);
}

.field > .field-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s3);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-variation-settings: 'opsz' 12, 'wght' 620;
    color: var(--ink-3);
    margin-bottom: 0.65rem;
}

.field-label .field-value {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8125rem;
    color: var(--ink);
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
}

.options--cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
    gap: var(--s2);
}

.option {
    min-height: 48px;
    padding: 0.6rem 1.05rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--r);
    background: var(--paper-2);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 550;
    color: var(--ink);
    cursor: pointer;
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.2rem;
    min-height: 4.25rem;
    padding: 0.65rem 0.85rem;
    text-align: left;
}

.option-name {
    font-size: 0.9375rem;
    font-variation-settings: 'opsz' 15, 'wght' 620;
    line-height: 1.25;
    color: var(--ink);
}

.option-price {
    font-size: 0.75rem;
    font-variation-settings: 'opsz' 12, 'wght' 520;
    letter-spacing: 0;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.field-hint {
    margin: -0.35rem 0 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ink-3);
}

.option:hover {
    border-color: var(--ink-3);
}

.option-card:hover .option-price {
    color: var(--ink-2);
}

.option[aria-pressed='true'],
.option.is-selected {
    border-color: var(--accent, var(--clay));
    background: color-mix(in srgb, var(--accent-tint, var(--paper-3)) 72%, var(--paper-2));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--clay)) 55%, transparent);
    color: var(--ink);
}

.option[aria-pressed='true'] .option-name,
.option.is-selected .option-name {
    color: var(--ink);
}

.option[aria-pressed='true'] .option-price,
.option.is-selected .option-price {
    color: var(--ink-2);
}

.option[aria-pressed='true']:focus-visible,
.option.is-selected:focus-visible {
    outline: 2px solid var(--accent, var(--clay));
    outline-offset: 2px;
}

.stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--r);
    background: var(--paper-2);
    overflow: hidden;
}

.stepper button {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    font-size: 1.15rem;
    color: var(--ink);
    cursor: pointer;
}

.stepper button:hover {
    background: var(--paper-3);
}

.stepper input,
.stepper .stepper-value {
    width: 52px;
    height: 48px;
    border: none;
    border-inline: 1.5px solid var(--rule);
    background: transparent;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-variation-settings: 'opsz' 15, 'wght' 600;
    color: var(--ink);
    -moz-appearance: textfield;
    appearance: textfield;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.buy-actions {
    display: grid;
    gap: var(--s2);
    margin-top: var(--s5);
}

@media (min-width: 900px) {
    .pdp-buy .buy-actions {
        max-width: 100%;
    }

    .pdp-buy .buy-actions .btn-block {
        width: 100%;
    }
}

.pdp-details {
    margin-top: 0;
    padding: var(--s3);
    background: var(--paper);
    border-radius: var(--r);
    box-shadow: inset 0 0 0 1px var(--rule);
}

.pdp-meta {
    margin-top: var(--s3);
    border-radius: var(--r);
    background: var(--paper-3);
    box-shadow: inset 0 0 0 1px var(--rule);
}

.pdp-meta > summary {
    padding: 0.65rem var(--s3);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-variation-settings: 'opsz' 12, 'wght' 620;
    color: var(--ink-3);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.pdp-meta > summary::-webkit-details-marker {
    display: none;
}

.pdp-meta > summary::after {
    content: '+';
    float: right;
    font-size: 1rem;
    line-height: 1;
    color: var(--ink-3);
}

.pdp-meta[open] > summary::after {
    content: '−';
}

.pdp-meta[open] > summary {
    border-bottom: 1px solid var(--rule);
}

.pdp-meta .pdp-details {
    margin: 0;
    border-radius: 0 0 var(--r) var(--r);
    box-shadow: none;
    background: transparent;
}

@media (min-width: 900px) {
    .pdp-details {
        background: transparent;
        padding: var(--s2) 0 0;
        box-shadow: none;
    }

    .pdp-meta {
        background: transparent;
        box-shadow: none;
        margin-top: var(--s2);
    }

    .pdp-meta > summary {
        display: none;
    }

    .pdp-meta .pdp-details {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.35rem;
        padding: var(--s2) 0 0;
        border-top: 1px solid var(--rule);
        border-radius: 0;
    }

    .pdp-meta .spec-list {
        margin: 0;
        max-width: none;
        gap: 0;
    }

    .pdp-meta .spec-list div,
    .pdp-meta .pdp-details div {
        display: inline-flex;
        flex-direction: row;
        align-items: baseline;
        gap: 0.25rem;
        padding: 0.2rem 0.55rem;
        background: var(--paper);
        border: 1px solid var(--rule);
        border-radius: 999px;
    }

    .pdp-meta .spec-list dd {
        text-align: left;
    }

    .pdp-meta:not([open]) .pdp-details {
        display: flex !important;
    }

    .pdp-details div {
        padding: 0;
        border: none;
    }

    .pdp-details dt {
        font-size: 0.5625rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--ink-3);
    }

    .pdp-details dt::after {
        content: ':';
    }

    .pdp-details dd {
        font-size: 0.75rem;
        color: var(--ink-2);
    }
}

.pdp-details div:first-child {
    padding-top: 0;
}

.pdp-details div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.assurances {
    display: grid;
    gap: 0.55rem;
    margin: var(--s3) 0 0;
    padding: var(--s3) 0 0;
    border-top: 1px solid var(--rule);
    list-style: none;
    font-size: 0.8125rem;
    color: var(--ink-2);
}

@media (min-width: 900px) {
    .assurances--compact {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.35rem 0.75rem;
        padding-top: var(--s3);
        margin-top: var(--s3);
        font-size: 0.6875rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        font-variation-settings: 'opsz' 11, 'wght' 600;
        color: var(--ink-3);
    }

    .assurances--compact li {
        flex: 1 1 auto;
        justify-content: center;
        gap: 0.35rem;
    }

    .assurances--compact svg {
        width: 14px;
        height: 14px;
        margin-top: 0;
    }
}

.assurances li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.assurances svg {
    width: 16px;
    height: 16px;
    margin-top: 0.15rem;
    flex-shrink: 0;
    color: var(--sage-deep);
}

.prose {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--ink-2);
    max-width: 62ch;
}

.spec-list {
    display: grid;
    gap: 0;
    margin: var(--s4) 0 0;
    max-width: 62ch;
}

.spec-list div {
    display: flex;
    justify-content: space-between;
    gap: var(--s4);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.8125rem;
}

.spec-list dt {
    color: var(--ink-3);
}

.spec-list dd {
    margin: 0;
    text-align: right;
    font-variation-settings: 'opsz' 14, 'wght' 550;
}

/* Thumb-reachable buy bar on small screens. */
.buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--rule);
    transition: transform var(--t) var(--ease), opacity var(--t) var(--ease), visibility var(--t) var(--ease);
}

.buybar--hidden {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.buybar-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-variation-settings: 'opsz' 24, 'wght' 620, 'SOFT' 0, 'WONK' 0;
    line-height: 1.1;
    white-space: nowrap;
}

.buybar-price small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-variation-settings: 'opsz' 10, 'wght' 600;
}

.buybar form {
    flex: 1;
    display: flex;
}

@media (min-width: 900px) {
    .buybar {
        display: none;
    }
}

/* ------------------------------------------------------------------ cart */

.cart-layout {
    display: grid;
    gap: var(--s5);
    padding-bottom: var(--s7);
}

@media (min-width: 900px) {
    .cart-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: var(--s7);
        align-items: start;
    }

    .cart-summary {
        position: sticky;
        top: calc(var(--header-h) + var(--s5));
    }
}

.cart-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}

.cart-line {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: var(--s3) var(--s4);
    padding: var(--s4) 0;
    border-bottom: 1px solid var(--rule);
}

.cart-line-art {
    width: 72px;
    height: 72px;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--paper-3);
}

.cart-line-art img,
.cart-line-art svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-line-main h3 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-variation-settings: 'opsz' 15, 'wght' 600;
    line-height: 1.35;
    margin: 0 0 0.2rem;
}

.cart-line-main h3 a {
    color: var(--ink);
    text-decoration: none;
}

.cart-line-main h3 a:hover {
    text-decoration: underline;
}

.cart-line-controls {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    margin-top: 0.25rem;
}

@media (min-width: 560px) {
    .cart-line {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        align-items: start;
    }

    .cart-line-controls {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-end;
        margin-top: 0;
    }
}

.cart-line-price {
    font-size: 0.9375rem;
    font-variation-settings: 'opsz' 15, 'wght' 650;
    white-space: nowrap;
}

.link-quiet {
    background: none;
    border: none;
    padding: 0.5rem 0;
    min-height: 44px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--ink-3);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.link-quiet:hover {
    color: var(--danger);
}

.cart-summary {
    padding: var(--s5);
    border-radius: var(--r-lg);
    background: var(--paper-2);
    box-shadow: inset 0 0 0 1px var(--rule);
}

.sum-row {
    display: flex;
    justify-content: space-between;
    gap: var(--s4);
    font-size: 0.9375rem;
    padding: 0.35rem 0;
}

.sum-row.is-muted {
    color: var(--ink-3);
    font-size: 0.8125rem;
}

.sum-row.is-total {
    margin-top: var(--s3);
    padding-top: var(--s3);
    border-top: 1px solid var(--rule);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-variation-settings: 'opsz' 30, 'wght' 600, 'SOFT' 0, 'WONK' 0;
}

.cart-note {
    margin: var(--s4) 0 var(--s4);
    padding: var(--s3);
    border-radius: var(--r);
    background: var(--gold-tint);
    font-size: 0.75rem;
    line-height: 1.5;
    color: #5F4708;
}

/* Cart drawer lines --------------------------------------------------- */

.mini-line {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: var(--s3);
    align-items: center;
    padding: var(--s3) 0;
    border-bottom: 1px solid var(--rule);
}

.mini-line-art {
    width: 56px;
    height: 56px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--paper-3);
}

.mini-line-art img,
.mini-line-art svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-line h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 600;
    line-height: 1.3;
    margin: 0 0 0.15rem;
}

.mini-line h4 a {
    color: var(--ink);
    text-decoration: none;
}

.mini-line-price {
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 650;
    white-space: nowrap;
}

/* ----------------------------------------------------------- empty state */

.empty {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: var(--s4);
    padding: clamp(2.5rem, 9vw, 4.5rem) var(--s4);
    max-width: 44ch;
    margin-inline: auto;
}

.empty p {
    margin: 0;
    color: var(--ink-2);
}

.empty .btn-row {
    justify-content: center;
}

/* The same nest that carries the 404 pages, so an empty result never looks
   like a failure — it looks like part of the shop. */
.nest-mark {
    position: relative;
    width: 104px;
    height: 104px;
}

.nest-mark i {
    position: absolute;
    inset: 0;
    border: 2.5px solid var(--clay);
    border-radius: 50%;
    opacity: 0.32;
}

.nest-mark i:nth-child(2) {
    inset: 8%;
    border-color: var(--sage);
    transform: rotate(14deg);
}

.nest-mark i:nth-child(3) {
    inset: 16%;
    border-color: var(--gold);
    opacity: 0.5;
    transform: rotate(-9deg);
}

.nest-mark b {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 41px;
    transform: translate(-50%, -55%);
    background: linear-gradient(145deg, #fff, var(--clay-tint));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: inset -2px -3px 6px rgba(200, 85, 61, .15);
}

.nest-mark.is-small {
    width: 72px;
    height: 72px;
}

.nest-mark.is-small b {
    width: 22px;
    height: 28px;
}

/* ----------------------------------------------------------- pagination */

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: var(--s6);
    padding: 0;
    list-style: none;
}

.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 0.85rem;
    border-radius: var(--r);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 550;
    color: var(--ink);
    text-decoration: none;
}

.pager a:hover {
    background: var(--paper-3);
}

.pager [aria-current='page'] {
    background: var(--ink);
    color: var(--paper);
    font-variation-settings: 'opsz' 14, 'wght' 650;
}

.pager .is-gap {
    min-width: 24px;
    color: var(--ink-3);
}

/* ------------------------------------------------------------- no-JS bar */

.search-page-form {
    display: flex;
    gap: var(--s2);
    margin: var(--s4) 0 var(--s5);
    max-width: 560px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 1.1rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: 999px;
    background: var(--paper-2);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
}

.search-page-form input:focus {
    outline: none;
    border-color: var(--ink);
}

/* --------------------------------------------------------------- toasts */

.toast-stack {
    position: fixed;
    left: 50%;
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    z-index: 700;
    transform: translateX(-50%);
    display: grid;
    gap: var(--s2);
    width: max-content;
    max-width: calc(100vw - 2rem);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 550;
    box-shadow: var(--lift-3);
    animation: toast-in 260ms var(--ease);
}

.toast.is-error {
    background: var(--danger);
    color: #fff;
}

.toast svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* --------------------------------------------------------------- footer */

.site-footer {
    margin-top: var(--s7);
    background: var(--ink);
    color: #D8D1C7;
    padding-block: var(--s7) var(--s5);
}

.footer-grid {
    display: grid;
    gap: var(--s6);
}

@media (min-width: 760px) {
    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
        gap: var(--s5);
    }
}

.footer-brand img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin-bottom: var(--s3);
}

.footer-brand p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #A9A196;
    max-width: 34ch;
}

.footer-tagline {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-variation-settings: 'opsz' 22, 'wght' 560, 'SOFT' 30, 'WONK' 1;
    color: var(--gold);
    letter-spacing: 0.02em;
}

.site-footer h2 {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-variation-settings: 'opsz' 11, 'wght' 620;
    color: #A69D91;
    margin: 0 0 var(--s3);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #D8D1C7;
    font-size: 0.875rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-contact {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #A9A196;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-contact strong {
    display: block;
    color: #fff;
    font-variation-settings: 'opsz' 14, 'wght' 600;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s3);
    margin-top: var(--s6);
    padding-top: var(--s4);
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 0.75rem;
    color: #A69D91;
}

/* -------------------------------------------------------------- wa fab */

.wa-fab {
    position: fixed;
    right: var(--s4);
    bottom: calc(var(--s4) + 48px + var(--s3) + env(safe-area-inset-bottom));
    z-index: 141;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    box-shadow: var(--lift-2);
    transition: transform var(--t) var(--ease);
}

.wa-fab svg {
    width: 26px;
    height: 26px;
}

.wa-fab:hover {
    transform: scale(1.05);
    color: #fff;
}

/* The product page owns the bottom of the screen on mobile. */
.has-buybar .wa-fab {
    display: none;
}

/* ----------------------------------------------------------- AI chat */

.ai-chat-fab {
    position: fixed;
    right: var(--s4);
    left: auto;
    bottom: calc(var(--s4) + env(safe-area-inset-bottom));
    z-index: 140;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0 1rem 0 0.85rem;
    border: none;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--lift-2);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 600;
    cursor: pointer;
    transition: transform var(--t) var(--ease), bottom var(--t) var(--ease);
}

.ai-chat-fab svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ai-chat-fab:hover {
    transform: scale(1.03);
}

.ai-chat-fab-label {
    display: none;
}

.ai-chat-sheet {
    position: fixed;
    inset: 0;
    z-index: 650;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
}

.ai-chat-sheet.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--t) var(--ease);
}

.ai-chat-sheet .overlay-scrim {
    opacity: 0;
    transition: opacity var(--t) var(--ease);
}

.ai-chat-sheet.is-open .overlay-scrim {
    opacity: 1;
}

.ai-chat-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    max-height: min(78dvh, 560px);
    background: var(--paper);
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: var(--lift-3);
    transform: translateY(100%);
    transition: transform var(--t-slow) var(--ease);
}

.ai-chat-sheet.is-open .ai-chat-panel {
    transform: none;
}

.ai-chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s3);
    padding: 1rem var(--gutter) 0.75rem;
    border-bottom: 1px solid var(--rule);
}

.ai-chat-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.ai-chat-head p {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: var(--ink-3);
}

.ai-chat-body {
    flex: 1;
    overflow: auto;
    padding: 0.85rem var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ai-chat-turn {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-width: 96%;
}

.ai-chat-turn-user {
    align-self: flex-end;
    align-items: flex-end;
}

.ai-chat-turn-bot {
    align-self: flex-start;
    align-items: flex-start;
}

.ai-chat-msg {
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 1rem;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.ai-chat-msg-bot {
    align-self: flex-start;
    background: var(--paper-2);
    color: var(--ink);
}

.ai-chat-msg-user {
    align-self: flex-end;
    background: var(--ink);
    color: #fff;
}

.ai-chat-typing {
    opacity: 0.75;
    font-style: italic;
}

.ai-chat-dots::after {
    display: inline-block;
    width: 1.25em;
    text-align: left;
    animation: ai-chat-dots 1.4s steps(4, end) infinite;
    content: '';
}

@keyframes ai-chat-dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75%, 100% { content: '...'; }
}

.ai-chat-msg-bot a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
    text-underline-offset: 2px;
}

.ai-chat-msg-bot a:hover {
    text-decoration-color: currentColor;
}

.ai-chat-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.15rem 0 0.35rem;
}

.ai-chat-chip {
    padding: 0.35rem 0.75rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-variation-settings: 'opsz' 14, 'wght' 500;
    line-height: 1.3;
    cursor: pointer;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}

.ai-chat-chip:hover {
    background: var(--paper-2);
    border-color: var(--ink-3);
}

.ai-chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 0.1rem;
}

.ai-chat-action-btn {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.3rem 0.75rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-variation-settings: 'opsz' 14, 'wght' 520;
    line-height: 1.25;
    text-decoration: none;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}

.ai-chat-action-btn:hover {
    background: var(--paper-2);
    border-color: var(--ink-3);
    color: var(--ink);
}

.ai-chat-foot {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem var(--gutter) calc(0.85rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rule);
    background: var(--paper);
}

.ai-chat-foot input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 0.85rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--paper-2);
    font-size: 1rem;
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.ai-chat-foot input:focus {
    outline: none;
    border-color: var(--ink-3);
    background: var(--paper);
}

.ai-chat-foot .btn {
    flex-shrink: 0;
    min-height: 44px;
}

@media (max-width: 899px) {
    body.has-buybar:not(.buybar-anchor-visible) .ai-chat-fab {
        bottom: calc(var(--buybar-height, 76px) + var(--s3) + env(safe-area-inset-bottom));
        right: var(--s4);
        left: auto;
    }
}

@media (min-width: 560px) {
    .ai-chat-fab-label {
        display: inline;
    }
}

@media (min-width: 900px) {
    body.has-buybar .ai-chat-fab {
        bottom: calc(var(--s4) + env(safe-area-inset-bottom));
    }

    .ai-chat-panel {
        right: var(--s4);
        left: auto;
        width: min(380px, calc(100vw - 2rem));
        max-height: min(70dvh, 520px);
        border-radius: 1.25rem;
        margin-bottom: calc(7rem + env(safe-area-inset-bottom));
    }
}

@media (min-width: 900px) {
    .has-buybar .wa-fab {
        display: inline-flex;
        bottom: calc(var(--s4) + 48px + var(--s3) + env(safe-area-inset-bottom));
    }
}

/* --------------------------------------------------------- breakpoints */

@media (min-width: 560px) {
    .search-shortcuts {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 760px) {
    .brand-text {
        display: flex;
    }
}

@media (min-width: 900px) {
    .header-nav {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .search-trigger-wide {
        display: inline-flex;
    }

    .search-trigger-icon {
        display: none;
    }

    /* Desktop search is a command palette, not a full-screen takeover. */
    .search-overlay::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(30, 26, 22, .4);
    }

    .search-dialog {
        inset: auto;
        top: 9vh;
        left: 50%;
        width: min(680px, calc(100vw - 3rem));
        max-height: min(68vh, 640px);
        transform: translate(-50%, 1rem);
        border-radius: var(--r-xl);
        border: 1px solid var(--rule);
        box-shadow: var(--lift-3);
        overflow: hidden;
    }

    .search-overlay.is-open .search-dialog {
        transform: translate(-50%, 0);
    }

    .search-bar {
        padding: 0.85rem 0.85rem 0.85rem 1.1rem;
        box-shadow: inset 0 -1px 0 var(--rule);
    }

    .search-results {
        padding: var(--s4) var(--s5) var(--s5);
    }

    .search-hints {
        display: flex;
    }

    .search-dismiss {
        display: none;
    }
}

/* ------------------------------------------------ wishlist / pincode / buybar */

.wishlist-btn {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--rule-strong);
    border-radius: 50%;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    color: var(--ink-3);
    cursor: pointer;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}

.wishlist-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
}

.wishlist-btn:hover {
    border-color: var(--clay);
    color: var(--clay-deep);
    background: var(--paper);
}

.wishlist-btn.is-active {
    border-color: color-mix(in srgb, var(--clay-deep) 35%, var(--rule-strong));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    color: var(--clay-deep);
}

.wishlist-btn.is-active svg {
    fill: currentColor;
}

.wishlist-btn-lg {
    position: static;
    flex-shrink: 0;
}

.pdp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
}

.icon-badge {
    position: absolute;
    top: 5px;
    right: 4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sage-deep);
    color: #fff;
    font-size: 0.6875rem;
    font-variation-settings: 'opsz' 11, 'wght' 700;
    border-radius: 999px;
    line-height: 1;
}

.icon-badge.is-empty {
    display: none;
}

.pincode-check {
    padding: var(--s3);
    background: var(--paper-3);
    border-radius: var(--r);
    box-shadow: inset 0 0 0 1px var(--rule);
}

.pincode-check > .field-label {
    margin-bottom: 0.55rem;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
}

@media (min-width: 900px) {
    .pdp-buy .pincode-check {
        padding: var(--s3);
        border-radius: var(--r);
        background: color-mix(in srgb, var(--paper) 70%, var(--paper-3));
        box-shadow: inset 0 0 0 1px var(--rule);
    }

    .pincode-label-long {
        display: none;
    }

    .pincode-label-short {
        display: inline;
    }

    .pincode-check > .field-label {
        margin-bottom: 0.55rem;
    }

    .pickup-hint {
        margin: 0.65rem 0 0;
        font-size: 0.75rem;
    }

    .pickup-hint > summary {
        pointer-events: none;
        cursor: default;
    }

    .pickup-hint > summary::after {
        content: none;
    }

    .pickup-hint .meta {
        display: none;
    }

    .pincode-row input {
        min-height: 40px;
        font-size: 0.875rem;
    }

    .pincode-row .btn-sm {
        min-height: 40px;
        padding-inline: 0.85rem;
    }

    .buy-actions--por {
        margin-top: var(--s4);
    }

    .buy-actions--por .btn-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--s2);
    }

    .buy-actions--por .btn {
        min-height: 44px;
        padding: 0.55rem 0.75rem;
        font-size: 0.8125rem;
    }
}

.pincode-row {
    display: flex;
    gap: var(--s2);
    align-items: stretch;
}

.pincode-row input {
    flex: 1;
    min-height: 48px;
    padding: 0 0.9rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--r);
    background: var(--paper-2);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink);
}

.pincode-row input:focus {
    outline: 2px solid var(--sage-deep);
    outline-offset: 1px;
    border-color: var(--sage-deep);
}

.pincode-result {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ink-2);
}

.pincode-result.is-ok {
    color: var(--sage-deep);
}

.pincode-result.is-error {
    color: var(--clay-deep);
}

/* ----------------------------------------------------------- reviews / pickup */

.pdp-reviews {
    margin-top: var(--s5);
    padding: var(--s5);
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: var(--r-xl);
    box-shadow: var(--lift-1);
}

.pdp-reviews-body {
    display: block;
}

.pdp-reviews-lede {
    margin: 0.55rem 0 0;
    max-width: 28ch;
    font-family: var(--font-display);
    font-size: 1.125rem;
    line-height: 1.4;
    letter-spacing: -0.015em;
    font-variation-settings: 'opsz' 32, 'wght' 520, 'SOFT' 28, 'WONK' 0;
    color: var(--ink);
}

.review-form-kicker {
    margin: 0 0 var(--s3);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-variation-settings: 'opsz' 11, 'wght' 620;
    color: var(--ink-3);
}

@media (min-width: 900px) {
    .pdp-reviews {
        grid-area: reviews;
        margin-top: 0;
        border-radius: calc(var(--r-xl) + 2px);
    }

    .pdp-reviews-head {
        margin-bottom: var(--s3);
    }

    .pdp-reviews-lede {
        font-size: 1.05rem;
        line-height: 1.38;
        max-width: 22ch;
        margin-bottom: var(--s2);
    }

    .pdp-reviews-body {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--s4);
        align-items: start;
    }

    .pdp:not(:has(.pdp-about)) .pdp-reviews .pdp-reviews-body {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
        gap: var(--s4);
    }

    .pdp-reviews-main:empty {
        display: none;
    }

    .pdp-reviews-main:empty + .review-form-wrap {
        grid-column: 1 / -1;
        max-width: none;
    }

    .pdp-reviews.is-empty {
        padding: var(--s5);
    }

    .pdp-reviews.is-empty .pdp-reviews-head {
        margin-bottom: var(--s2);
    }

    .pdp-reviews.is-empty .pdp-reviews-lede {
        max-width: none;
        margin: 0.55rem 0 0;
    }

    .pdp-reviews.is-empty .pdp-reviews-body {
        gap: var(--s3);
    }

    .pdp-reviews.is-empty .review-form-wrap {
        padding-top: var(--s3);
        border-top: 1px solid var(--rule);
    }

    .review-list {
        gap: var(--s3);
        margin-bottom: 0;
    }

    .review-item {
        padding: var(--s3) 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid var(--rule);
        border-radius: 0;
    }

    .review-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .review-form-wrap {
        max-width: none;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .review-form-kicker {
        margin-bottom: var(--s3);
    }

    .review-verify-note {
        margin-bottom: var(--s3);
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .review-form .field-label,
    .review-verify .field-label {
        font-size: 0.6875rem;
        letter-spacing: 0.12em;
        margin-bottom: var(--s2);
    }

    .review-stars-input {
        margin-bottom: var(--s3);
    }

    .review-star-btn {
        font-size: 1.35rem;
    }

    .review-textarea {
        min-height: 5.5rem;
        margin-bottom: var(--s3);
        padding: 0.8rem 0.9rem;
        font-size: 0.9375rem;
        background: var(--paper);
        border: 1.5px solid var(--rule-strong);
        border-radius: var(--r);
    }

    .review-form .btn-sm,
    .review-verify .btn-sm {
        min-height: 42px;
    }
}

.pdp-reviews-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s3);
    margin-bottom: var(--s4);
}

.pdp-reviews-summary {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: var(--ink-2);
}

.pdp-stars {
    display: inline-flex;
    gap: 0.1rem;
    color: var(--rule-strong);
    letter-spacing: -0.05em;
}

.pdp-stars .is-on,
.review-star-btn.is-on {
    color: var(--clay);
}

.pdp-stars--sm {
    font-size: 0.8125rem;
}

.review-list {
    list-style: none;
    margin: 0 0 var(--s4);
    padding: 0;
    display: grid;
    gap: var(--s3);
}

.review-item {
    padding: var(--s3);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
}

.review-item-head {
    display: flex;
    align-items: center;
    gap: var(--s2);
    margin-bottom: 0.45rem;
}

.review-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sage-deep);
}

.review-body {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink);
}

.review-date {
    margin: 0;
    font-size: 0.75rem;
}

.review-form-wrap {
    max-width: 36rem;
}

.review-form-wrap .field-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-variation-settings: 'opsz' 12, 'wght' 620;
    color: var(--ink-3);
    margin: 0 0 var(--s2);
}

.review-verify-note {
    margin: 0 0 var(--s3);
}

.review-form .field-label {
    margin-bottom: var(--s2);
}

.review-stars-input {
    display: flex;
    gap: 0.15rem;
    margin-bottom: var(--s3);
}

.review-star-btn {
    border: 0;
    background: none;
    padding: 0.15rem;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--rule-strong);
    cursor: pointer;
}

.review-star-btn:focus-visible {
    outline: 2px solid var(--sage-deep);
    outline-offset: 2px;
    border-radius: 2px;
}

.review-textarea {
    display: block;
    width: 100%;
    margin-bottom: var(--s3);
    padding: 0.75rem 0.85rem;
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--r);
    resize: vertical;
    min-height: 4.5rem;
}

.review-textarea:focus {
    outline: none;
    border-color: var(--sage-deep);
}

.dev-otp {
    margin-top: 0.5rem;
    color: var(--clay-deep);
}

.pickup-hint {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    color: var(--ink-2);
}

.pickup-hint > summary {
    cursor: pointer;
    list-style: none;
    color: var(--sage-deep);
    font-weight: 500;
}

.pickup-hint > summary::-webkit-details-marker {
    display: none;
}

.pickup-hint > summary::after {
    content: ' ›';
    opacity: 0.6;
}

.pickup-hint[open] > summary::after {
    content: '';
}

.pickup-hint .meta {
    margin: 0.45rem 0 0;
    line-height: 1.45;
}

.cart-pickup-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--ink-2);
}

.buy-actions .btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s2);
}

.buy-action-form {
    margin: 0;
    min-width: 0;
}

.buybar-actions {
    flex: 1;
    display: flex;
    gap: var(--s2);
    min-width: 0;
}

.buybar-form {
    flex: 1;
    margin: 0;
    min-width: 0;
}

.buybar-form .btn {
    width: 100%;
    padding-inline: 0.85rem;
}

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .card-product:hover,
    .cat-tile:hover,
    .hero-nest a:hover,
    .wa-fab:hover {
        transform: none;
    }

    .drawer-panel,
    .search-dialog,
    .lightbox-dialog {
        transform: none !important;
    }

    .pdp-zoom-cue {
        transform: none;
    }
}

.cart-notice {
  margin: 0 0 var(--s-5);
  padding: .75rem 1rem;
  border: 1px solid rgba(158, 74, 58, .3);
  border-left: 3px solid #9E4A3A;
  border-radius: var(--r-s);
  background: rgba(158, 74, 58, .07);
  color: #7C3A2D;
  font-size: var(--fs-s);
}
