/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color system — Apple-inspired neutrals with one restrained blue accent */
    --ink: #1d1d1f;             /* primary text */
    --ink-body: #424245;        /* long-form copy */
    --ink-secondary: #6e6e73;   /* secondary text */
    --ink-muted: #86868b;       /* tertiary / captions */
    --ink-faint: #a1a1a6;       /* disabled / faint */
    --surface: #ffffff;
    --surface-alt: #f5f5f7;     /* light gray panels */
    --surface-near: #fbfbfd;    /* barely off-white */
    --border: #e8e8ed;
    --border-strong: #d2d2d7;
    --accent: #0071e3;          /* primary accent (buttons, links) */
    --accent-hover: #0077ed;
    --accent-deep: #0066cc;     /* accent text on tinted fills */
    --accent-tint: #eaf2fb;     /* selected / highlight fills */
    --accent-tint-strong: #ddebf8;
    --accent-wash: #f5f9fd;     /* faint highlight backgrounds */
    --accent-tint-border: #c8dff5;
    --accent-on-dark: #2997ff;  /* accent text on dark surfaces */
    --green: #0f7a43;
    --green-tint: #e8f4ec;
    --red: #e30000;
    --red-tint: #fdecec;
    --amber: #b45309;
    --amber-tint: #fcf3e2;
    --star: #f5a623;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-standard: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
}

html {
    overflow-x: clip;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--ink);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

h1 { font-size: 52px; line-height: 1.1; font-weight: 700; }
h2 { font-size: 40px; line-height: 1.15; font-weight: 700; }
h3 { font-size: 28px; line-height: 1.2; font-weight: 600; }
h4 { font-size: 20px; line-height: 1.3; font-weight: 600; }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ANNOUNCEMENT BAR
   ======================================== */

.announcement-bar {
    background: var(--accent);
    color: #ffffff;
    text-align: center;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 101;
    overflow: hidden;
    max-height: 50px;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-bar.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.announcement-bar-text {
    flex: 1;
}

/* Rotating announcement messages */
.announcement-rotator {
    flex: 1;
    position: relative;
    height: 18px;
    overflow: hidden;
}
.announcement-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.announcement-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.announcement-slide strong { font-weight: 700; }

/* Each slide carries a full and a short wording. The bar is a single
   nowrap line, so long copy would be clipped once the viewport can't fit it
   — swap in the short variant instead, with ellipsis as a last resort on
   very narrow screens. The longest full message needs ~950px of the bar,
   so swap below 1080px to leave headroom for font differences. */
.announcement-full,
.announcement-short {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.announcement-short { display: none; }

@media (max-width: 1080px) {
    .announcement-full { display: none; }
    .announcement-short { display: block; }
}

@media (max-width: 600px) {
    .announcement-rotator { height: 20px; }
    .announcement-slide { font-size: 12px; }
}

.announcement-bar a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announcement-bar a:hover {
    opacity: 0.85;
    color: #ffffff;
}

.announcement-bar-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}
.announcement-bar-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}
@media (max-width: 600px) {
    .announcement-bar { padding: 8px 40px 8px 16px; font-size: 12px; }
    .announcement-bar-close { right: 10px; }
}

/* ========================================
   HEADER - Dark / Beatbot Style
   ======================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 14, 16, 0.95);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition-standard),
                box-shadow var(--transition-standard),
                border-color var(--transition-standard);
    will-change: transform;
}

.header.scrolled {
    background: rgba(18, 18, 20, 0.82);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex: 1 1 0;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
    min-width: 0;
}

.logo:hover {
    color: #ffffff;
}

/* Icon polish — rounded, modern strokes + smooth micro-motion */
.header svg,
.mega-dropdown svg,
.mobile-menu svg {
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mega-sidebar-thumb svg,
.mega-explore-link svg,
.mega-link-card svg {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}
.mega-sidebar-cat:hover .mega-sidebar-thumb svg,
.mega-sidebar-cat.active .mega-sidebar-thumb svg {
    transform: scale(1.1);
}
.mega-explore-link:hover svg,
.mega-link-card:hover svg {
    transform: translateX(2px);
}

/* Desktop Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 1 auto;
    justify-content: center;
}

.nav-link {
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 14px 13px;
    letter-spacing: -0.005em;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link-shop {
    font-weight: 500;
    color: #fff;
}

.nav-chevron {
    margin-left: 3px;
    opacity: 0.55;
    vertical-align: middle;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-mega:hover .nav-chevron,
.has-mega.mega-active .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-item {
    position: relative;
}

.has-mega {
    position: static;
}

/* ===== Mega Dropdown ===== */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.mega-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.has-mega:hover .mega-dropdown,
.mega-dropdown.mega-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    min-height: 400px;
    max-height: calc(100vh - 80px);
    overflow: hidden;
}

/* Sidebar */
.mega-sidebar {
    background: var(--surface-alt);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}
.mega-sidebar-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
    padding: 6px 20px 10px;
}

.mega-sidebar-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-body);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}
.mega-sidebar-cat:hover,
.mega-sidebar-cat.active {
    background: #fff;
    color: var(--ink);
    border-left-color: var(--accent);
}
.mega-sidebar-new {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-deep);
    background: var(--accent-tint);
    padding: 2px 7px;
    border-radius: 99px;
}
.mega-sidebar-thumb {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    flex-shrink: 0;
    transition: all 0.15s ease;
}

/* Brand monograms (By Brand mega sidebar + mobile brands panel) */
.mega-thumb-brand {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.mega-sidebar-cat:hover .mega-thumb-brand,
.mega-sidebar-cat.active .mega-thumb-brand {
    color: var(--accent-deep);
}
.mobile-brand-monogram {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--ink-muted);
    flex-shrink: 0;
}
.mega-sidebar-cat:hover .mega-sidebar-thumb,
.mega-sidebar-cat.active .mega-sidebar-thumb {
    background: var(--accent-tint);
    border-color: var(--accent-tint-border);
    color: var(--accent);
}

.mega-sidebar-viewall {
    display: block;
    margin-top: auto;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}
.mega-sidebar-viewall:hover { color: var(--accent-hover); }

/* Explore More (right column) */
.mega-explore {
    background: var(--surface-alt);
    border-left: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}
.mega-explore-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-body);
    text-decoration: none;
    transition: all 0.15s ease;
}
.mega-explore-link svg {
    color: var(--ink-faint);
    flex-shrink: 0;
    transition: color 0.15s ease;
}
.mega-explore-link:hover {
    color: var(--accent);
    background: #fff;
}
.mega-explore-link:hover svg { color: var(--accent); }

/* Link-based mega panels (Learn, Support) */
.mega-inner-links {
    grid-template-columns: 1fr 1fr 1fr;
    min-height: auto;
    gap: 0;
}
.mega-links-col {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mega-links-col:not(:last-child) {
    border-right: 1px solid var(--border);
}
.mega-links-col .mega-sidebar-label {
    padding-bottom: 12px;
}
.mega-link-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--ink-body);
    transition: all 0.15s ease;
    border-radius: 10px;
    margin: 0 8px;
}
.mega-link-card:hover {
    background: var(--surface-alt);
    color: var(--ink);
}
.mega-link-card svg {
    flex-shrink: 0;
    color: var(--ink-faint);
    margin-top: 2px;
    transition: color 0.15s ease;
}
.mega-link-card:hover svg {
    color: var(--accent);
}
.mega-link-card div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mega-link-card strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.mega-link-card span {
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.3;
}
.mega-link-card:hover strong {
    color: var(--accent);
}

/* Products panel */
.mega-products {
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mega-product-group {
    display: none;
    flex-direction: column;
    gap: 14px;
    animation: megaFadeIn 0.2s ease;
    flex: 1;
}
.mega-product-group.active { display: flex; }

@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mega-group-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.01em;
}
.mega-group-viewall {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}
.mega-group-viewall:hover { color: var(--accent-hover); }

.mega-product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* Series blurb shown under panels with fewer than 6 products (ProLine,
   Max-Series, Clear) so the space sells the line instead of sitting empty. */
.mega-group-note {
    margin-top: 12px;
    padding: 11px 14px;
    background: var(--surface-alt);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-secondary);
}

.mega-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: var(--surface-alt);
    border: 1px solid transparent;
    position: relative;
}
.mega-product-card:hover {
    background: #fff;
    border-color: var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.mega-product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
}
.mega-badge-sale {
    background: var(--red);
}

.mega-product-img {
    background: #ececf0;
    aspect-ratio: 1;
    overflow: hidden;
}
.mega-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mega-product-card:hover .mega-product-img img { transform: scale(1.05); }

.mega-product-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mega-product-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mega-product-tagline {
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.3;
}
.mega-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 2px;
}
.mega-product-compare {
    font-size: 11px;
    font-weight: 400;
    color: var(--ink-faint);
    text-decoration: line-through;
}

/* Featured visual promo tile inside mega dropdowns */
.mega-promo {
    display: block;
    position: relative;
    margin: 12px 16px 14px;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    isolation: isolate;
}
.mega-promo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mega-promo:hover img { transform: scale(1.06); }
.mega-promo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2px;
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.86) 8%, rgba(10, 10, 12, 0.35) 48%, rgba(10, 10, 12, 0) 78%);
    color: #fff;
}
.mega-promo-eyebrow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-on-dark);
}
.mega-promo-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.mega-promo-cta {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
    transition: transform 0.2s ease;
}
.mega-promo:hover .mega-promo-cta {
    transform: translateX(3px);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-end;
}

.cart-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-toggle svg {
    width: 19px;
    height: 19px;
}

.cart-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
}

/* Primary header CTA — "Find My Robot" (quiz) */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 15px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 113, 227, 0.35);
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-cta:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.45);
}
.header-cta svg { flex-shrink: 0; }

@media (max-width: 900px) {
    .header-cta { display: none; }
}

/* Hamburger Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
}

/* Mobile Menu Container */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Mobile Menu Panels */
.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    transform: translateX(100%);
    overflow: hidden;
}
.mobile-menu[data-active="main"] .mobile-menu-panel[data-panel="main"] {
    transform: translateX(0);
}
.mobile-menu[data-active="shop"] .mobile-menu-panel[data-panel="main"],
.mobile-menu[data-active="pooltype"] .mobile-menu-panel[data-panel="main"],
.mobile-menu[data-active="brands"] .mobile-menu-panel[data-panel="main"],
.mobile-menu[data-active="toppicks"] .mobile-menu-panel[data-panel="main"],
.mobile-menu[data-active="learn"] .mobile-menu-panel[data-panel="main"],
.mobile-menu[data-active="support"] .mobile-menu-panel[data-panel="main"] {
    transform: translateX(-30%);
}
.mobile-menu[data-active="shop"] .mobile-menu-panel[data-panel="shop"],
.mobile-menu[data-active="pooltype"] .mobile-menu-panel[data-panel="pooltype"],
.mobile-menu[data-active="brands"] .mobile-menu-panel[data-panel="brands"],
.mobile-menu[data-active="toppicks"] .mobile-menu-panel[data-panel="toppicks"],
.mobile-menu[data-active="learn"] .mobile-menu-panel[data-panel="learn"],
.mobile-menu[data-active="support"] .mobile-menu-panel[data-panel="support"] {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    min-height: 56px;
    background: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
}

.mobile-menu-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
}

.mobile-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 500;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
}

.mobile-back:active {
    opacity: 0.7;
}

.mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface-alt);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--ink);
}

.mobile-close:hover {
    background: var(--border);
}

/* Mobile Menu Body */
.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

/* Mobile primary CTA */
.mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 16px 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.32);
}
.mobile-cta:active { transform: scale(0.99); }
.mobile-cta svg { flex-shrink: 0; }

/* Mobile Links */
.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    background: none;
    border: none;
    border-bottom: 1px solid #ececf0;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
    box-sizing: border-box;
    min-width: 0;
}

.mobile-link:hover,
.mobile-link:active {
    background: var(--surface-alt);
    color: var(--ink);
}

.mobile-link.has-arrow svg {
    color: var(--ink-muted);
    flex-shrink: 0;
    margin-left: 8px;
}

.mobile-link-lead {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.mobile-link-lead svg { color: var(--ink-muted); flex-shrink: 0; }

/* The mobile cart row reuses .cart-toggle (for JS) but must render as a
   full-width menu row, not the 34px header icon button. */
.mobile-link.cart-toggle {
    width: 100%;
    height: auto;
    border-radius: 0;
    color: var(--ink);
    white-space: nowrap;
}
.mobile-link.cart-toggle:hover { background: var(--surface-alt); }

.mobile-link-featured {
    background: var(--ink);
    color: #fff;
    border-radius: 12px;
    margin: 12px 16px;
    width: calc(100% - 32px);
    padding: 16px 20px;
    justify-content: center;
    border: none;
    font-size: 16px;
}

.mobile-link-featured:hover,
.mobile-link-featured:active {
    background: var(--ink-body);
    color: #fff;
}

.mobile-section-title {
    padding: 20px 20px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 16px;
}

.mobile-link svg {
    flex-shrink: 0;
    color: var(--ink-faint);
}

.mobile-link-icon {
    gap: 12px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 14px 20px;
}
.mobile-link-icon svg {
    margin-top: 2px;
    color: var(--ink-muted);
    flex-shrink: 0;
}
.mobile-link-icon div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.mobile-link-icon strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}
.mobile-link-icon span {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-link-highlight {
    background: var(--accent-wash);
    border-left: 3px solid var(--accent);
}
.mobile-link-highlight span:first-child {
    font-weight: 600;
    color: var(--accent);
}
.mobile-link-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.mobile-link-cta {
    font-weight: 600;
    color: var(--accent);
    font-size: 16px;
}

.mobile-link-subtle {
    font-size: 15px;
    color: var(--ink-muted);
    font-weight: 500;
}

.mobile-link .cart-badge {
    position: static;
    display: inline-flex;
}

@media (max-width: 380px) {
    .mobile-link { padding: 14px 16px; font-size: 15px; }
    .mobile-link-icon { padding: 12px 16px; }
    .mobile-link-icon strong { font-size: 14px; }
    .mobile-link-icon span { font-size: 12px; }
    .mobile-link-featured { margin: 10px 12px; width: calc(100% - 24px); padding: 14px 16px; font-size: 15px; }
    .mobile-menu-title { font-size: 18px; }
    .mobile-section-title { padding: 18px 16px 8px; }
    .mobile-menu-header { padding: 10px 16px; }
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    /* Horizontal overflow is already contained by the base `overflow-x: clip`
       on html/body. Do NOT use `overflow-x: hidden` here — hidden turns the
       body into a scroll container, which silently kills every
       position: sticky on mobile (the PDP price/Buy Now sub-nav). */

    .nav {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .mobile-overlay,
    .mobile-menu {
        display: block;
    }
    
    .header-inner {
        height: 56px;
        padding: 0 16px;
        gap: 12px;
        position: relative;
    }

    /* Center the logo between the menu button (left) and cart (right) */
    .logo {
        font-size: 17px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        flex: none;
    }

    .header-actions {
        gap: 8px;
        margin-left: auto;
    }

    .cart-toggle {
        width: 40px;
        height: 40px;
    }

    .cart-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open .mobile-overlay {
        opacity: 1;
    }
    
    body.menu-open .mobile-menu {
        transform: translateX(0);
    }
    
    body.menu-open .menu-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    body.menu-open .menu-btn span:nth-child(2) {
        opacity: 0;
    }
    
    body.menu-open .menu-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 12px;
    }

    .logo {
        font-size: 16px;
    }

    .header-actions {
        gap: 4px;
    }

    .cart-toggle {
        width: 36px;
        height: 36px;
    }

    .menu-btn {
        width: 36px;
        height: 36px;
    }

    .menu-btn span {
        width: 16px;
    }

    .announcement-bar {
        font-size: 11px;
        padding: 7px 36px 7px 12px;
    }
}

@media (max-width: 1200px) {
    .mega-inner { grid-template-columns: 1fr 2.5fr 1fr; }
    .mega-inner-links { grid-template-columns: 1fr 1fr 1fr; }
    .mega-product-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .mega-product-info { padding: 8px 10px 10px; }
    .mega-product-name { font-size: 11px; }
    .mega-product-price { font-size: 12px; }
    .nav-link { padding: 14px 11px; font-size: 12px; }
    .nav { gap: 2px; }
}
@media (max-width: 1000px) {
    .mega-inner { grid-template-columns: 1fr 2fr; }
    .mega-inner-links { grid-template-columns: 1fr 1fr; }
    .mega-inner-links .mega-links-col:nth-child(3) { display: none; }
    .mega-explore { display: none; }
    .mega-products { padding: 12px 14px; }
    .mega-product-cards { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .mega-product-info { padding: 6px 8px 8px; }
    .mega-product-name { font-size: 11px; }
    .mega-product-tagline { display: none; }
    .mega-product-price { font-size: 11px; }
    .mega-product-compare { display: none; }
    .nav-link { padding: 14px 9px; font-size: 12px; }
    /* The header "Find My Robot" CTA is this same page — drop the duplicate
       link so seven nav items fit between 900px and 1000px. */
    .nav-link-choose { display: none; }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
}

/* ========================================
   HOMEPAGE STYLES - Beatbot-Inspired
   ======================================== */

.gs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
    width: 100%;
}

/* Section Base */
.gs-section {
    padding: 80px 0;
}

.gs-section-gray {
    background: var(--surface-alt);
}

.gs-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

/* ===== Hero Carousel ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 420px;
    max-height: 640px;
    overflow: hidden;
    background: #1d1d1f;
}

.hero-slides { position: relative; width: 100%; height: 100%; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    /* Pin the copy toward the top of the stage so it covers less of the
       banner art (the robots live in the middle/bottom of the crops) */
    align-items: flex-start;
    justify-content: center;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--slide-bg) center/cover no-repeat;
}
/* Swap in the tablet (960w) and portrait phone (768w) banner crops */
@media (max-width: 960px) {
    .hero-slide::before { background-image: var(--slide-bg-960, var(--slide-bg)); }
}
@media (max-width: 768px) {
    .hero-slide::before { background-image: var(--slide-bg-768, var(--slide-bg-960, var(--slide-bg))); }
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 44px 32px 0;
}

.hero-slide-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.hero-slide-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin: 0 0 10px;
}

.hero-slide-title {
    font-size: 46px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
}

.hero-slide-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Arrows — hidden until carousel hover */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0;
    opacity: 0;
    pointer-events: none;
}
.hero-carousel:hover .hero-arrow {
    opacity: 1;
    pointer-events: auto;
}
.hero-arrow:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-50%) scale(1.08);
}
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.hero-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}
.hero-dot:hover { border-color: #fff; }

@media (max-width: 900px) {
    .hero-carousel { height: 60vh; min-height: 360px; max-height: 520px; }
    .hero-slide-title { font-size: 32px; }
    .hero-slide-eyebrow { font-size: 11px; }
    .hero-arrow { width: 36px; height: 36px; }
    .hero-arrow-prev { left: 12px; }
    .hero-arrow-next { right: 12px; }
    .hero-arrow svg { width: 16px; height: 16px; }
}
@media (max-width: 600px) {
    /* Taller stage on phones — the 768w banner crops are portrait */
    .hero-carousel { height: 58vh; min-height: 380px; max-height: 560px; }
    .hero-slide-title { font-size: 24px; }
    .hero-slide-content { padding: 0 20px; }
    .hero-arrow { width: 32px; height: 32px; opacity: 1; pointer-events: auto; }
    .hero-arrow-prev { left: 8px; }
    .hero-arrow-next { right: 8px; }
    .hero-arrow svg { width: 14px; height: 14px; }
}

/* ===== Innovation Showcase ===== */
.hp-innovations { padding: 80px 0 40px; }

/* Width matches the .gs-container content box (1400 max - 32px padding each
   side) so the hero cards line up flush with the section title and the trio
   grid below them instead of hanging 32px wider on each side. */
.hp-inno-hero {
    width: min(1336px, 100% - 64px);
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: var(--surface-alt);
    border-radius: 28px;
    overflow: hidden;
    min-height: 480px;
}
.hp-inno-hero-alt { grid-template-columns: 1fr 1.1fr; }
.hp-inno-hero-alt .hp-inno-hero-img { order: 2; }
.hp-inno-hero-alt .hp-inno-hero-body { order: 1; }

.hp-inno-hero-img {
    position: relative;
    overflow: hidden;
    background: var(--border);
    min-height: 320px;
}
.hp-inno-hero-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hp-inno-hero:hover .hp-inno-hero-img img { transform: scale(1.04); }

.hp-inno-hero-body {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hp-inno-hero-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hp-inno-hero-tag {
    font-size: 18px;
    color: var(--ink-secondary);
    margin: 0 0 28px;
    line-height: 1.5;
}

.hp-inno-hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.hp-inno-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hp-inno-pill {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 130px;
}
.hp-inno-pill strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}
.hp-inno-pill span {
    font-size: 11px;
    color: var(--ink-muted);
}

@media (max-width: 900px) {
    .hp-inno-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 0;
    }
    .hp-inno-hero-alt .hp-inno-hero-img { order: 0; }
    .hp-inno-hero-alt .hp-inno-hero-body { order: 0; }
    .hp-inno-hero-body { padding: 32px 24px; }
    .hp-inno-hero-name { font-size: 24px; }
    .hp-inno-hero-img { padding: 24px; }
}

/* Innovation Trio (3-up cards like Beatbot) */
.hp-inno-trio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.hp-inno-trio-card {
    background: var(--surface-alt);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}
.hp-inno-trio-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    transform: translateY(-6px);
}

.hp-inno-trio-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: var(--surface-alt);
    padding: 16px;
    position: relative;
    overflow: hidden;
}
.hp-inno-trio-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hp-inno-trio-card:hover .hp-inno-trio-img img { transform: scale(1.05); }

.hp-inno-trio-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hp-inno-trio-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.hp-inno-trio-tag {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0 0 20px;
    line-height: 1.4;
}

