/* =============================================================================
   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;
    --ink-muted: var(--ink-3);

    /* 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;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: color-mix(in srgb, var(--ink) 92%, var(--clay) 8%);
    color: #C9C0B4;
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-align: center;
    padding: 0.35rem var(--gutter);
    padding-top: calc(0.35rem + env(safe-area-inset-top, 0px));
}

.announce-text {
    flex: 1 1 auto;
    min-width: 0;
}

.announce-dismiss {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #A69D91;
    cursor: pointer;
    transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.announce-dismiss:hover {
    background: rgba(255, 255, 255, .08);
    color: #EDE7DE;
}

.announce-dismiss svg {
    width: 14px;
    height: 14px;
}

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

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

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

.nav-shop {
    position: relative;
}

.nav-shop > summary {
    list-style: none;
    position: relative;
    padding: 0.5rem 0.85rem 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);
    cursor: pointer;
    user-select: none;
}

.nav-shop > summary::-webkit-details-marker {
    display: none;
}

.nav-shop > summary::after {
    content: '';
    display: inline-block;
    width: 0.35rem;
    height: 0.35rem;
    margin-left: 0.35rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-0.1rem);
    opacity: 0.55;
    vertical-align: middle;
}

.nav-shop > summary::before {
    content: '';
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.28rem;
    height: 1.5px;
    background: var(--clay);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t) var(--ease);
}

.nav-shop:hover > summary::before,
.nav-shop[open] > summary::before,
.nav-shop > summary[aria-current='page']::before {
    transform: scaleX(1);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 220;
    min-width: 12.5rem;
    padding: 0.35rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    box-shadow: var(--lift-2);
    display: none;
}

.nav-shop[open] .nav-dropdown {
    display: block;
}

@media (min-width: 900px) and (hover: hover) {
    .nav-shop:hover .nav-dropdown {
        display: block;
    }
}

.nav-dropdown a {
    display: block;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 500;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--r-sm);
    border-left: 2px solid transparent;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current='page'] {
    background: var(--paper-3);
    border-left-color: var(--nav-accent, var(--clay));
}

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

.header-actions .account-btn {
    width: 44px;
    height: 44px;
}

.header-actions .account-btn .account-label {
    display: none;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
    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;
}

/* Compact search button — icon only; opens command palette overlay. */
.search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 500;
    cursor: pointer;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}

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

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

.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:
        linear-gradient(180deg, color-mix(in srgb, var(--clay-tint) 35%, var(--paper-2)) 0%, var(--paper-2) 2.5rem),
        var(--paper-2);
}

.drawer-sum-total {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-variation-settings: 'opsz' 22, 'wght' 600, 'SOFT' 0, 'WONK' 0;
    margin-bottom: 0.15rem;
}

.drawer-foot-note {
    margin: 0 0 var(--s3);
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--ink-3);
}

.drawer-view-cart {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    text-align: center;
    min-height: 44px;
}

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

.drawer-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    margin-top: var(--s4);
    padding-top: var(--s4);
    border-top: 1px solid var(--rule);
}

.drawer-lang-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-variation-settings: 'opsz' 11, 'wght' 620;
    color: var(--ink-3);
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    background: var(--paper-2);
    font-size: 0.6875rem;
    font-variation-settings: 'opsz' 11, 'wght' 620;
    letter-spacing: 0.06em;
}

.site-footer .lang-pill {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
}

.lang-pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    min-height: 28px;
    padding: 0 0.2rem;
    color: var(--ink-3);
    text-decoration: none;
    border-radius: 999px;
    transition: color var(--t) var(--ease), background var(--t) var(--ease);
}

.site-footer .lang-pill-link {
    color: #A69D91;
}

.lang-pill-link:hover {
    color: var(--ink);
}

.site-footer .lang-pill-link:hover {
    color: #fff;
}

.lang-pill-link.is-active {
    color: var(--ink);
    background: var(--paper-3);
}

.site-footer .lang-pill-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.lang-pill-sep {
    color: var(--ink-3);
    opacity: 0.45;
    user-select: none;
}

.site-footer .lang-pill-sep {
    color: #A69D91;
}

/* -------------------------------------------------------- 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-input:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.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-quick-add {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.375rem;
    margin: 0;
    width: 100%;
    min-width: 0;
}

.card-quick-add .card-qty {
    flex: 0 0 auto;
}

.card-quick-add .card-cta-add {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: 36px;
    padding-inline: 0.55rem;
    white-space: nowrap;
    justify-content: center;
    gap: 0.3rem;
}

.card-quick-add.is-unavailable .card-cta-add {
    flex: 1 1 100%;
    font-size: 0.75rem;
    padding-inline: 0.65rem;
}

.card-quick-add .card-cta-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.card-quick-add .stepper-sm button {
    width: 24px;
    min-width: 24px;
    height: 36px;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1;
}

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

@media (max-width: 420px) {
    .card-quick-add .card-cta-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .card-quick-add .card-cta-add:not(.is-disabled) {
        flex: 0 0 36px;
        width: 36px;
        min-width: 36px;
        padding-inline: 0;
    }

    .card-quick-add .card-cta-icon {
        width: 16px;
        height: 16px;
    }
}

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

@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;
    }
}

/* ---------------------------------------------------------------- stock pills */

.stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    font-variation-settings: 'opsz' 11, 'wght' 650;
    line-height: 1.25;
    white-space: nowrap;
}

.stock-pill--in {
    background: color-mix(in srgb, var(--sage) 28%, var(--paper));
    color: color-mix(in srgb, var(--sage-deep) 88%, var(--ink));
    border: 1px solid color-mix(in srgb, var(--sage) 45%, var(--rule));
}

.stock-pill--low {
    background: color-mix(in srgb, var(--clay) 22%, var(--paper));
    color: color-mix(in srgb, var(--clay-deep) 90%, var(--ink));
    border: 1px solid color-mix(in srgb, var(--clay) 40%, var(--rule));
}

