* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

:root {
    /* TARAASHA brand tokens */
    --royal-aubergine: #4B2142;
    --deep-plum: #32152D;
    --warm-ivory: #FAF7F2;
    --soft-sand: #E8DED1;
    --charcoal-ink: #1E1C1D;
    --muted-taupe: #81766F;
    --heritage-silver: #B8B4B1;
    --antique-silver: #8F8987;
    --refined-gold: #B68A4C;
    --offer-crimson: #B32638;
    --success-green: #26734D;
    --pure-white: #FFFFFF;

    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;

    /* Legacy retail aliases → brand map (preserve old class hooks) */
    --retail-pink: var(--royal-aubergine);
    --retail-pink-dark: var(--deep-plum);
    --retail-navy: var(--deep-plum);
    --retail-muted: var(--muted-taupe);
    --retail-search-bg: var(--soft-sand);
    --retail-strip: var(--soft-sand);
    --retail-section-tint: linear-gradient(180deg, var(--warm-ivory) 0%, var(--pure-white) 55%);

    --md-sys-color-primary: var(--royal-aubergine);
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #f3e6ef;
    --md-sys-color-on-primary-container: var(--deep-plum);
    --md-sys-color-secondary: var(--deep-plum);
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-secondary-container: var(--soft-sand);
    --md-sys-color-surface: var(--warm-ivory);
    --md-sys-color-surface-container: var(--pure-white);
    --md-sys-color-surface-container-high: var(--soft-sand);
    --md-sys-color-outline: var(--heritage-silver);
    --md-sys-color-outline-variant: #e5dfd6;
    --md-elevation-0: none;
    --md-elevation-1: 0 1px 2px rgba(30, 28, 29, 0.06);
    --md-elevation-2: 0 2px 10px rgba(30, 28, 29, 0.08);
    --md-elevation-3: 0 6px 20px rgba(30, 28, 29, 0.1);
    --md-elevation-4: 0 12px 28px rgba(30, 28, 29, 0.12);
    --md-shape-corner-extra-small: 2px;
    --md-shape-corner-small: 4px;
    --md-shape-corner-medium: 8px;
    --md-shape-corner-large: 12px;
    --md-shape-corner-full: 9999px;

    --primary-color: var(--royal-aubergine);
    --secondary-color: var(--deep-plum);
    --accent-color: var(--offer-crimson);
    --text-dark: var(--charcoal-ink);
    --text-light: var(--muted-taupe);
    --bg-light: var(--warm-ivory);
    --bg-white: var(--pure-white);
    --border-color: var(--md-sys-color-outline-variant);
    --success-color: var(--success-green);
    --shadow: var(--md-elevation-1);
    --shadow-hover: var(--md-elevation-3);

    --header-height: 72px;
    --focus-ring: 0 0 0 3px rgba(75, 33, 66, 0.35);
}

body {
    font-family: var(--font-sans);
    color: var(--charcoal-ink);
    line-height: 1.55;
    letter-spacing: 0.01em;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

body.nav-drawer-open {
    overflow: hidden;
}

.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;
    left: 1rem;
    top: -100px;
    z-index: 10000;
    background: var(--deep-plum);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
    outline: none;
    box-shadow: var(--focus-ring);
}

:focus-visible {
    outline: 2px solid var(--royal-aubergine);
    outline-offset: 2px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Slim promo strip (coupon / offer line) */
.promo-strip {
    background: var(--retail-strip);
    color: var(--retail-navy);
    text-align: center;
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 200, 80, 0.35);
}

.promo-strip p {
    margin: 0;
}

/* Header — white app bar + search (fashion retail) */
.header {
    background: var(--bg-white);
    color: var(--retail-navy);
    padding: 0.65rem 0;
    box-shadow: 0 1px 0 var(--md-sys-color-outline-variant), 0 2px 12px rgba(40, 44, 63, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    min-height: 52px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    line-height: 1.2;
    color: var(--retail-navy);
}

.logo p {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--retail-muted);
    letter-spacing: 0.02em;
    margin-top: 0.15rem;
    max-width: 11rem;
    line-height: 1.25;
}

.header-search {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    background: var(--retail-search-bg);
    border-radius: var(--md-shape-corner-extra-small);
    padding: 0.45rem 0.75rem;
    border: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search:focus-within {
    border-color: var(--retail-pink);
    box-shadow: 0 0 0 2px rgba(255, 63, 108, 0.15);
    background: #fff;
}

.header-search-glyph {
    display: flex;
    flex-shrink: 0;
    opacity: 0.85;
}

.header-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--retail-navy);
    outline: none;
}

.header-search-input::placeholder {
    color: #94969f;
}

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

.nav-main {
    flex-shrink: 0;
}

.nav-main a {
    color: var(--retail-navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
    padding: 0.4rem 0.65rem;
    border-radius: 2px;
}

.nav-main a:hover {
    color: var(--retail-pink);
}

.nav-auth-combo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.4rem 0.65rem;
    border-radius: 2px;
}

.nav-auth-combo__link {
    color: var(--retail-navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    transition: color 0.2s;
}

.nav-auth-combo__link:hover {
    color: var(--retail-pink);
}

.nav-auth-combo__link[aria-current='page'] {
    color: var(--retail-pink);
}

.nav-auth-combo__sep {
    color: var(--retail-navy);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0 0.1rem;
    user-select: none;
}

.forgot-password-reveal {
    margin-top: 0.5rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border: 2px solid var(--md-sys-color-outline-variant, #e0e0e0);
    border-radius: 8px;
}

.forgot-password-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.forgot-password-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--retail-navy);
    word-break: break-all;
    user-select: all;
}

.checkout-message.success-message {
    display: block;
    padding: 1rem 1.25rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

.header-bag {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--retail-navy) !important;
    padding: 0.35rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    width: 2.5rem;
    position: relative;
    font-weight: 600;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 4px;
}

.header-bag:hover {
    color: var(--retail-pink) !important;
}

.header-bag-icon {
    line-height: 0;
    color: inherit;
    display: inline-flex;
}

.header-bag:hover .header-bag-icon {
    color: inherit;
}

.header-bag-label {
    display: none;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: 2px;
    background-color: var(--retail-pink);
    color: #fff;
    padding: 0.1rem 0.35rem;
    border-radius: var(--md-shape-corner-full);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 1.1rem;
    text-align: center;
    line-height: 1.2;
}