.hp-inno-trio-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
/* Cards are only ~250px wide, so the default .gs-btn-sm padding leaves too
   little room and "Learn More" / "Buy Now" break onto two lines. Keep the
   labels on one line and let the pair share the row evenly. */
.hp-inno-trio-actions .gs-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hp-inno-trio { grid-template-columns: 1fr; gap: 16px; }
    .hp-inno-trio-img { min-height: 200px; }
}

/* Not Sure / Choose Section */
.hp-choose {
    padding: 64px 0;
    background: var(--surface-alt);
}
.hp-choose-inner {
    text-align: center;
}
.hp-choose-inner h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.hp-choose-sub {
    font-size: 16px;
    color: var(--ink-secondary);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 28px;
}
.hp-choose-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Keep legacy gs-hero-actions for any remaining usage */
.gs-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons - Beatbot Style */
.gs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 32px;
    height: 52px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    outline: none;
    letter-spacing: -0.01em;
}

.gs-btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.gs-btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.gs-btn-dark {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
}

.gs-btn-dark:hover {
    background: var(--ink-body);
    border-color: var(--ink-body);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(29, 29, 31, 0.3);
}

.gs-btn-outline {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--border);
}

.gs-btn-outline:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: transparent;
}

.gs-btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.gs-btn-outline-white:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.gs-btn-sm {
    height: 40px;
    padding: 0 20px;
    font-size: 13px;
}

.gs-btn-lg {
    height: 56px;
    padding: 0 40px;
    font-size: 16px;
}

/* ---- BUTTON COLOUR GUARD ----------------------------------------------
   Free-form content containers style their descendant links: `.article-body a`,
   `.pillar-article-inner a`, `.quiz-article-inner a`, `.product-desc a`, and
   friends. Those selectors are (0,1,1); the button variants below them are a
   single class, (0,1,0). So any button dropped into that copy — the inline
   product cards in blog posts and pillar pages, for one — loses its own colour
   and gets repainted accent blue ON the accent-blue fill: a 1:1 contrast ratio,
   a completely invisible label, plus a body-copy underline.

   Re-asserting each variant as `a.gs-btn.gs-btn-primary` lifts it to (0,3,1),
   which outranks every container rule regardless of source order, so buttons
   keep their colours wherever they are embedded. Hover states are spelled out
   too — `.container a:hover` (0,2,1) beats `.gs-btn-primary:hover` (0,2,0) the
   same way.
   ---------------------------------------------------------------------- */
/* `a.gs-btn` would be (0,1,1) — an exact tie with `.article-body a`, which then
   wins on source order and underlines the label. The attribute form is (0,2,1)
   and settles it. */
a[class*="gs-btn"],
a[class*="cp-btn"],
a[class*="pf-top-btn"] { text-decoration: none; }

a.gs-btn.gs-btn-primary, a.gs-btn.gs-btn-primary:hover,
a.gs-btn.gs-btn-dark, a.gs-btn.gs-btn-dark:hover,
a.gs-btn.gs-btn-outline-white, a.gs-btn.gs-btn-outline-white:hover,
a.cp-btn.cp-btn-primary, a.cp-btn.cp-btn-primary:hover,
a.pf-top-btn.pf-top-btn-primary, a.pf-top-btn.pf-top-btn-primary:hover { color: #ffffff; }

a.gs-btn.gs-btn-outline, a.gs-btn.gs-btn-outline:hover,
a.cp-btn.cp-btn-secondary, a.cp-btn.cp-btn-secondary:hover { color: var(--ink); }

a.pf-top-btn.pf-top-btn-cart { color: var(--accent); }
a.pf-top-btn.pf-top-btn-cart:hover { color: #ffffff; }

/* Product Scroll Grid */
.gs-product-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .gs-product-scroll {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .gs-product-scroll {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .gs-product-scroll {
        grid-template-columns: 1fr;
    }
}

/* Product Card - Beatbot Style */
.gs-product-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: all var(--transition-standard);
    border: 1px solid var(--border);
}

.gs-product-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.gs-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gs-badge-sale {
    background: var(--red);
}

.gs-product-image-link {
    display: block;
    margin-bottom: 20px;
}

.gs-product-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 12px;
}

.gs-product-placeholder {
    width: 100%;
    height: 220px;
    background: var(--surface-alt);
    border-radius: 12px;
}

.gs-product-details {
    text-align: left;
}

.gs-product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.gs-product-name a:hover {
    color: var(--accent);
}

.gs-product-pricing {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.gs-price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.gs-price-was {
    font-size: 14px;
    color: var(--ink-muted);
    text-decoration: line-through;
}

.gs-price-save {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

/* Showcase Section - Featured Products */
.gs-showcase {
    padding: 100px 32px;
    background: #ffffff;
}

.gs-showcase-alt {
    background: var(--surface-alt);
}

.gs-showcase-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.gs-showcase-alt .gs-showcase-inner {
    direction: rtl;
}

.gs-showcase-alt .gs-showcase-content,
.gs-showcase-alt .gs-showcase-image {
    direction: ltr;
}

.gs-showcase-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}

.gs-showcase-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gs-showcase-tagline {
    font-size: 18px;
    color: var(--ink-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.gs-showcase-image {
    position: relative;
}

.gs-showcase-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 24px;
}

.gs-showcase-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--surface-alt) 0%, #e8e8ed 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .gs-showcase {
        padding: 60px 16px;
    }
    
    .gs-showcase-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .gs-showcase-alt .gs-showcase-inner {
        direction: ltr;
    }
    
    .gs-showcase-title {
        font-size: 32px;
    }
    
    .gs-showcase-image img {
        max-width: 100%;
    }
}

/* Feature Pills / Marquee */
.gs-feature-strip {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    justify-content: center;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.gs-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-secondary);
}

.gs-feature-pill strong {
    color: var(--ink);
}

/* Discover Grid */
.gs-discover-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1000px) {
    .gs-discover-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gs-discover-grid {
        grid-template-columns: 1fr;
    }
}

.gs-discover-card {
    text-decoration: none;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    transition: all var(--transition-standard);
}

.gs-discover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--border-strong);
}

.gs-discover-image {
    width: 100%;
    height: 200px;
}

.gs-discover-text {
    font-size: 15px;
    color: var(--ink);
    line-height: 1.5;
    padding: 20px 20px 8px;
    font-weight: 500;
}

.gs-discover-link {
    display: block;
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    padding: 0 20px 20px;
}

/* Categories */
.gs-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.gs-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.gs-category-pill:hover {
    border-color: var(--ink);
    color: var(--ink);
}
@media (max-width: 600px) {
    .gs-category-pill { padding: 10px 18px; font-size: 13px; }
    .gs-categories { gap: 8px; }
}

/* Spotlight Grid */
.gs-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .gs-spotlight-grid {
        grid-template-columns: 1fr;
    }
}

.gs-spotlight-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition-standard);
}

.gs-spotlight-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.gs-spotlight-image {
    margin-bottom: 24px;
}

.gs-spotlight-image img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.gs-spotlight-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.gs-spotlight-desc {
    font-size: 15px;
    color: var(--ink-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.gs-spotlight-link {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.gs-spotlight-link:hover {
    text-decoration: underline;
}

/* Info Cards */
.gs-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .gs-info-grid {
        grid-template-columns: 1fr;
    }
}

.gs-info-card {
    background: var(--surface-alt);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border);
}

.gs-info-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.gs-info-text {
    font-size: 15px;
    color: var(--ink-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.gs-info-link {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.gs-info-link:hover {
    text-decoration: underline;
}

/* Trust / Confidence Section */
.gs-trust-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.gs-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .gs-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .gs-trust-grid {
        grid-template-columns: 1fr;
    }
}

.gs-trust-item {
    text-align: center;
    padding: 24px;
}

.gs-trust-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--surface-alt);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.gs-trust-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.gs-trust-desc {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* Newsletter */
.gs-newsletter {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.gs-newsletter-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Why Buy / Benefits */
.gs-why-buy {
    border-top: 1px solid var(--border);
}

.gs-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

@media (max-width: 768px) {
    .gs-benefits {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.gs-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gs-benefit-icon {
    width: 64px;
    height: 64px;
    background: var(--surface-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--ink);
}

.gs-benefit-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.gs-benefit-link {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.gs-benefit-link:hover {
    text-decoration: underline;
}

/* ========================================
   PAGE HEADERS
   ======================================== */

.gs-page-header {
    background:
        radial-gradient(120% 130% at 50% -30%, rgba(0, 113, 227, 0.2) 0%, rgba(0, 113, 227, 0) 58%),
        linear-gradient(180deg, #28282c 0%, #1d1d1f 100%);
    padding: 64px 32px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gs-page-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.gs-page-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

@media (max-width: 768px) {
    .gs-page-header {
        padding: 40px 16px 32px;
    }
    
    .gs-page-title {
        font-size: 28px;
    }
}

/* Product Grid - Full Page */
.gs-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .gs-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .gs-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 500px) {
    .gs-product-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Actions */
.gs-product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gs-product-actions .gs-btn {
    flex: 1;
    max-width: 140px;
}

@media (max-width: 600px) {
    .gs-product-actions .gs-btn { max-width: none; flex: 1 1 100%; text-align: center; justify-content: center; }
}

/* Collection Grid */
.gs-collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .gs-collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .gs-collection-grid {
        grid-template-columns: 1fr;
    }
}

.gs-collection-card {
    display: block;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--transition-standard);
}

.gs-collection-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.gs-collection-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--surface-alt);
}

.gs-collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-standard);
}

.gs-collection-card:hover .gs-collection-image img {
    transform: scale(1.05);
}

.gs-collection-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--surface-alt), var(--surface-alt));
}

.gs-collection-content {
    padding: 20px;
}

.gs-collection-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.gs-collection-desc {
    font-size: 14px;
    color: var(--ink-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.gs-collection-count {
    font-size: 13px;
    color: var(--ink-muted);
}

/* Page Description */
.gs-page-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 12px;
    line-height: 1.6;
}

.gs-page-desc p {
    margin: 0;
}

/* Empty State */
.gs-empty-state {
    text-align: center;
    padding: 64px 24px;
    background: var(--surface-alt);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.gs-empty-state p {
    font-size: 18px;
    color: var(--ink-secondary);
    margin-bottom: 24px;
}

/* Back Link */
.gs-back-link {
    margin-top: 48px;
    text-align: center;
}

/* ===== Collections Index Page ===== */
.cx-hero {
    background:
        radial-gradient(120% 130% at 50% -25%, rgba(0, 113, 227, 0.22) 0%, rgba(0, 113, 227, 0) 56%),
        linear-gradient(180deg, rgba(40, 40, 44, 0.7) 0%, rgba(29, 29, 31, 0.88) 100%),
        url('/assets/img/site/hero-collections.jpg') center 35% / cover no-repeat,
        #1d1d1f;
    padding: 96px 0 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cx-hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 16px;
}
.cx-hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.55);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.cx-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.cx-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    max-width: 100%;
}
.cx-hero-btn-primary {
    background: var(--accent);
    color: #fff;
}
.cx-hero-btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 24px rgba(0, 113, 227,0.35);
    color: #fff;
}
.cx-hero-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.cx-hero-btn-ghost:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.cx-hero-btn-dark {
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
}
.cx-hero-btn-dark:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* Stats strip */
.cx-stats {
    padding: 0;
    margin-top: -36px;
    position: relative;
    z-index: 2;
}
.cx-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.cx-stat {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid #ececf0;
}
.cx-stat:last-child { border-right: none; }
.cx-stat strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.cx-stat span {
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 500;
}

/* Series cards */
.cx-series { padding: 80px 0 0; }
.cx-section-header {
    text-align: center;
    margin-bottom: 40px;
}
.cx-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.cx-section-sub {
    font-size: 16px;
    color: var(--ink-muted);
    margin: 0;
}
.cx-series-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.cx-series-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s ease;
    position: relative;
}
.cx-series-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    color: inherit;
}
.cx-series-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
}
.cx-series-pro .cx-series-badge { background: var(--accent); color: #fff; }
.cx-series-max .cx-series-badge { background: var(--ink); color: #fff; }
.cx-series-content {
    padding: 48px 32px 40px;
    display: flex;
    flex-direction: column;
}
.cx-series-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
}
.cx-series-content p {
    font-size: 14px;
    color: var(--ink-secondary);
    line-height: 1.6;
    margin: 0 0 20px;
}
.cx-series-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cx-series-features li {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-body);
    padding-left: 20px;
    position: relative;
}
.cx-series-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.cx-series-cta {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-top: auto;
}
.cx-series-card:hover .cx-series-cta { text-decoration: underline; }
.cx-series-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #ececf0;
}
.cx-series-img img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.cx-series-card:hover .cx-series-img img { transform: scale(1.05); }

/* Collections grid */
.cx-collections { padding: 80px 0; }
.cx-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cx-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    position: relative;
}
.cx-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-1px);
    color: inherit;
}
.cx-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border-radius: 12px;
    color: var(--accent);
    transition: all 0.25s ease;
}
.cx-card:hover .cx-card-icon { background: var(--accent); color: #fff; }
.cx-card-img {
    display: none;
}
.cx-card-body { flex: 1; min-width: 0; }
.cx-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cx-card-count {
    font-size: 12px;
    color: var(--ink-muted);
}
.cx-card-arrow {
    flex-shrink: 0;
    color: var(--border-strong);
    transition: all 0.2s ease;
}
.cx-card:hover .cx-card-arrow { color: var(--accent); transform: translateX(3px); }

/* CTA */
.cx-cta { padding: 0 0 80px; }
.cx-cta-inner {
    text-align: center;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 64px 32px;
}
.cx-cta-inner h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.cx-cta-inner p {
    font-size: 16px;
    color: var(--ink-secondary);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.cx-cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

@media (max-width: 900px) {
    .cx-hero { padding: 64px 0 56px; }
    .cx-hero-title { font-size: 38px; }
    .cx-stats-row { grid-template-columns: repeat(2, 1fr); }
    .cx-stat { border-bottom: 1px solid #ececf0; }
    .cx-series-grid { grid-template-columns: 1fr; }
    .cx-series-card { grid-template-columns: 1fr; }
    .cx-series-img { min-height: 200px; }
    .cx-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .cx-hero-title { font-size: 28px; }
    .cx-hero-sub { font-size: 14px; }
    .cx-hero-actions { flex-direction: column; align-items: stretch; }
    .cx-hero-actions .cx-hero-btn { width: 100%; text-align: center; }
    .cx-stats-row { grid-template-columns: 1fr 1fr; }
    .cx-grid { grid-template-columns: 1fr; }
    .cx-cta-btns { flex-direction: column; align-items: stretch; }
    .cx-cta-btns .cx-hero-btn { width: 100%; text-align: center; }
}

/* ===== Individual Collection Page ===== */
.cp-hero {
    background:
        radial-gradient(120% 130% at 50% -30%, rgba(0, 113, 227, 0.2) 0%, rgba(0, 113, 227, 0) 58%),
        linear-gradient(180deg, rgba(40, 40, 44, 0.74) 0%, rgba(29, 29, 31, 0.9) 100%),
        url('/assets/img/site/hero-pillar.jpg') center / cover no-repeat,
        #1d1d1f;
    padding: 72px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cp-hero-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }

.cp-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
}
.cp-breadcrumb a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}
.cp-breadcrumb a:hover { color: #fff; }
.cp-breadcrumb svg { color: rgba(255,255,255,0.3); }
.cp-breadcrumb span { color: rgba(255,255,255,0.7); font-weight: 500; }

.cp-hero-label-placeholder {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}

.cp-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 12px;
}

.cp-hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 12px;
}
.cp-hero-desc p { margin: 0 0 10px; }
.cp-hero-desc p:last-child { margin-bottom: 0; }
.cp-hero-desc strong { color: rgba(255,255,255,0.9); font-weight: 600; }
.cp-hero-desc a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cp-hero-desc img {
    margin: 18px auto 4px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    width: auto;
    max-width: 220px;
    height: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.cp-hero-count {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

@media (max-width: 600px) {
    .cp-hero { padding: 48px 0 36px; }
    .cp-hero-title { font-size: 32px; }
}

/* Toolbar */
.cp-main { padding: 32px 0 48px; }

.cp-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.cp-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cp-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.cp-filter-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--ink-body);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.cp-filter-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.cp-filter-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.cp-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.cp-sort {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cp-sort label {
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 500;
    white-space: nowrap;
}
.cp-sort select {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: auto;
}
.cp-sort select:hover { border-color: var(--ink); }

.cp-view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.cp-view-btn {
    padding: 7px 10px;
    background: #fff;
    border: none;
    color: var(--ink-faint);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
}
.cp-view-btn + .cp-view-btn { border-left: 1px solid var(--border); }
.cp-view-btn:hover { color: var(--ink-body); }
.cp-view-btn.active { background: var(--ink); color: #fff; }

.cp-results-count {
    font-size: 13px;
    color: var(--ink-faint);
    margin-bottom: 24px;
}

/* Product Grid */
.cp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cp-product {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cp-product:hover {
    border-color: var(--border-strong);
    box-shadow: 0 12px 40px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.cp-product-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    aspect-ratio: 1;
    text-decoration: none;
    overflow: hidden;
}
.cp-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.cp-product-img .cp-product-img-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}
.cp-product:hover .cp-product-img:has(.cp-product-img-hover) img:not(.cp-product-img-hover) { opacity: 0; }
.cp-product:hover .cp-product-img .cp-product-img-hover { opacity: 1; }

/* Affiliate cards: Amazon photos come in arbitrary aspect ratios, so cover
   would crop the robot — contain the whole photo inside the square frame. */
.cp-product-img-contain { padding: 20px; }
.cp-product-img-contain img { object-fit: contain; }

.cp-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}
.cp-badge-sale { background: var(--red); color: #fff; }
.cp-badge-new { background: var(--accent); color: #fff; }
.cp-badge-oos { background: var(--surface-alt); color: var(--ink-muted); }

.cp-product-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.cp-product-vendor {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 4px;
}
.cp-product-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cp-product-title a { color: inherit; text-decoration: none; }
.cp-product-title a:hover { color: var(--accent); }

.cp-product-pills {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.cp-pill {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
}
.cp-pill-pro { background: var(--accent-tint); color: var(--accent); }
.cp-pill-max { background: #ececf0; color: var(--ink-body); }
.cp-pill-ob { background: var(--amber-tint); color: var(--amber); }
.cp-pill-ref { background: var(--green-tint); color: var(--green); }
.cp-pill-comm { background: #f5ecfa; color: #8944ab; }

.cp-product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.cp-product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}
.cp-product-price-sale { color: var(--accent); }
.cp-product-compare {
    font-size: 14px;
    color: var(--ink-faint);
    text-decoration: line-through;
}
.cp-product-save {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-tint);
    padding: 2px 8px;
    border-radius: 4px;
}

.cp-product-features {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex-direction: column;
    gap: 4px;
}
.cp-product-features li {
    font-size: 13px;
    color: var(--ink-body);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}
.cp-product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.cp-product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}
.cp-btn {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    flex: 1 1 0%;
    min-width: 0;
    white-space: nowrap;
}
.cp-btn-primary {
    background: var(--accent);
    color: #fff;
}
.cp-btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(0, 113, 227,0.3);
    color: #fff;
}
.cp-btn-secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--border);
}
.cp-btn-secondary:hover {
    border-color: var(--ink);
    background: var(--surface-alt);
}
.cp-btn-secondary svg { flex-shrink: 0; }

/* List view */
.cp-grid-list {
    grid-template-columns: 1fr;
}
.cp-grid-list .cp-product {
    display: grid;
    grid-template-columns: 280px 1fr;
    flex-direction: row;
}
.cp-grid-list .cp-product-img {
    aspect-ratio: auto;
    min-height: 220px;
    border-radius: 20px 0 0 20px;
}
.cp-grid-list .cp-product-body {
    padding: 28px 32px;
}
.cp-grid-list .cp-product-title {
    font-size: 20px;
    -webkit-line-clamp: unset;
}
.cp-grid-list .cp-product-features {
    display: flex;
}
.cp-grid-list .cp-product-actions {
    flex: none;
    max-width: 340px;
}

/* Empty / no results */
.cp-empty {
    text-align: center;
    padding: 80px 20px;
}
.cp-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink-body);
    margin: 16px 0 8px;
}
.cp-empty p {
    font-size: 14px;
    color: var(--ink-muted);
}
.cp-empty-reset {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
}

/* Help section */
.cp-help { padding: 0 0 48px; }
.cp-help-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 56px 48px;
}
.cp-help-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.cp-help-content p {
    font-size: 15px;
    color: var(--ink-secondary);
    max-width: 480px;
    margin: 0 0 24px;
    line-height: 1.6;
}
.cp-help-btns {
    display: flex;
    gap: 10px;
}
.cp-help-stats {
    display: flex;
    gap: 32px;
}
.cp-help-stat {
    text-align: center;
}
.cp-help-stat strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.cp-help-stat span {
    font-size: 12px;
    color: var(--ink-muted);
}

/* Trust strip */
.cp-trust { padding: 0 0 64px; }
.cp-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.cp-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}
.cp-trust-item:hover { border-color: var(--accent); }
.cp-trust-item svg { flex-shrink: 0; color: var(--accent); }
.cp-trust-item strong { font-size: 13px; font-weight: 600; color: var(--ink); }

@media (max-width: 1100px) {
    .cp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .cp-main { padding: 24px 0 40px; }

    .cp-hide-mobile { display: none; }

    .cp-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        width: 100%;
    }
    .cp-filters::-webkit-scrollbar { display: none; }

    .cp-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .cp-help-inner { grid-template-columns: 1fr; gap: 32px; }
    .cp-help-stats { gap: 24px; }
    .cp-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-grid-list .cp-product { grid-template-columns: 1fr; }
    .cp-grid-list .cp-product-img { border-radius: 20px 20px 0 0; }

    .cp-product-body { padding: 16px 18px 20px; }
    .cp-product-title { font-size: 15px; }
    .cp-product-price { font-size: 18px; }
}

