/* ============================================================
   ERW ESSENTIALS — GLOBAL STYLES
   Built on the ERW Essentials Design System v1.0
   Typeface: Manrope · Palette: Navy scale + ERW Gold
   Scope: design tokens, reset, base, header (3-tier), footer.
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
    /* Navy scale */
    --erw-navy-darkest: #070e1a;
    --erw-navy-dark:    #0d1b2e;
    --erw-navy-mid:     #1a2f4e;
    --erw-navy-subtle:  #1a3050;

    /* Brand gold */
    --erw-gold:      #f5a623;
    --erw-gold-dark: #d4901e;

    /* Neutrals */
    --erw-page-bg:   #f5f7fa;
    --erw-white:     #ffffff;
    --erw-text:      #0d1b2e;
    --erw-muted:     #64748b;
    --erw-tertiary:  #94a3b8;
    --erw-border:    #e2e8f0;

    /* Typography */
    --erw-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Radii — square buttons are a deliberate B2B brand decision */
    --erw-r-none: 0px;
    --erw-r-sm:   4px;
    --erw-r-md:   8px;
    --erw-r-lg:   12px;
    --erw-r-pill: 999px;

    /* Elevation */
    --erw-shadow-sm:   0 1px 4px rgba(13,27,46,0.06);
    --erw-shadow-md:   0 4px 16px rgba(13,27,46,0.08);
    --erw-shadow-lg:   0 8px 24px rgba(13,27,46,0.10);
    --erw-shadow-gold: 0 10px 28px rgba(245,166,35,0.30);

    /* Motion */
    --erw-t-fast: 150ms ease;
    --erw-t-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --erw-container:         1320px;
    --erw-section-container: 1400px;
    --erw-wide-container:    1550px;
    --erw-util-h:  38px;
    --erw-main-h:  76px;
    --erw-nav-h:   52px;
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--erw-font);
    background: var(--erw-page-bg);
    color: var(--erw-text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a   { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* Shared container */
.erw-container {
    max-width: var(--erw-container);
    margin: 0 auto;
    padding: 0 28px;
}

/* Reusable eyebrow */
.erw-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--erw-gold);
}

/* ── ACCESSIBILITY HELPERS ───────────────────────────────── */
.erw-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 3000;
    padding: 10px 14px;
    background: var(--erw-gold);
    color: var(--erw-navy-darkest);
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform var(--erw-t-fast);
}
.erw-skip-link:focus { transform: translateY(0); }
body.erw-menu-open { overscroll-behavior: contain; }

/* ============================================================
   BUTTONS  (square, uppercase — from the design system)
============================================================ */
.erw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--erw-font);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--erw-r-none);
    padding: 14px 28px;
    white-space: nowrap;
    transition: background var(--erw-t-fast),
                color var(--erw-t-fast),
                border-color var(--erw-t-fast),
                transform var(--erw-t-fast),
                box-shadow var(--erw-t-fast);
}
.erw-btn--sm { padding: 9px 18px; font-size: 10px; }

.erw-btn__ico { width: 15px; height: 15px; flex-shrink: 0; transition: transform var(--erw-t-fast); }

