/* Hide number-input spinner buttons (used across admin & customer forms) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ==========================================================================
   ProSantaShop — main.css
   Design language: heritage / Hermes-meets-Christmas. Deep evergreen +
   cranberry + cream + gold. Custom CSS, no build step.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Palette */
    --evergreen-1: #0a1f12;
    --evergreen-2: #0d2818;
    --evergreen-3: #1a3a26;
    --evergreen-4: #2d5440;

    --cranberry-1: #7a1019;
    --cranberry-2: #a01622;
    --cranberry-3: #c41e3a;
    --cranberry-soft: #d63a52;

    --cream-1: #faf6ec;
    --cream-2: #f5efe0;
    --cream-3: #ece4d0;

    --gold-1: #b89548;
    --gold-2: #c9a961;
    --gold-3: #d4af37;
    --gold-soft: #e6cf94;

    --ink-1: #161616;
    --ink-2: #2a2a2a;
    --ink-3: #4a4441;
    --slate:  #6b6660;

    /* Semantic */
    --bg:        var(--cream-1);
    --bg-alt:    var(--cream-2);
    --surface:   #ffffff;
    --text:      var(--ink-1);
    --text-muted:var(--ink-3);
    --line:      rgba(13, 40, 24, 0.12);
    --line-soft: rgba(13, 40, 24, 0.06);

    /* Type */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing scale */
    --s-1:  0.25rem;
    --s-2:  0.5rem;
    --s-3:  0.75rem;
    --s-4:  1rem;
    --s-5:  1.5rem;
    --s-6:  2rem;
    --s-7:  2.5rem;
    --s-8:  3rem;
    --s-10: 4rem;
    --s-12: 6rem;
    --s-16: 8rem;

    /* Layout */
    --container:    1280px;
    --container-pad:1.5rem;

    /* Radius / shadow */
    --r-sm: 4px;
    --r:    10px;
    --r-lg: 18px;

    --shadow-1: 0 1px 2px rgba(13, 40, 24, .08);
    --shadow-2: 0 8px 28px -12px rgba(13, 40, 24, .25);
    --shadow-3: 0 20px 50px -20px rgba(13, 40, 24, .35);

    /* Header height — generous so the heraldic logo can read clearly */
    --header-h:        80px;
    --utility-h:       36px;
}

@media (min-width: 768px) {
    :root { --container-pad: 2.25rem; --header-h: 104px; }
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}
a:hover { color: var(--cranberry-2); }

button { font-family: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink-1);
}

p { margin: 0; }

:focus-visible {
    outline: 2px solid var(--gold-3);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection {
    background: var(--evergreen-3);
    color: var(--cream-1);
}

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

.skip-link {
    position: absolute;
    top: -40px; left: 0;
    background: var(--evergreen-2);
    color: var(--cream-1);
    padding: var(--s-2) var(--s-4);
    z-index: 1000;
}
.skip-link:focus { top: 0; }

/* ---------- Layout primitives ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.section { padding: var(--s-12) 0; }
@media (max-width: 767px) { .section { padding: var(--s-10) 0; } }

.section__head { margin-bottom: var(--s-8); }
.section__head--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section__head--row {
    display: flex; align-items: end; justify-content: space-between;
    gap: var(--s-5); flex-wrap: wrap;
}

.section__eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--cranberry-2);
    margin: 0 0 var(--s-3) 0;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}
.section__eyebrow--gold { color: var(--gold-1); }
.section__eyebrow::before {
    content: "";
    width: 28px; height: 1px;
    background: currentColor;
    display: inline-block;
}

.section__title {
    font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.85rem);
    margin-bottom: var(--s-4);
}

.section__lede {
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 auto;
    font-size: 1.05rem;
}
.section__head:not(.section__head--center) .section__lede { margin-left: 0; }

.link-arrow {
    font-weight: 500;
    color: var(--evergreen-2);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}
.link-arrow:hover { border-color: currentColor; color: var(--cranberry-2); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 0.85rem 1.4rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .12s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn--lg { padding: 1.05rem 1.85rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
    background: var(--cranberry-2);
    color: var(--cream-1);
    box-shadow: var(--shadow-1);
}
.btn--primary:hover { background: var(--cranberry-1); color: var(--cream-1); transform: translateY(-1px); box-shadow: var(--shadow-2); }

.btn--ghost {
    background: transparent;
    color: var(--evergreen-2);
    border-color: var(--evergreen-2);
}
.btn--ghost:hover { background: var(--evergreen-2); color: var(--cream-1); }

.btn--ghost-light {
    background: rgba(255,255,255,0.08);
    color: var(--cream-1);
    border-color: rgba(245, 239, 224, 0.5);
    backdrop-filter: blur(2px);
}
.btn--ghost-light:hover { background: var(--cream-1); color: var(--evergreen-2); border-color: var(--cream-1); }

/* ---------- Utility bar ---------- */
.utility-bar {
    background: var(--evergreen-1);
    color: var(--cream-2);
    font-size: 0.82rem;
    height: var(--utility-h);
    display: flex;
    align-items: center;
}
.utility-bar__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--s-4);
}
.utility-bar__msg {
    letter-spacing: 0.04em;
}
.utility-bar__link {
    color: var(--gold-2);
    font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.4em;
}
.utility-bar__link:hover { color: var(--cream-1); }
.utility-bar__sep { color: var(--gold-2); opacity: 0.6; }
@media (max-width: 600px) {
    .utility-bar__msg { display: none; }
    .utility-bar__inner { justify-content: center; gap: var(--s-2); }
}

/* ---------- Header ---------- */
.header {
    background: var(--cream-1);
    border-bottom: 1px solid var(--line-soft);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow .2s ease, background-color .2s ease;
}
.header.is-scrolled {
    box-shadow: var(--shadow-1);
    background: rgba(250, 246, 236, 0.96);
    backdrop-filter: saturate(140%) blur(8px);
}
.header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s-4);
    height: var(--header-h);
}
@media (max-width: 1023px) {
    .header__inner { grid-template-columns: auto auto; justify-content: space-between; }
    .nav { display: none; }
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}
.logo__img {
    display: block;
    width: auto;
    height: 64px;
    max-height: calc(var(--header-h) - 12px);
    object-fit: contain;
    transition: transform .2s ease;
}
@media (min-width: 768px) {
    .logo__img { height: 80px; }
}
@media (min-width: 1024px) {
    .logo__img { height: 88px; }
}
.logo:hover .logo__img { transform: translateY(-1px); }
.logo--footer .logo__img { height: 112px; max-height: none; }
.logo--menu  .logo__img { height: 72px;  max-height: none; }

.nav__list {
    display: flex;
    gap: var(--s-7);
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav { position: relative; }
.nav__item { position: static; }
.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: var(--s-2) 0;
    border-bottom: 1.5px solid transparent;
    letter-spacing: 0.01em;
    transition: color .2s ease, border-color .2s ease;
}
.nav__link:hover,
.nav__item:hover .nav__link,
.nav__item:focus-within .nav__link {
    color: var(--cranberry-2);
    border-color: var(--cranberry-2);
}
.nav__chev {
    transition: transform .2s ease;
    color: currentColor;
    opacity: .65;
}
.nav__item:hover .nav__chev,
.nav__item:focus-within .nav__chev { transform: rotate(180deg); opacity: 1; }

/* "Get Fitted" — accent CTA in the nav */
.nav__link--cta {
    color: var(--cranberry-2);
    font-weight: 600;
    border: 1.5px solid var(--cranberry-2);
    border-radius: 999px;
    padding: 0.4rem 1rem;
}
.nav__item--cta { display: flex; align-items: center; }
.nav__link--cta:hover,
.nav__item--cta:hover .nav__link--cta {
    background: var(--cranberry-2);
    color: #fff;
    border-color: var(--cranberry-2);
}

/* ---------- Desktop mega-menu ---------- */
.mega {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 8px);
    width: min(960px, calc(100vw - 32px));
    background: var(--cream-1);
    border: 1px solid rgba(13, 40, 24, .08);
    border-radius: 14px;
    box-shadow: 0 24px 60px -20px rgba(13, 40, 24, .35);
    padding: var(--s-5) var(--s-6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Delay close so the pointer can cross the gap / wander briefly without dropping the menu */
    transition: opacity .16s ease .18s, transform .16s ease .18s, visibility 0s linear .34s;
    z-index: 60;
}
/* Invisible bridge spanning the gap between the nav link and the panel so hover never breaks */
.mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -24px;
    height: 24px;
}
.nav__item.has-mega:hover > .mega,
.nav__item.has-mega:focus-within > .mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition: opacity .18s ease .05s, transform .18s ease .05s, visibility 0s linear .05s;
}
.mega__inner { padding: 0; }
.mega__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-4);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid rgba(13, 40, 24, .08);
    margin-bottom: var(--s-4);
}
.mega__eyebrow {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--evergreen-2);
    margin: 0;
    letter-spacing: 0.01em;
}
.mega__shop-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cranberry-2);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.mega__shop-all:hover { color: var(--cranberry-1); }
.mega__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--s-5);
    row-gap: 2px;
}
@media (min-width: 1280px) {
    .mega__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mega--wide { width: min(1100px, calc(100vw - 32px)); }
.mega__grid--all { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (min-width: 1280px) {
    .mega__grid--all { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
.mega__grid a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-3);
    padding: 12px 10px;
    border-radius: 8px;
    color: var(--ink-2);
    transition: background-color .15s ease, color .15s ease;
}
.mega__grid a:hover {
    background: var(--cream-2);
    color: var(--cranberry-2);
}
.mega__name {
    font-size: 1.05rem;
    font-weight: 500;
}
.mega__count {
    font-size: 0.72rem;
    color: var(--ink-3, rgba(0,0,0,.45));
    font-variant-numeric: tabular-nums;
    background: rgba(13, 40, 24, .06);
    padding: 1px 7px;
    border-radius: 999px;
    flex: none;
}
@media (max-width: 1023px) {
    .mega { display: none; }
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}
.header__icon {
    color: var(--ink-2);
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    position: relative;
    transition: background-color .2s ease;
}
.header__icon:hover { background: var(--cream-2); color: var(--evergreen-2); }

.header__cart-badge {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--cranberry-2);
    color: var(--cream-1);
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 999px;
    min-width: 16px;
    text-align: center;
}

.hamburger {
    display: none;
    background: transparent;
    border: 0;
    width: 40px; height: 40px;
    padding: 9px 8px;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    color: var(--evergreen-2);
}
.hamburger span {
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
    transform-origin: center;
}
@media (max-width: 1023px) {
    .hamburger { display: flex; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
}
.mobile-menu::before {
    content: "";
    position: absolute; inset: 0;
    background: rgba(10, 31, 18, 0.5);
    opacity: 0;
    transition: opacity .25s ease;
}
.mobile-menu__panel {
    position: absolute;
    top: 0; right: 0;
    width: min(420px, 92vw);
    height: 100%;
    background: var(--cream-1);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.32,.72,.31,1);
    display: flex;
    flex-direction: column;
    padding: var(--s-5) var(--s-6) var(--s-6);
    box-shadow: var(--shadow-3);
    overflow-y: auto;
}
.mobile-menu.is-open { pointer-events: auto; }
.mobile-menu.is-open::before { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--s-7);
}
.mobile-menu__close {
    background: transparent;
    border: 1px solid var(--line);
    width: 40px; height: 40px;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--evergreen-2);
}
.mobile-menu__close:hover { background: var(--evergreen-2); color: var(--cream-1); border-color: var(--evergreen-2); }

.mobile-nav {
    display: flex; flex-direction: column;
    border-top: 1px solid var(--line-soft);
    margin-bottom: var(--s-6);
}
.mobile-nav__row {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--evergreen-2);
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
}
.mobile-nav__row::-webkit-details-marker { display: none; }
.mobile-nav__row:hover { color: var(--cranberry-2); }
.mobile-nav__chev { color: var(--gold-2); font-size: 1.4rem; }
.mobile-nav__chev--toggle {
    transition: transform .2s ease;
    line-height: 1;
    width: 1.4rem;
    text-align: center;
}
.mobile-nav__group[open] > .mobile-nav__row .mobile-nav__chev--toggle { transform: rotate(45deg); color: var(--cranberry-2); }
.mobile-nav__group[open] > .mobile-nav__row { color: var(--cranberry-2); border-bottom-color: transparent; }
.mobile-nav__sub {
    list-style: none;
    margin: 0 0 var(--s-3);
    padding: 0 0 var(--s-2) var(--s-3);
    border-left: 2px solid var(--gold-2);
    border-bottom: 1px solid var(--line-soft);
}
.mobile-nav__sub li { display: block; }
.mobile-nav__sub a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-3);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: 10px 0;
    border-bottom: 1px dashed rgba(13, 40, 24, .08);
}
.mobile-nav__sub li:last-child a { border-bottom: 0; }
.mobile-nav__sub a:hover { color: var(--cranberry-2); }
.mobile-nav__sub-all {
    color: var(--cranberry-2) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.78rem !important;
    letter-spacing: 0.06em;
}
.mobile-nav__sub-count {
    font-size: 0.72rem;
    color: rgba(0,0,0,.5);
    font-variant-numeric: tabular-nums;
    background: rgba(13, 40, 24, .06);
    padding: 1px 7px;
    border-radius: 999px;
}