@media (max-width: 600px) {
    .cp-grid { grid-template-columns: 1fr; gap: 16px; }

    .cp-product-actions { flex-direction: column; }
    .cp-btn { padding: 14px 16px; font-size: 14px; width: 100%; flex: none; }

    .cp-help { padding: 0 0 32px; }
    .cp-help-inner { padding: 28px 20px; border-radius: 16px; }
    .cp-help-content h2 { font-size: 22px; }
    .cp-help-content p { font-size: 14px; }
    .cp-help-btns { flex-direction: column; }
    .cp-help-btns .cx-hero-btn { width: 100%; text-align: center; }
    .cp-help-stats { flex-wrap: wrap; gap: 16px; justify-content: center; }

    .cp-trust { padding: 0 0 40px; }
    .cp-trust-grid { grid-template-columns: 1fr; }
    .cp-trust-item { padding: 14px 16px; }

    .cp-filter-btn { padding: 7px 14px; font-size: 12px; }
    .cp-results-count { margin-bottom: 16px; }

    .cp-hero { padding: 40px 0 32px; }
    .cp-hero-title { font-size: 28px; }
    .cp-hero-desc { font-size: 14px; }
}

@media (max-width: 380px) {
    .cp-product-body { padding: 14px 14px 18px; }
    .cp-product-title { font-size: 14px; }
    .cp-btn { padding: 12px 12px; font-size: 13px; }
    .cp-help-inner { padding: 24px 16px; }
}

/* Legacy coll- wrapper kept for back-compat — hidden */
.coll-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.35s ease;
}
.coll-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 12px 48px rgba(0,0,0,0.07);
}

.coll-card-featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.coll-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    padding: 40px;
    min-height: 340px;
    text-decoration: none;
}
.coll-card-image img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.coll-card:hover .coll-card-image img { transform: scale(1.04); }

.coll-card-placeholder {
    width: 100%;
    height: 260px;
    background: var(--border);
    border-radius: 12px;
}

/* Badges */
.coll-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    z-index: 2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.coll-badge-sale {
    background: var(--red);
    color: #fff;
}
.coll-badge-featured {
    background: var(--accent);
    color: #fff;
    top: auto;
    bottom: 20px;
    left: 20px;
}
.coll-badge-sale + .coll-badge-featured { top: auto; }

/* Card Body */
.coll-card-body {
    padding: 40px 40px 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coll-card-vendor {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
}

.coll-card-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--ink);
}
.coll-card-title a {
    color: inherit;
    text-decoration: none;
}
.coll-card-title a:hover { color: var(--accent); }

.coll-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.coll-card-features li {
    font-size: 14px;
    color: var(--ink-body);
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}
.coll-card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
}

.coll-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.coll-card-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
}

.coll-card-compare {
    font-size: 18px;
    color: var(--ink-muted);
    text-decoration: line-through;
}

.coll-card-save {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-tint);
    padding: 3px 10px;
    border-radius: 100px;
}

.coll-card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.coll-card-btn-primary {
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.coll-card-btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.3);
    color: #fff;
}

.coll-card-btn-secondary {
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.coll-card-btn-secondary:hover {
    border-color: var(--ink);
    background: var(--surface-alt);
}

.coll-sold-out {
    color: var(--ink-muted);
    border-color: var(--border);
    cursor: default;
}

/* Responsive collection cards */
@media (max-width: 900px) {
    .coll-card {
        grid-template-columns: 1fr;
    }
    .coll-card-image { min-height: 240px; padding: 32px; }
    .coll-card-body { padding: 28px; }
    .coll-card-title { font-size: 22px; }
    .coll-card-price { font-size: 24px; }
}

@media (max-width: 600px) {
    .coll-card-image { min-height: 200px; padding: 24px; }
    .coll-card-body { padding: 24px; }
    .coll-card-actions { flex-direction: column; }
    .coll-card-btn-primary,
    .coll-card-btn-secondary { width: 100%; text-align: center; justify-content: center; }
}

/* Help Section */
.coll-help {
    padding: 0 0 56px;
}

.coll-help-inner {
    text-align: center;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 56px 32px;
}

.coll-help-inner h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
}

.coll-help-inner p {
    font-size: 16px;
    color: var(--ink-secondary);
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.coll-help-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--ink);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.coll-help-btn:hover {
    background: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.3);
    color: #fff;
}

/* Trust Strip */
.coll-trust {
    padding: 0 0 64px;
}

.coll-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.coll-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.coll-trust-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.06);
}

.coll-trust-item svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.coll-trust-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.coll-trust-item span {
    font-size: 13px;
    color: var(--ink-secondary);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .coll-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
    .coll-trust-grid { grid-template-columns: 1fr; }
}

/* Legacy Hero */
.hero {
    background: var(--ink);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0 var(--space-5);
    min-height: 48px;
    border-radius: 100px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    outline: none;
    position: relative;
    overflow: hidden;
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink-body);
    border-color: var(--ink-body);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--border);
    padding: 0 var(--space-5);
}

.btn-outline:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: transparent;
}

.btn-outline:active {
    transform: scale(0.98);
}

.btn:disabled {
    background: #ececf0;
    color: var(--ink-faint);
    border-color: #ececf0;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn:disabled:hover {
    transform: none;
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sections */
.featured-products,
.featured-collections,
.products-section,
.collections-section {
    padding: 4rem 0;
}

.featured-products h2,
.featured-collections h2,
.products-section h2,
.collections-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--ink);
}

/* Product Grid - Legacy */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-standard);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.product-info h3 a {
    color: var(--ink);
}

.product-excerpt {
    color: var(--ink-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1rem;
}

.product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding: 12px;
}

.product-card-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.8125rem;
}

.product-card-actions .add-to-cart-btn {
    min-width: 40px;
    padding: 0 12px;
}

.product-card-actions .add-to-cart-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.price-compare {
    text-decoration: line-through;
    color: var(--ink-muted);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Collection Grid */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.collection-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-standard);
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.collection-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.collection-info {
    padding: 1.5rem;
}

.collection-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.collection-info h3 a {
    color: var(--ink);
}

.collection-description {
    color: var(--ink-secondary);
    margin-bottom: 1rem;
}

.collection-count {
    color: var(--ink-muted);
    font-size: 17px;
    margin-bottom: var(--space-4);
}

.empty-collection {
    text-align: center;
    padding: var(--space-20) var(--space-8);
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.empty-collection p {
    font-size: 21px;
    color: var(--ink-secondary);
    margin-bottom: var(--space-8);
}

/* Page Header */
.page-header {
    background: var(--surface-alt);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.page-header p {
    color: var(--ink-secondary);
    font-size: 1.1rem;
}

/* ========================================
   STICKY PRODUCT HEADER
   ======================================== */

/* ===== Product Sub-Navigation Bar ===== */
.pdp-subnav {
    position: sticky;
    top: 48px;
    z-index: 98;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pdp-subnav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 48px;
}

.pdp-subnav-links {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
}
.pdp-subnav-links::-webkit-scrollbar { display: none; }

.pdp-subnav-link {
    position: relative;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}
.pdp-subnav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 2px;
}
.pdp-subnav-link:hover { color: rgba(255,255,255,0.9); }
.pdp-subnav-link.active { color: #fff; font-weight: 600; }
.pdp-subnav-link.active::after { transform: scaleX(1); }

.pdp-subnav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.pdp-subnav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.pdp-subnav-product {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.pdp-subnav-price {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-subnav-price-sale { color: #fff; }
.pdp-subnav-price-was {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
}

.pdp-subnav-buy {
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.pdp-subnav-buy:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.4);
}

@media (max-width: 900px) {
    .pdp-subnav { top: 56px; }
    .pdp-subnav-inner { padding: 0 16px; gap: 10px; }
    .pdp-subnav-product { display: none; }
    .pdp-subnav-divider { display: none; }
    .pdp-subnav-link { padding: 12px 10px; font-size: 12px; }
}
@media (max-width: 600px) {
    .pdp-subnav-cta { gap: 10px; }
    .pdp-subnav-price { font-size: 13px; }
    .pdp-subnav-buy { padding: 6px 16px; font-size: 12px; }
}

/* ===== PDP Section Styles ===== */
.pdp-section {
    padding: 80px 0;
}
.pdp-section-gray {
    background: var(--surface-alt);
}

.pdp-section-header {
    margin-bottom: 48px;
}

.pdp-section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.pdp-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin: 0;
}

/* Features Grid */
.pdp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pdp-feature {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
}
.pdp-feature:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 113, 227, 0.08);
    transform: translateY(-4px);
}

.pdp-feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border-radius: 16px;
    margin-bottom: 20px;
    color: var(--accent);
}

.pdp-feature h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px 0;
}

.pdp-feature p {
    font-size: 14px;
    color: var(--ink-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .pdp-features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .pdp-section-title { font-size: 28px; }
    .pdp-section { padding: 56px 0; }
}
@media (max-width: 600px) {
    .pdp-features-grid { grid-template-columns: 1fr; gap: 12px; }
    .pdp-section { padding: 40px 0; }
    .pdp-section-header { margin-bottom: 28px; }
    .pdp-section-title { font-size: 24px; }
    .pdp-feature { padding: 24px 20px; border-radius: 16px; }
}

/* Description Layout */
/* minmax(0, …) so a wide table in the imported description can't stretch the
   content column past the viewport — same reason as `.article-layout`. */
.pdp-desc-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
.pdp-desc-sidebar,
.pdp-desc-body { min-width: 0; }
.pdp-desc-sidebar {
    position: sticky;
    top: 140px;
}
@media (max-width: 900px) {
    .pdp-desc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .pdp-desc-sidebar { position: static; }
    /* Condition-grade and spec tables scroll instead of pushing the page out. */
    .pdp-desc-body table { display: block; overflow-x: auto; }
}

/* ==========================================================================
   Imported per-product content (src/_includes/products/details/<handle>.njk)
   Feature story rows, spec table, review quote, review links, featured video.
   ========================================================================== */

/* Feature story — alternating image / text rows */
.pdp-story {
    padding: 80px 0;
}
.pdp-story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.pdp-story-row + .pdp-story-row {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
/* Alternate the image side on every other row */
.pdp-story-row:nth-child(even) .pdp-story-media {
    order: 2;
}
.pdp-story-media img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    background: var(--surface-alt);
    display: block;
}
.pdp-story-text h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 16px 0;
}
.pdp-story-text p {
    font-size: 16px;
    color: var(--ink-body);
    line-height: 1.7;
    margin: 0 0 16px 0;
}
.pdp-story-text p:last-child {
    margin-bottom: 0;
}
.pdp-story-text a {
    color: var(--accent);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .pdp-story { padding: 56px 0; }
    .pdp-story-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .pdp-story-row:nth-child(even) .pdp-story-media {
        order: 0;
    }
    .pdp-story-text h2 { font-size: 24px; }
}

/* Specifications */
.pdp-specs {
    padding: 80px 0;
}
.pdp-specs-header {
    text-align: center;
    margin-bottom: 40px;
}
.pdp-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}
.pdp-spec {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 16px;
    padding: 18px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}
.pdp-spec-key {
    font-weight: 700;
    color: var(--ink);
    font-size: 15px;
}
.pdp-spec-val {
    color: var(--ink-secondary);
    font-size: 15px;
    line-height: 1.5;
}
@media (max-width: 800px) {
    .pdp-specs { padding: 56px 0; }
    .pdp-specs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .pdp-spec { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
}

/* Review pull-quote */
.pdp-quote {
    padding: 72px 0;
    background: var(--accent);
}
.pdp-quote-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}
.pdp-quote-heading {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 20px 0;
    color: #fff;
}
.pdp-quote-inner p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 28px 0;
}
.pdp-quote-inner p strong { color: #fff; }
.pdp-quote-btn {
    display: inline-block;
    background: #fff;
    color: var(--accent);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pdp-quote-btn:hover {
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
@media (max-width: 600px) {
    .pdp-quote { padding: 56px 0; }
    .pdp-quote-heading { font-size: 24px; }
    .pdp-quote-inner p { font-size: 16px; }
}

/* Review links */
.pdp-reviews-links {
    padding: 56px 0;
    text-align: center;
}
.pdp-reviews-links-inner h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px 0;
}
.pdp-reviews-link-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    margin-top: 24px;
}
.pdp-reviews-link-list a {
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
}

/* Featured video */
.pdp-video {
    padding: 0 0 80px 0;
}
.pdp-video-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    margin: 0 0 28px 0;
}
.pdp-video-embed {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}
.pdp-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 800px) {
    .pdp-video { padding-bottom: 56px; }
}

/* Warranty Cards */
.pdp-warranty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pdp-warranty-card {
    text-align: center;
    padding: 40px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
}
.pdp-warranty-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 113, 227, 0.08);
    transform: translateY(-4px);
}

.pdp-warranty-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border-radius: 20px;
    margin-bottom: 20px;
    color: var(--accent);
}

.pdp-warranty-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px 0;
}

.pdp-warranty-card p {
        font-size: 14px;
    color: var(--ink-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .pdp-warranty-grid { grid-template-columns: 1fr; }
}

/* ProLine Banner */
.pdp-proline-banner {
    background: var(--ink);
    padding: 64px 0;
}

.pdp-proline-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.pdp-proline-badge {
    display: inline-block;
        font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.pdp-proline-inner h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

.pdp-proline-inner p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin: 0;
}
@media (max-width: 600px) {
    .pdp-proline-banner { padding: 40px 0; }
    .pdp-proline-inner { padding: 0 20px; }
    .pdp-proline-inner h2 { font-size: 24px; }
    .pdp-proline-inner p { font-size: 14px; }
    .pdp-warranty-card { padding: 28px 20px; border-radius: 16px; }
}

/* ========================================
   PRODUCT PAGE - 50/50 Layout
   ======================================== */

.product-page {
    padding: 28px 0 60px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Gallery */
.product-gallery {
    position: sticky;
    /* Clear the sticky header (48px) + sticky sub-nav (48px) with a small gap
       so the sub-nav banner never overlaps the top of the image on scroll. */
    top: 108px;
}

.gallery-main {
    width: 100%;
    background: var(--surface-alt);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}
.gallery-main:hover .gallery-arrow {
    opacity: 1;
    pointer-events: auto;
}
.gallery-arrow:hover {
    background: #fff;
    border-color: rgba(0,0,0,0.25);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }

/* The image optimizer wraps the hero <img> in a <picture> at build time.
   Without sizing it, the img's height:100% resolves against the auto-sized
   picture instead of the gallery box — the picture grows to the photo's
   native aspect and overflow:hidden CROPS it (visible on mobile, where the
   box is 4:3). Make the wrapper span the box so contain can letterbox. */
.gallery-main picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img,
.gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-main .video-embed {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-main .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

.thumb {
    aspect-ratio: 1;
    width: 100%;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--surface-alt);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.product-info {
    padding-top: 0;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb:hover {
    border-color: var(--border-strong);
}

.thumb.active {
    border-color: var(--accent);
}

.thumb-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: #fff;
}

.thumb-video .play-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.thumb-video .video-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.thumb-video:hover {
    background: var(--ink-body);
}

.product-brand {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

/* Brand line is also the shortcut into that brand's lineup */
a.product-brand-link {
    display: inline-block;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a.product-brand-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 12px;
}

/* Listing highlights under the product title. Short lines, so they pair up
   into two columns wherever the info column is wide enough. */
.product-highlights {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 8px 18px;
}

.product-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--ink-secondary);
}

.product-highlights svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--green);
}

/* Price + Shop Pay estimate read as a single block */
.product-pricing {
    margin-bottom: 18px;
}

.product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2px;
}

.price-save {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    background: var(--green-tint);
    border-radius: 999px;
    padding: 3px 9px;
    align-self: center;
}

.price-save:empty {
    display: none;
}

.price-now {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
}

.price-was {
    font-size: 18px;
    color: var(--ink-muted);
    text-decoration: line-through;
}

.product-financing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    color: var(--ink-secondary);
    margin: 0 0 24px 0;
}

.product-financing strong {
    font-weight: 600;
}

.shop-pay-logo {
    height: 17px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Stock + shipping badges */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px 0;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.product-badge[hidden] {
    display: none;
}

.product-badge svg {
    flex-shrink: 0;
}

.product-badge-stock {
    background: var(--green-tint);
    color: var(--green);
}

.product-badge-ship {
    background: var(--surface-alt);
    color: var(--ink-secondary);
    border: 1px solid var(--border);
}

/* Pre-order notice */
.product-preorder {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px 0;
    padding: 12px 16px;
    background: var(--amber-tint);
    border: 1px solid #f0dcb4;
    border-radius: 12px;
    color: var(--amber);
}
.product-preorder[hidden] {
    display: none;
}
.product-preorder-icon {
    flex-shrink: 0;
    color: var(--amber);
}
.product-preorder-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.product-preorder-text strong {
    font-size: 14px;
    font-weight: 700;
}
.product-preorder-date {
    font-size: 13px;
    color: #b45309;
}
.product-preorder-date:empty {
    display: none;
}

/* Buy Box */
.product-buy {
    background: var(--surface-alt);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
}

/* Quantity stepper and the CTA share one row, so the button stays above the
   fold instead of being pushed down by a full-width stepper. */
.product-buy-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.product-buy-row .product-quantity {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.product-buy-row .btn-add-cart {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.product-variants {
    margin-bottom: 16px;
}
.product-variants-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-secondary);
    margin-bottom: 8px;
}
.product-variants-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variant-btn {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.variant-btn:hover:not(:disabled) {
    border-color: var(--ink);
}
.variant-btn.active {
    border-color: var(--accent);
    background: var(--accent-wash);
    box-shadow: 0 0 0 1px var(--accent);
}
.variant-btn-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.variant-btn-price {
    font-size: 12px;
    color: var(--ink-secondary);
}
.variant-btn.active .variant-btn-price {
    color: var(--accent);
}
.variant-btn-oos {
    opacity: 0.45;
    cursor: not-allowed;
}
.variant-btn-oos .variant-btn-title {
    text-decoration: line-through;
}

.product-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.product-quantity button {
    width: 44px;
    height: 52px;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.product-quantity button:hover {
    background: #ececf0;
}

.product-quantity input {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: none;
    background: none;
}

/* Upsell Checkboxes. Rows stack — one accessory per line at every width. */
.upsell-checkboxes {
    margin-bottom: 12px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.upsell-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-secondary);
    margin-bottom: 6px;
}

.upsell-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.upsell-checkbox:hover {
    background: var(--surface-alt);
}

.upsell-checkbox input {
    display: none;
}

.upsell-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-strong);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.upsell-check::after {
    content: '';
    width: 10px;
    height: 6px;
    border: 2px solid #fff;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg) scale(0);
    transition: transform var(--transition-fast);
    margin-top: -2px;
}

.upsell-checkbox input:checked + .upsell-check {
    background: var(--accent);
    border-color: var(--accent);
}

.upsell-checkbox input:checked + .upsell-check::after {
    transform: rotate(-45deg) scale(1);
}

.upsell-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.upsell-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
}

.upsell-price {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-secondary);
    white-space: nowrap;
}

.upsell-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.upsell-row .upsell-checkbox {
    flex: 1;
    min-width: 0;
}

.upsell-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--ink-faint);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.upsell-info-btn:hover,
.upsell-info-btn:active {
    background: var(--accent-tint);
    color: var(--accent);
}

/* Upsell Modal */
.upsell-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-standard), visibility var(--transition-standard);
}

.upsell-modal.active {
    opacity: 1;
    visibility: visible;
}

.upsell-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.upsell-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-standard);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.upsell-modal.active .upsell-modal-content {
    transform: translateY(0) scale(1);
}

.upsell-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink-secondary);
    transition: all var(--transition-fast);
    z-index: 1;
}

.upsell-modal-close:hover {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upsell-modal-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--surface-alt);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.upsell-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}

.upsell-modal-body {
    padding: 24px;
}

.upsell-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.upsell-modal-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.upsell-modal-why {
    margin-bottom: 24px;
}

.upsell-modal-why h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.upsell-modal-why ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upsell-modal-why li {
    font-size: 14px;
    color: var(--ink);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}

.upsell-modal-why li:last-child {
    border-bottom: none;
}

.upsell-modal-why li strong {
    color: var(--ink);
}

/* Modal actions */
.upsell-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.upsell-modal-actions .upsell-modal-add {
    width: 100%;
    height: 52px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
}

.upsell-modal-details {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-secondary);
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.upsell-modal-details:hover {
    color: var(--accent);
    background: #f5f5f7;
}

/* Mobile: bottom-sheet style modal */
@media (max-width: 600px) {
    .upsell-modal {
        padding: 0;
        align-items: flex-end;
    }

    .upsell-modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 92vh;
        border-radius: 22px 22px 0 0;
        transform: translateY(100%);
    }

    .upsell-modal.active .upsell-modal-content {
        transform: translateY(0);
    }

    .upsell-modal-image {
        aspect-ratio: 16 / 10;
        border-radius: 0;
    }

    .upsell-modal-image img {
        padding: 16px;
    }

    .upsell-modal-body {
        padding: 20px 20px 28px;
    }

    .upsell-modal-close {
        top: 10px;
        right: 10px;
    }
}

/* ── ICO recommended upgrade ─────────────────────────────────────────────
   Buy-box row, chlorine/salt chooser modal, and the full-width section.
   The modal chrome reuses .upsell-modal above. */

.ico-upsell-row {
    gap: 8px;
}

/* Add opens the pool-type chooser — it never adds a variant blind */
.ico-upsell-add {
    flex-shrink: 0;
    padding: 8px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.ico-upsell-add:hover {
    background: var(--accent-hover);
}

/* Chooser modal internals */
.ico-modal-tagline {
    font-size: 14px;
    color: var(--ink-body);
    line-height: 1.5;
    margin-bottom: 20px;
}

.ico-pooltype-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.ico-pooltype-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.ico-pooltype-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.ico-pooltype-btn:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--accent-wash);
    box-shadow: 0 0 0 1px var(--accent);
}