/* Hero — midnight navy luxury gradient + champagne border */
.hero {
    --hero-left: 40;
    --hero-right: 60;
    --hero-navy-deep: #101827;
    --hero-navy: #1d2433;
    --hero-champagne: #c8b99a;
    --hero-ivory: #f7f1e8;
    --hero-gradient: linear-gradient(145deg, var(--hero-navy-deep) 0%, var(--hero-navy) 52%, #161d2b 100%);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--hero-gradient);
    color: var(--hero-ivory);
    padding: clamp(2rem, 5vw, 3.25rem) 0;
    text-align: left;
    border-bottom: 1px solid var(--hero-champagne);
}

/* Subtle luxury fabric grain on midnight navy */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cdefs%3E%3Cpattern id='weave' width='12' height='12' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 12 L12 0' stroke='%23c8b99a' stroke-width='0.4' opacity='0.16'/%3E%3Cpath d='M0 0 L12 12' stroke='%23f7f1e8' stroke-width='0.3' opacity='0.08'/%3E%3C/pattern%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='120' height='120' fill='url(%23weave)'/%3E%3Crect width='120' height='120' filter='url(%23grain)' opacity='0.06'/%3E%3C/svg%3E");
    background-size: 140px 140px;
}

/* Champagne filigree corner ornaments */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128' fill='none'%3E%3Cpath d='M10 10h26M10 10v26' stroke='%23c8b99a' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M10 38c14-10 28-5 36 12M38 10c-8 14-3 28 12 36' stroke='%23d4c5a8' stroke-width='0.85'/%3E%3Cpath d='M14 54c10-5 20-2 28 8M54 14c-5 10-2 20 8 28' stroke='%23e0d2b8' stroke-width='0.7'/%3E%3Ccircle cx='16' cy='16' r='2.2' fill='%23c8b99a' opacity='0.55'/%3E%3Cpath d='M22 22c6 6 14 8 22 4' stroke='%23d9cab0' stroke-width='0.65'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128' fill='none'%3E%3Cpath d='M118 10H92M118 10v26' stroke='%23c8b99a' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M118 38c-14-10-28-5-36 12M90 10c8 14 3 28-12 36' stroke='%23d4c5a8' stroke-width='0.85'/%3E%3Cpath d='M114 54c-10-5-20-2-28 8M74 14c5 10 2 20-8 28' stroke='%23e0d2b8' stroke-width='0.7'/%3E%3Ccircle cx='112' cy='16' r='2.2' fill='%23c8b99a' opacity='0.55'/%3E%3Cpath d='M106 22c-6 6-14 8-22 4' stroke='%23d9cab0' stroke-width='0.65'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128' fill='none'%3E%3Cpath d='M10 118h26M10 118V92' stroke='%23c8b99a' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M10 90c14 10 28 5 36-12M38 118c-8-14-3-28 12-36' stroke='%23d4c5a8' stroke-width='0.85'/%3E%3Cpath d='M14 74c10 5 20 2 28-8M54 114c-5-10-2-20 8-28' stroke='%23e0d2b8' stroke-width='0.7'/%3E%3Ccircle cx='16' cy='112' r='2.2' fill='%23c8b99a' opacity='0.55'/%3E%3Cpath d='M22 106c6-6 14-8 22-4' stroke='%23d9cab0' stroke-width='0.65'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128' fill='none'%3E%3Cpath d='M118 118H92M118 118V92' stroke='%23c8b99a' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M118 90c-14 10-28 5-36-12M90 118c8-14 3-28-12-36' stroke='%23d4c5a8' stroke-width='0.85'/%3E%3Cpath d='M114 74c-10 5-20 2-28-8M74 114c5-10 2-20-8-28' stroke='%23e0d2b8' stroke-width='0.7'/%3E%3Ccircle cx='112' cy='112' r='2.2' fill='%23c8b99a' opacity='0.55'/%3E%3Cpath d='M106 106c-6-6-14-8-22-4' stroke='%23d9cab0' stroke-width='0.65'/%3E%3C/svg%3E");
    background-size: clamp(72px, 13vw, 118px);
    background-position: left top, right top, left bottom, right bottom;
    background-repeat: no-repeat;
}

.hero-container {
    max-width: 1100px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--hero-champagne);
    border-radius: 1.25rem;
    background: var(--hero-gradient);
    background-image:
        radial-gradient(ellipse 90% 70% at 50% 38%, rgba(200, 185, 154, 0.08) 0%, transparent 65%),
        var(--hero-gradient);
    box-shadow:
        inset 0 0 48px rgba(200, 185, 154, 0.06),
        inset 0 1px 0 rgba(247, 241, 232, 0.06),
        0 14px 40px rgba(0, 0, 0, 0.35);
    padding: clamp(1.35rem, 3.5vw, 2.25rem);
}

.hero-grid {
    display: grid;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2.75rem);
    grid-template-columns: minmax(0, calc(var(--hero-left) * 1%)) minmax(0, calc(var(--hero-right) * 1%));
}

.hero-copy {
    text-align: left;
    min-width: 0;
}

.hero-title {
    font-size: clamp(1.2rem, 2.9vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    color: var(--hero-ivory);
    line-height: 1.15;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-title--single-line {
    white-space: nowrap;
}

@media (min-width: 900px) {
    .hero-grid:has(.hero-title--single-line) {
        grid-template-columns: minmax(0, 63%) minmax(0, 37%);
    }
}

/* Hero tagline — brand story block */
.hero-tagline {
    font-size: clamp(0.9rem, 1.75vw, 1.05rem);
    font-weight: 400;
    max-width: none;
    margin: 0 0 1rem;
    color: rgba(247, 241, 232, 0.82);
    line-height: 1.55;
}

.hero-copy .hero-cta {
    margin-top: 0.125rem;
}

/* Decorative right column — keeps existing palette, no layout hacks */
.hero-visual {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-brand-box {
    width: min(100%, 18.75rem);
}

.hero-brand-box__frame {
    border-radius: 1.15rem;
    border: 1px solid var(--hero-champagne);
    background: var(--hero-gradient);
    background-image:
        radial-gradient(ellipse 85% 75% at 50% 42%, rgba(200, 185, 154, 0.1) 0%, transparent 68%),
        var(--hero-gradient);
    box-shadow:
        inset 0 0 32px rgba(200, 185, 154, 0.07),
        inset 0 1px 0 rgba(247, 241, 232, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.32);
    padding: clamp(0.58rem, 1.8vw, 0.8rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-brand-box__logo,
.hero-brand-box__mark {
    width: 100%;
    max-width: 15.85rem;
    height: auto;
    display: block;
    border-radius: 0.55rem;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}

/* Tablet / mobile: single column, centered copy */
@media (max-width: 899px) {
    .hero {
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-title {
        white-space: normal;
        font-size: clamp(1.25rem, 4.2vw, 1.65rem);
    }

    .hero-title--single-line {
        white-space: normal;
    }

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-brand-box {
        width: min(100%, 14.4rem);
    }

    .hero-brand-box__logo,
    .hero-brand-box__mark {
        max-width: 12.95rem;
    }
}

/* Legacy selectors if used elsewhere */
.hero-content h2 {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--retail-navy);
}

.hero-content p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 400;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.75rem;
    color: var(--retail-muted);
    line-height: 1.65;
}

/* Buttons — MD3 filled / tonal */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    min-height: 40px;
    border: none;
    border-radius: var(--md-shape-corner-full);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
    text-align: center;
    box-shadow: var(--md-elevation-1);
}

.btn-primary {
    background-color: var(--retail-pink);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 63, 108, 0.35);
}

.btn-primary:hover {
    background-color: var(--retail-pink-dark);
    box-shadow: var(--md-elevation-2);
}

.btn-primary:active {
    box-shadow: var(--md-elevation-1);
}

.hero-cta {
    font-weight: 700;
    color: #fff !important;
}

.btn-secondary {
    background-color: transparent;
    color: var(--retail-navy);
    box-shadow: none;
    border: 1px solid var(--md-sys-color-outline);
}

.btn-secondary:hover {
    border-color: var(--retail-pink);
    color: var(--retail-pink);
    background-color: rgba(255, 63, 108, 0.06);
}

.hero .btn-secondary {
    background-color: #fff;
    color: var(--retail-navy);
    border-color: var(--md-sys-color-outline);
}

.hero .btn-secondary:hover {
    border-color: var(--retail-pink);
    color: var(--retail-pink);
}

.btn-sm {
    padding: 0.5rem 1rem;
    min-height: 32px;
    font-size: 0.8125rem;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.btn-large {
    padding: 0.875rem 2rem;
    min-height: 48px;
    font-size: 0.9375rem;
}

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

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.results-header {
    margin-bottom: 1.5rem;
}

.results-count {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.products-merch-wrap {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: #fafafa;
}

.products-merch-wrap__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 0 0 0.65rem;
}

.products-merch-bar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.25rem;
}

.products-merch-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.products-merch-field select {
    min-width: 12rem;
    max-width: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--md-sys-color-outline-variant);
    font: inherit;
    background: #fff;
}

.products-merch-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    padding-bottom: 0.15rem;
}

