/* ==========================================================================
   Humimic 2.0 — brand theme (mimics humimic.com homepage)
   Tokens extracted from the live Elementor kit (post-12304.css) + inline CSS.
   ========================================================================== */
:root {
    /* Brand palette */
    --hm-bg:        #0E0617;   /* deep purple-black page bg */
    /* (removed invented --hm-bg-2/#16092a and --hm-surface/#1c0f33 — not in the live palette) */
    --hm-white:     #FFFFFF;
    --hm-text:      #D0D0D0;   /* body text */
    --hm-muted:     #B3B3B3;
    --hm-cyan:      #28FFFC;
    --hm-magenta:   #FF25FB;
    --hm-blue:      #2998FF;
    --hm-blue-2:    #72ADFF;
    --hm-green:     #25FF95;
    --hm-primary:   #9423FF;   /* --e-global-color-primary (site primary) */
    --hm-sienna:    #C95740;   /* statistical accent — NUMBERS ONLY (stats bar), per brand color spec */
    --hm-grad-blue: #3088F8;   /* brand v1.0 gradient end (purple -> blue) */
    --hm-grad-cta:  linear-gradient(90deg, #0F0617 0%, #8120EF 100%);   /* site-standard CTA/band gradient */
    --hm-purple:    #7D7DD6;   /* --e-global-color-accent */
    --hm-border:    rgba(255,255,255,.10);

    /* Bootstrap overrides */
    --bs-body-bg: var(--hm-bg);
    --bs-body-color: var(--hm-text);
    --bs-body-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bs-heading-color: var(--hm-white);
    --bs-emphasis-color: var(--hm-white);
    --bs-border-color: var(--hm-border);
}

/* ============================================================
   Brand form controls — custom-drawn radios & checkboxes (sitewide)
   WHY: native `accent-color` renders our saturated purple (#9423FF) as MAGENTA
   in Safari (P3/accent-widget quirk, not fixable via color(srgb)). Drawing the
   controls ourselves (appearance:none + our own ring/dot/check) guarantees true
   brand purple in EVERY browser, since the mark is a CSS element we control.
   Applied to every brand radio/checkbox via the grouped selectors below — add
   any new one to the appropriate list rather than reintroducing accent-color.
   ============================================================ */
.ck-shipping-option input[type="radio"],
.cart-ship-option input[type="radio"] {
    appearance: none; -webkit-appearance: none;
    width: 16px; height: 16px; margin: 0 10px 0 0; flex: 0 0 auto;
    border: 2px solid #c7c7d2; border-radius: 50%; background: #fff;
    cursor: pointer; position: relative; transition: border-color .15s ease;
}
.ck-shipping-option input[type="radio"]:checked,
.cart-ship-option input[type="radio"]:checked { border-color: var(--hm-primary); }
.ck-shipping-option input[type="radio"]:checked::after,
.cart-ship-option input[type="radio"]:checked::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--hm-primary); transform: translate(-50%, -50%);
}
.ck-shipping-option input[type="radio"]:focus-visible,
.cart-ship-option input[type="radio"]:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 2px; }

/* Checkboxes — same appearance:none approach; a CSS checkmark on a purple fill. */
.ck-check input[type="checkbox"],
.auth-terms input[type="checkbox"],
.mnt-terms input[type="checkbox"],
.ap-check input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 16px; height: 16px; margin: 0; flex: 0 0 auto;
    border: 2px solid #c7c7d2; border-radius: 4px; background: #fff;
    cursor: pointer; position: relative; transition: border-color .15s ease, background .15s ease;
}
.ck-check input[type="checkbox"]:checked,
.auth-terms input[type="checkbox"]:checked,
.mnt-terms input[type="checkbox"]:checked,
.ap-check input[type="checkbox"]:checked { border-color: var(--hm-primary); background: var(--hm-primary); }
.ck-check input[type="checkbox"]:checked::after,
.auth-terms input[type="checkbox"]:checked::after,
.mnt-terms input[type="checkbox"]:checked::after,
.ap-check input[type="checkbox"]:checked::after {
    content: ""; position: absolute; top: 47%; left: 50%;
    width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
    transform: translate(-50%, -55%) rotate(45deg);
}
.ck-check input[type="checkbox"]:focus-visible,
.auth-terms input[type="checkbox"]:focus-visible,
.mnt-terms input[type="checkbox"]:focus-visible,
.ap-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 2px; }

/* Prevent horizontal scroll from ±100% slide animations at ALL breakpoints.
   Must be on BOTH html and body (body alone fails on mobile browsers);
   `clip` avoids creating a scroll container, `hidden` is the fallback. */
html, body {
    overflow-x: hidden;
    overflow-x: clip;
}
body {
    background: var(--hm-bg);   /* solid #0E0617 — no invented gradients (palette rule) */
    -webkit-font-smoothing: antialiased;
    /* Sticky footer: column layout so a short page (e.g. the "already paid" pay
       card) still pushes the footer to the viewport bottom. On tall pages <main>
       simply overflows its flex-basis, so nothing changes there. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body > main { flex: 1 0 auto; } /* take remaining height; never shrink below content */
/* The pay page's content is often short (e.g. the "already paid" card). Its
   light section must fill the space above the footer so the dark body bg never
   shows through as an empty band. min-height covers the viewport minus a rough
   header allowance; extra space just extends the light section, not the footer. */
.pay-section { min-height: calc(100vh - 220px); }

h1, h2, h3, h4, h5, h6, .hm-display {
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    color: var(--hm-white);
    letter-spacing: -.01em;
}

/* Gradient text (the hero ".medicalSimulation" accent).
   Brand v1.0 signature: purple -> blue (#9423FF -> #3088F8). Retired the
   pink/cyan (#FF25FB, #28FFFC) — the palette is now purple + blue only. */
.hm-gradient-text {
    background: linear-gradient(90deg, var(--hm-primary) 0%, var(--hm-grad-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

a { color: var(--hm-blue-2); text-decoration: none; }
a:hover { color: var(--hm-cyan); }

/* Section rhythm */
.hm-section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.hm-eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
    font-weight: 600;
    color: var(--hm-cyan);
    margin-bottom: 1rem;
}
.hm-lead { color: var(--hm-muted); font-size: 1.1rem; max-width: 46rem; }

/* ---------- Header (solid #0E0617, sticky to top on scroll; matches production) ---------- */
.hm-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--hm-bg);                 /* --e-global-color-1fb89a5, solid at all times */
    min-height: 78px;
    display: flex;
    align-items: center;
    transition: box-shadow .3s ease;
}
/* subtle lift once stuck/scrolled (production adds sticky effects offset) */
.hm-header.is-stuck { box-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hm-header .navbar { padding-block: 15px; width: 100%; position: relative; z-index: 1; }
.hm-header .container { position: relative; z-index: 1; }
.hm-header .navbar-brand { padding: 0; margin: 0; }
.hm-header .navbar-brand img { height: 48px; width: auto; }   /* ~173x48 on production */

.hm-header .nav-link {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    padding: 13px 16px !important;
}
.hm-header .nav-link:hover,
.hm-header .nav-link.active { color: var(--hm-primary) !important; }   /* --e-global-color-primary #9423FF */

/* ---------- Hover dropdowns (Elementor sub-menu replica, template 12452) ----------
   Production opens the sub-menu on hover as an absolutely-positioned overlay panel
   that floats 20px below the header bar (margin-top:20px), separate from the header
   container. Item hover bg is #3F444B; text stays white. Square corners, faint shadow. */
.hm-dropdown { position: relative; }
.hm-dropdown > .hm-dropdown-toggle::after {
    content: "";
    display: inline-block;
    margin-left: .45em;
    vertical-align: .12em;
    width: .42em; height: .42em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.hm-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    margin-top: 20px;                          /* floats 20px below the header bar */
    min-width: 156px;
    list-style: none;
    padding: 0;
    background: var(--hm-bg);                        /* --e-global-color-1fb89a5, own overlay container */
    border: 0;
    border-radius: 0;                           /* square corners on production */
    box-shadow: 0 0 5px 0 rgba(0,0,0,.06);
    z-index: 1031;
    /* hidden state — fade/slide in */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    pointer-events: none;
}
/* bridge the 20px gap so the pointer can travel from toggle to panel without closing */
.hm-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -20px; height: 20px;
}

.hm-dropdown-item {
    display: block;
    color: #fff;                               /* --e-global-color-5766ca0 */
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    padding: 13px 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.hm-dropdown-item:hover,
.hm-dropdown-item:focus,
.hm-dropdown-item.active { background: rgba(148, 35, 255, .757); color: #fff; }  /* --e-global-color-primary #9423FF @ widget hover opacity .757 */

/* open on hover (desktop) or when JS marks it active (keyboard/touch).
   .hm-account is excluded from hover-open — it's click-toggled (see below). */
@media (min-width: 1025px) {
    .hm-dropdown:not(.hm-account):hover > .hm-dropdown-menu,
    .hm-dropdown.is-open > .hm-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity .18s ease, transform .18s ease;
        pointer-events: auto;
    }
    /* top-level caret flips up when open; nested caret stays pointing right */
    .hm-dropdown:not(.hm-dropdown--sub):hover > .hm-dropdown-toggle::after,
    .hm-dropdown:not(.hm-dropdown--sub).is-open > .hm-dropdown-toggle::after { transform: translateY(0) rotate(225deg); }

    /* nested submenu (Products -> Task Trainers) flies out to the right, no gap */
    .hm-dropdown--sub > .hm-dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: 0;
    }
    .hm-dropdown--sub > .hm-dropdown-menu::before {
        top: 0; left: -20px; right: auto; width: 20px; height: 100%;
    }
    .hm-dropdown--sub > .hm-dropdown-toggle::after {
        transform: translateY(-1px) rotate(-45deg);   /* chevron points right */
        margin-left: auto;
    }
    .hm-dropdown--sub { display: flex; }
    .hm-dropdown--sub > .hm-dropdown-toggle { flex: 1; display: flex; align-items: center; justify-content: space-between; }
}

/* Right-side icons — 36px circles, 1px #2998FF border, white glyph; hover glyph -> #2998FF */
.hm-header .hm-header-icons { gap: 12px; }
.hm-header .hm-icon-link {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--hm-blue);             /* --e-global-color (brand blue) */
    background: transparent;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .2s ease, background-color .2s ease;
}
.hm-header .hm-icon-link:hover { color: var(--hm-blue); }
.hm-header .hm-cart-count {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--hm-primary);
    color: #fff;
    font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ---- Account area: logged-out "Log in" button + logged-in avatar dropdown ---- */
.hm-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--hm-blue);
    background: transparent;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hm-login-btn:hover { background: var(--hm-primary); border-color: var(--hm-primary); color: #fff; }
.hm-login-btn.active { background: var(--hm-primary); border-color: var(--hm-primary); }

.hm-account { position: relative; }
.hm-account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #fff;
}
.hm-account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-grad-blue) 100%);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .5px;
}
.hm-account-caret { color: #cbb9e6; transition: transform .2s ease; }
.hm-account.is-open .hm-account-caret { transform: rotate(180deg); }
/* Suppress the inherited nav-dropdown CSS caret — the account toggle uses its own
   SVG caret (.hm-account-caret), so the ::after chevron would double up. */
.hm-account > .hm-dropdown-toggle::after { display: none; content: none; }

/* Dropdown menu (reuses the header's .hm-dropdown open/close JS) */
.hm-account-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    min-width: 230px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(20, 10, 40, .18);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    pointer-events: none;
    z-index: 1031;
}
/* Account menu opens on click (JS `.is-open`) AND on hover (desktop only, added
   below) — matching the nav browse-dropdowns. */