.ico-pooltype-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ico-pooltype-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-tint);
    color: var(--accent-deep);
    flex-shrink: 0;
}

.ico-pooltype-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ico-pooltype-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.ico-pooltype-sub {
    font-size: 12.5px;
    color: var(--ink-secondary);
}

.ico-pooltype-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

/* Full-width recommended-upgrade section */
.pdp-ico-card {
    display: grid;
    grid-template-columns: minmax(0, 340px) 1fr;
    gap: 44px;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-wash), #fff 55%);
    border: 1px solid var(--accent-tint-border);
    border-radius: 24px;
    padding: 40px 44px;
}

.pdp-ico-media {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.pdp-ico-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.pdp-ico-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 10px 0;
}

.pdp-ico-sub {
    font-size: 15.5px;
    color: var(--ink-body);
    line-height: 1.55;
    margin-bottom: 18px;
    max-width: 56ch;
}

.pdp-ico-points {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.pdp-ico-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--ink);
    line-height: 1.45;
}

.pdp-ico-points svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent);
}

.pdp-ico-buy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.pdp-ico-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pdp-ico-price-now {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
}

.pdp-ico-price-was {
    font-size: 15px;
    color: var(--ink-muted);
    text-decoration: line-through;
}

.pdp-ico-price-save {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent-deep);
    background: var(--accent-tint);
    border-radius: 100px;
    padding: 4px 10px;
}

.pdp-ico-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.pdp-ico-link:hover {
    text-decoration: underline;
}

@media (max-width: 860px) {
    .pdp-ico-card {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 26px 22px;
    }
    .pdp-ico-media {
        max-width: 340px;
        margin: 0 auto;
    }
    .pdp-ico-title {
        font-size: 24px;
    }
}

.btn-add-cart {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 16px;
}

.btn-add-cart:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.product-trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--ink-secondary);
    flex-wrap: wrap;
}

.product-finance-note {
    font-size: 11px;
    line-height: 1.5;
    color: var(--ink-muted);
    text-align: center;
    margin: 14px auto 0;
    max-width: 420px;
}

.product-finance-note a {
    color: inherit;
    text-decoration: underline;
}

/* Full Shop Pay Installments disclosure near the bottom of the page */
.pdp-finance-terms {
    padding: 24px 0 0;
    scroll-margin-top: 140px;
}

.pdp-finance-terms p {
    font-size: 11px;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.pdp-finance-terms a {
    color: inherit;
    text-decoration: underline;
}

/* Expert Help Banner */
.expert-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.expert-help {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--ink);
    border-radius: 16px;
    padding: 16px;
}

.expert-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.expert-content {
    flex: 1;
    min-width: 0;
}

.expert-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.expert-text strong {
    color: #fff;
    display: block;
    font-weight: 600;
}

.expert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    background: #fff;
    padding: 8px 16px;
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.expert-link:hover {
    background: #ececf0;
    color: var(--accent);
}

@media (max-width: 400px) {
    .expert-help {
        flex-direction: column;
        text-align: center;
    }
    
    .expert-text strong {
        display: inline;
    }
}

/* Description */
.product-desc {
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.product-desc h1, .product-desc h2, .product-desc h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.product-desc p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-body);
    margin-bottom: 16px;
}

.product-desc ul, .product-desc ol {
    margin: 16px 0;
    padding-left: 24px;
}

.product-desc li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-body);
    margin-bottom: 8px;
}

/* Links inside merchandiser-authored copy. The global `a` is --ink, which makes
   an inline link indistinguishable from the sentence around it, so long-form
   Shopify HTML opts into the accent blue + underline.
   Button anchors embedded in this copy are rescued by the button-colour guard
   further down — see "BUTTON COLOUR GUARD". */
.product-desc a,
.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.product-desc a:hover,
.article-body a:hover {
    color: var(--accent-hover);
    text-decoration-thickness: 2px;
}

.back-link {
    padding: 32px 0 48px;
}

.back-link a {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

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

/* Responsive Product Page */
@media (max-width: 900px) {
    /* minmax(0,…): a plain 1fr track takes its automatic minimum from the
       widest child's min-content, and the non-wrapping thumbnail strip is
       ~800px of min-content — which silently blew the gallery column out
       past the viewport. */
    .product-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .product-gallery,
    .product-info {
        min-width: 0;
    }

    .product-gallery {
        position: static;
    }

    .product-title {
        font-size: 26px;
    }

    .price-now {
        font-size: 26px;
    }

    /* Single column of highlights reads better than two narrow ones */
    .product-highlights {
        grid-template-columns: 1fr;
    }

    /* A square hero eats the whole phone screen — shorten it so the title,
       price and CTA are reachable with far less scrolling. The photo floats
       on the page background instead of sitting boxed in a grey panel, and
       never crops: contain always shows the full shot. */
    .gallery-main {
        aspect-ratio: 4 / 3;
        background: transparent;
        border-radius: 0;
    }

    .gallery-main img,
    .gallery-main video {
        object-fit: contain;
    }

    /* No hover on touch — the prev/next arrows must simply be there,
       or the gallery reads as a single static photo. */
    .gallery-arrow {
        opacity: 1;
        pointer-events: auto;
        width: 38px;
        height: 38px;
    }

    /* Thumbs lose the grey tiles too: white with a hairline border. */
    .thumb {
        background: #fff;
        border: 1.5px solid var(--border);
    }
    .thumb.active {
        border-color: var(--accent);
    }
}

@media (max-width: 600px) {
    .product-page {
        padding: 16px 0 40px;
    }

    .pdp-breadcrumb {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .pdp-breadcrumb-current {
        max-width: 160px;
    }

    /* Breathing room around the hero shot, and thumbs as one clean
       swipeable strip instead of a ragged grid of grey squares. */
    .gallery-main {
        padding: 0 6px;
    }

    .gallery-thumbs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 2px 2px 6px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .gallery-thumbs::-webkit-scrollbar { display: none; }

    .thumb {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }

    .product-buy {
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
        padding: 18px 20px;
    }

    .product-buy-row .product-quantity {
        flex: 0 0 132px;
    }

    .product-quantity button { width: 40px; }
    .product-quantity input { width: 48px; }

    .product-trust {
        flex-direction: row;
        justify-content: center;
        gap: 6px 14px;
        font-size: 12px;
    }

    /* Bigger, filled CTA in the sticky bar — on a phone this is the buy
       button that's always on screen, so it needs a real tap target. */
    .pdp-subnav-buy {
        background: var(--accent);
        color: #fff;
        padding: 0 20px;
        min-height: 38px;
        font-size: 13px;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    /* Section links give way to price + CTA on the narrowest screens */
    .pdp-subnav-links { display: none; }
    .pdp-subnav-inner { justify-content: flex-end; }
    .pdp-subnav-cta { flex: 1; justify-content: space-between; }
}

.variant-title {
    font-weight: 600;
    color: var(--ink);
}

.variant-price {
    font-weight: 700;
    color: var(--ink);
    margin-left: 1rem;
}

.variant-status {
    font-size: 0.875rem;
    margin-left: 1rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--ink);
}

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

.quantity-input .qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--ink);
}

.quantity-input .qty-btn:hover {
    border-color: var(--ink);
}

.quantity-input .qty-btn:active {
    background: var(--surface-alt);
    transform: scale(0.95);
}

.quantity-input input[type="number"] {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
}

.quantity-input input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.quantity-input input[type="number"]::-webkit-inner-spin-button,
.quantity-input input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-actions .add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9375rem;
    height: 48px;
    padding: 0 24px;
}

.in-stock {
    color: var(--green);
    font-size: 0.9rem;
    margin-left: 1rem;
}

.out-of-stock {
    color: var(--red);
    font-size: 0.9rem;
    margin-left: 1rem;
}

.sku {
    color: var(--ink-muted);
    font-size: 0.85rem;
    margin-left: 1rem;
}

.product-tags {
    margin: 1.5rem 0;
}

.tag {
    display: inline-block;
    background: var(--surface-alt);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    margin: 0.25rem;
    font-size: 0.85rem;
    color: var(--ink);
}

.product-meta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Collection Header */
.collection-header-image {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.collection-header-image img {
    border-radius: 16px;
}

.back-link {
    padding: 2rem 0;
}

/* Blog Styles */
.blog-section {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-standard);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-info {
    padding: 1.5rem;
}

.blog-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-info h2 a {
    color: var(--ink);
}

.blog-meta {
    color: var(--ink-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Article Section */
.article-section {
    padding: 48px 0;
}

/* minmax(0, …) on the content column: a plain `1fr` track takes its automatic
   minimum from the widest child's min-content, so one wide markdown table drags
   the whole column past the viewport and `body { overflow-x: hidden }` then
   clips the copy and buttons off the right edge. The table scrolls on its own
   (see `.article-body table` below). */
.article-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
}
.article-main,
.article-toc { min-width: 0; }

@media (max-width: 1000px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
    
    .article-toc:empty,
    .article-toc:not(:has(.toc-sticky)) {
        display: none;
    }
}

.article-toc {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 88px;
}

.toc-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    margin-bottom: 16px;
}

.toc-nav {
    border-left: 2px solid var(--border);
    padding-left: 16px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 12px;
}

.toc-link {
    display: block;
    font-size: 14px;
    color: var(--ink-secondary);
    text-decoration: none;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.toc-link:hover {
    color: var(--accent);
}

.toc-link.active {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 1000px) {
    .article-toc {
        order: 2;
        border-top: 1px solid var(--border);
        padding-top: 24px;
        margin-top: 32px;
    }
    
    .toc-sticky {
        position: static;
    }
    
    .toc-nav {
        border-left: none;
        padding-left: 0;
    }
    
    .toc-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
    }
    
    .toc-item {
        margin-bottom: 0;
    }
}

/* Article Main Content */
.article-main {
    max-width: 760px;
}

.article-meta-header {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--ink-secondary);
    margin-top: 8px;
}

.article-meta-header a {
    color: var(--accent);
}

.article-featured-image {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-body {
    line-height: 1.8;
    color: var(--ink);
    font-size: 17px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--ink);
    padding-top: 16px;
    scroll-margin-top: 88px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--ink);
}

.article-body h4 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--ink);
}

.article-body p {
    margin-bottom: 24px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

.article-body ul,
.article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 32px 0;
    color: var(--ink-secondary);
    font-style: italic;
}

.article-body code {
    background: var(--surface-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 15px;
}

.article-body pre {
    background: var(--surface-alt);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
}

.article-tags {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-tags strong {
    font-weight: 600;
    color: var(--ink-secondary);
    margin-right: 8px;
}

.tag {
    display: inline-block;
    background: var(--surface-alt);
    padding: 6px 12px;
    border-radius: 100px;
    margin: 4px;
    font-size: 13px;
    color: var(--ink-secondary);
}

/* Blog Grid */
.gs-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1000px) {
    .gs-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gs-blog-grid {
        grid-template-columns: 1fr;
    }
}

.gs-blog-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-standard);
}

.gs-blog-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.gs-blog-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--surface-alt);
}

.gs-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-standard);
}

.gs-blog-card:hover .gs-blog-image img {
    transform: scale(1.05);
}

.gs-blog-placeholder {
    background: linear-gradient(135deg, var(--surface-alt), var(--surface-alt));
}

.gs-blog-content {
    padding: 24px;
}

.gs-blog-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.4;
}

.gs-blog-meta {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.gs-blog-excerpt {
    font-size: 14px;
    color: var(--ink-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.gs-blog-link {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

/* Upsell Section */
.gs-upsell-subtitle {
    font-size: 16px;
    color: var(--ink-secondary);
    text-align: center;
    margin-top: -16px;
    margin-bottom: 32px;
}

.gs-upsell-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .gs-upsell-grid {
        grid-template-columns: 1fr;
    }
}

.gs-upsell-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition-standard);
}

.gs-upsell-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--border-strong);
}

.gs-upsell-image-link {
    display: block;
    margin-bottom: 16px;
}

.gs-upsell-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.gs-upsell-details {
    width: 100%;
}

.gs-upsell-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.4;
}

.gs-upsell-name a {
    color: inherit;
    text-decoration: none;
}

.gs-upsell-name a:hover {
    color: var(--accent);
}

.gs-upsell-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}

/* Page Content */
/* Trust hero header on static / policy pages */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 56px;
    color: #fff;
    background:
        radial-gradient(120% 130% at 50% -30%, rgba(0, 113, 227, 0.16) 0%, rgba(0, 113, 227, 0) 58%),
        linear-gradient(180deg, rgba(24, 24, 26, 0.62) 0%, rgba(24, 24, 26, 0.84) 100%),
        var(--page-hero-img, none) center / cover no-repeat,
        #1a1a1c;
}
.page-hero .cp-breadcrumb {
    justify-content: flex-start;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.6);
}
.page-hero .cp-breadcrumb a { color: rgba(255, 255, 255, 0.6); }
.page-hero .cp-breadcrumb a:hover { color: #fff; }
.page-hero .cp-breadcrumb svg { color: rgba(255, 255, 255, 0.4); }
.page-hero .cp-breadcrumb span { color: #fff; }
.page-hero-title {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0;
    color: #fff;
}
.page-hero-sub {
    margin: 14px 0 0;
    max-width: 640px;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}
@media (max-width: 640px) {
    .page-hero { padding: 44px 0 40px; }
    .page-hero-title { font-size: 32px; }
    .page-hero-sub { font-size: 16px; }
}

.page-content {
    padding: var(--space-16) 0;
}

.content-article {
    max-width: 800px;
    margin: 0 auto;
}

.content-article .article-header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border);
}

.content-article .article-header h1 {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: var(--space-2);
}

.content-article .article-meta {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0;
}

/* Breadcrumb on light static pages (override dark-hero defaults) */
.content-article .cp-breadcrumb {
    justify-content: flex-start;
    margin-bottom: 18px;
}
.content-article .cp-breadcrumb a { color: var(--ink-muted); }
.content-article .cp-breadcrumb a:hover { color: var(--accent); }
.content-article .cp-breadcrumb svg { color: var(--border-strong); }
.content-article .cp-breadcrumb span { color: var(--ink); }

/* Static-page help strip */
.page-help {
    padding: 0 0 80px;
}
.page-help-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 36px;
}
.page-help-text h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.page-help-text p {
    font-size: 14px;
    color: var(--ink-secondary);
    margin: 0;
    line-height: 1.6;
    max-width: 440px;
}
.page-help-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .page-help { padding: 0 0 48px; }
    .page-help-inner { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
    .page-help-actions { width: 100%; }
    .page-help-actions .gs-btn { flex: 1; text-align: center; justify-content: center; }
}

.policy-page {
    background: var(--surface-alt);
}

.policy-content {
    background: #ffffff;
    padding: var(--space-8);
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-top: var(--space-8);
}

.policy-content h2 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.policy-content h3 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.policy-content p {
    margin-bottom: var(--space-4);
    color: var(--ink-secondary);
}

.policy-content ul,
.policy-content ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-8);
    color: var(--ink-secondary);
}

.policy-content li {
    margin-bottom: var(--space-2);
}

/* Text Utilities */
.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* ========================================
   CART DRAWER
   ======================================== */

#cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

#cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

#mega-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
    pointer-events: none;
}

#mega-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100%;
    height: 100dvh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    padding: var(--space-3) var(--space-5);
    /* Account for the iPhone notch / status bar */
    padding-top: calc(var(--space-3) + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.cart-drawer-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.cart-drawer-close {
    background: var(--surface-alt);
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--ink-secondary);
    transition: all var(--transition-fast);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.cart-drawer-close:hover {
    background: var(--border);
    color: var(--ink);
    transform: scale(1.05);
}

.cart-drawer-close:active {
    transform: scale(0.95);
}

.cart-drawer-body {
    flex: 1 1 auto;
    /* min-height:0 is required so this flex child can shrink and scroll
       instead of expanding and pushing the footer off-screen */
    min-height: 0;
    overflow-y: auto;
    padding: var(--space-6);
    /* When the cart is empty the footer is hidden, so guard the home bar here */
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
    background: var(--surface-alt);
}

.cart-drawer-body::-webkit-scrollbar {
    width: 6px;
}

.cart-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.cart-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.cart-drawer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.cart-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16) var(--space-8);
    color: var(--ink-secondary);
    background: #ffffff;
    border-radius: 20px;
}

.cart-empty svg {
    margin-bottom: var(--space-6);
    opacity: 0.2;
    color: var(--ink-muted);
}

.cart-empty p {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 var(--space-2) 0;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.cart-empty .cart-empty-sub {
    font-size: 15px;
    font-weight: 400;
    color: var(--ink-muted);
    margin: 0 0 var(--space-8) 0;
    max-width: 260px;
}

.cart-empty .btn {
    width: 100%;
    max-width: 280px;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: var(--space-3);
    row-gap: var(--space-2);
    align-items: center;
    padding: var(--space-3);
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border);
    animation: slideIn var(--transition-standard) ease;
    transition: all var(--transition-fast);
}

.cart-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: var(--border-strong);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-alt);
    grid-row: 1 / 3;
}

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

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-variant {
    font-size: 12px;
    color: var(--ink-muted);
    margin: 0;
    font-weight: 400;
}

/* Pre-order flag on a cart line — same amber as the PDP pre-order notice. */
.cart-item-preorder {
    font-size: 11.5px;
    font-weight: 600;
    color: #b45309;
    margin: 0;
    line-height: 1.35;
}

.cart-item-price {
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.01em;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
    grid-column: 2;
    grid-row: 2;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: var(--surface-alt);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--ink-secondary);
}

.qty-btn:hover {
    background: var(--border);
    color: var(--ink);
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn svg {
    width: 12px;
    height: 12px;
}

.qty-input {
    width: 32px;
    height: 26px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.cart-item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-2);
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: stretch;
}

.cart-item-line-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--ink-faint);
    transition: all var(--transition-fast);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: rgba(229, 57, 53, 0.08);
    color: var(--red);
}

.cart-item-remove:active {
    background: rgba(229, 57, 53, 0.16);
}

.cart-item-remove svg {
    width: 15px;
    height: 15px;
}

/* Cart Footer */
.cart-drawer-footer {
    display: none;
    flex-direction: column;
    flex-shrink: 0;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    /* Account for the iPhone home-indicator bar */
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.cart-totals {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-2);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--ink-secondary);
    letter-spacing: -0.01em;
}

.cart-total-row span:last-child {
    font-weight: 600;
    color: var(--ink);
}

.cart-total-final {
    font-size: 18px;
    font-weight: 700;
    padding-top: var(--space-2);
    margin-top: 2px;
    border-top: 1px solid var(--border);
    color: var(--ink);
    letter-spacing: -0.01em;
}

.cart-total-final span:last-child {
    font-weight: 700;
}

.cart-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: var(--green-tint);
    border: 1px solid #cfe4d6;
    border-radius: 8px;
    margin: 2px 0;
}

.cart-discount-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
}

.cart-discount-info svg {
    flex-shrink: 0;
    color: var(--green);
}

.cart-discount-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
}

.btn-block {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
}

/* Checkout is the primary action; Continue Shopping is a slim text link */
#cart-checkout-btn.btn-block {
    min-height: 50px;
}

#cart-continue-shopping.btn-block {
    min-height: 0;
    padding: var(--space-2);
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--ink-secondary);
}

#cart-continue-shopping.btn-block:hover {
    color: var(--ink);
    background: transparent;
}

/* Cart Notifications */
.cart-notification {
    /* Toasts are informational only — never let them swallow taps meant for
       the UI underneath (e.g. the cart drawer's close button on mobile) */
    pointer-events: none;
    position: fixed;
    top: var(--space-6);
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    min-width: 320px;
    max-width: 480px;
    padding: var(--space-5) var(--space-6);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    color: var(--ink);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: transform var(--transition-smooth);
    z-index: 10000;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.cart-notification.show {
    transform: translateX(-50%) translateY(0);
}

.cart-notification-success {
    border-left: 3px solid var(--green);
}

.cart-notification-error {
    border-left: 3px solid var(--red);
}

.cart-notification-info {
    border-left: 3px solid var(--accent);
}

@media (max-width: 640px) {
    .cart-notification {
        left: var(--space-4);
        right: var(--space-4);
        transform: translateX(0) translateY(-120px);
        min-width: auto;
    }
    
    .cart-notification.show {
        transform: translateX(0) translateY(0);
    }
}

/* Add to Cart Button */
.add-to-cart-btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
}

.add-to-cart-btn:disabled {
    opacity: 1;
    cursor: not-allowed;
}

/* Icon Buttons */
.icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.icon-btn:active {
    background: rgba(0, 0, 0, 0.12);
}

/* ========================================
   FOOTER - Dark Beatbot Style
   ======================================== */

.footer {
    background: #000;
    color: #fff;
    border-top: none;
    margin-top: 0;
}

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

/* Footer Newsletter */
.footer-newsletter {
    padding: 44px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-newsletter .footer-inner {
    align-items: center;
    gap: 40px;
}

.footer-newsletter-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.footer-newsletter-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.newsletter-form {
    width: 100%;
    max-width: 440px;
    flex-shrink: 0;
}

.newsletter-field {
    display: flex;
    gap: 10px;
}

.newsletter-field input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    font-size: 15px;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.newsletter-field input[type="email"]::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-field input[type="email"]:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}

.newsletter-submit {
    flex-shrink: 0;
    white-space: nowrap;
}

.newsletter-submit:disabled {
    opacity: 0.65;
    cursor: default;
}

.newsletter-message {
    font-size: 13px;
    margin: 12px 0 0;
}

.newsletter-message.is-success {
    color: #30d158;
}

.newsletter-message.is-error {
    color: #ff6961;
}