.products-merch-check input {
    width: 1rem;
    height: 1rem;
}

.products-merch-bar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.products-merch-submit {
    white-space: nowrap;
}

.products-merch-clear {
    font-size: 0.86rem;
}

.gender-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin: 0 0 1.5rem;
    padding: 0.65rem 0 0.35rem;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.gender-filter__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
}

.gender-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.gender-chip {
    display: inline-block;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface);
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.gender-chip:hover {
    color: var(--retail-navy);
    border-color: rgba(0, 0, 0, 0.14);
}

.gender-chip--active {
    color: var(--retail-navy);
    border-color: rgba(212, 165, 116, 0.75);
    background: rgba(212, 165, 116, 0.14);
}

.product-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin: 0 0 0.5rem;
}

.product-meta-line .product-category {
    margin-bottom: 0;
}

.product-gender-pill {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0.9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.65);
}

.product-detail-meta {
    margin-bottom: 0.85rem;
}

.related-products .product-meta-line {
    margin-bottom: 0.2rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--md-shape-corner-small);
    overflow: hidden;
    box-shadow: var(--md-elevation-1);
    border: 1px solid var(--md-sys-color-outline-variant);
    transition: box-shadow 0.22s ease;
}

.product-card:hover {
    box-shadow: var(--md-elevation-3);
}

.product-card-form {
    margin: 0;
}

.product-card-media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 0;
}

.product-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: var(--retail-search-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--md-shape-corner-small) var(--md-shape-corner-small) 0 0;
}

.product-image.product-image-fit {
    flex: 1;
    min-width: 0;
    height: auto;
    min-height: 180px;
    overflow: hidden;
}

.product-card .product-image.product-image-fit,
.products-grid .product-image.product-image-fit {
    flex: none;
    min-height: 0;
    aspect-ratio: 3 / 4;
}

.product-image-fit img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-card .product-image-fit img,
.products-grid .product-image-fit img {
    height: 100%;
    object-fit: contain;
}

.product-size-rail {
    position: relative;
    flex-shrink: 0;
    width: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.25rem;
    background: var(--md-sys-color-surface-container-high);
    border-left: 1px solid var(--md-sys-color-outline-variant);
    box-sizing: border-box;
}

.product-size-rail-detail {
    width: 3.25rem;
    padding: 0.65rem 0.35rem;
    border-radius: 0 10px 10px 0;
}

.product-size-rail-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
    margin-bottom: 0.25rem;
    user-select: none;
}

.size-pill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
    margin: 0;
}

.size-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.size-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    min-height: 1.65rem;
    padding: 0.15rem 0.2rem;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-shape-corner-extra-small);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.size-pill input:focus-visible + span {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.size-pill input:checked + span {
    background: var(--retail-pink);
    border-color: var(--retail-pink);
    color: #fff;
}

.size-pill:hover span {
    border-color: var(--retail-pink);
    color: var(--retail-pink);
}

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

.product-image img {
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
    transform-origin: center center;
    will-change: transform;
}

.product-image:hover img {
    transform: scale(1.1);
}

.image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: none;
    align-items: center;
    justify-content: center;
    color: #999;
    z-index: 0;
}

.image-fallback.show-fallback {
    display: flex;
}

.product-image:not(.product-image-fit) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reduce long-press “Save Image” on mobile (best-effort; pairs with main.js contextmenu guard) */
.product-image img,
.product-detail-image img,
.cart-item-image img,
.admin-thumb-wrap img {
    -webkit-touch-callout: none;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.product-image:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
    background: var(--bg-white);
}

.product-info h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    min-height: 2.8rem;
    margin-bottom: 0.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-category {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars {
    color: #ffb800;
    font-size: 0.9rem;
}

.rating-value {
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--retail-navy);
    margin: 0.75rem 0 1rem 0;
    letter-spacing: -0.01em;
}

/* Section titles — navy, strong hierarchy */
.section-title {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--retail-navy);
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--retail-pink);
}

.featured-products {
    background: var(--retail-section-tint);
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.section-title--merch {
    font-size: clamp(1.15rem, 2.8vw, 1.45rem);
}

.homepage-merch-sub {
    text-align: center;
    max-width: 40rem;
    margin: -0.35rem auto 1.35rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.homepage-merch-sub--tight {
    margin-bottom: 0.65rem;
}

.featured-products-empty--merch {
    max-width: 42rem;
}

.featured-products-empty {
    text-align: center;
    color: var(--retail-muted);
    font-size: 1.05rem;
    margin: 0.5rem auto 1rem;
    max-width: 36rem;
    line-height: 1.5;
}

.featured-products-cta {
    text-align: center;
    margin: 1.75rem 0 0;
}

.products-grid--featured {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Dynamic category nav (public API) — vertical, home + products */
.dynamic-category-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}

.dynamic-category-nav__inner {
    max-width: none;
}

.dynamic-category-nav__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--retail-muted);
    margin: 0 0 1.1rem;
}