.mobile-menu__cta { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }

.mobile-menu__meta {
    margin-top: auto;
    padding-top: var(--s-5);
    border-top: 1px solid var(--line-soft);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3) var(--s-5);
    color: var(--text-muted);
    font-size: 0.92rem;
}

body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: var(--cream-1);
    overflow: hidden;
    isolation: isolate;
    padding: clamp(3.5rem, 5vw + 2rem, 7rem) 0 clamp(3.5rem, 4vw + 2rem, 6rem);
}
.hero__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 78% 18%, rgba(196, 30, 58, 0.22), transparent 55%),
        radial-gradient(ellipse at 12% 92%, rgba(201, 169, 97, 0.18), transparent 60%),
        linear-gradient(160deg, var(--evergreen-1) 0%, var(--evergreen-2) 50%, var(--evergreen-3) 100%);
    z-index: -2;
}
.hero__pattern {
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(245, 239, 224, 0.028) 0 1px, transparent 1px 14px),
        repeating-linear-gradient(-45deg, rgba(245, 239, 224, 0.028) 0 1px, transparent 1px 14px);
    z-index: -1;
}
.hero__sparkles {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.85;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-8);
    align-items: center;
}
@media (min-width: 900px) {
    .hero__inner {
        grid-template-columns: 1.1fr 0.9fr;
        gap: clamp(var(--s-7), 4vw, var(--s-12));
    }
}

.hero__copy { max-width: 640px; min-width: 0; }

.hero__logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 0 var(--s-7);
    background: var(--cream-1);
    border: 2px solid var(--gold-2);
    border-radius: 18px;
    padding: 1.1rem 1.8rem;
    box-shadow:
        0 0 0 6px rgba(201, 169, 97, 0.18),
        0 0 60px rgba(201, 169, 97, 0.25),
        0 26px 60px -20px rgba(0, 0, 0, 0.65);
}
.hero__logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: clamp(110px, 7vw + 64px, 175px);
    object-fit: contain;
}

/* On the home page the hero carries the big logo — keep the title-bar logo
   hidden until the visitor scrolls, then fade it in. */
.page-home .header .logo { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.page-home .header.is-scrolled .logo { opacity: 1; pointer-events: auto; }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold-2);
    margin-bottom: var(--s-5);
}
.hero__eyebrow-mark {
    width: 36px; height: 1px;
    background: currentColor;
    display: inline-block;
}

.hero__title {
    font-size: clamp(2rem, 1.1rem + 4vw, 4.5rem);
    font-weight: 700;
    line-height: 1.04;
    margin-bottom: var(--s-5);
    color: var(--cream-1);
    letter-spacing: -0.02em;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}
.hero__amp {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-2);
    margin: 0 0.05em;
}
.hero__title-accent {
    display: block;
    color: var(--gold-soft);
    font-style: italic;
    font-weight: 500;
    font-size: 0.5em;
    line-height: 1.25;
    letter-spacing: -0.005em;
    margin-top: var(--s-3);
    padding-top: var(--s-3);
    border-top: 1px solid rgba(201, 169, 97, 0.32);
    max-width: 28ch;
}

.hero__lede {
    font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem);
    color: rgba(245, 239, 224, 0.85);
    max-width: 52ch;
    margin-bottom: var(--s-7);
    line-height: 1.6;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-3);
    margin-bottom: var(--s-7);
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4) var(--s-6);
    color: rgba(245, 239, 224, 0.78);
    font-size: 0.9rem;
}
.hero__chips li { display: inline-flex; gap: 0.5rem; align-items: center; }
.hero__chips span { color: var(--gold-2); font-weight: 700; }

/* Hero portrait */
.hero__art {
    position: relative;
    margin: 0;
    justify-self: center;
    width: 100%;
    max-width: 480px;
}
@media (min-width: 900px) {
    .hero__art { justify-self: end; max-width: 520px; }
}
.hero__art-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 4px;
    overflow: hidden;
    background: var(--evergreen-1);
    box-shadow:
        0 30px 60px -25px rgba(0,0,0,0.55),
        0 0 0 1px rgba(201,169,97,0.18) inset;
}
.hero__art-frame::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 55%, rgba(10, 31, 18, 0.35) 100%),
        radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,0.25) 100%);
}
.hero__art-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}
.hero__art-rule {
    position: absolute;
    left: var(--s-5); right: var(--s-5);
    bottom: var(--s-5);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-2) 30%, var(--gold-2) 70%, transparent);
    opacity: 0.7;
    z-index: 2;
}
.hero__art-cap {
    display: flex; flex-direction: column; gap: 2px;
    margin-top: var(--s-4);
    padding-left: var(--s-4);
    border-left: 2px solid var(--gold-2);
}
.hero__art-tag {
    color: var(--cream-1);
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}
.hero__art-meta {
    color: rgba(245, 239, 224, 0.6);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------- Categories ---------- */
.categories { background: var(--bg); }

.cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0 var(--s-7);
}
.cat-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 0.25rem;
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line-soft);
    transition: color .15s ease, padding-left .2s ease;
}
.cat-list a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-2);
    flex: none;
    transition: background-color .15s ease;
}
.cat-list a:hover {
    color: var(--cranberry-2);
    padding-left: 0.6rem;
}
.cat-list a:hover::before { background: var(--cranberry-2); }
@media (max-width: 719px) {
    .cat-list { grid-template-columns: repeat(2, 1fr); gap: 0 var(--s-4); }
    .cat-list a { font-size: 0.95rem; gap: 0.5rem; }
}

/* ---------- How (steps) ---------- */
.how {
    background: var(--evergreen-2);
    color: var(--cream-1);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.how::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 90% 0%, rgba(201, 169, 97, 0.12), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(196, 30, 58, 0.10), transparent 55%);
    z-index: -1;
}
.how.section { padding: clamp(5rem, 5vw + 3rem, 8rem) 0; }
.how .section__title { color: var(--cream-1); font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); text-wrap: balance; }
.how .section__lede  { color: rgba(245, 239, 224, 0.82); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); }

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-7);
    counter-reset: step;
    margin-top: var(--s-8);
}
@media (min-width: 720px) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
}
.step {
    position: relative;
    padding: var(--s-8) var(--s-6) var(--s-7);
    border: 1px solid rgba(245, 239, 224, 0.22);
    border-radius: var(--r);
    background: linear-gradient(170deg, var(--cranberry-2) 0%, var(--cranberry-1) 100%);
    box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.6);
}
.step__num {
    position: absolute;
    top: -20px;
    left: var(--s-6);
    background: var(--gold-2);
    color: var(--evergreen-1);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
}
.step__icon {
    color: var(--gold-soft);
    width: 72px; height: 72px;
    margin-bottom: var(--s-5);
}
.step__icon svg { width: 100%; height: 100%; }
.step__title {
    font-size: 1.9rem;
    color: var(--cream-1);
    margin-bottom: var(--s-3);
}
.step__body { color: rgba(245, 239, 224, 0.92); font-size: 1.08rem; line-height: 1.6; }

/* ---------- Product cards (shared by featured + shop) ---------- */
.featured { background: var(--cream-1); }

.prod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6) var(--s-5);
}
@media (min-width: 900px) {
    .prod-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-7) var(--s-6); }
}
.prod-grid--featured { gap: var(--s-7) var(--s-5); }
@media (min-width: 900px) {
    .prod-grid--featured { grid-template-columns: repeat(3, 1fr); gap: var(--s-8) var(--s-6); }
}

.prod { text-align: left; min-width: 0; }
.prod__name {
    overflow-wrap: break-word;
    word-break: break-word;
}

.prod__art {
    aspect-ratio: 4 / 5;
    border-radius: var(--r);
    margin-bottom: var(--s-4);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 30%, var(--cream-1) 0%, var(--cream-2) 60%, var(--cream-3) 100%);
    box-shadow:
        0 1px 2px rgba(13, 40, 24, 0.06),
        inset 0 0 0 1px rgba(13, 40, 24, 0.05);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.prod__art::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 100%, rgba(13,40,24,0.10), transparent 55%);
    z-index: 2;
}
.prod:hover .prod__art {
    transform: translateY(-4px);
    box-shadow:
        0 18px 32px -18px rgba(13, 40, 24, 0.30),
        inset 0 0 0 1px rgba(13, 40, 24, 0.05);
}

.prod__tag {
    position: absolute;
    top: var(--s-3); left: var(--s-3);
    background: var(--evergreen-2);
    color: var(--gold-soft);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 5px 11px;
    border-radius: 999px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(13, 40, 24, 0.18);
}
.prod__tag--rts { background: var(--cranberry-2); color: var(--cream-1); }

.prod__hover {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    text-align: center;
    padding: var(--s-3);
    background: linear-gradient(180deg, transparent, rgba(13, 40, 24, 0.85));
    color: var(--cream-1);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}
.prod:hover .prod__hover { opacity: 1; transform: translateY(0); }

.prod__name {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink-1);
    flex: 1;
    transition: color .2s ease;
}
.prod-grid--featured .prod__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
}
.prod__meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-3);
    padding-top: var(--s-1);
    border-top: 1px solid var(--line-soft);
}
.prod-grid--featured .prod__meta-row {
    border-top: 1px solid rgba(160, 22, 34, 0.18);
    padding-top: var(--s-3);
}

.prod__price {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--cranberry-2);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    letter-spacing: 0.005em;
}

/* ---------- About ---------- */
.about {
    background: var(--cream-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.about__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-8);
    align-items: center;
}
@media (min-width: 900px) {
    .about__inner { grid-template-columns: 1.05fr 1fr; gap: var(--s-12); }
}
.about__copy p {
    color: var(--ink-2);
    font-size: 1.05rem;
    margin-bottom: var(--s-4);
    max-width: 56ch;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
}
.stat {
    background: var(--surface);
    padding: var(--s-6) var(--s-5);
    text-align: center;
}
.stat__num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.5rem + 1.5vw, 2.6rem);
    font-weight: 700;
    color: var(--cranberry-2);
    line-height: 1;
    margin-bottom: var(--s-2);
}
.stat__label {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

/* ---------- Reviews ---------- */
/* ---------- Mission (Our Goal) ---------- */
.mission {
    background:
        radial-gradient(ellipse at 15% 10%, rgba(201, 169, 97, 0.10), transparent 55%),
        radial-gradient(ellipse at 85% 90%, rgba(196, 30, 58, 0.08), transparent 55%),
        linear-gradient(160deg, var(--evergreen-1) 0%, var(--evergreen-2) 100%);
    color: var(--cream-1);
}
.mission__inner { max-width: 820px; text-align: center; }
.mission__lead {
    font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.9rem);
    color: var(--cream-1);
    line-height: 1.2;
    margin: var(--s-3) 0 0;
    text-wrap: balance;
}
.mission__rule {
    display: block;
    width: 72px;
    height: 2px;
    background: var(--gold-2);
    margin: var(--s-6) auto;
}
.mission__body {
    color: rgba(245, 239, 224, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 0 var(--s-4);
}

.reviews { background: var(--cream-1); }
.rev-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
    margin-top: var(--s-7);
}
@media (min-width: 800px) {
    .rev-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
}
.rev {
    background: var(--surface);
    padding: var(--s-6);
    border-radius: var(--r);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-1);
    margin: 0;
}
.rev__stars { color: var(--gold-2); font-size: 1rem; letter-spacing: 0.15em; margin-bottom: var(--s-3); }
.rev blockquote {
    margin: 0 0 var(--s-4);
    font-family: var(--font-display);
    font-size: 1.08rem;
    line-height: 1.55;
    color: var(--ink-1);
    font-style: italic;
}
.rev figcaption { font-size: 0.92rem; color: var(--text-muted); }
.rev figcaption strong { color: var(--evergreen-2); font-weight: 600; }