.stock-pill--out {
    background: color-mix(in srgb, var(--ink) 6%, var(--paper));
    color: color-mix(in srgb, var(--ink-muted) 92%, var(--ink));
    border: 1px solid var(--rule);
}

.stock-pill--pulse {
    animation: stock-pulse 2.4s ease-in-out infinite;
}

@keyframes stock-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.stock-pill--compact {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 1;
    font-size: 0.5625rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.22rem 0.5rem;
    box-shadow: 0 2px 8px rgba(30, 26, 22, .12);
}

.card-product .wishlist-btn {
    z-index: 2;
}

.pdp-stock {
    margin: 0.55rem 0 0;
}

.pdp-buy .pdp-stock .stock-pill {
    font-size: 0.75rem;
}

.card-cta.is-disabled {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
}

/* ----------------------------------------------------------- bundle sections */

.pdp-bundle {
    margin-top: 0;
}

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

.bundle-kit-note {
    max-width: 18rem;
    text-align: right;
}

.bundle-panel {
    padding: var(--s3);
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--lift-1);
}

.bundle-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s2);
}

.bundle-item {
    display: flex;
    flex: 1 1 12rem;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.bundle-check {
    display: flex;
    align-items: center;
    margin-top: 0.35rem;
    cursor: pointer;
}

.bundle-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bundle-check-ui {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: 0.25rem;
    background: var(--paper);
}

.bundle-check-ui.is-checked,
.bundle-check input:checked + .bundle-check-ui {
    background: color-mix(in srgb, var(--accent, var(--clay)) 75%, var(--ink));
    border-color: color-mix(in srgb, var(--accent, var(--clay)) 75%, var(--ink));
    box-shadow: inset 0 0 0 2px var(--paper);
}

.bundle-check--locked .bundle-check-ui {
    opacity: 0.85;
}

.bundle-plus {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink-muted);
    line-height: 1;
}

.bundle-thumb {
    flex: 0 0 auto;
    color: inherit;
    text-decoration: none;
}

.bundle-art {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--accent-tint, var(--paper));
    border: 1px solid var(--rule);
}

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

.bundle-copy {
    flex: 1;
    min-width: 0;
}

.bundle-name {
    display: block;
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 600;
    color: inherit;
    text-decoration: none;
    line-height: 1.3;
}

.bundle-name:hover {
    text-decoration: underline;
}

.bundle-price {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.bundle-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s2);
    margin-top: var(--s3);
    padding-top: var(--s3);
    border-top: 1px solid var(--rule);
}

.bundle-total {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.bundle-total .num {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
}

.bundle-add-all {
    flex: 1 1 12rem;
    max-width: 100%;
}

.bundle-scroll {
    display: flex;
    gap: var(--s2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
}

.bundle-scroll .card-product {
    flex: 0 0 min(72vw, 15rem);
    scroll-snap-align: start;
}

@media (min-width: 760px) {
    .bundle-scroll {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
        overflow: visible;
        margin-inline: 0;
        padding-inline: 0;
    }

    .bundle-scroll .card-product {
        flex: unset;
    }

    .bundle-kit-note {
        text-align: right;
    }
}

@media (max-width: 479px) {
    .bundle-row {
        flex-direction: column;
        align-items: stretch;
    }

    .bundle-plus {
        align-self: center;
        transform: rotate(90deg);
    }

    .bundle-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

.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;
}

/* Mobile: unwrap columns so order can be gallery → buy → about → reviews. */
.pdp-col-media,
.pdp-col-buy {
    display: contents;
}
.pdp-gallery { order: 1; }
.pdp-buy { order: 2; }
.pdp-about { order: 3; }
.pdp-reviews { order: 4; }

.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);
    }

    /* 2×2 grid: gallery|buy on row 1, about|reviews on row 2.
       Column wrappers use display:contents so all four blocks are direct
       grid children — row 2 tops align regardless of buy vs gallery height. */
    .pdp {
        --pdp-col-left: minmax(280px, 520px);
        --pdp-col-right: minmax(320px, 420px);
        /* Track mins keep the abs-positioned figure from collapsing. */
        grid-template-columns: var(--pdp-col-left) var(--pdp-col-right);
        grid-template-areas:
            "gallery buy"
            "about reviews";
        row-gap: 5px;
        justify-content: center;
        column-gap: var(--s6);
        align-items: start;
        padding-bottom: var(--s3);
    }

    .pdp-col-media,
    .pdp-col-buy {
        display: contents;
    }

    .pdp-gallery { grid-area: gallery; }
    .pdp-buy { grid-area: buy; }
    .pdp-about { grid-area: about; }
    .pdp-reviews { grid-area: reviews; }

    .pdp-gallery,
    .pdp-buy,
    .pdp-about,
    .pdp-reviews {
        order: unset;
    }

    .pdp-about,
    .pdp-reviews {
        align-self: stretch;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

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

    .pdp-gallery {
        display: grid;
        grid-template-columns: 68px minmax(0, 1fr);
        grid-template-rows: auto;
        gap: var(--s3);
        align-items: start;
        width: 100%;
        flex-shrink: 0;
        position: sticky;
        top: calc(var(--header-h) + 5px);
    }

    .pdp-gallery.is-released {
        position: relative;
        top: auto;
    }

    .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 {
        align-self: start;
        width: 100%;
        max-width: 100%;
        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 {
        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-reviews {
        width: 100%;
        max-width: 100%;
    }

    .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);
    }

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

    .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-block {
        min-height: 44px;
        padding: 0.5rem 0.65rem;
        font-size: 0.8125rem;
    }

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

    .pdp-buy .pdp-landed-band .pincode-check--landed,
    .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;
}

.pdp-buy .pdp-qty-price-row {
    margin-top: var(--s3);
    padding-bottom: var(--s3);
    border-bottom: 1px solid var(--rule);
}

.pdp-buy .pdp-qty-price-row .field-qty {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    min-width: 0;
    width: 100%;
}

.pdp-buy .pdp-qty-price-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    width: 100%;
}