/* Primary — gold */
.erw-btn--primary {
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
    box-shadow: var(--erw-shadow-gold);
}
.erw-btn--primary:hover {
    background: var(--erw-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(245,166,35,0.42);
}
.erw-btn--primary:active { transform: translateY(0); box-shadow: var(--erw-shadow-sm); }
.erw-btn--primary:hover .erw-btn__ico { transform: translateX(3px); }

/* Ghost on dark */
.erw-btn--ghost {
    background: transparent;
    color: var(--erw-white);
    border: 2px solid rgba(255,255,255,0.30);
}
.erw-btn--ghost:hover {
    border-color: var(--erw-white);
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}
.erw-btn--ghost:active { transform: translateY(0); }

/* Outline gold */
.erw-btn--outline {
    background: transparent;
    color: var(--erw-gold);
    border: 2px solid var(--erw-gold);
}
.erw-btn--outline:hover { background: var(--erw-gold); color: var(--erw-navy-dark); }

/* ============================================================
   HEADER — 3-tier: utility · main · nav
============================================================ */
.erw-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--erw-navy-dark);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* ── Tier 1: utility bar ───────────────────────────────── */
.erw-util {
    background: var(--erw-navy-darkest);
    color: rgba(255,255,255,0.42);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: height var(--erw-t-base), opacity 180ms ease;
    height: var(--erw-util-h);
    overflow: hidden;
}
.erw-util__inner {
    max-width: var(--erw-wide-container);
    margin: 0 auto;
    padding: 0 28px;
    height: var(--erw-util-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: max-width var(--erw-t-base);
}
.erw-util__ship { display: inline-flex; align-items: center; gap: 8px; }
.erw-util__flag {
    width: 18px; height: 12px; border-radius: 2px;
    background: linear-gradient(180deg,#b22234 0 33%,#fff 33% 66%,#3c3b6e 66%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
    flex-shrink: 0;
}
.erw-util__caret { width: 9px; height: 9px; stroke: currentColor; fill: none; stroke-width: 2; }
.erw-util__links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.erw-util__link { transition: color var(--erw-t-fast); }
.erw-util__link:hover { color: var(--erw-gold); }

/* Legal policy modal */
body.erw-policy-modal-open { overflow: hidden; }
.erw-policy-modal[hidden] { display: none; }
.erw-policy-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 28px;
}
.erw-policy-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(5, 16, 31, 0.82);
    backdrop-filter: blur(5px);
    cursor: default;
}
.erw-policy-modal__dialog {
    position: relative;
    width: min(960px, 100%);
    max-height: min(820px, calc(100vh - 56px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    background: var(--erw-white);
    box-shadow: 0 28px 80px rgba(5,16,31,0.34);
}
.erw-policy-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 30px;
    background: var(--erw-navy-mid);
    color: var(--erw-white);
}
.erw-policy-modal__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    padding: 7px 12px;
    border-left: 3px solid var(--erw-gold);
    border-radius: 0 6px 6px 0;
    background: rgba(255,255,255,0.09);
    color: var(--erw-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}
.erw-policy-modal__title {
    margin: 0;
    color: var(--erw-white);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}
.erw-policy-modal__close {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.26);
    border-radius: 50%;
    background: transparent;
    color: var(--erw-white);
    cursor: pointer;
    transition: border-color var(--erw-t-fast), background var(--erw-t-fast), color var(--erw-t-fast);
}
.erw-policy-modal__close:hover {
    border-color: var(--erw-gold);
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
}
.erw-policy-modal__close svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}
.erw-policy-modal__body {
    min-height: 0;
    overflow-y: auto;
    padding: 30px;
    overscroll-behavior: contain;
}
.erw-policy-modal__content {
    color: var(--erw-muted);
    font-size: 16px;
    line-height: 1.75;
}
.erw-policy-modal__content > :first-child { margin-top: 0; }
.erw-policy-modal__content > :last-child { margin-bottom: 0; }
.erw-policy-modal__content h1,
.erw-policy-modal__content h2,
.erw-policy-modal__content h3,
.erw-policy-modal__content h4 {
    margin: 1.5em 0 0.55em;
    color: var(--erw-navy-dark);
    line-height: 1.25;
}
.erw-policy-modal__content h1 { font-size: 28px; }
.erw-policy-modal__content h2 { font-size: 23px; }
.erw-policy-modal__content h3,
.erw-policy-modal__content h4 { font-size: 18px; }
.erw-policy-modal__content a {
    color: var(--erw-gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.erw-policy-modal__content ul,
.erw-policy-modal__content ol { padding-left: 22px; }
.erw-policy-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 30px;
    border-top: 1px solid var(--erw-border);
    background: var(--erw-page-bg);
    color: var(--erw-muted);
    font-size: 13px;
}
.erw-policy-modal__footer a {
    color: var(--erw-navy-dark);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.erw-policy-modal__footer a:hover { color: var(--erw-gold-dark); }

@media (max-width: 640px) {
    .erw-policy-modal { padding: 12px; }
    .erw-policy-modal__dialog { max-height: calc(100vh - 24px); }
    .erw-policy-modal__header,
    .erw-policy-modal__body { padding: 22px 20px; }
    .erw-policy-modal__footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 20px;
    }
    .erw-policy-modal__content { font-size: 15px; }
}

/* collapse utility bar when scrolled */
.erw-header.is-scrolled .erw-util { height: 0; opacity: 0; }

/* ── Tier 2: main bar (logo · search · account) ────────── */
.erw-main {
    height: var(--erw-main-h);
    display: flex;
    align-items: center;
    gap: 36px;
    max-width: var(--erw-wide-container);
    margin: 0 auto;
    padding: 0 28px;
    transition: height var(--erw-t-base), max-width var(--erw-t-base);
}
.erw-header.is-scrolled .erw-main { height: 66px; }

/* Logo */
.erw-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 129px;
    height: 58px;
    flex-shrink: 0;
}
.erw-logo__image {
    display: block;
    width: auto;
    height: 58px;
    object-fit: contain;
    opacity: 1;
    transition: height var(--erw-t-base), opacity 500ms ease, filter 500ms ease, transform 500ms ease;
}
.erw-header.is-scrolled .erw-logo {
    width: 111px;
    height: 50px;
}
.erw-header.is-scrolled .erw-logo__image { height: 50px; }
.erw-logo__message {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: visible;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translateY(2px);
    transition: opacity 220ms ease;
}
.erw-logo__message-line {
    display: block;
    min-height: 17px;
    color: var(--erw-white);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1.25;
    white-space: nowrap;
}
.erw-logo__message-line--gold { color: var(--erw-gold); }
.erw-logo__character {
    display: inline-block;
    will-change: transform, opacity, filter;
}
.erw-logo.is-presenting .erw-logo__image {
    opacity: 0.10;
    filter: saturate(0.7) blur(0.2px);
    transform: scale(0.98);
}
.erw-logo.is-presenting .erw-logo__message { opacity: 1; }
.erw-logo__caret {
    display: inline-block;
    width: 1px;
    height: 1em;
    margin-left: 2px;
    vertical-align: -0.08em;
    background: var(--erw-gold);
    animation: erw-logo-caret 700ms steps(1, end) infinite;
}
.erw-logo.is-dusting .erw-logo__message { opacity: 1; }
.erw-logo.is-dusting .erw-logo__character {
    animation: erw-logo-dust 900ms cubic-bezier(.2,.7,.2,1) forwards;
    animation-delay: var(--dust-delay, 0ms);
}
@keyframes erw-logo-caret {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}
@keyframes erw-logo-dust {
    0% {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0,0,0) rotate(0deg) scale(1);
    }
    55% { opacity: 0.65; }
    100% {
        opacity: 0;
        filter: blur(3px);
        transform: translate3d(var(--dust-x, 12px), var(--dust-y, -14px), 0) rotate(var(--dust-rotate, 10deg)) scale(0.3);
    }
}