/* ---------- Live help ---------- */
.livehelp {
    background:
        linear-gradient(160deg, var(--cranberry-1) 0%, var(--cranberry-2) 100%);
    color: var(--cream-1);
    position: relative;
    overflow: hidden;
}
.livehelp::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 90% 50%, rgba(201, 169, 97, 0.18), transparent 55%);
    pointer-events: none;
}
.livehelp__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-7);
    align-items: center;
}
@media (min-width: 900px) {
    .livehelp__inner { grid-template-columns: 1.4fr 1fr; gap: var(--s-10); }
}
.livehelp .section__title { color: var(--cream-1); }
.livehelp .section__eyebrow { color: var(--gold-soft); }
.livehelp__copy p { color: rgba(245, 239, 224, 0.9); font-size: 1.05rem; max-width: 50ch; }
.livehelp__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.btn--gold {
    background: var(--gold-2);
    color: var(--evergreen-1);
    border: 1.5px solid var(--gold-2);
    font-weight: 700;
}
.btn--gold:hover {
    background: var(--gold-soft);
    border-color: var(--gold-soft);
    color: var(--evergreen-1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

#zoomBook [hidden] { display: none !important; }
.zoom-form { width: 100%; max-width: 420px; }
.zoom-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
}
@media (max-width: 480px) {
    .zoom-form__grid { grid-template-columns: 1fr; }
}
.zoom-form label { display: flex; flex-direction: column; gap: 0.3rem; }
.zoom-form label span {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(245, 239, 224, 0.85);
}
.zoom-form input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(245, 239, 224, 0.35);
    border-radius: 8px;
    background: var(--cream-1);
    color: var(--ink-1);
    font: inherit;
    font-size: 0.95rem;
}
.zoom-form input:focus {
    outline: 2px solid var(--gold-2);
    outline-offset: 1px;
    border-color: var(--gold-2);
}
.zoom-form__note { font-size: 0.85rem !important; color: rgba(245, 239, 224, 0.7) !important; margin-top: var(--s-3); }
.zoom-form__msg { font-size: 1rem !important; font-weight: 600; margin-top: var(--s-3); color: #ffd9de !important; }
.zoom-form__msg.is-ok { color: var(--gold-soft) !important; }
.zoom-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    color: #15294d;
    font-weight: 600;
    font-size: 0.92em;
    padding: 0.12em 0.6em 0.12em 0.45em;
    border-radius: 999px;
    vertical-align: baseline;
    transform: translateY(-1px);
}
.zoom-badge svg { width: 1.1em; height: 1.1em; flex: none; }
.livehelp__zoom-note { font-size: 0.92rem !important; color: rgba(245, 239, 224, 0.72) !important; }
.livehelp__zoom-note a {
    color: var(--gold-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.livehelp__zoom-note a:hover { color: var(--cream-1); }

/* ---------- Partner referral (Beards & Wigs → Custom Wig Company) ---------- */
.partner { padding: var(--s-10) 0 var(--s-12); }
.partner-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    background:
        radial-gradient(ellipse at 85% 15%, rgba(201, 169, 97, 0.16), transparent 55%),
        linear-gradient(160deg, var(--evergreen-1) 0%, var(--evergreen-2) 60%, var(--evergreen-3) 100%);
    color: var(--cream-1);
    padding: clamp(2.5rem, 5vw, 5rem);
    box-shadow: 0 28px 60px -28px rgba(13, 40, 24, 0.55);
    border: 1px solid rgba(201, 169, 97, 0.35);
}
.partner-card__copy { max-width: 640px; margin: 0 auto; text-align: center; }
.partner-card__title {
    font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem);
    color: var(--cream-1);
    margin: var(--s-3) 0 var(--s-4);
    text-wrap: balance;
}
.partner-card__lede {
    color: rgba(245, 239, 224, 0.85);
    font-size: 1.08rem;
    line-height: 1.65;
    margin-bottom: var(--s-6);
}
.partner-card__cta { display: flex; justify-content: center; }
.partner-card__note {
    margin-top: var(--s-4);
    font-size: 0.85rem;
    color: rgba(245, 239, 224, 0.65);
}

/* ---------- Welcome popup (mailing list + 10% code) ---------- */
.wpop[hidden] { display: none !important; }
.wpop {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: var(--s-4);
    opacity: 0;
    transition: opacity .25s ease;
}
.wpop.is-open { opacity: 1; }
.wpop__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 18, 0.72);
    backdrop-filter: blur(3px);
}
.wpop__card {
    position: relative;
    width: min(480px, 100%);
    background: var(--cream-1);
    border: 1px solid rgba(201, 169, 97, 0.55);
    border-radius: 18px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
    padding: var(--s-7) var(--s-6) var(--s-6);
    text-align: center;
    transform: translateY(14px);
    transition: transform .25s ease;
}
.wpop.is-open .wpop__card { transform: translateY(0); }
.wpop__close {
    position: absolute;
    top: 10px; right: 14px;
    background: none;
    border: 0;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--slate);
    cursor: pointer;
    padding: 6px;
}
.wpop__close:hover { color: var(--cranberry-2); }
.wpop__logo {
    display: block;
    height: 84px;
    width: auto;
    margin: 0 auto var(--s-4);
}
.wpop__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-1);
    margin-bottom: var(--s-2);
}
.wpop__title {
    font-size: 1.8rem;
    color: var(--evergreen-2);
    margin-bottom: var(--s-3);
    text-wrap: balance;
}
.wpop__sub {
    color: var(--ink-3);
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: var(--s-5);
}
.wpop__form { display: flex; gap: var(--s-2); }
.wpop__form input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 0.95rem;
}
.wpop__form input:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.wpop__form .btn { white-space: nowrap; }
@media (max-width: 480px) {
    .wpop__form { flex-direction: column; }
}
.wpop__error { color: var(--cranberry-2); font-size: 0.9rem; margin-top: var(--s-3); font-weight: 500; }
.wpop__fine {
    margin-top: var(--s-4);
    font-size: 0.78rem;
    color: var(--slate);
    letter-spacing: 0.02em;
}
.wpop__code {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--evergreen-2);
    background: var(--cream-2);
    border: 2px dashed var(--gold-2);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    display: inline-block;
    margin-bottom: var(--s-4);
    user-select: all;
}

/* ---------- Cart discount box ---------- */
.cart-discount { display: flex; gap: var(--s-3); align-items: stretch; margin: var(--s-4) 0 var(--s-5); }
.cart-discount input {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.cart-discount .btn {
    flex: none;
    padding: 0 1.35rem;
    border-radius: 10px;
    align-self: stretch;
}
.cart-summary .btn--block { margin-top: 0; }
.cart-discount--applied { justify-content: flex-end; margin: var(--s-2) 0 var(--s-5); }
.cart-discount__remove {
    background: none;
    border: 0;
    color: var(--slate);
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 2px;
}
.cart-discount__remove:hover { color: var(--cranberry-2); }
.cart-summary__discount dt, .cart-summary__discount dd { color: var(--evergreen-4); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
    background: var(--evergreen-1);
    color: rgba(245, 239, 224, 0.8);
    padding-top: var(--s-12);
}
.footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-7) var(--s-8);
    padding-bottom: var(--s-10);
}
.footer__col { min-width: 0; }
@media (min-width: 700px) {
    .footer__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
    .footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.footer__col--brand .logo--footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-1);
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(13, 40, 24, .08), 0 2px 8px rgba(0,0,0,.18);
}
.footer__tag {
    margin-top: var(--s-4);
    color: rgba(245, 239, 224, 0.65);
    max-width: 32ch;
    font-size: 0.92rem;
}
.footer__social {
    display: flex; gap: var(--s-3);
    margin-top: var(--s-5);
}
.footer__social a {
    width: 40px; height: 40px;
    border: 1px solid rgba(245, 239, 224, 0.18);
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--cream-1);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.footer__social a:hover {
    background: var(--gold-2);
    color: var(--evergreen-1);
    border-color: var(--gold-2);
}

.footer__heading {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold-2);
    margin-bottom: var(--s-4);
}
.footer__col ul li { margin-bottom: var(--s-3); }
.footer__col a { color: rgba(245, 239, 224, 0.78); font-size: 0.95rem; }
.footer__col a:hover { color: var(--cream-1); }

.footer__newsletter-tag {
    color: rgba(245, 239, 224, 0.7);
    font-size: 0.92rem;
    margin-bottom: var(--s-4);
    max-width: 30ch;
}
.newsletter {
    display: flex;
    gap: var(--s-2);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 239, 224, 0.18);
    border-radius: 999px;
    padding: 5px;
    transition: border-color .2s ease;
}
.newsletter:focus-within { border-color: var(--gold-2); }
.newsletter input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    padding: 0.65rem 1rem;
    color: var(--cream-1);
    font-size: 0.95rem;
    font-family: inherit;
}
.newsletter input::placeholder { color: rgba(245, 239, 224, 0.45); }
.newsletter input:focus { outline: 0; }
.newsletter .btn { padding: 0.7rem 1.2rem; font-size: 0.9rem; }

.footer__bar {
    border-top: 1px solid rgba(245, 239, 224, 0.08);
    padding: var(--s-5) 0;
}
.footer__bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-4);
    color: rgba(245, 239, 224, 0.55);
    font-size: 0.85rem;
}
.footer__legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.footer__legal a { color: rgba(245, 239, 224, 0.7); }
.footer__legal a:hover { color: var(--cream-1); }

/* ---------- 404 ---------- */
.error-page {
    min-height: calc(100vh - var(--header-h) - var(--utility-h) - 200px);
    display: flex; align-items: center;
}
.error-page__inner { text-align: center; max-width: 540px; margin: 0 auto; padding: var(--s-10) 0; }
.error-page .btn { margin-top: var(--s-5); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--s-5);
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.4rem;
}
.breadcrumb a { color: var(--evergreen-2); }
.breadcrumb a:hover { color: var(--cranberry-2); }
.breadcrumb__sep { color: var(--gold-2); }
.breadcrumb__current { color: var(--ink-1); font-weight: 500; }

/* ---------- Shop hero ---------- */
.shop-hero {
    background: var(--cream-2);
    padding: var(--s-10) 0 var(--s-7);
    border-bottom: 1px solid var(--line-soft);
}
.shop-hero__title {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
    margin-bottom: var(--s-3);
}
.shop-hero__lede { color: var(--text-muted); max-width: 60ch; font-size: 1.05rem; }
.shop-hero__meta {
    margin-top: var(--s-4);
    color: var(--slate);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ---------- Shop master overview (only when no category/search) ---------- */
.shop-master {
    padding: var(--s-9) 0 var(--s-7);
    border-bottom: 1px solid var(--line-soft);
}
.shop-master__head { text-align: center; max-width: 720px; margin: 0 auto var(--s-7); }
.shop-master__head .section__title { margin-bottom: var(--s-3); }
.shop-master__lede { color: var(--text-muted); }
.shop-master__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--s-5);
}
.master-col {
    background: var(--cream-1);
    border: 1px solid rgba(13, 40, 24, .08);
    border-radius: 14px;
    padding: var(--s-5) var(--s-5) var(--s-4);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.master-col:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -22px rgba(13, 40, 24, .35);
    border-color: var(--gold-2);
}
.master-col__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-3);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--line-soft);
}
.master-col__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--evergreen-2);
    letter-spacing: 0.01em;
}
.master-col__count {
    font-size: 0.78rem;
    color: var(--cranberry-2);
    font-weight: 600;
    background: rgba(157, 28, 28, .08);
    padding: 3px 10px;
    border-radius: 999px;
    flex: none;
    font-variant-numeric: tabular-nums;
}
.master-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.master-col__list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-3);
    padding: 7px 0;
    color: var(--ink-2);
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(13, 40, 24, .08);
}
.master-col__list li:last-child a { border-bottom: 0; }
.master-col__list a:hover { color: var(--cranberry-2); }
.master-col__sub-count {
    font-size: 0.72rem;
    color: rgba(0,0,0,.5);
    font-variant-numeric: tabular-nums;
    background: rgba(13, 40, 24, .06);
    padding: 1px 7px;
    border-radius: 999px;
}

/* ---------- Shop layout ---------- */
/* Big screens have room to spare — let the shop browsing pages breathe so
   product photos render larger. The rest of the site keeps --container. */
@media (min-width: 1440px) {
    .shop-hero__inner,
    .shop-master.container,
    .shop.container,
    .partner.container,
    .product-page__inner.container { max-width: min(1720px, calc(100vw - 10rem)); }
    .shop { grid-template-columns: 260px 1fr; }
}
.shop {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--s-8);
    /* keep .container's side gutters — a bare "0" here left phones/tablets flush to the edge */
    padding: var(--s-8) var(--container-pad) var(--s-12);
    align-items: start;
}
@media (max-width: 900px) {
    .shop { grid-template-columns: 1fr; gap: var(--s-5); }
    /* Products first on phones; filters become a compact set of closed
       accordions below the grid. Category nav happens via the chip strip. */
    .shop__main    { order: 1; }
    .shop__filters { order: 2; }
}