@media (max-width: 900px) {
    .footer-newsletter .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-form {
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .newsletter-field {
        flex-direction: column;
    }
    .newsletter-submit {
        width: 100%;
    }
}

.footer-main {
    padding: 72px 0 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.footer-logo img {
    height: 36px;
    width: auto;
    display: block;
}

.footer-logo:hover {
    color: #fff;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.45);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
    background: #ff0000;
    color: #fff;
}

@media (max-width: 900px) {
    .footer-social {
        justify-content: center;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 48px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    padding: 5px 0;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 28px 0;
}

.footer-bottom .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

.footer-payments {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.pay-icon {
    width: 42px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.pay-icon:hover { opacity: 1; }

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #fff;
}

/* Footer Responsive */
@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-bottom .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-payments {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .footer-main {
        padding: 40px 0 24px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* ========================================
   HOMEPAGE - Full-Bleed Image Sections
   ======================================== */

.hp-fullbleed {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-fullbleed-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-fullbleed-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 32px;
    max-width: 700px;
}

.hp-fullbleed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.hp-fullbleed-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.hp-fullbleed-title {
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .hp-fullbleed {
        min-height: 400px;
    }
    .hp-fullbleed-title {
        font-size: 30px;
    }
}

/* ========================================
   HOMEPAGE - Stats Section
   ======================================== */

.hp-stats {
    padding: 80px 0;
    background: var(--ink);
}

.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.hp-stat-number {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hp-stat-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .hp-stats {
        padding: 60px 0;
    }
    .hp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
    .hp-stat-number {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hp-stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ========================================
   HOMEPAGE - Features Grid
   ======================================== */

.hp-features {
    padding: 100px 0;
    background: #ffffff;
}

.hp-features-header {
    text-align: center;
    margin-bottom: 56px;
}

.hp-features-sub {
    font-size: 18px;
    color: var(--ink-secondary);
    margin-top: -32px;
    margin-bottom: 0;
}

.hp-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.hp-feature-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.hp-feature-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.hp-feature-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--surface-alt);
}

.hp-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hp-feature-card:hover .hp-feature-img img {
    transform: scale(1.06);
}

.hp-feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    padding: 20px 20px 8px;
    margin: 0;
}

.hp-feature-card p {
    font-size: 14px;
    color: var(--ink-secondary);
    line-height: 1.6;
    padding: 0 20px 24px;
    margin: 0;
}

@media (max-width: 1000px) {
    .hp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hp-features {
        padding: 60px 0;
    }
    .hp-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   HOMEPAGE - Split Section
   ======================================== */

.hp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
}

.hp-split-left {
    overflow: hidden;
}

.hp-split-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hp-split-right {
    display: flex;
    align-items: center;
    padding: 64px;
    background: var(--surface-alt);
}

.hp-split-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hp-split-content p {
    font-size: 17px;
    color: var(--ink-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .hp-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hp-split-left {
        aspect-ratio: 16/9;
    }
    .hp-split-right {
        padding: 48px 24px;
    }
    .hp-split-content h2 {
        font-size: 28px;
    }
}

/* ========================================
   HOMEPAGE - Testimonials
   ======================================== */

.hp-testimonials {
    padding: 100px 0;
    background: #ffffff;
}

.hp-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 0;
}

.hp-testimonial {
    background: var(--surface-alt);
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid var(--border);
}

.hp-testimonial-stars {
    font-size: 18px;
    color: var(--star);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hp-testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-body);
    margin-bottom: 24px;
    font-style: italic;
}

.hp-testimonial-author strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.hp-testimonial-author span {
    font-size: 13px;
    color: var(--ink-muted);
}

@media (max-width: 900px) {
    .hp-testimonials {
        padding: 60px 0;
    }
    .hp-testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   HOMEPAGE - Dark CTA
   ======================================== */

.hp-cta-dark {
    background: var(--ink);
    padding: 100px 32px;
    text-align: center;
}

.hp-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.hp-cta-inner h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hp-cta-inner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-bottom: 36px;
}
.hp-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hp-cta-dark {
        padding: 60px 16px;
    }
    .hp-cta-inner h2 {
        font-size: 28px;
    }
}

/* ========================================
   QUIZ PAGE
   ======================================== */

.quiz-hero {
    background:
        radial-gradient(120% 130% at 50% -30%, rgba(0, 113, 227, 0.22) 0%, rgba(0, 113, 227, 0) 58%),
        linear-gradient(180deg, rgba(29, 29, 31, 0.76) 0%, rgba(17, 17, 19, 0.9) 100%),
        url('/assets/img/site/hero-pillar.jpg') center / cover no-repeat,
        #111113;
    padding: 72px 32px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.quiz-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.quiz-hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    max-width: 540px;
    margin-inline: auto;
    line-height: 1.5;
}

.quiz-wrap {
    padding: 48px 0 64px;
    min-height: 480px;
}

.quiz-progress {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.quiz-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.quiz-step-label {
    font-size: 13px;
    color: var(--ink-faint);
    font-weight: 600;
    text-align: right;
    margin-bottom: 40px;
}

.quiz-steps {
    display: grid;
}
.quiz-step {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}
.quiz-step.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quiz-q {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    margin: 0 0 36px;
    letter-spacing: -0.02em;
}

.quiz-options {
    display: grid;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.quiz-options-2 { grid-template-columns: repeat(2, 1fr); }
.quiz-options-3 { grid-template-columns: repeat(3, 1fr); }

.quiz-card {
    display: flex;
        flex-direction: column;
    align-items: center;
        text-align: center;
    gap: 10px;
    padding: 32px 20px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}
.quiz-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 113, 227,0.08);
    transform: translateY(-4px);
}
.quiz-card.selected {
    border-color: var(--accent);
    background: rgba(0, 113, 227,0.04);
    box-shadow: 0 0 0 3px rgba(0, 113, 227,0.15);
}

.quiz-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border-radius: 16px;
    color: var(--accent);
    margin-bottom: 4px;
    transition: background 0.25s ease;
}
.quiz-card:hover .quiz-card-icon,
.quiz-card.selected .quiz-card-icon {
    background: rgba(0, 113, 227,0.08);
}

.quiz-card strong {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}
.quiz-card span {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.5;
}

.quiz-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    padding: 10px 20px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.quiz-back:hover { border-color: var(--ink); color: var(--ink); }

/* Quiz Results */
.quiz-results {
    padding: 64px 0 80px;
    background: var(--surface-alt);
}
.quiz-results-header {
    text-align: center;
    margin-bottom: 48px;
}
.quiz-results-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.quiz-results-header p {
    font-size: 17px;
    color: var(--ink-muted);
    margin: 0;
}

.quiz-results-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.quiz-result-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}
.quiz-result-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.quiz-result-best {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(0, 113, 227,0.1);
}

.quiz-result-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 8px;
    z-index: 1;
}

.quiz-result-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    padding: 24px;
    min-height: 180px;
}
.quiz-result-img img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.quiz-result-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.quiz-result-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.quiz-result-reasons {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.quiz-result-reasons li {
    font-size: 13px;
    color: var(--ink-body);
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}
.quiz-result-reasons li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.quiz-result-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}
.quiz-result-compare {
    font-size: 15px;
    font-weight: 400;
    color: var(--ink-faint);
    text-decoration: line-through;
    margin-left: 8px;
}

.quiz-result-actions {
    display: flex;
    gap: 10px;
}

.quiz-result-alts {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.quiz-result-alts-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.quiz-result-alt-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.2s ease;
}
.quiz-result-alt-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.quiz-result-badge-runner {
    background: var(--ink-body);
}

.quiz-retake {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
}

@media (max-width: 900px) {
    .quiz-hero { padding: 56px 20px 40px; }
    .quiz-hero-title { font-size: 30px; }
    .quiz-options-2,
    .quiz-options-3 { grid-template-columns: 1fr; }
    .quiz-q { font-size: 22px; }
    .quiz-result-card { grid-template-columns: 1fr; }
    .quiz-result-img { min-height: 140px; }
}

/* ---------- Top picks (above the quiz) ---------- */
.quiz-picks {
    padding: 8px 0 64px;
    background: #fff;
}
.quiz-picks-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}
.quiz-picks-head h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}
.quiz-picks-head p {
    font-size: 16px;
    color: var(--ink-body);
    margin: 0;
}
.quiz-picks-head a { color: var(--accent); }

/* #1 pick spans the full width; the rest sit in a 4-up row below it. */
.quiz-picks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.quiz-pick {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.quiz-pick:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border-color: var(--border-strong);
}
.quiz-pick-featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    border-width: 2px;
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--surface-alt) 0%, #fff 60%);
}

.quiz-pick-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--surface-alt);
    flex-shrink: 0;
    /* Flex items get min-height:auto (= content size); without this the square
       product shot would override the 16:9 ratio and stretch the box. */
    min-height: 0;
}
.quiz-pick-featured .quiz-pick-media {
    width: 46%;
    align-self: center;
    background: transparent;
}
/* Absolutely fill the ratio box so the image can never drive its height. */
.quiz-pick-media picture,
.quiz-pick-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}
.quiz-pick-award {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}
.quiz-pick-award-top {
    background: var(--accent);
    font-size: 12px;
    padding: 8px 16px;
}

.quiz-pick-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.quiz-pick-featured .quiz-pick-body { padding: 32px 40px 32px 8px; }
.quiz-pick-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.quiz-pick-rank {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink-faint);
    letter-spacing: 0.04em;
}
.quiz-pick-featured .quiz-pick-rank { color: var(--accent); font-size: 15px; }
.quiz-pick-price {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.quiz-pick-price-now {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}
.quiz-pick-featured .quiz-pick-price-now { font-size: 26px; }
.quiz-pick-price-was {
    font-size: 14px;
    color: var(--ink-faint);
    text-decoration: line-through;
}
.quiz-pick-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin: 0;
}
.quiz-pick-featured .quiz-pick-name { font-size: 28px; letter-spacing: -0.02em; }
.quiz-pick-tagline {
    font-size: 14px;
    color: var(--ink-body);
    line-height: 1.55;
    margin: 0;
}
.quiz-pick-featured .quiz-pick-tagline { font-size: 17px; }
.quiz-pick-bullets {
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.quiz-pick-featured .quiz-pick-bullets { gap: 8px; margin-top: 6px; }
.quiz-pick-bullets li {
    position: relative;
    padding-left: 20px;
    font-size: 13.5px;
    color: var(--ink-body);
    line-height: 1.5;
}
.quiz-pick-featured .quiz-pick-bullets li { font-size: 15px; }
.quiz-pick-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.quiz-pick-cta {
    margin-top: auto;
    padding-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}
.quiz-pick:hover .quiz-pick-cta { text-decoration: underline; }

.quiz-picks-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Quiz SEO Article */
.quiz-article {
    padding: 80px 0 96px;
    background: #fff;
}
.quiz-article-head {
    max-width: 780px;
    margin: 0 auto 40px;
}

/* Two-column guide: sticky TOC rail on the left, prose on the right. */
.quiz-article-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}
.quiz-toc-col {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}
.quiz-article-inner {
    min-width: 0;
}
.quiz-article-inner h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    line-height: 1.2;
}
.quiz-article-intro {
    font-size: 18px;
    color: var(--ink-body);
    line-height: 1.7;
    margin-bottom: 40px;
}
.quiz-article-inner h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
    scroll-margin-top: 80px;
}
.quiz-article-inner h4 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    margin: 32px 0 10px;
}
.quiz-article-inner p {
    font-size: 16px;
    color: var(--ink-body);
    line-height: 1.8;
    margin: 0 0 16px;
}
.quiz-article-inner ul,
.quiz-article-inner ol {
    margin: 0 0 20px;
    padding-left: 24px;
}
.quiz-article-inner li {
    font-size: 16px;
    color: var(--ink-body);
    line-height: 1.8;
    margin-bottom: 6px;
}
.quiz-article-inner a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.quiz-article-inner a:hover { color: var(--accent-hover); }

/* Table of contents — sticky left rail inside .quiz-article-layout */
.quiz-toc {
    background: var(--surface-alt);
    border-radius: 16px;
    padding: 24px 22px;
}
.quiz-toc h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-faint);
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.quiz-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: quiz-toc;
}
.quiz-toc li {
    counter-increment: quiz-toc;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 2px;
    color: var(--ink-body);
}
.quiz-toc a {
    display: block;
    position: relative;
    padding: 7px 10px 7px 30px;
    border-radius: 8px;
    color: var(--ink-body);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.quiz-toc a::before {
    content: counter(quiz-toc);
    position: absolute;
    left: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-faint);
}
.quiz-toc a:hover {
    background: #fff;
    color: var(--ink);
}
.quiz-toc a.is-active {
    background: #fff;
    color: var(--accent);
    font-weight: 700;
    border-left-color: var(--accent);
}
.quiz-toc a.is-active::before { color: var(--accent); }
.quiz-toc-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.quiz-toc-cta:hover { text-decoration: underline; }

/* In-article 16:9 figures */
.quiz-fig {
    margin: 24px 0 32px;
}
.quiz-fig-img {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-alt);
}
.quiz-fig-img picture,
.quiz-fig-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quiz-fig figcaption {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-faint);
}

/* Closing CTA under the guide */
.quiz-article-end {
    margin-top: 40px;
    padding: 22px 26px;
    background: var(--surface-alt);
    border-radius: 14px;
}
.quiz-article-end p { margin: 0; }

/* ---------- Picks + guide layout: tablet & mobile ---------- */
@media (max-width: 1100px) {
    .quiz-article-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 36px;
    }
}

@media (max-width: 900px) {
    /* Guide: TOC drops above the prose and stops sticking. */
    .quiz-article { padding: 56px 0 64px; }
    .quiz-article-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .quiz-toc-col {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .quiz-toc a.is-active { border-left-color: transparent; }

    /* Picks: 2-up, featured card stacks. */
    .quiz-picks { padding: 4px 0 48px; }
    .quiz-picks-head h2 { font-size: 25px; }
    .quiz-picks-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .quiz-pick-featured { flex-direction: column; align-items: stretch; }
    .quiz-pick-featured .quiz-pick-media {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .quiz-pick-featured .quiz-pick-body { padding: 22px 24px 26px; }
    .quiz-pick-featured .quiz-pick-name { font-size: 24px; }
    .quiz-pick-featured .quiz-pick-tagline { font-size: 15px; }
    .quiz-pick-featured .quiz-pick-price-now { font-size: 22px; }
    .quiz-picks-footer .gs-btn { flex: 1 1 240px; text-align: center; }
}

@media (max-width: 560px) {
    .quiz-picks-grid { grid-template-columns: 1fr; }
    .quiz-fig { margin: 20px 0 26px; }
}

/* Comparison table */
.quiz-table-wrap {
    overflow-x: auto;
    margin: 20px 0 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.quiz-compare-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 14px;
}
.quiz-compare-table th {
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
}
/* Product names in the header row are links, and the global `a { color: --ink }`
   (0,0,1) beats the inherited #fff — dark ink on the dark --ink fill, an
   invisible 1:1 label. */
.quiz-compare-table th a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.quiz-compare-table th a:hover { color: #fff; text-decoration-thickness: 2px; }
.quiz-compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ececf0;
    color: var(--ink-body);
    vertical-align: top;
}
.quiz-compare-table tr:last-child td { border-bottom: none; }
.quiz-compare-table td:first-child {
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}
.quiz-compare-table tr:nth-child(even) td { background: var(--surface-alt); }

/* FAQ */
.quiz-faq {
    margin: 20px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quiz-faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.quiz-faq-item[open] { border-color: var(--border-strong); }
.quiz-faq-item summary {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.quiz-faq-item summary::-webkit-details-marker { display: none; }
.quiz-faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--ink-faint);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.2s ease;
}
.quiz-faq-item[open] summary::after {
    content: '−';
    color: var(--accent);
}
.quiz-faq-item p {
    padding: 0 24px 20px;
    margin: 0;
}

/* Decision flowchart */
.quiz-flowchart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}
.quiz-flow-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    background: var(--surface-alt);
    border-radius: 14px;
    border-left: 4px solid var(--accent);
}
.quiz-flow-q {
    font-size: 15px;
    color: var(--ink-body);
    line-height: 1.5;
}
.quiz-flow-a {
    font-size: 16px;
    color: var(--ink);
    line-height: 1.5;
}

/* ========================================
   RESPONSIVE — Comprehensive Mobile Fixes
   ======================================== */

/* ---------- Tablet (max 900px) ---------- */
@media (max-width: 900px) {
    /* Global */
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 22px; }

    .gs-hero { padding: 80px 16px; }
    .gs-hero-title { font-size: 36px; }
    .gs-hero-subtitle { font-size: 16px; }
    .gs-section { padding: 48px 0; }
    .gs-section-title { font-size: 26px; margin-bottom: 24px; }
    .gs-container { padding: 0 16px; }
    /* Track the narrower container padding so the hero cards stay flush with
       the trio grid below them at this breakpoint too. */
    .hp-inno-hero { width: min(1336px, 100% - 32px); }

    /* Legacy grids — safe minmax for narrow viewports */
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
    .collection-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .page-header h1 { font-size: 2rem; }
    .footer-container { grid-template-columns: 1fr; }

    /* Hero carousel — always show arrows on touch */
    .hero-arrow { opacity: 1; pointer-events: auto; }
    .hero-slide-content { padding: 36px 24px 0; }

    /* Gallery arrows — always show on touch */
    .gallery-arrow { opacity: 1; pointer-events: auto; }

    /* Innovations */
    .hp-innovations { padding: 48px 0 32px; }
    .hp-inno-pill { min-width: 0; padding: 10px 14px; }
    .hp-inno-trio-actions { flex-wrap: wrap; }
    .hp-inno-trio-actions .gs-btn { flex: 1 1 100%; text-align: center; justify-content: center; }

    /* Choose section */
    .hp-choose-inner h2 { font-size: 28px; }
    .hp-choose { padding: 48px 0; }

    /* Product cards */
    .gs-product-card { padding: 16px; }
    .gs-btn { height: 46px; padding: 0 24px; font-size: 14px; }
    .gs-btn-lg { height: 48px; padding: 0 28px; }

    /* Collection hero */
    .cp-hero { padding: 48px 0 32px; }
    .cp-hero-title { font-size: 36px; }
    .cp-hero-desc { font-size: 15px; }
    .cp-help-inner { padding: 40px 28px; }

    /* Quiz — results */
    .quiz-result-actions { flex-wrap: wrap; }
    .quiz-result-actions .gs-btn,
    .quiz-result-actions a { flex: 1 1 100%; text-align: center; justify-content: center; }
    .quiz-retake { flex-direction: column; align-items: center; }
    .quiz-article { padding: 48px 0 56px; }
    .quiz-article-inner { padding: 0 20px; }
    .quiz-article-inner h2 { font-size: 28px; }
    .quiz-article-inner h3 { font-size: 20px; }

    /* Footer */
    .footer-inner { padding: 0 16px; }
    .footer-legal { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
}

/* ---------- Phone (max 600px) ---------- */
@media (max-width: 600px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }

    .gs-hero { padding: 56px 16px; }
    .gs-hero-title { font-size: 28px; }
    .gs-section { padding: 36px 0; }
    .gs-section-title { font-size: 22px; margin-bottom: 20px; }
    .gs-btn { height: 44px; padding: 0 20px; font-size: 13px; }
    .gs-btn-lg { height: 46px; padding: 0 24px; font-size: 14px; }

    /* Hero carousel — taller stage on phones, the 768w banner crops are portrait */
    .hero-carousel { height: 58vh; min-height: 380px; max-height: 560px; }
    .hero-slide-title { font-size: 22px; }
    .hero-slide-sub { font-size: 14px; margin-bottom: 16px; }
    .hero-slide-content { padding: 0 16px; }
    .hero-arrow { width: 32px; height: 32px; }
    .hero-arrow-prev { left: 8px; }
    .hero-arrow-next { right: 8px; }
    .hero-arrow svg { width: 14px; height: 14px; }
    .hero-dots { bottom: 12px; gap: 8px; }
    .hero-dot { width: 8px; height: 8px; }

    /* Innovations */
    .hp-innovations { padding: 32px 0 24px; }
    .hp-inno-hero { margin-bottom: 16px; border-radius: 16px; }
    .hp-inno-hero-body { padding: 24px 20px; }
    .hp-inno-hero-name { font-size: 22px; }
    .hp-inno-hero-tag { font-size: 15px; margin-bottom: 20px; }
    .hp-inno-hero-img { padding: 20px; }
    .hp-inno-hero-img img { max-height: 240px; }
    .hp-inno-hero-actions { gap: 8px; }
    .hp-inno-hero-actions .gs-btn { flex: 1 1 100%; text-align: center; justify-content: center; }
    .hp-inno-pill { padding: 8px 12px; min-width: 0; }
    .hp-inno-pill strong { font-size: 12px; }
    .hp-inno-pill span { font-size: 10px; }

    .hp-inno-trio { gap: 12px; }
    .hp-inno-trio-card { border-radius: 16px; }
    .hp-inno-trio-img { padding: 20px 16px; min-height: 180px; }
    .hp-inno-trio-img img { max-height: 160px; }
    .hp-inno-trio-body { padding: 16px 16px 20px; }
    .hp-inno-trio-name { font-size: 18px; }
    .hp-inno-trio-tag { font-size: 13px; margin-bottom: 14px; }
    /* Stacking these turns the main axis vertical, so the `flex: 1 1 100%` and
       `flex-wrap: wrap` inherited from the tablet block above would make each
       button 100% of the container HEIGHT and wrap the second one into a new
       column off the side of the card. Reset both here. */
    .hp-inno-trio-actions { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
    .hp-inno-trio-actions .gs-btn { flex: 0 0 auto; width: 100%; text-align: center; justify-content: center; }

    /* Choose */
    .hp-choose { padding: 36px 0; }
    .hp-choose-inner h2 { font-size: 24px; }
    .hp-choose-actions { flex-direction: column; gap: 10px; }
    .hp-choose-actions .gs-btn { width: 100%; text-align: center; justify-content: center; }
    .hp-cta-actions { flex-direction: column; gap: 10px; }
    .hp-cta-actions .gs-btn { width: 100%; text-align: center; justify-content: center; }

    /* Product cards */
    .gs-product-card { padding: 12px; }
    .gs-product-card .gs-product-name { font-size: 13px; }

    /* Spotlight / Info cards */
    .gs-spotlight-card { padding: 24px 20px; }
    .gs-info-card { padding: 24px 20px; }

    /* Collections index */
    .cx-hero { padding: 48px 0 36px; }
    .cx-hero-title { font-size: 28px; }
    .cx-stats { padding: 0 16px; }

    /* Collection page */
    .cp-hero { padding: 36px 0 24px; }
    .cp-hero-title { font-size: 28px; }
    .cp-hero-desc { font-size: 14px; }
    .cp-product-body { padding: 12px 14px 16px; }
    .cp-product-name { font-size: 14px; }
    .cp-help-inner { padding: 28px 20px; }
    .cp-help-inner h2 { font-size: 24px; }

    /* Product page */
    .product-page { padding: 16px 0 32px; }
    .product-title { font-size: 24px; }
    .price-now { font-size: 24px; }
    .gallery-main { border-radius: 12px; }
    .gallery-arrow { width: 36px; height: 36px; }
    .gallery-arrow-prev { left: 8px; }
    .gallery-arrow-next { right: 8px; }
    .gallery-thumbs { gap: 6px; }
    .thumb { width: 56px; height: 56px; border-radius: 8px; }
    .product-buy { margin-left: -16px; margin-right: -16px; border-radius: 0; padding: 16px; }
    .product-trust { flex-direction: row; justify-content: center; gap: 6px 12px; font-size: 11.5px; }

    /* Variant buttons */
    .product-variants-btns { gap: 6px; }
    .variant-btn { padding: 10px 12px; font-size: 13px; }

    /* Quiz */
    .quiz-hero { padding: 40px 16px 32px; }
    .quiz-hero-title { font-size: 24px; }
    .quiz-hero-sub { font-size: 14px; }
    .quiz-q { font-size: 20px; }
    .quiz-option { padding: 16px 14px; gap: 12px; }
    .quiz-option-icon { width: 40px; height: 40px; }
    .quiz-option-title { font-size: 15px; }
    .quiz-option-desc { font-size: 12px; }
    .quiz-result-body { padding: 16px; }
    .quiz-result-name { font-size: 18px; }
    .quiz-result-price { font-size: 20px; }
    .quiz-result-actions { gap: 8px; }
    .quiz-retake .gs-btn { width: 100%; }
    .quiz-article { padding: 36px 0 40px; }
    .quiz-article-inner { padding: 0 16px; }
    .quiz-article-inner h2 { font-size: 24px; }
    .quiz-article-inner h3 { font-size: 18px; }

    /* Footer */
    .footer-main { padding: 32px 0 20px; }
    .footer-inner { padding: 0 16px; }
    .footer-bottom { padding: 16px 0; }
    .footer-legal { gap: 8px 16px; }
    .pay-icon { width: 36px; height: 24px; }

    /* Cart item text overflow */
    .cart-item-details { min-width: 0; }
    .cart-item-title { word-break: break-word; }
}