/* Search (pill with category select + gold button) */
.erw-search {
    position: relative;
    z-index: 3;
    flex: 1;
    min-width: 0;
    max-width: none;
    margin-left: 32px;
    display: flex;
    align-items: center;
    background: var(--erw-white);
    border-radius: var(--erw-r-pill);
    box-shadow: var(--erw-shadow-sm);
    height: 48px;
    overflow: visible;
    border: 2px solid var(--erw-border);
    padding: 3px;
    transition: border-color var(--erw-t-fast), box-shadow var(--erw-t-fast);
}
.erw-search__category {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.erw-search:hover { border-color: var(--erw-gold); }
.erw-search:focus-within {
    border-color: var(--erw-gold);
    box-shadow: 0 0 0 4px rgba(245,166,35,0.15);
}
.erw-search__cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--erw-navy-dark);
    padding: 0 16px 0 20px;
    height: 100%;
    border-right: 1px solid var(--erw-border);
    border-radius: var(--erw-r-pill) 0 0 var(--erw-r-pill);
    background: transparent;
    white-space: nowrap;
    cursor: pointer;
}
.erw-search__cat svg { width: 9px; height: 9px; stroke: var(--erw-muted); fill: none; stroke-width: 2; transition: transform var(--erw-t-fast); }
.erw-search__cat[aria-expanded="true"] svg { transform: rotate(180deg); }
.erw-search__cat:focus-visible {
    outline: 2px solid var(--erw-gold);
    outline-offset: -3px;
}
.erw-search__field {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 13.5px;
    color: var(--erw-text);
    padding: 0 16px;
    background: none;
}
.erw-search__field::placeholder { color: var(--erw-tertiary); }
.erw-search__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    height: 100%;
    min-width: 136px;
    padding: 0 28px;
    border-radius: var(--erw-r-pill);
    transition: background var(--erw-t-fast), color var(--erw-t-fast);
}
.erw-search__btn:hover { background: var(--erw-navy-mid); color: var(--erw-white); }