/* Horizontal category chips — phones only */
.shop-chips { display: none; }
@media (max-width: 900px) {
    .shop-chips { display: block; margin-bottom: var(--s-2); }
    .shop-chips__row {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 2px 8px;
    }
    .shop-chips__row::-webkit-scrollbar { display: none; }
    .shop-chip {
        flex: none;
        white-space: nowrap;
        padding: 0.5rem 0.95rem;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: #fff;
        color: var(--ink-2);
        font-size: 0.88rem;
        font-weight: 500;
    }
    .shop-chip.is-active {
        background: var(--cranberry-2);
        border-color: var(--cranberry-2);
        color: #fff;
        font-weight: 600;
    }
    .shop-chips__row--sub .shop-chip { background: var(--cream-2); font-size: 0.82rem; }
}

.shop__filters {
    display: flex; flex-direction: column; gap: var(--s-4);
    position: sticky;
    top: calc(var(--header-h) + var(--s-4));
    align-self: start;
}
@media (max-width: 900px) {
    .shop__filters { position: static; }
}

.shop-filter {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    padding: var(--s-4) var(--s-5);
}
.shop-filter > summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--evergreen-2);
    padding: 0;
    margin-bottom: var(--s-3);
    display: flex; justify-content: space-between; align-items: center;
}
.shop-filter > summary::-webkit-details-marker { display: none; }
.shop-filter > summary::after {
    content: "+";
    font-family: var(--font-body);
    color: var(--gold-2);
    font-size: 1.2rem;
}
.shop-filter[open] > summary::after { content: "−"; }
.shop-filter__list { display: flex; flex-direction: column; gap: 2px; }
.shop-filter__list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--s-2) 0;
    color: var(--ink-2);
    font-size: 0.92rem;
    border-bottom: 1px dashed transparent;
}
.shop-filter__list a:hover { color: var(--cranberry-2); }
.shop-filter__list a.is-active { color: var(--cranberry-2); font-weight: 600; }
.shop-filter__count {
    color: var(--slate);
    font-size: 0.78rem;
    background: var(--cream-2);
    padding: 1px 8px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.shop-filter__search { display: flex; flex-direction: column; gap: var(--s-3); }
.shop-filter__search input {
    font: inherit;
    padding: 0.55rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    width: 100%;
}
.shop-filter__search input:focus {
    outline: none;
    border-color: var(--evergreen-3);
    box-shadow: 0 0 0 3px rgba(13,40,24,.1);
}

.shop__main { min-width: 0; }
.shop__toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: var(--s-5);
    gap: var(--s-4);
    flex-wrap: wrap;
}
.shop__count { color: var(--text-muted); font-size: 0.95rem; }
.shop__sort { display: flex; align-items: center; gap: var(--s-2); }
.shop__sort label { font-size: 0.85rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.12em; }
.shop__sort select {
    font: inherit;
    padding: 0.4rem 0.7rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}

.prod-grid--shop .prod__meta-row {
    display: block;
}
.prod-grid--shop .prod__name { margin: 0 0 2px; }
.prod-grid--shop .prod__price { margin: 0; }
.prod__pack {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.prod-grid--shop {
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .prod-grid--shop { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .prod-grid--shop { grid-template-columns: repeat(4, 1fr); } }

.prod__link { display: block; color: var(--ink-1); }
.prod__link:hover { color: var(--ink-1); }
.prod__link:hover .prod__name { color: var(--cranberry-2); }
.prod__art--photo {
    /* shared cream gradient already set on .prod__art; just keep ::after vignette */
}
.prod__art--photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    z-index: 1;
    filter: contrast(1.02) saturate(1.02);
}
.prod__art-empty {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--slate);
    font-size: 0.85rem;
}

.shop__empty {
    text-align: center;
    padding: var(--s-12) var(--s-5);
    background: var(--cream-2);
    border-radius: var(--r);
    border: 1px dashed var(--line);
}
.shop__empty h2 { font-size: 1.5rem; margin-bottom: var(--s-3); }
.shop__empty p  { color: var(--text-muted); margin-bottom: var(--s-5); }

.pager {
    display: flex; align-items: center; justify-content: center; gap: var(--s-5);
    margin-top: var(--s-8);
    color: var(--text-muted);
    font-size: 0.95rem;
}
.pager__btn {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-1);
    font-weight: 500;
}
.pager__btn:hover { color: var(--cranberry-2); border-color: var(--cream-3); }
.pager__btn.is-disabled { color: var(--line); border-color: var(--line-soft); pointer-events: none; }

/* ---------- Product detail ---------- */
.product-page { background: var(--cream-1); }
.product-page__inner { padding: var(--s-7) 0 var(--s-12); }

.product-detail {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--s-10);
    align-items: start;
}
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; gap: var(--s-7); } }

.product-gallery {
    position: sticky;
    top: calc(var(--header-h) + var(--s-4));
    align-self: start;
}
@media (max-width: 900px) { .product-gallery { position: static; } }

.product-gallery__main {
    position: relative;
    background:
        radial-gradient(ellipse at 50% 30%, var(--cream-1) 0%, var(--cream-2) 60%, var(--cream-3) 100%);
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow:
        0 24px 48px -28px rgba(13, 40, 24, 0.32),
        inset 0 0 0 1px rgba(13, 40, 24, 0.05);
}
.product-gallery__main img,
.product-gallery__main video,
.product-gallery__main .product-gallery__media {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    background: #000;
}
.product-gallery__main video { background: #000; object-fit: contain; }
.product-gallery__empty {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--slate);
    gap: var(--s-2);
}
.product-gallery__empty span { font-size: 2rem; color: var(--gold-2); }
.product-gallery__empty p { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; }
.product-gallery__corner {
    position: absolute;
    top: var(--s-4); right: var(--s-4);
    width: 28px; height: 28px;
    border-top: 1px solid var(--gold-2);
    border-right: 1px solid var(--gold-2);
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
}
.product-tag {
    position: absolute;
    top: var(--s-4); left: var(--s-4);
    background: var(--cream-1);
    color: var(--evergreen-2);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: var(--shadow-1);
}
.product-tag--custom { background: var(--cranberry-2); color: var(--cream-1); }

.product-gallery__thumbs {
    display: flex;
    gap: var(--s-2);
    margin-top: var(--s-4);
    overflow-x: auto;
    padding-bottom: var(--s-1);
}
.product-gallery__thumbs .thumb {
    flex: 0 0 80px;
    width: 80px; height: 100px;
    padding: 0;
    background: var(--cream-2);
    border: 2px solid transparent;
    border-radius: var(--r-sm);
    overflow: hidden;
    cursor: pointer;
}
.product-gallery__thumbs .thumb img,
.product-gallery__thumbs .thumb video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-gallery__thumbs .thumb.is-active { border-color: var(--cranberry-2); }
.product-gallery__thumbs .thumb:hover { border-color: var(--gold-2); }

/* Video thumb — render the clip's first frame with a big ▶ overlay so it reads
   as a video at a glance. Click swaps the main viewer to an inline player. */
.product-gallery__thumbs .thumb--video {
    position: relative;
    background: #000;
}
.product-gallery__thumbs .thumb--video video {
    pointer-events: none;
}
.product-gallery__thumbs .thumb--video .thumb__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
    background: rgba(0,0,0,.18);
    pointer-events: none;
}
.product-gallery__thumbs .thumb--video:hover .thumb__play {
    background: rgba(0,0,0,.05);
}

.product-info__eyebrow {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    flex-wrap: wrap;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cranberry-2);
    margin-bottom: var(--s-3);
}
.product-info__eyebrow-sep { color: var(--gold-2); opacity: 0.7; }
.product-info__title {
    font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: var(--s-5);
    letter-spacing: -0.015em;
    color: var(--evergreen-2);
}
.product-info__price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-4);
    flex-wrap: wrap;
    padding: var(--s-4) 0;
    margin-bottom: var(--s-5);
    border-top: 1px solid rgba(160, 22, 34, 0.18);
    border-bottom: 1px solid rgba(160, 22, 34, 0.18);
}
.product-info__price {
    margin: 0;
    font-variant-numeric: tabular-nums;
}
.product-info__price-num {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.2rem);
    color: var(--cranberry-2);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.product-info__price-meta {
    color: var(--slate);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}
.product-info__lede {
    color: var(--ink-2);
    font-size: 1.05rem;
    margin-bottom: var(--s-6);
    line-height: 1.65;
}
.product-info__many-variants {
    color: var(--ink-2);
    font-size: 0.95rem;
    background: var(--cream-2);
    border-left: 3px solid var(--gold-2);
    padding: var(--s-3) var(--s-4);
    margin-bottom: var(--s-5);
    line-height: 1.5;
}
.product-info__h2 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-2);
    margin-bottom: var(--s-3);
}

/* Per-attribute option picker (Color / Size chip groups) */
.variation-picker { margin: 0 0 var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.opt-group__label {
    margin: 0 0 10px;
    font-size: .82rem;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}
.opt-group__current { color: var(--ink-1); font-weight: 700; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.opt-group__chips { display: flex; flex-wrap: wrap; gap: 10px; }

.opt-chip {
    min-width: 52px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--ink-1);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color .14s ease, background-color .14s ease, color .14s ease, box-shadow .14s ease;
}
.opt-chip:hover { border-color: var(--gold-2); }
.opt-chip.is-on {
    border-color: var(--cranberry-2);
    background: var(--cranberry-2);
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(196,30,58,.45);
}
/* Image swatch chips (color photos) sit a touch larger with a caption */
.opt-chip--img { padding-left: 6px; }
.opt-chip--img img {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,.12);
    display: block;
}
.opt-chip__cap { line-height: 1; }

/* Unavailable / sold-out combination: greyed and struck through */
.opt-chip.is-disabled {
    opacity: .4;
    cursor: not-allowed;
    text-decoration: line-through;
    border-style: dashed;
}
.opt-chip.is-disabled:hover { border-color: var(--line); }
.opt-chip.is-disabled.is-on {
    background: var(--slate);
    border-color: var(--slate);
    color: #fff;
    text-decoration: line-through;
}

.product-info__cta { margin-bottom: var(--s-6); }
.product-info__custom-note {
    color: var(--slate);
    font-size: 0.85rem;
    margin-top: var(--s-3);
    text-align: center;
}

.product-info__details {
    border-top: 1px solid var(--line-soft);
    padding: var(--s-4) 0;
}
.product-info__details > summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--evergreen-2);
    display: flex; justify-content: space-between; align-items: center;
}
.product-info__details > summary::-webkit-details-marker { display: none; }
.product-info__details > summary::after {
    content: "+";
    font-family: var(--font-body);
    color: var(--gold-2);
    font-size: 1.3rem;
}
.product-info__details[open] > summary::after { content: "−"; }
.product-info__details .prose,
.product-info__details .prod-spec { padding-top: var(--s-4); }

.prose { color: var(--ink-2); line-height: 1.7; }
.prose p { margin: 0 0 var(--s-4); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 var(--s-4); list-style: revert; }
.prose table { border-collapse: collapse; width: 100%; margin: var(--s-4) 0; font-size: 0.92rem; }
.prose th, .prose td { padding: 0.45rem 0.7rem; border: 1px solid var(--line-soft); text-align: left; }
.prose th { background: var(--cream-2); }
.prose strong { color: var(--ink-1); }
.prose h3, .prose h4 { font-family: var(--font-display); margin: var(--s-5) 0 var(--s-3); }

.prod-spec {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: var(--s-3) var(--s-5);
}
.prod-spec dt { font-size: 0.78rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.1em; }
.prod-spec dd { margin: 0; font-weight: 500; }

.product-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
    margin: var(--s-5) 0 var(--s-6);
    padding: var(--s-5);
    background: var(--cream-2);
    border-radius: var(--r);
    border: 1px solid var(--cream-3);
}
@media (min-width: 600px) { .product-trust { grid-template-columns: repeat(2, 1fr); } }
.product-trust li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    color: var(--ink-2);
    font-size: 0.9rem;
    line-height: 1.4;
}
.product-trust svg {
    flex: 0 0 22px;
    width: 22px; height: 22px;
    color: var(--gold-1);
    margin-top: 2px;
}
.product-trust span {
    display: flex; flex-direction: column;
}
.product-trust strong {
    font-weight: 600;
    color: var(--evergreen-2);
    font-size: 0.92rem;
}
.product-trust strong + span {
    color: var(--slate);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.product-info__cats {
    margin-top: var(--s-5);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line-soft);
    color: var(--slate);
    font-size: 0.85rem;
    display: flex; flex-wrap: wrap; align-items: center;
    gap: var(--s-2);
}
.product-info__cats-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-right: var(--s-2);
}