.dynamic-category-nav__loading,
.dynamic-category-nav__empty {
    margin: 0;
    line-height: 1.5;
}

.dynamic-category-nav__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.dynamic-category-nav__item {
    display: flex;
    min-height: 4.75rem;
    margin: 0;
    border-radius: 10px;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--bg-white);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dynamic-category-nav__item:hover {
    background: rgba(255, 63, 108, 0.04);
}

.dynamic-category-nav__item--active {
    border-color: rgba(255, 63, 108, 0.35);
    background: rgba(255, 63, 108, 0.07);
    box-shadow: 0 1px 0 rgba(18, 47, 71, 0.04);
}

.dynamic-category-nav__link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: var(--retail-navy);
    border-radius: inherit;
}

.dynamic-category-nav__name {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.dynamic-category-nav__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 400;
    max-width: 36rem;
}

.dynamic-category-nav__item--active .dynamic-category-nav__name {
    color: var(--retail-pink-dark);
}

.dynamic-category-nav__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    border-radius: inherit;
}

.dynamic-category-nav__item--with-sub .dynamic-category-nav__link {
    flex: 1 1 100%;
    min-width: 0;
    padding: 0.85rem 1rem 0.3rem;
}

.dynamic-category-nav__item--with-sub .dynamic-category-nav__name {
    margin-bottom: 0;
}

.dynamic-category-nav__subselect {
    flex: 1 1 100%;
    align-self: center;
    margin: 0 1rem 0.85rem;
    padding: 0.45rem 1.95rem 0.45rem 0.65rem;
    width: calc(100% - 2rem);
    min-width: 0;
    max-width: none;
    font-size: 0.88rem;
    border-radius: 8px;
    border: 1px solid rgba(18, 47, 71, 0.15);
    background: var(--bg-white);
    color: var(--retail-navy);
    font-family: inherit;
    line-height: 1.25;
}

/* Signed-in admin only — delete catalog rows from home / products nav */
.dynamic-category-nav__admin-tools {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding: 0.35rem 0.75rem 0.65rem 1rem;
    border-top: 1px dashed rgba(183, 28, 28, 0.28);
    margin-top: 0.15rem;
}

.dynamic-category-nav__admin-btn {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(183, 28, 28, 0.5);
    background: #fff8f8;
    color: #b71c1c;
    cursor: pointer;
    font-family: inherit;
}

.dynamic-category-nav__admin-btn:hover:not(:disabled) {
    background: #ffebee;
}

.dynamic-category-nav__admin-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

@media (max-width: 1100px) {
    .dynamic-category-nav__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .dynamic-category-nav__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dynamic-category-nav__list {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .dynamic-category-nav__item {
        min-height: auto;
    }

    .dynamic-category-nav__inner {
        max-width: none;
    }

    .dynamic-category-nav__link {
        padding: 0.9rem 1rem;
    }

    .dynamic-category-nav__row {
        gap: 0.35rem;
    }

    .dynamic-category-nav__item--with-sub .dynamic-category-nav__link {
        flex: 1 1 100%;
        padding: 0.85rem 1rem 0.3rem;
    }

    .dynamic-category-nav__subselect {
        flex: 1 1 100%;
        max-width: none;
        margin: 0 1rem 0.85rem;
    }
}

.about {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Product Detail Page */
.product-detail-page {
    padding: 2rem 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--retail-pink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.back-link:hover {
    text-decoration: underline;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-white);
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--md-shape-corner-large);
    box-shadow: var(--md-elevation-2);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.product-detail-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    border-radius: var(--md-shape-corner-large);
    overflow: hidden;
    background-color: var(--md-sys-color-surface-container-high);
    box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant);
}

.product-detail-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--bg-light);
    position: relative;
}

.product-detail-image {
    position: relative;
}

.product-detail-image.product-image-fit {
    flex: none;
    min-width: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    min-height: 0;
    max-height: min(72vh, 640px);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    background: var(--soft-sand);
}

.product-detail-image.product-image-fit img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    z-index: 1;
}

.product-detail-image img {
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
    transform-origin: center center;
    will-change: transform;
}

.product-detail-image:hover img {
    transform: scale(1.1);
}

.product-detail-image .image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: none;
    align-items: center;
    justify-content: center;
    color: #999;
    z-index: 0;
}

.product-detail-image .image-fallback.show-fallback {
    display: flex;
}

.product-detail-image:not(.product-image-fit) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-description,
.product-features {
    margin: 2rem 0;
}

.product-description h3,
.product-features h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.add-to-cart-section {
    margin: 2rem 0;
}

.quantity-selector {
    margin-bottom: 1rem;
}

.quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.quantity-input {
    width: 100px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-shape-corner-extra-small);
    font-size: 1rem;
    background: var(--md-sys-color-surface-container);
}

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

.stock-status {
    margin-top: 1rem;
}

.in-stock {
    color: var(--success-color);
    font-weight: 600;
}

.out-of-stock {
    color: var(--accent-color);
    font-weight: 600;
}

/* Products Page */
.products-page {
    padding: 2rem 0 3rem;
    background: var(--bg-light);
    min-height: 50vh;
}

.page-title {
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--retail-navy);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.filter-section {
    margin-bottom: 2rem;
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.45rem 1rem;
    min-height: 32px;
    background: var(--bg-white);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-shape-corner-full);
    text-decoration: none;
    color: var(--retail-navy);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover {
    border-color: var(--retail-pink);
    color: var(--retail-pink);
}

.filter-btn.active {
    background: var(--retail-pink);
    border-color: var(--retail-pink);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 63, 108, 0.25);
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Pagination */
.pagination-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    min-height: 40px;
    background: var(--bg-white);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-shape-corner-full);
    text-decoration: none;
    color: var(--retail-navy);
    font-weight: 600;
    font-size: 0.8125rem;
    transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--retail-pink);
    color: var(--retail-pink);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-light);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-shape-corner-full);
    text-decoration: none;
    color: var(--retail-navy);
    font-weight: 600;
    font-size: 0.8125rem;
    transition: border-color 0.2s, color 0.2s;
}

.pagination-number:hover {
    border-color: var(--retail-pink);
    color: var(--retail-pink);
}

.pagination-number.active {
    background: var(--retail-pink);
    border-color: var(--retail-pink);
    color: #fff;
    cursor: default;
}

.pagination-number.active:hover {
    background: var(--retail-pink);
    border-color: var(--retail-pink);
    color: #fff;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: var(--text-light);
}