/* Account cluster */
.erw-acct { display: flex; align-items: center; gap: 20px; flex-shrink: 0; margin-left: auto; }
.erw-acct__item {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    transition: color var(--erw-t-fast);
}
.erw-acct__item:hover,
.erw-acct__item--active { color: var(--erw-gold); }
.erw-acct__icon-wrap {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    background: rgba(255,255,255,0.035);
    color: var(--erw-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.erw-acct__ico { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; flex-shrink: 0; }
.erw-acct__labels { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.25; }
.erw-acct__top { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.48); }
.erw-acct__sub { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.88); }
.erw-acct__item:hover .erw-acct__icon-wrap,
.erw-acct__item--active .erw-acct__icon-wrap {
    border-color: var(--erw-gold);
    background: rgba(245,166,35,0.08);
    color: var(--erw-gold);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.08);
}
.erw-acct__item:hover .erw-acct__top,
.erw-acct__item--active .erw-acct__top { color: rgba(255,255,255,0.64); }
.erw-acct__item:hover .erw-acct__sub,
.erw-acct__item--active .erw-acct__sub { color: var(--erw-gold); }

.erw-cart { position: relative; }
.erw-cart__icon-wrap { position: relative; }
.erw-cart__badge {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
    font-size: 10px;
    font-weight: 800;
    border-radius: var(--erw-r-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Tier 3: nav bar ───────────────────────────────────── */
.erw-nav { background: var(--erw-navy-mid); }
.erw-nav__inner {
    height: var(--erw-nav-h);
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: var(--erw-wide-container);
    margin: 0 auto;
    padding: 0 28px;
    transition: max-width var(--erw-t-base);
}

.erw-header.is-past-hero .erw-util__inner,
.erw-header.is-past-hero .erw-main,
.erw-header.is-past-hero .erw-nav__inner {
    max-width: var(--erw-section-container);
}
.erw-nav__categories {
    position: relative;
    align-self: stretch;
    display: flex;
    margin-right: 18px;
}
.erw-nav__all {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    align-self: stretch;
    padding: 0 24px;
    border-radius: 0;
    margin-right: 0;
    border: 0;
    cursor: pointer;
    transition: background var(--erw-t-fast);
}
.erw-nav__all svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.erw-nav__all .erw-nav__all-caret { width: 9px; height: 9px; margin-left: 3px; transition: transform var(--erw-t-fast); }
.erw-nav__all[aria-expanded="true"] .erw-nav__all-caret { transform: rotate(180deg); }
.erw-nav__all:hover { background: var(--erw-gold-dark); }
.erw-nav__all:focus-visible {
    outline: 2px solid var(--erw-navy-dark);
    outline-offset: -4px;
}

/* Shared WooCommerce category dropdowns */
.erw-category-menu[hidden] { display: none; }
.erw-category-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100;
    width: 300px;
    max-height: min(390px, calc(100vh - 190px));
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--erw-border);
    border-radius: var(--erw-r-lg);
    background: var(--erw-white);
    box-shadow: 0 18px 42px rgba(13,27,46,0.18);
}
.erw-category-menu--search { top: calc(100% + 10px); }
.erw-category-menu--nav { border-radius: 0 0 var(--erw-r-lg) var(--erw-r-lg); }
.erw-category-menu__item {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: var(--erw-r-sm);
    background: transparent;
    color: var(--erw-navy-dark);
    font-family: var(--erw-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background var(--erw-t-fast), border-color var(--erw-t-fast), color var(--erw-t-fast);
}
.erw-category-menu__item:hover,
.erw-category-menu__item:focus-visible,
.erw-category-menu__item.is-selected {
    border-left-color: var(--erw-gold);
    background: var(--erw-page-bg);
    color: var(--erw-gold-dark);
    outline: none;
}
.erw-category-menu__item--all {
    margin-bottom: 6px;
    border-bottom: 1px solid var(--erw-border);
    border-radius: var(--erw-r-sm) var(--erw-r-sm) 0 0;
    color: var(--erw-gold-dark);
    font-weight: 800;
}
.erw-category-menu__count {
    min-width: 24px;
    padding: 2px 6px;
    border-radius: var(--erw-r-pill);
    background: rgba(245,166,35,0.12);
    color: var(--erw-gold-dark);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.erw-nav__links { display: flex; align-items: center; gap: 4px; flex: 1; }
.erw-nav__link {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.60);
    padding: 8px 16px;
    transition: color var(--erw-t-fast);
}
.erw-nav__link::after {
    content: '';
    position: absolute;
    left: 16px; right: 16px; bottom: 2px;
    height: 2px;
    background: var(--erw-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--erw-t-base);
}
.erw-nav__link:hover { color: var(--erw-white); }
.erw-nav__link:hover::after,
.erw-nav__link--active::after { transform: scaleX(1); }
.erw-nav__link--active { color: var(--erw-white); }

.erw-nav__quote {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--erw-gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: gap var(--erw-t-fast);
}
.erw-nav__quote svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.erw-nav__quote:hover { gap: 12px; }

/* ── Hamburger + mobile ────────────────────────────────── */
.erw-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px; height: 42px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.erw-burger span {
    width: 22px; height: 2px;
    background: var(--erw-white);
    border-radius: 2px;
    transition: transform 250ms ease, opacity 200ms ease;
}
.erw-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.erw-burger.is-active span:nth-child(2) { opacity: 0; }
.erw-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.erw-mobile {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1500;
    width: min(88vw, 370px);
    max-height: none;
    background: var(--erw-navy-darkest);
    padding: 84px 28px 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-105%);
    transition: opacity 240ms ease, visibility 240ms ease, transform 240ms ease;
    box-shadow: 18px 0 44px rgba(7,14,26,0.28);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.erw-mobile.is-active { opacity: 1; visibility: visible; transform: translateX(0); }
.erw-mobile__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1490;
    border: 0;
    background: rgba(7,14,26,0.58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 240ms ease, visibility 240ms ease;
}
body.erw-menu-open .erw-mobile__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.erw-mobile__link {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.55);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color var(--erw-t-fast), padding-left var(--erw-t-base);
}
.erw-mobile__link:hover,
.erw-mobile__link--active { color: var(--erw-white); padding-left: 10px; }
.erw-mobile__link--active { border-bottom-color: var(--erw-gold); }
.erw-mobile__cta { margin-top: auto; padding-top: 28px; }
.erw-mobile__cta .erw-btn { width: 100%; }
.erw-mobile__close {
    position: absolute;
    top: 26px; right: 24px;
    width: 40px; height: 40px;
}
.erw-mobile__close::before,
.erw-mobile__close::after {
    content: ''; position: absolute; top: 19px; left: 9px;
    width: 22px; height: 2px; background: var(--erw-white); border-radius: 2px;
}
.erw-mobile__close::before { transform: rotate(45deg); }
.erw-mobile__close::after  { transform: rotate(-45deg); }