/* ---------- Mobile hero + showcase art fixes ----------
   Placed after the tablet/phone blocks above so these win over the padding
   shorthands and max-height set there. */

/* The 768w banner crops are portrait with the robot low in the frame, so the
   slide copy is pinned to the top of the stage instead of floating mid-photo. */
@media (max-width: 768px) {
    .hero-slide { align-items: flex-start; }
    .hero-slide-content { padding-top: 28px; }
}

/* Stacked showcase cards: let the lifestyle photo keep its own aspect ratio.
   The fixed 320px box + 240px image cap left a grey band under the art. */
@media (max-width: 900px) {
    .hp-inno-hero-img {
        min-height: 0;
        padding: 0;
        background: none;
    }
    .hp-inno-hero-img img {
        position: static;
        height: auto;
        max-height: none;
    }
}

/* ---------- Small phone (max 380px) ---------- */
@media (max-width: 380px) {
    .hero-carousel { height: 56vh; min-height: 340px; }
    .hero-slide-title { font-size: 20px; }
    .hero-slide-sub { font-size: 13px; }
    .hero-slide-eyebrow { font-size: 10px; }
    /* Shorter stage here — trim the top inset so the longest slide's trust
       line still clears the dots. */
    .hero-slide-content { padding-top: 20px; }

    .hp-inno-hero-name { font-size: 20px; }
    .hp-inno-trio-name { font-size: 16px; }

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

    .gs-btn { height: 42px; padding: 0 16px; font-size: 12px; }

    .product-title { font-size: 22px; }
    .price-now { font-size: 22px; }

    .quiz-hero-title { font-size: 22px; }
    .quiz-q { font-size: 18px; }

    .footer-links { gap: 20px; }
}

/* ============================================================
   PILLAR / CATEGORY LANDING PAGES
============================================================ */
.pillar-hero {
    background:
        radial-gradient(120% 130% at 50% -30%, rgba(0, 113, 227, 0.2) 0%, rgba(0, 113, 227, 0) 58%),
        linear-gradient(180deg, rgba(40, 40, 44, 0.74) 0%, rgba(29, 29, 31, 0.9) 100%),
        url('/assets/img/site/hero-pillar.jpg') center / cover no-repeat,
        #1d1d1f;
    padding: 72px 0 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pillar-hero-inner { max-width: 860px; }
.pillar-hero .cp-breadcrumb { justify-content: flex-start; color: rgba(255, 255, 255, 0.6); margin-bottom: 18px; }
.pillar-hero .cp-breadcrumb a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.pillar-hero .cp-breadcrumb a:hover { color: #fff; }
.pillar-hero-title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 16px;
    color: #fff;
}
.pillar-hero-sub {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 24px;
    max-width: 720px;
}
.pillar-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    align-items: center;
    margin-bottom: 26px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}
.pillar-hero-count {
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
}
.pillar-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top picks */
.pillar-picks { padding: 56px 0 8px; }
.pillar-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 28px;
}
.pillar-pick {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-standard), transform var(--transition-standard);
}
.pillar-pick:hover { box-shadow: 0 18px 40px rgba(20, 24, 40, 0.12); transform: translateY(-3px); }
.pillar-pick-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 999px;
    z-index: 2;
}
.pillar-pick-img {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--surface-alt);
    padding: 16px;
}
.pillar-pick-img img { width: 100%; height: 100%; object-fit: contain; }
.pillar-pick-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pillar-pick-title { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0; }
.pillar-pick-title a { color: #1d1d1f; text-decoration: none; }
.pillar-pick-title a:hover { color: var(--accent); }
.pillar-pick .cp-product-actions { margin-top: auto; }
/* One-line "why this one" note under a pick's title (head-to-head compare pages) */
.pillar-pick-note { font-size: 13px; line-height: 1.5; color: var(--ink-muted); margin: 0; }

/* Chip row of related comparisons / guides at the foot of a compare page */
.pillar-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}
.pillar-related-links a {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--transition-standard), color var(--transition-standard), transform var(--transition-standard);
}
.pillar-related-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Article body (buying guide) */
.pillar-article { padding: 48px 0; }
.pillar-article-inner { max-width: 820px; margin: 0 auto; }
.pillar-article-inner h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 36px 0 12px;
}
.pillar-article-inner h2:first-child { margin-top: 0; }
.pillar-article-inner h3 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; color: var(--ink); }
.pillar-article-inner p { font-size: 16px; line-height: 1.7; color: var(--ink-body); margin: 0 0 16px; }
.pillar-article-inner ul, .pillar-article-inner ol { margin: 0 0 18px; padding-left: 22px; }
.pillar-article-inner li { font-size: 16px; line-height: 1.7; color: var(--ink-body); margin-bottom: 8px; }
.pillar-article-inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.pillar-article-inner table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 24px;
    font-size: 15px;
}
.pillar-article-inner th {
    text-align: left;
    font-weight: 700;
    color: var(--ink);
    background: var(--surface-alt);
    padding: 10px 14px;
    border: 1px solid var(--border);
}
.pillar-article-inner td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    color: var(--ink-body);
    line-height: 1.55;
    vertical-align: top;
}
@media (max-width: 640px) {
    .pillar-article-inner table { display: block; overflow-x: auto; }
}

/* E-A-T authorized-dealer band on pillar pages */
.pillar-authority { padding: 24px 0 40px; }
.pillar-authority-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d30 100%);
    border-radius: 20px;
    padding: 44px 48px;
    color: #fff;
}
.pillar-authority-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-on-dark);
    margin-bottom: 12px;
}
.pillar-authority-copy h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 14px;
    color: #fff;
}
.pillar-authority-copy p { font-size: 15px; line-height: 1.7; color: #c7c7cc; margin: 0; }
.pillar-authority-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}
.pillar-authority-points li { display: flex; flex-direction: column; gap: 4px; }
.pillar-authority-points strong { font-size: 15px; font-weight: 700; color: #fff; }
.pillar-authority-points span { font-size: 13.5px; line-height: 1.55; color: #a1a1a6; }
.pillar-authority-points a { color: var(--accent-on-dark); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
    .pillar-authority-inner { grid-template-columns: 1fr; padding: 32px 26px; gap: 26px; }
    .pillar-authority-copy h2 { font-size: 22px; }
}
@media (max-width: 560px) {
    .pillar-authority-points { grid-template-columns: 1fr; }
}

/* Browse-by-category (hub) */
.pillar-browse { padding: 48px 0 8px; }
.pillar-browse-group { margin-top: 34px; }
.pillar-browse-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.pillar-browse-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pillar-browse-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-body);
    text-decoration: none;
    background: #fff;
    transition: all var(--transition-fast);
}
.pillar-browse-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

/* Hub category cards with imagery */
.pillar-cats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}
.pillar-cat-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow var(--transition-standard);
}
.pillar-cat-card:hover { box-shadow: 0 14px 32px rgba(20, 24, 40, 0.10); }
.pillar-cat-img {
    aspect-ratio: 21 / 8;
    overflow: hidden;
    background: var(--surface, #f5f5f7);
}
.pillar-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-standard);
}
.pillar-cat-card:hover .pillar-cat-img img { transform: scale(1.03); }
.pillar-cat-body { padding: 20px 22px 22px; }
.pillar-cat-body .pillar-browse-heading { margin: 0 0 8px; padding-bottom: 8px; }
.pillar-cat-blurb {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-body);
    margin: 0 0 14px;
}
@media (max-width: 900px) {
    .pillar-cats-grid { grid-template-columns: 1fr; gap: 18px; }
    .pillar-cat-img { aspect-ratio: 21 / 9; }
}

/* Mid-page real-photography band on category pages */
.pillar-photo { padding: 8px 0 40px; }
.pillar-photo-inner { margin: 0; max-width: 980px; margin-left: auto; margin-right: auto; }
.pillar-photo-inner img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}
.pillar-photo-inner figcaption {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-body);
    text-align: center;
}

/* FAQ + related */
.pillar-faq { padding: 40px 0; }
.pillar-faq-list { max-width: 820px; margin: 28px auto 0; }
.pillar-related { padding: 24px 0 48px; }
.pillar-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.pillar-related-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all var(--transition-standard);
}
.pillar-related-card:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 24, 40, 0.08); }
.pillar-related-card svg { color: var(--accent); flex-shrink: 0; }
.pillar-related-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.pillar-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pillar-related-label { flex: 1; }

@media (max-width: 768px) {
    .pillar-hero { padding: 48px 0 36px; }
    .pillar-hero-title { font-size: 32px; }
    .pillar-hero-sub { font-size: 16px; }
    .pillar-hero-actions .cx-hero-btn { width: 100%; text-align: center; }
    .pillar-article-inner h2 { font-size: 22px; }
    .pillar-picks { padding: 40px 0 4px; }
}

/* =========================================================================
   Find What Fits Your Pool — fit finder widget
   ========================================================================= */
.pf { padding: 28px 0 4px; }

/* --- Step wizard --- */
.pf-wizard {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px 26px 20px;
    box-shadow: 0 14px 44px rgba(20, 24, 40, 0.07);
    position: relative;
    overflow: hidden;
}
.pf-wizard::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--accent);
}
.pf-wizard-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.pf-wizard-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent);
}
.pf-wizard-heading { flex: 1 1 auto; min-width: 0; }
.pf-wizard-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    margin: 0 0 2px;
}
.pf-wizard-sub { font-size: 13.5px; color: var(--ink-secondary); line-height: 1.45; margin: 0; }
.pf-count {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 113, 227, 0.07);
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Known-from-category chips */
.pf-known {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ececf0;
}
.pf-known-label { font-size: 12px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.pf-chip-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-tint) !important;
    border-color: var(--accent-tint-border) !important;
}
.pf-chip-lock::before {
    content: "";
    width: 12px; height: 12px;
    background: 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='%230071e3' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Progress bar */
.pf-progress-track {
    height: 5px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 22px;
}
.pf-progress-fill {
    height: 100%;
    width: 6%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps: only the active one is shown */
.pf-steps { position: relative; }
.pf-step { display: none; animation: pfStepIn 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
.pf-step.active { display: block; }
@keyframes pfStepIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.pf-q {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    margin: 0 0 16px;
    text-align: center;
}

.pf-opts { display: grid; gap: 12px; }
.pf-opts-2 { grid-template-columns: repeat(2, 1fr); }
.pf-opts-3 { grid-template-columns: repeat(3, 1fr); }
.pf-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 18px 14px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--ink-body);
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.pf-opt strong { font-size: 15.5px; font-weight: 700; color: #1d1d1f; }
.pf-opt span { font-size: 12.5px; color: var(--ink-muted); }
.pf-opt:hover {
    border-color: var(--accent-tint-border);
    background: var(--accent-wash);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.08);
}
.pf-opt.selected {
    border-color: var(--accent);
    background: rgba(0, 113, 227, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}
.pf-opt.selected strong { color: var(--accent); }

/* Step navigation */
.pf-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    min-height: 20px;
}
.pf-back[hidden], .pf-skip[hidden], .pf-known[hidden] { display: none; }
.pf-back, .pf-skip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 8px;
    transition: color var(--transition-fast);
}
.pf-back { color: var(--ink-secondary); margin-right: auto; }
.pf-back:hover { color: #1d1d1f; }
.pf-skip { color: var(--ink-muted); margin-left: auto; }
.pf-skip:hover { color: var(--accent); }

/* --- Saved profile bar --- */
.pf-saved[hidden], .pf-top[hidden] { display: none; }
.pf-saved {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--accent-wash);
    border: 1px solid var(--accent-tint-border);
    border-radius: 16px;
    padding: 14px 20px;
}
.pf-saved-main { display: flex; align-items: center; gap: 12px; }
.pf-saved-check {
    flex-shrink: 0;
    width: 30px; height: 30px;
    padding: 6px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
}
.pf-saved-label { display: block; font-size: 13px; font-weight: 700; color: #1d1d1f; }
.pf-saved-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pf-chip {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: #fff;
    border: 1px solid var(--accent-tint-border);
    padding: 2px 10px;
    border-radius: 999px;
}
.pf-saved-actions { display: flex; align-items: center; gap: 16px; }
.pf-onlyfits {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-secondary);
    cursor: pointer;
    user-select: none;
}
.pf-onlyfits input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.pf-change {
    border: 1.5px solid var(--accent);
    background: #fff;
    color: var(--accent);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.pf-change:hover { background: var(--accent); color: #fff; }

/* --- Top recommendation banner --- */
.pf-top {
    margin-top: 18px;
    border: 1.5px solid var(--accent);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--surface-alt) 0%, #fff 60%);
    padding: 20px 22px;
    position: relative;
    box-shadow: 0 14px 40px rgba(0, 113, 227, 0.1);
}
.pf-top-badge {
    position: absolute;
    top: -12px;
    left: 22px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 14px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.3);
}
.pf-top-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.pf-top-img {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 14px;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pf-top-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pf-top-body { flex: 1 1 240px; min-width: 0; }
.pf-top-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; }
.pf-top-title a { color: #1d1d1f; text-decoration: none; }
.pf-top-title a:hover { color: var(--accent); }
.pf-top-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pf-top-reasons li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-body);
    font-weight: 500;
}
.pf-top-reasons li svg { color: var(--green); flex-shrink: 0; }
.pf-top-buy {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 170px;
}
.pf-top-price { font-size: 22px; font-weight: 800; color: #1d1d1f; }
.pf-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--transition-standard);
    font-family: inherit;
}
.pf-top-btn-primary { background: var(--accent); color: #fff; }
.pf-top-btn-primary:hover { background: var(--accent-hover); }
.pf-top-btn-cart { background: #fff; color: var(--accent); border-color: var(--accent); }
.pf-top-btn-cart:hover { background: var(--accent); color: #fff; }

/* --- Fit badges on product cards --- */
.pf-fit-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    line-height: 1.1;
}
.pf-fit-badge svg { flex-shrink: 0; }
.pf-fit-perfect { background: var(--green-tint); color: #0f7a43; }
.pf-fit-great { background: var(--accent-tint); color: var(--accent); }
.pf-fit-good { background: var(--amber-tint); color: var(--amber); }
.pf-fit-poor { background: #ececf0; color: var(--ink-muted); }

.cp-product.pf-is-perfect { border-color: var(--green); box-shadow: 0 0 0 1.5px rgba(15, 122, 67, 0.35); }
.cp-product.pf-is-poor { opacity: 0.62; }
.cp-product.pf-is-poor:hover { opacity: 1; }

/* --- Corded / cordless step ---
   Corded is the recommendation, so its tile reads as the default answer:
   green rail, a "We recommend" flag, and a little more visual weight than
   the two options beside it. */
/* Doubled class + descendant selectors below: the generic `.pf-opt` and
   `.pf-opt span` rules (and their mobile overrides) are declared earlier and
   would otherwise win on equal specificity. */
.pf-opt.pf-opt-preferred {
    position: relative;
    border-color: var(--green);
    background: linear-gradient(180deg, var(--green-tint) 0%, #fff 62%);
    padding-top: 28px;
}
.pf-opt-preferred:hover {
    border-color: var(--green);
    background: linear-gradient(180deg, var(--green-tint) 0%, #fff 72%);
    box-shadow: 0 8px 20px rgba(15, 122, 67, 0.12);
}
.pf-opt-preferred.selected {
    border-color: var(--green);
    background: var(--green-tint);
    box-shadow: 0 0 0 3px rgba(15, 122, 67, 0.18);
}
.pf-opt-preferred.selected strong { color: #0f7a43; }
.pf-opt .pf-opt-flag {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0f7a43;
    white-space: nowrap;
}
.pf-q-note {
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-muted);
    text-align: center;
}

/* --- Cordless branch: the corded case + the models we don't sell --- */
.pf-cordless[hidden] { display: none; }
.pf-cordless { margin-top: 20px; display: grid; gap: 16px; }

.pf-corded-case {
    border: 1.5px solid var(--green);
    border-radius: 16px;
    background: var(--green-tint);
    padding: 20px 22px;
}
.pf-corded-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16.5px;
    font-weight: 800;
    color: #0f7a43;
    margin: 0 0 12px;
}
.pf-corded-title svg { flex-shrink: 0; }
.pf-corded-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pf-corded-reasons li {
    position: relative;
    padding-left: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-body);
}
.pf-corded-reasons li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
}
.pf-corded-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 16px;
}
.pf-corded-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: filter var(--transition-fast);
}
.pf-corded-btn:hover { filter: brightness(0.92); }
.pf-corded-link { font-size: 13px; font-weight: 600; color: #0f7a43; }

.pf-alts {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 20px 22px;
}
.pf-alts-title {
    font-size: 15px;
    font-weight: 800;
    color: #1d1d1f;
    margin: 0 0 14px;
}
.pf-alts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pf-alt {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-subtle, #fafafa);
}
.pf-alt-brand {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.pf-alt-name { font-size: 14.5px; font-weight: 700; color: #1d1d1f; text-decoration: none; }
.pf-alt-name:hover { color: var(--accent); }
.pf-alt-note { font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); }
.pf-alt-btn {
    margin-top: auto;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}
.pf-alt-btn:hover { text-decoration: underline; }

.pf-alts-commit {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.pf-alts-commit strong { display: block; font-size: 13px; font-weight: 800; color: #1d1d1f; }
.pf-alts-commit p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-secondary); }
.pf-alts-disclosure { color: var(--ink-muted) !important; font-size: 11.5px !important; }

@media (max-width: 768px) {
    .pf-wizard { padding: 18px 14px 16px; border-radius: 16px; }
    .pf-wizard-title { font-size: 17px; }
    .pf-wizard-sub { display: none; }
    .pf-q { font-size: 17px; margin-bottom: 14px; }
    .pf-opts-3 { grid-template-columns: repeat(2, 1fr); }
    .pf-opt { padding: 15px 10px; }
    .pf-saved { flex-direction: column; align-items: flex-start; }
    .pf-saved-actions { width: 100%; justify-content: space-between; }
    .pf-top-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .pf-top-img { width: 100%; height: 160px; }
    .pf-top-buy { min-width: 0; }
    .pf-top-reasons li { justify-content: center; }
    /* The recommended tile keeps the full row so its flag has room. */
    .pf-step[data-key="power"] .pf-opts-3 { grid-template-columns: repeat(2, 1fr); }
    .pf-step[data-key="power"] .pf-opt-preferred { grid-column: 1 / -1; padding-top: 26px; }
    .pf-corded-case, .pf-alts { padding: 16px 14px; }
    .pf-alts-grid { grid-template-columns: 1fr; }
    .pf-corded-actions { flex-direction: column; align-items: stretch; text-align: center; }
}

/* =========================================================================
   COMPARE TOOL (/compare/)
   Side-by-side comparison builder for up to 4 robots.

   Design brief: keep it quiet. One accent colour, one surface, one border
   weight. The chooser lives at the top, the table shows six key rows, and
   everything else hides behind a disclosure so the page never reads as a
   wall of data.
   ========================================================================= */
.cmp-hero { padding: 56px 0 48px; }
.cmp-hero .pillar-hero-sub { margin-bottom: 0; }

/* ---- Tool wrapper ---- */
.cmp-section { padding: 40px 0 28px; }

/* ---- Chooser (the only controls on the page) ---- */
.cmp-picker {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-near);
    padding: 18px 20px 20px;
}
.cmp-picker-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.cmp-picker-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0;
}
.cmp-picker-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-left: 10px;
}
.cmp-reset {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-secondary);
    cursor: pointer;
    padding: 2px 0;
    transition: color var(--transition-fast);
}
.cmp-reset:hover { color: var(--accent); }