.pagination-info {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Cart Page */
.cart-page {
    padding: 2rem 0;
}

.cart-items {
    background: var(--bg-white);
    border-radius: var(--md-shape-corner-large);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--md-elevation-1);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.cart-item {
    display: grid;
    grid-template-columns: 150px 1fr auto auto;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: var(--md-shape-corner-medium);
    background-color: var(--bg-light);
    box-shadow: var(--md-elevation-1);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image.cart-item-image-fit {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image.cart-item-image-fit img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-size {
    font-size: 0.9rem;
    margin: 0.15rem 0 0.35rem 0;
    color: var(--text-dark);
}

.cart-item-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.cart-item-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--md-sys-color-outline);
    background: var(--md-sys-color-surface-container);
    border-radius: var(--md-shape-corner-full);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background: var(--md-sys-color-primary-container);
}

.quantity-input-cart {
    width: 56px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-shape-corner-small);
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    min-width: 120px;
    text-align: right;
}

.remove-item {
    background: var(--accent-color);
    color: var(--md-sys-color-on-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--md-shape-corner-full);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: var(--md-elevation-1);
    transition: box-shadow 0.2s;
}

.remove-item:hover {
    background: #b71c1c;
    box-shadow: var(--md-elevation-2);
}

.cart-summary {
    background: var(--bg-white);
    border-radius: var(--md-shape-corner-large);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--md-elevation-2);
    margin-top: 2rem;
    border: 1px solid var(--md-sys-color-outline-variant);
}

.cart-summary h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    border-bottom: 2px solid var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 1rem;
}

.cart-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.empty-cart {
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem);
    background: var(--bg-white);
    border-radius: var(--md-shape-corner-large);
    box-shadow: var(--md-elevation-2);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.empty-cart h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.empty-cart p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Checkout Page */
.checkout-page {
    padding: 2rem 0;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-form-section {
    background: var(--bg-white);
    border-radius: var(--md-shape-corner-large);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--md-elevation-1);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-shape-corner-extra-small);
    font-size: 1rem;
    font-family: inherit;
    background: var(--md-sys-color-surface-container);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--md-sys-color-primary) 22%, transparent);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.checkout-summary {
    background: var(--bg-white);
    border-radius: var(--md-shape-corner-large);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--md-elevation-2);
    border: 1px solid var(--md-sys-color-outline-variant);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 2px solid var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
}

/* Order Confirmation */
.order-confirmation-page {
    padding: 3rem 0;
}

.confirmation-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--md-shape-corner-large);
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: var(--md-elevation-3);
    border: 1px solid var(--md-sys-color-outline-variant);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.confirmation-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.order-id {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.confirmation-message {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.order-details,
.order-items {
    text-align: left;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 5px;
}

.order-details h2,
.order-items h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
}

.item-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.order-total {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--text-dark);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
}

.total-amount {
    color: var(--secondary-color);
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Related products */
.related-products {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.related-products .section-title {
    margin-bottom: 1.75rem;
}

/* Footer */
.footer {
    background: #fafafa;
    color: var(--retail-muted);
    text-align: center;
    padding: 2rem 0;
    margin-top: clamp(2.5rem, 6vw, 4rem);
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.footer p {
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 900px) {
    .header-content {
        flex-direction: row;
    }

    .header-search {
        order: 3;
        flex: 1 1 100%;
        min-width: 100%;
    }

    .nav-main {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 0.75rem;
    }

    .nav-main {
        width: 100%;
        justify-content: center;
        order: 4;
    }

    .header-bag {
        order: 2;
        margin-left: auto;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-title {
        white-space: normal;
        font-size: clamp(1.15rem, 4.8vw, 1.5rem);
    }

    .hero-tagline {
        font-size: 1rem;
    }


    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-image:not(.product-image-fit) {
        height: 400px;
    }

    .product-detail-image.product-image-fit {
        max-height: min(60vh, 520px);
        aspect-ratio: 3 / 4;
    }

    .product-detail-image.product-image-fit img {
        max-height: none;
        height: 100%;
        object-fit: contain;
    }

    .product-card-media {
        flex-direction: column;
    }

    .product-size-rail {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
        border-left: none;
        border-top: 1px solid #e8e8e8;
    }

    .product-size-rail-title {
        writing-mode: horizontal-tb;
        transform: none;
        width: 100%;
        text-align: center;
        margin-bottom: 0.35rem;
    }

    .product-size-rail .size-pill span {
        min-width: 2.25rem;
        font-size: 0.75rem;
    }

    .product-detail-visual {
        flex-direction: column;
    }

    .product-size-rail-detail {
        border-radius: 0 0 10px 10px;
        width: 100%;
    }

    .product-detail-image.product-image-fit {
        border-radius: 10px 10px 0 0;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }

    .cart-item-price {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 1rem;
    }

    .checkout-content {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .confirmation-actions {
        flex-direction: column;
    }
}

/* ============================================================
   TARAASHA redesign — shell, hero, promo, PLP polish
   ============================================================ */

.announcement-bar {
    background: var(--deep-plum);
    color: #f5efe8;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.announcement-bar__message {
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.utility-bar {
    background: var(--charcoal-ink);
    color: #e8e2dc;
    font-size: 0.75rem;
}

.utility-bar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    min-height: 36px;
}

.utility-bar a {
    color: #f3ebe3;
    text-decoration: none;
}

.utility-bar a:hover {
    color: var(--refined-gold);
}

.utility-bar__sep {
    opacity: 0.5;
    margin: 0 0.35rem;
}

.utility-bar__tagline {
    margin: 0;
    color: var(--heritage-silver);
}

.primary-nav {
    background: var(--deep-plum);
    color: #fff;
    border-bottom: 1px solid rgba(182, 138, 76, 0.25);
}

.primary-nav__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    min-height: var(--header-height);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.brand-logo__img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.brand-logo__name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #fff;
    line-height: 1.1;
}

.brand-logo__sub {
    display: block;
    font-size: 0.68rem;
    color: var(--heritage-silver);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.15rem;
    flex: 1 1 auto;
}

.desktop-nav__link {
    color: #f4ebe4;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.55rem 0.7rem;
    border-radius: 4px;
}

.desktop-nav__link:hover,
.desktop-nav__link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.site-header .header-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    flex: 1 1 180px;
    max-width: 280px;
    margin-left: auto;
}

.site-header .header-search__icon {
    color: var(--heritage-silver);
    display: flex;
}

.site-header .header-search-input {
    border: 0;
    background: transparent;
    color: #fff;
    width: 100%;
    font: inherit;
    font-size: 0.88rem;
    outline: none;
}

.site-header .header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.site-header .header-bag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #fff;
    text-decoration: none;
    min-width: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    border-radius: 4px;
    position: relative;
}

.site-header .header-bag:hover {
    color: var(--refined-gold);
    background: rgba(255, 255, 255, 0.08);
}

.site-header .header-bag-icon {
    display: inline-flex;
    line-height: 0;
}

.site-header .header-bag-label {
    display: none;
}

.site-header .cart-count {
    background: var(--refined-gold);
    color: var(--deep-plum);
    border-radius: 999px;
    min-width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 0.2rem;
    line-height: 1;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle__bar {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
}

.mobile-drawer[hidden] {
    display: none !important;
}

.mobile-drawer:not([hidden]) {
    display: block;
}

.mobile-drawer__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 28, 29, 0.55);
    z-index: 1100;
}

.mobile-drawer__panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 320px);
    background: var(--warm-ivory);
    z-index: 1101;
    padding: 1rem 1.25rem 2rem;
    box-shadow: var(--md-elevation-4);
    overflow-y: auto;
}