.erw-mobile__search {
    display: flex;
    min-height: 48px;
    margin: 0 0 20px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
}
.erw-mobile__search-field {
    width: 100%;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--erw-white);
    font-size: 14px;
}
.erw-mobile__search-field::placeholder { color: rgba(255,255,255,0.42); }
.erw-mobile__search button {
    width: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--erw-gold);
    color: var(--erw-navy-dark);
}
.erw-mobile__search button svg,
.erw-mobile-dock__item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.erw-mobile-dock { display: none; }

/* ============================================================
   FOOTER — trust band · main · bottom bar
============================================================ */

/* ── Main footer ───────────────────────────────────────── */
.erw-footer { background: var(--erw-navy-dark); color: rgba(255,255,255,0.6); }
.erw-footer__inner {
    max-width: var(--erw-container);
    margin: 0 auto;
    padding: 60px 28px 48px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.erw-footer__brand-mark {
    position: relative;
    width: 129px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.erw-footer__brand-image {
    width: auto;
    height: 58px;
    display: block;
    object-fit: contain;
    opacity: 1;
    transition: opacity 500ms ease, filter 500ms ease, transform 500ms ease;
}
.erw-footer__brand-mark.is-presenting .erw-footer__brand-image {
    opacity: 0.10;
    filter: saturate(0.7) blur(0.2px);
    transform: scale(0.98);
}
.erw-footer__brand-mark.is-presenting .erw-logo__message,
.erw-footer__brand-mark.is-dusting .erw-logo__message { opacity: 1; }
.erw-footer__brand-mark.is-dusting .erw-logo__character {
    animation: erw-logo-dust 900ms cubic-bezier(.2,.7,.2,1) forwards;
    animation-delay: var(--dust-delay, 0ms);
}
.erw-footer__tag {
    font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.4); margin: 6px 0 18px;
}
.erw-footer__blurb { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 320px; margin-bottom: 22px; }

.erw-footer__col-title {
    font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--erw-white); margin-bottom: 18px;
}
.erw-footer__list { display: flex; flex-direction: column; gap: 11px; }
.erw-footer__list a {
    font-size: 13px; color: rgba(255,255,255,0.55);
    display: inline-flex; align-items: center; gap: 8px;
    transition: color var(--erw-t-fast), transform var(--erw-t-fast);
}
.erw-footer__list a::before {
    content: ''; width: 0; height: 1.5px; background: var(--erw-gold);
    transition: width var(--erw-t-fast); flex-shrink: 0;
}
.erw-footer__list a:hover { color: var(--erw-white); transform: translateX(2px); }
.erw-footer__list a:hover::before { width: 10px; }