/* ---------- Related products section ---------- */
.related {
    margin-top: var(--s-12);
    padding-top: var(--s-10);
    border-top: 1px solid var(--line-soft);
}
.related__head {
    text-align: center;
    margin-bottom: var(--s-8);
}
.related__head .section__title {
    font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem);
    margin-top: var(--s-2);
}
.prod-grid--related {
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px)  { .prod-grid--related { grid-template-columns: repeat(4, 1fr); } }
.cat-chip {
    background: var(--cream-2);
    color: var(--ink-2);
    border: 1px solid var(--cream-3);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
}
.cat-chip:hover { background: var(--cranberry-2); color: var(--cream-1); border-color: var(--cranberry-2); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Cart page ---------- */
.cart-page { padding: var(--s-7) 0 var(--s-8); }
.cart-page__head { margin-bottom: var(--s-5); }
.cart-page__title { margin: 0 0 4px; }
.cart-page__sub { color: var(--slate); margin: 0; }

.cart-empty {
    text-align: center;
    padding: var(--s-7);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.cart-empty p { font-size: 1.05rem; margin: 0 0 var(--s-4); color: var(--ink-2); }

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--s-5);
    align-items: start;
}
@media (max-width: 880px) { .cart-grid { grid-template-columns: 1fr; } }

.cart-lines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-line {
    display: grid;
    grid-template-columns: 88px 1fr auto auto auto;
    gap: var(--s-4);
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: var(--s-4);
}
.cart-line__thumb {
    width: 88px; height: 88px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--cream-2);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-2);
    flex-shrink: 0;
}
.cart-line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__thumb-empty { font-size: 1.6rem; }
.cart-line__info { min-width: 0; }
.cart-line__name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 600;
    color: var(--ink-1);
    text-decoration: none;
    margin-bottom: 4px;
}
.cart-line__name:hover { color: var(--cranberry-2); }
.cart-line__variant { color: var(--slate); font-size: 0.85rem; margin: 0 0 2px; }
.cart-line__price { color: var(--slate); font-size: 0.85rem; margin: 0; font-variant-numeric: tabular-nums; }
.cart-line__qty { display: flex; align-items: center; gap: 6px; margin: 0; }
.cart-line__qty input {
    width: 60px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .45rem .55rem;
    font: inherit;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.cart-line__total {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink-1);
    min-width: 80px; text-align: right;
    margin: 0;
}
.cart-line__remove { margin: 0; }
.cart-line__remove-btn {
    background: transparent; border: 0;
    color: var(--slate);
    font-size: 1.4rem;
    cursor: pointer; padding: 4px 10px;
    border-radius: 6px;
    line-height: 1;
}
.cart-line__remove-btn:hover { background: rgba(160,22,34,.08); color: var(--cranberry-2); }
@media (max-width: 720px) {
    .cart-line { grid-template-columns: 64px 1fr; gap: 12px; }
    .cart-line__thumb { width: 64px; height: 64px; }
    .cart-line__qty, .cart-line__total, .cart-line__remove { grid-column: 1 / -1; justify-self: start; }
    .cart-line__total { text-align: left; }
}

.cart-summary {
    background: var(--cream-1);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: var(--s-5);
    position: sticky; top: var(--s-5);
}
.cart-summary__title { margin: 0 0 var(--s-3); font-size: 1.1rem; font-family: var(--font-display); }
.cart-summary__totals { margin: 0 0 var(--s-3); }
.cart-summary__totals > div {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft, rgba(0,0,0,0.06));
}
.cart-summary__totals dt { margin: 0; color: var(--slate); font-size: 0.92rem; }
.cart-summary__totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-1); }
.cart-summary__shipping dd { font-size: 0.85rem; color: var(--slate); font-weight: 500; }
.cart-summary__total {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 12px 0;
    border-top: 2px solid var(--ink-1);
    margin-bottom: var(--s-4);
    font-size: 1.05rem;
}
.cart-summary__total strong { font-variant-numeric: tabular-nums; font-size: 1.25rem; color: var(--cranberry-2); }
.cart-summary__note { font-size: 0.78rem; color: var(--slate); margin: 8px 0 var(--s-3); text-align: center; }
.cart-summary__continue { display: block; text-align: center; color: var(--evergreen-2); font-size: 0.92rem; }

.add-to-cart { margin: 0; }
.btn--small { padding: .4rem .8rem; font-size: 0.82rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.header__icon--cart.has-items .header__cart-badge { background: var(--cranberry-2); color: #fff; }

/* ---------- Auth pages (login / register) ---------- */
.auth-page { padding: var(--s-7) 0 var(--s-8); display: flex; justify-content: center; }
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2rem 2rem 1.5rem;
    width: 100%; max-width: 440px;
    box-shadow: 0 8px 32px -16px rgba(15,40,30,.16);
}
.auth-card h1 { margin: 0 0 6px; }
.auth-card__sub { margin: 0 0 1.25rem; color: var(--slate); font-size: .95rem; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form .field { display: flex; flex-direction: column; gap: 4px; }
.auth-form .field > span { font-weight: 600; font-size: .82rem; color: var(--ink-1); }
.auth-form .field input {
    border: 1px solid var(--line); border-radius: 8px;
    padding: .6rem .8rem; font: inherit; background: #fff;
}
.auth-form .field input:focus { outline: 0; border-color: var(--evergreen-2); box-shadow: 0 0 0 3px rgba(13,40,24,.08); }
.btn--block { display: block; width: 100%; }

.btn-oauth {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: .75rem 1rem;
    background: #fff; color: var(--ink-1);
    border: 1px solid var(--line); border-radius: 10px;
    font-weight: 600; font-size: .95rem;
    text-decoration: none;
    transition: border-color .12s ease, background-color .12s ease;
}
.btn-oauth:hover { border-color: var(--evergreen-3); background: var(--cream-1); }
.btn-oauth--apple { background: #000; color: #fff; border-color: #000; }
.btn-oauth--apple:hover { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.oauth-buttons { display: flex; flex-direction: column; gap: 8px; }
.auth-card__or { text-align: center; margin: 16px 0; position: relative; color: var(--slate); font-size: .82rem; }
.auth-card__or::before, .auth-card__or::after { content: ''; position: absolute; top: 50%; width: calc(50% - 24px); height: 1px; background: var(--line); }
.auth-card__or::before { left: 0; }
.auth-card__or::after { right: 0; }
.auth-card__alt { text-align: center; margin: 1.25rem 0 0; color: var(--slate); font-size: .9rem; }
.auth-card__alt a { color: var(--cranberry-2); font-weight: 600; }

.auth-magic { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.auth-magic summary { cursor: pointer; font-size: .86rem; color: var(--evergreen-2); list-style: none; }
.auth-magic summary::-webkit-details-marker { display: none; }
.auth-magic__form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* ---------- Customer account ---------- */
.account-page { padding: var(--s-6) 0 var(--s-8); }
.account-head { margin-bottom: var(--s-4); }
.account-head__eyebrow { color: var(--slate); font-size: .82rem; margin: 0 0 4px; }
.account-head__eyebrow a { color: var(--evergreen-2); }
.account-head__title { margin: 0; }
.account-head__sub { margin: 6px 0 0; color: var(--slate); font-size: .92rem; }

.account-tabs {
    display: flex; align-items: center; gap: 4px;
    border-bottom: 1px solid var(--line);
    margin: 0 0 var(--s-5);
}
.account-tabs a {
    padding: .65rem 1rem;
    color: var(--slate); text-decoration: none;
    border-bottom: 2px solid transparent;
    font-weight: 500; font-size: .92rem;
}
.account-tabs a:hover { color: var(--ink-1); }
.account-tabs a.is-active { color: var(--ink-1); border-bottom-color: var(--cranberry-2); font-weight: 600; }
.account-logout { margin: 0 0 0 auto; }
.account-logout button {
    background: transparent; border: 0; color: var(--slate);
    cursor: pointer; font: inherit; font-size: .88rem;
    padding: .5rem .8rem;
}
.account-logout button:hover { color: var(--cranberry-2); }

.account-block { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: var(--s-4) var(--s-5); margin-bottom: var(--s-4); }
.account-block > header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s-3); }
.account-block h2 { margin: 0; font-size: 1.05rem; }
.link-soft { color: var(--evergreen-2); font-size: .88rem; text-decoration: none; }
.link-soft:hover { color: var(--cranberry-2); }

.account-empty { padding: var(--s-5); text-align: center; color: var(--slate); }

/* "Get measured" CTA banner on the account dashboard */
.account-cta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem;
    margin: 1.25rem 0 2rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, var(--cranberry-2) 0%, #6b0f23 100%);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(138, 25, 59, .22);
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.account-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(138, 25, 59, .28); }
.account-cta__body { max-width: 60ch; }
.account-cta__eyebrow { display: inline-block; padding: .15rem .6rem; background: rgba(255,255,255,.18); color: #ffe9b8; border-radius: 999px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: .5rem; }
.account-cta__title { margin: 0 0 .35rem; font-size: 1.4rem; color: #fff; }
.account-cta__sub { margin: 0; color: #fde9d6; font-size: .95rem; line-height: 1.45; }
.account-cta__btn {
    flex: 0 0 auto;
    display: inline-block;
    padding: .75rem 1.3rem;
    background: #fff;
    color: var(--cranberry-2);
    border-radius: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
}
@media (max-width: 640px) {
    .account-cta { flex-direction: column; align-items: flex-start; }
    .account-cta__btn { align-self: stretch; text-align: center; }
}

/* Account header with inline "Start a new fit" button */
.account-head--with-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.account-head--with-cta .btn { flex: 0 0 auto; }

.account-orders { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.account-order {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto auto auto;
    gap: 14px; align-items: center;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none; color: var(--ink-1);
    transition: border-color .12s ease, transform .08s ease;
}
.account-order:hover { border-color: var(--gold-2); }
.account-order__num { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; font-weight: 600; }
.account-order__date { color: var(--slate); font-size: .85rem; }
.account-order__items { color: var(--slate); font-size: .82rem; }
.account-order__total { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }

.account-items { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.account-items li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px; align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft, rgba(0,0,0,.06));
}
.account-items li:last-child { border-bottom: 0; }
.account-item__name { font-weight: 600; }
.account-item__name a { color: var(--ink-1); text-decoration: none; }
.account-item__name a:hover { color: var(--cranberry-2); }
.account-item__meta { color: var(--slate); font-size: .85rem; }
.account-item__total { font-weight: 600; font-variant-numeric: tabular-nums; }

.account-totals { margin: 0; }
.account-totals > div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line-soft, rgba(0,0,0,.06)); }
.account-totals > div:last-child { border-bottom: 0; }
.account-totals dt { margin: 0; color: var(--slate); font-size: .9rem; }
.account-totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.account-totals__grand { border-top: 2px solid var(--ink-1) !important; margin-top: 8px; padding-top: 12px !important; }
.account-totals__grand dt { color: var(--ink-1); font-weight: 700; }
.account-totals__grand dd { font-size: 1.15rem; color: var(--cranberry-2); }

.account-shipments { list-style: none; padding: 0; margin: 0; }
.account-shipments li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.account-shipments li:last-child { border-bottom: 0; }

.account-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: var(--s-4) var(--s-5); }

.account-pay {
    background: linear-gradient(180deg, rgba(196,160,73,.12), var(--surface));
    border-color: var(--gold-2);
}
.account-pay h2 { color: var(--cranberry-2); margin: 0 0 4px; }

/* ---------- Custom-fit wizard ---------- */
.wizard-page { padding: var(--s-6) 0 var(--s-8); }
.wizard-head { margin-bottom: var(--s-5); }
.wizard-head__eyebrow { color: var(--slate); font-size: .82rem; margin: 0 0 4px; }
.wizard-head__eyebrow a { color: var(--evergreen-2); }
.wizard-head__title { margin: 0 0 12px; }
.wizard-head__sub { margin: 0 0 8px; color: var(--slate); }

.wizard-progress {
    position: relative;
    height: 6px;
    background: var(--cream-2, #f3eada);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}
.wizard-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--evergreen-2), var(--gold-2));
    transition: width .35s ease;
}
.wizard-progress__label {
    display: block;
    margin-top: 8px;
    color: var(--slate);
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
}

.wizard-step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: var(--s-6);
    max-width: 720px;
    margin: 0 auto;
}
.wizard-step__head { margin-bottom: var(--s-4); }
.wizard-step__title { margin: 0 0 10px; font-size: 1.5rem; }
.wizard-step__desc { margin: 0; color: var(--slate); font-size: .98rem; line-height: 1.55; }
.wizard-step__media {
    margin: var(--s-4) 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--cream-2, #f3eada);
    aspect-ratio: 16 / 10;
    display: flex; align-items: center; justify-content: center;
}
/* contain, not cover — these are instructional diagrams; cropping loses the callout text */
.wizard-step__img,
.wizard-step__video { width: 100%; height: 100%; object-fit: contain; display: block; }