.pdp-buy .pdp-qty-price-controls .pdp-price {
    margin: 0;
    line-height: 1;
    align-self: center;
    text-align: right;
}

.pdp-buy .pdp-qty-price-controls .stepper {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    margin-inline: 0;
}

.pdp-buy .field-qty {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.pdp-buy-anchor {
    min-width: 0;
    text-align: left;
}

.pdp-buy .pdp-price {
    margin-bottom: 0;
    text-align: left;
}

.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 > .field-label {
    display: block;
    width: 100%;
    margin-bottom: 0.45rem;
    padding-inline: 0;
}

.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(--s2);
    margin-bottom: 0;
}

/* Two columns: Add to cart | Buy now side by side. */
.pdp-buy .buy-actions .btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s2);
    width: 100%;
}

.pdp-buy .buy-actions .buy-action-form {
    width: 100%;
}

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

.pdp-buy .pdp-landed-band,
.pdp-buy .pincode-check,
.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);
    }

    .pdp-buy .pdp-qty-price-row {
        padding-bottom: var(--s4);
    }

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

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

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

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

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

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

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

    .pdp-buy .pdp-landed-band,
    .pdp-buy .pincode-check,
    .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: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

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

.pdp-about .pdp-meta {
    padding-top: var(--s3);
    border-top: 1px solid var(--rule);
}

.pdp-about:not(:has(.pdp-about-body)) .pdp-meta {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.pdp-meta .spec-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 0.35rem 0.5rem;
    margin: 0;
    max-width: none;
}

.pdp-meta .spec-list div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15rem;
    min-height: 2.75rem;
    height: 100%;
    padding: 0.35rem 0.55rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0.65rem;
    border-bottom: none;
}

.pdp-meta .spec-list dt {
    font-size: 0.5625rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    line-height: 1.2;
}

.pdp-meta .spec-list dt::after {
    content: none;
}

.pdp-meta .spec-list dd {
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: var(--ink-2);
    text-align: left;
    word-break: normal;
    font-variation-settings: normal;
}

.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-page {
    padding-bottom: var(--s5);
}

.cart-page-head {
    margin-bottom: var(--s4);
    padding-bottom: var(--s3);
    border-bottom: 1px solid color-mix(in srgb, var(--clay) 18%, var(--rule));
}

.cart-page-head .display-m {
    color: var(--ink);
}

.cart-lede {
    margin: var(--s2) 0 0;
    max-width: 38rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink-2);
}

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

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

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

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

.cart-line-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: var(--s3) var(--s4);
    padding: var(--s3) var(--s4);
    border-radius: var(--r-lg);
    background: var(--paper-2);
    box-shadow: var(--lift-1), inset 0 0 0 1px var(--rule);
    transition: box-shadow var(--t-fast) var(--ease);
}

.cart-line-card:hover {
    box-shadow: var(--lift-2), inset 0 0 0 1px color-mix(in srgb, var(--clay) 22%, var(--rule));
}

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

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

.cart-line-cat {
    margin: 0 0 0.15rem;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-variation-settings: 'opsz' 11, 'wght' 650;
}

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

.cart-line-cat a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.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-unit {
    margin-top: 0.15rem;
}

.cart-line-controls {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s2) var(--s3);
    padding-top: var(--s2);
    border-top: 1px solid var(--rule);
}

.cart-qty-label {
    font-size: 0.75rem;
    color: var(--ink-3);
    font-variation-settings: 'opsz' 12, 'wght' 600;
    margin-right: 0.35rem;
}

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

    .cart-line-controls {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-end;
        border-top: none;
        padding-top: 0;
        gap: var(--s2);
    }
}

.cart-line-price {
    font-size: 1rem;
    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(--s4);
    border-radius: var(--r-lg);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--clay-tint) 42%, var(--paper-2)) 0%, var(--paper-2) 3.5rem),
        var(--paper-2);
    box-shadow: var(--lift-1), inset 0 0 0 1px var(--rule);
}

.cart-summary-title {
    margin-bottom: var(--s3);
    color: var(--clay);
}

.cart-promo {
    margin-bottom: var(--s3);
    padding-bottom: var(--s3);
    border-bottom: 1px solid var(--rule);
}

.cart-promo-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8125rem;
    font-variation-settings: 'opsz' 13, 'wght' 600;
    color: var(--ink-2);
}

.cart-promo-row {
    display: flex;
    gap: var(--s2);
}

.cart-promo-input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--rule);
    border-radius: var(--r);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--paper);
}

.cart-promo-input:focus {
    outline: 2px solid color-mix(in srgb, var(--gold) 45%, transparent);
    outline-offset: 1px;
    border-color: var(--gold);
}

.cart-promo-msg {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
}

.cart-promo-msg.is-error {
    color: var(--danger);
}

.cart-promo-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    margin-bottom: var(--s3);
    padding: var(--s2) var(--s3);
    border-radius: var(--r);
    background: color-mix(in srgb, var(--gold) 12%, var(--paper));
}

.cart-promo-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-variation-settings: 'opsz' 13, 'wght' 650;
    color: #5F4708;
}

.cart-promo-tag svg {
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
}

.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-discount {
    color: #2D6A4F;
    font-size: 0.875rem;
}

.sum-row.is-discount small {
    font-size: 0.75rem;
    color: var(--ink-3);
}

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

.sum-total-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
}

.sum-ship-plus {
    font-family: var(--font-display);
    font-variation-settings: inherit;
    line-height: 1;
}

.sum-ship-hint {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    color: var(--ink-3);
}

.cart-assurances {
    margin: var(--s3) 0 var(--s3);
    padding-top: var(--s3);
}

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

.cart-keep-shopping {
    margin-top: 0.5rem;
}

.cart-empty {
    margin-top: var(--s3);
    padding: clamp(2.75rem, 10vw, 4.75rem) var(--s4);
    border-radius: var(--r-lg);
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, color-mix(in srgb, var(--clay-tint) 55%, transparent), transparent 72%),
        var(--paper-2);
    box-shadow: inset 0 0 0 1px var(--rule);
}

