/* =========================================================
   Beauty storefront — boutique: soft pink page, white panels,
   classic serif headings, square black buttons.
   All colours are variables; text pairs meet WCAG AA.
   ========================================================= */

:root {
    --bg: #fde8f1;          /* soft pink page */
    --surface: #ffffff;     /* panels, cards, product photo boxes */
    --blush: #fbd3e3;       /* active tabs, pink fills */
    --blush-2: #fff5f9;     /* very light pink panels */
    --nude: #f7e1ea;
    --ink: #231f20;         /* near-black text + buttons (14:1 on --bg) */
    --ink-2: #463c40;
    --muted: #62575c;       /* secondary text (6:1 on --bg) */
    --line: #f4d5e2;
    --line-2: #e7b9cc;
    --accent: #b4246a;      /* pink labels, sale prices (5.7:1 on --bg, 6.5:1 on white) */
    --accent-dark: #8e1b53;
    --accent-soft: #fde8f1;
    --on-accent: #ffffff;
    --plum: #231f20;        /* dark fills */
    --on-plum: #fdf2f7;
    --on-plum-muted: #d9c9d0;
    --rose: #e98bb2;        /* decorative pink (sparkles, numbers on dark) */
    --gold: #c2477f;        /* decorative sparkles only */
    --ok: #2c6e49;
    --warn: #8a4b00;
    --error: #b42318;
    --overlay: rgba(35, 31, 32, .45);
    --shadow: 0 12px 32px rgba(35, 31, 32, .10);
    --shadow-sm: 0 2px 10px rgba(35, 31, 32, .06);
    --radius: 22px;
    --radius-sm: 14px;
    --well: #f9f1f5;        /* tinted photo tiles (white product shots blend into it) */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --serif: 'Cormorant Garamond', Garamond, Georgia, 'Times New Roman', serif;
    --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tap: 44px;
    --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: lining-nums; /* the serif's old-style figures make prices look uneven */
    overflow-x: hidden;
    overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typography ---------- */
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(27.5px, 3.31vw, 40.5px); line-height: 1.1; letter-spacing: -.005em; }
.h2--center { text-align: center; }
.h2 em, .page-hero__title em, .hero__title em, .promise em { font-style: italic; color: var(--accent); }
.kicker { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 500; font-size: 12px; color: var(--ink); white-space: nowrap; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Buttons: square, uppercase, black ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 28px; border-radius: 999px;
    font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; text-align: center;
    border: 1.5px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--lg { min-height: 54px; padding: 0 38px; font-size: 11.5px; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--sm { min-height: var(--tap); padding: 0 16px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.icon-btn {
    position: relative; display: inline-grid; place-items: center;
    width: var(--tap); height: var(--tap); border-radius: 50%; flex: none;
    transition: background .2s;
}
.icon-btn:hover { background: var(--blush); }
.icon-btn .icon { width: 22px; height: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--center { justify-content: center; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    min-height: 40px; padding: 0 18px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line-2);
    font-size: 11.5px; font-weight: 400; white-space: nowrap; transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--x { background: var(--accent-soft); border-color: transparent; color: var(--accent-dark); }
.chip--x .icon { width: 14px; height: 14px; }
.chips--sm .chip { min-height: 36px; padding: 0 12px; font-size: 11px; }

/* ---------- Announcement ---------- */
.announce { background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line-2); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 4px 40px; min-height: 38px; padding: 6px 0; text-align: center; }
.announce__msg { display: inline-flex; align-items: center; gap: 8px; }
a.announce__msg:hover { color: var(--accent); }
.announce .icon { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 40;
    background: var(--bg); border-bottom: 1px solid var(--line-2); transition: box-shadow .25s, transform .35s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 8px 28px; min-height: 76px; flex-wrap: wrap; padding: 8px 0; }
.burger { display: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: var(--tap); }
.logo__img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; }
.logo__word { font-family: var(--sans); font-weight: 700; font-size: 16.5px; letter-spacing: .02em; white-space: nowrap; }

.header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cart-count {
    position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--accent); color: var(--on-accent);
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
    transform: scale(0); transition: transform .25s var(--ease);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .4s var(--ease); }

/* Search with instant results */
.search { position: relative; flex: 1; max-width: 620px; display: flex; align-items: center; }
.search__icon { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.search input {
    width: 100%; height: 46px; padding: 0 104px 0 48px;
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
    font-size: 12.5px; outline: none; transition: border-color .2s;
    -webkit-appearance: none; appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search__btn { position: absolute; right: 4px; height: 38px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transition: background .2s; }
.search__btn:hover { background: var(--accent); }
.search__results {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60;
    background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow);
    padding: 8px; max-height: min(70vh, 540px); overflow-y: auto;
}
.sr { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 14px; min-height: 64px; }
.sr:hover, .sr.is-active { background: var(--blush-2); }
.sr .ph { width: 56px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.sr__name { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr__price { font-weight: 700; font-size: 12px; white-space: nowrap; }
.sr__price s { color: var(--muted); font-weight: 400; font-size: 11px; }
.sr-all { display: flex; align-items: center; min-height: var(--tap); padding: 0 12px; margin-top: 6px; border-top: 1px solid var(--line); font-weight: 600; color: var(--accent); font-size: 12px; }
.sr-all.is-active, .sr-all:hover { background: var(--blush-2); border-radius: 12px; }
.sr-empty { padding: 16px 12px; color: var(--muted); font-size: 12px; }
.sr-empty a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.search__cancel { display: none; align-items: center; flex: none; min-height: var(--tap); padding: 0 2px 0 14px; font-weight: 600; font-size: 13px; color: var(--accent); }
.sr-head { padding: 10px 6px 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 6px 12px; }
.sr-chips .chip { min-height: var(--tap); background: var(--blush-2); border-color: transparent; }
.sr-skel__row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 6px; }
.sr-skel__row i, .sr-skel__row b { display: block; height: 56px; border-radius: 12px; background: linear-gradient(90deg, var(--blush-2) 25%, var(--blush) 50%, var(--blush-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.sr-skel__row b { height: 14px; width: 70%; }

/* Category bar + mega-menu */
.nav { position: relative; }
.nav__inner { display: flex; justify-content: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav__link {
    position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px;
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: color .2s;
}
.nav__link::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after, .nav__item:hover > .nav__link::after { transform: scaleX(1); }
.mega {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--line-2); box-shadow: 0 24px 40px rgba(35, 31, 32, .08);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .25s var(--ease), visibility 0s .2s;
}
.nav__item:hover > .mega, .nav__item:focus-within > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
.mega__inner { display: grid; grid-template-columns: 1fr 260px; gap: 40px; padding: 32px 0; }
.mega__cols { columns: 3 190px; column-gap: 32px; }
.mega__col { break-inside: avoid; margin-bottom: 16px; }
.mega__head { display: block; font-weight: 600; padding: 4px 0; }
.mega__head:hover, .mega__link:hover { color: var(--accent); }
.mega__link { display: block; padding: 3px 0; font-size: 12px; color: var(--muted); }
.mega__all {
    align-self: start; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 180px; padding: 22px;
    background: var(--bg); font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.1;
}
.mega__all span { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.mega__all .icon { color: var(--accent); transition: transform .25s var(--ease); }
.mega__all:hover .icon { transform: translateX(4px); }

/* Overlays + side drawers */
.overlay { position: fixed; inset: 0; z-index: 70; background: var(--overlay); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
body.cart-open .overlay[data-cart-close],
body.nav-open .overlay[data-menu-close],
body.filters-open .overlay--filters { opacity: 1; visibility: visible; transition: opacity .3s; }

.mnav, .drawer {
    position: fixed; top: 0; bottom: 0; z-index: 80; width: min(410px, 90vw);
    background: var(--surface); display: flex; flex-direction: column;
    transition: transform .4s var(--ease), visibility 0s .4s; visibility: hidden;
}
.mnav { left: 0; transform: translateX(-100%); }
.drawer { right: 0; transform: translateX(100%); }
body.nav-open .mnav, body.cart-open .drawer { transform: none; visibility: visible; transition: transform .4s var(--ease); }

.mnav__head, .drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.mnav__title, .drawer__head h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.mnav__body { flex: 1; overflow-y: auto; padding: 8px 0; }
.mnav__link { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 22px; font-weight: 600; cursor: pointer; list-style: none; }
.mnav__link::-webkit-details-marker { display: none; }
.mnav__link .icon { width: 18px; height: 18px; transition: transform .2s; }
.mnav__group[open] > summary .icon { transform: rotate(180deg); }
.mnav__group[open] > summary { color: var(--accent); }
.mnav__sub { display: flex; align-items: center; min-height: var(--tap); padding: 0 22px 0 34px; color: var(--ink-2); font-size: 13px; }
.mnav__sub--all { color: var(--accent); font-weight: 600; }
.mnav__group { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.mnav__group:not([open]) { padding-bottom: 0; }
.mnav__foot { padding: 16px 22px; border-top: 1px solid var(--line); }

/* ---------- Product photo box: white square, photo contained ---------- */
.ph { position: relative; aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9%; transition: opacity .35s, transform .6s var(--ease); }
.ph__icon { position: absolute; inset: 0; margin: auto; width: 32%; height: 32%; color: var(--line-2); stroke-width: 1; opacity: 0; }
.js .ph:not(.is-loaded):not(.is-empty) { background: linear-gradient(90deg, #fff 25%, var(--blush-2) 50%, #fff 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.js .ph:not(.is-loaded) img { opacity: 0; }
.ph.is-empty { background: var(--blush-2); animation: none; }
.ph.is-empty .ph__icon { opacity: 1; }
.ph.is-empty img { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero: the photo fills the band, the type sits on a white card ---------- */
.hero { padding: 0; }
.hero__band {
    position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
    min-height: clamp(520px, 46vw, 660px); padding: clamp(36px, 5vw, 64px) var(--gutter);
    background: var(--nude); border-bottom: 1px solid var(--line-2);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__copy {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    width: min(760px, 100%); padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px);
    background: rgba(255, 255, 255, .93); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(35, 31, 32, .12);
}
.hero__kicker { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.hero__title { display: flex; flex-direction: column; align-items: center; margin: 18px 0 20px; font-family: var(--serif); font-weight: 600; line-height: 1; }
.hero__pre, .hero__post { font-style: italic; font-weight: 500; font-size: clamp(18.5px, 2.02vw, 26px); line-height: 1.2; }
.hero__name { font-size: clamp(42.5px, 5.15vw, 77.5px); letter-spacing: .01em; text-transform: uppercase; margin: 4px 0 10px; }
.hero__sub { max-width: 520px; color: var(--ink-2); font-size: 13px; }
.hero__btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 28px; }

/* ---------- Marquee: category names between thin rules ---------- */
.marquee { overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line-2); padding: 14px 0; }
.marquee__track { display: flex; align-items: center; gap: 30px; width: max-content; animation: marquee 50s linear infinite; }
.marquee span { font-family: var(--serif); font-weight: 600; font-size: clamp(17.5px, 1.84vw, 22px); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font-size: 11px; }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.panel { background: var(--surface); padding: clamp(28px, 4vw, 52px) clamp(16px, 3vw, 40px); border-radius: 28px; }

/* Round category pictures */
.cats {
    display: grid; grid-auto-flow: column; grid-auto-columns: 27%; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
}
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; scroll-snap-align: start; min-width: 0; }
.cat__img { display: block; width: 100%; margin-bottom: 10px; border-radius: 50%; overflow: hidden; background: var(--well); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s, transform .4s var(--ease); }
.cat__img .ph { background: transparent; }
.cat__img .ph img { inset: 15%; width: 70%; height: 70%; padding: 0; border-radius: 50%; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.cat:hover .cat__img { box-shadow: 0 0 0 2px var(--ink); }
.cat:hover .ph img { transform: scale(1.08); }
.cat__name { font-size: 12px; font-weight: 500; line-height: 1.3; }
.cat__count { font-size: 11px; color: var(--muted); }

/* Tabs: pill category buttons, then pill sub-categories */
.kicker--center { display: block; text-align: center; }
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 16px; }
.tab {
    min-height: var(--tap); padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
    font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
    transition: background .2s, border-color .2s, color .2s;
}
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs__panel .chips { margin-bottom: 28px; }
.tabs__panel .chip.is-active { background: var(--blush); border-color: var(--blush); color: var(--ink); }
.tabs__more { display: flex; justify-content: center; margin-top: 28px; }
.tabs__empty { text-align: center; padding: 32px 0; }

/* ---------- Product card: photo on a tinted tile, name, price, pill button ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; height: 100%; }
.card__media { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--well); }
.card__media .ph { background: transparent; }
.card__media .ph img, .card__alt { mix-blend-mode: multiply; } /* the white of product shots melts into the tile */
.card__alt {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9%;
    opacity: 0; transition: opacity .45s var(--ease); display: none;
}
.card:hover .ph.is-loaded img { transform: scale(1.05); }
.card__info { display: flex; flex-direction: column; align-items: stretch; gap: 6px; flex: 1; }
.card__title { font-size: 12px; font-weight: 400; line-height: 1.45; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-family: var(--serif); }
.card__price strong { font-size: 16.5px; font-weight: 700; }
.card__price strong.is-sale { color: var(--accent); }
.card__price s { color: var(--muted); font-size: 13px; }
.card__add {
    display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); margin-top: auto; padding: 0 16px;
    border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
    font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s;
}
.card__add:hover, .card__add.is-added { background: var(--ink); color: #fff; }
.card__add--off { border-color: var(--line-2); color: var(--muted); }
.card__add--off:hover { background: transparent; color: var(--muted); }

/* Mouse users: the second photo fades in on hover */
@media (hover: hover) and (pointer: fine) {
    .card__alt { display: block; }
    .card:hover .card__alt { opacity: 1; }
    .card:hover .card__media:has(.card__alt) .ph img { opacity: 0; }
}

.badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.badge--sale { background: var(--accent); color: var(--on-accent); }

/* Grid (catalog, home tabs) */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }

/* Rails: a sideways-scrolling row of cards */
.rail { position: relative; }
.rail__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    outline-offset: 4px;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { scroll-snap-align: start; min-width: 0; }
.rail__btn {
    position: absolute; top: 30%; z-index: 3; display: none; place-items: center;
    width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2);
    transition: opacity .25s, background .2s, color .2s;
}
.rail__btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.rail__btn--prev { left: -16px; }
.rail__btn--prev .icon { transform: rotate(180deg); }
.rail__btn--next { right: -16px; }
.rail__btn:disabled { opacity: 0; pointer-events: none; }
.rail.is-static .rail__btn { display: none !important; }

/* ---------- Shop by price: soft coloured tiles ---------- */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.price-tile {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
    min-height: 170px; padding: 22px; border-radius: var(--radius); overflow: hidden;
    transition: transform .35s var(--ease);
}
.price-tile:hover { transform: translateY(-4px); }
.price-tile--0 { background: #fbd3e3; }
.price-tile--1 { background: #fde4d6; }
.price-tile--2 { background: #ebe1f6; }
.price-tile--3 { background: var(--ink); color: #fff; }
.price-tile__label { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding-right: 48px; }
.price-tile__amount { font-family: var(--serif); font-weight: 600; font-size: clamp(29.5px, 3.13vw, 42.5px); line-height: 1; }
.price-tile__go {
    position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 50%; background: rgba(255, 255, 255, .75); color: var(--ink); transition: transform .3s var(--ease);
}
.price-tile--3 .price-tile__go { background: rgba(255, 255, 255, .15); color: #fff; }
.price-tile__go .icon { width: 17px; height: 17px; transform: rotate(-45deg); }
.price-tile:hover .price-tile__go { transform: rotate(45deg); }

/* ---------- Why shop with us: a numbered list ---------- */
.promise { max-width: 1100px; margin-inline: auto; }
.promise__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.promise__item { display: grid; grid-template-columns: 40px 1fr; align-content: start; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--surface); }
.promise__num {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blush);
    font-family: var(--serif); font-weight: 700; font-size: 18.5px; line-height: 1; color: var(--accent-dark);
}
.promise h3 { font-family: var(--serif); font-weight: 700; font-size: 19.5px; line-height: 1.2; margin: 6px 0 6px; }
.promise p { color: var(--ink-2); }
.promise__sign { margin-top: 32px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 18.5px; color: var(--ink-2); }

/* ---------- Help: a dark band ---------- */
.help {
    position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: var(--ink); color: #fff;
}
.help::after { /* a soft pink glow in the corner */
    content: ''; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 139, 178, .35) 0%, rgba(233, 139, 178, 0) 70%); pointer-events: none;
}
.help .kicker { color: var(--rose); }
.help p { color: var(--on-plum-muted); margin-top: 8px; }
.help__copy, .help__actions { position: relative; z-index: 1; }
.help__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.help .btn--primary { background: #fff; border-color: #fff; color: var(--ink); }
.help .btn--primary:hover { background: var(--rose); border-color: var(--rose); }
.help__addr { display: inline-flex; align-items: center; gap: 6px; color: var(--on-plum-muted); }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(56px, 8vw, 96px); background: var(--surface); color: var(--ink); padding: 56px 0 24px; border-top: 1px solid var(--line-2); }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer__brand p { color: var(--muted); margin-top: 14px; max-width: 320px; }
.footer__col { display: flex; flex-direction: column; }
.footer__col h4 { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.footer__col a, .footer__col span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink-2); }
.footer__col a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer__col .icon { width: 17px; height: 17px; color: var(--accent); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--line-2); transition: background .2s, color .2s; }
.socials a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.footer__mega { display: none; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 11px; text-align: center; }

/* ---------- Bag drawer ---------- */
.drawer__items { flex: 1; overflow-y: auto; padding: 4px 22px; }
.drawer__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 56px 0; }
.drawer__empty .btn { margin-top: 14px; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--blush-2); }
.drawer__foot p { font-size: 11px; }
.drawer__total { display: flex; justify-content: space-between; font-size: 14.5px; }
.line, .co-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__img { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.line__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.line h4, .co-line h4 { font-size: 12px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line small, .co-line small { color: var(--muted); font-size: 11px; }
.line__qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line-2); background: #fff; }
.line__qty button { width: 40px; height: 40px; font-size: 15px; }
.line__qty span { min-width: 22px; text-align: center; font-weight: 600; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line__remove { min-height: 36px; font-size: 11px; color: var(--muted); text-decoration: underline; }
.line__remove:hover { color: var(--error); }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100% - 32px);
    padding: 12px 22px; background: var(--ink); color: #fff; font-size: 12px; box-shadow: var(--shadow);
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
body.has-buybar .toast { bottom: 96px; }

/* ---------- Page hero + breadcrumbs ---------- */
.page-hero { padding: 24px 0 8px; }
.page-hero--band { margin-top: 16px; padding: clamp(22px, 3.5vw, 40px); background: var(--surface); text-align: center; }
.page-hero--band .crumbs { justify-content: center; }
.page-hero--band .page-hero__chips > :first-child { margin-left: auto; } /* centred, but scrolls from the start when it overflows */
.page-hero--band .page-hero__chips > :last-child { margin-right: auto; }
.page-hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(31.5px, 4.42vw, 51.5px); line-height: 1.05; margin-top: 8px; overflow-wrap: anywhere; }
.page-hero__sub { color: var(--muted); margin-top: 6px; }
.page-hero__chips { margin-top: 18px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 11px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
.catalog__main { min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.toolbar__filters .icon { width: 18px; height: 18px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar__count { margin-left: auto; font-size: 12px; }

.filters { background: var(--surface); display: flex; flex-direction: column; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.filters__head h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.filters__block { padding: 22px; border-bottom: 1px solid var(--line); }
.filters__block:last-child { border-bottom: 0; }
.filters__block h3 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.filters__back { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; color: var(--accent); font-size: 12px; }
.filters__cats { list-style: none; margin: 0; padding: 0; }
.filters__cats a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--tap); padding: 0 12px; margin: 0 -12px; font-size: 12.5px; }
.filters__cats a:hover { background: var(--blush-2); }
.filters__cats a.is-active { color: var(--accent); font-weight: 700; background: var(--accent-soft); }
.filters__cats span { color: var(--muted); font-size: 11px; font-weight: 400; }
.price-range { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-range label { flex: 1; }
.price-range input { width: 100%; height: var(--tap); padding: 0 14px; border: 1px solid var(--line-2); background: var(--bg); outline: none; }
.price-range input:focus { border-color: var(--ink); background: #fff; }
.filters .chips { margin-bottom: 14px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.pager__num, .pager__btn { display: inline-grid; place-items: center; min-width: var(--tap); height: var(--tap); padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 12px; transition: border-color .2s; }
.pager__num:hover, .pager__btn:hover { border-color: var(--ink); }
.pager__num.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager__gap { padding: 0 4px; color: var(--muted); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 56px 20px; background: var(--surface); border: 1px solid var(--line-2); }
.empty h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; }
.empty .btn { margin-top: 8px; }
.empty--page { margin-top: 40px; border-style: solid; }
.empty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Product page ---------- */
.pdp { padding-top: 16px; }
.pdp__grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 12px; }
.pdp__gallery { min-width: 0; }
.pdp__stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: zoom-in; }
.pdp__stage .ph { background: transparent; }
.pdp__stage.is-zoomed img { transform: scale(2); }
.pdp__stage img.is-swapping { opacity: 0; }
.pdp__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.thumb { flex: none; width: 74px; border-radius: var(--radius-sm); background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.thumb .ph { background: transparent; }
.thumb.is-active { box-shadow: inset 0 0 0 1.5px var(--ink); }
.thumb .ph img { padding: 8%; }

.pdp__info { min-width: 0; }
.pdp__title { font-family: var(--serif); font-weight: 600; font-size: clamp(27.5px, 3.13vw, 38.5px); line-height: 1.08; margin: 6px 0 12px; overflow-wrap: anywhere; }
.pdp__rating { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 12px; color: var(--muted); }
.pdp__rating:hover { color: var(--accent); }
.pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 12px 0 22px; }
.pdp__price strong { font-family: var(--serif); font-size: 29.5px; font-weight: 700; }
.pdp__price s { color: var(--muted); font-size: 14.5px; }
.pdp__price s + .save, .pdp__price s ~ .save { margin-left: 2px; }
.pdp__price strong:has(+ s) { color: var(--accent); }
.save { padding: 3px 12px; background: var(--accent-soft); color: var(--accent-dark); font-size: 11px; font-weight: 700; }

.opt { margin-bottom: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.opt__head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 12px; font-size: 12px; }
.opt__head span { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.opt__head strong { font-weight: 500; color: var(--ink-2); }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); border: 3px solid #fff; outline: 1.5px solid var(--line-2); transition: outline-color .2s, transform .2s var(--ease); }
.swatch:hover { transform: scale(1.06); }
.swatch.is-active { outline: 2px solid var(--ink); }
.size { min-width: 52px; min-height: var(--tap); padding: 0 16px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 12px; transition: border-color .2s, background .2s; }
.size:hover { border-color: var(--ink); }
.size.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.swatch.is-out, .size.is-out { opacity: .35; cursor: not-allowed; }
.size.is-out { text-decoration: line-through; }
.swatch.is-out::after { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1.5px; background: var(--ink); transform: rotate(45deg); }

.stock { display: flex; align-items: center; gap: 8px; min-height: 24px; margin-bottom: 16px; font-size: 12px; font-weight: 600; color: var(--muted); }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.stock:empty { display: none; }
.stock--in { color: var(--ok); }
.stock--low { color: var(--warn); }
.stock--out, .stock--error { color: var(--error); }
.stock.is-error { animation: shake .4s; }

.pdp__buy { display: flex; gap: 10px; }
.pdp__buy .btn { min-height: 56px; font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); background: #fff; flex: none; }
.qty button { width: var(--tap); height: 52px; font-size: 17px; }
.qty input { width: 36px; text-align: center; border: 0; background: none; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp__ticks { list-style: none; margin: 20px 0 0; padding: 16px 18px; display: grid; gap: 10px; background: var(--blush-2); border: 1px solid var(--line); font-size: 12px; }
.pdp__ticks li { display: flex; align-items: center; gap: 10px; }
.pdp__ticks .icon { color: var(--accent); }
.pdp__ticks a { text-decoration: underline; text-underline-offset: 3px; }

.accordion { margin-top: 24px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; min-height: 60px; font-family: var(--serif); font-weight: 600; font-size: 19.5px; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform .25s var(--ease); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.prose { padding: 0 0 20px; color: var(--ink-2); overflow-wrap: anywhere; }
.prose p + p { margin-top: 10px; }
.prose h4 { font-size: 13px; margin: 16px 0 4px; color: var(--ink); }
.prose h4:first-child { margin-top: 0; }

/* Sticky add-to-bag bar (mobile) */
.buybar { display: none; }

/* Photo zoom dialog */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; }
.lightbox::backdrop { background: var(--overlay); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 24px; cursor: zoom-out; }
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--blush); }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.reviews__summary { padding: 26px; background: var(--surface); border: 1px solid var(--line-2); align-self: start; }
.reviews__avg { display: block; font-family: var(--serif); font-weight: 600; font-size: 51.5px; line-height: 1; margin-bottom: 6px; }
.reviews__bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 11px; }
.reviews__bars li { display: grid; grid-template-columns: 28px 1fr 28px; gap: 8px; align-items: center; }
.reviews__bar { height: 6px; background: var(--blush); border-radius: 3px; overflow: hidden; }
.reviews__bar i { display: block; height: 100%; background: var(--accent); }
.reviews__list .btn { margin-top: 16px; }
.stars { color: #a86b12; letter-spacing: 2px; font-size: 13px; }
.stars__off { color: var(--line-2); }
.review { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.review__head { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.review__title { font-size: 13px; margin-top: 8px; }
.review__text { margin-top: 6px; color: var(--ink-2); overflow-wrap: anywhere; }
.review__photos { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.review__photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.review__by { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 11px; }
.review__verified { color: var(--ok); font-weight: 600; }
.review__reply { margin-top: 12px; padding: 12px 14px; background: var(--blush-2); border-radius: 12px; font-size: 12px; }
.review__reply p { margin-top: 4px; }

/* ---------- Checkout ---------- */
.checkout { padding-top: 16px; }
.checkout__grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.co-form, .co-summary { background: var(--surface); padding: clamp(20px, 3vw, 32px); box-shadow: inset 0 0 0 1px var(--line); }
.co-summary { background: var(--blush-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.co-title { font-family: var(--serif); font-weight: 600; font-size: 26px; margin-bottom: 20px; }
.co-alert { padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; background: #fdecea; color: var(--error); font-weight: 600; font-size: 12px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 12px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 0;
    background: #fff; outline: none; font-size: 16px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field small { color: var(--error); font-size: 11px; }
.field small:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.co-pay { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--blush-2); border: 1px solid var(--line); }
.co-pay .icon { color: var(--accent); width: 24px; height: 24px; }
.co-pay strong, .co-pay span { display: block; }
.co-pay span { color: var(--muted); font-size: 12px; }
.co-issues { margin: 0 0 14px; padding: 12px 16px 12px 32px; background: #fff7e6; color: var(--warn); border-radius: 12px; font-size: 12px; }
.co-items:empty { min-height: 90px; }
.checkout.is-loading .co-items:empty { background: linear-gradient(90deg, var(--blush-2) 25%, var(--blush) 50%, var(--blush-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 12px; }
.checkout.is-loading .co-totals { opacity: .5; }
.co-line { grid-template-columns: 60px 1fr auto; }
.co-line:last-child { border-bottom: 0; }
.co-totals { margin: 12px 0 18px; padding-top: 12px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; transition: opacity .2s; }
.co-totals div { display: flex; justify-content: space-between; }
.co-totals dt { color: var(--muted); }
.co-totals dd { margin: 0; font-weight: 600; }
.co-totals__total { padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 16px; }
.co-totals__total dt { color: var(--ink); font-weight: 700; }
.co-totals__total dd { font-weight: 700; }
.co-note { margin-top: 10px; font-size: 11px; text-align: center; }
.co-done { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 56px 20px; background: var(--surface); border: 1px solid var(--line-2); }

/* Round icon used on checkout + contact */
.trust__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blush); color: var(--accent); flex: none; }
.trust__icon .icon { width: 22px; height: 22px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: 14px; padding-top: 24px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .25s, transform .3s var(--ease); }
a.info-card:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.info-card h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.info-card p { color: var(--muted); margin-top: 2px; }
.info-card--main { background: var(--blush-2); }
.info-card--main .btn { margin-top: 16px; }
.info-card--main .trust__icon { background: #fff; }

/* ---------- Keyframes ---------- */
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes bump { 50% { transform: scale(1.35); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Responsive (mobile first)
   ========================================================= */
@media (min-width: 640px) {
    :root { --gutter: 24px; }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 18px; }
    .rail__track { grid-auto-columns: 31%; gap: 18px; }
    .prices { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .promise__list { grid-template-columns: 1fr 1fr; }
    .cats { grid-auto-columns: 17%; gap: 18px; }
    .field-row { grid-template-columns: 1fr 1fr; }
    .contact { grid-template-columns: repeat(2, 1fr); }
    .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 961px) {
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
    .rail__track { grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
    .rail__btn { display: grid; }
    .cats { grid-auto-flow: row; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 22px; overflow: visible; margin-inline: 0; padding-inline: 0; }
    .promise__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .promise__item { grid-template-columns: 1fr; gap: 10px; padding: 26px 24px; }
    .panel { width: min(1200px, 100% - 2 * var(--gutter)); }
    .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
    .pdp__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
    .pdp__gallery { position: sticky; top: 150px; align-self: start; }
    .pdp__gallery:has(.pdp__thumbs) { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; }
    .pdp__gallery:has(.pdp__thumbs) .pdp__thumbs { order: -1; flex-direction: column; margin-top: 0; overflow-y: auto; max-height: 560px; }
    .reviews__grid { grid-template-columns: 300px 1fr; gap: 48px; }
    .checkout__grid { grid-template-columns: 1.3fr 1fr; gap: 32px; }
    .co-summary { position: sticky; top: 150px; }
    .contact { grid-template-columns: repeat(3, 1fr); }
    .contact .info-card--main { grid-row: span 2; }

    /* Catalog: filters become a sidebar */
    .catalog { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; }
    .catalog .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filters { position: sticky; top: 150px; align-self: start; box-shadow: inset 0 0 0 1px var(--line-2); max-height: calc(100vh - 170px); overflow-y: auto; }
    .filters__head, .toolbar__filters, .overlay--filters { display: none; }
}

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

@media (max-width: 960px) {
    html { scroll-padding-top: 130px; }
    .hide-sm { display: none !important; }

    /* Header: menu left, name centred, bag right; search underneath */
    .burger { display: inline-grid; margin-left: -10px; }
    .header__inner { min-height: 0; gap: 4px 6px; padding: 6px 0 12px; }
    .logo { flex: 1; justify-content: center; min-width: 0; }
    .header__actions { margin-left: 0; }
    .logo__word { font-size: 14.5px; }
    .logo__img { width: 36px; height: 36px; }
    .search { order: 3; flex-basis: 100%; max-width: none; min-width: 0; } /* never wider than the screen, even with large phone text */
    .search input { height: 44px; padding-right: 16px; font-size: 16px; } /* 16px stops iOS zooming in */
    .search__btn { display: none; }
    .search input { flex: 1; min-width: 0; width: auto; }
    .search.is-open .search__cancel { display: inline-flex; }

    /* Search panel: fills the screen under the search bar (positioned from the form, so it
       follows the header as it slides) */
    .search__results {
        top: calc(100% + 12px); left: calc(-1 * var(--gutter)); right: auto; width: 100vw;
        height: calc(100vh - var(--sr-top, 140px) - 12px); height: calc(100dvh - var(--sr-top, 140px) - 12px);
        max-height: none; padding: 6px var(--gutter) 0;
        border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none;
        overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    }
    .sr { grid-template-columns: 56px 1fr auto; padding: 8px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .sr:hover, .sr.is-active { background: none; }
    .sr-all { position: sticky; bottom: 0; justify-content: center; min-height: 56px; margin: 8px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); border-radius: 0; }
    body.search-open .header { box-shadow: none; }
    .nav, .mega { display: none; }

    /* Announcement: one message at a time */
    .announce__inner { min-height: 34px; font-size: 10.5px; }
    .js .announce__msg:not(.is-active) { display: none; }
    .js .announce__msg.is-active { animation: fadein .5s var(--ease); }

    /* Filters become a drawer */
    .filters {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 80; width: min(380px, 90vw);
        overflow-y: auto; transform: translateX(-100%); visibility: hidden;
        transition: transform .4s var(--ease), visibility 0s .4s;
    }
    body.filters-open .filters { transform: none; visibility: visible; transition: transform .4s var(--ease); }
    .toolbar__count { width: 100%; margin-left: 0; order: 3; }

    /* Product page: sticky add-to-bag bar */
    .buybar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
        display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: #fff; border-top: 1px solid var(--line-2);
    }
    .buybar__info { flex: 1; min-width: 0; }
    .buybar__info strong { display: block; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .buybar__info span { font-family: var(--serif); font-size: 15.5px; font-weight: 700; }
    .buybar .btn { min-height: 48px; padding: 0 22px; }
    body.has-buybar { padding-bottom: 78px; }
    .pdp__buy .btn--grow { min-width: 0; }
}

/* ---------- Phones ---------- */
@media (max-width: 639px) {
    .section { padding-top: 36px; }
    .section__head { margin-bottom: 16px; align-items: center; }
    .h2 { font-size: 27.5px; }
    .link-arrow { font-size: 11.5px; }

    /* Hero: the photo shows around a slightly narrower card */
    .hero__band { min-height: 0; padding: 44px 14px; }
    .hero__copy { padding: 30px 16px 26px; }
    .hero__kicker { font-size: 10px; letter-spacing: .18em; }
    .hero__title { margin: 14px 0 14px; }
    .hero__pre, .hero__post { font-size: 17.5px; }
    .hero__name { font-size: clamp(33px, 10.12vw, 42.5px); margin: 2px 0 8px; text-wrap: balance; }
    .hero__sub { font-size: 12.5px; }
    .hero__btns { flex-direction: column; gap: 6px; margin-top: 22px; }

    .marquee { padding: 10px 0; }
    .marquee span { font-size: 16.5px; }

    /* White panels run edge to edge */
    .container.panel { width: 100%; padding: 32px var(--gutter) 36px; border-radius: 0; }
    .tabs__list, .tabs__panel .chips {
        flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
        margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    }
    .tabs__list::-webkit-scrollbar, .tabs__panel .chips::-webkit-scrollbar { display: none; }
    .tabs__list > :first-child, .tabs__panel .chips > :first-child { margin-left: auto; } /* centred until they overflow */
    .tabs__list > :last-child, .tabs__panel .chips > :last-child { margin-right: auto; }
    .tabs__list { margin-top: 18px; margin-bottom: 12px; }
    .tabs__panel .chips { margin-bottom: 22px; }
    .tab { flex: none; padding: 0 14px; font-size: 11px; }

    .grid { gap: 30px 12px; }
    .card { gap: 10px; }
    .card__title { font-size: 11.5px; }
    .card__add { align-self: stretch; padding: 0 8px; }

    /* Price tiles: short */
    .prices { gap: 10px; }
    .price-tile { min-height: 132px; padding: 16px; gap: 14px; border-radius: 18px; }
    .price-tile__amount { font-size: 27.5px; }
    .price-tile__go { top: 12px; right: 12px; width: 34px; height: 34px; }

    .promise__list { margin-top: 24px; gap: 10px; }
    .promise__item { padding: 18px; }
    .promise h3 { font-size: 18.5px; }
    .promise__sign { margin-top: 24px; font-size: 15.5px; }

    .help { padding: 28px 22px; gap: 20px; border-radius: 22px; }
    .help__actions .btn { width: 100%; }

    /* Footer: Shop + Help side by side */
    .footer { padding-top: 40px; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .footer__brand, .footer__top > .footer__col:last-child { grid-column: 1 / -1; }

    .chip, .chips--sm .chip { min-height: var(--tap); }
}

@media (max-width: 400px) {
    .pdp__buy { flex-wrap: wrap; }
    .pdp__buy .btn--grow { flex-basis: 100%; order: -1; }
    .pdp__buy .qty { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
    .marquee__track { animation: none; }
    .js .reveal { opacity: 1; transform: none; }
}