.wizard-step__form { display: flex; flex-direction: column; gap: 14px; }
.wizard-step__field {
    position: relative;
    display: flex; align-items: center;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 0 18px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wizard-step__field:focus-within { border-color: var(--evergreen-2); box-shadow: 0 0 0 4px rgba(13,40,24,.08); }
.wizard-step__field input[type="number"],
.wizard-step__field input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;   /* inputs carry an intrinsic size; without this they push the card wider than the phone */
    width: 100%;
    border: 0;
    padding: 18px 0;
    font-size: 1.6rem;
    font-weight: 600;
    background: transparent;
    color: var(--ink-1);
    outline: 0;
    font-variant-numeric: tabular-nums;
}
.wizard-step__field input[type="number"]::-webkit-outer-spin-button,
.wizard-step__field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wizard-step__unit { color: var(--slate); font-size: 1rem; font-weight: 500; }
.wizard-step__hint { color: var(--slate); font-size: .85rem; margin: 0; }

.wizard-step__actions {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: var(--s-4);
    gap: 10px;
}

.wizard-jumps {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: var(--s-5);
    padding-top: var(--s-4);
    border-top: 1px dashed var(--line);
}
.wizard-jump {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--cream-1);
    color: var(--ink-2);
    font-size: .76rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .12s ease;
}
.wizard-jump:hover { background: var(--cream-2, #f3eada); color: var(--ink-1); }
.wizard-jump.is-current { background: var(--evergreen-1); color: #f7efde; }
.wizard-jump.is-done { color: var(--evergreen-2); }
.wizard-jump.is-done.is-current { color: var(--gold-2); }
.wizard-jump__num { font-weight: 700; font-variant-numeric: tabular-nums; }
.wizard-jump__check { color: #1d6a37; font-weight: 700; }
.wizard-jump.is-current .wizard-jump__check { color: var(--gold-2); }

/* Review screen */
.wizard-review {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: var(--s-5) var(--s-6);
    max-width: 720px;
    margin: 0 auto var(--s-4);
}
.wizard-review__title { margin: 0 0 var(--s-3); font-size: 1.2rem; }
.wizard-review__list { margin: 0; }
.wizard-review__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft, rgba(0,0,0,.06));
    align-items: baseline;
}
.wizard-review__row:last-child { border-bottom: 0; }
.wizard-review__row dt { margin: 0; color: var(--ink-1); font-weight: 500; }
.wizard-review__row dd { margin: 0; display: inline-flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.wizard-review__row dd .missing { color: var(--cranberry-2); font-weight: 600; }
.wizard-review__edit { color: var(--evergreen-2); font-size: .82rem; text-decoration: none; }
.wizard-review__edit:hover { color: var(--cranberry-2); text-decoration: underline; }

.wizard-sign {
    background: var(--cream-1);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: var(--s-5) var(--s-6);
    max-width: 720px;
    margin: 0 auto;
}
.wizard-sign h2 { margin: 0 0 8px; font-size: 1.2rem; }
.wizard-sign p { margin: 0 0 16px; color: var(--slate); font-size: .92rem; line-height: 1.55; }
.wizard-sign__form { display: flex; flex-direction: column; gap: 14px; }
.wizard-sign__name {
    border: 2px solid var(--line); border-radius: 10px;
    padding: 14px 16px;
    font: inherit;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-style: italic;
    background: #fff;
    color: var(--ink-1);
}
.wizard-sign__name:focus { outline: 0; border-color: var(--evergreen-2); box-shadow: 0 0 0 4px rgba(13,40,24,.08); }
.wizard-sign__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wizard-sign__disclaimer {
    background: #fff8e6;
    border: 1px solid #e8c97a;
    border-left: 4px solid #c8a23c;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 18px;
    color: var(--ink-1);
    font-size: .92rem;
    line-height: 1.55;
}
.wizard-sign__disclaimer strong { display: block; margin-bottom: 4px; color: #8a6a1a; }
.wizard-locked { text-align: center; color: var(--slate); padding: var(--s-5); background: var(--cream-1); border-radius: 12px; }

/* Status pills (re-used from admin) */
.status-pill {
    display: inline-flex; padding: 3px 10px; border-radius: 999px;
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: var(--cream-2); color: var(--ink-2);
}
.status-pill--pending     { background: #fff5db; color: #8a6800; }
.status-pill--approved    { background: #d8eedc; color: #1d6a37; }
.status-pill--in_production { background: #d8e4ee; color: #1c4368; }
.status-pill--shipped     { background: #e3dbf2; color: #553a92; }
.status-pill--delivered   { background: #d8eedc; color: #1d6a37; }
.status-pill--cancelled, .status-pill--refunded { background: #fbe1e3; color: var(--cranberry-2); }

/* Checkout success */
.checkout-success { padding: var(--s-7) 0; }
.checkout-success__card {
    max-width: 540px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: var(--s-6) var(--s-5);
    text-align: center;
}
.checkout-success__icon { display: inline-flex; color: #1d6a37; margin-bottom: var(--s-3); }
.checkout-success h1 { margin: 0 0 var(--s-3); }
.checkout-success__order { color: var(--slate); margin: 0 0 var(--s-4); font-size: 0.95rem; }
.checkout-success__order strong { color: var(--ink-1); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.checkout-success__totals {
    background: var(--cream-1);
    border-radius: 10px;
    padding: var(--s-3) var(--s-4);
    margin: 0 0 var(--s-4);
    text-align: left;
}
.checkout-success__totals > div {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--line-soft, rgba(0,0,0,.06));
}
.checkout-success__totals > div:last-child { border-bottom: 0; }
.checkout-success__totals dt { margin: 0; color: var(--slate); }
.checkout-success__totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.checkout-success__msg { color: var(--ink-2); margin: 0 0 var(--s-4); }
.checkout-success__actions { display: flex; justify-content: center; }

/* Wizard non-numeric input types */
.wizard-step__field--text input {
    width: 100%;
    font-size: 1.1rem;
    padding: .8rem 1rem;
    border: 2px solid var(--cream-3);
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}
.wizard-step__radio {
    border: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .6rem;
}
.wizard-radio {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1rem;
    background: var(--cream-1);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 80ms ease;
}
.wizard-radio:has(input:checked) {
    border-color: var(--cranberry-2);
    background: #fff;
}
.wizard-radio input { accent-color: var(--cranberry-2); transform: scale(1.15); }
.wizard-radio__label { font-weight: 500; }

/* Wizard section banner for multi-template walks */
.wizard-section {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 1rem 0 .25rem;
    padding: .5rem 1rem;
    background: var(--cream-2);
    border-radius: 999px;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.wizard-section--new {
    background: var(--cranberry-2);
    color: #fff;
}
.wizard-section__name { font-weight: 700; }
.wizard-section__count { opacity: .8; }
.wizard-section__intro {
    margin: .35rem 0 1rem;
    font-style: italic;
    color: var(--cranberry-2);
    font-size: 1rem;
}

/* /measure kit picker */
.measure-page { padding: 3rem 0 6rem; background: var(--cream-1); min-height: 70vh; }
.measure-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.measure-head__eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--cranberry-2); font-size: .85rem; margin: 0 0 .25rem; }
.measure-head__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .5rem; }
.measure-head__sub { color: var(--text-muted); line-height: 1.6; }
.measure-empty { text-align: center; padding: 3rem; color: var(--text-muted); }

.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.kit-card {
    display: flex; flex-direction: column; gap: .5rem;
    padding: 1.5rem; background: #fff; border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    text-decoration: none; color: inherit;
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.kit-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.kit-card__pill {
    align-self: flex-start; padding: .15rem .6rem;
    background: var(--cream-2); border-radius: 999px;
    font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.kit-card__title { margin: .25rem 0 0; font-size: 1.25rem; }
.kit-card__meta { margin: 0; color: var(--text-muted); font-size: .9rem; }
.kit-card__templates { margin: .25rem 0; font-size: .85rem; color: var(--text-muted); font-style: italic; }
.kit-card__cta { margin-top: auto; font-weight: 700; color: var(--cranberry-2); }

/* Featured kit card — Custom Santa Suit gets a hero treatment as the #1 most-used fit */
.kit-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    position: relative;
    margin: 0 0 2.5rem;
    padding: 2rem 2rem 2rem;
    background: linear-gradient(135deg, var(--evergreen-3) 0%, var(--evergreen-1) 100%);
    color: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(10, 31, 18, .3);
    text-decoration: none;
    overflow: hidden;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.kit-feature::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 245, 220, .12) 0%, transparent 60%);
    transform: rotate(15deg);
    pointer-events: none;
}
.kit-feature:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(10, 31, 18, .38); }
@media (min-width: 760px) {
    .kit-feature { grid-template-columns: 1.5fr minmax(220px, 1fr); grid-template-rows: 1fr auto; align-items: center; padding: 2.25rem 2.5rem 0 2.5rem; }
    .kit-feature__body { grid-column: 1; grid-row: 1; padding-bottom: 1rem; }
    .kit-feature__cta  { grid-column: 1; grid-row: 2; padding-bottom: 2.25rem; }
    .kit-feature__art  { grid-column: 2; grid-row: 1 / span 2; }
}
.kit-feature__art { display: none; }
@media (min-width: 760px) {
    .kit-feature__art {
        display: block;
        align-self: end;
        justify-self: center;
        pointer-events: none;
    }
    .kit-feature__art img {
        display: block;
        width: min(100%, 320px);
        height: auto;
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35));
    }
}
.kit-feature__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .3rem .75rem;
    background: var(--gold-3);
    color: var(--evergreen-1);
    border-radius: 999px;
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 800;
    z-index: 2;
}
.kit-feature__body { position: relative; z-index: 1; }
.kit-feature__pill {
    display: inline-block;
    padding: .2rem .7rem;
    background: rgba(255, 255, 255, .15);
    color: #ffe9b8;
    border-radius: 999px;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: .65rem;
}
.kit-feature__title { margin: 0 0 .5rem; font-size: clamp(1.75rem, 3.5vw, 2.3rem); color: #fff; }
.kit-feature__lede { margin: 0 0 1rem; color: #fde9d6; font-size: 1.02rem; line-height: 1.5; max-width: 56ch; }
/* "What's included" manifest inside the featured suit card */
.kit-includes {
    margin: 0 0 1.15rem;
    padding: .95rem 1.1rem 1rem;
    background: rgba(0, 0, 0, .16);
    border: 1px solid rgba(230, 207, 148, .28);
    border-radius: 14px;
    max-width: 56ch;
}
.kit-includes__head {
    margin: 0 0 .6rem;
    color: var(--gold-soft);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.kit-includes__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .35rem .9rem;
}
@media (min-width: 560px) {
    .kit-includes__list { grid-template-columns: 1fr 1fr; }
}
.kit-includes__list li {
    position: relative;
    padding-left: 1.4rem;
    color: #fde9d6;
    font-size: .92rem;
    line-height: 1.4;
}
.kit-includes__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -.02em;
    color: var(--gold-3);
    font-weight: 700;
}

.kit-feature__templates { margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.kit-feature__chip {
    padding: .25rem .65rem;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
}
.kit-feature__meta { margin: 0; color: #f6dac0; font-size: .88rem; }
.kit-feature__cta { position: relative; z-index: 1; }
.kit-feature__cta .btn--primary {
    background: #fff;
    color: var(--evergreen-2);
    padding: .9rem 1.6rem;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}
.kit-feature__cta .btn--primary:hover { transform: none; background: #fff5e5; }

.measure-subhead {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Wizard end-state CTAs (after signature submit) */
.wizard-end-cta { margin-top: 2rem; padding: 1.5rem; background: var(--cream-1); border-radius: 16px; }
.wizard-end-cta__intro { margin: 0 0 1rem; }
.wizard-end-cta__grid { display: grid; gap: .6rem; }
@media (min-width: 720px) { .wizard-end-cta__grid { grid-template-columns: repeat(3, 1fr); } }

/* /measure/{mid}/book slot picker */
.measure-book { padding: 3rem 0 6rem; background: var(--cream-1); }
.slot-picker { max-width: 720px; margin: 0 auto; }
.slot-picker__tz { color: var(--text-muted); font-size: .9rem; margin: 0 0 1.5rem; text-align: center; }
.slot-picker__empty { padding: 2rem; text-align: center; background: #fff; border-radius: 12px; }
.slot-day { border: none; padding: 1rem 1.25rem; margin: 0 0 1.5rem; background: #fff; border-radius: 12px; }
.slot-day legend { font-weight: 700; font-size: 1.05rem; padding: 0 .5rem; }
.slot-day__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin-top: .5rem; }
.slot-time { display: block; cursor: pointer; }
.slot-time input { position: absolute; opacity: 0; pointer-events: none; }
.slot-time span {
    display: block; padding: .6rem .8rem; text-align: center;
    background: var(--cream-1); border: 2px solid transparent; border-radius: 10px;
    font-weight: 500;
}
.slot-time input:checked + span { background: #fff; border-color: var(--cranberry-2); color: var(--cranberry-2); }

/* === Wizard 2-column layout =============================================== */
.wizard-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}
/* Grid children default to min-width:auto, so a wide child (the section header
   row) stops the card shrinking and the whole wizard overflows on phones. */
.wizard-layout > * { min-width: 0; }
@media (min-width: 880px) {
    .wizard-layout {
        grid-template-columns: 280px 1fr;
    }
}

/* Mobile toggle: only shown < 880px */
.wizard-steps-toggle {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--cream-2);
    border: none;
    padding: .55rem 1rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0 0 1rem;
    color: var(--ink-1, #1a1a1a);
}
.wizard-steps-toggle:hover { background: var(--cream-3); }
@media (min-width: 880px) {
    .wizard-steps-toggle { display: none; }
}

/* === Sidebar step list ==================================================== */
.wizard-sidebar {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
/* On mobile, hide by default; reveal when toggle adds .is-open */
@media (max-width: 879.98px) {
    .wizard-sidebar { display: none; }
    .wizard-sidebar.is-open { display: block; }
}
/* On desktop, make it sticky so the list stays visible as you scroll the form */
@media (min-width: 880px) {
    .wizard-sidebar {
        position: sticky;
        top: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
}

.wizard-sidebar__group + .wizard-sidebar__group {
    border-top: 1px solid var(--cream-2);
    margin-top: .5rem;
    padding-top: .5rem;
}
.wizard-sidebar__heading {
    margin: 0;
    padding: .5rem 1rem .25rem;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--cranberry-2);
}
.wizard-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wizard-sidebar__step {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem 1rem;
    text-decoration: none;
    color: var(--ink-2, #2a2a2a);
    font-size: .92rem;
    border-left: 3px solid transparent;
    transition: background 80ms ease, color 80ms ease, border-color 80ms ease;
}
.wizard-sidebar__step:hover {
    background: var(--cream-1);
}
.wizard-sidebar__mark {
    flex: 0 0 22px;
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
}
.wizard-sidebar__num { line-height: 1; }
.wizard-sidebar__label {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Completed (but not current) — green-ish checkmark, muted label */
.wizard-sidebar__step.is-done .wizard-sidebar__mark {
    background: #d8eedc;
    color: #1d6a37;
}
.wizard-sidebar__step.is-done .wizard-sidebar__label {
    color: var(--text-muted);
}

/* Current step uses the cranberry left rail + bold label; the mark stays
   empty (no number, no check) until the customer actually completes the step. */
.wizard-sidebar__step.is-current .wizard-sidebar__mark {
    background: transparent;
    color: transparent;
}
/* Current — cranberry left rail + bold label */
.wizard-sidebar__step.is-current {
    background: #fff5ec;
    border-left-color: var(--cranberry-2);
    color: var(--cranberry-2);
}
.wizard-sidebar__step.is-current .wizard-sidebar__label {
    font-weight: 700;
    color: var(--cranberry-2);
}

/* === Step card stays the same, just inside the new layout ================== */
/* Section banner now sits at the top of the article column (not above both) */
.wizard-step .wizard-section { margin-top: 0; }

/* Desktop: let the step card fill the right column of .wizard-layout so the
   inputs feel like the focal point (instead of a narrow card floating with
   empty space between it and the sidebar). */
@media (min-width: 880px) {
    .wizard-layout > .wizard-step {
        max-width: none;
        margin: 0;
        width: 100%;
    }
}

/* On mobile, when the sidebar is showing inline above the step card, give it a bit of breathing room */
@media (max-width: 879.98px) {
    .wizard-sidebar.is-open + .wizard-step { margin-top: 1rem; }
    /* `margin: 0 auto` opts the card out of grid stretch, so it sizes to its
       content and runs off narrow screens. Pin it to the track instead. */
    .wizard-layout > .wizard-step {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
.slot-picker__actions { text-align: center; margin-top: 1.5rem; }

/* Wizard — section page rows (multi-input form on one page) */
.wizard-section-page { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem; }
.wizard-row {
    padding: 1rem 0;
    border-bottom: 1px solid var(--cream-2);
}
.wizard-row:last-of-type { border-bottom: none; }
.wizard-row__head { margin-bottom: .75rem; }
.wizard-row__title { margin: 0 0 .25rem; font-size: 1.05rem; }
.wizard-row__optional { font-size: .75rem; color: var(--text-muted); font-weight: 400; margin-left: .35rem; }
.wizard-row__desc { margin: 0; color: var(--text-muted); font-size: .9rem; }
.wizard-row__media { margin: 0 0 .9rem; }
.wizard-row__field { width: 100%; }
.wizard-row__media img,
.wizard-row__media video {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--cream-3);
}

.wizard-section-form__actions {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    margin-top: 1.25rem; padding-top: 1rem;
    border-top: 2px solid var(--cream-3);
}

/* ===================================================================
   Checkout — address entry + live carrier rates
   =================================================================== */
.checkout { padding: var(--s-8) 0 var(--s-9); background: var(--bg); }
.checkout__head { max-width: 640px; margin-bottom: var(--s-7); }
.checkout__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.1; margin: 0 0 var(--s-3); color: var(--evergreen-2);
}
.checkout__sub { color: var(--text-muted); font-size: 1.0625rem; margin: 0; }

.checkout__alert {
    border-radius: 10px; padding: var(--s-4) var(--s-5);
    margin-bottom: var(--s-6); font-weight: 500;
}
.checkout__alert--error { background: #fdecee; border: 1px solid var(--cranberry-soft); color: var(--cranberry-1); }

.checkout__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) {
    .checkout__grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr); gap: var(--s-7); }
    .checkout__aside { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}
.checkout__main { display: grid; gap: var(--s-5); min-width: 0; }

.checkout-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: var(--s-6);
    box-shadow: 0 1px 2px rgba(13, 40, 24, 0.04);
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5);
    margin: 0;
}
@media (max-width: 560px) { .checkout-card { grid-template-columns: 1fr; padding: var(--s-5); } }
.checkout-card--muted { display: block; background: var(--bg-alt); }
.checkout-card__title {
    grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-3);
    font-family: var(--font-display); font-size: 1.375rem; color: var(--evergreen-2);
    margin: 0 0 var(--s-2); padding: 0; float: none; width: 100%;
}
.checkout-card__step {
    display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px;
    border-radius: 50%; background: var(--evergreen-2); color: var(--gold-soft);
    font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
}

.field { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }
.field__opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--slate); }
.field__req { color: var(--cranberry-1); font-weight: 700; }
.checkout-card__hint { display: block; margin: calc(var(--s-2) * -1) 0 0; font-size: 0.8125rem; color: var(--slate); }
.field input, .field select {
    width: 100%; padding: 0.75rem 0.875rem; font-family: var(--font-body); font-size: 1rem;
    color: var(--text); background: #fff; border: 1px solid var(--line);
    border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
    outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.checkout-rates { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.checkout-rates__empty, .checkout-rates__notice { margin: var(--s-3) 0 0; color: var(--text-muted); font-size: 0.9375rem; }
.checkout-rates__notice { color: var(--cranberry-1); font-weight: 500; }

.checkout-rate {
    display: flex; align-items: center; gap: var(--s-4);
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: var(--s-4) var(--s-5); cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.checkout-rate:hover { border-color: var(--gold-2); }
.checkout-rate:has(input:checked) { border-color: var(--evergreen-3); box-shadow: 0 0 0 2px rgba(26, 58, 38, 0.15); }
.checkout-rate input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--evergreen-3); margin: 0; }
.checkout-rate__body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.checkout-rate__carrier { font-weight: 600; color: var(--text); }
.checkout-rate__eta { font-size: 0.875rem; color: var(--text-muted); }
.checkout-rate__price { font-weight: 700; font-size: 1.0625rem; color: var(--evergreen-2); white-space: nowrap; }

.checkout-summary {
    background: var(--evergreen-2); color: var(--cream-2);
    border-radius: 14px; padding: var(--s-6); display: grid; gap: var(--s-4);
}
.checkout-summary__title { font-family: var(--font-display); font-size: 1.375rem; color: var(--gold-soft); margin: 0; }
.checkout-summary__items { list-style: none; margin: 0; padding: 0 0 var(--s-4); display: grid; gap: var(--s-3); border-bottom: 1px solid rgba(230, 207, 148, 0.22); }
.checkout-summary__items li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: baseline; font-size: 0.9375rem; }
.checkout-summary__qty { color: var(--gold-soft); font-weight: 600; }
.checkout-summary__name { min-width: 0; }
.checkout-summary__name em { display: block; font-style: normal; font-size: 0.8125rem; color: rgba(245, 239, 224, 0.65); }
.checkout-summary__price { white-space: nowrap; }
.checkout-summary__totals { margin: 0; display: grid; gap: var(--s-2); }
.checkout-summary__totals > div { display: flex; justify-content: space-between; gap: var(--s-4); font-size: 0.9375rem; }
.checkout-summary__totals dt, .checkout-summary__totals dd { margin: 0; }
.checkout-summary__totals .is-discount { color: var(--gold-soft); }
.checkout-summary__total {
    display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
    padding-top: var(--s-4); border-top: 1px solid rgba(230, 207, 148, 0.22);
    font-size: 1.0625rem;
}
.checkout-summary__total strong { font-family: var(--font-display); font-size: 1.625rem; color: var(--gold-soft); }
.checkout-summary__note { margin: 0; font-size: 0.8125rem; color: rgba(245, 239, 224, 0.7); text-align: center; }
.checkout-summary__back { color: var(--gold-soft); font-size: 0.9375rem; text-decoration: none; text-align: center; }
.checkout-summary__back:hover { text-decoration: underline; }
.checkout-summary .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Storefront flash messages (previously rendered nowhere — errors were invisible) */
.site-flash { padding: var(--s-4) 0; }
.site-flash__msg {
    border-radius: 10px; padding: var(--s-4) var(--s-5); font-weight: 500;
    display: flex; align-items: center; gap: var(--s-3);
}
.site-flash__msg--success { background: #e8f3ec; border: 1px solid var(--evergreen-4); color: var(--evergreen-1); }
.site-flash__msg--error   { background: #fdecee; border: 1px solid var(--cranberry-soft); color: var(--cranberry-1); }

/* Admin-only floating "Edit product" shortcut on public product pages */
.admin-edit-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 950;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: var(--evergreen-2);
    color: var(--gold-soft);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(10, 31, 18, 0.35);
    transition: transform .15s ease, background .15s ease;
}
.admin-edit-fab:hover { background: var(--evergreen-3); color: var(--cream-1); transform: translateY(-2px); }

/* Admin inline quick-edit (public product pages, admin/staff sessions only) */
.qe-pen {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 6px;
    padding: 0.1rem 0.45rem;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--ink-3);
    margin: 0.25rem 0 0;
    transition: background .15s, transform .15s;
}
.qe-pen:hover { background: var(--cream-2); }
.qe-pen.qe-saved { background: #e8f3ec; border-color: var(--evergreen-4); color: var(--evergreen-2); }
.qe-pen.qe-saved::after { content: ' Saved ✓'; font-size: 0.75rem; }
.qe-editing {
    outline: 2px dashed var(--gold-2);
    outline-offset: 4px;
    border-radius: 4px;
    min-height: 2.5em;
    background: rgba(212, 175, 55, 0.05);
}
.qe-empty { min-height: 1.5em; }
.qe-empty::before { content: attr(data-qe-empty); color: var(--slate); font-style: italic; }
.qe-editing.qe-empty::before { content: none; }
.qe-bar { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.qe-bar[hidden] { display: none; }
.qe-bar .qe-save, .qe-bar .qe-cancel {
    border-radius: 6px; padding: 0.3rem 0.9rem; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.qe-bar .qe-save { background: var(--evergreen-2); color: var(--gold-soft); border: 1px solid var(--evergreen-2); }
.qe-bar .qe-cancel { background: transparent; color: var(--ink-3); border: 1px solid var(--line); }
.qe-bar .qe-note { font-size: 0.8rem; color: var(--cranberry-1); }

.account-form__subhead {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--evergreen-2);
    margin: 1.5rem 0 0.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-soft);
}
.account-form .field em { font-style: normal; font-weight: 400; color: var(--slate); }

/* Header account dropdown (signed-in visitors) */
.account-menu { position: relative; }
.account-menu__btn { background: none; border: none; cursor: pointer; padding: 0; color: inherit; }
.account-menu__panel {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 1200;
    min-width: 200px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 14px 40px rgba(13, 40, 24, 0.18);
    padding: 0.5rem 0;
}
.account-menu__panel[hidden] { display: none; }
.account-menu__panel::before {
    content: ''; position: absolute; top: -7px; right: 14px;
    width: 12px; height: 12px; background: var(--surface);
    border-left: 1px solid var(--line); border-top: 1px solid var(--line);
    transform: rotate(45deg);
}
.account-menu__hello {
    margin: 0; padding: 0.5rem 1rem 0.6rem;
    font-family: var(--font-display); font-size: 1rem; color: var(--evergreen-2);
    border-bottom: 1px solid var(--line-soft);
}
.account-menu__panel a {
    display: block; padding: 0.55rem 1rem;
    color: var(--text); text-decoration: none; font-size: 0.95rem;
}
.account-menu__panel a:hover { background: var(--cream-2); color: var(--cranberry-2); }
.account-menu__admin { color: var(--evergreen-3) !important; font-weight: 600; }
.account-menu__out {
    margin-top: 0.3rem; border-top: 1px solid var(--line-soft);
    color: var(--cranberry-2) !important; font-weight: 600;
}

/* === Grouped collection pages (parent category → sub-collection sections) === */
.shop-groups { display: flex; flex-direction: column; gap: var(--s-9, 4.5rem); }
.shop-group { scroll-margin-top: 96px; }
.shop-group.is-pending { display: none; }
.shop-group__head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4);
    flex-wrap: wrap;
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line-soft);
    position: relative;
}
.shop-group__head::after {
    content: ""; position: absolute; left: 0; bottom: -1px;
    width: 72px; height: 3px; background: var(--gold-1);
}
.shop-group__eyebrow {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold-1); margin: 0 0 6px;
}
.shop-group__title {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
    line-height: 1.15; margin: 0; color: var(--evergreen-2);
}
.shop-group__lede { color: var(--text-muted); max-width: 62ch; margin: 6px 0 0; font-size: 0.95rem; }
.shop-group__aside { display: flex; align-items: baseline; gap: var(--s-4); white-space: nowrap; }
.shop-group__count { color: var(--text-muted); font-size: 0.9rem; }
.shop-group__link {
    font-weight: 600; font-size: 0.9rem; color: var(--cranberry-2); text-decoration: none;
    border-bottom: 1px solid transparent; transition: border-color .15s, color .15s;
}
.shop-group__link:hover { color: var(--cranberry-1); border-bottom-color: currentColor; }
.shop-groups .prod.is-pending { display: none; }
.shop-groups__sentinel {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: var(--s-6) 0; color: var(--text-muted); font-size: 0.9rem;
}
.shop-groups__spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--cream-3); border-top-color: var(--gold-1);
    animation: shopSpin .8s linear infinite;
}
@keyframes shopSpin { to { transform: rotate(360deg); } }
.shop-groups__end { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: var(--s-6) 0 0; }
.shop-groups__end a { color: var(--cranberry-2); }
.shop-chip--jump .shop-chip__n {
    display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 999px;
    font-size: 0.72rem; background: var(--cream-2); color: var(--slate); line-height: 1.5;
}
@media (max-width: 600px) {
    .shop-group__head { align-items: flex-start; flex-direction: column; gap: var(--s-2); }
    .shop-group__aside { white-space: normal; }
}

/* === Category illustrations (banner + collection section headers) === */
.shop-hero__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-7); }
.shop-hero__copy { min-width: 0; flex: 1; }
.shop-hero__art { margin: 0; flex: 0 0 auto; }
.shop-hero__art img {
    display: block; width: 200px; height: 200px; object-fit: cover; border-radius: 16px;
    border: 1px solid var(--cream-3);
    box-shadow: 0 14px 34px -18px rgba(22, 22, 22, .45);
    background: var(--cream-1);
}
@media (max-width: 700px) {
    .shop-hero__row--art { flex-direction: column-reverse; align-items: flex-start; gap: var(--s-4); }
    .shop-hero__art img { width: 140px; height: 140px; }
}
.shop-group__head--art { align-items: center; }
.shop-group__head--art .shop-group__heading { flex: 1; min-width: 220px; }
.shop-group__art { margin: 0; flex: 0 0 auto; }
.shop-group__art img {
    display: block; width: 150px; height: 150px; object-fit: cover; border-radius: 14px;
    border: 1px solid var(--cream-3); background: var(--cream-1);
    box-shadow: 0 10px 26px -16px rgba(22, 22, 22, .4);
}
@media (max-width: 600px) {
    .shop-group__art img { width: 110px; height: 110px; }
}