.cart-notice {
    margin: 0 0 var(--s3);
    padding: var(--s3) var(--s4);
    border-radius: var(--r);
    background: color-mix(in srgb, var(--danger) 8%, var(--paper-2));
    color: var(--danger);
    font-size: 0.875rem;
}

/* Cart recommendations */
.cart-recs {
    margin-top: var(--s4);
    padding-block: var(--s5) var(--s6);
}

.cart-recs-lede {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: var(--ink-2);
    max-width: 28rem;
}

.cart-recs-grid {
    margin-top: var(--s3);
}

@media (max-width: 399px) {
    .cart-page-head {
        margin-bottom: var(--s3);
    }

    .cart-lede {
        font-size: 0.875rem;
    }

    .cart-line-card {
        grid-template-columns: 72px minmax(0, 1fr);
        padding: var(--s3);
        gap: var(--s2) var(--s3);
    }

    .cart-line-art {
        width: 72px;
        height: 72px;
    }

    .cart-line-main h3 {
        font-size: 0.875rem;
    }

    .cart-summary {
        padding: var(--s3);
    }

    .cart-promo-row {
        flex-direction: column;
    }

    .cart-promo-row .btn {
        width: 100%;
    }

    .cart-recs .section-head {
        margin-bottom: var(--s3);
    }

    .cart-recs-lede {
        font-size: 0.8125rem;
    }

    .cart-recs-grid {
        gap: var(--s2);
    }
}

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

.mini-line-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mini-line {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: var(--s3);
    align-items: start;
    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-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mini-line-qty .stepper {
    margin-top: 0.15rem;
}

.mini-line-qty .stepper button,
.mini-line-qty .stepper .stepper-value {
    width: 44px;
    height: 44px;
}

.mini-line-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

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

.mini-line-side .link-quiet {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

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

.search-page-form input:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

/* --------------------------------------------------------------- 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.65rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--r-lg);
    background: var(--paper-2);
    color: var(--ink);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 550;
    box-shadow: var(--lift-3), inset 0 0 0 1px var(--rule);
    animation: toast-in 260ms var(--ease);
    pointer-events: auto;
}

.toast.is-leaving {
    animation: toast-out 220ms var(--ease) forwards;
}

.toast.is-success {
    background: var(--sage-tint);
    color: var(--sage-deep);
    box-shadow: var(--lift-2), inset 0 0 0 1px color-mix(in srgb, var(--sage-deep) 18%, transparent);
}

.toast.is-error {
    background: #fdeeed;
    color: var(--danger);
    box-shadow: var(--lift-2), inset 0 0 0 1px color-mix(in srgb, var(--danger) 20%, transparent);
}

.toast.is-info {
    background: var(--indigo-tint);
    color: var(--indigo-deep);
    box-shadow: var(--lift-2), inset 0 0 0 1px color-mix(in srgb, var(--indigo-deep) 18%, transparent);
}

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

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

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(6px);
    }
}

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

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

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 980px) {
    .footer-grid {
        grid-template-columns: 1.45fr 0.9fr 0.9fr 1.1fr 1.05fr;
        gap: var(--s5);
    }

    .footer-brand {
        grid-column: auto;
    }
}

.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;
}

@media (max-width: 400px) {
    .site-footer {
        padding-block: var(--s6) var(--s4);
    }

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

    .footer-links a {
        min-height: 44px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s2);
    }
}

/* Leftover WhatsApp FAB — human chat lives inside Meanits only. */
.wa-fab {
    display: none !important;
}

/* --------------------------------------------------------- login modal */

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 520;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
}

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

.login-modal .overlay-scrim {
    position: absolute;
    inset: 0;
}

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

.login-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(92vh, 560px);
    background: var(--paper);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    box-shadow: var(--lift-3);
    transform: translateY(100%);
    transition: transform var(--t-slow) var(--ease);
}

.login-modal.is-open .login-dialog {
    transform: none;
}

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

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

.login-dialog-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--s5);
}

.auth-panels {
    position: relative;
}

.auth-panel {
    width: 100%;
}

.auth-panel-enter {
    transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.auth-panel-enter-start {
    opacity: 0;
    transform: translateY(10px);
}

.auth-panel-enter-end {
    opacity: 1;
    transform: translateY(0);
}

.auth-panel-leave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 280ms var(--ease), transform 280ms var(--ease);
    pointer-events: none;
}

.auth-panel-leave-start {
    opacity: 1;
    transform: translateY(0);
}

.auth-panel-leave-end {
    opacity: 0;
    transform: translateY(-8px);
}

.signup-contact-toggle {
    display: flex;
    gap: 0;
    margin-bottom: var(--s4);
    padding: 3px;
    border-radius: var(--r);
    background: var(--paper-2);
    box-shadow: inset 0 0 0 1px var(--rule);
}

.signup-contact-option {
    flex: 1;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-radius: calc(var(--r) - 2px);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-variation-settings: 'opsz' 12, 'wght' 620;
    color: var(--ink-3);
    cursor: pointer;
    transition: background var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.signup-contact-option.is-active {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), inset 0 0 0 1px var(--rule);
}

.signup-contact-option:focus-visible {
    outline: 2px solid var(--sage-deep);
    outline-offset: 1px;
}

.req {
    color: var(--gold-deep);
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: var(--s4);
}

.login-field > span {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-variation-settings: 'opsz' 12, 'wght' 620;
    color: var(--ink-3);
}

.login-field input {
    min-height: 48px;
    padding: 0 0.9rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--r);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 1rem;
}

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

.login-fallback {
    margin: var(--s4) 0 0;
    text-align: center;
}

.login-tabs {
    display: flex;
    gap: 0;
    padding: 0 var(--s5);
    border-bottom: 1px solid var(--rule);
}

.login-tab {
    flex: 1;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 12, 'wght' 620;
    color: var(--ink-3);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: -1px;
}