.hm-account.is-open .hm-account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.hm-account.is-open .hm-account-caret { transform: rotate(180deg); }
/* Hover-open on desktop (pointer devices). Mobile/touch keeps click-toggle. */
@media (min-width: 1025px) {
    .hm-account:hover .hm-account-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .hm-account:hover .hm-account-caret { transform: rotate(180deg); }
}
.hm-account-head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid #eef0f4;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hm-account-name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: var(--hm-bg); }
.hm-account-email { font-size: 12px; color: #9a9aa6; overflow: hidden; text-overflow: ellipsis; }
.hm-account-menu .hm-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: #4a4a55;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.hm-account-menu .hm-dropdown-item:hover { background: rgba(148,35,255,.08); color: var(--hm-primary); }
.hm-account-divider { border: none; border-top: 1px solid #eef0f4; margin: 6px 0; }
.hm-account-logout:hover { background: #ffe3e3 !important; color: #e23b3b !important; }

/* Custom navbar expand at the project's Tablet breakpoint (1024px), not Bootstrap's 992/1200.
   Desktop/Laptop (>1024): full horizontal menu. Tablet/Mobile (<=1024): hamburger.
   Layout: [brand] … [nav collapse] … [right cluster: icons + hamburger]. */
.navbar-expand-hm .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
.hm-header-right { gap: 12px; }
.navbar-expand-hm .navbar-toggler { padding: 0; margin-left: 4px; }

/* Animated burger → X (keyed on Bootstrap's aria-expanded state) */
.hm-burger {
    width: 30px;
    height: 30px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    cursor: pointer;
}
.hm-burger:focus { box-shadow: none; outline: none; }
.hm-burger-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s ease, opacity .2s ease;
}
.hm-burger[aria-expanded="true"] .hm-burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hm-burger[aria-expanded="true"] .hm-burger-bar:nth-child(2) { opacity: 0; }
.hm-burger[aria-expanded="true"] .hm-burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1025px) {
    .navbar-expand-hm .navbar-toggler { display: none; }
    .navbar-expand-hm .navbar-collapse { display: flex !important; flex-basis: auto; flex: 1 1 auto; }
    .navbar-expand-hm .navbar-nav { flex-direction: row; }
}
@media (max-width: 1024px) {
    .navbar-expand-hm .container { flex-wrap: wrap; }
    /* nav collapses to a full-width panel BELOW the top bar (icons stay up top beside hamburger) */
    .navbar-expand-hm .navbar-collapse { order: 3; flex-basis: 100%; }
    .navbar-expand-hm .navbar-nav { flex-direction: column; align-items: stretch; }
    /* No bordered/rounded container on live — just the dark panel */
    .hm-header .navbar-collapse {
        background: var(--hm-bg);
        border: 0;
        border-radius: 0;
        padding: .5rem 0;
        margin-top: .5rem;
    }

    /* Full-row items with the same purple hover/active state as production */
    .hm-header .nav-link,
    .hm-dropdown-item {
        border-radius: 0;
        transition: background-color .15s ease, color .15s ease;
    }
    .hm-header .nav-link:hover,
    .hm-header .nav-link:focus,
    .hm-header .nav-link.active,
    .hm-dropdown-item:hover,
    .hm-dropdown-item:focus,
    .hm-dropdown-item.active {
        background: var(--hm-primary) !important;   /* #9423FF, full opacity on mobile */
        color: #fff !important;
    }

    /* Dropdowns become tap-toggle accordions inside the mobile panel */
    .hm-dropdown { position: static; }
    .hm-dropdown > .hm-dropdown-toggle::after {
        float: right;
        transform: translateY(2px) rotate(45deg);
    }
    .hm-dropdown.is-open > .hm-dropdown-toggle::after { transform: translateY(2px) rotate(225deg); }
    .hm-dropdown-menu {
        position: static;
        margin: 0;
        min-width: 0;
        box-shadow: none;
        background: transparent;
        padding-left: .75rem;
        /* collapsed by default; opened via .is-open */
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: none;
        display: none;
    }
    .hm-dropdown-menu::before { display: none; }
    .hm-dropdown.is-open > .hm-dropdown-menu { display: block; }
    .hm-dropdown-item { padding: 10px 16px; }

    /* --- Account dropdown lives in the TOP icon row, not the accordion nav, so it
       must stay a floating popover on mobile (the static/block rules above would
       otherwise render it inline and expand the header). --- */
    .hm-account { position: relative; }
    .hm-account-menu,
    .hm-account.is-open > .hm-account-menu {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        left: auto;
        min-width: 230px;
        background: #fff;
        box-shadow: 0 16px 44px rgba(20, 10, 40, .18);
        padding: 8px;
        border-radius: 12px;
        display: block;                 /* visibility handled by opacity below */
    }
    .hm-account-menu { opacity: 0; visibility: hidden; pointer-events: none; }
    .hm-account.is-open > .hm-account-menu { opacity: 1; visibility: visible; pointer-events: auto; }
    /* account menu items: keep the light popover look, not the full-width purple rows */
    .hm-account-menu .hm-dropdown-item { padding: 10px 12px; border-radius: 8px; }
    .hm-account-menu .hm-dropdown-item:hover,
    .hm-account-menu .hm-dropdown-item:focus {
        background: rgba(148,35,255,.08) !important;
        color: var(--hm-primary) !important;
    }
    .hm-account-menu .hm-account-logout:hover { background: #ffe3e3 !important; color: #e23b3b !important; }

    /* "Log in" pill collapses to icon-only so it doesn't crowd the hamburger. */
    .hm-login-btn { padding: 0; width: 36px; justify-content: center; gap: 0; }
    .hm-login-btn span { display: none; }
}

/* ---------- Buttons ---------- */
.btn-hm-gradient {
    background: linear-gradient(90deg, var(--hm-magenta), var(--hm-primary), var(--hm-blue));
    color: #fff;
    border: 0;
    font-weight: 600;
    border-radius: 999px;
    padding: .75rem 1.6rem;
    transition: filter .2s ease, transform .2s ease;
}
.btn-hm-gradient:hover { filter: brightness(1.1); color: #fff; transform: translateY(-1px); }
.btn-hm-outline {
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: .75rem 1.6rem;
    background: transparent;
}
.btn-hm-outline:hover { border-color: var(--hm-cyan); color: var(--hm-cyan); }

/* ---------- Hero ---------- */
.hm-hero {
    position: relative;
    min-height: calc(100vh - 78px);      /* fill viewport below the 78px sticky header */
    display: flex;
    align-items: center;
    padding: clamp(3.5rem, 9vw, 6.5rem) 0;
    /* NOTE: no `overflow:hidden` / `z-index` here on purpose. Those made `.hm-hero`
       a stacking context that trapped Safari's compositing of the absolute <video>
       (it only painted after scrolling to the page bottom). Clipping is done on
       `.hm-hero-bg` instead; the sticky header (z-index 1030) still sits above. */
}
/* The clipping layer: rounds/contains the media without wrapping the whole hero. */
.hm-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hm-hero-media {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
    /* Keep the video on its own GPU layer so Safari composites it up front. */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.hm-hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(14,6,23,.55) 0%, rgba(14,6,23,.35) 45%, rgba(14,6,23,.9) 100%),
        radial-gradient(ellipse at 50% 40%, rgba(14,6,23,.25) 0%, rgba(14,6,23,.75) 100%);
    z-index: 1;
}
.hm-hero-inner { width: 100%; position: relative; z-index: 2; }

/* Exact production specs (computed from live site) */
.hm-hero-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 60px;
    line-height: 70.8px;
    text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.hm-hero-lead {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #fff;
    max-width: 42rem;
}
@media (max-width: 767px) {
    .hm-hero-title { font-size: 40px; line-height: 1.1; }   /* live: 40px at mobile */
}

/* ---------- SimuGel page hero (left-aligned, image right) ---------- */
.sg-hero {
    position: relative;
    background: #07070B;                 /* live hero bg */
    min-height: 622px;                   /* live hero height — NOT 100vh */
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
    z-index: 0;
}
.sg-hero-bg {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 44%;
    max-width: 700px;
    z-index: 0;
    pointer-events: none;
}
.sg-hero-bg img { width: 100%; height: auto; display: block; }
.sg-hero-inner { position: relative; z-index: 2; }
.sg-hero-copy { max-width: 560px; }

.sg-hero-eyebrow {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0 0 18px;
}
.sg-hero-title {
    font-family: "Montserrat", sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 60px;
    color: #fff;
    margin: 0 0 22px;
}
.sg-hero-lead {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: var(--hm-text);
    max-width: 460px;
    margin: 0 0 38px;
}
/* Laptop (≤1366): keep the hero image visible — scale the left copy down so the
   two columns stay balanced and don't crowd. Image stays through standard 1024
   laptops and only drops on narrow/tablet-portrait widths (≤899). */
@media (max-width: 1366px) {
    .sg-hero { padding: 48px 0; }
    .sg-hero-copy { max-width: 480px; }
    .sg-hero-title { font-size: 38px; line-height: 1.2; margin-bottom: 18px; }
    .sg-hero-lead { font-size: 16px; line-height: 24px; max-width: 400px; margin-bottom: 30px; }
    .sg-hero-bg { width: 42%; max-width: 560px; }
}
@media (max-width: 1120px) {
    /* tighten copy near the tablet edge so copy + image never collide */
    .sg-hero-copy { max-width: 400px; }
    .sg-hero-title { font-size: 34px; }
    .sg-hero-bg { width: 40%; opacity: .28; }
}
@media (max-width: 1024px) {
    /* standard-laptop range: keep image, keep left-aligned, tighten copy a touch more */
    .sg-hero-copy { max-width: 360px; }
    .sg-hero-title { font-size: 32px; }
    .sg-hero-lead { max-width: 340px; }
    .sg-hero-bg { width: 40%; }
}
@media (max-width: 899px) {
    /* image drops on narrow/tablet-portrait — copy centers (matches homepage hero) */
    .sg-hero-bg { display: none; }
    .sg-hero { text-align: center; }
    .sg-hero-title { font-size: 38px; }
    .sg-hero-copy { max-width: 720px; margin-inline: auto; }
    .sg-hero-lead { max-width: 620px; margin-inline: auto; }
    .sg-hero-actions { justify-content: center; }
}
@media (max-width: 767px) {
    .sg-hero { min-height: 0; padding: 48px 0; }
    .sg-hero-title { font-size: 32px; line-height: 1.15; }
    .sg-hero-lead { font-size: 16px; line-height: 1.55; }
}

/* ---------- Formulation Explorer band (holds the verbatim #sgRoot card) ---------- */
.sg-explorer-band {
    background: #fff;                 /* white, same as "What is SimuGel?" section (live) */
    padding: 0 0 60px;
}
/* uses the default .container width so the #sgRoot card's edges align
   with the "What is SimuGel?" section content (parallel gutters) */

/* ---------- Get Started CTA (dark rounded card on white) ---------- */
.sg-cta {
    background: #fff;
    padding: 20px 0 90px;
}
.sg-cta-card {
    background: linear-gradient(180deg, #2A0C5C 0%, #0C0012 100%);   /* wash gradient (brand fix list SG Fix 5) */
    border-radius: 30px;
    padding: 56px 100px 56px 90px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.sg-cta-eyebrow {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 10px;
    opacity: .85;
}
.sg-cta-title {
    font-family: "Montserrat", sans-serif;
    font-size: 35px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    margin: 0;
}
.sg-cta-sub {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: #fff;
    margin: 0 0 24px;
    opacity: .9;
}
.sg-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* inverse solid button on the dark card: white bg, purple text, magenta on hover */
.sg-cta-card .sg-cta-btn-solid {
    background: #fff;
    color: var(--hm-primary);
}
.sg-cta-card .sg-cta-btn-solid:hover { background: var(--hm-magenta); color: #fff; }

@media (max-width: 1366px) {
    .sg-cta-card { padding: 48px 60px; gap: 40px; }
    .sg-cta-title { font-size: 30px; }
}
@media (max-width: 1024px) {
    /* stack: heading over sub+buttons, centered */
    .sg-cta-card { grid-template-columns: 1fr; gap: 24px; text-align: center; padding: 44px 40px; }
    .sg-cta-actions { justify-content: center; }
}
@media (max-width: 767px) {
    .sg-cta { padding: 12px 0 56px; }
    .sg-cta-card { padding: 36px 24px; border-radius: 22px; }
    .sg-cta-title { font-size: 26px; }
    .sg-cta-sub { font-size: 16px; line-height: 1.55; }
    .sg-cta-actions { flex-direction: column; }
    .sg-cta-actions .btn { width: 100%; }
}

/* ---------- Built for Real-World Applications (white, left copy + 5 cards) ---------- */
.sg-apps {
    background: #fff;
    padding: 40px 0 90px;
}
.sg-apps-grid {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 56px;
    align-items: center;
}
.sg-apps-eyebrow {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0 0 14px;
}
.sg-apps-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--hm-bg);
    margin: 0;
}
.sg-apps-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.sg-app-card {
    border: 1px solid rgba(208, 208, 208, .48);
    border-radius: 8px;
    background: #fff;
    padding: 30px 24px;
    text-align: center;
    transform: translateZ(0);                        /* P3-safe constant compositing */
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.sg-app-title {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hm-bg);
    margin: 0 0 14px;
    transition: color .28s ease;
}
.sg-app-desc {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    color: #5a5a5a;
    margin: 0;
}
/* Slick hover (matches blog-card enhancement): lift + purple glow + purple border + title -> purple */
.sg-app-card:hover {
    transform: translateY(-8px) translateZ(0);
    border-color: var(--hm-primary);
    box-shadow: 0 18px 40px -12px rgba(148, 35, 255, .35), 0 0 0 1px rgba(148, 35, 255, .25);
}
.sg-app-card:hover .sg-app-title { color: var(--hm-primary); }

@media (max-width: 1366px) {
    .sg-apps-grid { gap: 40px; }
    .sg-apps-cards { gap: 12px; }
    .sg-app-card { padding: 26px 18px; }
}
@media (max-width: 1024px) {
    /* stack: copy centered on top, cards wrap below */
    .sg-apps-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .sg-apps-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .sg-apps { padding: 24px 0 64px; }
    .sg-apps-title { font-size: 24px; }
    .sg-apps-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 420px) {
    .sg-apps-cards { grid-template-columns: 1fr; }
}

/* ---------- What is SimuGel (white section, left copy + 3-step process) ---------- */
.sg-what {
    background: #fff;
    padding: 80px 0;
}
.sg-what-grid {
    display: grid;
    grid-template-columns: minmax(320px, 460px) 1fr;
    gap: 64px;
    align-items: center;
}
.sg-what-eyebrow {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0 0 14px;
}
.sg-what-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 45px;
    font-weight: 600;
    line-height: 54px;
    color: var(--hm-bg);
    margin: 0 0 18px;
}
.sg-what-intro {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #333;
    margin: 0;
    max-width: 420px;
}
/* Space between stacked intro paragraphs (single paragraph is unaffected). */
.sg-what-intro + .sg-what-intro { margin-top: 16px; }

/* 3-step process row */
.sg-proc {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.sg-proc-step {
    flex: 1 1 0;
    text-align: center;
    max-width: 220px;
}
.sg-proc-circle {
    width: 106px;
    height: 106px;
    border: 3px solid var(--hm-bg);
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.sg-proc-icon { width: 50px; height: 50px; display: block; }
.sg-proc-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hm-bg);
    margin: 0 0 8px;
}
.sg-proc-desc {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #333;
    margin: 0;
}
.sg-proc-arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 42px;               /* vertically centers arrow on the 106px circle */
    color: var(--hm-primary);
    font-size: 20px;
}

@media (max-width: 1366px) {
    .sg-what-grid { gap: 44px; }
    .sg-what-title { font-size: 40px; line-height: 1.2; }
}
@media (max-width: 1024px) {
    /* stack: copy on top (centered), process row below */
    .sg-what-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .sg-what-intro { max-width: 640px; margin-inline: auto; }
    .sg-proc { justify-content: center; gap: 12px; }
}
@media (max-width: 767px) {
    .sg-what { padding: 56px 0; }
    .sg-what-title { font-size: 32px; line-height: 1.2; }
    /* process becomes a vertical stack; arrows point down, centered */
    .sg-proc { flex-direction: column; align-items: center; gap: 24px; }
    .sg-proc-step { max-width: 320px; }
    .sg-proc-arrow { margin: 0; align-self: center; transform: rotate(90deg); }
}

/* Left CTA: solid purple, 8px radius (NOT a pill) */
.btn-hm-solid {
    background: var(--hm-primary);      /* #9423FF */
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 18px 35px;
    line-height: 1;
    transition: background-color .3s ease;   /* production: 0.3s */
}
.btn-hm-solid:hover { background: var(--hm-magenta); color: #fff; }   /* hover -> #FF25FB */

/* Ghost/outline CTA — transparent, 1px white border, 8px radius; hover fills primary (from live ad26dd9) */
.btn-hm-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 18px 35px;
    line-height: 1;
    transition: background-color .3s ease, border-color .3s ease;
}
.btn-hm-ghost:hover { background: var(--hm-primary); border-color: var(--hm-primary); color: #fff; }

/* "View Applications" plain text link */
.hm-hero-link {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
}
.hm-hero-link:hover { color: var(--hm-cyan); }

/* Circular video-play button + ripple (jkit-video-button replica, exact) */
.hm-video-btn {
    position: relative;
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    /* vertical purple -> pink gradient (production default & hover) */
    background: linear-gradient(#7E4FF9 0%, #CD41FA 100%);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    transition: .4s;
}
.hm-video-btn svg { width: 30px; height: 30px; fill: #fff; margin-left: 3px; }

/* Ripple: two pulsing circles emanating from the 60px edge, color #7E4FF9 */
.hm-video-btn .hm-video-ripple {
    position: absolute; top: 0; left: 0;
    width: 60px; height: 60px;
    border-radius: 50%;
    color: #7E4FF9;              /* currentColor drives the box-shadow ripple */
    pointer-events: none;
}
.hm-video-btn .hm-video-ripple::before,
.hm-video-btn .hm-video-ripple::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    animation: jkit-ripple 3s infinite ease-out;
}
.hm-video-btn .hm-video-ripple::after { animation-delay: 1.5s; }

@keyframes jkit-ripple {
    0%   { box-shadow: 0 0 0 0 currentColor; opacity: .6; }
    70%  { box-shadow: 0 0 0 15px currentColor; opacity: 0; }
    100% { box-shadow: 0 0 0 0 currentColor; opacity: 0; }
}

/* ---------- Cards / surfaces (interim style for not-yet-rebuilt sections) ----------
   On-palette translucent primary (#9423FF3D — same treatment as live trust cards).
   No whitish overlays (they read as off-palette navy/gray on the dark bg). */
.hm-card {
    background: #2E0D4F;   /* opaque equivalent of #9423FF3D over #0E0617 */
    border-radius: 1rem;
    height: 100%;
    transition: transform .2s ease;
    transform: translateZ(0);    /* constant compositing state (P3-safe hover) */
}
.hm-card:hover { transform: translateY(-4px) translateZ(0); }   /* user-approved enhancement */

/* ---------- Trust: gradient band + logo marquee (from live site) ---------- */
.hm-trust-band {
    background: linear-gradient(180deg, #2A0C5C 0%, #0C0012 100%);   /* wash gradient (brand fix list HP Fix 1) */
    padding: 50px 0;
    overflow: hidden;
}
.hm-trust-title {
    font-family: "Montserrat", sans-serif;
    font-size: 35px;
    font-weight: 600;
    color: #fff;
}
.hm-trust-sub {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #fff;
    max-width: 44rem;
}
/* Trust title responsive sizes (from live): 35 -> 33 (laptop) -> 30 (tablet) -> 35 (mobile reflow) */
@media (max-width: 1366px) { .hm-trust-title { font-size: 33px; } }
@media (max-width: 1024px) { .hm-trust-title { font-size: 30px; } }
@media (max-width: 767px)  { .hm-trust-title { font-size: 35px; } }

/* Two infinite logo marquees (production has 2 carousels) */
.hm-marquee-group { display: flex; flex-direction: column; gap: 28px; }
.hm-marquee {
    width: 100%;
    overflow: hidden;
    /* Edge fade via mask: logos dissolve to transparent on both sides (the band
       shows through — no colour to match, so both edges fade identically & smoothly).
       Eased multi-stop so logos stay fully hidden at the very edge and only ease in
       (a plain 2-stop fade is only ~50% opaque mid-way and lets logos show through). */
    -webkit-mask-image: linear-gradient(90deg,
        transparent 0, rgba(0,0,0,.15) 40px, rgba(0,0,0,.6) 100px, #000 180px,
        #000 calc(100% - 180px), rgba(0,0,0,.6) calc(100% - 100px), rgba(0,0,0,.15) calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(90deg,
        transparent 0, rgba(0,0,0,.15) 40px, rgba(0,0,0,.6) 100px, #000 180px,
        #000 calc(100% - 180px), rgba(0,0,0,.6) calc(100% - 100px), rgba(0,0,0,.15) calc(100% - 40px), transparent 100%);
}
/* Narrower fade on mobile so logos aren't over-covered */
@media (max-width: 767px) {
    .hm-marquee {
        -webkit-mask-image: linear-gradient(90deg,
            transparent 0, rgba(0,0,0,.4) 40px, #000 90px,
            #000 calc(100% - 90px), rgba(0,0,0,.4) calc(100% - 40px), transparent 100%);
        mask-image: linear-gradient(90deg,
            transparent 0, rgba(0,0,0,.4) 40px, #000 90px,
            #000 calc(100% - 90px), rgba(0,0,0,.4) calc(100% - 40px), transparent 100%);
    }
}
.hm-marquee-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
}
.hm-marquee--ltr .hm-marquee-track { animation: hm-marquee-ltr 45s linear infinite; }
.hm-marquee--rtl .hm-marquee-track { animation: hm-marquee-rtl 45s linear infinite; }
/* No pause on hover — marquee scrolls continuously; only the logo brightens on hover. */

.hm-marquee-item { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.hm-marquee-item img {
    max-height: 55px;
    width: auto;
    object-fit: contain;
    /* Dark wash background (HP Fix 1): logos render monochrome white @ 60% opacity,
       100% on hover, per brand color spec (trust-bar logo treatment). */
    filter: brightness(0) invert(1);
    opacity: .6;
    transition: opacity .2s ease;
}
.hm-marquee-item img:hover { opacity: 1; }
@keyframes hm-marquee-ltr {   /* track holds 2 copies -> seamless loop */
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes hm-marquee-rtl {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hm-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Trust cards ---------- */
.hm-trust-cards { background: var(--hm-bg); }
.hm-trust-card {
    background: #2E0D4F;   /* #9423FF3D over #0E0617 precomputed opaque (P3-layer safe) */
    border-radius: 30px;
    padding: 45px 30px 28px;
    transition: transform .5s ease, background-color .5s ease;   /* production hover animation */
    transform: translateZ(0);    /* constant compositing state (P3-safe hover) */
}
/* hover: shrink to 0.9 AND background -> solid magenta #FF25FB (matches live) */
.hm-trust-card:hover {
    transform: scale(0.9) translateZ(0);
    background: var(--hm-magenta);
}
.hm-trust-card-icon { display: inline-block; color: #fff; margin-bottom: 1.25rem; }
.hm-trust-card-icon svg { width: 50px; height: 50px; }
.hm-trust-card-title {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: .75rem;
}
.hm-trust-card-desc {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #F0F0F0;
    line-height: 1.6;
}

/* ---------- Applications: bento grid ("Used in ...") ---------- */
.hm-apps-heading {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: #fff;
}
.hm-apps-sub { color: var(--hm-muted); font-size: 18px; }

/* Grid: left ~490 : right ~726 (from live measurements), 24px gap */
.hm-bento {
    display: grid;
    grid-template-columns: 490fr 726fr;
    grid-template-rows: auto auto;
    gap: 24px;
    align-items: stretch;
}
.hm-bento-tall { grid-row: 1 / span 2; }

.hm-bento-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    display: flex;
    transition: transform .4s ease;
    /* keep the card composited at rest so hovering doesn't change the
       compositing state — prevents the P3 color jump on hover */
    transform: translateZ(0);
}
/* hover lift — deliberate enhancement over live (user-approved) */
.hm-bento-card:hover { transform: translateY(-4px) translateZ(0); }

.hm-bento-body { padding: 40px; }
.hm-bento-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: .75rem;
}
.hm-bento-desc { color: var(--hm-text); font-size: 15px; line-height: 1.6; margin-bottom: 1.1rem; }
.hm-bento-link {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    display: inline-block;
}
.hm-bento-link:hover { color: var(--hm-magenta); }
/* whole card is clickable (stretched-link) — hovering anywhere lights the CTA */
.hm-bento-card:hover .hm-bento-link { color: var(--hm-magenta); }
.hm-bento-card:hover .hm-bento-link .fa-arrow-right { transform: translateX(3px); }
.hm-bento-light:hover .hm-bento-link { color: var(--hm-primary); }
.hm-bento-link .fa-arrow-right { transition: transform .2s ease; }
.hm-bento-link:hover .fa-arrow-right { transform: translateX(3px); }

/* Images sit in their own PADDED container with 28px rounded corners (NOT full-bleed) */
.hm-bento-media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }

/* Left tall card: dark #190C24; body on top, padded rounded image below */
.hm-bento-tall {
    background: #190C24;
    flex-direction: column;
}
.hm-bento-tall .hm-bento-body { padding: 40px 40px 25px; }   /* 25px gap to image below (matches live) */
.hm-bento-tall .hm-bento-media { flex: 1 1 auto; padding: 0 40px 27px; min-height: 300px; }

/* Split cards: body left ~half, padded rounded image right ~half, vertically centered */
.hm-bento-split { flex-direction: row; align-items: center; }
.hm-bento-split .hm-bento-body { flex: 0 0 50%; }
.hm-bento-split .hm-bento-media { flex: 1 1 50%; align-self: stretch; display: flex; align-items: center; padding: 45px 43px 45px 0; }
.hm-bento-split .hm-bento-media img { max-height: 260px; }

/* Trauma (top-right): #9423FF3D over #0E0617, precomputed OPAQUE (identical look,
   immune to composited-layer blend shifts on P3 displays) */
.hm-bento-split:not(.hm-bento-light) { background: #2E0D4F; }

/* Device Testing (bottom-right): white card */
.hm-bento-light { background: #fff; }
.hm-bento-light .hm-bento-title { color: var(--hm-bg); }
.hm-bento-light .hm-bento-desc { color: #3B3B39; }
.hm-bento-light .hm-bento-link { color: var(--hm-bg); }
.hm-bento-light .hm-bento-link:hover { color: var(--hm-primary); }

/* Tablet (<=1024): Clinical full-width on top, Trauma + Device in a 2-col row below.
   Split cards switch to COLUMN (body on top, image below full-width) so images don't shrink (matches live). */
@media (max-width: 1024px) {
    .hm-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .hm-bento-tall { grid-column: 1 / -1; grid-row: auto; flex-direction: column; }
    .hm-bento-split { flex-direction: column; align-items: stretch; }
    .hm-bento-split .hm-bento-body { flex-basis: auto; }
    .hm-bento-split .hm-bento-media {
        flex-basis: auto;
        align-self: stretch;
        padding: 0 30px 30px;
    }
    .hm-bento-split .hm-bento-media img { width: 100%; max-height: none; }
}
/* Mobile (<=767): all three stacked single column (matches live) */
@media (max-width: 767px) {
    .hm-bento { grid-template-columns: 1fr; }
    .hm-bento-tall { grid-column: auto; }
    .hm-bento-split { flex-direction: column; align-items: stretch; }
    .hm-bento-split .hm-bento-body { flex-basis: auto; }
    .hm-bento-split .hm-bento-media { flex-basis: auto; padding: 0 30px 30px; }
    .hm-bento-split .hm-bento-media img { max-height: none; }
}

/* ---------- Products: "Built with SimuGel" ---------- */
/* Section background is WHITE (from live) */
.hm-products { background: #fff; }

/* (deleted unused `.gradient-background` helper — its radial lives directly on
   `.hm-product-imgwrap` WITHOUT `background-attachment: fixed`; the fixed variant
   is the navy-band glitch visible on prod) */

.hm-products-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--hm-bg);              /* dark heading on white section */
    line-height: 1.15;
}
/* "Built with SimuGel" — solid #9423FF clipped to text (from .medTrainingModels) */
.hm-gradient-solid {
    background: var(--hm-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hm-products-sub {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #3B3B39;              /* dark subtext on white section */
    max-width: 60rem;
}

.hm-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;          /* cards size to their content; don't stretch to tallest */
}

.hm-product-card {
    background: transparent;     /* card sits on the white section, no card bg */
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
    transform: translateZ(0);    /* constant compositing state (P3-safe hover) */
}
.hm-product-card:hover { transform: translateY(-4px) translateZ(0); }   /* user-approved enhancement */

/* ONLY the image container uses the .gradient-background radial gradient (from live) */
.hm-product-imgwrap {
    background: radial-gradient(ellipse at center, #555555 0%, #404050 40%, #2a2a45 70%, #1f1f3a 100%);
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    padding: 30px 10px;          /* from live: 30px top/bottom, 10px left/right */
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;          /* anchors the sale badge */
}
.hm-product-imgwrap img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Sale indicator: a small badge on the card image + the price swapped for a
   crossed-out regular price next to the (purple, emphasized) sale price. */
.hm-product-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: var(--hm-magenta);
    color: #fff;
    font: 700 11px/1 "Montserrat", sans-serif;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 5px 10px;
    border-radius: 20px;
}
.hm-product-price--sale { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hm-product-price-regular { font-size: 14px; font-weight: 500; color: #8a8a99; text-decoration: line-through; }
.hm-product-price-sale { font-size: 18px; font-weight: 700; color: var(--hm-magenta); }

.hm-product-title {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--hm-bg);             /* dark title on white section */
    line-height: 1.35;
    margin: .25rem 6px .5rem;   /* no flex-grow — price sits directly under the title */
}
.hm-product-title a { color: inherit; }
.hm-product-title a:hover { color: var(--hm-primary); }
.hm-product-price {
    font-size: 18px;
    font-weight: 600;
    color: #B35FFF;              /* light purple (from live) */
    margin: 0 6px .85rem;
}
.hm-product-actions { display: flex; align-items: center; gap: 8px; margin: 0 6px; }
.hm-product-btn {
    background: var(--hm-primary);   /* #9423FF */
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 14px;
    transition: background-color .3s ease;
}
.hm-product-btn:hover { background: var(--hm-magenta); color: #fff; }
.hm-product-wishlist {
    width: 34px; height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid #BABABA;
    background: transparent;
    color: #3B3B39;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}
.hm-product-wishlist:hover { color: var(--hm-primary); border-color: var(--hm-primary); }
/* Saved to the wishlist — filled heart in brand magenta. */
.hm-product-wishlist.is-saved { color: var(--hm-magenta); border-color: var(--hm-magenta); }
.hm-product-wishlist[disabled] { opacity: .55; cursor: default; }
.hm-product-variant-note {
    color: #6B7280;             /* muted gray on white section */
    font-size: .72rem;
    line-height: 1.4;
    margin: 12px 6px 0;
}

/* Responsive: 4-col → 2-col (tablet) → 1-col (mobile) */
@media (max-width: 1024px) { .hm-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .hm-products-grid { grid-template-columns: 1fr; } }

/* ---------- Stats band ("Engineered for the People…") ---------- */
/* Section bg: horizontal near-black -> purple gradient (element 38babb34 in post-12515.css) */
.hm-stats {
    background: linear-gradient(180deg, #2A0C5C 0%, #0C0012 100%);   /* wash gradient (brand fix list HP Fix 2a) */
    padding: 71px 30px 79px;      /* from live e-con-inner padding */
}
.hm-stats-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 39px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3rem;
}
.hm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
/* 1px dividers between stats: border-right on first 3 cols, #FFFFFF7D (removed at mobile) */
.hm-stats-grid .hm-stat:not(:last-child) {
    border-right: 1px solid #FFFFFF7D;
}
.hm-stat-value {
    font-family: "Montserrat", sans-serif;
    font-size: 48px;              /* numeric stats (from live) */
    font-weight: 600;
    color: var(--hm-sienna);      /* Sienna on NUMBERS ONLY (10,000+ / 200+) — brand color spec */
    line-height: 1.1;
}
/* text stats (Batch-Certified / Made in USA): smaller AND stay white — Sienna is numbers-only */
.hm-stat-value--sm { font-size: 28px; color: #fff; }
.hm-stat-label {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    margin-top: .35rem;
}
/* Responsive: 4-col → 2-col (tablet) → single-column vertical stack (mobile, matches live) */
@media (max-width: 1024px) {
    .hm-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    /* 2x2: keep only the middle dividers (items 1 & 3); drop item 2's row-edge divider */
    .hm-stats-grid .hm-stat:nth-child(2) { border-right: 0; }
}
@media (max-width: 767px)  {
    .hm-stats-heading { font-size: 28px; }
    .hm-stat-value { font-size: 40px; }
    .hm-stat-value--sm { font-size: 24px; }
    .hm-stats-grid { grid-template-columns: 1fr; row-gap: 32px; }   /* vertical stack */
    /* production removes the dividers at mobile */
    .hm-stats-grid .hm-stat:not(:last-child) { border-right: 0; }
}

/* ---------- SimuGel Platform ("Engineered Synthetic Tissue. Six Formulations.") ---------- */
.hm-platform { background: var(--hm-bg); }   /* #0E0617 — matches .hm-engineered so the SimuGel band reads as a strip between them */
.hm-platform-eyebrow {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 10px;
    /* solid #9423FF clipped text (.products class on live) */
    background: var(--hm-primary);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    display: inline-block;
}
.hm-platform-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 10px;
}
.hm-platform-copy {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #fff;
    max-width: 768px;
    margin-bottom: 50px;
}
.hm-platform-scale { margin-bottom: 10px; }
.hm-platform-scale img { width: 100%; height: auto; display: block; }
@media (max-width: 767px) {
    .hm-platform-heading { font-size: 28px; }
    .hm-platform-copy { font-size: 16px; margin-bottom: 30px; }
}

/* ---------- SimuGel Platform BAND (gradient, box photo) — element 7775f8ec ---------- */
.hm-band {
    background: #1A0E30;   /* lifted elevated surface — reads as a distinct strip between the two #0E0617 neighbours (HP Fix 3) */
    padding: 0 30px;
}
.hm-band-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px;
}
.hm-band-text { padding: 60px 0; }
.hm-band-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 39px;
    font-weight: 600;
    color: #fff;
    max-width: 500px;
    margin-bottom: 10px;
}
.hm-band-sub {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: #fff;
    max-width: 398px;
    margin-bottom: 24px;
}
/* Underline-style link: 1px white bottom border, arrow icon; hover -> #9423FF (from 4a07c9bc) */
.hm-band-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    padding-bottom: 10px;
    border-bottom: 1px solid #fff;
    transition: color .3s ease, border-color .3s ease;
}
.hm-band-link:hover { color: var(--hm-primary); border-color: var(--hm-primary); }
.hm-band-media { margin-top: -45px; }   /* photo pulls up over the band top (desktop, from live) */
.hm-band-media img { width: 100%; height: auto; display: block; }

@media (max-width: 1366px) {
    .hm-band-heading { font-size: 36px; }
    .hm-band-media { margin-top: 0; }
}
@media (max-width: 1024px) {
    .hm-band-heading { font-size: 28px; max-width: 398px; }
    .hm-band-media { text-align: right; }
    .hm-band-media img { width: 90%; }
}
@media (max-width: 767px) {
    .hm-band-grid { grid-template-columns: 1fr; }
    .hm-band-text { padding: 45px 0 10px; }
    .hm-band-media { padding-bottom: 30px; }
}

/* ---------- "Engineered for Simulation and Testing" (split 33/66, 2x2 features) ---------- */
.hm-engineered { background: var(--hm-bg); }   /* --e-global-color-55d7302 (element 1b77d6dc) */
.hm-engineered-grid {
    display: grid;
    grid-template-columns: 33.33% 1fr;    /* left col 33.33%, right 66.66% (from live) */
    gap: 24px;
    align-items: start;
}
.hm-engineered-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
}
.hm-engineered-sub {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #fff;
    padding-top: 24px;
    margin: 0;
}
/* Button (62b3c5f8): #9423FF bg + 1px #9423FF border, 8px radius, Montserrat 13/800, hover #FF25FB */
.btn-hm-engineered {
    display: inline-block;
    background: var(--hm-primary);
    color: #fff;
    border: 1px solid var(--hm-primary);
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 800;
    padding: 22px 37px;
    line-height: 1;
    margin-top: 32px;
    transition: background-color .3s ease, border-color .3s ease;
}
.btn-hm-engineered:hover { background: var(--hm-magenta); border-color: var(--hm-magenta); color: #fff; }

/* 2x2 feature boxes (Elementor image-box, icon top) */
.hm-engineered-features { display: flex; flex-wrap: wrap; }
.hm-feature {
    width: 50%;
    padding: 0 15px 40px;
    text-align: left;
}
.hm-feature-icon { width: 16%; height: auto; display: block; margin-bottom: 15px; }
.hm-feature-title {
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    transition: color .3s ease;
}
.hm-feature:hover .hm-feature-title { color: var(--hm-primary); }   /* live :has(:hover) behavior */
.hm-feature-desc {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--hm-text);   /* --e-global-color-d869ccd */
    line-height: 1.6;
}

@media (max-width: 1366px) {
    .hm-engineered-heading { font-size: 39px; }
    .hm-engineered-sub { font-size: 17px; }
    .btn-hm-engineered { font-size: 11.5px; padding: 20px; }
}
@media (max-width: 1024px) {
    .hm-engineered-heading { font-size: 36px; }
    .hm-feature-icon { width: 20%; }
}
@media (max-width: 767px) {
    .hm-engineered-grid { grid-template-columns: 1fr; }
    .hm-engineered-heading { font-size: 40px; }
    .hm-feature { width: 100%; }
    .hm-feature-icon { width: 15%; }
}

/* ---------- "Engineered Tissue. Built for Simulation." (gradient band, 4 centered boxes) ---------- */
.hm-tissue { background: #0C0012; }   /* dark canvas (brand fix list HP Fix 4) */
.hm-tissue-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 39px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}
.hm-tissue-intro {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: var(--hm-text);
    max-width: 768px;
    margin-bottom: 50px;
}
.hm-tissue-grid { display: flex; flex-wrap: wrap; }
.hm-tissue-grid .hm-feature { width: 25%; padding: 0 10px; }
/* dividers between boxes (1px, like stats band) */
.hm-tissue-grid .hm-feature:not(:last-child) { border-right: 1px solid #FFFFFF7D; }

/* centered variant (this band): Montserrat 20/600 title, Helvetica 16 desc, icon 15% centered */
.hm-feature--center { text-align: center; }
.hm-feature--center .hm-feature-icon { width: 15%; margin: 0 auto 12px; }
.hm-feature--center .hm-feature-title {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}
.hm-feature--center .hm-feature-desc {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
}

@media (max-width: 1366px) {
    .hm-tissue-heading { font-size: 38px; }
    .hm-feature--center .hm-feature-icon { width: 48px; }
}
@media (max-width: 1024px) {
    .hm-tissue-grid .hm-feature { width: 50%; margin-bottom: 40px; }
    /* 2x2: keep only middle dividers */
    .hm-tissue-grid .hm-feature:nth-child(2) { border-right: 0; }
}
@media (max-width: 767px) {
    .hm-tissue-heading { font-size: 40px; }
    .hm-tissue-intro { margin-bottom: 35px; }
    .hm-tissue-grid .hm-feature { width: 100%; border-right: 0 !important; margin-bottom: 32px; }
}

/* ---------- Testimonials (carousel, 1-per-view, dots) — section 22da163d ---------- */
.hm-testimonials { background: var(--hm-bg); }
/* duo gradient clip (live .customerSaying): magenta -> cyan */
.hm-gradient-duo {
    background: linear-gradient(90deg, var(--hm-primary) 0%, var(--hm-grad-blue) 100%);   /* brand v1.0: purple -> blue (retired pink/cyan) */
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hm-testimonials-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}
.hm-testimonials-sub {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: var(--hm-text);
    margin-bottom: 50px;
}

.hm-testimonial-carousel { max-width: 1058px; margin: 0 auto; overflow: hidden; }
.hm-testimonial-track {
    display: flex;
    transition: transform .6s ease;
}
.hm-testimonial-slide {
    flex: 0 0 50%;              /* 2 slides side by side (user-confirmed prod behavior) */
    padding: 0 26px;
}
@media (max-width: 767px) {
    .hm-testimonial-slide { flex-basis: 100%; }   /* 1-per-view on mobile */
}
.hm-testimonial-author { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hm-testimonial-author img { width: 50px; height: 50px; border-radius: 50%; }
.hm-testimonial-name { font-family: "Montserrat", sans-serif; font-size: 16px; font-weight: 600; color: #fff; }
.hm-testimonial-role { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; color: var(--hm-text); }
.hm-testimonial-quote {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: var(--hm-text);
    max-width: 420px;
    line-height: 1.6;
}
.hm-testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.hm-testimonial-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 0; padding: 0;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: background-color .3s ease;
}
.hm-testimonial-dots button.is-active { background: var(--hm-primary); }

@media (max-width: 1366px) {
    .hm-testimonials-heading { font-size: 38px; max-width: 632px; }
}
@media (max-width: 767px) {
    .hm-testimonials-heading { font-size: 40px; }
    .hm-testimonials-sub { margin-bottom: 35px; }
}

/* ---------- Blog / Insights (WHITE section, loop-grid cards) — section 737d4551 ---------- */
.hm-blog { background: #fff; }
.hm-blog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.hm-blog-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 38px;
    font-weight: 600;
    color: var(--hm-bg);               /* --e-global-color-55d7302 */
    margin: 0;
    line-height: 1.15;
}
/* "view All" button — OUTLINED: transparent, 1px #9423FF border/text, 6px radius;
   hover fills primary (from element 5e5771c3) */
.btn-hm-viewall {
    flex: 0 0 auto;
    background: transparent;
    color: var(--hm-primary);
    border: 1px solid var(--hm-primary);
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 30px;
    border-radius: 6px;
    transition: background-color .3s ease, color .3s ease;
    white-space: nowrap;
}
.btn-hm-viewall:hover { background: var(--hm-primary); color: #fff; }

/* Subtitle under the blog heading — readable dark text on the white section. */
.hm-blog-sub {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #5a5a5a;
    max-width: 680px;
}

.hm-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card: image top (no radius), body below with 0 0 20px 20px radius */
.hm-blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    transform: translateZ(0);            /* constant compositing (P3-safe hover) */
    transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}
.hm-blog-card:hover {
    /* Calm hover (2026-10-20, "too much" feedback): ONE quiet lift, a
       barely-there image breath and the arrow nudge. The purple glow,
       gradient wash, badge lift and title flip are gone on purpose. */
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 10px 24px rgba(14, 6, 23, .08);
}
.hm-blog-media {
    position: relative;
    display: block;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}
.hm-blog-media img {
    width: 100%;
    aspect-ratio: 385 / 270;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.hm-blog-card:hover .hm-blog-media img { transform: scale(1.02); }
.hm-blog-badge {
    position: absolute;
    bottom: 14px; left: 14px;      /* lower-left, over the image (from live) */
    z-index: 2;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: var(--hm-primary);  /* solid #9423FF */
    padding: 8px 18px;
    border-radius: 8px;
}
.hm-blog-body {
    background: #F6F6F8;
    border-radius: 0 0 20px 20px;
    padding: 24px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.hm-blog-title {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 12px;
}
.hm-blog-title a { color: var(--hm-primary); transition: color .3s ease; }   /* purple title (from live) */
.hm-blog-title a:hover { color: var(--hm-bg); }
.hm-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    color: #96989B;
    margin-bottom: 12px;
}
.hm-blog-meta i { margin-right: 5px; }
.hm-blog-excerpt {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #3B3B39;
    line-height: 1.55;
    margin-bottom: 16px;
    flex-grow: 1;
}
.hm-blog-more {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--hm-bg);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}
.hm-blog-more { transition: color .3s ease; }
.hm-blog-more:hover { color: var(--hm-primary); }
.hm-blog-more .fa-arrow-right { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.hm-blog-more:hover .fa-arrow-right,
.hm-blog-card:hover .hm-blog-more .fa-arrow-right { transform: translateX(5px); }

@media (max-width: 1366px) { .hm-blog-heading { font-size: 27px; } }
@media (max-width: 1024px) {
    .hm-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-blog-card:last-child { grid-column: 1 / -1; max-width: 50%; }
}
@media (max-width: 767px) {
    .hm-blog-head { flex-direction: column; align-items: flex-start; }
    .hm-blog-heading { font-size: 40px; }
    .hm-blog-grid { grid-template-columns: 1fr; }
    .hm-blog-card:last-child { grid-column: auto; max-width: none; }
    .hm-blog-card:last-child { margin-bottom: 2rem; }
}

/* ---------- Custom CTA — rounded gradient CARD on white section (3cdd1189) ---------- */
/* white full-width wrapper (shares the blog section's white bg on live).
   Top pad = generous gap from the blog cards above (matches live ~253px, which
   accounts for the CTA card's tall image poke-out). */
.hm-cta-section {
    background: #fff;
    padding: 220px 30px 80px;
}
/* the gradient card: max 1240px centered, 30px radius; overflow VISIBLE so the
   image pokes out the top (from live). NOT full-bleed. */
.hm-cta-card {
    max-width: 1240px;
    margin: 0 auto;
    background: linear-gradient(180deg, #2A0C5C 0%, #0C0012 100%);   /* wash gradient (brand fix list HP Fix 5) */
    border-radius: 30px;
    padding: 0 100px 0 125px;
    overflow: visible;
}
.hm-cta-grid {
    display: grid;
    grid-template-columns: 1fr 415px;   /* image flexes, text col 415px (from live) */
    align-items: end;                    /* image bottom aligns to card bottom */
    gap: 40px;
    padding: 40px 0 0;                   /* no bottom pad: image bottom sits on card edge */
}
.hm-cta-media { text-align: center; }
.hm-cta-media img {
    width: 571px;                       /* fixed to natural width so poke-out matches live 70px */
    max-width: 100%;
    height: auto;
    margin-top: -70px;                  /* image is taller than card -> pokes out the TOP (from live) */
    display: block;
    margin-inline: auto;
}
/* text column keeps its own vertical padding so it isn't pulled by the tall image */
.hm-cta-text { padding: 44px 0 40px; }
.hm-cta-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 39px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}
.hm-cta-sub {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 24px;
}
/* Button: WHITE bg, #9423FF text, 8px radius; hover fills magenta #FF25FB (from e879d2e) */
.btn-hm-cta {
    display: inline-block;
    background: #fff;
    color: var(--hm-primary);
    border: 1px solid var(--hm-primary);
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 40px;
    line-height: 1;
    transition: background-color .3s ease, color .3s ease;
}
.btn-hm-cta:hover { background: var(--hm-magenta); color: #fff; }

@media (max-width: 1366px) {
    .hm-cta-heading { font-size: 37px; }
    .hm-cta-sub { font-size: 17px; }
}
@media (max-width: 1024px) {
    .hm-cta-card { padding: 0 40px; }
    .hm-cta-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hm-cta-heading { font-size: 28px; }
    .hm-cta-sub { font-size: 15px; }
    .hm-cta-media img { width: 90%; margin-top: -40px; }
    .btn-hm-cta { font-size: 13px; padding: 15px 30px; }
}
@media (max-width: 1024px) { .hm-cta-section { padding-top: 140px; } }
@media (max-width: 767px) {
    .hm-cta-section { padding-top: 90px; }
    .hm-cta-card { padding: 0 24px; overflow: hidden; }   /* clip so the tall image doesn't spill on mobile */
    .hm-cta-grid { grid-template-columns: 1fr; text-align: center; align-items: center; padding: 40px 0 0; }
    .hm-cta-media { order: 2; }
    .hm-cta-media img { margin-top: 0; margin-bottom: -24px; }
    .hm-cta-text { order: 1; padding: 0; }
    .btn-hm-cta { font-size: 12px; padding: 15px 30px; }
}

/* ---------- Footer ---------- */
.hm-footer {
    background: var(--hm-bg);                 /* match the header (--e-global-color-1fb89a5) */
    border-top: 1px solid var(--hm-border);
    color: var(--hm-muted);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* 6-column layout matching footer template 12456 (35% | 150 | 180 | 120 | 150 | 185) */
.hm-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 35%) 150px 180px 120px 150px 185px;
    gap: 24px;
    align-items: start;
}
/* Tablet (<=1024): brand full-width, remaining columns wrap into a flexible grid (live keeps multi-col) */
@media (max-width: 1024px) {
    .hm-footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hm-footer-brand { grid-column: 1 / -1; }
}
/* Mobile (<=767): everything stacks single column (matches live) */
@media (max-width: 767px) {
    .hm-footer-grid { grid-template-columns: 1fr; }
}

.hm-footer-logo { height: 72px; width: auto; }
.hm-footer-tagline { color: var(--hm-muted); font-size: 14px; line-height: 1.7; max-width: 24rem; }

.hm-footer-head {
    font-family: "Montserrat", sans-serif;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hm-footer-links li { margin-bottom: .55rem; }
.hm-footer-links a { color: var(--hm-text); font-size: 14px; }        /* --e-global-color-d869ccd */
.hm-footer-links a:hover { color: var(--hm-primary); }                   /* --e-global-color-primary */

.hm-footer-address { color: var(--hm-text); font-size: 14px; line-height: 1.7; }
.hm-footer-address a { color: var(--hm-text); }
.hm-footer-address a:hover { color: var(--hm-primary); }

/* Contact button — bg #9423FF (primary), hover #FF25FB, 8px radius (from footer template 12456) */
.btn-hm-footer-contact {
    display: inline-block;
    background: var(--hm-primary);
    color: #fff;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 18px 30px;
    line-height: 1;
    transition: background-color .3s ease;
}
.btn-hm-footer-contact:hover { background: var(--hm-magenta); color: #fff; }

/* Social icons — 33px circles, #0E0617 bg, 1px white border, white icon; hover #9423FF (from template) */
.hm-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 33px; height: 33px; border-radius: 50%;
    background: var(--hm-bg);
    color: #fff;
    border: 1px solid #fff;
    font-size: 15px;
    transition: background-color .3s ease, border-color .3s ease;
}
.hm-social a:hover {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: #fff;
}

/* Contact list with location/phone icons */
.hm-footer-contact li {
    display: flex;
    gap: .6rem;
    margin-bottom: .9rem;
    color: var(--hm-text);
    font-size: 14px;
    line-height: 1.6;
}
.hm-footer-contact li i {
    color: var(--hm-primary);
    margin-top: .25rem;
    flex: 0 0 auto;
    width: 16px;
    text-align: center;
}
.hm-footer-contact a { color: var(--hm-text); }
.hm-footer-contact a:hover { color: var(--hm-primary); }

.hm-footer-bottom {
    border-top: 1px solid var(--hm-border);
    padding: 1.5rem 0;
    font-size: 13px;
    color: var(--hm-muted);
}

.hm-divider { border-color: var(--hm-border); }

/* ==========================================================================
   Entrance animations — quiet and fast, not a slideshow.
   Usage: <el data-animate="fadeInUp" data-animate-delay="100">.
   JS (layouts/main.php) adds .hm-in when the element enters the viewport.

   The attribute values are the old Elementor names, kept so no template had
   to change, but they no longer mean "fly in from a side": everything RISES a
   short distance on one decelerating curve, and image panels WIPE open
   top-down instead (clip-path, like a photo being uncovered). Direction is
   not information, so nothing travels sideways; distance is small (16px, not
   a full element width); duration is short (0.8s, not 1.25s). Staggers are
   set by data-animate-delay and capped in JS, so a sequence reads as one
   beat rather than a deck of slides.

   Hidden only once JS is present (html.js, set in the layout head), so a page
   without JS — or a layout without the trigger script — is simply visible.
   ========================================================================== */
:root { --hm-ease-out: cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes hmFade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes hmRise   { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes hmUnveil { from { opacity: 1; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

html.js [data-animate] { opacity: 0; }
html.js [data-animate].hm-in {
    opacity: 1;
    animation: hmRise .8s var(--hm-ease-out) both;
}
html.js [data-animate="fadeIn"].hm-in { animation-name: hmFade; animation-duration: .7s; }
/* Image panels: the media columns of split sections and the PDP gallery. */
html.js [data-animate][class*="-media"].hm-in,
html.js [data-animate].pdp-gallery.hm-in { animation: hmUnveil 1s var(--hm-ease-out) both; }

@media (prefers-reduced-motion: reduce) {
    html.js [data-animate] { opacity: 1; animation: none !important; clip-path: none !important; }
}

/* ---------- Floating back-to-top ---------- */
.hm-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hm-primary);              /* #9423FF */
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 1040;                              /* above header (1030) */
    box-shadow: 0 8px 22px rgba(148, 35, 255, .38);
    /* hidden until scrolled */
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) translateZ(0);  /* translateZ keeps it P3-layer-safe */
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background-color .2s ease;
}
.hm-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateZ(0);
    transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.hm-to-top:hover {
    background: var(--hm-magenta);                        /* magenta hover, matches brand button pattern */
    transform: translateY(-3px) translateZ(0);
}
.hm-to-top:focus-visible {
    outline: 2px solid var(--hm-blue);
    outline-offset: 2px;
}
@media (max-width: 767px) {
    .hm-to-top { right: 18px; bottom: 18px; width: 44px; height: 44px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-to-top { transition: opacity .2s ease, visibility 0s; }
    .hm-to-top:hover { transform: translateZ(0); }
}

/* ==========================================================================
   PRODUCTS PAGE  (/products) — hero + filter-sidebar shop + CTA
   Filter UI itself is styled by hpf-filter.css (ported from the WP plugin).
   ========================================================================== */

/* ---------- Hero (background photo, from live) ----------
   Live: full-bleed photo HM-Website-Photo-1.png over a #000 base, cover/center,
   white centered text. A dark overlay keeps the copy legible on the photo. */
.hm-products-hero {
    position: relative;
    background-color: #000;          /* base under the photo (matches live) */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    padding: 80px 0 70px;            /* live section padding */
    overflow: hidden;
}
.hm-products-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 3, 15, .55); /* legibility overlay for white text */
    z-index: 0;
}
.hm-products-hero .container { position: relative; z-index: 1; }
.hm-products-hero-title {
    font-family: "Montserrat", sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
}
.hm-products-hero-lead {
    max-width: 640px;
    font-size: 17px;
    line-height: 1.6;
    color: #F4F1FB;                  /* near-white on the photo */
}

/* ---------- Shop shell (white) ---------- */
.hm-products-shop {
    background: #fff;
    padding: 56px 0 72px;
}
.hm-shop-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}
/* Desktop: keep the filter panel in view while scrolling the grid. */
.hm-shop-sidebar { position: sticky; top: 100px; }
.hm-shop-main { min-width: 0; }

/* ---------- Product grid (3-col like live, inside the main column) ---------- */
.hm-products-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
    align-items: start;
}

/* ---------- "From" price / hidden-price spacer ---------- */
.hm-product-price--empty { visibility: hidden; }

/* ---------- Empty state ---------- */
.hm-products-empty {
    text-align: center;
    padding: 70px 20px;
    color: #6B7280;
}
.hm-products-empty i {
    font-size: 34px;
    color: var(--hm-primary);
    opacity: .55;
    margin-bottom: 14px;
    display: block;
}
.hm-products-empty p { margin: 0; font-size: 17px; font-weight: 600; color: var(--hm-bg); }
.hm-products-empty-sub { margin-top: 6px !important; font-size: 14px !important; font-weight: 400 !important; color: #6B7280 !important; }

/* ---------- Pagination (brand-styled, on the white grid) ---------- */
.hm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 44px;
}
.hm-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1.5px solid #E4DAF3;
    border-radius: 9px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-bg);
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .12s ease;
}
.hm-page:hover {
    color: #fff;
    background: var(--hm-magenta);      /* #FF25FB, matches brand hover */
    border-color: var(--hm-magenta);
}
.hm-page.is-current {
    color: #fff;
    background: var(--hm-primary);      /* #9423FF active */
    border-color: var(--hm-primary);
    cursor: default;
}
.hm-page.is-disabled {
    color: #C7BEDA;
    background: #fff;
    border-color: #EEE7F7;
    cursor: not-allowed;
    pointer-events: none;
}
.hm-page-gap {
    border-color: transparent;
    background: transparent;
    cursor: default;
    pointer-events: none;
    min-width: 24px;
    padding: 0 4px;
    color: #9B90B4;
}
.hm-page:active:not(.is-current):not(.is-disabled) { transform: translateY(1px); }

@media (max-width: 767px) {
    .hm-pagination { gap: 6px; margin-top: 34px; }
    .hm-page { min-width: 38px; height: 38px; font-size: 13px; }
}

/* ---------- Didn't-Find CTA ----------
   Section bg is WHITE (per request) so it continues the white shop area; the
   gradient card provides the contrast/pop. */
.hm-products-cta {
    background: #fff;
    padding: 20px 0 90px;
}
.hm-products-cta-card {
    background: var(--hm-grad-cta);
    border-radius: 28px;
    padding: 54px 40px;
    text-align: center;
}
.hm-products-cta-heading {
    font-family: "Montserrat", sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.hm-products-cta-sub {
    font-size: 17px;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 26px;
}
.hm-products-cta-btn { background: #fff !important; color: var(--hm-primary) !important; }
.hm-products-cta-btn:hover { background: var(--hm-magenta) !important; color: #fff !important; }

/* ---------- Responsive ---------- */
/* Wide-but-not-huge desktops: grid stays 3-col, sidebar a touch narrower. */
@media (max-width: 1200px) {
    .hm-shop-grid { grid-template-columns: 270px minmax(0, 1fr); gap: 28px; }
    .hm-products-list { gap: 24px 20px; }
}

/* Tablet + mobile (<=1024): the filter becomes a bottom-sheet (hpf-filter.css),
   so the sidebar collapses to just its toolbar row and the grid goes full width. */
@media (max-width: 1024px) {
    .hm-shop-grid { grid-template-columns: 1fr; gap: 0; }
    .hm-shop-sidebar { position: static; top: auto; }
    .hm-products-list { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
    .hm-products-hero { padding: 70px 0 54px; }
    .hm-products-hero-title { font-size: 42px; }
}

@media (max-width: 767px) {
    .hm-products-list { grid-template-columns: 1fr; gap: 30px; }
    .hm-products-hero-title { font-size: 34px; }
    .hm-products-hero-lead { font-size: 15px; }
    .hm-products-cta-card { padding: 42px 24px; }
    .hm-products-cta-heading { font-size: 26px; }
}

/* ==========================================================================
   APPLICATIONS — Clinical Simulation & Training (/applications/medical-simulation)
   Reuses the site design system: split sections, product grid, hm-blog, brand
   gradient headings (.hm-gradient-duo = #9423FF -> #3088F8).
   ========================================================================== */

/* ---------- Hero (background photo, dark overlay, white centered copy) ---------- */
.app-hero {
    position: relative;
    background-color: #000;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    /* Live hero is a full-viewport cover. */
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    overflow: hidden;
}
.app-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,3,15,.62) 0%, rgba(8,3,15,.72) 100%);
    z-index: 0;
}
.app-hero-inner { position: relative; z-index: 1; width: 100%; }
.app-hero-title {
    font-family: "Montserrat", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
}
.app-hero-lead {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.6;
    color: #F4F1FB;
}

/* ---------- Intro (centered, no image) ---------- */
.app-intro { background: var(--hm-bg); padding: 80px 0 64px; }
.app-intro-inner { max-width: 860px; margin: 0 auto; }
.app-intro-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--hm-text);
    max-width: 720px;
    margin: 0 auto;
}

/* ---------- Split sections (image + copy) — dark ---------- */
.app-split { background: var(--hm-bg); padding: 84px 0; }
.app-split--features { background: var(--hm-bg); }   /* match the intro / Clinical Readiness section */
.app-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
/* Side images show FULLY (uncropped): natural aspect, no object-fit cover. */
.app-split-media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 18px;
    display: block;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}
.app-split-title {
    font-family: "Montserrat", sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 18px;
}
.app-split-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--hm-text);
    margin: 0;
    max-width: 520px;
}

/* Features list */
.app-feature-subhead {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--hm-primary);
    margin: 4px 0 18px;
}
.app-feature-list { list-style: none; margin: 0; padding: 0; }
.app-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.app-feature-item:last-child { border-bottom: none; }
.app-feature-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-top: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-grad-blue) 100%);
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.app-feature-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--hm-text);
}
.app-feature-text strong { color: #fff; font-weight: 700; }

/* ---------- Why Hospitals Choose (dark band, content left / image right) ---------- */
.app-why {
    background: var(--hm-bg);
    padding: 90px 0;
}
.app-why-grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.app-why-title {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
}
.app-why-lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--hm-text);
    margin-bottom: 28px;
    max-width: 560px;
}
.app-why-subhead {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--hm-primary);
    margin-bottom: 22px;
}
.app-why-list { list-style: none; margin: 0; padding: 0; }
.app-why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.app-why-item:last-child { border-bottom: none; }
.app-why-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-grad-blue) 100%);
    color: #fff;
    font-size: 16px;
}
.app-why-item-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--hm-muted);
    padding-top: 2px;
}
.app-why-item-text strong { color: #fff; font-weight: 700; }
.app-why-media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 18px;
    display: block;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}