/* Informational alert (e.g. "you already have an account") — calm, not an error */
.alert--info { background: #eef3fb; color: #1f3a66; border: 1px solid #cddcf2; }
.account-head__lede { color: var(--text-muted); margin: 6px 0 0; max-width: 60ch; font-size: 1rem; line-height: 1.55; }

/* Storefront alerts (auth cards, account pages) */
.auth-card .alert, .account-page .alert {
    padding: .8rem 1rem; border-radius: 10px; margin: 0 0 1.1rem;
    font-size: .93rem; line-height: 1.5; border: 1px solid transparent;
}
.auth-card .alert--ok,  .account-page .alert--ok  { background: #e9f3ec; border-color: #cfe3d3; color: #1f3f29; }
.auth-card .alert--err, .account-page .alert--err { background: #fbeaea; border-color: #f3c8cc; color: var(--cranberry-2); }

/* === Landscape product photos: show the whole item instead of cropping the sides.
   core.js tags any <img> whose natural width is clearly greater than its height
   with .is-landscape; the frame stays 4:5 so grids and galleries keep their rhythm. === */
.prod__art--photo img.is-landscape,
.product-gallery__main img.is-landscape,
.product-gallery__thumbs img.is-landscape,
.cart-line__thumb img.is-landscape {
    object-fit: contain;
    object-position: center;
    background: transparent;
}
.prod__art--photo img.is-landscape,
.product-gallery__main img.is-landscape { padding: 6%; box-sizing: border-box; }
.product-gallery__thumbs img.is-landscape { padding: 8%; box-sizing: border-box; background: var(--cream-1); }

/* Account → change password */
.account-password { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--line-soft); scroll-margin-top: 90px; }
.account-password__title { font-family: var(--font-display); font-size: 1.45rem; margin: 0 0 4px; color: var(--evergreen-2); }
.account-password__sub { color: var(--text-muted); margin: 0 0 var(--s-5); font-size: .95rem; }
.account-password__match { margin: -4px 0 var(--s-4); font-size: .85rem; }
.account-password__match.is-ok  { color: #1f6a37; }
.account-password__match.is-bad { color: var(--cranberry-2); }
.account-password__show { display: flex !important; flex-direction: row; align-items: center; gap: .55rem; font-size: .92rem; color: var(--ink-3); }
.account-password__show input { width: 16px; height: 16px; margin: 0; accent-color: var(--cranberry-2); }

/* ---------- Announcement bar (launch messaging; Admin → Settings → Announcement) ---------- */
.announce {
    background: var(--evergreen-2);
    color: var(--cream-2);
    border-bottom: 1px solid rgba(201, 169, 97, 0.35);
    font-size: 0.86rem;
    line-height: 1.35;
    transition: opacity .2s ease;
}
.announce.is-closing { opacity: 0; }
.announce__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    min-height: 40px;
    padding-top: var(--s-2);
    padding-bottom: var(--s-2);
}
.announce__text { margin: 0; text-align: center; letter-spacing: 0.01em; }
.announce__star { color: var(--gold-2); margin-right: 0.15em; }
.announce__cta {
    color: var(--gold-2);
    font-weight: 600;
    white-space: nowrap;
    margin-left: 0.5em;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(201, 169, 97, 0.5);
}
.announce__cta:hover { color: var(--cream-1); text-decoration-color: var(--cream-1); }
.announce__close {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    color: var(--cream-3);
    font-size: 1.25rem;
    line-height: 1;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.announce__close:hover { background: rgba(250, 246, 236, 0.12); color: var(--cream-1); }
@media (max-width: 719px) {
    .announce { font-size: 0.8rem; }
    .announce__inner { justify-content: space-between; gap: var(--s-2); }
    .announce__text { text-align: left; }
    .announce__cta { display: inline-block; margin-left: 0; }
}

/* ---------- Category tiles (/shop "All Categories" + home "Shop by Category") ---------- */
.cat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--s-5);
    align-items: stretch;
}
.cat-tile {
    display: flex;
    flex-direction: column;
    background: var(--cream-1);
    border: 1px solid rgba(13, 40, 24, .08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -22px rgba(13, 40, 24, .35);
    border-color: var(--gold-2);
}
.cat-tile__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(160deg, var(--evergreen-3), var(--evergreen-1));
    overflow: hidden;
    color: var(--cream-1);
}
.cat-tile__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.cat-tile:hover .cat-tile__media img { transform: scale(1.04); }
.cat-tile__monogram {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 5rem;
    color: rgba(230, 207, 148, .35);
}
.cat-tile__shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10, 31, 18, .82) 0%, rgba(10, 31, 18, .45) 38%, rgba(10, 31, 18, 0) 68%);
    pointer-events: none;
}
.cat-tile__caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: var(--s-4) var(--s-4) var(--s-4);
    display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
}
.cat-tile__name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.15;
    color: var(--cream-1);
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.cat-tile__count {
    flex: none;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--evergreen-2);
    background: var(--gold-soft);
    padding: 3px 9px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.cat-tile__chips {
    list-style: none;
    margin: 0;
    padding: var(--s-3) var(--s-4) var(--s-4);
    display: flex; flex-wrap: wrap; gap: 6px;
}
.cat-tile__chips a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.8rem;
    color: var(--evergreen-2);
    background: var(--cream-2);
    border: 1px solid rgba(13, 40, 24, .1);
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.2;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cat-tile__chips a:hover { background: var(--evergreen-2); color: var(--cream-1); border-color: var(--evergreen-2); }
.cat-tile__chip-n { font-size: 0.7rem; opacity: .65; font-variant-numeric: tabular-nums; }
.cat-tiles--home { margin-top: var(--s-5); }
@media (max-width: 719px) {
    .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
    .cat-tile { border-radius: 10px; }
    .cat-tile__caption { padding: var(--s-3); flex-direction: column; align-items: flex-start; gap: 4px; }
    .cat-tile__name { font-size: 1.02rem; }
    .cat-tile__count { font-size: 0.68rem; padding: 2px 7px; }
    .cat-tile__chips { padding: var(--s-2) var(--s-3) var(--s-3); gap: 4px; }
    .cat-tile__chips a { font-size: 0.72rem; padding: 3px 8px; }
}