.login-tab.is-active {
    color: var(--ink);
    border-bottom-color: var(--sage-deep);
}

.login-tabs-page {
    margin-bottom: var(--s5);
    padding: 0;
    max-width: 20rem;
}

.btn-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--sage-deep);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (min-width: 640px) {
    .login-modal {
        align-items: center;
        padding: var(--s4);
    }

    .login-dialog {
        width: min(420px, calc(100vw - 2rem));
        max-height: min(85vh, 560px);
        border-radius: var(--r-xl);
        transform: translateY(1rem) scale(0.98);
    }

    .login-modal.is-open .login-dialog {
        transform: 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.5rem;
    min-height: 52px;
    padding: 0 1.05rem 0 0.45rem;
    border: none;
    border-radius: 999px;
    background: var(--clay-deep);
    color: #fff;
    box-shadow: var(--lift-2);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 620;
    cursor: pointer;
    transition: transform var(--t) var(--ease), bottom var(--t) var(--ease), background var(--t) var(--ease);
}

.ai-chat-fab-avatar,
.ai-chat-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 18, 'wght' 620, 'SOFT' 20;
    line-height: 1;
}

.ai-chat-fab-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: color-mix(in srgb, #fff 18%, transparent);
    font-size: 0.95rem;
}

.ai-chat-fab:hover {
    background: var(--clay-press);
    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;
    height: min(88dvh, 720px);
    max-height: min(88dvh, 720px);
    background:
        linear-gradient(180deg, var(--clay-tint) 0, var(--paper) 7.5rem);
    border-radius: 1.35rem 1.35rem 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: center;
    justify-content: space-between;
    gap: var(--s3);
    padding: 0.85rem var(--gutter) 0.75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--clay) 16%, var(--rule));
}

.ai-chat-head-id {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.ai-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clay-deep);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay-tint) 80%, #fff);
}

.ai-chat-head-copy {
    min-width: 0;
}

.ai-chat-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-variation-settings: 'opsz' 22, 'wght' 600, 'SOFT' 12;
    line-height: 1.15;
}

.ai-chat-head p {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-chat-head-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ai-chat-head-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 36px;
    padding: 0 0.7rem;
    border: 0;
    border-radius: 999px;
    background: var(--whatsapp);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-variation-settings: 'opsz' 12, 'wght' 620;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
}

.ai-chat-head-wa svg {
    width: 15px;
    height: 15px;
}

.ai-chat-head-wa:hover {
    color: #fff;
    filter: brightness(1.06);
}

.ai-chat-close {
    background: color-mix(in srgb, var(--paper) 70%, transparent);
}

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

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

.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.75rem 0.95rem;
    border-radius: 1.1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.ai-chat-msg-bot {
    align-self: flex-start;
    background: var(--paper-2);
    color: var(--ink);
    border: 1px solid var(--rule);
    border-bottom-left-radius: 0.35rem;
    box-shadow: var(--lift-1);
}

.ai-chat-msg-user {
    align-self: flex-end;
    background: var(--clay-deep);
    color: #fff;
    border-bottom-right-radius: 0.35rem;
}

.ai-chat-time {
    font-size: 0.6875rem;
    color: var(--ink-3);
    padding: 0 0.25rem;
}

.ai-chat-typing,
.ai-chat-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.86;
    font-style: italic;
    color: var(--ink-2);
    animation: ai-chat-status-pulse 2.2s ease-in-out infinite;
}

.ai-chat-status-line {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.86;
    font-style: italic;
    color: var(--ink-2);
    animation: ai-chat-status-pulse 2.2s ease-in-out infinite;
}

.ai-chat-status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--clay);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--clay) 18%, transparent);
    animation: ai-chat-status-pulse 1.6s ease-in-out infinite;
}

@keyframes ai-chat-status-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.ai-chat-bot-text {
    display: inline;
}

.ai-chat-type-cursor {
    display: inline-block;
    width: 2px;
    height: 0.95em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: currentColor;
    opacity: 0.5;
    animation: ai-chat-cursor-blink 1s step-end infinite;
}

@keyframes ai-chat-cursor-blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0; }
}

.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: var(--clay-deep);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--clay) 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.05rem 0 0.2rem;
}

.ai-chat-greet-sub {
    display: block;
    margin-top: 0.35rem;
    color: var(--ink-3);
}

.ai-chat-summary {
    margin: 0.45rem 0 0;
    padding: 0.7rem 0.8rem 0.65rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1.5px solid color-mix(in srgb, var(--clay) 32%, var(--rule));
    border-radius: 12px;
    background: color-mix(in srgb, var(--clay-tint) 78%, var(--paper));
}

.ai-chat-turn-bot .ai-chat-summary {
    margin-right: auto;
}

.ai-chat-summary-label {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--clay-deep);
    font-variation-settings: 'opsz' 12, 'wght' 620;
}

.ai-chat-summary dl {
    margin: 0;
}

.ai-chat-summary-row + .ai-chat-summary-row {
    margin-top: 0.4rem;
}

.ai-chat-summary dt {
    margin: 0;
    font-size: 0.68rem;
    color: var(--ink-3);
    font-variation-settings: 'opsz' 12, 'wght' 560;
}

.ai-chat-summary dd {
    margin: 0.1rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.ai-chat-actions .ai-chat-chip {
    white-space: normal;
}

.ai-chat-chip {
    padding: 0.4rem 0.8rem;
    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.3;
    cursor: pointer;
    text-decoration: none;
    max-width: 100%;
    text-align: left;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}

.ai-chat-chip:hover {
    background: var(--clay-tint);
    border-color: color-mix(in srgb, var(--clay) 35%, var(--rule-strong));
    color: var(--ink);
}

.ai-chat-chip-wa {
    border-color: color-mix(in srgb, var(--whatsapp) 35%, var(--rule-strong));
    color: var(--whatsapp-press);
}

.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(--clay-tint);
    border-color: color-mix(in srgb, var(--clay) 30%, var(--rule-strong));
    color: var(--ink);
}