/* ---------- Our Most Popular Medical Training Models (dark product grid) ---------- */
.app-products { background: var(--hm-bg); padding: 84px 0; }
.app-products-title {
    font-family: "Montserrat", sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.app-products-sub {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    color: #6B7280;
}
.app-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 24px;
    align-items: start;
}
/* Product cards sit on a DARK section here — flip the card text to light
   (the cards were originally styled for the white /products page). */
.app-products .hm-product-title,
.app-products .hm-product-title a { color: #fff; }
.app-products .hm-product-title a:hover { color: var(--hm-blue-2); }
.app-products-sub { color: var(--hm-muted); }

/* ---------- Need Something Built For You? (CTA) ----------
   Live pattern: ONE gradient card (150deg #0f0617 -> #8120ef) with Artwork.png
   as a center-right background image; content sits LEFT. Tight padding (no big
   top gap — the old poke-out pattern's 220px top space is gone). */
.app-buildcta {
    background: var(--hm-bg);
    /* extra top room for the product image that pokes out the card's top edge */
    padding: 90px 0 90px;
}
.app-buildcta-card {
    position: relative;
    background-color: #0C0012;
    /* Compose the artwork (top layer, center-right) over the wash gradient
       (brand fix list: Clinical Fix 6 / Trauma Fix 6 / Device Fix 4).
       The URL comes from --app-cta-art (set inline per page). */
    background-image: var(--app-cta-art), linear-gradient(180deg, #2A0C5C 0%, #0C0012 100%);
    background-position: center right, center center;
    background-repeat: no-repeat, no-repeat;
    background-size: auto 100%, cover;   /* artwork fills card height at the right */
    border-radius: 30px;
    padding: 0 70px;
    /* Text col fixed 415px LEFT; image col flexes RIGHT. overflow VISIBLE so the
       tall product image pokes out the top (from live: margin-top:-70px, w:90%). */
    display: grid;
    grid-template-columns: 415px 1fr;
    align-items: end;
    gap: 40px;
    overflow: visible;
}
.app-buildcta-copy { position: relative; z-index: 1; max-width: 560px; padding: 52px 0 48px; }
.app-buildcta-title {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 14px;
}
.app-buildcta-sub {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 26px;
    max-width: 480px;
}
.app-buildcta-btn { display: inline-block; }
.app-buildcta-media { position: relative; z-index: 1; text-align: center; }
.app-buildcta-media img {
    width: 90%;                 /* from live */
    max-width: 100%;
    height: auto;
    display: block;
    margin: -70px auto 0;       /* pokes out the TOP by 70px (from live) */
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .app-hero { min-height: 80vh; padding: 80px 0; }
    .app-hero-title { font-size: 42px; }
    .app-intro { padding: 56px 0 44px; }
    .app-split { padding: 60px 0; }
    .app-split-grid, .app-why-grid-split { gap: 40px; }
    .app-split-title, .app-products-title, .app-why-title { font-size: 30px; }
    .app-products-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
    .app-buildcta-card { padding: 0 40px; grid-template-columns: 1fr 1fr; gap: 24px; }
    .app-buildcta-copy { padding: 44px 0 40px; }
    .app-buildcta-media img { width: 100%; margin-top: -40px; }
}

@media (max-width: 767px) {
    .app-hero { min-height: 78vh; padding: 68px 0; }
    .app-hero-title { font-size: 32px; }
    .app-hero-lead { font-size: 16px; }
    .app-intro-text { font-size: 16px; }
    /* Split sections stack; image goes on TOP. */
    .app-split-grid, .app-why-grid-split { grid-template-columns: 1fr; gap: 26px; }
    .app-split--features .app-split-media { order: -1; }
    .app-why-media { order: -1; }
    .app-split-title { font-size: 26px; }
    .app-why { padding: 60px 0; }
    .app-products-grid { grid-template-columns: 1fr; gap: 28px; }
    .app-products-title, .app-why-title { font-size: 26px; }
    /* CTA stacks: copy on top, product image below; artwork covers behind a scrim. */
    .app-buildcta { padding: 60px 0 70px; }
    .app-buildcta-card {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 40px 24px 0;
        text-align: center;
        overflow: hidden;
        background-size: cover, cover;
    }
    .app-buildcta-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(150deg, rgba(15,6,23,.72) 0%, rgba(129,32,239,.62) 100%);
        z-index: 0;
    }
    .app-buildcta-copy { max-width: none; padding: 0; }
    .app-buildcta-sub { margin-inline: auto; }
    .app-buildcta-media img { width: 82%; max-width: 360px; margin: 0 auto -6px; }
    .app-buildcta-title { font-size: 26px; }
}

/* ==========================================================================
   ABOUT PAGE (/about) — hero reuses .app-hero; story (white) + designed/
   mission-vision (dark) splits; shared tissue + testimonials partials below.
   ========================================================================== */

/* Hero is content-sized (not 100vh like the applications heroes). */
.about-hero { min-height: 0; padding: 130px 0 110px; }

/* ---------- Story: photo left / copy right (white) ---------- */
.about-story { background: #fff; padding: 90px 0; }
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-story-media { position: relative; }
.about-story-media img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
    box-shadow: 0 24px 60px -24px rgba(15, 6, 23, .35);
}
/* Play button centered over the story image (reuses .hm-video-btn). */
.about-story-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.about-story-title {
    font-family: "Montserrat", sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--hm-bg);
    margin-bottom: 20px;
}
.about-story-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #454545;
    margin-bottom: 16px;
    max-width: 560px;
}
.about-story-copy .btn-hm-solid { margin-top: 10px; }

/* ---------- Designed for Training: copy left / image right (dark) ---------- */
.about-designed { background: var(--hm-bg); padding: 90px 0; }
.about-designed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-designed-title {
    font-family: "Montserrat", sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
}
.about-designed-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--hm-text);
    margin-bottom: 16px;
    max-width: 560px;
}
.about-designed-media img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}

/* Mission / Vision — inline in the LEFT column, 2-up, with SVG icons (from live) */
.about-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 34px;
}
.about-mv-icon {
    width: 44px;
    height: 44px;
    display: block;
    margin-bottom: 14px;
}
.about-mv-title {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.about-mv-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--hm-muted);
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-hero { padding: 100px 0 84px; }
    .about-story, .about-designed { padding: 60px 0; }
    .about-story-grid, .about-designed-grid { gap: 40px; }
    .about-story-title, .about-designed-title { font-size: 30px; }
    .about-mv-grid { gap: 20px; margin-top: 44px; }
}
@media (max-width: 767px) {
    .about-hero { padding: 72px 0 58px; }
    /* Splits stack; images go on top. */
    .about-story-grid, .about-designed-grid { grid-template-columns: 1fr; gap: 26px; }
    .about-story-media, .about-designed-media { order: -1; }
    .about-story-title, .about-designed-title { font-size: 26px; }
    .about-mv-grid { grid-template-columns: 1fr; }
}

/* ---------- Video popup modal (hero + about story) ----------
   Large, standard 16:9 YouTube viewing size. modal-xl (~1140px) keeps the 16:9
   iframe roomy on desktop while staying responsive. */
.hm-video-modal .modal-dialog { max-width: min(1140px, 92vw); }
.hm-video-modal .modal-content { background: transparent; border: 0; }
.hm-video-modal .ratio iframe { border: 0; border-radius: 12px; }

/* ==========================================================================
   CONTACT PAGE (/contact) — hero reuses .app-hero/.about-hero; info + HubSpot
   form on the dark canvas.
   ========================================================================== */
.contact-main { background: var(--hm-bg); padding: 90px 0; }
/* 60/40 info-to-form split, matching the live layout (55/45 below 1366px).
   fr units so the gap comes out of the tracks rather than overflowing. */
.contact-grid {
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: 64px;
    align-items: start;
}
.contact-title {
    font-family: "Montserrat", sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 22px;
}
/* Force the heading onto two lines. Dropped on narrow screens, where the
   column is too tight for the break to land where it's wanted. */
@media (max-width: 767px) {
    .contact-title-break { display: none; }
}
.contact-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--hm-text);
    margin-bottom: 16px;
    max-width: 520px;
}

/* Address / Phone / Email list */
.contact-details { list-style: none; margin: 30px 0 0; padding: 0; }
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
}
.contact-detail-icon img { width: 32px; height: auto; display: block; }
.contact-detail-body { display: flex; flex-direction: column; gap: 3px; }
.contact-detail-label {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.contact-detail-value {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--hm-muted);
    text-decoration: none;
}
a.contact-detail-value:hover { color: var(--hm-primary); }

/* ---------- Contact form (native) ----------
   White card on the dark section, mirroring the live form: 20px radius, 2em
   padding, transparent fields with #cbcad7 borders and near-black labels. */
.contact-form-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 2em;
    margin-top: 30px;
}
.contact-form-head { margin-bottom: 22px; }
.contact-form-title {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--hm-bg);
    margin: 0 0 8px;
}
.contact-form-intro {
    font-size: 14px;
    line-height: 1.7;
    color: #5b5b66;
    margin: 0;
}
.contact-field { margin-bottom: 18px; }
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form .auth-label { color: var(--hm-bg); }
.contact-form .auth-label span { color: var(--hm-primary); margin-left: 2px; }

/* Fields: light card means light-mode inputs, not the dark auth variant. */
.contact-form .auth-input {
    background: transparent;
    border: 1.5px solid #cbcad7;
    color: var(--hm-bg);
}
.contact-form .auth-input::placeholder { color: #9a9aa6; }
.contact-form .auth-input:focus {
    border-color: var(--hm-primary);
    box-shadow: 0 0 0 3px rgba(148, 35, 255, .12);
}
.contact-textarea { min-height: 130px; resize: vertical; }

/* Native select needs its own arrow once appearance is stripped. */
.contact-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%230E0617' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px;
    padding-right: 38px;
    cursor: pointer;
}
.contact-select option { background: #fff; color: var(--hm-bg); }

.contact-submit { width: 100%; margin-top: 4px; }
.contact-submit:disabled { opacity: .65; cursor: default; }
.contact-form-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: #6a6a76;
    text-align: center;
}

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Errors — on the white card, so darker reds for contrast. */
.contact-err { margin: 6px 0 0; font-size: 13px; color: #d92d2d; }
.contact-form .auth-input.is-invalid { border-color: #d92d2d; }
.contact-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 45, 45, .3);
    border-radius: 10px;
    background: rgba(217, 45, 45, .07);
    color: #b02121;
    font-size: 14px;
}

/* Success panel (replaces the form after a send).
   The swap happens in JS without a reload, so these are the only moving parts:
   the form fades out, the panel fades in. */
.contact-form,
.contact-form-head { transition: opacity .2s ease, transform .2s ease; }
.contact-form.is-leaving,
.contact-form-head.is-leaving { opacity: 0; transform: translateY(-4px); }
/* JS hides these while the thank-you panel is up rather than removing them, so
   "Send another message" can bring the form back without a reload. */
.contact-form[hidden],
.contact-form-head[hidden] { display: none; }

.contact-sent { text-align: center; padding: 30px 22px; }
/* JS adds .is-entering before inserting, then .is-in on the next frame. The
   server-rendered panel (no-JS POST) has neither class, so it just shows. */
.contact-sent.is-entering {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}
.contact-sent.is-entering.is-in { opacity: 1; transform: none; }
/* Animated tick — same drawn circle + stroke as the auth pages and the
   thank-you page, sharing the auth-tick-draw keyframe. */
.contact-sent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--hm-primary);
    color: #fff;
}
.contact-sent-svg { width: 34px; height: 34px; display: block; }
.contact-sent-circle {
    stroke: rgba(255, 255, 255, .5);
    stroke-width: 2;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
}
.contact-sent-tick {
    stroke: #fff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}
/* Draw once the panel is in — on the JS path (.is-in) and the server-rendered
   one (no .is-entering at all, so it plays on load). */
.contact-sent.is-in .contact-sent-circle,
.contact-sent:not(.is-entering) .contact-sent-circle { animation: auth-tick-draw .5s ease-out .3s forwards; }
.contact-sent.is-in .contact-sent-tick,
.contact-sent:not(.is-entering) .contact-sent-tick { animation: auth-tick-draw .45s ease-out .55s forwards; }

@media (prefers-reduced-motion: reduce) {
    .contact-sent-circle,
    .contact-sent-tick { animation: none; stroke-dashoffset: 0; }
}
.contact-sent-title {
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--hm-bg);
    margin: 0 0 10px;
}
.contact-sent-text { font-size: 15px; line-height: 1.7; color: #5b5b66; margin: 0 0 20px; }
.contact-sent-again {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--hm-primary);
    text-decoration: none;
}
.contact-sent-again:hover { color: var(--hm-magenta); }