/* ---------- What's New (homepage grid, same cards as Featured Pieces) ---------- */
.whats-new { background: var(--cream-1); }
.prod-grid--new { gap: var(--s-7) var(--s-5); }
@media (max-width: 719px) {
    .prod-grid--new { gap: var(--s-5) var(--s-3); }
}

/* Narrow screens: stack price under the name so long product names don't wrap one word per line */
@media (max-width: 719px) {
    .prod__meta-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .prod__name { font-size: 0.95rem; line-height: 1.3; }
    .prod__price { font-size: 0.95rem; }
}

/* ---------- Legal pages (privacy, terms) ---------- */
.legal { padding: var(--s-9) 0 var(--s-12); background: var(--cream-1); }
.legal__inner { max-width: 760px; }
.legal__head { margin-bottom: var(--s-7); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line-soft); }
.legal__title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); margin: var(--s-2) 0 var(--s-2); color: var(--evergreen-2); }
.legal__meta { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.legal h2 { font-family: var(--font-display); font-size: 1.35rem; color: var(--evergreen-2); margin: var(--s-7) 0 var(--s-3); }
.legal p, .legal li { line-height: 1.65; color: var(--ink-2); }
.legal ul { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
.legal li { margin-bottom: var(--s-2); }
.legal a { color: var(--cranberry-2); text-decoration: underline; text-underline-offset: 3px; }