.ai-chat-action-wa {
    background: var(--whatsapp);
    border-color: var(--whatsapp);
    color: #fff;
}

.ai-chat-action-wa:hover {
    background: var(--whatsapp-press);
    border-color: var(--whatsapp-press);
    color: #fff;
}

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

.ai-chat-foot textarea {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    max-height: 108px;
    overflow-y: hidden;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: 1.25rem;
    background: var(--paper-2);
    font: inherit;
    font-size: 1rem;
    line-height: 1.35;
    resize: none;
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.ai-chat-foot textarea:focus {
    outline: none;
    border-color: var(--clay);
    background: var(--paper);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 16%, transparent);
}

.ai-chat-foot textarea:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
}

.ai-chat-send {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--clay-deep);
    color: #fff;
    cursor: pointer;
    transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}

.ai-chat-send svg {
    width: 20px;
    height: 20px;
}

.ai-chat-send:hover:not(:disabled) {
    background: var(--clay-press);
}

.ai-chat-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 399px) {
    .ai-chat-head {
        gap: 0.5rem;
        padding-left: 0.85rem;
        padding-right: 0.75rem;
    }

    .ai-chat-head p {
        display: none;
    }

    .ai-chat-head-wa {
        width: 36px;
        padding: 0;
        justify-content: center;
    }

    .ai-chat-head-wa span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .ai-chat-summary {
        padding: 0.6rem 0.7rem 0.55rem;
    }
}

@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;
    }

    body.page-checkout .ai-chat-fab {
        bottom: calc(5.5rem + env(safe-area-inset-bottom));
    }

    body.page-checkout .ai-chat-panel {
        bottom: calc(4.75rem + env(safe-area-inset-bottom));
        height: min(calc(88dvh - 4.75rem), 720px);
        max-height: calc(88dvh - 4.75rem - env(safe-area-inset-bottom));
    }
}

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

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

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

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

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

.pdp-head .eyebrow {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdp-head-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pdp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.4rem 0.95rem 0.4rem 0.75rem;
    border: 1.5px solid var(--clay-deep);
    border-radius: 999px;
    background: var(--clay-tint);
    color: var(--clay-deep);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 620;
    line-height: 1;
    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);
}

.pdp-share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pdp-share-btn:hover,
.pdp-share-btn:focus-visible {
    background: var(--clay);
    border-color: var(--clay);
    color: #fff;
}

.pdp-share-btn:active {
    transform: translateY(1px);
    background: var(--clay-press);
    border-color: var(--clay-press);
}

.pdp-share-btn[aria-busy='true'] {
    opacity: 0.7;
    cursor: wait;
}

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

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

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

.pdp-share-sheet.is-open .overlay-scrim {
    opacity: 1;
}

.pdp-share-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: min(88dvh, 520px);
    padding: 1.1rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom));
    background:
        linear-gradient(180deg, var(--clay-tint) 0, var(--paper) 5.5rem);
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: var(--lift-3);
    transform: translateY(100%);
    transition: transform var(--t-slow) var(--ease);
}

.pdp-share-sheet.is-open .pdp-share-panel {
    transform: none;
}

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

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

.pdp-share-close {
    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-2);
    cursor: pointer;
}

.pdp-share-close:hover,
.pdp-share-close:focus-visible {
    border-color: var(--clay);
    color: var(--clay-deep);
}

.pdp-share-lede {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.9rem;
}

.pdp-share-url {
    margin: 0;
    padding: 0.65rem 0.8rem;
    border-radius: 0.7rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-size: 0.8125rem;
    word-break: break-all;
}

.pdp-share-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pdp-share-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 52px;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: 0.9rem;
    background: var(--paper);
    color: inherit;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
}

.pdp-share-action:hover,
.pdp-share-action:focus-visible {
    border-color: var(--clay);
    background: color-mix(in srgb, var(--clay-tint) 55%, var(--paper));
}

.pdp-share-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clay-tint);
    color: var(--clay-deep);
    flex-shrink: 0;
}

.pdp-share-action-icon--wa {
    background: color-mix(in srgb, var(--whatsapp) 16%, var(--paper));
    color: var(--whatsapp);
}

.pdp-share-action-icon--ig {
    background: #f6e6ee;
    color: #b43d6b;
}

.pdp-share-action-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.pdp-share-action-copy strong {
    font-size: 0.9375rem;
    font-variation-settings: 'opsz' 15, 'wght' 620;
    color: var(--ink);
}

.pdp-share-action-copy small {
    font-size: 0.75rem;
    color: var(--ink-3);
}

.pdp-share-hint {
    margin: 0;
    padding: 0.65rem 0.8rem;
    border-radius: 0.7rem;
    background: var(--clay-tint);
    color: var(--clay-deep);
    font-size: 0.8125rem;
}

@media (min-width: 560px) {
    .pdp-share-panel {
        right: auto;
        left: 50%;
        bottom: 1.25rem;
        width: min(400px, calc(100vw - 2rem));
        border-radius: 1.25rem;
        transform: translate(-50%, 24px);
    }

    .pdp-share-sheet.is-open .pdp-share-panel {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 374px) {
    .pdp-share-btn {
        padding-inline: 0.7rem 0.8rem;
        font-size: 0.8125rem;
    }
}

.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;
}

/* PDP landed cost (item + shipping + platform fee) -------------------- */

.pdp-landed-band {
    padding: var(--s3);
    border-radius: var(--r-lg);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--clay-tint) 42%, var(--paper-2)) 0%, var(--paper-2) 3.5rem),
        var(--paper-2);
    box-shadow: var(--lift-1), inset 0 0 0 1px var(--rule);
}

.pdp-landed-headline {
    margin: 0 0 var(--s2);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-variation-settings: 'opsz' 24, 'wght' 600, 'SOFT' 0, 'WONK' 0;
    line-height: 1.35;
    color: var(--clay-deep);
}

.pdp-landed-headline--loading {
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 500;
}