.cmp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cmp-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 8px 5px 5px;
    max-width: 100%;
}
.cmp-chip-img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--surface-alt);
    object-fit: contain;
    padding: 2px;
}
.cmp-chip-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
}
.cmp-chip-x {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--ink-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.cmp-chip-x:hover { background: var(--red-tint); color: var(--red); }

/* The add control is a native <select> laid over a chip-shaped button, so
   grouping by series and mobile pickers both come for free. */
.cmp-add {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 7px;
    border: 1.5px dashed var(--border-strong);
    border-radius: 999px;
    padding: 0 16px 0 14px;
    height: 42px;
    color: var(--accent);
    background: #fff;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.cmp-add:hover { border-color: var(--accent); background: var(--accent-wash); }
.cmp-add-icon { flex-shrink: 0; }
/* A select sizes itself to its longest <option>, and the product titles here
   are long enough to blow out the row — so pin it to the placeholder's width.
   The native dropdown still opens at full width. */
.cmp-add-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    padding: 0;
    height: 100%;
    width: 108px;
    max-width: 100%;
    text-overflow: ellipsis;
}
.cmp-add-select:focus { outline: none; }
.cmp-add:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12); }

/* ---- Toolbar above the table ---- */
/* These are flex containers, so the UA's [hidden] rule needs reinforcing. */
.cmp-tablehead[hidden],
.cmp-more-btn[hidden] { display: none; }
.cmp-tablehead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0 10px;
}
.cmp-tablehead-solo .cmp-toggle { visibility: hidden; }
.cmp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}
.cmp-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cmp-toggle-track {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: var(--border-strong);
    transition: background var(--transition-fast);
    flex-shrink: 0;
}
.cmp-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    transition: transform var(--transition-standard);
}
.cmp-toggle input:checked + .cmp-toggle-track { background: var(--accent); }
.cmp-toggle input:checked + .cmp-toggle-track .cmp-toggle-thumb { transform: translateX(14px); }
.cmp-toggle input:focus-visible + .cmp-toggle-track { outline: 3px solid rgba(0, 113, 227, 0.35); outline-offset: 2px; }
.cmp-toggle-label { font-size: 13.5px; font-weight: 600; color: var(--ink-secondary); }
.cmp-toggle:hover .cmp-toggle-label { color: var(--ink); }
.cmp-scroll-hint { display: none; font-size: 12.5px; color: var(--ink-muted); }

/* ---- The table ---- */
.cmp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}
.cmp-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}
.cmp-table td,
.cmp-table th { text-align: left; }

/* Product header cells */
/* table-layout is fixed, so the first row sets the column widths: keep the
   label column tight and let the products take the remaining space. */
.cmp-corner { width: 178px; background: #fff; border-bottom: 1px solid var(--border); }
.cmp-prod {
    vertical-align: top;
    padding: 20px 16px 18px;
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
    background: #fff;
}
.cmp-prod-img {
    display: block;
    height: 96px;
    border-radius: 10px;
    background: var(--surface-alt);
    padding: 8px;
    margin-bottom: 12px;
}
.cmp-prod-img img { width: 100%; height: 100%; object-fit: contain; }
.cmp-prod-series {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 4px;
}
/* Clamped to two lines so the price and button below stay on the same
   baseline across every column — long SEO titles otherwise stagger them. */
.cmp-prod-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    min-height: 36px;
    margin-bottom: 8px;
}
.cmp-prod-name:hover { color: var(--accent); }
.cmp-prod-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cmp-price-now { font-size: 17px; font-weight: 700; color: var(--ink); }
.cmp-price-now.cmp-price-sale { color: var(--red); }
.cmp-price-was { font-size: 12.5px; color: var(--ink-muted); text-decoration: line-through; }
/* The spacer twin keeps every column's CTA on the same line whether or not
   the "Lowest price" note is showing. */
.cmp-lowest,
.cmp-lowest-sp {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 17px;
    height: 17px;
    color: var(--green);
    margin-top: 5px;
}
.cmp-prod-cta { display: block; margin-top: 12px; }
.cmp-prod-cta .gs-btn { width: 100%; }

/* Body rows */
.cmp-table tbody th,
.cmp-table tbody td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    line-height: 1.45;
    vertical-align: top;
}
.cmp-table tbody td { border-left: 1px solid var(--border); color: var(--ink-body); }
.cmp-rowlabel {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-secondary);
    background: #fff;
    position: sticky;
    left: 0;
    z-index: 1;
}
.cmp-table tbody tr:nth-child(even) th,
.cmp-table tbody tr:nth-child(even) td { background: var(--surface-near); }
.cmp-table tbody tr:hover th,
.cmp-table tbody tr:hover td { background: var(--accent-wash); }

/* The opening row carries the headline takeaway, so let it read stronger. */
.cmp-row-lead td { font-weight: 600; color: var(--ink); }

/* Quiet section divider inside the disclosure */
.cmp-secrow th {
    padding: 11px 16px;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-secondary);
    position: sticky;
    left: 0;
}
.cmp-table tbody tr.cmp-secrow:nth-child(even) th { background: var(--surface-alt); }
.cmp-table tbody tr.cmp-secrow:hover th { background: var(--surface-alt); }

/* Feature ticks */
.cmp-yes { color: var(--green); }
.cmp-no { color: var(--border-strong); font-weight: 700; }
.cmp-sr {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Disclosure ---- */
.cmp-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 13px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.cmp-more-btn:hover { border-color: var(--border-strong); color: var(--accent); }
.cmp-more-btn svg { transition: transform var(--transition-standard); }
.cmp-more-btn.cmp-more-open svg { transform: rotate(180deg); }

/* ---- Empty state ---- */
.cmp-empty {
    border: 1px dashed var(--border-strong);
    border-radius: 16px;
    padding: 56px 20px;
    text-align: center;
    margin-top: 22px;
}
.cmp-empty p { margin: 0; font-size: 15px; color: var(--ink-secondary); }

/* ---- Fine print ---- */
.cmp-footnote {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 22px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-secondary);
}
.cmp-footnote span { position: relative; }
.cmp-footnote span + span::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border-strong);
    transform: translateY(-50%);
}
.cmp-disclaimer {
    font-size: 12.5px;
    color: var(--ink-muted);
    margin: 10px auto 0;
    max-width: 720px;
    line-height: 1.5;
    text-align: center;
}

/* ---- Series spotlight ---- */
.cmp-series { padding: 56px 0 8px; }
.cmp-series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.cmp-series-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 22px 26px;
    background: #fff;
}
.cmp-series-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--series-color);
    margin-bottom: 10px;
}
.cmp-series-tagline {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.cmp-series-blurb {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-secondary);
    margin: 0 0 16px;
}
.cmp-series-list {
    list-style: none;
    padding: 16px 0 0;
    margin: 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.cmp-series-list li { font-size: 13.5px; line-height: 1.5; color: var(--ink-body); }
.cmp-series-list li strong { color: var(--ink); font-weight: 700; }

/* ---- Head-to-head matchup cards ---- */
.cmp-vs { padding: 8px 0 16px; }
.cmp-vs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
}
.cmp-vs-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    transition: box-shadow var(--transition-standard), transform var(--transition-standard), border-color var(--transition-standard);
}
.cmp-vs-card:hover {
    border-color: var(--accent);
    box-shadow: 0 18px 40px rgba(20, 24, 40, 0.12);
    transform: translateY(-3px);
}
.cmp-vs-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}
.cmp-vs-title { font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.cmp-vs-title em { font-style: normal; font-weight: 600; color: var(--ink-muted); }
.cmp-vs-blurb { font-size: 14.5px; line-height: 1.6; color: var(--ink-body); flex: 1; }
.cmp-vs-cta { font-size: 14px; font-weight: 700; color: var(--accent); }

/* ---- Help CTA ---- */
.cmp-help { padding: 24px 0 72px; }
.cmp-help-inner {
    background: var(--accent);
    border-radius: 20px;
    padding: 40px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    color: #fff;
}
.cmp-help-inner h2 { color: #fff; font-size: 26px; margin: 0 0 8px; }
.cmp-help-inner p { color: rgba(255, 255, 255, 0.88); font-size: 16px; margin: 0; max-width: 520px; }
.cmp-help-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cmp-help-actions .gs-btn-primary { background: #fff; color: var(--accent); border-color: #fff; }
.cmp-help-actions .gs-btn-primary:hover { background: var(--surface-alt); color: var(--accent); }
.cmp-help-actions .gs-btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.cmp-help-actions .gs-btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

@media (max-width: 900px) {
    .cmp-series-grid { grid-template-columns: 1fr; gap: 16px; }
    .cmp-series { padding: 44px 0 4px; }
    .cmp-help-inner { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
    .cmp-scroll-hint { display: block; }
}
@media (max-width: 640px) {
    .cmp-section { padding: 28px 0 20px; }
    .cmp-picker { padding: 16px 14px 18px; border-radius: 14px; }
    .cmp-chip-name { max-width: 150px; }
    .cmp-table { font-size: 13px; }
    .cmp-corner { width: 132px; }
    .cmp-table tbody th,
    .cmp-table tbody td { padding: 11px 13px; }
    .cmp-prod { padding: 16px 13px 15px; }
    .cmp-prod-img { height: 78px; }
    .cmp-price-now { font-size: 15px; }
    .cmp-tablehead { flex-direction: column; align-items: flex-start; gap: 6px; }
    .cmp-help-inner h2 { font-size: 22px; }
    .cmp-help-actions { width: 100%; }
    .cmp-help-actions .gs-btn { flex: 1; text-align: center; justify-content: center; }
}

/* ============================================================
   ACCESSIBILITY & MOTION
   Skip link, visible keyboard focus, button resets, and
   reduced-motion handling.
============================================================ */

/* Product-page breadcrumb: dark-on-light variant of .cp-breadcrumb.
   Home is an icon; the trail scrolls sideways rather than wrapping. */
.pdp-breadcrumb {
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-bottom: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pdp-breadcrumb::-webkit-scrollbar { display: none; }
.pdp-breadcrumb a,
.pdp-breadcrumb span { white-space: nowrap; }
.pdp-breadcrumb a { color: var(--ink-muted); }
.pdp-breadcrumb a:hover { color: var(--accent); }
.pdp-breadcrumb svg { color: var(--border-strong); }
.pdp-breadcrumb span { color: var(--ink); }
.pdp-breadcrumb-sep { flex-shrink: 0; }

.pdp-breadcrumb-home {
    display: inline-flex;
    align-items: center;
    color: var(--ink-muted);
    flex-shrink: 0;
}
.pdp-breadcrumb-home svg { color: currentColor; }
.pdp-breadcrumb-home:hover svg { color: var(--accent); }

.pdp-breadcrumb-current {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Skip to content link — visually hidden until keyboard-focused */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 18px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    transition: top 0.15s ease;
}
.skip-link:focus {
    top: 0;
}

/* Header cart toggle is a <button>; strip default button chrome */
button.cart-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

/* Visible focus ring for keyboard users (mouse clicks stay clean) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}
.hero-slide-content a:focus-visible,
.gs-btn-outline-white:focus-visible,
.footer a:focus-visible {
    outline-color: #fff;
}

/* ========================================
   PRODUCT-PAGE COMPARE TABLE (.pcmp)
   Clean, simple side-by-side at the bottom of every product page.
   ======================================== */
.pcmp {
    padding: 72px 0;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
}
.pcmp-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.pcmp-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.pcmp-title {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 12px;
}
.pcmp-sub {
    font-size: 16px;
    color: var(--ink-secondary);
    margin: 0;
}

.pcmp-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.06);
}

.pcmp-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}
.pcmp-table th,
.pcmp-table td {
    text-align: center;
    padding: 12px 14px;
    border-bottom: 1px solid #ececf0;
}

/* First (label) column */
.pcmp-corner,
.pcmp-rowlabel {
    width: 168px;
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    font-weight: 600;
    color: var(--ink);
}
.pcmp-rowlabel {
    font-size: 13px;
    color: var(--ink-body);
}
.pcmp-corner {
    vertical-align: bottom;
    border-bottom: none;
}
.pcmp-corner-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* Product header cells */
.pcmp-table thead th.pcmp-col {
    vertical-align: top;
    background: #fff;
    border-bottom: 2px solid var(--border);
}
.pcmp-flag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.pcmp-flag-current { background: var(--border); color: var(--ink-secondary); }
.pcmp-flag-alt { background: var(--border); color: var(--ink-secondary); }
.pcmp-flag-rec { background: var(--accent); color: #fff; }

.pcmp-thumb {
    display: block;
    width: 108px;
    height: 108px;
    margin: 0 auto 10px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-alt);
}
.pcmp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.pcmp-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 8px;
}
.pcmp-name:hover { color: var(--accent); }
.pcmp-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-bottom: 12px;
    min-height: 40px;
}
.pcmp-price-was {
    font-size: 12px;
    color: var(--ink-muted);
    text-decoration: line-through;
}
.pcmp-price-now { font-size: 18px; font-weight: 700; color: var(--ink); }
.pcmp-price-sale { color: var(--red); }
.pcmp-cta { width: 100%; }

/* Spec + feature body cells */
.pcmp-value {
    color: var(--ink-body);
    line-height: 1.4;
}
.pcmp-feat .pcmp-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent);
}
.pcmp-feat .pcmp-no { color: var(--border-strong); font-weight: 600; }

/* Promoted / recommended column emphasis — makes the top picks visibly win */
.pcmp-col-promoted { background: var(--accent-wash); }
.pcmp-col-rec,
.pcmp-cell-rec {
    background: rgba(0, 113, 227, 0.05) !important;
}
.pcmp-table thead th.pcmp-col-rec {
    border-bottom-color: var(--accent);
    box-shadow: inset 0 3px 0 var(--accent);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.pcmp-col-rec .pcmp-name { color: var(--accent); }
.pcmp-cell-current { background: #fff; }

.pcmp-disclaimer {
    margin: 20px auto 0;
    max-width: 760px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-muted);
    line-height: 1.6;
}
.pcmp-disclaimer a { color: var(--accent); font-weight: 600; white-space: nowrap; }

@media (max-width: 768px) {
    .pcmp { padding: 48px 0; }
    .pcmp-title { font-size: 26px; }
    .pcmp-table { font-size: 13px; }
    .pcmp-corner,
    .pcmp-rowlabel { width: 118px; }
    .pcmp-table th,
    .pcmp-table td { padding: 10px 10px; }
    .pcmp-thumb { width: 84px; height: 84px; }
    .pcmp-name { font-size: 13.5px; }
    .pcmp-price-now { font-size: 16px; }
}

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


/* ============================================================
   BLOG POST COMPONENTS (local /blog/ posts)
   ============================================================ */

/* --- Post header --- */
.bp-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: var(--space-4);
}
.bp-breadcrumb a { color: var(--ink-secondary); text-decoration: none; }
.bp-breadcrumb a:hover { color: var(--accent); }
/* The header centres its text, but a max-width block still needs auto side
   margins or it hugs the left edge of the container. */
.bp-subtitle { max-width: 720px; margin-inline: auto; }
.bp-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-5);
    font-size: 14px;
    color: var(--ink-secondary);
}
.bp-byline a { color: inherit; text-decoration: none; }
.bp-byline a:hover { color: var(--accent); }
.bp-byline-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent-tint);
}
.bp-byline-dot { color: var(--ink-faint); }
.bp-reviewed {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: var(--space-4) auto 0;
    padding: 7px 14px;
    border-radius: 100px;
    background: var(--green-tint);
    color: var(--green);
    font-size: 13px;
    font-weight: 500;
}

/* --- Article body extras --- */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
    font-size: 14.5px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.article-body th {
    text-align: left;
    background: var(--surface-alt);
    font-weight: 600;
    color: var(--ink);
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-strong);
}
.article-body td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--ink-body);
    vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:nth-child(even) td { background: var(--surface-near); }
@media (max-width: 700px) {
    .article-body table { display: block; overflow-x: auto; }
}

/* Key takeaways box */
.bp-takeaways {
    background: var(--accent-wash);
    border: 1px solid var(--accent-tint-border);
    border-radius: 14px;
    padding: var(--space-6) var(--space-6);
    margin: var(--space-6) 0;
}
.bp-takeaways-title {
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-deep);
    margin: 0 0 var(--space-3);
}
.bp-takeaways ul { margin: 0; padding-left: 20px; }
.bp-takeaways li { margin: 6px 0; color: var(--ink-body); }

/* Pros / cons */
.bp-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin: var(--space-6) 0;
}
@media (max-width: 640px) { .bp-pros-cons { grid-template-columns: 1fr; } }
.bp-pros, .bp-cons {
    border-radius: 14px;
    padding: var(--space-5);
    border: 1px solid var(--border);
}
.bp-pros { background: var(--green-tint); border-color: #cde8d6; }
.bp-cons { background: var(--red-tint); border-color: #f5d5d5; }
.bp-pros p, .bp-cons p { font-weight: 700; margin: 0 0 var(--space-2); font-size: 15px; }
.bp-pros p { color: var(--green); }
.bp-cons p { color: var(--red); }
.bp-pros ul, .bp-cons ul { margin: 0; padding-left: 20px; }
.bp-pros li, .bp-cons li { margin: 5px 0; color: var(--ink-body); font-size: 14.5px; }

/* Verdict / callout box */
.bp-verdict {
    border-left: 4px solid var(--accent);
    background: var(--surface-alt);
    border-radius: 0 14px 14px 0;
    padding: var(--space-5) var(--space-6);
    margin: var(--space-6) 0;
}
.bp-verdict p { margin: 0; color: var(--ink); }
.bp-verdict p + p { margin-top: var(--space-2); }
.bp-verdict-label {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
    color: var(--accent-deep);
}

/* Inline product CTA card */
.bp-product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-5);
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--space-5);
    margin: var(--space-6) 0;
    background: var(--surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
@media (max-width: 640px) {
    .bp-product-card { grid-template-columns: 1fr; text-align: center; }
    .bp-product-card .bp-product-media img { max-width: 220px; }
}
.bp-product-media { display: flex; align-items: center; justify-content: center; }
.bp-product-media img { max-width: 100%; height: auto; border-radius: 10px; }
.bp-product-badge {
    display: inline-block;
    background: var(--accent-tint);
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    padding: 4px 12px;
    margin-bottom: var(--space-2);
}
.bp-product-name { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.bp-product-price { margin: 0 0 var(--space-2); font-size: 16px; color: var(--ink); }
.bp-product-price s { color: var(--ink-muted); font-weight: 400; margin-left: 6px; }
.bp-product-save {
    color: var(--green);
    background: var(--green-tint);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 100px;
    padding: 3px 10px;
    margin-left: 6px;
}
.bp-product-note { color: var(--ink-body); font-size: 14.5px; margin: 0 0 var(--space-3); }
.bp-product-actions { display: flex; align-items: center; gap: var(--space-4); margin: 0; flex-wrap: wrap; }
@media (max-width: 640px) { .bp-product-actions { justify-content: center; } }
.bp-product-perks { font-size: 12.5px; color: var(--ink-muted); }

/* Product figure */
.bp-figure { margin: var(--space-6) 0; text-align: center; }
.bp-figure img { max-width: min(420px, 100%); height: auto; border-radius: 12px; }
.bp-figure figcaption { font-size: 13px; color: var(--ink-muted); margin-top: var(--space-2); }
/* Scene-setting shots run the full body width; detail shots stay at 420px */
.bp-figure-wide img { max-width: 100%; width: 100%; border-radius: 14px; }

/* FAQ accordion */
.bp-faq { margin: var(--space-10) 0 0; }
.bp-faq-title { font-size: 24px; font-weight: 700; margin: 0 0 var(--space-4); }
.bp-faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: var(--space-3);
    background: var(--surface);
    overflow: hidden;
}
.bp-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    padding: 14px 18px;
    list-style: none;
    position: relative;
    padding-right: 40px;
}
.bp-faq-item summary::-webkit-details-marker { display: none; }
.bp-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 18px;
    font-weight: 500;
}
.bp-faq-item[open] summary::after { content: "\2013"; }
.bp-faq-item p { margin: 0; padding: 0 18px 16px; color: var(--ink-body); }

/* Author credentials box */
.bp-author-box {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-4);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--space-6);
    margin: var(--space-10) 0 0;
}
.bp-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent-tint);
}
.bp-author-name { font-weight: 700; margin: 0 0 2px; color: var(--ink); }
/* --ink-secondary, not --ink-muted: muted grey on the box's --surface-alt fill
   only reaches 3.3:1, under the 4.5:1 minimum for text this size. */
.bp-author-role { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-secondary); }
.bp-author-bio { margin: 0 0 var(--space-3); color: var(--ink-body); font-size: 14.5px; line-height: 1.65; }
.bp-author-links { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.bp-author-links a { color: var(--accent); text-decoration: none; font-weight: 500; }
.bp-author-links a:hover { text-decoration: underline; }
.bp-author-links span { color: var(--ink-faint); }
@media (max-width: 560px) {
    .bp-author-box { grid-template-columns: 1fr; }
}

/* Related articles */
.bp-related { margin: var(--space-10) 0 0; }
.bp-related-title { font-size: 24px; font-weight: 700; margin: 0 0 var(--space-4); }
.bp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-4);
}
.bp-related-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: var(--space-5);
    background: var(--surface);
    text-decoration: none;
    transition: box-shadow var(--transition-standard), transform var(--transition-standard);
}
.bp-related-card:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.bp-related-cat {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-deep);
}
.bp-related-name { font-weight: 600; color: var(--ink); line-height: 1.4; }
.bp-related-arrow { font-size: 13.5px; color: var(--accent); font-weight: 500; margin-top: auto; }