.mobile-drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.mobile-drawer__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--deep-plum);
}

.mobile-drawer__close {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--charcoal-ink);
}

.mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-drawer__nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.25rem;
    color: var(--charcoal-ink);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.mobile-drawer__cart {
    gap: 0.55rem;
}

.mobile-drawer__cart-icon {
    display: inline-flex;
    line-height: 0;
    color: var(--royal-aubergine);
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }

    .desktop-nav {
        display: flex;
    }
}

/* Hero carousel */
.hero-carousel {
    position: relative;
    background: var(--deep-plum);
    color: #fff;
}

.hero-carousel__viewport {
    position: relative;
    overflow: hidden;
    min-height: clamp(380px, 62vh, 620px);
}

.hero-slide {
    display: none;
    position: relative;
    min-height: clamp(380px, 62vh, 620px);
}

.hero-slide.is-active {
    display: block;
}

.hero-slide__media {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(182, 138, 76, 0.22), transparent 55%),
        linear-gradient(135deg, #2a1226 0%, #4b2142 48%, #1e1c1d 100%);
}

.hero-slide__media--sand {
    background:
        radial-gradient(ellipse at 30% 60%, rgba(232, 222, 209, 0.2), transparent 50%),
        linear-gradient(120deg, #3a1a34 0%, #5a2d4f 50%, #2c241f 100%);
}

.hero-slide__media--ink {
    background: linear-gradient(160deg, #1e1c1d 0%, #32152d 55%, #4b2142 100%);
}

.hero-slide__media--aubergine {
    background: linear-gradient(200deg, #4b2142 0%, #32152d 60%, #1a1018 100%);
}

.hero-slide__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    min-height: clamp(380px, 62vh, 620px);
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    max-width: 720px;
}

.hero-slide__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--refined-gold);
    font-weight: 600;
}

.hero-slide__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
}

.hero-slide__text {
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 34ch;
}

.hero-carousel__ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(30, 28, 29, 0.35);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero-carousel__ctrl--prev { left: 0.75rem; }
.hero-carousel__ctrl--next { right: 0.75rem; }

.hero-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 0 1.25rem;
    background: var(--deep-plum);
}

.hero-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-carousel__dot.is-active {
    background: var(--refined-gold);
}

/* Promo rail (legacy — kept for any residual use) */
.promo-rail {
    padding: 2.5rem 0 1rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-header__link {
    color: var(--royal-aubergine);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--deep-plum);
    margin: 0 0 0.35rem;
    letter-spacing: 0.01em;
}

.section-sub {
    margin: 0;
    color: var(--muted-taupe);
    max-width: 42ch;
}

.promo-rail__scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.promo-card {
    scroll-snap-align: start;
    min-height: 220px;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.35rem;
    background: linear-gradient(160deg, #4b2142, #1e1c1d);
    border: 1px solid rgba(184, 180, 177, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-card:hover,
.promo-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--md-elevation-3);
}

.promo-card--sand {
    background: linear-gradient(160deg, #6b4a3a, #3a2a24);
}

.promo-card--ink {
    background: linear-gradient(160deg, #2a2430, #1e1c1d);
}

.promo-card--gold {
    background: linear-gradient(160deg, #6a4a28, #32152d);
}

.promo-card__label {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
}

.promo-card__desc {
    font-size: 0.9rem;
    opacity: 0.85;
}

.promo-card__cta {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--refined-gold);
}

/* Sale Selection — image category carousel */
.sale-selection {
    padding: 2.75rem 0 2rem;
    background: #fff;
}

.sale-selection__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.sale-selection__title {
    margin: 0;
    font-family: var(--font-sans, "Segoe UI", system-ui, sans-serif);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.sale-selection__stage {
    position: relative;
}

.sale-selection__scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(360px, 40vw);
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.15rem;
}

.sale-selection__scroller::-webkit-scrollbar {
    display: none;
}

.sale-card {
    position: relative;
    scroll-snap-align: start;
    min-height: 0;
    overflow: hidden;
    background: #1e1c1d;
    color: #fff;
    border: 0;
}

.sale-card__frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 360px;
    overflow: hidden;
}

.sale-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #f5f2ee;
}

.sale-card__img--placeholder {
    background: linear-gradient(160deg, #4b2142, #1e1c1d);
}

.sale-card--tone-1 .sale-card__img--placeholder {
    background: linear-gradient(160deg, #6b4a3a, #3a2a24);
}

.sale-card--tone-2 .sale-card__img--placeholder {
    background: linear-gradient(160deg, #2a2430, #1e1c1d);
}

.sale-card--tone-3 .sale-card__img--placeholder {
    background: linear-gradient(160deg, #6a4a28, #32152d);
}

.sale-card__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.15rem 1.05rem 1.15rem;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.12) 38%,
        rgba(0, 0, 0, 0.08) 62%,
        rgba(0, 0, 0, 0.45) 100%
    );
    color: #fff;
    pointer-events: none;
}

.sale-card__copy {
    max-width: 18ch;
    pointer-events: none;
}

.sale-card__name {
    margin: 0;
    font-family: var(--font-sans, "Segoe UI", system-ui, sans-serif);
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sale-card__name a {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
}

.sale-card__subtitle {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.35;
}

.sale-card__promo {
    margin: 0.45rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
}

.sale-card__accent {
    color: #ff3b30;
    font-weight: 800;
}

.sale-card__cta {
    pointer-events: auto;
    align-self: flex-end;
    display: inline-block;
    padding: 0.6rem 1rem;
    background: #fff;
    color: #111 !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
}

.sale-card__cta:hover,
.sale-card__cta:focus-visible {
    background: #f3f3f3;
    color: #111 !important;
}

.sale-selection__ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    color: #222;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sale-selection__ctrl:hover,
.sale-selection__ctrl:focus-visible {
    background: #fff;
}

.sale-selection__ctrl--prev {
    left: 0.35rem;
}

.sale-selection__ctrl--next {
    right: 0.35rem;
}

.sale-selection__dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
    min-height: 0.7rem;
}

.sale-selection__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: #c8c8c8;
    cursor: pointer;
}

.sale-selection__dot.is-active {
    background: #e57a2e;
}

@media (max-width: 900px) {
    .sale-selection__scroller {
        grid-auto-columns: minmax(300px, 82vw);
    }

    .sale-selection__ctrl--prev {
        left: 0.15rem;
    }

    .sale-selection__ctrl--next {
        right: 0.15rem;
    }
}

@media (max-width: 600px) {
    .sale-card__frame {
        min-height: 320px;
    }

    .sale-selection__ctrl {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.35rem;
    }
}

/* Category nav — compact strip so all cards fit on screen */
.dynamic-category-nav {
    background: var(--pure-white);
    border-block: 1px solid var(--border-color);
    padding: 1.25rem 0 1.35rem;
}

.dynamic-category-nav__eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-taupe);
    font-weight: 600;
    margin: 0 0 0.65rem;
}