.pdp-landed-band .pincode-check--landed {
    padding: 0;
    margin: 0 0 var(--s2);
    background: transparent;
    box-shadow: none;
}

.pdp-landed-breakdown {
    margin: 0;
    padding: var(--s2) 0 0;
    border-top: 1px solid color-mix(in srgb, var(--clay) 14%, var(--rule));
}

.pdp-landed-breakdown .sum-row {
    padding: 0.3rem 0;
}

.pdp-landed-breakdown .sum-row dt,
.pdp-landed-breakdown .sum-row dd {
    margin: 0;
}

.pdp-landed-breakdown .sum-row.is-total {
    margin-top: 0.35rem;
    padding-top: var(--s2);
    font-size: 1.15rem;
}

.pdp-landed-note {
    margin: var(--s2) 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--ink-3);
}

.pdp-landed-band .pickup-hint {
    margin-top: var(--s2);
}

@media (max-width: 479px) {
    .pdp-landed-band {
        padding: var(--s2) var(--s3);
        border-radius: var(--r);
    }

    .pdp-landed-headline {
        font-size: 0.9375rem;
    }

    .pdp-landed-breakdown .sum-row {
        font-size: 0.875rem;
    }

    .pdp-landed-breakdown .sum-row.is-total {
        font-size: 1.05rem;
    }

    .pdp-landed-band .pincode-row input {
        min-height: 44px;
        font-size: 1rem;
    }

    .pdp-landed-band .pincode-row .btn-sm {
        min-height: 44px;
        padding-inline: 0.75rem;
    }
}

.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);
}

.field-error {
    display: block;
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--clay-deep);
}

.account-field.has-error input,
.account-field.has-error textarea,
.login-field.has-error input,
.checkout-field.has-error input,
.checkout-field.has-error select {
    border-color: var(--clay-deep);
}

.pincode-lookup {
    display: block;
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--ink-3);
    font-variation-settings: 'opsz' 12, 'wght' 500;
}

/* ----------------------------------------------------------- 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 {
        margin-top: 0;
        border-radius: calc(var(--r-xl) + 2px);
    }

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

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

    /* Sister-card stretch: body fills card; form pins to bottom. */
    .pdp:has(.pdp-about) .pdp-reviews-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: var(--s3);
        min-height: 0;
    }

    .pdp:has(.pdp-about) .pdp-reviews-main {
        flex: 1 1 auto;
        min-height: 0;
    }

    .pdp:has(.pdp-about) .review-form-wrap {
        margin-top: auto;
        padding-top: var(--s3);
        border-top: 1px solid var(--rule);
    }

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

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

    .pdp-reviews-main:empty + .review-form-wrap {
        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;
    }

    .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);
}

.review-textarea:focus-visible {
    outline: 2px solid var(--sage-deep);
    outline-offset: 3px;
}

.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;
}

.pickup-hint .pickup-address {
    white-space: pre-line;
}

.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 {
        transform: none;
    }

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

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

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

/* ----------------------------------------------------------- shop catalogue */

/* Intro band (crumbs, title, toolbar) spans the full row above sidebar + grid. */
.shop-intro {
    width: 100%;
}

.shop-page .page-head {
    padding-bottom: var(--s3);
}

.shop-page .page-head .lede {
    max-width: none;
}

.shop-shelves {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 var(--s4);
    padding: 0.25rem;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    width: fit-content;
    max-width: 100%;
}

.shop-shelf {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    border-radius: calc(var(--r-lg) - 2px);
    font-size: 0.875rem;
    color: var(--ink-2);
    text-decoration: none;
}

.shop-shelf small {
    color: var(--ink-3);
    font-size: 0.75rem;
}

.shop-shelf:hover {
    color: var(--ink);
    background: color-mix(in srgb, var(--paper) 70%, transparent);
}

.shop-shelf.is-active {
    background: var(--paper);
    color: var(--ink);
    font-variation-settings: 'wght' 600;
    box-shadow: var(--lift-1);
}

.shop-quote-shelf {
    margin-top: var(--s6);
    padding-top: var(--s5);
    border-top: 1px solid var(--rule);
}

.shop-quote-shelf .section-head {
    margin-bottom: var(--s4);
}

.pdp-product-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.45rem;
    margin: var(--s3) 0 0;
    max-width: none;
}

.pdp-product-specs div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.65rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0.65rem;
}

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

.pdp-product-specs dd {
    margin: 0;
    text-align: left;
    font-size: 0.875rem;
    font-variation-settings: 'opsz' 14, 'wght' 550;
}

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    padding-bottom: var(--s4);
    border-bottom: 1px solid var(--rule);
    margin-bottom: var(--s4);
}

.shop-result-count {
    margin: 0;
    flex: 1 1 auto;
}

.shop-filtered-note {
    color: var(--ink-3);
}

.shop-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s2);
    width: 100%;
}

@media (min-width: 640px) {
    .shop-toolbar-actions {
        width: auto;
        justify-content: flex-end;
    }
}

.shop-filters-toggle {
    position: relative;
    min-height: 44px;
}

.shop-filter-badge {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--clay);
}

.shop-sort {
    flex: 1;
    min-width: 0;
}

@media (min-width: 640px) {
    .shop-sort {
        flex: 0 1 auto;
        min-width: 11rem;
    }
}

.shop-sort select {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235C534A' d='M1.2 1.2 6 6l4.8-4.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    cursor: pointer;
}

.shop-layout {
    display: block;
}

.shop-sidebar {
    display: none;
}

.shop-main {
    min-width: 0;
}

@media (min-width: 900px) {
    .shop-page {
        display: grid;
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
        column-gap: var(--s6);
        row-gap: var(--s4);
        align-items: start;
    }

    .shop-intro,
    .shop-filters-drawer {
        grid-column: 1 / -1;
    }

    .shop-layout {
        display: contents;
    }

    .shop-sidebar {
        display: block;
        position: sticky;
        top: calc(var(--header-h, 4rem) + var(--s3));
    }

    .shop-filters-toggle {
        display: none;
    }
}