/* --- Blog index --- */
.bp-index-intro {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: var(--space-4);
    padding: 7px 14px;
    border-radius: 100px;
    background: var(--accent-tint);
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 500;
}
.bp-cat-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin: 0 0 var(--space-5);
}
.bp-cat-head h2 { font-size: 26px; font-weight: 700; margin: 0; }
.bp-cat-head p { margin: 0; color: var(--ink-secondary); font-size: 14.5px; }
.bp-featured-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-8);
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: var(--space-12);
}
.bp-featured-card:hover .bp-featured-img img { transform: scale(1.03); }
.bp-featured-img { overflow: hidden; height: 100%; min-height: 300px; }
.bp-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.bp-featured-body { padding: var(--space-8) var(--space-8) var(--space-8) 0; }
@media (max-width: 860px) {
    .bp-featured-card { grid-template-columns: 1fr; }
    .bp-featured-body { padding: 0 var(--space-6) var(--space-6); }
    .bp-featured-img { min-height: 220px; max-height: 260px; }
}
.bp-featured-eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-deep);
    background: var(--accent-tint);
    border-radius: 100px;
    padding: 5px 12px;
    margin-bottom: var(--space-3);
}
.bp-featured-title { font-size: 28px; font-weight: 700; color: var(--ink); margin: 0 0 var(--space-3); line-height: 1.25; }
.bp-featured-excerpt { color: var(--ink-body); margin: 0 0 var(--space-4); }
.bp-featured-meta { font-size: 13.5px; color: var(--ink-muted); margin: 0 0 var(--space-4); }

/* ========================================
   HOMEPAGE - Shared section header
   ======================================== */

.hp-section-header {
    text-align: center;
    margin-bottom: 44px;
}
.hp-section-sub {
    font-size: 17px;
    color: var(--ink-secondary);
    margin: 12px auto 0;
    max-width: 620px;
    line-height: 1.6;
}

/* ========================================
   HOMEPAGE - Hero conversion microcopy
   ======================================== */

.hero-slide-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-slide-trust {
    margin-top: 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
}

/* ========================================
   HOMEPAGE - Price display on showcase cards
   ======================================== */

.hp-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 4px;
}
.hp-price-now {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}
.hp-price-lg .hp-price-now { font-size: 28px; }
.hp-price-was {
    font-size: 14.5px;
    color: var(--ink-muted);
    text-decoration: line-through;
}
.hp-price-lg .hp-price-was { font-size: 17px; }
.hp-price-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    background: var(--red-tint);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}
.hp-price-note {
    font-size: 13px;
    color: var(--ink-muted);
    margin: 0 0 16px;
}
.hp-inno-hero .hp-inno-hero-tag { margin-bottom: 14px; }
.hp-inno-trio-card .hp-price { justify-content: center; }
.hp-inno-trio-card .hp-price-note { margin-bottom: 14px; }

/* ========================================
   HOMEPAGE - Shop by Category
   ======================================== */

.hp-cats {
    padding: 88px 0;
    background: #fff;
}
.hp-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.hp-cat-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.hp-cat-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    color: inherit;
}
.hp-cat-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-alt);
}
.hp-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hp-cat-card:hover .hp-cat-img img { transform: scale(1.05); }
.hp-cat-body { padding: 18px 20px 20px; }
.hp-cat-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
}
.hp-cat-body p {
    font-size: 13.5px;
    color: var(--ink-secondary);
    line-height: 1.5;
    margin: 0 0 10px;
}
.hp-cat-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent);
}
.hp-cat-card:hover .hp-cat-link { text-decoration: underline; }
.hp-cats-footer {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

/* ========================================
   HOMEPAGE - Quiz steps + note
   ======================================== */

.hp-choose-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 860px;
    margin: 0 auto 32px;
}
.hp-choose-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
}
.hp-choose-step-num {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent-deep);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}
.hp-choose-step strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.hp-choose-step span:not(.hp-choose-step-num) {
    font-size: 13px;
    color: var(--ink-secondary);
}
.hp-choose-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--ink-muted);
}

/* ========================================
   HOMEPAGE - Payment trust row
   ======================================== */

.hp-payments {
    margin-top: 44px;
    text-align: center;
}
.hp-payments-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    margin-bottom: 14px;
}
.hp-payments-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.pay-icon-shoppay {
    width: auto !important;
    height: 22px !important;
}

/* ========================================
   HOMEPAGE - Compare Before You Buy
   ======================================== */

.hp-compare {
    padding: 88px 0;
    background: var(--surface-alt);
}
.hp-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hp-compare-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.hp-compare-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    color: inherit;
}
.hp-compare-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-alt);
}
.hp-compare-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hp-compare-card:hover .hp-compare-img img { transform: scale(1.05); }
.hp-compare-body { padding: 20px 22px 22px; }
.hp-compare-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}
.hp-compare-body p {
    font-size: 14px;
    color: var(--ink-secondary);
    line-height: 1.6;
    margin: 0 0 10px;
}

/* ========================================
   HOMEPAGE - Shop by Brand
   ======================================== */

.hp-brands {
    padding: 72px 0 88px;
    background: #fff;
}
.hp-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
/* Transparent grayscale wordmark logos — centered, natural size, no card chrome */
.hp-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 10px 12px;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.hp-brand-card:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.hp-brand-card img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 56px;
    display: block;
    object-fit: contain;
}

/* Brands index (/brands/) — 3-up brand tiles reusing the hp-cat cards.
   Product shots are contained, not cover-cropped: Shopify and Amazon imagery
   comes in arbitrary aspect ratios and cover would cut the robot off. */
.hp-cats-grid.brands-index-grid { grid-template-columns: repeat(3, 1fr); }
.hp-cat-img-contain {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.hp-cat-img-contain img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}
@media (max-width: 700px) {
    .hp-cats-grid.brands-index-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================================
   HOMEPAGE - Expert Guides
   ======================================== */

.hp-guides {
    padding: 88px 0;
    background: #fff;
}
.hp-guides-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.hp-guide-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.hp-guide-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    color: inherit;
}
.hp-guide-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-alt);
}
.hp-guide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hp-guide-card:hover .hp-guide-img img { transform: scale(1.05); }
.hp-guide-body { padding: 16px 18px 18px; }
.hp-guide-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
}
.hp-guide-body p {
    font-size: 13.5px;
    color: var(--ink-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   HOMEPAGE - FAQ
   ======================================== */

.hp-faq {
    padding: 88px 0;
    background: var(--surface-alt);
}
.hp-faq-list {
    max-width: 820px;
    margin: 0 auto;
}

/* ========================================
   HOMEPAGE - Browse directory (internal links)
   ======================================== */

.hp-browse {
    padding: 88px 0;
    background: #fff;
    border-top: 1px solid var(--border);
}
.hp-browse-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px 20px;
}
.hp-browse-col h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    margin: 0 0 12px;
}
.hp-browse-col a {
    display: block;
    font-size: 14px;
    color: var(--ink-secondary);
    padding: 4px 0;
    transition: color var(--transition-fast);
}
.hp-browse-col a:hover { color: var(--accent); }
.hp-browse-all {
    margin-top: 36px;
    text-align: center;
    font-size: 14.5px;
    color: var(--ink-secondary);
}
.hp-browse-all a {
    color: var(--accent);
    font-weight: 600;
}
.hp-browse-all a:hover { text-decoration: underline; }

/* ========================================
   HOMEPAGE - Dark CTA trust line
   ======================================== */

.hp-cta-trust {
    margin-top: 22px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

/* ---- Responsive: new homepage sections ---- */

@media (max-width: 1000px) {
    .hp-cats-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-guides-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-brands-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-browse-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .hp-compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .hp-choose-steps { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 600px) {
    .hp-cats,
    .hp-compare,
    .hp-guides,
    .hp-faq,
    .hp-browse,
    .hp-brands { padding: 56px 0; }
    .hp-cats-grid { gap: 14px; }
    .hp-cat-body { padding: 12px 14px 14px; }
    .hp-cat-body h3 { font-size: 15px; }
    .hp-cat-body p { display: none; }
    .hp-guides-grid { gap: 14px; }
    .hp-guide-body { padding: 12px 14px 14px; }
    .hp-brands-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-browse-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-slide-trust { font-size: 12px; }
}

/* ============================================
   CONTACT PAGE (guided sales/service flow)
   ============================================ */

.contact-page {
    padding: var(--space-12) 0 var(--space-20);
}

/* --- Path picker --- */
.contact-picker {
    max-width: 880px;
    margin: 0 auto;
}

.contact-picker-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-align: center;
    margin: 0 0 var(--space-6);
}

.contact-paths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-path {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 22px 24px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-path:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.contact-path.selected {
    border-color: var(--accent);
    background: var(--accent-wash);
}

.contact-path-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-tint);
    color: var(--accent-deep);
}

.contact-path-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.contact-path-text strong {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.25;
}

.contact-path-text > span {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ink-secondary);
}

.contact-path-check {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.contact-path.selected .contact-path-check {
    opacity: 1;
    transform: scale(1);
}

/* --- Instant answers --- */
.contact-quick {
    max-width: 880px;
    margin: var(--space-8) auto 0;
}

@media (prefers-reduced-motion: no-preference) {
    .contact-quick:not([hidden]) {
        animation: contactFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes contactFadeUp {
        from { opacity: 0; transform: translateY(14px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

.contact-quick-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    margin: 0 0 var(--space-3);
}

.contact-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.contact-quick-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-quick-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.contact-quick-card svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

.contact-quick-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-quick-text strong {
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.3;
}

.contact-quick-text span {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--ink-secondary);
}

/* --- Message form --- */
.contact-form-section {
    max-width: 880px;
    margin: var(--space-12) auto 0;
}

.contact-form-head {
    text-align: center;
    margin-bottom: var(--space-6);
}

.contact-form-head h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 8px;
}

.contact-form-head p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.contact-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contact-form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-secondary);
    margin: var(--space-4) 0 0;
    text-align: center;
}

.contact-form-note svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* Formstack embed normalization — scoped so the third-party form
   inherits the card instead of its own chrome */
.contact-form-card .fsBody {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
}

.contact-form-card .fsForm {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.contact-form-card .fsSection,
.contact-form-card .fsRow {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.contact-form-card .fsLabel {
    font-weight: 600 !important;
    color: var(--ink) !important;
}

.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card input[type="url"],
.contact-form-card input[type="number"],
.contact-form-card select,
.contact-form-card textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* --- Responsive --- */
@media (max-width: 760px) {
    .contact-page { padding: var(--space-8) 0 var(--space-16); }
    .contact-picker-title { font-size: 22px; }
    .contact-paths { grid-template-columns: 1fr; gap: 12px; }
    .contact-path { padding: 18px 18px; }
    .contact-path-icon { width: 46px; height: 46px; border-radius: 12px; }
    .contact-path-text strong { font-size: 16px; }
    .contact-form-card { padding: 24px 20px; border-radius: 16px; }
    .contact-form-head h2 { font-size: 22px; }
}

@media (max-width: 640px) {
    .contact-quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .contact-quick-card { flex-direction: column; gap: 8px; padding: 14px; }
    .contact-quick-text span { display: none; }
}

/* ============================================================
   MY ACCOUNT — landing page for Shopify-hosted customer accounts
   ============================================================ */
.account-page {
    padding: var(--space-12) 0 var(--space-20);
}

.account-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: stretch;
    max-width: 980px;
    margin: 0 auto;
}

.account-signin-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.account-signin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-tint);
    color: var(--accent-deep);
}

.account-signin-card h2 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}

.account-signin-card > p {
    margin: 0;
    font-size: 15px;
    color: var(--ink-body);
}

.account-signin-card .btn {
    margin-top: 6px;
}

.account-signin-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-secondary);
}

.account-signin-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--green);
}

.account-steps {
    list-style: none;
    margin: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    background: var(--surface-alt);
    border-radius: 20px;
}

.account-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.account-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.account-steps strong {
    display: block;
    font-size: 15.5px;
    letter-spacing: -0.01em;
}

.account-steps li div span {
    display: block;
    margin-top: 2px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-secondary);
}

.account-status {
    max-width: 980px;
    margin: var(--space-16) auto 0;
    /* Anchor target (#order-status) — keep the heading clear of the sticky header */
    scroll-margin-top: 110px;
}

.account-status h2,
.account-faq h2,
.account-help h2 {
    font-size: 26px;
    margin: 0 0 var(--space-2);
}

.account-status > p {
    margin: 0 0 var(--space-6);
    color: var(--ink-body);
}

.account-status-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.account-status-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.account-status-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -13px;
    width: 12px;
    height: 2px;
    background: var(--border-strong);
}

.account-status-step:last-child::after { display: none; }

.account-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-tint);
    color: var(--accent-deep);
    margin-bottom: 4px;
}

.account-status-step strong {
    font-size: 15px;
    letter-spacing: -0.01em;
}

.account-status-step > span:last-child {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--ink-secondary);
}

.account-status-note {
    margin: var(--space-5) 0 0;
    font-size: 13.5px;
    color: var(--ink-secondary);
}

.account-status-note a { color: var(--accent-deep); }

.account-faq {
    max-width: 800px;
    margin: var(--space-16) auto 0;
}

.account-faq h2 { margin-bottom: var(--space-4); }

.account-faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    transition: border-color 0.2s ease;
}

.account-faq-item + .account-faq-item { margin-top: 8px; }

.account-faq-item[open] { border-color: var(--border-strong); }

.account-faq-item summary {
    padding: 16px 22px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-faq-item summary::-webkit-details-marker { display: none; }

.account-faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--ink-faint);
    flex-shrink: 0;
    margin-left: 16px;
}

.account-faq-item[open] summary::after {
    content: '−';
    color: var(--accent);
}

.account-faq-item p {
    padding: 0 22px 18px;
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-body);
}

.account-faq-item p a { color: var(--accent-deep); font-weight: 500; }

.account-help {
    max-width: 980px;
    margin: var(--space-16) auto 0;
}

.account-help h2 { margin-bottom: var(--space-4); }

.account-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.account-help-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.account-help-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.account-help-card svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

.account-help-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.account-help-text strong {
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.3;
}

.account-help-text span {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--ink-secondary);
}

@media (max-width: 860px) {
    .account-grid { grid-template-columns: 1fr; }
    .account-status-strip { grid-template-columns: 1fr 1fr; }
    .account-status-step::after { display: none; }
}

@media (max-width: 640px) {
    .account-page { padding: var(--space-8) 0 var(--space-16); }
    .account-signin-card { padding: 24px 20px; }
    .account-signin-card h2 { font-size: 21px; }
    .account-steps { padding: 22px 20px; }
    .account-status-strip { grid-template-columns: 1fr; }
    .account-status h2, .account-faq h2, .account-help h2 { font-size: 22px; }
}

/* ===========================================================================
   AFFILIATE LISTINGS
   Pages for cleaners we don't sell — the standalone affiliate PDPs and the
   Beatbot range. Deliberately distinct from the buy box: an outbound link, a
   price we label as Amazon's, and no shipping/returns/warranty promise.
   =========================================================================== */

/* --- Amazon rating ------------------------------------------------------- */
.afl-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-4);
    font-size: 14px;
    color: var(--ink-secondary);
}
.afl-rating-stars { letter-spacing: 1px; line-height: 1; }
.afl-star { color: var(--border-strong); font-size: 15px; }
.afl-star-on { color: var(--star); }
.afl-rating-value { font-weight: 600; color: var(--ink); }
.afl-rating-count { color: var(--ink-muted); }

/* Compact star row on product cards (brand pages, affiliate grids). The pick
   card's body is a flex column with its own gap, so it drops the margin. */
.cp-product-body .afl-rating { margin: 0 0 10px; font-size: 13px; }
.pillar-pick-body .afl-rating { margin: 0; font-size: 13px; }
.cp-product-body .afl-star,
.pillar-pick-body .afl-star { font-size: 13px; }

/* "Best for:" line on grid cards — keep it clear of the buttons below. */
.cp-product-body .afl-bestfor { margin: 0 0 14px; font-size: 13px; }

/* --- Price freshness note ------------------------------------------------ */
.afl-price-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: var(--space-2) 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-muted);
}
.afl-price-note svg { flex: none; margin-top: 2px; }

/* --- Outbound CTA -------------------------------------------------------- */
.afl-buy { margin-top: var(--space-5); }

.afl-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: 15px var(--space-6);
    border-radius: 980px;
    background: var(--ink);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.afl-cta:hover { background: #000; color: #fff; transform: translateY(-1px); }
.afl-cta:active { transform: translateY(0); }

/* --- Price commitment + disclosure --------------------------------------- */
.afl-commit {
    margin-top: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--accent-tint-border);
    border-radius: 14px;
    background: var(--accent-wash);
}
.afl-commit-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 6px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--accent-deep);
}
.afl-commit-title svg { flex: none; }
.afl-commit-body {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-body);
}
.afl-commit-disclosure {
    margin: var(--space-2) 0 0;
    padding-top: var(--space-2);
    border-top: 1px solid var(--accent-tint-border);
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-muted);
}

/* --- Feature list (Amazon bullets) --------------------------------------- */
.afl-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-4);
}
.afl-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}
.afl-feature p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-body); }
.afl-feature-check { flex: none; margin-top: 3px; color: var(--green); }

/* --- Editorial ----------------------------------------------------------- */
.afl-bestfor {
    margin: var(--space-3) 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-secondary);
}
.afl-intro {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-body);
}

/* --- Spec table ---------------------------------------------------------- */
.afl-specs { overflow-x: auto; }
.afl-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}
.afl-spec-table th,
.afl-spec-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.afl-spec-table th {
    width: 38%;
    font-weight: 600;
    color: var(--ink-secondary);
    white-space: nowrap;
}
.afl-spec-table td { color: var(--ink-body); }
.afl-spec-table tr:last-child th,
.afl-spec-table tr:last-child td { border-bottom: 0; }

/* --- FAQ ----------------------------------------------------------------- */
.afl-faq { max-width: 820px; margin: 0 auto; }
.afl-faq-item {
    border-bottom: 1px solid var(--border);
}
.afl-faq-item summary {
    padding: var(--space-4) 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.afl-faq-item summary::-webkit-details-marker { display: none; }
.afl-faq-item summary::after {
    content: '+';
    float: right;
    font-weight: 400;
    color: var(--ink-muted);
}
.afl-faq-item[open] summary::after { content: '−'; }
.afl-faq-item p {
    margin: 0 0 var(--space-4);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-body);
}

/* --- "We don't sell this" flag in compare tables -------------------------- */
.pcmp-affiliate-note {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--ink-muted);
}

/* ===========================================================================
   MANUFACTURER VIDEO (Amazon HLS)
   =========================================================================== */
.afv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}
.afv { margin: 0; }
.afv-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}
.afv-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.afv-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.afv-play:hover { background: rgba(0, 0, 0, 0.3); }
.afv-play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    padding-left: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    transition: transform var(--transition-fast);
}
.afv-play:hover .afv-play-icon { transform: scale(1.06); }
.afv-loading .afv-play-icon { opacity: 0.5; }
.afv-playing .afv-play { display: none; }

.afv-fallback {
    display: none;
    position: absolute;
    inset: auto 0 0 0;
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
}
.afv-fallback a { color: #fff; text-decoration: underline; }
.afv-failed .afv-fallback { display: block; }
.afv-failed .afv-play { background: rgba(0, 0, 0, 0.35); }
.afv-failed .afv-play-icon { display: none; }

.afv-caption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: var(--space-3);
}
.afv-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.afv-meta { font-size: 12.5px; color: var(--ink-muted); }

@media (max-width: 640px) {
    .afl-commit { padding: var(--space-4); }
    .afl-features { grid-template-columns: 1fr; }
    .afl-spec-table th { width: 45%; white-space: normal; }
}

/* --- Amazon colour / configuration options ------------------------------- */
.afl-variants { margin: var(--space-5) 0 0; }

.afl-variants-label {
    display: block;
    margin-bottom: var(--space-3);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-secondary);
}
.afl-variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: var(--space-2);
}
.afl-variant {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.afl-variant:hover { border-color: var(--border-strong); background: var(--surface-near); }
.afl-variant-current { border-color: var(--accent); background: var(--accent-wash); }

.afl-variant-img {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-alt);
}
.afl-variant-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.afl-variant-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.afl-variant-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.afl-variant-price { font-size: 13px; color: var(--ink-secondary); }
.afl-variant-flag { font-size: 11px; color: var(--ink-muted); }

.afl-variant-badge {
    position: absolute;
    top: -7px;
    right: 8px;
    padding: 1px 7px;
    border-radius: 980px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Amazon-sourced copy used in place of a missing Shopify description. */
.afl-features-inline { margin-top: var(--space-4); }
.afl-source-note {
    margin: var(--space-4) 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-muted);
}

/* --- Sold out with us, in stock on Amazon -------------------------------- */
.afl-backup {
    margin: var(--space-4) 0 0;
    padding: var(--space-5);
    border: 1px solid var(--amber);
    border-radius: 14px;
    background: var(--amber-tint);
}
.afl-backup-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 6px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--amber);
}
.afl-backup-title svg { flex: none; }
.afl-backup-body {
    margin: 0 0 var(--space-4);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-body);
}
.afl-backup .afl-commit-disclosure { border-top-color: rgba(180, 83, 9, 0.25); }

/* The selected colour option. */
.afl-variant-active {
    border-color: var(--accent);
    background: var(--accent-wash);
    box-shadow: 0 0 0 1px var(--accent);
}