.dynamic-category-nav__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0.45rem;
    overflow: visible;
    padding-bottom: 0;
}

.dynamic-category-nav__item {
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(184, 180, 177, 0.65);
    border-radius: 4px;
    background: linear-gradient(180deg, #fffdf9 0%, var(--warm-ivory) 100%);
    padding: 0.55rem 0.5rem 0.6rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dynamic-category-nav__item:hover {
    border-color: rgba(75, 33, 66, 0.35);
    background: linear-gradient(180deg, #fff 0%, #f7f0e8 100%);
    box-shadow: 0 2px 10px rgba(50, 21, 45, 0.06);
}

.dynamic-category-nav__item--active {
    border-color: var(--royal-aubergine);
    background: linear-gradient(180deg, #faf3f7 0%, #f3e8ef 100%);
    box-shadow: inset 0 0 0 1px rgba(75, 33, 66, 0.08);
}

.dynamic-category-nav__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.6rem;
    padding: 0.15rem 0.1rem;
    box-sizing: border-box;
    text-align: center;
}

.dynamic-category-nav__item--with-sub .dynamic-category-nav__link {
    min-height: 2.1rem;
    padding: 0.1rem 0.1rem 0.05rem;
}

.dynamic-category-nav__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(0.82rem, 1.15vw, 1.05rem);
    line-height: 1.28;
    letter-spacing: 0.02em;
    color: var(--deep-plum);
    margin: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: balance;
    transition: color 0.2s ease;
}

.dynamic-category-nav__item:hover .dynamic-category-nav__name {
    color: var(--royal-aubergine);
}

.dynamic-category-nav__item--active .dynamic-category-nav__name {
    color: var(--royal-aubergine);
    font-weight: 700;
}

.dynamic-category-nav__desc {
    display: none;
}

.dynamic-category-nav__row {
    gap: 0.3rem;
    justify-content: center;
}

.dynamic-category-nav__subselect {
    margin: 0.35rem 0.1rem 0.1rem;
    width: calc(100% - 0.2rem);
    min-height: 28px;
    border: 1px solid var(--heritage-silver);
    border-radius: 4px;
    background: #fff;
    font: inherit;
    font-size: 0.72rem;
    padding: 0.15rem 0.3rem;
    color: var(--muted-taupe);
}

@media (max-width: 900px) {
    .dynamic-category-nav__list {
        grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    }

    .dynamic-category-nav__name {
        font-size: 0.9rem;
    }

    .dynamic-category-nav__link {
        min-height: 2.4rem;
    }
}

@media (max-width: 560px) {
    .dynamic-category-nav__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .dynamic-category-nav__name {
        font-size: 0.95rem;
    }
}

/* Product cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.75rem 1.25rem;
    }
}

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

.product-card {
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: var(--md-elevation-2);
}

.product-card-form {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.product-card-media {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-shrink: 0;
}

/* Uniform image frame — equal box; full image visible (no crop) */
.product-card .product-image,
.product-card .product-image.product-image-fit,
.products-grid .product-image,
.products-grid .product-image.product-image-fit {
    position: relative;
    width: 100%;
    flex: none;
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    background: var(--soft-sand);
    border-radius: 0;
    display: block;
}

.product-card .product-image__link,
.products-grid .product-image__link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-card .product-image img,
.product-card .product-image-fit img,
.product-card .product-image__link img,
.products-grid .product-image img,
.products-grid .product-image-fit img,
.products-grid .product-image__link img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.product-card .product-size-rail,
.products-grid .product-size-rail {
    position: relative;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    height: 2.6rem;
    min-height: 2.6rem;
    max-height: 2.6rem;
    padding: 0.35rem 0.5rem;
    background: var(--warm-ivory);
    border-left: none;
    border-top: 1px solid var(--border-color);
    box-sizing: border-box;
}

.product-card .product-size-rail-title,
.products-grid .product-size-rail-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.68rem;
    margin: 0 0.25rem 0 0;
    letter-spacing: 0.08em;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 0.85rem 0.9rem 1rem;
    min-height: 0;
}

.product-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    height: 1.4rem;
    min-height: 1.4rem;
    max-height: 1.4rem;
    margin: 0 0 0.35rem;
    overflow: hidden;
}

.product-title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em;
    min-height: 2.7em;
    max-height: 2.7em;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--royal-aubergine);
}

.product-category {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-taupe);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.product-rating {
    height: 1.3rem;
    min-height: 1.3rem;
    margin: 0 0 0.4rem;
    overflow: hidden;
}

.product-price-slot {
    height: 2.75rem;
    min-height: 2.75rem;
    max-height: 2.75rem;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--charcoal-ink);
    margin: 0;
}

.product-info .add-to-cart,
.product-info .btn-block.add-to-cart {
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.product-badges {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    pointer-events: none;
}

.product-badges--detail {
    top: 0.85rem;
    left: 0.85rem;
}

.product-badge {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.5rem;
    border-radius: 2px;
    line-height: 1;
}

.product-badge--new {
    background: var(--deep-plum);
    color: #fff;
}

.product-badge--sale {
    background: var(--offer-crimson);
    color: #fff;
}

.product-price--sale {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
}

.product-price__sale {
    color: var(--offer-crimson);
    font-weight: 700;
}

.product-price__was {
    color: var(--muted-taupe);
    font-weight: 500;
    font-size: 0.9em;
    text-decoration: line-through;
}

.product-price__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--offer-crimson);
}

.product-image-pricebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    min-height: 2.4rem;
    padding: 0.55rem 0.65rem;
    background: linear-gradient(180deg, transparent 0%, rgba(30, 28, 29, 0.82) 35%);
    color: #fff;
    pointer-events: none;
    box-sizing: border-box;
}