.shop-filters-panel {
    padding: var(--s4);
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--lift-1);
}

.shop-filters-drawer .shop-filters-panel {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

.shop-filters-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-variation-settings: 'opsz' 24, 'wght' 580, 'SOFT' 20, 'WONK' 0;
    margin: 0 0 var(--s4);
}

.shop-filters-drawer .shop-filters-title {
    display: none;
}

.shop-filter-group {
    border: none;
    margin: 0 0 var(--s4);
    padding: 0;
}

.shop-filter-group legend {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: var(--s2);
    padding: 0;
}

.shop-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.shop-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    font-size: 0.875rem;
    cursor: pointer;
}

.shop-check input {
    margin-top: 0.15rem;
    accent-color: var(--clay);
}

.shop-check span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.shop-check small {
    color: var(--ink-3);
    font-size: 0.75rem;
}

.shop-price-range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--s2);
}

.shop-price-range input {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    font: inherit;
    font-size: 1rem;
    border: 1px solid var(--rule);
    border-radius: var(--r);
    background: var(--paper);
}

.shop-filter-hint {
    margin: var(--s2) 0 0;
    font-size: 0.75rem;
}

.shop-filter-actions {
    display: grid;
    gap: var(--s2);
    margin-top: var(--s4);
}

.shop-filters-drawer .shop-filter-actions {
    position: sticky;
    bottom: 0;
    margin: 0 calc(-1 * var(--s5));
    padding: 0.85rem var(--s5) calc(0.85rem + env(safe-area-inset-bottom));
    background: var(--paper);
    box-shadow: 0 -1px 0 var(--rule);
}

/* ----------------------------------------------------------- legal pages */

.legal-page {
    padding-bottom: var(--s7);
    overflow-wrap: break-word;
}

.legal-updated {
    margin: 0.45rem 0 0;
    font-size: 0.8125rem;
    color: var(--ink-3);
}

.legal-article,
.legal-article.prose {
    max-width: none;
}

.legal-article--sitemap {
    max-width: none;
}

.legal-article h2 {
    margin: var(--s5) 0 var(--s3);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-variation-settings: 'opsz' 22, 'wght' 620;
    color: var(--clay-deep);
}

.legal-article h3 {
    margin: var(--s4) 0 var(--s2);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-variation-settings: 'opsz' 18, 'wght' 600;
    color: var(--ink);
}

.legal-article ul {
    margin: 0 0 var(--s4);
    padding-left: 1.15rem;
}

.legal-article li {
    margin: 0.35rem 0;
}

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

.legal-callout {
    margin: var(--s4) 0;
    padding: var(--s4);
    background: var(--clay-tint);
    border-left: 3px solid var(--clay-deep);
    border-radius: var(--r-sm);
}

.legal-callout p {
    margin: 0;
}

.legal-dl {
    display: grid;
    gap: 0;
    margin: 0 0 var(--s4);
}

.legal-dl div {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: var(--s3);
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.875rem;
}

.legal-dl dt {
    color: var(--ink-3);
}

.legal-dl dd {
    margin: 0;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: var(--s6) 0 0;
    padding-top: var(--s4);
    border-top: 1px solid var(--rule);
    font-size: 0.8125rem;
}

.legal-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--ink-2);
    text-decoration: none;
}

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

.legal-nav a[aria-current="page"] {
    color: var(--clay-deep);
    font-variation-settings: 'opsz' 14, 'wght' 620;
}

.legal-sitemap {
    display: grid;
    gap: var(--s5);
}

.legal-sitemap-group h3 {
    margin: 0 0 var(--s2);
}

.legal-sitemap-list {
    margin: 0 0 var(--s4);
    padding-left: 1.15rem;
}

.legal-sitemap-empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-3);
}

@media (min-width: 720px) {
    .legal-sitemap {
        grid-template-columns: 1fr 1fr;
        gap: var(--s5) var(--s6);
    }
}

@media (max-width: 400px) {
    .legal-article h2 {
        font-size: 1.125rem;
    }

    .legal-callout {
        padding: var(--s3);
    }

    .legal-dl div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .legal-nav {
        gap: 0.15rem 0.75rem;
    }

    .legal-nav a {
        min-height: 44px;
    }
}

/* ------------------------------------------------ Phase 6 mobile-best (375px) */

@media (max-width: 899px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px;
    }

    .shop-filters-drawer .drawer-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: min(88dvh, 720px);
        border-radius: 1.25rem 1.25rem 0 0;
        transform: translateY(100%);
        padding-bottom: env(safe-area-inset-bottom);
    }

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

    .hero-grid,
    .cat-grid,
    .grid,
    .footer-grid {
        min-width: 0;
    }

    .hero h1,
    .display-xl {
        overflow-wrap: anywhere;
    }

    .site-header,
    .announce {
        padding-left: max(var(--gutter), env(safe-area-inset-left));
        padding-right: max(var(--gutter), env(safe-area-inset-right));
    }

    .wrap {
        padding-left: max(var(--gutter), env(safe-area-inset-left));
        padding-right: max(var(--gutter), env(safe-area-inset-right));
    }
}

@media (max-width: 400px) {
    .shop-toolbar-actions {
        width: 100%;
    }

    .shop-filters-toggle,
    .shop-sort {
        flex: 1 1 calc(50% - 0.35rem);
    }

    .hero-facts {
        gap: 0.65rem;
    }

    .btn-row {
        flex-wrap: wrap;
    }

    .btn-row .btn {
        min-height: 44px;
    }
}

/* Phase 2: bundle components, review title */
.bundle-component-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--s3);
}
.bundle-component-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s3);
    padding: var(--s3) 0;
    border-bottom: 1px solid var(--rule);
}
.bundle-component-item:last-child { border-bottom: 0; }
.bundle-component-name { font-weight: 600; }
.review-title-input {
    width: 100%;
    margin-block: var(--s2) var(--s3);
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    font: inherit;
}