@media (max-width: 767px) {
    .contact-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Responsive ---------- */
/* The live layout gives the form a little more room on mid-size screens. */
@media (max-width: 1366px) {
    .contact-grid { grid-template-columns: 55fr 45fr; }
}
@media (max-width: 1024px) {
    .contact-main { padding: 60px 0; }
    .contact-grid { gap: 44px; }
    .contact-title { font-size: 30px; }
}
@media (max-width: 767px) {
    .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .contact-title { font-size: 26px; }
    .contact-form-wrap { padding: 26px 22px; }
}

/* ==========================================================================
   Single product page (PDP)
   ========================================================================== */
/* PDP uses a LIGHT theme (white background, dark text). */
.pdp { background: #fff; color: #3a3a44; padding: 40px 0 90px; }

/* Breadcrumb */
.pdp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6a6a76;
    margin-bottom: 30px;
}
.pdp-breadcrumb a { color: #6a6a76; text-decoration: none; }
.pdp-breadcrumb a:hover { color: var(--hm-primary); }
.pdp-breadcrumb-current { color: var(--hm-primary); font-weight: 600; }

/* Top: gallery + summary */
.pdp-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

/* ---- Gallery ---- */
.pdp-gallery-main {
    position: relative;
    background: radial-gradient(ellipse at center, #555555 0%, #404050 40%, #2a2a45 70%, #1f1f3a 100%);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity .2s ease; }

/* Overlay icons on the featured image: wishlist (top-left) + fullscreen (top-right) */
.pdp-gallery-icon {
    position: absolute;
    top: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--hm-bg);
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    transition: background .2s ease, color .2s ease, transform .15s ease;
}
.pdp-gallery-icon:hover { transform: scale(1.08); background: #fff; color: var(--hm-primary); }
.pdp-gallery-wishlist { left: 16px; }
.pdp-gallery-fullscreen { right: 16px; }
.pdp-gallery-wishlist.is-active,
.pdp-gallery-wishlist.is-saved { background: var(--hm-magenta); color: #fff; }

/* Image counter (e.g. "3/10") — bottom-right of the featured image */
.pdp-gallery-counter {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(14, 6, 23, .6);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1;
    backdrop-filter: blur(2px);
}

/* Thumbnails: single horizontal, scrollable row */
.pdp-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: #c7c7d2 transparent;
    -webkit-overflow-scrolling: touch;
}
.pdp-thumbs::-webkit-scrollbar { height: 6px; }
.pdp-thumbs::-webkit-scrollbar-track { background: transparent; }
.pdp-thumbs::-webkit-scrollbar-thumb { background: #c7c7d2; border-radius: 3px; }
.pdp-thumb {
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    padding: 8px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: radial-gradient(ellipse at center, #555555 0%, #404050 40%, #2a2a45 70%, #1f1f3a 100%);
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    overflow: hidden;
    opacity: .55;                 /* inactive = dimmed */
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp-thumb:hover { transform: translateY(-2px); opacity: .85; }
.pdp-thumb.is-active {
    opacity: 1;                    /* active = full opacity ... */
    border-color: var(--hm-primary);
    box-shadow: 0 0 0 2px rgba(148,35,255,.35);   /* ...+ purple ring for clear distinction */
}

/* Fullscreen lightbox */
.pdp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3100;   /* above the mini-cart drawer (3000) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(8,4,16,.92);
    opacity: 0;
    transition: opacity .25s ease;
}
.pdp-lightbox:not([hidden]) { opacity: 1; }
.pdp-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.pdp-lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}
.pdp-lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ---- Summary ---- */
.pdp-eyebrow {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hm-primary);
    text-decoration: none;
    margin-bottom: 12px;
}
.pdp-eyebrow:hover { color: var(--hm-magenta); }
.pdp-title {
    font-family: "Montserrat", sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--hm-bg);
    margin-bottom: 14px;
}
.pdp-price {
    font-family: "Montserrat", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--hm-primary);
    margin-bottom: 8px;
    min-height: 34px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.pdp-price-from { color: #6a6a76; font-weight: 600; }
.pdp-price-regular { font-size: 18px; font-weight: 500; color: #8a8a99; text-decoration: line-through; }
.pdp-price-sale { color: var(--hm-magenta); }
.pdp-sale-badge {
    background: var(--hm-magenta);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 4px 10px;
    border-radius: 20px;
}
.pdp-sku {
    font-size: 13px;
    color: #6a6a76;
    margin-bottom: 18px;
    letter-spacing: .02em;
}
.pdp-short {
    color: #4a4a55;
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid #e6e6ec;
}
.pdp-short h3 {
    font-family: "Montserrat", sans-serif;
    color: var(--hm-bg);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}
.pdp-short p { margin-bottom: 16px; }
.pdp-short p:last-child { margin-bottom: 0; }
.pdp-short ul { margin: 0 0 16px; padding-left: 20px; }
.pdp-short li { margin-bottom: 8px; }
.pdp-short strong { color: var(--hm-bg); }

/* Variant attribute (color swatches) */
.pdp-attr { margin-bottom: 26px; }
.pdp-attr-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}
.pdp-attr-label {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: var(--hm-bg);
    font-size: 15px;
}
.pdp-attr-selected { color: #6a6a76; font-size: 14px; }

.pdp-attr-select {
    width: 100%;
    max-width: 340px;
    padding: 11px 38px 11px 14px;
    border: 1px solid #d8d8de;
    border-radius: 8px;
    font-size: 15px;
    color: var(--hm-bg);
    cursor: pointer;
    /* Safari keeps the NATIVE control unless appearance is stripped — strip it
       and draw our own chevron so every browser shows the same select. */
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%230E0617' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E") no-repeat right 14px center / 11px;
}
.pdp-attr-select:focus { outline: 2px solid var(--hm-accent, #b91c1c); outline-offset: 1px; }
.pdp-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-swatch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
    border: 1.5px solid #dcdce4;
    background: #fff;
    color: #3a3a44;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.pdp-swatch:hover { transform: translateY(-1px); border-color: rgba(148,35,255,.55); }
.pdp-swatch-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--swatch, #ccc);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
    flex: 0 0 auto;
}
.pdp-swatch.is-selected {
    border-color: var(--hm-primary);
    background: rgba(148,35,255,.08);
    color: var(--hm-bg);
}

/* Buy row: qty + add to cart */
.pdp-buy {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 26px;
}
.pdp-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #dcdce4;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.pdp-qty-btn {
    width: 44px;
    height: 52px;
    border: none;
    background: transparent;
    color: var(--hm-bg);
    font-size: 20px;
    cursor: pointer;
    transition: background .2s ease;
}
.pdp-qty-btn:hover { background: rgba(148,35,255,.1); }
.pdp-qty-input {
    width: 54px;
    height: 52px;
    border: none;
    background: transparent;
    color: var(--hm-bg);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    -moz-appearance: textfield;
}
.pdp-qty-input::-webkit-outer-spin-button,
.pdp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-addtocart {
    flex: 1 1 auto;
    min-width: 200px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}
.pdp-addtocart:disabled { opacity: .5; cursor: not-allowed; }
.pdp-addtocart.is-added { background: var(--hm-green); color: #06231a; }

/* Meta list */
.pdp-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #6a6a76;
}
.pdp-meta span { color: var(--hm-bg); font-weight: 600; margin-right: 4px; }
.pdp-meta a { color: #6a6a76; text-decoration: none; }
.pdp-meta a:hover { color: var(--hm-primary); }

/* ---- Trust badges (above the tabs) ---- */
.pdp-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    padding: 34px 20px;
}
.pdp-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}
.pdp-trust-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    color: var(--hm-primary);
    font-size: 24px;
}
.pdp-trust-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--hm-bg);
}
.pdp-trust-text { color: #6a6a76; font-size: 13px; line-height: 1.5; }

@media (max-width: 767px) {
    .pdp-trust { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- Details tabs (in a soft shadow-lift card) ---- */
.pdp-details {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #f0f0f5;
    border-radius: 16px;
    padding: 12px 40px 40px;
    box-shadow: 0 10px 40px rgba(20, 10, 40, .06);
}
.pdp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid #e6e6ec;
    margin-bottom: 30px;
}
.pdp-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6a6a76;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 18px;
    cursor: pointer;
    margin-bottom: -1px;
    transition: color .2s ease, border-color .2s ease;
}
.pdp-tab:hover { color: var(--hm-bg); }
.pdp-tab.is-active { color: var(--hm-bg); border-bottom-color: var(--hm-primary); }

.pdp-panel { display: none; }
.pdp-panel.is-active { display: block; }

/* Section titles inside the Description tab (Product Description / Benefits / Delivery) */
.pdp-section-title {
    font-family: "Montserrat", sans-serif;
    color: var(--hm-bg);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
}
.pdp-section-title + .pdp-rich,
.pdp-section-title + .pdp-rich--list { margin-top: 0; }
.pdp-rich + .pdp-section-title,
.pdp-rich--list + .pdp-section-title,
.pdp-delivery-note + .pdp-section-title { margin-top: 36px; }

.pdp-rich { color: #4a4a55; font-size: 16px; line-height: 1.75; max-width: 60rem; }
.pdp-rich h3 {
    font-family: "Montserrat", sans-serif;
    color: var(--hm-bg);
    font-size: 18px;
    font-weight: 700;
    margin: 26px 0 12px;
}
.pdp-rich p { margin-bottom: 16px; }
.pdp-rich ul { margin: 0 0 16px; padding-left: 20px; }
.pdp-rich li { margin-bottom: 8px; }
.pdp-rich strong { color: var(--hm-bg); }
.pdp-rich--list { padding-left: 20px; margin: 0 0 16px; }
.pdp-rich--list li { margin-bottom: 8px; }
.pdp-delivery-note { color: #6a6a76; font-size: 14px; margin: 4px 0 0; }

/* Extra spec lines (unlabeled items + notes) under the specification table */
.pdp-specs-extra { margin-top: 18px; max-width: 640px; color: #4a4a55; }

/* Technicals tab CTA (live: purple underlined link to the technical PDF) */
.pdp-tech-cta { color: #4a4a55; margin: 8px 0 0; }
.pdp-tech-cta a { color: var(--hm-primary); text-decoration: underline; }
.pdp-tech-cta a:hover { color: var(--hm-magenta); }

.pdp-specs { width: 100%; max-width: 640px; border-collapse: collapse; }
.pdp-specs th, .pdp-specs td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e6e6ec;
    font-size: 15px;
}
.pdp-specs th { color: var(--hm-bg); font-weight: 700; width: 40%; vertical-align: top; }
.pdp-specs td { color: #4a4a55; }

/* FAQ accordion (matches the live product FAQ shortcode) */
.pdp-faqs { max-width: 800px; margin: 0 auto; }   /* centered to align with the questions CTA below */
.pdp-faqs-empty { color: #6a6a76; font-size: 15px; margin: 0; padding: 8px 0; }
.pdp-faq-item { border-bottom: 1px solid #e5e5e5; }
.pdp-faq-item:last-child { border-bottom: none; }
.pdp-faq-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #333;
    transition: color .3s ease;
}
.pdp-faq-header:hover { color: var(--hm-primary); }
.pdp-faq-item.is-active .pdp-faq-header { color: var(--hm-primary); }
.pdp-faq-header span:first-child { flex: 1; padding-right: 15px; }
.pdp-faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    color: var(--hm-primary);
    border: 1px solid var(--hm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: transform .3s ease;
    flex-shrink: 0;
}
.pdp-faq-item.is-active .pdp-faq-icon { transform: rotate(45deg); }
.pdp-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding-bottom .4s ease;
    color: #666;
    line-height: 1.6;
    padding-bottom: 0;
}
.pdp-faq-item.is-active .pdp-faq-content { max-height: 500px; padding-bottom: 20px; }
.pdp-faq-content p { margin: 0; font-size: 16px; line-height: 1.6; }

/* "Still have questions?" CTA (below the FAQ accordion).
   Mirrors the live Elementor block: a ROUNDED GRADIENT CARD (the same
   `linear-gradient(90deg,#0F0617,#8120EF)` + 30px radius used by the other page
   CTAs), white centered content, 80px round avatars with a 4px white border,
   Poppins heading, and a purple→magenta button that GROWS on hover
   (Elementor's .elementor-animation-grow: transform scale(1.1), .3s). */
.hm-questions-cta {
    max-width: 800px;
    margin: 48px auto 0;
    text-align: center;
    background: var(--hm-grad-cta);
    border-radius: 30px;
    padding: 54px 40px;
}
.hm-questions-avatars {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}
.hm-questions-avatars img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.hm-questions-avatars img + img { margin-left: -22px; }   /* overlapping stack */
.hm-questions-title {
    font-family: "Poppins", "Montserrat", sans-serif;
    font-size: 31px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}
.hm-questions-text {
    color: rgba(255,255,255,.85);
    font-size: 16px;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 24px;
}
/* Button reuses .btn-hm-solid (purple→magenta). Add the live grow-on-hover. */
.hm-questions-btn {
    display: inline-flex;
    align-items: center;
    transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.hm-questions-btn:hover { transform: scale(1.1); }

@media (max-width: 767px) {
    .hm-questions-cta { padding: 40px 24px; border-radius: 22px; }
    .hm-questions-title { font-size: 26px; }
    .hm-questions-text { font-size: 14px; }
    .hm-questions-avatars img { width: 70px; height: 70px; }
}

@media (max-width: 767px) {
    .pdp-faq-header { padding: 18px 0; font-size: 16px; line-height: 1.4; gap: 10px; }
    .pdp-faq-header span:first-child { padding-right: 10px; }
    .pdp-faq-icon { width: 20px; height: 20px; font-size: 12px; }
    .pdp-faq-content { font-size: 14px; line-height: 1.5; }
    .pdp-faq-item.is-active .pdp-faq-content { max-height: 600px; padding-bottom: 18px; }
    .pdp-faq-content p { font-size: 14px; }
}

/* ---- Related ---- */
.pdp-related { margin-top: 80px; }
.pdp-related-title {
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--hm-bg);
    margin-bottom: 30px;
}
.pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}
/* PDP is a light section — reuse product-card's native light-section colors (no overrides). */

@media (max-width: 1024px) {
    /* minmax(0,1fr) — a plain 1fr track = minmax(auto,1fr), whose min-content can
       blow the track wider than the viewport (caused the mobile overflow). */
    .pdp-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .pdp-title { font-size: 28px; }
    .pdp-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    /* Keep qty + Add to cart on one row (qty natural width, button fills rest);
       only stack on very narrow screens where they'd cramp. */
    .pdp-buy { flex-wrap: nowrap; }
    .pdp-qty { flex: 0 0 auto; }
    .pdp-addtocart { flex: 1 1 auto; min-width: 0; }
    .pdp-related-grid { grid-template-columns: 1fr; }
    .pdp-title { font-size: 24px; }
    .pdp-details { padding: 8px 22px 30px; }
    .pdp-section-title { font-size: 20px; }
}
@media (max-width: 360px) {
    .pdp-buy { flex-direction: column; }
    .pdp-addtocart { width: 100%; }
}

/* ==========================================================================
   Cart page
   ========================================================================== */
.cart-section {
    background: #f4f6f9;   /* light canvas (from reference) */
    padding: 70px 0 90px;
}
.cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

/* ---- Left column ---- */
.cart-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(20, 10, 40, .06);
    padding: 26px 30px 30px;
}
.cart-card-title {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--hm-bg);
    margin: 0 0 6px;
}

/* Empty state */
.cart-empty {
    text-align: center;
    padding: 46px 20px 40px;
}
.cart-empty-img { width: 120px; height: auto; margin: 0 auto 18px; display: block; }
.cart-empty-title {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--hm-bg);
    margin: 0 0 6px;
}
.cart-empty-text { color: #7a7a86; font-size: 14px; margin: 0; }

/* Line items */
.cart-items { list-style: none; margin: 10px 0 0; padding: 0; }
.cart-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto auto 28px;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid #eef0f4;
}
.cart-item:first-child { border-top: none; }
.cart-item-thumb {
    width: 74px;
    height: 74px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #555 0%, #404050 40%, #2a2a45 70%, #1f1f3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-title {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-bg);
    margin: 0 0 3px;
    line-height: 1.3;
}
.cart-item-title a { color: inherit; text-decoration: none; }
.cart-item-title a:hover { color: var(--hm-primary); }
.cart-item-variant { font-size: 13px; color: #7a7a86; margin: 0 0 3px; }
.cart-item-price { font-size: 14px; color: var(--hm-primary); font-weight: 600; margin: 0; display: flex; align-items: baseline; gap: 8px; }
.cart-item-price-regular { color: #8a8a99; font-weight: 500; text-decoration: line-through; }
.cart-item-price-sale { color: var(--hm-magenta); }

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e2e2ea;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.cart-qty-btn {
    width: 34px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--hm-bg);
    font-size: 17px;
    cursor: pointer;
    transition: background .2s ease;
}
.cart-qty-btn:hover { background: rgba(148,35,255,.1); }
.cart-qty-input {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-bg);
    -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-item-total {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-bg);
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}
.cart-item-remove {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f2f2f6;
    color: #9a9aa6;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.cart-item-remove:hover { background: #ffe3e3; color: #e23b3b; }

/* Continue Shopping + Clear cart sit on one row, pushed apart. */
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cart-clear {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 22px; padding: 9px 16px;
    border: 1px solid #e2e2ea; border-radius: 10px; background: #fff;
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px;
    color: #8a8a96; cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
/* Destructive, so it only turns red on intent — quiet at rest. */
.cart-clear:hover { border-color: #ef4444; color: #ef4444; background: #fff5f5; }
.cart-clear[disabled] { opacity: .55; cursor: default; pointer-events: none; }
.cart-continue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--hm-bg);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease;
}
.cart-continue:hover { color: var(--hm-primary); }

/* ---- Right column: order summary ---- */
.cart-summary { position: sticky; top: 100px; }
.cart-summary-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(20, 10, 40, .06);
    padding: 26px 26px 24px;
}
.cart-summary-title {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--hm-bg);
    margin: 0 0 20px;
}
.cart-summary-lines { list-style: none; margin: 0; padding: 0 0 16px; border-bottom: 1px solid #eef0f4; }
.cart-summary-lines li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #6a6a76;
    margin-bottom: 14px;
}
.cart-summary-lines li:last-child { margin-bottom: 0; }
.cart-summary-val { color: var(--hm-bg); font-weight: 600; }
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 16px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: var(--hm-bg);
    font-size: 16px;
}
.cart-summary-total .cart-summary-val { font-size: 16px; }
.cart-summary-vat { font-size: 12px; color: #9a9aa6; text-align: right; margin: 4px 0 18px; }

.cart-coupon {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e2ea;
    border-radius: 10px;
    padding: 4px 4px 4px 14px;
}
.cart-coupon-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--hm-bg);
    outline: none;
    /* Coupon codes are always stored/matched uppercase (App\Models\Coupons::
       normalizeCode()) — show it uppercase while typing too, so what the
       customer sees matches what actually gets applied. */
    text-transform: uppercase;
}
.cart-coupon-input::placeholder { color: #9a9aa6; text-transform: none; }
/* Coupon state notes under the apply box (cart + checkout share these). */
.cart-coupon-error { margin: 8px 0 0; font-size: 13px; color: #b3261e; }
.cart-coupon-note  { margin: 8px 0 0; font-size: 13px; color: #4a7c59; }
.cart-coupon-apply {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: var(--hm-primary);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 12px;
    cursor: pointer;
}
.cart-coupon-apply:hover { color: var(--hm-magenta); }

.cart-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #e2e2ea;
    background: #f8f6fd;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--hm-bg);
}
.cart-coupon-applied strong { color: var(--hm-primary); }
.cart-coupon-remove {
    border: none;
    background: transparent;
    color: #9a9aa6;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 6px;
}
.cart-coupon-remove:hover { color: #a13a3a; }

/* ===== Shipping estimator ===== */
.cart-estimate {
    border-top: 1px dashed #e2e2ea;
    margin-top: 16px;
    padding-top: 16px;
}
.cart-estimate-head { margin-bottom: 8px; }
.cart-estimate-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 700 14px/1.2 Montserrat, sans-serif;
    color: var(--hm-bg);
}
.cart-estimate-title i { color: var(--hm-primary); }
.cart-estimate-prompt { font-size: 13px; color: #6a6a76; margin: 0 0 10px; }
.cart-estimate-toggle {
    border: none;
    background: transparent;
    color: var(--hm-primary);
    font: 700 13px/1.2 Montserrat, sans-serif;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}
.cart-estimate-toggle:hover { color: var(--hm-magenta); }

.cart-estimate-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.cart-field { display: flex; flex-direction: column; gap: 4px; }
.cart-field--full { grid-column: 1 / -1; }
.cart-field-label { font-size: 12px; font-weight: 600; color: #6a6a76; }
.cart-input {
    width: 100%;
    border: 1px solid #e2e2ea;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--hm-bg);
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.cart-input:focus { border-color: var(--hm-primary); box-shadow: 0 0 0 3px rgba(148,35,255,.12); }
.cart-input::placeholder { color: #9a9aa6; }
/* The estimator's country/state SELECTS (cart.js swaps the state input↔select
   with this same class) — Safari shows the native control unless appearance
   is stripped; our own chevron keeps all browsers identical. */
select.cart-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%230E0617' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px;
    padding-right: 38px;
    cursor: pointer;
}
.cart-estimate-submit { width: 100%; }
.cart-estimate-error { color: #c0392b; font-size: 12px; margin: 8px 0 0; }

/* Carrier options after an estimate — radio + rate per row */
.cart-estimate-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cart-ship-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e2e2ea;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--hm-bg);
    cursor: pointer;
    transition: border-color .2s ease;
}
.cart-ship-option:hover { border-color: var(--hm-primary); }
.cart-ship-option-label { display: inline-flex; align-items: center; gap: 8px; }
/* Brand-purple radio (matches .ck-shipping-option on checkout) — without this
   the native radio renders in the OS default (blue), off-brand. */
.cart-ship-option input[type="radio"] { margin: 0; }
.cart-ship-option-rate { font-weight: 700; white-space: nowrap; }

.cart-checkout {
    display: block;
    width: 100%;
    margin-top: 16px;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    padding: 14px 20px;
}
.cart-checkout.is-disabled { opacity: .5; pointer-events: none; }

@media (max-width: 1024px) {
    .cart-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .cart-summary { position: static; }
}
@media (max-width: 767px) {
    .cart-section { padding: 44px 0 60px; }
    .cart-card { padding: 22px 18px 26px; }
    .cart-item {
        grid-template-columns: 60px minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb info   remove"
            "thumb qtyrow qtyrow";
        row-gap: 12px;
        column-gap: 12px;
        align-items: center;
    }
    .cart-item-thumb { grid-area: thumb; width: 60px; height: 60px; align-self: start; }
    .cart-item-info { grid-area: info; min-width: 0; }
    .cart-item-remove { grid-area: remove; align-self: start; justify-self: end; }
    /* Second row: qty stepper (natural width) on the left, line total on the right. */
    .cart-item-qty {
        grid-area: qtyrow;
        justify-self: start;
        align-self: center;
    }
    .cart-item-total {
        grid-area: qtyrow;
        justify-self: end;
        align-self: center;
        text-align: right;
        min-width: 0;
    }
}

/* ==========================================================================
   Checkout page
   ========================================================================== */
.ck-section { background: #f4f6f9; padding: 56px 0 90px; }
/* Header grid MIRRORS .ck-grid (same columns + gap) so the trust badges align
   with the Your Items / summary column below. */
.ck-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: center;
    margin-bottom: 30px;
}
.ck-head-main { min-width: 0; }
.ck-title {
    font-family: "Montserrat", sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--hm-bg);
    margin: 0 0 6px;
}
.ck-subtitle { color: #7a7a86; font-size: 14px; margin: 0; }
.ck-login-prompt { color: #7a7a86; font-size: 14px; margin: 10px 0 0; }
.ck-login-prompt a { color: var(--hm-primary); font-weight: 700; text-decoration: none; }
.ck-login-prompt a:hover { color: var(--hm-magenta); text-decoration: underline; }
/* Signed-in confirmation in the checkout header. */
.ck-login-prompt--in { display: flex; align-items: center; gap: 8px; color: #3f7a52; }
.ck-login-prompt--in i { color: #10b981; }
.ck-login-prompt--in strong { color: var(--hm-bg); }

/* ---------- Saved addresses at checkout (signed-in customers) ----------
   Selectable cards, one list per address block (billing + shipping each get
   their own). Shown whenever the customer has at least one saved address of
   that type — never conditionally, so the control can't appear for one block
   and silently vanish for the other. */
.ck-saved { margin-bottom: 18px; }
.ck-saved-label {
    display: block; margin: 0 0 10px;
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px;
    color: var(--hm-bg); text-transform: capitalize;
}

/* The chosen address — the ONLY address markup inline on the page, so checkout
   is the same height with 2 saved addresses or 50. The list is in the drawer. */
.ck-chosen {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--hm-primary); border-radius: 12px;
    background: #faf6ff;
}
.ck-chosen[hidden] { display: none; }
.ck-chosen--new { border-color: #e2e2ea; border-style: dashed; background: #fbfbfd; }
.ck-chosen-icon {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(148,35,255,.10); color: var(--hm-primary); font-size: 13px;
}
.ck-chosen--new .ck-chosen-icon { background: #eceaf3; color: #6b6b78; }
.ck-chosen-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.ck-chosen-name {
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13.5px;
    color: var(--hm-bg);
}
.ck-chosen-lines { font-size: 12.5px; line-height: 1.5; color: #6b6b78; }
.ck-chosen-change {
    flex: 0 0 auto; align-self: center;
    border: 1px solid #e2e2ea; border-radius: 8px; background: #fff;
    padding: 7px 14px; cursor: pointer;
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 12.5px;
    color: var(--hm-primary);
    transition: border-color .18s ease, color .18s ease;
}
.ck-chosen-change:hover { border-color: var(--hm-primary); color: var(--hm-magenta); }

/* Address drawer — reuses the .ck-modal shell (fixed + backdrop). Safe to emit
   inline on checkout: no ancestor here is transformed, so position:fixed still
   resolves against the viewport. */
.ck-drawer .ck-modal-dialog { max-width: 620px; width: 100%; }
.ck-drawer-search { position: relative; margin-bottom: 14px; }
.ck-drawer-search i {
    position: absolute; top: 50%; left: 14px; transform: translateY(-50%);
    color: #a5a5b2; font-size: 13px; pointer-events: none;
}
.ck-drawer-search .ck-input { width: 100%; padding-left: 38px; }
/* Scrolls inside the dialog so a long list never grows the page. */
.ck-drawer-list {
    display: grid; grid-template-columns: 1fr; gap: 10px;
    max-height: min(52vh, 460px); overflow-y: auto;
    padding-right: 4px;
}
.ck-drawer-empty { margin: 14px 0 0; font-size: 13px; color: #9a9aa6; text-align: center; }
.ck-saved-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ck-saved-card {
    position: relative;
    display: flex; align-items: flex-start; gap: 10px;
    padding: 14px 38px 14px 14px;
    border: 1.5px solid #e2e2ea; border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ck-saved-card:hover { border-color: #c9b6e8; }
.ck-saved-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.ck-saved-card.is-selected {
    border-color: var(--hm-primary);
    background: #faf6ff;
    box-shadow: 0 0 0 3px rgba(148, 35, 255, .10);
}
.ck-saved-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ck-saved-card-name {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13.5px;
    color: var(--hm-bg);
}
.ck-saved-card-lines { font-size: 12.5px; line-height: 1.5; color: #6b6b78; }
/* Address nickname in the drawer list — leads the card when set. */
.ck-saved-nick { display: inline-flex; align-items: center; gap: 6px; color: var(--hm-primary); }
.ck-saved-nick i { font-size: 10px; }
/* Explains the drawer's ordering (default -> recently used -> never used). */
.ck-saved-used { display: block; margin-top: 4px; font-size: 11.5px; color: #9a9aa6; }
.ck-saved-badge {
    font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 999px;
    background: var(--hm-primary); color: #fff;
    white-space: nowrap;
}
/* An address offered from the OTHER book (a saved shipping address shown in the
   billing block, or vice versa) — muted, so it reads as provenance, not status. */
.ck-saved-badge--alt { background: #eceaf3; color: #6b6b78; }
/* Tick only appears on the selected card. */
.ck-saved-tick {
    position: absolute; top: 12px; right: 12px;
    width: 20px; height: 20px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hm-primary); color: #fff; font-size: 10px;
    opacity: 0; transform: scale(.7);
    transition: opacity .18s ease, transform .18s ease;
}
.ck-saved-card.is-selected .ck-saved-tick { opacity: 1; transform: scale(1); }
/* "Use a different address" reads as an action, not another saved address. */
.ck-saved-card--new { border-style: dashed; }
.ck-saved-card--new .ck-saved-card-name { color: var(--hm-primary); }
.ck-saved-edit {
    margin-top: 10px; padding: 0;
    border: none; background: transparent; cursor: pointer;
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px;
    color: var(--hm-primary);
    display: inline-flex; align-items: center; gap: 7px;
}
.ck-saved-edit:hover { color: var(--hm-magenta); text-decoration: underline; }
.ck-saved-edit[hidden] { display: none; }
@media (max-width: 640px) {
    .ck-saved-list { grid-template-columns: 1fr; }
    .ck-chosen { flex-wrap: wrap; }
    .ck-chosen-change { width: 100%; }
}
/* Locked account email at checkout (matches the account settings field). */
.ck-readonly-field { position: relative; }
.ck-readonly-field .ck-input { width: 100%; padding-right: 40px; background: #f2f3f7; color: #6b6b78; cursor: not-allowed; }
.ck-readonly-icon { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: #a5a5b2; font-size: 12px; pointer-events: none; }
.ck-field-note { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: #9a9aa6; margin: 8px 0 0; line-height: 1.45; }
.ck-field-note i { margin-top: 2px; color: #b0b0bb; }
.ck-field-note a { color: var(--hm-primary); font-weight: 700; text-decoration: none; }
.ck-field-note a:hover { text-decoration: underline; }

/* Header trust badges (right of the heading) */
.ck-head-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ck-head-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #6a6a76;
    white-space: nowrap;
}
.ck-head-trust-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(148, 35, 255, .08);
    color: var(--hm-primary);
    font-size: 13px;
}

.ck-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
}
/* Desktop: forms left; the right column (.ck-side) holds the summary + the
   Place Order button and is sticky AS ONE UNIT, so they scroll together. */
.ck-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ck-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.ck-actions { display: flex; flex-direction: column; gap: 12px; }

.ck-form-errors {
    background: #fdecec;
    border: 1px solid #f3b7b7;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 22px;
    color: #8a1f1f;
}
.ck-form-errors ul { margin: 0; padding-left: 18px; }
.ck-form-errors li { font-size: 0.9rem; line-height: 1.5; }

/* Cards */
.ck-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(20, 10, 40, .06);
    padding: 26px 28px;
}
.ck-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.ck-card-icon {
    flex: 0 0 auto;
    color: var(--hm-primary);
    font-size: 18px;
    margin-top: 2px;
}
.ck-card-title {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--hm-bg);
    margin: 0;
}
.ck-card-sub { color: #9a9aa6; font-size: 13px; margin: 3px 0 0; }

/* Form fields */
.ck-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.ck-field-row--three { grid-template-columns: 1fr 1fr 1fr; }
.ck-field { display: flex; flex-direction: column; }
/* Vertical spacing between STACKED form blocks only — scoped to direct children
   so inputs INSIDE a .ck-field-row (grid) aren't given a margin (that offset made
   First Name taller than Last Name). Rows space via their own grid gap. */
.ck-profile-form > * + *,
.ck-pay-panel > * + *,
.pay-fields > * + * { margin-top: 14px; }
/* NOTE: no `.ck-field + .ck-field` margin — sibling .ck-field cells inside a
   .ck-field-row (grid) would get pushed down (misaligned Expiry vs CVC). Stacked
   .ck-field blocks are spaced by the `> * + *` rules above instead. */
.ck-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a4a55;
    margin-bottom: 6px;
}
.ck-label span { color: var(--hm-primary); }
.ck-input {
    width: 100%;
    border: 1px solid #e2e2ea;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 14px;
    color: var(--hm-bg);
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ck-input::placeholder { color: #9a9aa6; }
.ck-input:focus { border-color: var(--hm-primary); box-shadow: 0 0 0 3px rgba(148,35,255,.12); }
textarea.ck-textarea { resize: vertical; min-height: 80px; font-family: inherit; }

.ck-select-wrap { position: relative; }
.ck-select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.ck-select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9a9aa6;
    pointer-events: none;
}

/* Inline address form (billing details / shipping-if-different) */
.ck-address-form { display: flex; flex-direction: column; gap: 14px; }
/* The collapsible field wrapper is a single flex CHILD of .ck-address-form, so
   without its own flex+gap the rows inside it lose the 14px rhythm entirely.
   The explicit [hidden] rule is required: a display:flex declaration otherwise
   beats the UA's [hidden]{display:none} and the block would never collapse. */
.ck-address-fields { display: flex; flex-direction: column; gap: 14px; }
.ck-address-fields[hidden] { display: none; }
/* Breathing room between "Ship to a different address?" and its revealed
   fields — the billing block's own .ck-address-form sits right under a card
   header instead, so this margin is scoped to the checkbox-triggered panel. */
[data-ship-different-panel] { margin-top: 18px; }

/* Checkboxes */
.ck-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 14px;
    color: #4a4a55;
    cursor: pointer;
}
.ck-check input { width: 16px; height: 16px; cursor: pointer; }
/* Larger label for a card's own primary toggle (e.g. "Ship to a different
   address?") rather than a secondary option inside a card. */
.ck-check--lg { font-size: 15px; font-weight: 700; color: var(--hm-bg); margin-top: 0; }
/* Sub-label under a lone checkbox toggle (not a card-head title) — indented
   to align with the checkbox's own text, not the checkbox box itself. */
.ck-check-hint { margin: 4px 0 0 26px; }

/* Payment tabs */
.ck-pay-tabs {
    /* Flex (not a fixed 3-col grid) so the tabs always split the row evenly no
       matter how many render — a disabled gateway removes its tab, and the
       remaining 1 or 2 still share the full width equally. */
    display: flex;
    gap: 4px;
    background: #f2f3f7;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 20px;
}
.ck-pay-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    border: none;
    background: transparent;
    border-radius: 9px;
    padding: 11px 10px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #6a6a76;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.ck-pay-tab.is-active { background: #fff; color: var(--hm-bg); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.ck-pay-panel { display: none; }
.ck-pay-panel.is-active { display: block; }
.ck-pay-note { color: #6a6a76; font-size: 14px; line-height: 1.6; padding: 8px 0; margin: 0; }

.ck-accept {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 22px;
    color: #6a6a76;
}
.ck-accept-label {
    font-size: 13px;
    font-weight: 600;
    color: #000;
}
.ck-accept .fa-cc-visa { color: #1a1f71; }
.ck-accept .fa-cc-mastercard { color: #eb001b; }
.ck-accept .fa-cc-amex { color: #2e77bc; }

/* Wallet tab — Stripe Express Checkout Element (Apple Pay / Google Pay).
   The Element renders its own buttons inside #express-checkout-element; we just
   give it room and cap the width so the wallet buttons don't stretch full-bleed
   on wide viewports (matching the PayPal button's contained feel). */
.ck-wallet-buttons { margin-top: 8px; max-width: 420px; }
.ck-wallet-unavailable { color: #6a6a76; }
.ck-wallet-error,
.ck-paypal-error,
.ck-card-error {
    color: #c0392b;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0 0;
}

/* ---- Right column ---- */
.ck-summary-title { margin-bottom: 18px; }
/* Collapsible "Your Items" (native <details>/<summary>). */
.ck-items-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; user-select: none; }
.ck-items-summary::-webkit-details-marker { display: none; } /* hide default triangle (Safari/Chrome) */
.ck-items-summary::marker { content: ''; }
.ck-items-title { margin: 0; }
/* Pay page renders "Your Items" as a plain <h2> heading (not the checkout
   <details>/<summary> collapsible), so it needs its own bottom margin to sit
   off the item list — the collapsible spaces via .ck-items-card[open] .ck-items. */
h2.ck-items-title { margin-bottom: 18px; }
.ck-items-count { font-weight: 600; color: #9a9aa6; }
.ck-items-chevron { color: #9a9aa6; font-size: 13px; transition: transform .2s ease; }
.ck-items-card[open] .ck-items-chevron { transform: rotate(180deg); }
.ck-items-card[open] .ck-items { margin-top: 18px; } /* space list from the header only when expanded */
.ck-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ck-item { display: flex; gap: 12px; }
.ck-item-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #555 0%, #404050 40%, #2a2a45 70%, #1f1f3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}
.ck-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ck-item-info { flex: 1 1 auto; min-width: 0; }
.ck-item-top { display: flex; justify-content: space-between; gap: 8px; }
.ck-item-title {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--hm-bg);
    margin: 0;
    line-height: 1.3;
}
.ck-item-remove { flex: 0 0 auto; border: none; background: transparent; color: #b0b0bb; cursor: pointer; font-size: 13px; }
.ck-item-remove:hover { color: #e23b3b; }
.ck-item-variant { font-size: 12px; color: #7a7a86; margin: 4px 0 2px; display: flex; align-items: center; gap: 5px; }
.ck-item-swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--swatch, #ccc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); display: inline-block; vertical-align: middle; }
.ck-item-sku { font-size: 12px; color: #9a9aa6; margin: 0 0 8px; }
.ck-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ck-item-qty { display: inline-flex; align-items: center; border: 1px solid #e2e2ea; border-radius: 8px; overflow: hidden; }
.ck-qty-btn { width: 28px; height: 32px; border: none; background: transparent; color: var(--hm-bg); font-size: 15px; cursor: pointer; }
.ck-qty-btn:hover { background: rgba(148,35,255,.1); }
.ck-qty-input {
    width: 34px; height: 32px; border: none; background: transparent;
    text-align: center; font-size: 13px; font-weight: 700; color: var(--hm-bg);
    -moz-appearance: textfield;
}
.ck-qty-input::-webkit-outer-spin-button, .ck-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ck-item-total { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: var(--hm-bg); white-space: nowrap; }
/* Per-unit price on the pay page's item list (cost each, above the line total). */
.ck-item-unit { margin: 4px 0 6px; font-size: 12px; color: #8a8a96; }

/* Summary (reuses cart summary look) */
.ck-summary-lines { list-style: none; margin: 0; padding: 0 0 16px; border-bottom: 1px dashed #d8d8e2; }
.ck-summary-lines li { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #6a6a76; margin-bottom: 14px; }
.ck-summary-lines li:last-child { margin-bottom: 0; }
.ck-summary-val { color: var(--hm-bg); font-weight: 600; }
.ck-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 16px; color: var(--hm-bg); }
.ck-summary-grand { color: var(--hm-primary); font-size: 18px; }

/* Shipping service picker — populated by checkout.js once an address is saved */
.ck-shipping-options { list-style: none; margin: 12px 0 0; padding: 0 0 16px; border-bottom: 1px dashed #d8d8e2; display: flex; flex-direction: column; gap: 8px; }
.ck-shipping-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #e2e2ea; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--hm-bg); cursor: pointer; }
.ck-shipping-option:hover { border-color: var(--hm-primary); }
.ck-shipping-option-label { flex: 1 1 auto; display: flex; align-items: center; }
.ck-shipping-option-rate { font-weight: 700; white-space: nowrap; }
.ck-shipping-options-loading { font-size: 13px; color: #9a9aa6; padding: 4px 0 16px; }
.ck-shipping-unavailable { font-size: 13px; line-height: 1.4; color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px; padding: 10px 12px; margin: 4px 0 12px; }

/* International VAT & duty opt-in/out — shown only for tax-eligible
   destinations (checkout.js reveals it). Amber-accented like clearballistics'
   equivalent block, toned to humimic's palette. */
.ck-tax-choice { margin: 4px 0 16px; padding: 14px 16px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; }
.ck-tax-choice-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ck-tax-choice-title { margin: 0; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: #92400e; }
.ck-tax-choice-note { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: #78500f; }
.ck-tax-option { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid #e2e2ea; border-radius: 8px; padding: 10px 12px; cursor: pointer; margin-top: 8px; transition: border-color 0.15s; }
.ck-tax-option:first-of-type { margin-top: 0; }
.ck-tax-option:hover { border-color: #f59e0b; }
.ck-tax-option.is-selected { border-color: #f59e0b; box-shadow: 0 0 0 1px #f59e0b inset; }
.ck-tax-option input[type="radio"] { accent-color: #f59e0b; margin: 2px 0 0; flex: 0 0 auto; }
.ck-tax-option-body { display: flex; flex-direction: column; gap: 2px; }
.ck-tax-option-title { font-weight: 700; font-size: 13px; color: var(--hm-bg); }
.ck-tax-option-sub { font-size: 12px; color: #6a6a76; line-height: 1.4; }

/* Thank-you: "handled separately" tax note. */
.ty-tax-separate { font-weight: 600; color: #92400e; }
.ty-tax-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: #78500f; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 10px 12px; }
/* Tracking page: shown INSTEAD of the fulfillment timeline for an order that
   hasn't started one (purchase order / draft / quote / on hold). Informational
   amber, not the red `.ck-form-errors` a cancelled order still uses — waiting
   on payment is a normal state, not an error. */
.ty-track-note { font-size: 13.5px; line-height: 1.55; color: #78500f; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 12px 14px; }
.ck-coupon { display: flex; align-items: center; gap: 8px; border: 1px solid #e2e2ea; border-radius: 10px; padding: 4px 4px 4px 14px; }
.ck-coupon-input { flex: 1 1 auto; min-width: 0; border: none; background: transparent; font-size: 13px; color: var(--hm-bg); outline: none; text-transform: uppercase; }
.ck-coupon-input::placeholder { color: #9a9aa6; text-transform: none; }
.ck-coupon-apply { flex: 0 0 auto; border: none; background: transparent; color: var(--hm-primary); font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px; padding: 8px 12px; cursor: pointer; }
.ck-coupon-apply:hover { color: var(--hm-magenta); }
.ck-coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #e2e2ea; background: #f8f6fd; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--hm-bg); }
.ck-coupon-applied strong { color: var(--hm-primary); }
.ck-coupon-remove { border: none; background: transparent; color: #9a9aa6; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 4px 6px; }
.ck-coupon-remove:hover { color: #a13a3a; }

.ck-place-order { display: block; width: 100%; text-align: center; font-family: "Montserrat", sans-serif; font-weight: 700; padding: 14px 20px; }

/* ---- Pay page (payment link) polish ---- */
/* Give the Pay button breathing room from the method list + errors. */
.pay-submit { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pay-secure-note { margin: 12px 0 0; font-size: 12px; color: #8a8a96; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pay-secure-note i { color: #16a34a; }

/* Method list — stacked radio rows (the checkout keeps its tabs). Selection
   is pure CSS on the row's own radio via :has(), so the rows read correctly
   even before pay.js wires the shared button. */
.pay-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-method { border: 1px solid #e2e2ea; border-radius: 12px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.pay-method:has(> .pay-method-input:checked) { border-color: var(--hm-primary); box-shadow: 0 0 0 1px var(--hm-primary); }
.pay-method:has(> .pay-method-input:focus-visible) { outline: 2px solid var(--hm-primary); outline-offset: 2px; }
/* The real radio stays in the tree (keyboard/AT) but the row draws its own. */
.pay-method-input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; }
.pay-method-head::before {
    content: "";
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #c9c9d6;
    background: #fff;
    transition: border-color .15s ease, border-width .15s ease;
}
.pay-method:has(> .pay-method-input:checked) > .pay-method-head::before { border: 5px solid var(--hm-primary); }
.pay-method-name { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 14px; color: var(--hm-bg); }
.pay-method-aside { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 22px; color: #9a9aa6; }
.pay-method-aside .fa-cc-visa { color: #1a1f71; }
.pay-method-aside .fa-cc-mastercard { color: #eb001b; }
.pay-method-aside .fa-cc-amex { color: #2e77bc; }
.pay-method-aside .fa-cc-discover { color: #f68121; }
.pay-method-aside .fa-cc-jcb { color: #0e4c96; }
.pay-method-aside .fa-paypal { color: #003087; }
.pay-method-aside .fa-apple-pay { color: var(--hm-bg); }
.pay-method-aside .fa-google-pay { color: #5f6368; }
.pay-method-body { display: none; padding: 2px 18px 18px; }
.pay-method:has(> .pay-method-input:checked) > .pay-method-body { display: block; }
.pay-method-body > * + * { margin-top: 14px; }
/* Small card glyph inside the number field, like the live page. */
.pay-card-numwrap { position: relative; display: block; }
.pay-card-numwrap .ck-input { padding-right: 44px; }
.pay-card-numicon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #9a9aa6; pointer-events: none; }
/* Trust row under the button — one centred dotted line. */
.pay-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; margin: 14px 0 0; padding: 0; font-size: 12px; color: #8a8a96; }
.pay-trust li { display: inline-flex; align-items: center; gap: 6px; }
.pay-trust li + li::before { content: "\00B7"; margin-right: 14px; color: #c9c9d6; }
.pay-trust i { color: var(--hm-primary); font-size: 12px; }
/* Items card head with the read-only count chip. */
.ck-items-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ck-items-head .ck-items-title { margin-bottom: 0; }
.pay-items-count { font-size: 12px; font-weight: 600; color: #8a8a96; }
/* "via UPS 2 Day Air" under the shipping amount — top-align the label so the
   two-line value doesn't float it (scoped: checkout keeps centred rows). */
.pay-section .ck-summary-lines li { align-items: flex-start; }
/* The via line is wider than the amount, so the value box grows — keep the
   AMOUNT flush right inside it, in line with the other rows' figures. */
.pay-section .ck-summary-val { text-align: right; }
.ck-summary-via { display: block; font-size: 11px; font-weight: 500; color: #9a9aa6; text-align: right; margin-top: 2px; }
@media (max-width: 480px) {
    .pay-method-aside { font-size: 18px; gap: 5px; }
}
/* Qty badge on the pay page (read-only — customer can't change an existing order). */
.ck-item-qty-badge { font-size: 12px; font-weight: 700; color: var(--hm-bg); background: #f2edfb; border: 1px solid #e4d6ff; border-radius: 999px; padding: 3px 10px; }
/* Review-details card: contact + billing + shipping so the customer verifies. */
.pay-review-card { margin-bottom: 20px; }
/* Space the card title from the first block so CONTACT doesn't hug the heading. */
.pay-review-card .ck-card-title { margin-bottom: 6px; }
.pay-review-block { padding: 14px 0; border-bottom: 1px solid #efedf4; }
.pay-review-block:first-of-type { padding-top: 14px; }
.pay-review-block:last-of-type { border-bottom: 0; }
.pay-review-label { display: flex; align-items: center; gap: 7px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #8a8a96; margin-bottom: 8px; }
.pay-review-label i { color: var(--hm-primary); }
.pay-review-text { margin: 0; font-size: 13px; line-height: 1.55; color: var(--hm-bg); }
.pay-review-muted { color: #8a8a96; }
.pay-review-help { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #efedf4; font-size: 12px; color: #8a8a96; }
/* Links on the light pay-card surface follow the brand accent pattern
   (primary → magenta on hover), matching .btn-hm-solid / .hm-bento-link — not
   the dark-chrome global blue→cyan, which reads wrong on white. */
.pay-review-text a, .pay-review-help a,
.pay-section .ck-card-sub a,
.pay-section .ck-pay-note a { color: var(--hm-primary); font-weight: 600; }
.pay-review-text a:hover, .pay-review-help a:hover,
.pay-section .ck-card-sub a:hover,
.pay-section .ck-pay-note a:hover { color: var(--hm-magenta); }
.ck-continue-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e2ea;
    border-radius: 10px;
    color: var(--hm-bg);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 20px;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.ck-continue-btn:hover { border-color: var(--hm-primary); color: var(--hm-primary); }

/* ---- Address modals ---- */
.ck-modal {
    position: fixed;
    inset: 0;
    z-index: 3100;   /* above the mini-cart drawer (3000) — a modal always wins */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.ck-modal[hidden] { display: none; }
.ck-modal-backdrop { position: absolute; inset: 0; background: rgba(8,4,16,.55); backdrop-filter: blur(2px); }
.ck-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 34px 36px 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.ck-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1px solid #e2e2ea;
    border-radius: 50%;
    background: #fff;
    color: #6a6a76;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.ck-modal-close:hover { background: #f2f2f6; color: var(--hm-bg); }
.ck-modal-title { font-family: "Montserrat", sans-serif; font-size: 20px; font-weight: 700; color: var(--hm-bg); margin: 0 0 6px; }
.ck-modal-sub { color: #7a7a86; font-size: 14px; margin: 0 0 22px; }
.ck-modal-form > * + * { margin-top: 16px; }   /* 16px between stacked modal rows */
/* "This is your default …" — shown in place of the default checkbox when the
   address being edited already IS the default for its type. */
.ck-modal-note {
    display: flex; align-items: center; gap: 8px;
    margin: 16px 0 0;
    font-size: 13px; color: #4b4b57;
}
.ck-modal-note i { color: var(--hm-primary); }
.ck-modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 26px; }
.ck-modal-cancel { border: none; background: transparent; color: var(--hm-bg); font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; }
.ck-modal-cancel:hover { color: var(--hm-primary); }
.ck-modal-save { padding: 11px 22px; font-family: "Montserrat", sans-serif; font-weight: 700; }

@media (max-width: 1024px) {
    .ck-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    /* Single-column (mobile/tablet): standard e-commerce order —
       1) Your Items + Order Summary (what/how much),
       2) the forms ending in Payment Method,
       3) the Place Order button LAST (right after payment, never before it).
       .ck-side becomes display:contents so its children (items card, summary
       card, actions) join the grid flow and can be ordered independently — this
       is what lets the button drop below the forms while the summary leads. */
    .ck-side { display: contents; }
    .ck-side > .ck-card { order: 1; }   /* items (details) + summary cards lead */
    .ck-main { order: 2; }              /* forms + payment */
    .ck-actions { order: 3; }           /* Place Order last */
    /* Badges drop below the heading and go horizontal (single column stack). */
    .ck-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
    .ck-head-trust { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; }
}
@media (max-width: 767px) {
    .ck-section { padding: 40px 0 60px; }
    .ck-title { font-size: 26px; }
    .ck-card { padding: 22px 18px; }
    .ck-field-row, .ck-field-row--three { grid-template-columns: 1fr; }
    .ck-pay-tab { font-size: 12px; padding: 10px 6px; gap: 5px; }
    .ck-modal-dialog { padding: 28px 20px 24px; }
}

/* ==========================================================================
   Auth (login / register) — split screen
   ========================================================================== */
.auth-body { background: #fff; }
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
.auth-pane { min-height: 100vh; }

/* Left: form */
.auth-pane--form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #fff;
}
.auth-form-wrap { width: 100%; max-width: 380px; }
.auth-logo { display: inline-block; margin-bottom: 44px; }
.auth-logo img { height: 40px; width: auto; display: block; }

.auth-title {
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--hm-bg);
    margin: 0 0 10px;
}
.auth-wave { -webkit-text-fill-color: initial; }
.auth-sub { color: #6a6a76; font-size: 14px; margin: 0 0 34px; }

.auth-field { margin-bottom: 18px; }
.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--hm-bg);
    margin-bottom: 8px;
}
.auth-label span { color: var(--hm-primary); margin-left: 2px; }
.auth-input {
    width: 100%;
    border: 1px solid #e2e2ea;
    border-radius: 10px;
    padding: 14px 15px;
    font-size: 14px;
    color: var(--hm-bg);
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-input::placeholder { color: #9a9aa6; }
.auth-input:focus { border-color: var(--hm-primary); box-shadow: 0 0 0 3px rgba(148,35,255,.12); }

.auth-password { position: relative; }
.auth-password .auth-input { padding-right: 46px; }
.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9a9aa6;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.auth-password-toggle:hover { color: var(--hm-bg); }

.auth-forgot {
    display: inline-block;
    color: var(--hm-bg);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    margin: 4px 0 24px;
}
.auth-forgot:hover { color: var(--hm-primary); }

.auth-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.auth-btn--primary { background: var(--hm-primary); color: #fff; }
.auth-btn--primary:hover { background: var(--hm-magenta); }
.auth-btn--google { background: #1a0e2e; color: #fff; margin-top: 0; text-decoration: none; transition: background-color .18s ease, box-shadow .18s ease; }
/* Brand hover, matching .btn-hm-ghost / the primary's purple family — the old
   var(--hm-bg) hover was near-invisible against the button's own dark fill. */
.auth-btn--google:hover { background: var(--hm-primary); color: #fff; box-shadow: 0 6px 18px rgba(148, 35, 255, .35); }
.auth-btn--google:focus-visible { outline: 2px solid var(--hm-blue); outline-offset: 2px; }
/* Dormant state (rendered as a disabled <button> until Google SSO is configured). */
.auth-btn--google:disabled { opacity: .55; cursor: not-allowed; }
.auth-btn--google:disabled:hover { background: #1a0e2e; box-shadow: none; }
.auth-google-icon { width: 20px; height: 20px; display: block; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: #9a9aa6;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e6e6ee;
}
.auth-newuser { text-align: left; color: #6a6a76; font-size: 14px; margin: 22px 0 0; }
.auth-newuser a { color: var(--hm-bg); font-weight: 700; text-decoration: underline; }
.auth-newuser a:hover { color: var(--hm-primary); }
/* Second cross-link line sits tight under the first (login ↔ reseller). */
.auth-newuser + .auth-newuser { margin-top: 8px; }

/* Reseller sign-in page — same quiet login frame, reseller words. */
.auth-eyebrow {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hm-primary);
    margin: 0 0 10px;
}
.auth-perks { list-style: none; margin: -18px 0 30px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.auth-perks li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: #4a4a55; }
.auth-perks i { color: var(--hm-primary); font-size: 14px; margin-top: 2px; }

/* Right: cover image */
.auth-pane--media {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px 0 0 24px;
}

@media (max-width: 1024px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-pane--media { display: none; }
    .auth-pane--form { min-height: 100vh; padding: 40px 24px; }
}

/* ---- Register: dark variant (image left, dark-purple form right) ---- */
.auth-body:has(.auth-split--dark) { background: var(--hm-bg); }
.auth-split--reverse .auth-pane--media-left { border-radius: 0 24px 24px 0; }
.auth-pane--form-dark {
    background: #150a26;   /* deep purple panel */
    padding: 48px 72px;    /* more horizontal breathing room in the wide panel */
}
/* Register content was cramped at 380px in the wide panel — give it more room
   and a bit more vertical rhythm. */
.auth-pane--form-dark .auth-form-wrap { max-width: 440px; }
.auth-pane--form-dark .auth-logo { margin-bottom: 34px; }
.auth-pane--form-dark .auth-title { margin-bottom: 12px; }
.auth-pane--form-dark .auth-sub { margin-bottom: 30px; }
.auth-pane--form-dark .auth-field { margin-bottom: 22px; }
.auth-pane--media-left {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.auth-title--light { color: #fff; }
.auth-sub--light { color: #b3aec2; }
.auth-label--light { color: #fff; }
.auth-input--dark {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.14);
    color: #fff;
}
.auth-input--dark::placeholder { color: #8c86a0; }
.auth-input--dark:focus { border-color: var(--hm-primary); box-shadow: 0 0 0 3px rgba(148,35,255,.2); }
/* The "I'm buying as" select (register, dark pane) — Safari shows the native
   control unless appearance is stripped; pale chevron for the dark input. */
select.auth-input--dark {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238c86a0' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px;
    padding-right: 38px;
    cursor: pointer;
}
/* The dropdown LIST inherits the select's colors on some platforms — keep the
   options readable regardless of the dark control above them. */
select.auth-input--dark option { background: #fff; color: var(--hm-bg); }
.auth-pane--form-dark .auth-password-toggle { color: #8c86a0; }
.auth-pane--form-dark .auth-password-toggle:hover { color: #fff; }

.auth-terms {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 24px;
    font-size: 14px;
    color: #cfc9dd;
    cursor: pointer;
}
.auth-terms input { width: 16px; height: 16px; cursor: pointer; }

.auth-divider--light { color: #8c86a0; }
.auth-divider--light::before,
.auth-divider--light::after { background: rgba(255,255,255,.14); }
.auth-newuser--light { color: #b3aec2; }
.auth-newuser--light a { color: #fff; }
.auth-newuser--light a:hover { color: var(--hm-primary); }

/* ---- Success modal (enhanced, animated checkmark) ---- */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 3100;   /* above the mini-cart drawer (3000) — a modal always wins */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-modal[hidden] { display: none; }
.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8,4,16,.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .3s ease;
}
.auth-modal.is-open .auth-modal-backdrop { opacity: 1; }
.auth-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 44px 36px 36px;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0,0,0,.4);
    /* Start state (held until .is-open animates it in) — prevents the first-frame
       flash + guarantees a clean replay each open. */
    opacity: 0;
    transform: translateY(16px) scale(.96);
    will-change: transform, opacity;
}
.auth-modal.is-open .auth-modal-dialog {
    animation: auth-modal-pop .38s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes auth-modal-pop {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #9a9aa6;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.auth-modal-close:hover { background: #f2f2f6; color: var(--hm-bg); }

/* Animated check: gradient badge with a soft ring pulse + a drawn-in tick.
   All animations are gated behind `.auth-modal.is-open` and hold their START
   state by default, so they play smoothly and replay cleanly every open. */
.auth-success-check {
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-grad-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(148,35,255,.35);
    position: relative;
    transform: scale(0);
    opacity: 0;
    will-change: transform, opacity;
}
.auth-modal.is-open .auth-success-check {
    animation: auth-check-pop .5s cubic-bezier(.34,1.56,.64,1) .1s forwards;
}
/* Expanding ring pulse behind the badge. */
.auth-success-check::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--hm-primary);
    opacity: 0;
}
.auth-modal.is-open .auth-success-check::after {
    animation: auth-check-ring 1.1s ease-out .5s forwards;
}
@keyframes auth-check-pop {
    0%   { transform: scale(0); opacity: 0; }
    55%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes auth-check-ring {
    0%   { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.55); opacity: 0; }
}
.auth-success-svg { width: 52px; height: 52px; }
.auth-success-circle {
    stroke: rgba(255,255,255,.4);
    stroke-width: 2;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
}
.auth-success-tick {
    stroke: #fff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}
.auth-modal.is-open .auth-success-circle { animation: auth-tick-draw .5s ease-out .35s forwards; }
.auth-modal.is-open .auth-success-tick   { animation: auth-tick-draw .45s ease-out .6s forwards; }
@keyframes auth-tick-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
    .auth-modal-dialog { opacity: 1; transform: none; }
    .auth-modal.is-open .auth-modal-dialog,
    .auth-modal.is-open .auth-success-check,
    .auth-modal.is-open .auth-success-check::after,
    .auth-modal.is-open .auth-success-circle,
    .auth-modal.is-open .auth-success-tick { animation: none; }
    .auth-success-check { opacity: 1; transform: none; }
    .auth-success-check::after { opacity: 0; }
    .auth-success-circle, .auth-success-tick { stroke-dashoffset: 0; }
}

.auth-success-title {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--hm-bg);
    margin: 0 0 8px;
}
.auth-success-text { color: #6a6a76; font-size: 14px; line-height: 1.5; margin: 0 0 24px; }
.auth-success-btn { text-decoration: none; }
/* Keep the label white on hover (it's an <a>, so guard against link-hover color). */
.auth-btn--primary,
.auth-btn--primary:hover,
.auth-btn--primary:focus { color: #fff; text-decoration: none; }

/* ---- Form-level auth feedback (login/register banners) ----
   Distinct from the inline field-level .auth-error below: these are full-width
   notices above the form. Readable on BOTH the light and dark auth panes. */
.auth-banner,
.auth-notice {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 13.5px; line-height: 1.5; border-radius: 10px;
    padding: 11px 14px; margin: 0 0 18px;
}
.auth-banner { background: rgba(226, 59, 59, .12); border: 1px solid rgba(226, 59, 59, .35); color: #e23b3b; }
.auth-notice { background: rgba(22, 163, 74, .12); border: 1px solid rgba(22, 163, 74, .35); color: #16a34a; }
.auth-banner i, .auth-notice i { margin-top: 2px; flex: 0 0 auto; }

/* ---- Reset password ---- */
.auth-error { color: #e23b3b; font-size: 13px; margin: 8px 0 0; }
.auth-input.is-invalid { border-color: #e23b3b; }
.auth-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(226,59,59,.15); }

/* ---- Forgot password ---- */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--hm-bg);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease, gap .2s ease;
}
.auth-back:hover { color: var(--hm-primary); gap: 11px; }

/* Sent-confirmation step: centered, left-aligned like the rest but with the check on top. */
.auth-step--sent .auth-btn { margin-top: 4px; }
.auth-resend { color: #6a6a76; font-size: 14px; margin: 20px 0 0; }
.auth-resend a { color: var(--hm-bg); font-weight: 700; text-decoration: underline; }
.auth-resend a:hover { color: var(--hm-primary); }
.auth-sent-email { color: var(--hm-bg); }

/* Inline (non-modal) animated check — plays when the sent step is activated.
   Left-aligned to match the form; smaller than the modal badge. */
.auth-success-check--inline {
    width: 72px;
    height: 72px;
    margin: 0 0 24px;   /* left-aligned, not centered */
}
.auth-success-check--inline .auth-success-svg { width: 42px; height: 42px; }
.auth-step--sent.is-active .auth-success-check--inline {
    animation: auth-check-pop .5s cubic-bezier(.34,1.56,.64,1) .1s forwards;
}
.auth-step--sent.is-active .auth-success-check--inline::after {
    animation: auth-check-ring 1.1s ease-out .5s forwards;
}
.auth-step--sent.is-active .auth-success-circle { animation: auth-tick-draw .5s ease-out .35s forwards; }
.auth-step--sent.is-active .auth-success-tick   { animation: auth-tick-draw .45s ease-out .6s forwards; }

@media (prefers-reduced-motion: reduce) {
    .auth-step--sent .auth-success-check--inline { opacity: 1; transform: none; }
    .auth-step--sent .auth-success-circle,
    .auth-step--sent .auth-success-tick { stroke-dashoffset: 0; }
}

@media (max-width: 1024px) {
    .auth-split--reverse .auth-pane--media-left { display: none; }
    .auth-pane--form-dark { min-height: 100vh; padding: 40px 24px; }
}

/* ==========================================================================
   404 — Page Not Found (split)
   ========================================================================== */
.nf-body { margin: 0; background: #fff; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.nf-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
.nf-pane { min-height: 100vh; }
.nf-pane--content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #fff;
}
.nf-inner { width: 100%; max-width: 440px; }

/* 404 with ECG in the middle "0" */
.nf-code {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--hm-primary);
    line-height: 1;
    margin-bottom: 8px;
}
.nf-digit {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 150px;
    letter-spacing: -4px;
}
.nf-zero { width: 118px; height: 158px; display: inline-flex; align-items: center; justify-content: center; }
.nf-zero-svg { width: 100%; height: 100%; display: block; }
.nf-ecg {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: nf-ecg-draw 1.4s ease-out .2s forwards;
}
@keyframes nf-ecg-draw { to { stroke-dashoffset: 0; } }

.nf-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: var(--hm-bg);
    margin: 0 0 12px;
}
.nf-text { color: #6a6a76; font-size: 15px; line-height: 1.6; margin: 0 0 26px; max-width: 400px; }
/* Dev-only bad-request detail (hidden in production) */
.nf-detail {
    max-width: 400px;
    margin: 0 0 24px;
    padding: 12px 14px;
    background: #f4f6f9;
    border: 1px solid #e2e2ea;
    border-left: 3px solid var(--hm-primary);
    border-radius: 8px;
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #4b4b57;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
}
.nf-btn { display: inline-block; text-decoration: none; font-family: "Montserrat", sans-serif; font-weight: 700; padding: 13px 26px; }
.nf-btn:hover { color: #fff; text-decoration: none; }

/* Right: branded illustration */
.nf-pane--art { overflow: hidden; }
.nf-art-svg { width: 100%; height: 100%; display: block; }
.nf-art-ecg {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: nf-ecg-draw 2s ease-out .3s forwards;
}
/* Pulse dot fades in after the trace draws, then slowly blinks ("no signal"). */
.nf-art-dot {
    opacity: 0;
    animation: nf-dot-in .3s ease-out 2.2s forwards, nf-dot-blink 2.4s ease-in-out 2.6s infinite;
}
@keyframes nf-dot-in { to { opacity: 1; } }
@keyframes nf-dot-blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
    .nf-ecg, .nf-art-ecg { animation: none; stroke-dashoffset: 0; }
    .nf-art-dot { animation: none; opacity: 1; }
}

@media (max-width: 1024px) {
    .nf-split { grid-template-columns: 1fr; }
    .nf-pane--art { display: none; }
    .nf-pane--content { min-height: 100vh; }
}
@media (max-width: 480px) {
    .nf-digit { font-size: 108px; }
    .nf-zero { width: 86px; height: 116px; }
    .nf-title { font-size: 26px; }
}

/* ==========================================================================
   Slide-out mini-cart drawer
   ========================================================================== */
.hm-drawer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    visibility: hidden;
    pointer-events: none;
}
.hm-drawer.is-open { visibility: visible; pointer-events: auto; }
.hm-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8,4,16,.55);
    opacity: 0;
    transition: opacity .3s ease;
}
.hm-drawer.is-open .hm-drawer-backdrop { opacity: 1; }

.hm-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 400px;
    max-width: 100vw;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,.2);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.hm-drawer.is-open .hm-drawer-panel { transform: translateX(0); }

.hm-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #eef0f4;
}
.hm-drawer-title {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--hm-bg);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hm-drawer-count {
    background: var(--hm-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hm-drawer-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6a6a76;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s ease, color .2s ease;
}
.hm-drawer-close:hover { background: #f2f2f6; color: var(--hm-bg); }

/* Empty state */
.hm-drawer-empty {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    gap: 6px;
}
.hm-drawer-empty i { font-size: 40px; color: #d7dae2; margin-bottom: 10px; }
.hm-drawer-empty-title { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--hm-bg); margin: 0; }
.hm-drawer-empty-text { color: #7a7a86; font-size: 14px; margin: 0 0 14px; }

/* Items (scrollable) */
.hm-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 22px; }
.hm-drawer-items { list-style: none; margin: 0; padding: 0; }
.hm-drawer-item { display: flex; gap: 12px; padding: 18px 0; border-bottom: 1px solid #eef0f4; }
.hm-drawer-item:last-child { border-bottom: none; }
.hm-drawer-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #555 0%, #404050 40%, #2a2a45 70%, #1f1f3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}
.hm-drawer-thumb img { width: 100%; height: 100%; object-fit: contain; }
.hm-drawer-info { flex: 1 1 auto; min-width: 0; }
.hm-drawer-item-top { display: flex; justify-content: space-between; gap: 8px; }
.hm-drawer-item-title {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--hm-bg);
    line-height: 1.3;
    text-decoration: none;
}
.hm-drawer-item-title:hover { color: var(--hm-primary); }
.hm-drawer-remove { flex: 0 0 auto; border: none; background: transparent; color: #b0b0bb; cursor: pointer; font-size: 14px; }
.hm-drawer-remove:hover { color: #e23b3b; }
.hm-drawer-variant { font-size: 12px; color: #7a7a86; margin: 4px 0 8px; }
.hm-drawer-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.hm-drawer-qty { display: inline-flex; align-items: center; border: 1px solid #e2e2ea; border-radius: 8px; overflow: hidden; }
.hm-drawer-qty-btn { width: 28px; height: 30px; border: none; background: transparent; color: var(--hm-bg); font-size: 15px; cursor: pointer; }
.hm-drawer-qty-btn:hover { background: rgba(148,35,255,.1); }
.hm-drawer-qty-input {
    width: 34px; height: 30px; border: none; background: transparent;
    text-align: center; font-size: 13px; font-weight: 700; color: var(--hm-bg); -moz-appearance: textfield;
}
.hm-drawer-qty-input::-webkit-outer-spin-button,
.hm-drawer-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hm-drawer-line-total { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: var(--hm-bg); white-space: nowrap; }

/* Footer */
.hm-drawer-foot { flex: 0 0 auto; border-top: 1px solid #eef0f4; padding: 18px 22px 22px; }
.hm-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--hm-bg);
    margin-bottom: 4px;
}
.hm-drawer-subtotal-val { color: var(--hm-primary); }
.hm-drawer-note { color: #9a9aa6; font-size: 12px; margin: 0 0 14px; }
.hm-drawer-ctas { display: flex; flex-direction: column; gap: 10px; }
.hm-drawer-viewcart {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e2ea;
    border-radius: 10px;
    color: var(--hm-bg);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.hm-drawer-viewcart:hover { border-color: var(--hm-primary); color: var(--hm-primary); }
.hm-drawer-checkout { display: block; width: 100%; text-align: center; font-family: "Montserrat", sans-serif; font-weight: 700; padding: 13px 20px; text-decoration: none; }
.hm-drawer-checkout:hover { color: #fff; }

@media (max-width: 480px) {
    .hm-drawer-panel { width: 100vw; }
}

/* ==========================================================================
   Account dashboard
   ========================================================================== */
.acct-section { background: #f4f6f9; padding: 56px 0 90px; }
.acct-head { margin-bottom: 30px; }
.acct-title { font-family: "Montserrat", sans-serif; font-size: 34px; font-weight: 800; color: var(--hm-bg); margin: 0 0 6px; }
.acct-subtitle { color: #7a7a86; font-size: 14px; margin: 0; }

.acct-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

/* ---- Sidebar ---- */
.acct-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(20, 10, 40, .06);
    padding: 14px;
    position: sticky;
    top: 100px;
}
.acct-nav { display: flex; flex-direction: column; gap: 2px; }
/* Logout is a POST form (can't be a GET link) — reset the button/form so it
   renders exactly like the sibling nav links / dropdown items. */
.acct-logout-form, .hm-logout-form { margin: 0; display: block; width: 100%; }
button.acct-nav-item, button.hm-dropdown-item {
    width: 100%; background: none; border: 0; cursor: pointer;
    font: inherit; text-align: left;
}
.acct-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #4a4a55;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.acct-nav-item i { width: 18px; text-align: center; font-size: 15px; color: #9a9aa6; transition: color .15s ease; }
.acct-nav-item:hover { background: #f4f4f8; color: var(--hm-bg); }
.acct-nav-item:hover i { color: var(--hm-primary); }
.acct-nav-item.is-active {
    background: var(--hm-primary);
    color: #fff;
}
.acct-nav-item.is-active i { color: #fff; }
.acct-nav-divider { border: none; border-top: 1px solid #eef0f4; margin: 8px 6px; }

/* ---- Content ---- */
.acct-content { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* Stats summary row (leads) */
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.acct-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(20, 10, 40, .06);
    padding: 20px 22px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
a.acct-stat:hover { transform: translateY(-2px); box-shadow: 0 14px 46px rgba(20,10,40,.1); }
.acct-stat-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--hm-primary);
    background: rgba(148, 35, 255, .08);
}
.acct-stat-body { display: flex; flex-direction: column; }
.acct-stat-value { font-family: "Montserrat", sans-serif; font-size: 22px; font-weight: 800; color: var(--hm-bg); line-height: 1.1; }
.acct-stat-label { font-size: 12px; color: #7a7a86; margin-top: 2px; }

/* Cards */
.acct-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(20, 10, 40, .06);
    padding: 26px 28px;
}
.acct-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}
/* Icon + title grouped together on the left (flex-start, not space-between —
   the address-card headers apply both classes to one element). */
.acct-card-head--stack { display: flex; align-items: flex-start; justify-content: flex-start; gap: 10px; }
.acct-card-icon { flex: 0 0 auto; color: var(--hm-primary); font-size: 16px; margin-top: 2px; }
.acct-card-title { font-family: "Montserrat", sans-serif; font-size: 17px; font-weight: 700; color: var(--hm-bg); margin: 0; }
.acct-card-sub { color: #9a9aa6; font-size: 13px; margin: 3px 0 0; }
.acct-edit-btn, .acct-viewall {
    /* inline-flex so this renders identically whether it's a <button> or an
       <a> — the dashboard's Edit is a link to the settings form. */
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid #e2e2ea;
    background: #fff;
    border-radius: 9px;
    padding: 7px 14px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--hm-bg);
    cursor: pointer;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.acct-edit-btn:hover, .acct-viewall:hover { border-color: var(--hm-primary); color: var(--hm-primary); }
.acct-viewall { border: none; color: var(--hm-primary); padding: 7px 4px; }

/* Profile */
.acct-profile { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid #eef0f4; margin-bottom: 22px; }
.acct-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #eef0f4;
    color: #9a9aa6;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.acct-profile-name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 16px; color: var(--hm-bg); }
.acct-profile-role { font-size: 13px; color: #9a9aa6; margin: 2px 0 8px; }
.acct-photo-btn {
    border: 1px solid #e2e2ea;
    background: #fff;
    border-radius: 8px;
    padding: 7px 14px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--hm-bg);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.acct-photo-btn:hover { border-color: var(--hm-primary); color: var(--hm-primary); }
/* Avatar upload isn't built — a quiet "coming soon" chip rather than a button
   that goes nowhere. Deliberately NOT interactive. */
.acct-photo-soon {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 999px;
    background: #f2f3f7; color: #8a8a96;
    font-size: 12px; font-weight: 600;
}
.acct-photo-soon i { font-size: 11px; }

.acct-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.acct-field { display: flex; flex-direction: column; gap: 4px; }
.acct-field-label { font-size: 13px; font-weight: 600; color: var(--hm-bg); }
.acct-field-value { font-size: 14px; color: #4a4a55; }
.acct-field-value.is-empty { color: #b0b0bb; font-style: italic; }

/* Empty boxes (addresses / orders) */
.acct-empty-box {
    background: #f2f3f7;
    border-radius: 12px;
    padding: 34px 24px;
    text-align: center;
}
.acct-empty-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: #e2e4ec; color: #8a8a96; font-size: 18px; margin-bottom: 14px;
}
.acct-empty-illus { display: inline-block; font-size: 40px; color: #c3c7d2; margin-bottom: 12px; }
.acct-empty-title { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--hm-bg); margin: 0 0 4px; }
.acct-empty-text { color: #7a7a86; font-size: 14px; max-width: 420px; margin: 0 auto 16px; line-height: 1.5; }
.acct-empty-link {
    border: none; background: transparent; cursor: pointer;
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: var(--hm-bg);
    display: inline-flex; align-items: center; gap: 8px;
    transition: color .2s ease, gap .2s ease;
}
.acct-empty-link:hover { color: var(--hm-primary); gap: 11px; }
.acct-empty-link i { font-size: 11px; }
.acct-empty-cta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.acct-empty-cta i { font-size: 11px; }
.acct-empty-cta:hover { color: #fff; }

/* Saved address cards */
.acct-address-list { display: flex; flex-direction: column; gap: 12px; }
.acct-address {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #e6e6ee;
    border-radius: 12px;
    padding: 16px 18px;
}
.acct-address-name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: var(--hm-bg); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.acct-address-default { background: rgba(148,35,255,.1); color: var(--hm-primary); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
/* NOT a saved address — derived from the customer's last order. Muted and
   worded so it can't be mistaken for a book entry (see _addresses.php). */
.acct-address-hint { background: #eceaf3; color: #6b6b78; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.acct-address--from-order { border-style: dashed; background: #fbfbfd; }
/* Long address books: search + "show all" collapse. */
.acct-address-search { position: relative; margin-bottom: 14px; }
.acct-address-search i { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: #a5a5b2; font-size: 13px; pointer-events: none; }
.acct-address-search .acct-input { width: 100%; padding-left: 38px; }
.acct-address-item[hidden] { display: none; }
.acct-address-empty { margin: 4px 0; font-size: 13px; color: #9a9aa6; text-align: center; }
.acct-address-more { align-self: flex-start; padding: 4px 0; }
.acct-address-more[hidden] { display: none; }
/* Address nickname — leads the card when set ("Anatomy Lab"). */
.acct-address-label { display: inline-flex; align-items: center; gap: 6px; color: var(--hm-primary); }
.acct-address-label i { font-size: 11px; }
.acct-address-lines { font-size: 14px; color: #4a4a55; line-height: 1.5; }
.acct-address-used { margin-top: 6px; font-size: 12px; color: #9a9aa6; }
.acct-address-actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; align-items: flex-end; }
.acct-link-btn { border: none; background: transparent; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--hm-primary); }
.acct-link-btn:hover { color: var(--hm-magenta); }
.acct-link-btn--danger { color: #b0b0bb; }
.acct-link-btn--danger:hover { color: #e23b3b; }
/* Make-default / Remove are real POST forms — strip the form's own box so
   their buttons sit in the action column like the plain Edit button. */
.acct-inline-form { margin: 0; display: contents; }
.acct-add-address {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px dashed #cfcfe0; background: #fff;
    border-radius: 10px; padding: 11px 18px;
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: var(--hm-primary);
    cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.acct-add-address:hover { border-color: var(--hm-primary); background: rgba(148,35,255,.04); }

/* Recent orders list */
.acct-orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.acct-order {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr) auto auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #eef0f4;
}
.acct-order:first-child { border-top: none; }
.acct-order-thumb {
    width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
    background: radial-gradient(ellipse at center, #555 0%, #404050 40%, #2a2a45 70%, #1f1f3a 100%);
    display: flex; align-items: center; justify-content: center; padding: 6px;
}
.acct-order-thumb img { width: 100%; height: 100%; object-fit: contain; }
.acct-order-info { display: flex; flex-direction: column; min-width: 0; }
.acct-order-no { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: var(--hm-bg); }
.acct-order-meta { font-size: 13px; color: #9a9aa6; margin-top: 2px; }
.acct-order-status {
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: .4px;
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
/* Keyed on TONE, not on status code (App\Models\Orders::statusTone) — the same
   six tones the order-detail hero uses, so a badge and that order's hero always
   carry the same colour. Keying on the status code meant every new status
   needed its own rule, and the four that never got one (draft, quote,
   awaiting_payment, on_hold) rendered as unstyled grey text in the list. */
.acct-order-status.is-tone-brand   { background: #ede7ff; color: #6b39d6; }
.acct-order-status.is-tone-good    { background: #e3f7ec; color: #1e9e5a; }
.acct-order-status.is-tone-warn    { background: #fff3e0; color: #c77700; }
.acct-order-status.is-tone-bad     { background: #ffe3e3; color: #e23b3b; }
.acct-order-status.is-tone-info    { background: #e4f0ff; color: #1d6fd0; }
.acct-order-status.is-tone-neutral { background: #eeeef2; color: #5f5f6d; }
.acct-order-total { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 15px; color: var(--hm-bg); white-space: nowrap; }
.acct-order-view { font-weight: 700; font-size: 13px; color: var(--hm-primary); text-decoration: none; white-space: nowrap; }
.acct-order-view:hover { color: var(--hm-magenta); }

@media (max-width: 1024px) {
    .acct-grid { grid-template-columns: 1fr; }
    .acct-sidebar { position: static; }
    .acct-nav { flex-direction: row; flex-wrap: wrap; }
    .acct-nav-item { flex: 0 0 auto; }
    .acct-nav-divider { display: none; }
}
@media (max-width: 767px) {
    .acct-stats { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .acct-section { padding: 40px 0 60px; }
    .acct-title { font-size: 26px; }
    .acct-card { padding: 22px 18px; }
    .acct-fields { grid-template-columns: 1fr; }
    .acct-order {
        grid-template-columns: 52px minmax(0,1fr) auto;
        grid-template-areas:
            "thumb info total"
            "thumb status view";
        row-gap: 8px;
    }
    .acct-order-thumb { grid-area: thumb; align-self: start; }
    .acct-order-info { grid-area: info; }
    .acct-order-total { grid-area: total; justify-self: end; }
    .acct-order-status { grid-area: status; justify-self: start; }
    .acct-order-view { grid-area: view; justify-self: end; }
    .acct-address { flex-direction: column; }
    .acct-address-actions { flex-direction: row; align-items: center; }
}

/* ---- Account: Orders / Wishlist / Settings / Payment extras ---- */
.acct-count-chip {
    background: rgba(148,35,255,.1);
    color: var(--hm-primary);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 12px;
    min-width: 24px; height: 22px; padding: 0 8px;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
}
.acct-empty-svg { width: 110px; height: auto; margin: 0 auto 14px; display: block; opacity: .9; }
/* Payment page: what a customer can actually pay with today. Colors are
   explicit — this card sits on white, so it must not inherit them. */
.acct-pay-options { border-top: 1px solid #e8e8ef; margin-top: 24px; padding-top: 20px; }
.acct-pay-options-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700; font-size: 14px;
    color: var(--hm-bg);
    margin: 0 0 12px;
}
.acct-pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.acct-pay-list li {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; line-height: 1.4;
    color: #4b4b57;
}
.acct-pay-list i {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #f2f3f7; color: var(--hm-primary);
    font-size: 14px;
}

/* Wishlist grid (reuses .hm-product-card on a white card, like PDP related) */
.acct-wishlist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.acct-wishlist-grid .hm-product-title a { color: var(--hm-bg); }
/* One control per card here: the ✕ removes it. The card's own heart is
   always "saved" on this page, so showing it too would be redundant. */
.acct-wishlist-grid .hm-product-wishlist { display: none; }
.acct-wishlist-item { position: relative; }
.acct-wishlist-remove-form { position: absolute; top: 10px; right: 10px; margin: 0; z-index: 2; }
.acct-wishlist-remove {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.92);
    color: #3B3B39;
    font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    transition: background .2s ease, color .2s ease;
}
.acct-wishlist-remove:hover { background: var(--hm-magenta); color: #fff; }

/* Card head with bottom margin when there's no right-side action */
.acct-card-head-mb { margin-bottom: 22px; }

/* Forms (settings) */
.acct-form > * + * { margin-top: 14px; }
.acct-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acct-input {
    width: 100%;
    border: 1px solid #e2e2ea;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 14px;
    color: var(--hm-bg);
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.acct-input::placeholder { color: #9a9aa6; }
.acct-input:focus { border-color: var(--hm-primary); box-shadow: 0 0 0 3px rgba(148,35,255,.12); }

.acct-password { position: relative; }
.acct-password .acct-input { padding-right: 44px; }
.acct-password-toggle {
    position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
    border: none; background: transparent; color: #9a9aa6; font-size: 15px;
    cursor: pointer; padding: 4px; line-height: 1;
}
.acct-password-toggle:hover { color: var(--hm-bg); }
.acct-hint { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #9a9aa6; margin: 0; }
.acct-hint i { color: #b0b0bb; }

.acct-form-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.acct-save-btn { padding: 11px 22px; font-family: "Montserrat", sans-serif; font-weight: 700; }
.acct-cancel-btn { border: none; background: transparent; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: var(--hm-bg); cursor: pointer; }
.acct-cancel-btn:hover { color: var(--hm-primary); }
/* Save stays disabled until the form is actually dirty (account.js). */
.acct-save-btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
/* Read-only identity field (email): visibly locked, not just non-editable. */
.acct-readonly-field { position: relative; }
.acct-readonly-field .acct-input { width: 100%; padding-right: 40px; background: #f2f3f7; color: #6b6b78; cursor: not-allowed; }
.acct-readonly-icon { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: #a5a5b2; font-size: 12px; pointer-events: none; }
.acct-hint a { color: var(--hm-primary); font-weight: 700; text-decoration: none; }
.acct-hint a:hover { text-decoration: underline; }

/* Privacy / danger zone */
.acct-privacy-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-bottom: 20px; border-bottom: 1px solid #eef0f4; margin-bottom: 20px;
}
.acct-privacy-title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 15px; color: var(--hm-bg); }
.acct-privacy-text { font-size: 13px; color: #9a9aa6; margin: 3px 0 0; }
.acct-download-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #150a26; color: #fff; border: none; border-radius: 10px;
    padding: 11px 18px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px;
    cursor: pointer; transition: background .2s ease; white-space: nowrap;
}
.acct-download-btn:hover { background: var(--hm-bg); }
/* "Coming soon" state — used by Download Invoice on the order detail, where the
   document itself isn't built yet. Muted and not-allowed so it reads as not-yet
   rather than broken; `disabled` on the element makes that real for the keyboard
   too, so nothing here is styling alone. Delete with the disabled attribute once
   the feature ships. #55555f on #eceaf1 is 6.2:1 — a disabled control is exempt
   from contrast rules, but this one is carrying the message. */
.acct-download-btn[disabled] { background: #eceaf1; color: #55555f; cursor: not-allowed; }
.acct-download-btn[disabled]:hover { background: #eceaf1; }
.acct-soon-tag {
    font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: #fff; color: #5f5f6b; border-radius: 999px; padding: 3px 8px;
}
.acct-danger {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: #fff2f2; border: 1px solid #ffdcdc; border-radius: 12px; padding: 16px 18px;
}
.acct-danger-title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: #c0392b; display: flex; align-items: center; gap: 8px; }
.acct-danger-text { font-size: 13px; color: #a15a52; margin: 4px 0 0; max-width: 460px; line-height: 1.5; }
.acct-delete-btn {
    display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
    background: #e23b3b; color: #fff; border: none; border-radius: 10px;
    padding: 11px 18px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px;
    cursor: pointer; transition: background .2s ease; white-space: nowrap;
}
.acct-delete-btn:hover { background: #c0392b; }

@media (max-width: 1024px) {
    .acct-wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .acct-wishlist-grid { grid-template-columns: 1fr; }
    .acct-field-row { grid-template-columns: 1fr; }
    .acct-privacy-row { flex-direction: column; align-items: flex-start; }
    .acct-danger { flex-direction: column; align-items: flex-start; }
}

/* ---- Order detail (/account/orders/<no>) ---- */
.acct-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: #6a6a76; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px;
    text-decoration: none; margin-bottom: 14px; transition: color .2s ease, gap .2s ease;
}
.acct-back:hover { color: var(--hm-primary); gap: 11px; }

/* Order header card: meta + timeline */
/* ---------- Order detail: status hero ----------
   Replaces four grey label/value pairs. The customer's actual question is
   "where is my order?", so the status leads with its own colour + icon. */
.od-hero {
    border-radius: 18px;
    padding: 26px 28px;
    color: #fff;
    box-shadow: 0 14px 40px rgba(20, 10, 40, .16);
    background: linear-gradient(120deg, #0F0617 0%, #8120EF 100%);
}
/* One rule per tone in App\Models\Orders::STATUS_TONES. `brand` repeats the
   base gradient rather than relying on "no rule matched" — a tone with no
   declaration of its own is indistinguishable from a typo. */
.od-hero--brand   { background: linear-gradient(120deg, #0F0617 0%, #8120EF 100%); }
.od-hero--good    { background: linear-gradient(120deg, #0d2f22 0%, #10b981 100%); }
.od-hero--warn    { background: linear-gradient(120deg, #2b1a05 0%, #f59e0b 100%); }
.od-hero--bad     { background: linear-gradient(120deg, #2a0d0d 0%, #ef4444 100%); }
.od-hero--info    { background: linear-gradient(120deg, #06182b 0%, #2998FF 100%); }
.od-hero--neutral { background: linear-gradient(120deg, #16161d 0%, #4b4b57 100%); }

.od-hero-top { display: flex; align-items: flex-start; gap: 16px; }
.od-hero-icon {
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.16); font-size: 22px;
    backdrop-filter: blur(2px);
}
.od-hero-copy { flex: 1 1 auto; min-width: 0; }
.od-hero-head {
    font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 22px;
    margin: 2px 0 4px; color: #fff; line-height: 1.25;
}
.od-hero-sub { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.82); line-height: 1.5; }
.od-hero-badge {
    flex: 0 0 auto; align-self: flex-start;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25);
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.od-hero-facts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
    margin: 22px 0 0; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.18);
}
.od-hero-facts dt {
    font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
    color: rgba(255,255,255,.65); margin-bottom: 4px;
}
.od-hero-facts dd {
    margin: 0; font-family: "Montserrat", sans-serif; font-weight: 700;
    font-size: 15px; color: #fff; word-break: break-word;
}
.od-hero-total { font-size: 18px !important; }

/* ---------- Progress tracker ----------
   One continuous rail whose fill is driven by --od-progress, rather than four
   disconnected dots. */
.od-track {
    list-style: none; margin: 6px 0 0; padding: 0;
    display: flex; position: relative;
}
.od-track::before,
.od-track::after {
    content: ""; position: absolute; top: 21px; height: 3px; border-radius: 3px;
    left: 12.5%; right: 12.5%;
}
.od-track::before { background: #eceaf3; }
.od-track::after {
    background: linear-gradient(90deg, var(--hm-primary), var(--hm-grad-blue));
    right: auto; width: calc((100% - 25%) * (var(--od-progress, 0%) / 100));
    transition: width .5s ease;
}
.od-track-step {
    flex: 1 1 0; position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
}
.od-track-dot {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 3px solid #eceaf3; color: #b7b7c4; font-size: 15px;
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.od-track-step.is-done .od-track-dot {
    background: var(--hm-primary); border-color: var(--hm-primary); color: #fff;
}
/* The step the order is sitting on right now gets a halo. */
.od-track-step.is-current .od-track-dot {
    box-shadow: 0 0 0 6px rgba(148, 35, 255, .16);
    animation: odPulse 2s ease-in-out infinite;
}
@keyframes odPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(148, 35, 255, .16); }
    50%      { box-shadow: 0 0 0 10px rgba(148, 35, 255, .08); }
}
@media (prefers-reduced-motion: reduce) {
    .od-track-step.is-current .od-track-dot { animation: none; }
    .od-track::after { transition: none; }
}
.od-track-label {
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 12.5px;
    color: #b7b7c4;
}
.od-track-step.is-done .od-track-label { color: var(--hm-bg); }
.od-track-date { font-size: 11px; color: #9a9aa6; }

.od-head { display: flex; flex-wrap: wrap; gap: 26px 40px; }
.od-label { display: block; font-size: 12px; color: #9a9aa6; margin-bottom: 4px; }
.od-value { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 15px; color: var(--hm-bg); }

.od-timeline {
    display: flex; list-style: none; margin: 26px 0 0; padding: 24px 0 0;
    border-top: 1px solid #eef0f4; gap: 4px;
}
.od-step { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
/* connector line */
.od-step:not(:last-child)::after {
    content: ""; position: absolute; top: 13px; left: 50%; width: 100%; height: 2px; background: #e6e6ee;
}
.od-step.is-done:not(:last-child)::after { background: var(--hm-primary); }
.od-step-dot {
    position: relative; z-index: 1;
    width: 28px; height: 28px; border-radius: 50%;
    background: #e6e6ee; color: #fff; font-size: 11px;
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.od-step.is-done .od-step-dot { background: var(--hm-primary); }
.od-step-label { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 12px; color: var(--hm-bg); }
.od-step-date { font-size: 11px; color: #9a9aa6; margin-top: 2px; }

/* Items */
.od-items { list-style: none; margin: 0; padding: 0; }
.od-item {
    display: flex; align-items: center; gap: 16px;
    padding: 14px; margin-bottom: 10px;
    border: 1px solid #eef0f4; border-radius: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.od-item:last-child { margin-bottom: 0; }
.od-item:hover {
    border-color: var(--hm-primary);
    box-shadow: 0 8px 24px rgba(148, 35, 255, .12);
    transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) { .od-item:hover { transform: none; } }
.od-item-thumb {
    position: relative;
    flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px;
    /* NOT overflow:hidden — that clipped the quantity badge, which deliberately
       overhangs the corner. The gradient below is still rounded by
       border-radius, and the padded image can't overflow anyway. */
    overflow: visible;
    background: radial-gradient(ellipse at center, #555 0%, #404050 40%, #2a2a45 70%, #1f1f3a 100%);
    display: flex; align-items: center; justify-content: center; padding: 6px;
}
.od-item-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
/* Quantity as a basket-style badge — quicker to scan than a "Qty: 2" line. */
.od-item-badge {
    position: absolute; top: -6px; right: -6px;
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hm-primary); color: #fff;
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 11px;
    border: 2px solid #fff;
    z-index: 2;                       /* above the thumbnail, never behind it */
    box-shadow: 0 2px 6px rgba(148, 35, 255, .35);
}
.od-item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.od-tag {
    padding: 2px 8px; border-radius: 999px;
    background: rgba(148,35,255,.09); color: var(--hm-primary);
    font-size: 11px; font-weight: 700;
}
.od-tag--muted { background: #f2f3f7; color: #6b6b78; font-weight: 600; }
.od-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.od-item-link {
    font-size: 11.5px; font-weight: 700; color: var(--hm-primary);
    text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
    opacity: 0; transition: opacity .2s ease;
}
.od-item-link i { font-size: 9px; transition: transform .2s ease; }
/* Brand hover convention, same as .acct-link-btn / .od-reorder: primary -> magenta. */
.od-item-link:hover { color: var(--hm-magenta); }
.od-item-link:hover i { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .od-item-link:hover i { transform: none; } }
/* Revealed on hover/focus — present for keyboards, quiet at rest. */
.od-item:hover .od-item-link,
.od-item-link:focus-visible { opacity: 1; }
@media (hover: none) { .od-item-link { opacity: 1; } }
.od-item-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.od-item-title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: var(--hm-bg); text-decoration: none; }
.od-item-title:hover { color: var(--hm-primary); }
.od-item-variant, .od-item-qty { font-size: 12px; color: #9a9aa6; }
.od-item-total { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 15px; color: var(--hm-bg); white-space: nowrap; }

/* Addresses + summary columns */
.od-columns { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 900px) {
    .od-hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .od-track { flex-wrap: wrap; gap: 18px 0; }
    .od-track::before, .od-track::after { display: none; }
    .od-track-step { flex: 0 0 50%; }
}
@media (max-width: 560px) {
    .od-hero { padding: 22px 20px; }
    .od-hero-head { font-size: 19px; }
    .od-hero-badge { order: -1; }
    .od-item { flex-wrap: wrap; }
    .od-item-right { width: 100%; align-items: flex-start; flex-direction: row; justify-content: space-between; }
}
.od-addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.od-addr-box { background: #fafafd; border: 1px solid #eef0f4; border-radius: 12px; padding: 16px; }
.od-addr-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; color: var(--hm-bg); margin-bottom: 10px;
}
.od-addr-label i { color: var(--hm-primary); font-size: 12px; }
.od-addr { font-size: 14px; color: #4a4a55; line-height: 1.6; }
.od-addr strong { color: var(--hm-bg); }

.od-summary { list-style: none; margin: 0; padding: 0 0 14px; border-bottom: 1px solid #eef0f4; }
.od-summary li { display: flex; justify-content: space-between; font-size: 14px; color: #6a6a76; margin-bottom: 12px; }
.od-summary li:last-child { margin-bottom: 0; }
.od-summary li span:last-child { color: var(--hm-bg); font-weight: 600; }
.od-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 16px; color: var(--hm-bg); }
.od-grand { color: var(--hm-primary); font-size: 18px; }
.od-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.od-actions .acct-download-btn { justify-content: center; }
.od-reorder { padding: 11px; border: 1px solid #e2e2ea; border-radius: 10px; }
.od-reorder:hover { border-color: var(--hm-primary); }
/* The reorder form is a layout no-op — the button owns the styling. */
.od-reorder-form { margin: 0; display: contents; }

/* Order detail: fuller summary — tax breakdown, payment, contact, notes. */
.od-summary em { font-style: normal; color: #9a9aa6; font-size: 12px; }
.od-discount { color: #10b981; }
.od-tax-separate { font-size: 12.5px; color: #9a9aa6; }
.od-note {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: #6b6b78;
}
.od-note i { margin-top: 2px; color: var(--hm-primary); }
.od-meta { border-top: 1px solid #eef0f4; margin-top: 18px; padding-top: 16px; display: grid; gap: 14px; }
.od-meta-row { display: flex; align-items: flex-start; gap: 11px; }
.od-meta-icon {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #f2f3f7; color: var(--hm-primary); font-size: 13px;
}
.od-meta-label {
    display: block; font-family: "Montserrat", sans-serif;
    font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
    color: #9a9aa6; margin-bottom: 2px;
}
.od-meta-value { display: block; font-size: 13px; line-height: 1.5; color: var(--hm-bg); }
.od-meta-sub { color: #6b6b78; font-size: 12.5px; }
.od-item-sku { font-size: 12px; color: #9a9aa6; }
.od-notes { font-size: 14px; line-height: 1.6; color: #4a4a55; margin: 0; }

/* "Updates from us" — admin notes published to the customer. Green so it reads
   as a message from a person, distinct from the purple order chrome. */
.od-updates-card { border-left: 3px solid #10b981; }
.od-updates { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.od-update {
    display: flex; gap: 12px; padding: 14px 16px;
    background: #f4fdf8; border: 1px solid #d7f2e4; border-radius: 12px;
}
.od-update-mark { flex: 0 0 auto; color: #10b981; font-size: 13px; margin-top: 2px; }
.od-update-body { min-width: 0; }
.od-update-text { margin: 0; font-size: 14px; line-height: 1.6; color: #2f3a34; }
.od-update-meta { margin: 6px 0 0; font-size: 11.5px; color: #7d9189; }

/* Orders-list flag: "there's a message on this one". */
.acct-order-updates {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 4px; padding: 2px 9px; border-radius: 999px;
    background: #eefbf4; color: #047857;
    font-size: 11.5px; font-weight: 700; width: fit-content;
}
.acct-order-updates i { font-size: 10px; }

@media (max-width: 1024px) {
    .od-columns { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .od-timeline { flex-wrap: wrap; gap: 16px; }
    .od-step { flex: 0 0 45%; }
    .od-step:not(:last-child)::after { display: none; }
    .od-addr-grid { grid-template-columns: 1fr; }
    .od-item { flex-wrap: wrap; }
}

/* ---- Account: Help & Support (/account/help) ---- */
.help-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.help-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    background: #f7f7fb;
    border: 1px solid #eef0f4;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.help-tile:hover {
    border-color: var(--hm-primary);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(148, 35, 255, .12);
}
.help-tile-icon {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(148, 35, 255, .1);
    color: var(--hm-primary);
    font-size: 17px;
    transition: background-color .2s ease, color .2s ease;
}
.help-tile:hover .help-tile-icon { background: var(--hm-primary); color: #fff; }
.help-tile-body { display: flex; flex-direction: column; min-width: 0; }
.help-tile-title {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--hm-bg);
}
.help-tile-meta {
    font-size: 13px;
    color: #4b4b57;
    margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.help-tile-sub { font-size: 12px; color: #9a9aa6; margin-top: 3px; }
.help-tile-arrow {
    flex: 0 0 auto;
    margin-left: auto;
    color: #c4c4cf;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s ease, transform .2s ease, color .2s ease;
}
.help-tile:hover .help-tile-arrow { opacity: 1; transform: translateX(0); color: var(--hm-primary); }
.help-online-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
    animation: helpPulse 1.8s ease-out infinite;
}
@keyframes helpPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
    70%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Still-need-help CTA (shared gradient, compact horizontal variant) */
.help-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: var(--hm-grad-cta);
    border-radius: 20px;
    padding: 28px 32px;
}
.help-cta-body { min-width: 0; }
.help-cta-title {
    font-family: "Poppins", "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
}
.help-cta-text { color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.6; margin: 0; }
.help-cta-btn {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff;
    color: var(--hm-bg);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.help-cta-btn:hover,
.help-cta-btn:focus-visible {
    color: var(--hm-bg);
    transform: scale(1.06);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

/* ---- Maintenance page (/maintenance) ---- */
.mnt-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: #fff;
}
.mnt-inner {
    width: 100%;
    max-width: 560px;
    text-align: center;
}
.mnt-brand { display: inline-block; margin-bottom: 30px; }
.mnt-brand img { height: 40px; width: auto; }
.mnt-title {
    font-family: "Poppins", "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.15;
    background: linear-gradient(90deg, var(--hm-primary) 0%, var(--hm-grad-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--hm-primary);                 /* fallback */
    margin: 0 0 8px;
}
.mnt-subtitle {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--hm-bg);
    margin: 0 0 8px;
}
.mnt-art { margin: 18px auto 26px; }
.mnt-art img {
    width: 100%;
    max-width: 360px;
    height: auto;
    animation: mntFloat 4.5s ease-in-out infinite;
}
@keyframes mntFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.mnt-note {
    color: #6a6a76;
    font-size: 14px;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 22px;
}
.mnt-form { max-width: 420px; margin: 0 auto; }
.mnt-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f6f9;
    border: 1px solid #e2e2ea;
    border-radius: 12px;
    padding: 6px 6px 6px 8px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.mnt-input-group:focus-within { border-color: var(--hm-primary); box-shadow: 0 0 0 3px rgba(148, 35, 255, .12); }
.mnt-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 10px 8px;
    font-size: 14px;
    color: var(--hm-bg);
    outline: none;
}
.mnt-input::placeholder { color: #9a9aa6; }
.mnt-input.is-invalid { color: #dc2626; }
.mnt-btn {
    flex: 0 0 auto;
    border: 0;
    cursor: pointer;
    background: linear-gradient(90deg, var(--hm-primary) 0%, var(--hm-grad-blue) 100%);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 9px;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.mnt-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(148, 35, 255, .3); filter: brightness(1.05); }
.mnt-btn:active { transform: translateY(0); }
.mnt-terms {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: #9a9aa6;
    cursor: pointer;
}
.mnt-terms input { width: 15px; height: 15px; cursor: pointer; }
.mnt-terms a { color: var(--hm-primary); text-decoration: none; }
.mnt-terms a:hover { text-decoration: underline; }
.mnt-terms.is-invalid span { color: #dc2626; }
.mnt-success {
    margin: 16px 0 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #16a34a;
}

@media (max-width: 767px) {
    .mnt-title { font-size: 27px; }
    .mnt-subtitle { font-size: 16px; }
    .mnt-input-group { flex-direction: column; align-items: stretch; padding: 8px; }
    .mnt-input { padding: 11px 10px; }
    .mnt-btn { width: 100%; padding: 12px; }
}

@media (max-width: 767px) {
    .help-tiles { grid-template-columns: 1fr; }
    .help-tile-arrow { opacity: 1; transform: none; }
    .help-cta { flex-direction: column; align-items: flex-start; text-align: left; padding: 24px; }
    .help-cta-btn { width: 100%; }
}

/* ---- Thank You / Order Confirmed (/thank-you) ---- */
.ty-section { background: #f4f6f9; padding: 64px 0 90px; }

/* Hero */
.ty-hero { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.ty-check {
    position: relative;
    width: 96px; height: 96px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 34px rgba(16, 185, 129, .35);
    animation: tyPop .5s cubic-bezier(.2, .9, .3, 1.4) both;
}
.ty-check-ring {
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 2px solid #10b981;
    opacity: 0;
    animation: tyRing 1.2s ease-out .5s;
}
.ty-check-svg { width: 56px; height: 56px; }
.ty-check-circle { stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: auth-tick-draw .5s ease-out .3s forwards; }
.ty-check-tick { stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: auth-tick-draw .45s ease-out .55s forwards; }
@keyframes tyPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes tyRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }

.ty-title {
    font-family: "Poppins", "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.15;
    background: linear-gradient(90deg, var(--hm-primary) 0%, var(--hm-grad-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--hm-primary);
    margin: 0 0 10px;
}
.ty-subtitle { color: #6a6a76; font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.ty-subtitle strong { color: var(--hm-bg); }

.ty-ordernum {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8ef;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 10px 30px rgba(20, 10, 40, .05);
}
.ty-ordernum-label { font-size: 13px; color: #9a9aa6; font-weight: 600; }
.ty-ordernum-value {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--hm-bg);
    letter-spacing: .5px;
}
.ty-ordernum-copy {
    border: 0; background: rgba(148, 35, 255, .1); color: var(--hm-primary);
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color .2s ease, color .2s ease;
}
.ty-ordernum-copy:hover { background: var(--hm-primary); color: #fff; }
.ty-ordernum-copy.is-copied { background: #10b981; color: #fff; }

/* Grid */
.ty-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; max-width: 960px; margin: 0 auto; }
/* Lookup-only state (no order found yet): a single centered column — no empty
   summary sidebar. Narrower max-width so the "Find Your Order" form sits
   comfortably centered rather than stretched across the page. */
.ty-grid--lookup { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.ty-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ty-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; }

.ty-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(20, 10, 40, .06);
    padding: 24px 26px;
}
.ty-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ty-card-icon { color: var(--hm-primary); font-size: 15px; }
.ty-card-title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 16px; color: var(--hm-bg); margin: 0; }
.ty-card-count { margin-left: auto; font-size: 12px; color: #9a9aa6; font-weight: 600; }

/* Timeline */
.ty-timeline { list-style: none; margin: 0; padding: 6px 0 0; display: flex; justify-content: space-between; position: relative; }
.ty-timeline::before { content: ""; position: absolute; top: 20px; left: 20px; right: 20px; height: 2px; background: #e8e8ef; z-index: 0; }
.ty-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; text-align: center; }
.ty-step-dot {
    width: 40px; height: 40px; border-radius: 50%;
    background: #f0f0f5; color: #b7b7c2;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px;
    border: 3px solid #f4f6f9;
    transition: background-color .2s ease, color .2s ease;
}
.ty-step-label { font-size: 12px; font-weight: 600; color: #9a9aa6; }
.ty-step.is-done .ty-step-dot { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; }
.ty-step.is-done .ty-step-label { color: var(--hm-bg); }
.ty-step.is-current .ty-step-dot { background: rgba(148, 35, 255, .12); color: var(--hm-primary); box-shadow: 0 0 0 3px rgba(148, 35, 255, .12); }
.ty-step.is-current .ty-step-label { color: var(--hm-primary); }

/* Items */
.ty-items { list-style: none; margin: 0; padding: 0; }
.ty-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0f0f5; }
.ty-item:first-child { padding-top: 0; }
.ty-item-thumb { position: relative; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px; background: #f4f6f9; display: block; }
.ty-item-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ty-item-qty {
    position: absolute; top: -7px; right: -7px;
    min-width: 20px; height: 20px; padding: 0 5px;
    background: var(--hm-primary); color: #fff;
    border-radius: 999px; font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.ty-item-info { flex: 1 1 auto; min-width: 0; }
.ty-item-title { font-size: 14px; font-weight: 600; margin: 0; }
.ty-item-title a { color: var(--hm-bg); text-decoration: none; }
.ty-item-title a:hover { color: var(--hm-primary); }
.ty-item-variant { font-size: 12px; color: #9a9aa6; margin: 3px 0 0; }
/* Per-unit price (e.g. "$19.99 each") under the variant — matches checkout/pay. */
.ty-item-unit { font-size: 12px; color: #9a9aa6; margin: 3px 0 0; }
.ty-item-total { flex: 0 0 auto; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: var(--hm-bg); }

.ty-summary { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid #f0f0f5; }
.ty-summary li { display: flex; justify-content: space-between; font-size: 14px; color: #6a6a76; margin-bottom: 10px; }
.ty-summary li span:last-child { color: var(--hm-bg); font-weight: 600; }
.ty-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 4px; border-top: 1px solid #f0f0f5; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 16px; color: var(--hm-bg); }
.ty-total-val { color: var(--hm-primary); font-size: 20px; }

/* Side info */
.ty-info { padding: 22px 24px; }
.ty-info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f0f0f5; }
.ty-info-row:first-child { padding-top: 0; }
.ty-info-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ty-info-icon {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
    background: rgba(148, 35, 255, .1); color: var(--hm-primary);
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.ty-info-body { display: flex; flex-direction: column; min-width: 0; }
.ty-info-label { font-size: 12px; color: #9a9aa6; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.ty-info-value { font-size: 14px; color: var(--hm-bg); margin-top: 4px; line-height: 1.5; }
/* Secondary line under a value — e.g. the "we'll invoice you" note under a
   purchase-order payment. Quieter than the value it explains. */
.ty-info-sub { font-size: 13px; color: #6b6b78; }

/* Actions */
.ty-actions { display: flex; flex-direction: column; gap: 10px; }
.ty-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; padding: 13px 20px; border-radius: 10px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease; }
.ty-btn--primary:hover { color: #fff; transform: translateY(-1px); }
.ty-btn--ghost { background: #fff; color: var(--hm-bg); border: 1px solid #e2e2ea; }
.ty-btn--ghost:hover { border-color: var(--hm-primary); color: var(--hm-primary); }
.ty-help { text-align: center; font-size: 13px; color: #9a9aa6; margin: 4px 0 0; }
.ty-help a { color: var(--hm-primary); text-decoration: none; }
.ty-help a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .ty-check, .ty-check-ring { animation: none; }
    .ty-check-circle, .ty-check-tick { stroke-dashoffset: 0; }
}

@media (max-width: 1024px) {
    .ty-grid { grid-template-columns: 1fr; max-width: 560px; }
    .ty-side { position: static; }
}
@media (max-width: 767px) {
    .ty-section { padding: 44px 0 64px; }
    .ty-title { font-size: 27px; }
    .ty-ordernum { flex-wrap: wrap; justify-content: center; gap: 8px 14px; padding: 14px 16px; }
    .ty-card { padding: 20px 18px; }
    .ty-timeline { flex-wrap: wrap; gap: 18px 0; }
    .ty-timeline::before { display: none; }
    .ty-step { flex: 0 0 50%; }
    .ty-step-label { font-size: 11px; }
}

/* ---- Header search: full-screen overlay ---- */
.hm-search-toggle { background: transparent; border: 0; padding: 0; cursor: pointer; }
body.hm-search-open { overflow: hidden; }

.hm-search-overlay {
    position: fixed; inset: 0; z-index: 4000;
    display: flex; align-items: flex-start; justify-content: center;
    opacity: 0;
    transition: opacity .26s ease;
}
.hm-search-overlay.is-open { opacity: 1; }
.hm-search-overlay-backdrop {
    position: absolute; inset: 0;
    background: rgba(8, 4, 16, .82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hm-search-overlay-close {
    position: absolute; top: 26px; right: 30px; z-index: 1;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
    color: #fff; font-size: 20px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color .2s ease, transform .2s ease;
}
.hm-search-overlay-close:hover { background: rgba(255, 255, 255, .14); transform: rotate(90deg); }
.hm-search-overlay-inner {
    position: relative; z-index: 1;
    width: 100%; max-width: 680px;
    margin-top: 18vh; padding: 0 24px;
    transform: translateY(-16px);
    transition: transform .28s cubic-bezier(.2, .8, .3, 1);
}
.hm-search-overlay.is-open .hm-search-overlay-inner { transform: translateY(0); }
.hm-search-overlay-label {
    display: block; text-align: center;
    color: rgba(255, 255, 255, .65);
    font-family: "Poppins", "Montserrat", sans-serif; font-weight: 500; font-size: 20px;
    margin-bottom: 22px;
}
.hm-search-overlay-form {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 16px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.hm-search-overlay-icon { color: #9a9aa6; font-size: 18px; flex: 0 0 auto; }
.hm-search-overlay-input {
    flex: 1 1 auto; min-width: 0;
    border: 0; outline: none; background: transparent;
    font-size: 18px; color: var(--hm-bg); padding: 14px 8px;
}
.hm-search-overlay-input::placeholder { color: #9a9aa6; }
.hm-search-overlay-submit {
    flex: 0 0 auto; border: 0; cursor: pointer;
    background: linear-gradient(90deg, var(--hm-primary) 0%, var(--hm-grad-blue) 100%);
    color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 15px;
    padding: 14px 30px; border-radius: 11px;
    transition: filter .2s ease, transform .2s ease;
}
.hm-search-overlay-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hm-search-overlay-suggest {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
    margin-top: 24px;
}
.hm-search-overlay-suggest-label { color: rgba(255, 255, 255, .5); font-size: 13px; font-weight: 600; }
.hm-search-overlay-chip {
    display: inline-flex; align-items: center;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    color: #fff; font-size: 13px; font-weight: 600;
    padding: 8px 15px; border-radius: 999px; text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}
.hm-search-overlay-chip:hover { background: rgba(148, 35, 255, .3); border-color: var(--hm-primary); color: #fff; }

@media (max-width: 767px) {
    .hm-search-overlay-inner { margin-top: 14vh; padding: 0 18px; }
    .hm-search-overlay-label { font-size: 17px; }
    .hm-search-overlay-form { flex-wrap: wrap; padding: 12px; }
    .hm-search-overlay-icon { display: none; }
    .hm-search-overlay-input { flex: 1 1 100%; padding: 8px; }
    .hm-search-overlay-submit { flex: 1 1 100%; padding: 12px; }
    .hm-search-overlay-close { top: 16px; right: 16px; }
}

/* ---- Search results / archive page (/search) ---- */
.hm-search-hero {
    background: linear-gradient(135deg, #1a0e30 0%, var(--hm-bg) 100%);
    padding: 72px 0 60px;
    text-align: center;
}
.hm-search-hero-title {
    font-family: "Poppins", "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 44px;
    color: #fff;
    margin: 0 0 26px;
}
.hm-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 8px 8px 8px 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.hm-search-form-icon { color: #9a9aa6; font-size: 16px; flex: 0 0 auto; }
.hm-search-form-input {
    flex: 1 1 auto; min-width: 0;
    border: 0; outline: none; background: transparent;
    font-size: 16px; color: var(--hm-bg); padding: 12px 6px;
}
.hm-search-form-input::placeholder { color: #9a9aa6; }
.hm-search-form-btn {
    flex: 0 0 auto; border: 0; cursor: pointer;
    background: linear-gradient(90deg, var(--hm-primary) 0%, var(--hm-grad-blue) 100%);
    color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 15px;
    padding: 13px 28px; border-radius: 10px;
    transition: filter .2s ease, transform .2s ease;
}
.hm-search-form-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hm-search-hero-meta { color: rgba(255, 255, 255, .8); font-size: 15px; margin: 22px 0 0; }
.hm-search-hero-meta strong { color: #fff; }
.hm-search-term { color: #b98cff; font-weight: 600; }

.hm-search-results { background: #f4f6f9; padding: 40px 0 80px; }
.hm-search-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 24px; flex-wrap: wrap;
}
.hm-search-count { font-size: 14px; color: #6a6a76; font-weight: 500; }
.hm-search-sort { display: inline-flex; align-items: center; gap: 10px; }
.hm-search-sort label { font-size: 13px; color: #9a9aa6; font-weight: 600; }
.hm-search-sort select {
    border: 1px solid #e2e2ea; border-radius: 9px; background: #fff;
    padding: 9px 34px 9px 14px; font-size: 14px; font-weight: 600; color: var(--hm-bg); cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a6a76' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    transition: border-color .2s ease;
}
.hm-search-sort select:hover { border-color: var(--hm-primary); }

/* Empty state */
.hm-search-empty {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(20, 10, 40, .06);
    text-align: center;
    padding: 60px 30px;
    max-width: 620px;
    margin: 0 auto;
}
.hm-search-empty-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(148, 35, 255, .1); color: var(--hm-primary); font-size: 26px;
    margin-bottom: 20px;
}
.hm-search-empty-title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 22px; color: var(--hm-bg); margin: 0 0 10px; }
.hm-search-empty-text { color: #6a6a76; font-size: 15px; line-height: 1.6; max-width: 440px; margin: 0 auto 26px; }
.hm-search-suggest { margin-bottom: 28px; }
.hm-search-suggest-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #9a9aa6; margin-bottom: 12px; }
.hm-search-suggest-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hm-search-chip {
    display: inline-flex; align-items: center;
    background: #f4f6f9; border: 1px solid #e8e8ef;
    color: var(--hm-bg); font-size: 13px; font-weight: 600;
    padding: 9px 16px; border-radius: 999px; text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.hm-search-chip:hover { border-color: var(--hm-primary); background: #fff; color: var(--hm-primary); }

@media (max-width: 767px) {
    .hm-search-hero { padding: 56px 0 44px; }
    .hm-search-hero-title { font-size: 32px; }
    .hm-search-form { flex-wrap: wrap; padding: 12px; border-radius: 14px; }
    .hm-search-form-input { flex: 1 1 100%; padding: 6px 4px; }
    .hm-search-form-btn { flex: 1 1 100%; padding: 12px; }
    .hm-search-form-icon { display: none; }
    .hm-search-empty { padding: 44px 20px; }
}


/* ---- Resource article: Easy to Use & Remelting (/resources/easy-to-use-and-reuse) ---- */
/* Hero — centered, video-focused, on the dark brand background */
.res-hero { background: var(--hm-bg); padding: 84px 0 56px; text-align: center; }
.res-hero-inner { max-width: 760px; margin: 0 auto 42px; }
.res-hero-title {
    font-family: "Montserrat", sans-serif; font-weight: 700;
    font-size: 46px; line-height: 1.15; color: #fff; margin: 0 0 18px;
}
.res-hero-lead { color: #C9BFE0; font-size: 18px; line-height: 1.6; max-width: 640px; margin: 0 auto; }
.res-hero-video { max-width: 900px; margin: 0 auto; }
.res-video-frame {
    position: relative; width: 100%; padding-top: 56.25%;   /* 16:9 */
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.res-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Article — single centered column on white, blog-style */
.res-article { background: #fff; padding: 74px 0; }
.res-body { max-width: 820px; margin: 0 auto; }
.res-body p { font-size: 17px; line-height: 1.8; color: #3a3a46; margin: 0 0 20px; }
/* .bp-body h2/h3 ride along with these: the global `h1..h6` rule paints every
   heading white for the site's dark sections, and only these article classes
   put it back to dark. Imported (and rich-text authored) content is bare
   <h2>/<h3>, which inherited the white and vanished on the light article page. */
.res-h2,
.bp-body h2 {
    font-family: "Montserrat", sans-serif; font-weight: 700;
    font-size: 32px; line-height: 1.25; color: var(--hm-bg); margin: 0 0 20px;
}
.res-h3,
.bp-body h3 {
    font-family: "Montserrat", sans-serif; font-weight: 700;
    font-size: 24px; line-height: 1.3; color: var(--hm-bg); margin: 46px 0 16px;
}

/* Why-reuse reasons (labeled bullets) */
.res-reasons { list-style: none; margin: 0 0 8px; padding: 0; }
.res-reasons li {
    position: relative; padding: 0 0 14px 30px;
    font-size: 17px; line-height: 1.7; color: #3a3a46;
}
.res-reasons li::before {
    content: ""; position: absolute; left: 4px; top: 11px;
    width: 9px; height: 9px; border-radius: 50%;
    background: linear-gradient(135deg, var(--hm-primary), var(--hm-grad-blue));
}
.res-reasons strong { color: var(--hm-bg); }

/* How-it-works numbered steps (vertical list) */
.res-steps-list { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: none; }
.res-steps-list li { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f0f0f5; }
.res-steps-list li:last-child { border-bottom: 0; }
.res-step-badge {
    flex: 0 0 auto;
    background: rgba(148, 35, 255, .1); color: var(--hm-primary);
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px;
    padding: 6px 12px; border-radius: 999px; white-space: nowrap; margin-top: 2px;
}
.res-step-body { font-size: 17px; line-height: 1.7; color: #3a3a46; }
.res-step-body strong { color: var(--hm-bg); }

/* Safety note callout */
.res-safety {
    display: flex; align-items: center; gap: 14px;
    background: #fff5f5; border: 1px solid #ffd9d9; border-left: 4px solid #ef4444;
    border-radius: 12px; padding: 16px 20px; margin: 0 0 8px;
}
.res-safety-icon { flex: 0 0 auto; color: #ef4444; font-size: 20px; }
.res-safety p { margin: 0; font-size: 15px; line-height: 1.6; color: #7a2c2c; }
.res-safety strong { color: #b91c1c; }

/* Gel-options tier list */
.res-tiers-list { list-style: none; margin: 0 0 20px; padding: 0; }
.res-tiers-list li {
    position: relative; padding: 0 0 18px 30px;
    font-size: 17px; line-height: 1.7; color: #3a3a46;
}
.res-tiers-list li::before {
    content: ""; position: absolute; left: 4px; top: 11px;
    width: 9px; height: 9px; border-radius: 50%;
    background: linear-gradient(135deg, var(--hm-primary), var(--hm-grad-blue));
}
.res-tiers-list strong { color: var(--hm-bg); }

/* Other resources — 3-card row on light grey */
.res-others { background: #f4f6f9; padding: 74px 0; }
.res-others-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.res-others-head .res-h2 { margin-bottom: 12px; }
.res-others-sub { color: #6a6a76; font-size: 16px; line-height: 1.6; margin: 0; }
/* The article pages render .res-card (components/resource_card) in this grid.
   Live layout: two columns — the first card fills the left on its own, the
   other two stack in the right. Achieved by spanning card 1 down both rows. */
.res-others-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;   /* content height — 1fr would stretch the
                                        shorter stacked card and leave a gap */
    gap: 24px;
    align-items: start;
}
.res-others-grid > :first-child { grid-row: span 2; }

@media (max-width: 1024px) {
    /* Single column — undo the two-row span, or card 1 keeps a phantom row. */
    .res-others-grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .res-others-grid > :first-child { grid-row: auto; }
}
@media (max-width: 767px) {
    .res-hero { padding: 60px 0 44px; }
    .res-hero-title { font-size: 32px; }
    .res-hero-lead { font-size: 16px; }
    .res-article, .res-others { padding: 52px 0; }
    .res-h2,
    .bp-body h2 { font-size: 26px; }
    .res-h3,
    .bp-body h3 { font-size: 21px; }
    .res-body p, .res-reasons li, .res-tiers-list li, .res-step-body { font-size: 16px; }
    .res-steps-list li { flex-direction: column; gap: 8px; }
}

/* ---- Resource article extras (Shipping & Returns) ---- */
/* Text-only hero (no video) — a touch more compact */
.res-hero--text { padding: 84px 0 64px; }
.res-hero--text .res-hero-inner { margin-bottom: 0; }

/* Image hero (live: cover-centred photo, 300px band, dark scrim under the copy).
   The url() is set inline on the section so the asset path stays in the view. */
.res-hero--image {
    position: relative;
    background-color: var(--hm-bg);   /* fallback while the image loads */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.res-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 3, 15, .62) 0%, rgba(8, 3, 15, .74) 100%);
    z-index: 0;
}
.res-hero--image .container { position: relative; z-index: 1; }

@media (max-width: 767px) {
    .res-hero--image { min-height: 200px; }   /* live drops to 200px here */
}

/* Extra top gap where a new H2 topic starts mid-article */
.res-h2--spaced { margin-top: 54px; }

/* Info note callout (neutral, vs. the red safety note) */
.res-note {
    display: flex; align-items: center; gap: 14px;
    background: #f4f2fb; border: 1px solid #e4dcfa; border-left: 4px solid var(--hm-primary);
    border-radius: 12px; padding: 16px 20px; margin: 4px 0 8px;
}
.res-note-icon { flex: 0 0 auto; color: var(--hm-primary); font-size: 20px; }
.res-note p { margin: 0; font-size: 15px; line-height: 1.6; color: #4a3d6b; }

/* Checkmark list (return policy) */
.res-checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.res-checklist li { display: flex; align-items: flex-start; gap: 13px; padding: 0 0 14px; font-size: 17px; line-height: 1.7; color: #3a3a46; }
.res-check {
    flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(16, 185, 129, .12); color: #10b981;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 3px;
}
.res-checklist strong { color: var(--hm-bg); }

/* Links inside article lists.
   The body contexts are listed individually rather than as a blanket
   `.bp-body a`: the "Filed under" category chips live inside .bp-body too and
   are deliberately grey, so a blanket rule would repaint them brand purple.
   Only `p` was covered before, which left links inside list items (the
   "SimuGel 2 / 3 / 4" product links) on the site's default link blue. */
.res-tiers-list a, .res-checklist a, .res-body p a,
.bp-body li a, .bp-body td a, .bp-body th a,
.bp-body h2 a, .bp-body h3 a { color: var(--hm-primary); text-decoration: none; font-weight: 600; }
.res-tiers-list a:hover, .res-checklist a:hover, .res-body p a:hover,
.bp-body li a:hover, .bp-body td a:hover, .bp-body th a:hover,
.bp-body h2 a:hover, .bp-body h3 a:hover { text-decoration: underline; }

/* Article figure (e.g. shipping map) */
.res-figure { margin: 8px 0 24px; text-align: center; }
.res-figure img { max-width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 40px rgba(20, 10, 40, .1); }

/* Article inline CTA (e.g. Marketing Request → contact) */
.res-cta { margin-top: 34px; }

/* ---- Resource two-column split (Marketing Request sections) ---- */
.res-split {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 54px; align-items: center;
    max-width: 1040px; margin: 0 auto;
}
.res-split + .res-split { margin-top: 64px; }
.res-split--reverse .res-split-copy { order: 2; }
.res-split--reverse .res-split-media { order: 1; }
.res-split-copy .res-h2, .res-split-copy .res-h3 { margin-top: 0; }
.res-h3--flush { margin-top: 0; }
.res-split-copy p { font-size: 17px; line-height: 1.8; color: #3a3a46; margin: 0 0 18px; }
.res-split-copy .res-reasons { margin-bottom: 18px; }
.res-split-copy .res-cta { margin-top: 26px; }
.res-split-media img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 60px rgba(20, 10, 40, .14); }

@media (max-width: 1024px) {
    .res-split { grid-template-columns: 1fr; gap: 30px; }
    .res-split--reverse .res-split-copy,
    .res-split--reverse .res-split-media { order: initial; }
    .res-split-media { order: -1; }              /* image above text on mobile */
    .res-split--reverse .res-split-media { order: -1; }
}

/* ================= SINGLE POST (/blog/<slug>) ================= */
.bp-hero .res-hero-inner { max-width: 860px; }
.bp-title { margin-top: 14px; }
.bp-hero-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bp-hero-cat {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--hm-primary);   /* flat purple, matching the filter tabs */
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: transform .2s ease, box-shadow .2s ease;
}
.bp-hero-cat:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(148, 35, 255, .35); }
.bp-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
    font-size: 14px;
    color: #b9b4c6;
}
.bp-meta i { margin-right: 6px; color: var(--hm-primary); }

/* Featured image — sits below the hero with clear space above it. */
.bp-featured {
    max-width: 980px;
    margin: 0 auto 44px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(20, 10, 40, .12);
}
.bp-featured img { display: block; width: 100%; height: auto; }

/* Article body typography.
   Selectors match the ELEMENT as well as the class. The seeded articles carry
   .bp-h2/.bp-list because a converter added them, but content imported from
   WordPress — and anything written in the apanel rich-text editor — is bare
   <h2>/<ul>/<table>. Styling only the classes left every imported article with
   unstyled headings, lists and tables. Content shouldn't have to carry
   presentational classes to look right. */
.bp-h2,
.bp-body h2 { text-align: left; margin-top: 44px; }
.bp-body .res-h3,
.bp-body h3 { margin-top: 32px; }
.bp-list,
.bp-body ul,
.bp-body ol { margin: 0 0 22px; padding-left: 22px; }
.bp-list li,
.bp-body li { font-size: 17px; line-height: 1.8; color: #3a3a46; margin-bottom: 8px; }
/* Word-pasted lists wrap each item's text in its own <p>; without this the
   paragraph's own margins push the bullets apart. */
.bp-body li > p { margin: 0; }
/* A numbered list whose items are headings (production does this) shouldn't
   inherit the big heading top-margin — it would detach the text from its
   number. */
.bp-body li > h2,
.bp-body li > h3 { margin-top: 0; }

/* Comparison table */
.bp-table-wrap { overflow-x: auto; margin: 0 0 26px; }
/* Imported tables arrive bare and unwrapped, so the element itself has to be
   able to scroll rather than force the page wide on a phone. */
.bp-body table { display: block; overflow-x: auto; max-width: 100%; margin: 0 0 26px; }
.bp-table,
.bp-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(20, 10, 40, .07);
}
.bp-table th,
.bp-table td,
.bp-body table th,
.bp-body table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #ececf2; }
.bp-table thead th,
/* Word tables carry no <thead>; their header is simply the first row. */
.bp-body table:not(:has(thead)) tbody tr:first-child td {
    background: var(--hm-primary);   /* flat purple, matching the filter tabs */
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
/* The header cells hold <p><b>Text</b></p> (Word's doing). `.res-body p` sets
   its own colour, which beats the white inherited from the cell — so the label
   has to be coloured on the descendants too, or it renders dark on purple. */
.bp-table thead th *,
.bp-body table:not(:has(thead)) tbody tr:first-child td * {
    color: inherit;
    font: inherit;            /* size, weight, family — all from the cell */
    letter-spacing: inherit;
    text-transform: inherit;
    margin: 0;
}

.bp-table tbody th,
.bp-body table tbody th { font-weight: 700; color: var(--hm-bg); white-space: nowrap; }
.bp-table tbody td,
.bp-body table tbody td { color: #4a4a56; }
.bp-table tbody tr:last-child th,
.bp-table tbody tr:last-child td { border-bottom: none; }
.bp-table tbody tr:nth-child(even),
.bp-body table tbody tr:nth-child(even) { background: #faf9fd; }

/* Filed-under tags */
.bp-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 40px 0 0;
    padding-top: 26px;
    border-top: 1px solid #ececf2;
}
.bp-tags-label {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #6a6a76;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: 4px;
}
.bp-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #e2e2e8;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #5b5b66;
    text-decoration: none;
    transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.bp-tag:hover { color: var(--hm-primary); border-color: var(--hm-primary); transform: translateY(-1px); }

/* Prev / next */
.bp-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid #ececf2;
}
.bp-nav-link {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px 20px;
    border: 1px solid #ececf2;
    border-radius: 14px;
    text-decoration: none;
    background: #fff;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.bp-nav-link:hover {
    border-color: var(--hm-primary);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(20, 10, 40, .1);
}
.bp-nav-next { text-align: right; }
.bp-nav-label {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--hm-primary);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.bp-nav-title { font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--hm-bg); }
.bp-nav-link:hover .bp-nav-title { color: var(--hm-primary); }

.bp-recent { padding-bottom: 0; }

@media (max-width: 1024px) {
    .bp-featured { margin: -40px auto 32px; border-radius: 14px; }
    .bp-nav { grid-template-columns: 1fr; }
    .bp-nav-next { text-align: left; }
}

/* ================= BLOG ARCHIVE (/blog) ================= */
/* The CTA below carries a deliberate 220px top pad (the leg image overhangs the
   card), so drop this section's bottom pad to keep the rhythm even. */
.blog-archive { padding-bottom: 0; }
.blog-archive .hm-blog-grid { row-gap: 40px; }

/* Category filter — same pill language as the resources FAQ tabs. */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 40px;
}
.blog-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid #e2e2e8;
    border-radius: 999px;
    background: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #5b5b66;
    text-decoration: none;
    transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.blog-filter-tab:hover {
    color: var(--hm-primary);
    border-color: var(--hm-primary);
    transform: translateY(-1px);
}
.blog-filter-tab.is-active {
    background: var(--hm-primary);   /* flat purple, not the duo gradient */
    border-color: var(--hm-primary);
    color: #fff;
}
.blog-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(148, 35, 255, .1);
    color: var(--hm-primary);
    font-size: 11px;
    font-weight: 700;
    transition: background-color .25s ease, color .25s ease;
}
.blog-filter-tab.is-active .blog-filter-count {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}
.blog-empty {
    text-align: center;
    font-size: 16px;
    color: #6a6a76;
    padding: 40px 0;
}

/* ================= RESOURCES HUB (/resources) ================= */
.res-hub { background: #fff; padding: 70px 0 10px; }
/* 2-across, matching the live hub (cards are 608px there). */
.res-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ---------- Resource card (live: outlined, fills purple on hover) ---------- */
.res-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 30px 38px;
    border: 1px solid #d6d6d6;
    border-radius: 20px;
    background: #fff;
    text-decoration: none;
    transition: background-color .3s ease, border-color .3s ease;
}
/* On the hub the cards sit side by side with titles of differing length, so
   stretch the copy to line the "Read More" links up along one baseline. The
   article rows don't: their tall spanning card would open a big empty gap. */
.res-hub-grid .res-card-text { flex: 1; }
.res-card:hover { background: var(--hm-primary); border-color: var(--hm-primary); }

.res-card-icon {
    display: block;
    margin-bottom: 12px;
    color: var(--hm-primary);      /* the inlined SVGs fill with currentColor */
    line-height: 0;
    transition: color .3s ease;
}
.res-card-icon svg { width: 48px; height: 48px; display: block; }
.res-card:hover .res-card-icon { color: #fff; }

.res-card-title {
    font-family: "Montserrat", sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hm-bg);
    margin: 0 0 12px;
    transition: color .3s ease;
}
.res-card:hover .res-card-title { color: #fff; }

.res-card-text {
    font-size: 16px;
    line-height: 1.7;
    color: #454545;
    margin: 0 0 20px;
    transition: color .3s ease;
}
.res-card:hover .res-card-text { color: #fff; }

.res-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #454545;
    transition: color .3s ease;
}
.res-card:hover .res-card-more { color: #fff; }
.res-card-arrow { transition: transform .3s ease; }
.res-card:hover .res-card-arrow { transform: translateX(4px); }

/* FAQ (white section, shares the .pdp-faq-* accordion) */
.res-faq { background: #fff; padding: 80px 0 90px; }
.res-faq-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.res-faq-sub {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #5b5b66;
}
.res-faq-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto 30px;
}
.res-faq-tab {
    padding: 9px 18px;
    border: 1px solid #e2e2e8;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #5b5b66;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.res-faq-tab:hover {
    color: var(--hm-primary);
    border-color: var(--hm-primary);
    transform: translateY(-1px);
}
.res-faq-tab.is-active {
    background: var(--hm-primary);   /* flat purple, not the duo gradient */
    border-color: var(--hm-primary);
    color: #fff;
}
.res-faq-list { margin-bottom: 44px; }

@media (max-width: 1024px) {
    .res-hub { padding: 50px 0 6px; }
    .res-faq { padding: 56px 0 64px; }
    /* Live stacks these below 768px; do it here so the 25px titles keep room. */
    .res-hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .res-hub-grid { gap: 18px; }
    .res-card { padding: 26px 24px; }
    .res-card-title { font-size: 21px; }
    .res-faq-tab { padding: 8px 14px; font-size: 13px; }
}

/* ============================================================
   HMToast — shared toast/notification (storefront + apanel).
   Solid light cards so they read on BOTH the dark storefront
   and the light apanel. Fixed to the top-right, stacked.
   JS: public/assets/js/hm-toast.js.
   ============================================================ */
.hm-toasts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 6000;                 /* ALWAYS the top layer — above every modal,
                                      drawer and blocking overlay: a toast is
                                      transient feedback and must never be
                                      buried under the thing it's commenting on */
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 40px));
    pointer-events: none;          /* container ignores clicks; toasts re-enable */
}
.hm-toasts--assertive { z-index: 6001; }  /* errors sit above info/success */

.hm-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2430;
    border: 1px solid #e6e6ee;
    border-left: 4px solid var(--hm-primary);
    box-shadow: 0 8px 24px rgba(14, 6, 23, 0.18);
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: opacity .22s ease, transform .22s ease;
}
.hm-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.hm-toast.is-leaving { opacity: 0; transform: translateY(-8px) scale(0.98); }

.hm-toast-icon { font-size: 16px; margin-top: 1px; flex: 0 0 auto; }
.hm-toast-msg  { flex: 1 1 auto; min-width: 0; word-wrap: break-word; }
.hm-toast-close {
    flex: 0 0 auto;
    background: none;
    border: none;
    color: #9a9aa6;
    font-size: 20px;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
    transition: color .15s ease;
}
.hm-toast-close:hover { color: #1f2430; }

/* Type accents — left border + icon color. */
.hm-toast--success { border-left-color: #16a34a; }
.hm-toast--success .hm-toast-icon { color: #16a34a; }
.hm-toast--error   { border-left-color: #dc2626; }
.hm-toast--error   .hm-toast-icon { color: #dc2626; }
.hm-toast--warning { border-left-color: #f59e0b; }
.hm-toast--warning .hm-toast-icon { color: #f59e0b; }
.hm-toast--info    { border-left-color: var(--hm-primary); }
.hm-toast--info    .hm-toast-icon { color: var(--hm-primary); }

@media (max-width: 520px) {
    .hm-toasts { top: 12px; right: 12px; left: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-toast { transition: opacity .01s linear; transform: none; }
    .hm-toast.is-visible, .hm-toast.is-leaving { transform: none; }
}


/* ==========================================================================
   Clinical Simulation application page (/applications/medical-simulation)
   Ported from the approved design comp. EVERYTHING is namespaced: selectors
   live under `.cs-page` and classes carry a `cs-` prefix. The comp was a
   standalone document — it styled bare `body`, `h2`, `p`, `a` and set its
   palette on `:root`, all of which would have restyled the entire storefront.
   Its class names (.hero, .sec, .card, .grid, .btn) are generic enough that
   the prefix is what keeps them from colliding now or later.
   ========================================================================== */
.cs-page{
  --canvas:#0C0012;
  --canvas-2:#140A20;
  --white:#F4F1FB;
  --lilac:#B3A8CE;
  --muted:#83799B;
  --purple:#9423FF;
  --blue:#3D7EF5;
  --sienna:#C95740;
  --rule:rgba(179,168,206,.15);
  --rule-strong:rgba(179,168,206,.3);
  --axis:linear-gradient(90deg,#9423FF 0%,#3D7EF5 100%);
  --pad:clamp(22px,6vw,110px);
}
.cs-page *{box-sizing:border-box}
.cs-page{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){
.cs-page{scroll-behavior:auto}
.cs-page *{transition:none!important;animation:none!important}
}
.cs-page{margin:0;background:var(--canvas);color:var(--white);
  font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:17px;line-height:1.6;
  -webkit-font-smoothing:antialiased}
/* Only UNCLASSED links inherit. The comp had a bare `a{color:inherit}` at
   specificity 0,0,1 — below `.btn` (0,1,0) — so a button's own colour won.
   Namespacing it to `.cs-page a` raised it to 0,1,1, which outranked every
   button class: the light section rendered "Discuss a hormone pellet training
   application" in dark navy on purple. Every styled link here carries a class,
   so :not([class]) restores the comp's cascade exactly. */
.cs-page a:not([class]){color:inherit}
.cs-tnum{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
/* ---------- utility type ---------- */ .cs-meta{font-family:'Hanken Grotesk';font-size:11px;font-weight:600;letter-spacing:.19em;
  text-transform:uppercase;color:var(--muted)}
.cs-page h2{font-family:'Poppins';font-weight:700;font-size:clamp(30px,3.7vw,50px);line-height:1.05;
  letter-spacing:-.024em;margin:0 0 22px;color:var(--white)}
.cs-page h2 .cs-g{background:var(--axis);-webkit-background-clip:text;background-clip:text;color:transparent;
  -webkit-text-fill-color:transparent}
.cs-page h3{font-family:'Poppins';font-weight:600;font-size:18px;letter-spacing:-.01em;margin:0 0 8px}
.cs-page p{margin:0 0 20px;color:var(--lilac)}
.cs-page p.cs-big{font-size:19.5px;line-height:1.55;color:var(--white)}
/* ---------- shell ----------
   Full-bleed by choice. The comp capped this at 1680px, which on a wider display
   left a thin band of page background down both sides of the hero photo — the
   page read as a box floating in the viewport rather than filling it, and the
   inset didn't line up with the site header's own container either. The gutters
   come from --pad (22px–110px), so the text still never touches the edge. */
.cs-shell{width:100%;margin:0 auto}
.cs-pad{padding-left:var(--pad);padding-right:var(--pad)}
.cs-sec{padding-top:132px;padding-bottom:132px;position:relative}
.cs-sec--tight{padding-top:96px;padding-bottom:96px}
.cs-measure{max-width:660px}
/* ---------- hero ---------- */ .cs-hero{min-height:80vh;display:flex;flex-direction:column;justify-content:flex-end;
  padding-top:120px;padding-bottom:0;position:relative;overflow:hidden}
.cs-hero .cs-photo{position:absolute;inset:0;background:
  linear-gradient(to top,rgba(12,0,18,.98) 0%,rgba(12,0,18,.94) 14%,rgba(12,0,18,.55) 28%,rgba(12,0,18,0) 46%),
  linear-gradient(96deg,rgba(12,0,18,.94) 0%,rgba(12,0,18,.72) 46%,rgba(12,0,18,.3) 100%),
  #241B31;background-size:cover;background-position:center right}
.cs-hero .cs-photo em{position:absolute;right:26px;top:22px;font-style:normal;font-size:10.5px;
  letter-spacing:.16em;text-transform:uppercase;color:#6A6180}
.cs-hero .cs-inner{position:relative;z-index:2;padding-bottom:56px}
.cs-hero h1{font-family:'Poppins';font-weight:700;font-size:clamp(38px,6vw,80px);line-height:.98;
  letter-spacing:-.035em;margin:0 0 24px;max-width:14ch}
.cs-hero p{font-size:20px;line-height:1.5;color:var(--white);max-width:44ch;margin-bottom:34px}
.cs-acts{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
/* the axis strip closing the hero */ .cs-axisbar{position:relative;z-index:2;border-top:1px solid var(--rule-strong);
  display:flex;align-items:stretch;padding-bottom:6px}
.cs-axisbar .cs-cell{flex:1;padding:20px 26px 22px 0;border-right:1px solid var(--rule)}
.cs-axisbar .cs-cell + .cs-cell{padding-left:26px}
.cs-axisbar .cs-cell:last-child{border-right:0}
.cs-axisbar .cs-v{font-family:'Poppins';font-weight:600;font-size:20px;letter-spacing:-.01em;color:var(--white)}
.cs-axisbar .cs-v span{color:var(--sienna)}
.cs-axisbar .cs-k{margin-top:5px;font-size:12.5px;color:var(--lilac);line-height:1.45}

/* Entrance motion, page-scoped.
   The shared keyframes travel translate3d(±100%) — a full element width/height —
   over 1.25s. That's calibrated for the homepage's short cards; on this page's
   tall sections and full-bleed photos it reads as a slide transition rather than
   a reveal. The side slides are gone from the markup entirely, and the remaining
   rise is a fixed 14px so the distance stays the same whether the element is a
   heading or a 500px-tall column. Shorter and eased-out, so it settles instead
   of arriving.
   (CLAUDE.md grants animation judgment where production's choice is
   inappropriate — same latitude used for the bento cards.) */
@keyframes csFadeUp { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
.cs-page [data-animate="fadeInUp"].hm-in { animation-name: csFadeUp; }
.cs-page [data-animate].hm-in {
    animation-duration: .62s;
    animation-timing-function: cubic-bezier(.22, .61, .36, 1);
}

/* Hover states use the site's established convention — brand purple resolves to
   --hm-magenta (#FF25FB) on hover, the same as .btn-hm-solid, .hm-product-btn
   and .hm-bento-link — rather than the comp's one-off #A63FFF / --blue tints. */
/* ---------- buttons ---------- */ .cs-btn{display:inline-block;background:var(--purple);color:#fff;text-decoration:none;
  font-family:'Poppins';font-weight:600;font-size:14.5px;letter-spacing:.005em;
  padding:15px 28px;border-radius:4px;transition:background 160ms ease}
.cs-btn:hover{background:var(--hm-magenta);color:#fff}
.cs-btn:focus-visible, .cs-lnk:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.cs-lnk{display:inline-block;text-decoration:none;font-family:'Poppins';font-weight:600;font-size:14.5px;
  color:var(--white);padding-bottom:3px;border-bottom:1.5px solid var(--purple);transition:border-color 160ms ease}
.cs-lnk:hover{color:var(--hm-magenta);border-bottom-color:var(--hm-magenta)}
/* ---------- section head ---------- */ .cs-shead{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:80px;align-items:start}
.cs-shead .cs-lede{padding-top:8px}
/* ---------- spec table ---------- */ .cs-spec{width:100%;border-collapse:collapse;margin-top:56px}
.cs-spec caption{text-align:left;padding-bottom:14px;font-size:11px;font-weight:600;letter-spacing:.19em;
  text-transform:uppercase;color:var(--muted)}
.cs-spec th{text-align:left;font-family:'Hanken Grotesk';font-size:11px;font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;color:var(--muted);padding:0 20px 12px 0;border-bottom:1px solid var(--rule-strong)}
.cs-spec td{padding:19px 20px 19px 0;border-bottom:1px solid var(--rule);vertical-align:baseline;
  font-size:15.5px;color:var(--lilac)}
.cs-spec td:first-child{color:var(--white);font-weight:500;width:31%}
.cs-spec td.cs-num{font-family:'Poppins';font-weight:600;color:var(--sienna);white-space:nowrap;width:26%}
.cs-specnote{margin-top:16px;font-size:13px;color:var(--muted);max-width:60ch}
/* ---------- comparison ---------- */ .cs-vs{width:100%;border-collapse:collapse;margin-top:72px;table-layout:fixed}
/* Below the table, reading as a footnote to the comparison rather than a title
   above it. A <caption> must be the table's first child in markup, so the
   placement can only come from caption-side; the padding moves to the top so
   the gap sits between the last row and this line. */
.cs-vs caption{caption-side:bottom;text-align:left;padding-top:14px;padding-bottom:8px;
  font-size:11px;font-weight:600;letter-spacing:.19em;
  text-transform:uppercase;color:var(--muted)}
.cs-vs th{text-align:left;font-family:'Hanken Grotesk';font-size:11px;font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;padding:0 24px 12px 0;border-bottom:1px solid var(--rule-strong);color:var(--muted)}
.cs-vs th.cs-mine{color:var(--white)}
.cs-vs td{padding:20px 24px 20px 0;border-bottom:1px solid var(--rule);vertical-align:top;font-size:15px;line-height:1.5}
.cs-vs td:first-child{color:var(--white);font-weight:500;width:22%}
.cs-vs td.cs-mine{color:var(--lilac);width:41%}
.cs-vs td.cs-theirs{color:var(--muted);width:37%}
.cs-vs td.cs-mine b{color:var(--sienna);font-family:'Poppins';font-weight:600;white-space:nowrap}
@media(max-width:860px){
/* The table becomes a stack of rows. FLEX column, not plain block: as a block
   the <caption> still generates an anonymous table box that shrink-wraps to a
   sliver and can't be re-ordered. Flex gives it full width and lets `order`
   keep it below the rows. */
.cs-vs{display:flex;flex-direction:column;width:auto}
.cs-vs tbody, .cs-vs tr, .cs-vs td{display:block;width:auto}
/* The 22/41/37% column widths are (0,2,1) — more specific than `.cs-vs td`
   above — so they survive the stack and squeeze each cell into a narrow column
   with dead space beside it. Cleared by matching specificity, later in source. */
.cs-vs td:first-child, .cs-vs td.cs-mine, .cs-vs td.cs-theirs{width:auto}
.cs-vs caption{display:block;order:1;width:auto}
.cs-vs thead{display:none}
.cs-vs tr{padding:20px 0;border-bottom:1px solid var(--rule)}
.cs-vs td{border:0;padding:0 0 8px}
.cs-vs td.cs-mine:before{content:"SimuGel · ";color:var(--white);font-weight:600}
.cs-vs td.cs-theirs:before{content:"Silicone · ";font-weight:600}
}
/* ---------- use case ---------- */ .cs-uc{display:grid;grid-template-columns:minmax(0,46%) minmax(0,54%);align-items:center;gap:0}
.cs-uc .cs-txt{padding-right:78px}
.cs-uc .cs-img{height:clamp(340px,46vw,520px);border-radius:4px;background-color:#241B31;
  background-size:cover;background-position:center;
  display:flex;align-items:flex-end;padding:20px 22px;margin-right:calc(var(--pad) * -1)}
.cs-uc .cs-img.cs-has-photo em{display:none}
.cs-jrow .cs-th{background-size:cover;background-position:center}
.cs-uc .cs-img em{font-style:normal;font-size:10.5px;letter-spacing:.15em;text-transform:uppercase;color:#6A6180;line-height:1.9}
.cs-uc--rev .cs-txt{order:2;padding-right:0;padding-left:78px}
.cs-uc--rev .cs-img{order:1;margin-right:0;margin-left:calc(var(--pad) * -1)}
.cs-uc h2{font-size:clamp(27px,3.1vw,40px)}
.cs-uc ul{list-style:none;margin:0 0 30px;padding:0}
.cs-uc li{padding:15px 0;border-top:1px solid var(--rule);font-size:15.5px;line-height:1.55;color:var(--lilac)}
.cs-uc li:last-child{border-bottom:1px solid var(--rule)}
.cs-uc li b{display:block;color:var(--white);font-weight:600;font-family:'Poppins';font-size:14.5px;margin-bottom:4px}
.cs-uc .cs-disclaim{font-size:12.5px;color:var(--muted);margin:16px 0 0}
/* ---------- the gauge, .cs-page signature element ---------- */ .cs-gauge{margin-top:64px}
.cs-gauge .cs-bar{height:5px;border-radius:3px;background:var(--axis)}
.cs-ticks{display:grid;grid-template-columns:repeat(6,1fr);margin-top:0}
.cs-tick{position:relative;padding-top:26px;padding-right:22px}
.cs-tick + .cs-tick{padding-left:22px;border-left:1px solid var(--rule)}
.cs-tick + .cs-tick:before{left:22px}
.cs-tick:before{content:"";position:absolute;left:0;top:0;width:1px;height:17px;background:var(--rule-strong)}
.cs-tick .cs-n{font-family:'Poppins';font-weight:700;font-size:30px;line-height:1;color:var(--sienna);letter-spacing:-.02em}
.cs-tick .cs-n i{font-style:normal;font-size:.6em;font-weight:600;margin-right:1px;vertical-align:.12em}
.cs-tick .cs-d{margin-top:8px;font-size:13.5px;color:var(--white);font-weight:600;line-height:1.35}
.cs-tick .cs-tis{margin-top:12px;padding-top:12px;border-top:1px solid var(--rule);
  font-size:13px;line-height:1.85;color:var(--lilac)}
.cs-tick .cs-tis span{display:block}
.cs-ends{display:flex;justify-content:space-between;margin-top:34px;padding-top:16px;
  border-top:1px solid var(--rule);flex-wrap:wrap;gap:10px}
.cs-ends span{font-size:11px;font-weight:600;letter-spacing:.17em;text-transform:uppercase;color:var(--muted)}
/* ---------- value list ---------- */ .cs-vals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 72px;margin-top:44px}
.cs-vals div{padding:24px 0;border-top:1px solid var(--rule)}
.cs-vals p{margin:0;font-size:15px}
/* ---------- band ---------- */ .cs-band{background:linear-gradient(100deg,#2A0C5C 0%,#6C18CC 54%,#9423FF 100%);
  padding-top:104px;padding-bottom:104px}
.cs-band .cs-bandgrid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:70px;align-items:end}
.cs-band h2{color:#fff;max-width:none;font-size:clamp(30px,4.4vw,58px);margin-bottom:0}
.cs-band p{color:#EBDDFF;max-width:46ch;font-size:18px;margin:0 0 26px}
.cs-band .cs-bandact{padding-bottom:4px}
.cs-band .cs-btn{background:#fff;color:#3D0E86}
.cs-band .cs-btn:hover{background:var(--hm-magenta);color:#fff}
/* ---------- journal ---------- */ .cs-jrow{display:grid;grid-template-columns:110px minmax(0,1fr) 150px;gap:32px;align-items:center;
  padding:26px 0;border-top:1px solid var(--rule);text-decoration:none}
.cs-jrow:last-of-type{border-bottom:1px solid var(--rule)}
/* background-COLOR, not the `background` shorthand: the shorthand also resets
   background-size/position, and this rule sits AFTER the `background-size:cover`
   above, so the shorthand would drop these thumbnails back to auto/top-left —
   the photo rendered at natural size, cropped to its top-left corner. */
.cs-jrow .cs-th{height:70px;border-radius:3px;background-color:#241B31}
.cs-jrow h3{margin:0;font-size:19px;font-weight:600;transition:color 160ms ease}
.cs-jrow:hover h3{color:var(--hm-magenta)}
.cs-jrow .cs-when{font-size:12.5px;color:var(--muted);text-align:right}
.cs-jrow .cs-cat{font-size:11px;font-weight:600;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);margin-top:7px}
/* ---------- foot ---------- */ .cs-foot{padding-top:64px;padding-bottom:80px;border-top:1px solid var(--rule);
  display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap;align-items:baseline}
@media(max-width:860px){
.cs-band .cs-bandgrid{grid-template-columns:1fr;gap:26px;align-items:start}
.cs-band h2{font-size:29px}
.cs-page{font-size:16px}
.cs-pad{padding-left:22px;padding-right:22px}
.cs-sec, .cs-sec--tight{padding-top:68px;padding-bottom:68px}
.cs-hero{min-height:auto;padding-top:96px}
.cs-hero .cs-inner{padding-bottom:40px}
.cs-axisbar{flex-wrap:wrap}
.cs-axisbar .cs-cell{flex:1 1 50%;border-right:0;border-bottom:1px solid var(--rule);padding-right:16px}
.cs-shead{grid-template-columns:1fr;gap:0}
.cs-uc, .cs-uc--rev{grid-template-columns:1fr;gap:34px}
.cs-uc .cs-txt, .cs-uc--rev .cs-txt{order:2;padding:0}
/* -22px, NOT calc(var(--pad) * -1). This block resets .cs-pad to a flat 22px,
   but --pad stays on its clamp (6vw ≈ 46px at 768). Pulling by --pad against
   22px of padding pushed the photo 24px past the viewport on each side and gave
   the page a horizontal scrollbar between roughly 700px and 860px wide. The
   negative margin has to match the padding it is cancelling. */
/* The whole frame, not a letterbox. A fixed 250px height against a full-width
   box cropped these 3:2 photos to roughly half their height — the trocar shot
   kept the blades and cut the hands holding them. Matching the box to the source
   ratio lets `cover` fill it exactly, so the full photo shows at every width. */
.cs-uc .cs-img, .cs-uc--rev .cs-img{order:1;margin-left:-22px;
    margin-right:-22px;height:auto;aspect-ratio:3/2;border-radius:0}
.cs-ticks{grid-template-columns:repeat(3,1fr);gap:22px 0}
.cs-vals{grid-template-columns:1fr;gap:0}
.cs-jrow{grid-template-columns:70px minmax(0,1fr);gap:18px}
.cs-jrow .cs-when{display:none}
.cs-spec td:first-child{width:auto}
}
/* ---------- light section ---------- */ .cs-light{background:#F4F1FB;color:#1A1030}
.cs-light h2{color:#1A1030}
.cs-light h2 .cs-g{background:none;-webkit-background-clip:border-box;background-clip:border-box;
  color:#6C18CC;-webkit-text-fill-color:#6C18CC}
.cs-light h3{color:#1A1030}
.cs-light p{color:#4B4265}
.cs-light p.cs-big{color:#1A1030}
.cs-light .cs-meta, .cs-light .cs-cat, .cs-light .cs-when{color:#6E6588}
.cs-light .cs-jrow{border-top-color:#DED6EF}
.cs-light .cs-jrow:last-of-type{border-bottom-color:#DED6EF}
.cs-light .cs-jrow .cs-th{background-color:#DDD5EC}
.cs-light .cs-jrow:hover h3{color:var(--hm-magenta)}
.cs-light .cs-lnk{color:#1A1030;border-bottom-color:#6C18CC}
.cs-light .cs-lnk:hover{color:var(--hm-magenta);border-bottom-color:var(--hm-magenta)}
.cs-light .cs-btn-outline{display:inline-block;text-decoration:none;font-family:'Poppins';font-weight:600;
  font-size:14.5px;padding:13.5px 26px;border-radius:4px;border:1.5px solid #6C18CC;color:#6C18CC}
.cs-light .cs-btn-outline:hover{background:var(--hm-magenta);border-color:var(--hm-magenta);color:#fff}
.cs-light .cs-tnum{font-variant-numeric:tabular-nums}
/* ---------- outline button, .cs-page dark surface ---------- */ .cs-btn-outline{display:inline-block;text-decoration:none;font-family:'Poppins';font-weight:600;
  font-size:14.5px;padding:13.5px 26px;border-radius:4px;border:1.5px solid var(--lilac);
  color:var(--white);transition:background 160ms ease,color 160ms ease}
.cs-btn-outline:hover{background:var(--hm-magenta);border-color:var(--hm-magenta);color:#fff}
.cs-btn-outline:focus-visible{outline:2px solid var(--purple);outline-offset:3px}
/* ---------- light use-case module ---------- */ .cs-light .cs-uc li{border-top-color:#DED6EF;color:#4B4265}
.cs-light .cs-uc li:last-child{border-bottom-color:#DED6EF}
.cs-light .cs-uc li b{color:#1A1030}
.cs-light .cs-uc .cs-disclaim{color:#6E6588}
/* The reported HRT bug: this shorthand reset background-size to auto and
   background-position to 0% 0%, so the light section rendered its photo at
   natural size from the top-left corner instead of covering the box. */
.cs-light .cs-uc .cs-img{background-color:#DCD4EC}
.cs-light .cs-uc .cs-img em{color:#7A7092}
.cs-light .cs-spec td, .cs-light .cs-vs td{color:#4B4265}
.cs-light .cs-specnote{color:#6E6588}

/* Order tracking: "Updates from us" (admin notes addressed to the buyer).
   Mirrors the account page's .od-update treatment so the same message reads
   identically whether the person is signed in or tracking as a guest. */
/* Shared by the order-tracking page (.ty-*) and the payment link (.pay-*).
   Both are light surfaces (#fff cards on #f4f6f9) using the same tokens, and
   the two must look identical — the same admin note reaches a customer through
   either route, so styling them separately would only let them drift.
   Light surface: --hm-bg for content, #9a9aa6 for meta — NOT the dark
   storefront palette, whose near-white body text is invisible here. */
.ty-updates, .pay-updates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ty-update, .pay-update { display: flex; gap: 12px; align-items: flex-start; }
.ty-update-mark, .pay-update-mark { flex: 0 0 auto; color: var(--hm-primary); font-size: 13px; margin-top: 3px; }
.ty-update-body, .pay-update-body { min-width: 0; }
.ty-update-text, .pay-update-text { margin: 0 0 4px; font-size: 15px; line-height: 1.65; color: var(--hm-bg); }
.ty-update-meta, .pay-update-meta { margin: 0; font-size: 12.5px; color: #9a9aa6; }

/* The pay page's cards are narrower (360px column) and its type scale is a
   step down from the tracking page's, so the note text follows .pay-review-text
   rather than sitting oversized next to the order details beneath it. */
.pay-update-text { font-size: 13.5px; line-height: 1.6; }
.pay-update-meta { font-size: 11.5px; }
/* .ck-card-title is margin:0 by default — each card sets its own gap. 16px
   plus the first mark's 3px offset lands on the ~20px the Order Details and
   Your Items cards beside it already use. */
.pay-updates-card .ck-card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.pay-updates-card .ck-card-title i { color: var(--hm-primary); font-size: 14px; }


/* ---------- Rich-content code blocks (authored in the apanel editor) ---------- */
.bp-body pre,
.pdp-rich pre {
    background: #16151a;
    color: #e8e6f0;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 0 0 1.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;              /* wide code scrolls inside the block, never the page */
}
.bp-body pre code,
.pdp-rich pre code {
    font-family: inherit;
    font-size: inherit;
    background: none;
    color: inherit;
    padding: 0;
}


/* ---------- Product page: Request-a-Quote ---------- */
/* Entry button: quiet gray next to the solid Add-to-cart, per the mockup. */
.pdp-quote-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    background: #efeef4;
    color: var(--hm-bg);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color .18s ease;
}
.pdp-quote-btn:hover { background: #e4e2ec; }
.pdp-quote-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6a6a76;
    text-align: center;
}

/* Modal chrome — the field styles come from .contact-form (shared). */
.pdp-quote-modal .modal-dialog { max-width: 480px; }
.pdp-quote-modal .modal-content {
    border: 0;
    border-radius: 16px;
    background: #fff;
    position: relative;
}
.pdp-quote-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: #9a9aa6;
    cursor: pointer;
    z-index: 2;
}
.pdp-quote-close:hover { color: var(--hm-bg); }
.pdp-quote-body { padding: 28px 28px 24px; }
.pdp-quote-title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hm-bg);
}
.pdp-quote-sub {
    margin: 0 0 18px;
    font-size: 14px;
    color: #6a6a76;
}
.pdp-quote-robot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 14px;
    font-size: 14px;
    color: var(--hm-bg);
    cursor: pointer;
}
.pdp-quote-robot input { width: 17px; height: 17px; accent-color: var(--hm-primary); }
.pdp-quote-sent { text-align: center; }
.pdp-quote-sent-icon { display: block; font-size: 44px; color: #10b981; margin-bottom: 12px; }
.pdp-quote-sent .contact-submit { width: auto; padding-inline: 34px; }
@media (max-width: 575px) {
    .pdp-quote-body { padding: 22px 18px 18px; }
}

/* reCAPTCHA widgets on the lead forms (rendered only when keys configured). */
.contact-captcha { margin: 4px 0 16px; }
.pdp-quote-captcha { margin: 4px 0 14px; }

/* reCAPTCHA v3 attribution on the auth forms (badge hidden per Google's
   branding rules, so this note is REQUIRED — see auth/_recaptcha_v3.php). */
.auth-recaptcha-note {
    margin: 2px 0 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #8a8a96;
}
.auth-recaptcha-note a { color: inherit; text-decoration: underline; }
.auth-recaptcha-note a:hover { color: var(--hm-primary); }

/* PDP availability states (meta row) */
.pdp-stock-in  { color: #10b981; font-weight: 600; }
.pdp-stock-out { color: #ef4444; font-weight: 600; }

/* Out-of-stock badge on product cards — top-right so a product that is BOTH
   on sale and out of stock shows both without overlap. */
.hm-product-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    background: #4b5563;
    color: #fff;
    font: 700 11px/1 "Montserrat", sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 6px 10px;
    border-radius: 999px;
}

/* ---------- Cart: request-a-quote panel ---------- */
.cart-quote {
    margin-top: 14px;
    border: 1px dashed #cbcad7;
    border-radius: 12px;
    background: #faf9fd;
}
.cart-quote-summary {
    cursor: pointer;
    list-style: none;
    padding: 13px 16px;
    font: 600 14px/1.4 "Montserrat", sans-serif;
    color: #3a3644;
}
.cart-quote-summary::-webkit-details-marker { display: none; }
.cart-quote-summary:hover { color: var(--hm-primary); }
.cart-quote[open] .cart-quote-summary { border-bottom: 1px dashed #e0dee9; }
.cart-quote-sub { margin: 12px 16px 0; font-size: 13px; color: #6a6a76; }
.cart-quote-form { padding: 12px 16px 16px; }
.cart-quote-form textarea.cart-input { min-height: 74px; resize: vertical; }
.cart-quote-submit { width: 100%; margin-top: 12px; }
.cart-quote-error {
    margin: 12px 16px 0;
    font-size: 13px;
    color: #d92d2d;
}
.cart-quote-flash {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
}
.cart-quote-flash--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }

/* ============================================================ FLUID MOTION
   The Apple-design pass, storefront edition. Three moves, everything else
   left alone: (1) press feedback on every brand button family — response
   lives on the pointer-down, not the release; (2) the cart drawer becomes a
   real gesture surface (cart-drawer.js drives it — these are its states);
   (3) the PDP quote modal materializes instead of using Bootstrap's -50px
   drop. The header deliberately stays SOLID — humimic.com's is solid at all
   times, and brand extraction beats effect. Reduced-motion fallbacks at the
   bottom of the block. */

/* 1 — Press. One uniform superset transition across the button families so
   the transform channel exists everywhere without losing any family's own
   hover animation (CSS transition shorthands replace, never merge — the
   superset is the only safe way to add a property to eight variants). */
.btn-hm-gradient, .btn-hm-outline, .btn-hm-solid, .btn-hm-ghost,
.btn-hm-engineered, .btn-hm-viewall, .btn-hm-cta, .btn-hm-footer-contact {
    transition: background-color .3s ease, border-color .3s ease, color .3s ease,
                filter .2s ease, box-shadow .3s ease, transform .15s ease-out;
}
.btn-hm-gradient:active, .btn-hm-outline:active, .btn-hm-solid:active, .btn-hm-ghost:active,
.btn-hm-engineered:active, .btn-hm-viewall:active, .btn-hm-cta:active, .btn-hm-footer-contact:active {
    transform: translateY(1px) scale(.98);
}
/* Small controls press too — icons, drawer steppers, account nav. */
.hm-icon-link:active, .hm-drawer-close:active, .hm-drawer-qty-btn:active,
.hm-to-top:active, .pdp-quote-btn:active { transform: scale(.92); }
.acct-nav-item:active { transform: scale(.985); }
.hm-icon-link, .hm-drawer-close, .hm-drawer-qty-btn, .pdp-quote-btn, .acct-nav-item {
    transition-property: color, background-color, border-color, transform;
    transition-duration: .2s, .2s, .2s, .12s;
    transition-timing-function: ease, ease, ease, ease-out;
}

/* 2 — Drawer gesture states. The panel's class transition handles plain
   open/close (iOS-sheet curve); while a finger owns it, .is-dragging kills
   the transition so tracking is 1:1, and cart-drawer.js writes transform +
   backdrop opacity inline every frame. touch-action keeps vertical list
   scrolling native while the horizontal axis belongs to the gesture. */
.hm-drawer-panel { transition: transform .4s cubic-bezier(.32, .72, .35, 1); touch-action: pan-y; }
.hm-drawer-panel.is-dragging { transition: none; user-select: none; -webkit-user-select: none; }
.hm-drawer.is-open .hm-drawer-backdrop { transition: opacity .4s cubic-bezier(.32, .72, .35, 1); }

/* 3 — Quote modal materializes: a 12px rise + slight scale on the sheet
   curve, replacing Bootstrap's default translate(0,-50px) drop. */
.pdp-quote-modal.fade .modal-dialog {
    transform: translateY(12px) scale(.96);
    transition: transform .3s cubic-bezier(.32, .72, .35, 1);
}
.pdp-quote-modal.show .modal-dialog { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .btn-hm-gradient:active, .btn-hm-outline:active, .btn-hm-solid:active, .btn-hm-ghost:active,
    .btn-hm-engineered:active, .btn-hm-viewall:active, .btn-hm-cta:active, .btn-hm-footer-contact:active,
    .hm-icon-link:active, .hm-drawer-close:active, .hm-drawer-qty-btn:active,
    .hm-to-top:active, .pdp-quote-btn:active, .acct-nav-item:active { transform: none; }
    .hm-drawer-panel { transition-duration: .01s; }
    .hm-drawer.is-open .hm-drawer-backdrop { transition-duration: .01s; }
    .pdp-quote-modal.fade .modal-dialog { transform: none; transition: none; }
}

/* Reseller wholesale badge on the PDP price row. */
.pdp-wholesale-badge {
    display: inline-flex; align-items: center;
    margin-left: 10px; padding: 5px 11px; border-radius: 999px;
    background: #efeafc; color: #6d21b5;
    font: 600 12px/1 Montserrat, sans-serif; letter-spacing: .02em;
}

/* Reseller state note on the account dashboard. */
.acct-reseller-note {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 13.5px;
}
.acct-reseller-note--pending { background: #fdf6e7; color: #8a5a06; }
.acct-reseller-note--active  { background: #eafaf1; color: #1e7e4b; }