/* ── Bottom bar ────────────────────────────────────────── */
.erw-botbar { background: var(--erw-navy-darkest); }
.erw-botbar__inner {
    max-width: var(--erw-container);
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}
.erw-botbar__copy { font-size: 12px; color: rgba(255,255,255,0.4); }
.erw-botbar__copy em { color: var(--erw-gold); font-style: normal; font-weight: 700; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1080px) {
    .erw-nav__links, .erw-nav__all, .erw-nav__quote { display: none; }
    .erw-nav { display: none; }
    .erw-search__category { display: none; }
    .erw-acct__labels { display: none; }
    .erw-burger { display: flex; }
    .erw-footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .erw-util { display: none; }
    .erw-main {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        height: 62px;
        padding: 0 14px;
        gap: 8px;
        background: var(--erw-navy-mid);
    }
    .erw-header.is-scrolled .erw-main { height: 62px; }
    .erw-logo {
        order: 2;
        grid-column: 2;
        justify-self: center;
        width: 132px;
        height: 52px;
    }
    .erw-header .erw-logo__image,
    .erw-header.is-scrolled .erw-logo__image {
        width: auto;
        max-width: 100%;
        height: 48px;
        object-fit: contain;
    }
    .erw-logo__message {
        display: flex;
        transform: translateY(1px);
    }
    .erw-logo__message-line {
        min-height: 14px;
        font-size: 10px;
        line-height: 1.2;
        letter-spacing: 0.04em;
    }
    .erw-logo__caret {
        height: 0.9em;
        margin-left: 1px;
    }
    .erw-burger {
        order: 1;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        display: flex;
    }
    .erw-acct {
        order: 3;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin-left: 0;
        gap: 0;
    }
    .erw-search { display: none; }
    .erw-acct__item:not(.erw-cart) { display: none; }
    .erw-acct__icon-wrap {
        width: 40px;
        height: 40px;
        border-color: rgba(255,255,255,0.28);
    }
    .erw-acct__ico { width: 20px; height: 20px; }
    .erw-mobile {
        padding-top: 76px;
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
    .erw-mobile-dock {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        min-height: calc(72px + env(safe-area-inset-bottom));
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        background: var(--erw-white);
        border-top: 1px solid var(--erw-border);
        box-shadow: 0 -8px 24px rgba(13,27,46,0.10);
        transition: opacity var(--erw-t-fast), transform var(--erw-t-fast);
    }
    .erw-mobile-dock__item {
        position: relative;
        min-width: 0;
        min-height: 56px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: var(--erw-muted);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
    }
    .erw-mobile-dock__item svg {
        width: 34px;
        height: 34px;
        stroke-width: 1.6;
    }
    .erw-mobile-dock__item::before {
        content: '';
        position: absolute;
        top: -7px;
        left: 24%;
        right: 24%;
        height: 2px;
        background: var(--erw-gold);
        transform: scaleX(0);
        transition: transform var(--erw-t-fast);
    }
    .erw-mobile-dock__item:hover,
    .erw-mobile-dock__item:focus-visible,
    .erw-mobile-dock__item.is-active {
        color: var(--erw-navy-mid);
        outline: none;
    }
    .erw-mobile-dock__item:hover svg,
    .erw-mobile-dock__item:focus-visible svg,
    .erw-mobile-dock__item.is-active svg { color: var(--erw-gold-dark); }
    .erw-mobile-dock__item.is-active::before { transform: scaleX(1); }
    .erw-mobile-dock__icon { position: relative; display: inline-flex; }
    .erw-mobile-dock .erw-cart__badge {
        top: -8px;
        right: -11px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: 9px;
    }
    body.erw-menu-open .erw-mobile-dock {
        opacity: 0;
        pointer-events: none;
        transform: translateY(100%);
    }
    .erw-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 32px;
    }
    .erw-footer__brand { grid-column: 1 / -1; }
    .erw-footer__brand-mark {
        width: 132px;
        height: 52px;
    }
    .erw-footer__brand-image {
        max-width: 100%;
        height: 48px;
    }
    .erw-botbar__inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .erw-logo__message { display: none !important; }
    .erw-logo__image,
    .erw-footer__brand-image { opacity: 1 !important; filter: none !important; transform: none !important; }
}