.product-image-pricebar__sale {
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.product-image-pricebar__was {
    font-size: 0.78rem;
    opacity: 0.85;
    text-decoration: line-through;
    font-weight: 500;
}

.product-image-pricebar__off {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--offer-crimson);
    color: #fff;
    padding: 0.22rem 0.4rem;
    border-radius: 2px;
}

.product-image-pricebar--detail {
    padding: 0.75rem 0.9rem;
    min-height: 2.75rem;
}

.product-image-pricebar--detail .product-image-pricebar__sale {
    font-size: 1.15rem;
}

/* PDP hero image — same 3:4 frame language */
.product-detail-visual {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-detail-image.product-image-fit {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: 0;
    max-height: min(72vh, 640px);
    border-radius: 10px;
    overflow: hidden;
    background: var(--soft-sand);
}

.product-detail-image.product-image-fit img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.product-detail .product-size-rail-detail {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    border-radius: 0 0 10px 10px;
    border-left: none;
    border-top: 1px solid var(--border-color);
    margin-top: -1px;
}

.product-price-breakdown {
    margin: 0.35rem 0 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--warm-ivory);
    max-width: 22rem;
}

.product-price-breakdown__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.92rem;
    padding: 0.25rem 0;
}

.product-price-breakdown__row--disc {
    color: var(--offer-crimson);
    font-weight: 650;
}

.product-price-breakdown__row--total {
    margin-top: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 1.05rem;
}

.product-price-save {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--success-green);
}

.order-item-discount {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--offer-crimson);
}

.total-row--muted {
    color: var(--muted-taupe);
    font-weight: 500;
}

.total-row--saved {
    color: var(--success-green);
    font-weight: 650;
}

.summary-item--priced {
    display: block;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-item__meta {
    margin: 0.2rem 0 0.45rem;
    font-size: 0.85rem;
    color: var(--muted-taupe);
}

.summary-item__prices,
.summary-totals {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.summary-price-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.summary-price-row--disc {
    color: var(--offer-crimson);
    font-weight: 650;
}

.summary-price-row--sale {
    font-weight: 650;
}

.summary-price-row--total {
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border-color);
    font-size: 1.05rem;
    font-weight: 700;
}

.summary-totals {
    margin-top: 0.35rem;
}

.summary-disc {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--offer-crimson);
}

.summary-saved {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    color: var(--success-green);
    font-weight: 650;
}

.btn-primary {
    background: var(--royal-aubergine);
    border-color: var(--royal-aubergine);
    color: #fff;
}

.btn-primary:hover {
    background: var(--deep-plum);
    border-color: var(--deep-plum);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--royal-aubergine);
    color: var(--royal-aubergine);
}

.brand-statement {
    padding: 3.5rem 0;
    background: var(--pure-white);
    border-block: 1px solid var(--border-color);
}

.brand-statement__inner {
    max-width: 720px;
    text-align: center;
}

.brand-statement__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--refined-gold);
    font-weight: 700;
}

.brand-statement__title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    color: var(--deep-plum);
    margin: 0.5rem 0 1rem;
}

.brand-statement__text {
    color: var(--muted-taupe);
    font-size: 1.05rem;
}

.heritage-block {
    padding: 3rem 0;
}

.heritage-block__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .heritage-block__grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.heritage-block__visual {
    display: flex;
    justify-content: center;
    background: var(--soft-sand);
    border-radius: 8px;
    padding: 2rem;
}

.heritage-block__visual img {
    max-width: 220px;
    width: 100%;
    height: auto;
    opacity: 0.92;
}

.trust-strip {
    background: var(--deep-plum);
    color: #f4ebe4;
    padding: 1.75rem 0;
}

.trust-strip__grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .trust-strip__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-strip__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trust-strip__item strong {
    font-size: 0.95rem;
}

.trust-strip__item span {
    font-size: 0.85rem;
    color: var(--heritage-silver);
}

.seo-intro {
    padding: 2rem 0 1rem;
    color: var(--muted-taupe);
    font-size: 0.95rem;
}

.site-footer {
    background: var(--charcoal-ink);
    color: #e8e2dc;
    margin-top: 2rem;
    padding-top: 2.5rem;
}

.site-footer__grid {
    display: grid;
    gap: 1.75rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}

.site-footer__name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
    color: #fff;
}

.site-footer__statement {
    color: var(--heritage-silver);
    font-size: 0.92rem;
    max-width: 32ch;
}

.site-footer__heading {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
    color: var(--refined-gold);
}

.site-footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.site-footer__list a {
    color: #e8e2dc;
    text-decoration: none;
    font-size: 0.92rem;
}

.site-footer__list a:hover {
    color: #fff;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    font-size: 0.82rem;
    color: var(--heritage-silver);
}

/* PLP */
.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted-taupe);
    margin: 1.25rem 0 0.75rem;
}

.breadcrumbs a {
    color: var(--royal-aubergine);
    text-decoration: none;
}

.plp-header {
    margin-bottom: 1.25rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--deep-plum);
    margin: 0 0 0.35rem;
}

.plp-intro {
    color: var(--muted-taupe);
    margin: 0;
}

.plp-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.gender-chip {
    border-color: var(--heritage-silver);
    color: var(--charcoal-ink);
}

.gender-chip--active,
.gender-chip:hover {
    background: var(--royal-aubergine);
    border-color: var(--royal-aubergine);
    color: #fff;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.clear-filters {
    color: var(--royal-aubergine);
    font-weight: 600;
    font-size: 0.88rem;
}

.featured-products {
    padding: 2.5rem 0 1.5rem;
}

.featured-products-cta {
    text-align: center;
    margin-top: 1.5rem;
}

.no-products {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted-taupe);
}

.pagination-number.active,
.pagination-btn:not(.disabled):hover {
    background: var(--royal-aubergine);
    border-color: var(--royal-aubergine);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .promo-card,
    .product-card {
        transition: none;
    }
}

.checkout-payment-note {
    margin: 0 0 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

.checkout-payment-status {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.checkout-payment-status--info {
    background: #eef4ff;
    color: #1e3a8a;
}

.checkout-payment-status--warning {
    background: #fff7ed;
    color: #9a3412;
}

.checkout-payment-status--error {
    background: #fef2f2;
    color: #991b1b;
}

.payment-icon--pending {
    background: #f59e0b;
}

.payment-icon--failed {
    background: #dc2626;
}

.payment-status-card {
    text-align: left;
}

.payment-status-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.payment-status--paid {
    background: #dcfce7;
    color: #166534;
}

.payment-status--pending,
.payment-status--authorized {
    background: #fef9c3;
    color: #854d0e;
}

.payment-status--failed,
.payment-status--cancelled,
.payment-status--expired {
    background: #fee2e2;
    color: #991b1b;
}
