﻿/* =====================================================================
   CHROMIUM — Automotive Parts Site — Global Stylesheet
   Shared across every page (index, products, about, contact, terms).
   Design system: CSS custom properties drive both the live theme
   customizer (accent / heading / background) and light↔dark mode.
   Signature motif: viewfinder "spec frame" corners + mono spec tags.
   ===================================================================== */

:root {
    /* ---- brand (dynamically themeable — updated by script.js) ---- */
    --color-primary: #f5b70a;
    --color-primary-dark: #d89f00;
    --color-primary-tint: #fdf1cf;
    /* ---- ink / headings (themeable) ---- */
    --color-heading: #14151c;
    /* ---- text sitting directly on the accent-colored header bar (themeable) ---- */
    --color-header-text: #171410;
    /* ---- header bar background (themeable, independent of brand accent) ---- */
    --color-header-bg: #f5b70a;
    /* ---- footer background + text (themeable) ---- */
    --color-footer-bg: #1a1a3d;
    --color-footer-text: #ffffff;
    /* ---- background (themeable) ---- */
    --color-bg: #f7f7f4;
    /* ---- surface tokens (page-level UI chrome — switch with mode/bg automatically) ---- */
    --color-surface: #ffffff;
    --color-surface-2: #fbfaf7;
    --color-text: #33343c;
    --color-text-muted: #6d707c;
    --color-border: #e7e5df;
    --color-border-dark: #34345c;
    --color-navy: #1a1a3d;
    --color-navy-2: #23234f;
    --color-shadow-tint: 20,21,28;
    /* ---- card tokens (content cards — independently themeable, default to
     an auto-contrast tone derived from the page background) ---- */
    --color-card-bg: #ffffff;
    --color-card-bg-2: #fbfaf7;
    --color-card-text: #33343c;
    --color-card-text-muted: #6d707c;
    --color-card-border: #e7e5df;
    --font-display: 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(var(--color-shadow-tint),.06), 0 1px 1px rgba(var(--color-shadow-tint),.04);
    --shadow-md: 0 16px 32px -18px rgba(var(--color-shadow-tint),.28);
    --shadow-lg: 0 28px 60px -24px rgba(var(--color-shadow-tint),.35);
    --container: 1280px;
    --ease: cubic-bezier(.4,0,.2,1);
    color-scheme: light;
}

/* ---- dark mode: fixed surface tokens flip; accent/heading/bg stay
   user-themeable and are re-applied per-mode by script.js ---- */
html[data-theme="dark"] {
    --color-surface: #191a21;
    --color-surface-2: #14151b;
    --color-text: #d3d4da;
    --color-text-muted: #93949f;
    --color-border: #2b2c36;
    --color-border-dark: #3a3b52;
    --color-navy: #0e0e22;
    --color-navy-2: #16173a;
    --color-shadow-tint: 0,0,0;
    --color-card-bg: #191a21;
    --color-card-bg-2: #14151b;
    --color-card-text: #d3d4da;
    --color-card-text-muted: #93949f;
    --color-card-border: #2b2c36;
    --color-footer-bg: #0e0e22;
    color-scheme: dark;
}

/* =========================== RESET =========================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background-color .35s var(--ease), color .35s var(--ease);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-heading);
    margin: 0;
    letter-spacing: -0.01em;
    transition: color .35s var(--ease);
}

p {
    color: var(--color-text);
}

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

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

.is-hidden {
    display: none !important;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--color-primary);
    color: #14151c;
    padding: 10px 16px;
    z-index: 999;
    font-weight: 700;
    border-radius: 0 0 8px 0;
}

    .skip-link:focus {
        left: 0;
    }

:focus-visible {
    outline: 2.5px solid var(--color-primary);
    outline-offset: 2px;
}

/* reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* =========================== BUTTONS =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
    white-space: nowrap;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn--primary {
    background: var(--color-primary);
    color: #16130a;
    box-shadow: var(--shadow-sm);
}

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

.btn--sm {
    padding: 10px 18px;
    font-size: .74rem;
}

.btn--lg {
    padding: 15px 30px;
    font-size: .86rem;
}

.btn--ghost-dark {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.35);
    color: #fff;
    backdrop-filter: blur(6px);
}

    .btn--ghost-dark:hover {
        background: rgba(255,255,255,.16);
    }

.btn--outline-light {
    background: transparent;
    border-color: rgba(255,255,255,.7);
    color: #fff;
}

    .btn--outline-light:hover {
        background: #fff;
        color: #14151c;
    }

.btn--quiet {
    background: var(--color-card-bg);
    border-color: var(--color-card-border);
    color: var(--color-heading);
}

    .btn--quiet:hover {
        border-color: var(--color-primary);
    }

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

.eyebrow {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin: 0 0 10px;
    font-weight: 600;
}

.eyebrow--dark {
    color: var(--color-text-muted);
}

.eyebrow--on-dark {
    color: var(--color-primary);
}

/* =========================== TOPBAR =========================== */
.topbar {
    background: var(--color-header-bg);
    transition: background-color .35s var(--ease);
}

.topbar__inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    color: var(--color-header-text);
    transition: color .35s var(--ease);
}

.logo__mark {
    display: flex;
    color: var(--color-header-text);
    transition: color .35s var(--ease);
}

.logo__word {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.search {
    flex: 1;
    display: flex;
    max-width: 620px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

    .search input {
        flex: 1;
        border: none;
        padding: 12px 16px;
        font-size: .9rem;
        font-family: var(--font-body);
        background: #fff;
        color: #1c1d24;
    }

        .search input:focus {
            outline: none;
        }

.search__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    background: #14151c;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background-color .18s var(--ease);
}

    .search__btn:hover {
        background: #26262f;
    }

/* =========================== SEARCH SUGGESTIONS =========================== */
.search-suggest {
    position: fixed;
    z-index: 140;
    display: none;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: var(--color-card-bg, #fff);
    border: 1px solid var(--color-card-border, #e7e5df);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

    .search-suggest.is-open {
        display: block;
    }

.search-suggest__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--color-card-text, #1c1d24);
    cursor: pointer;
}

    .search-suggest__item:hover,
    .search-suggest__item.is-active {
        background: var(--color-primary-tint, #fdf1cf);
    }

.search-suggest__thumb {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 4px;
    background: #12131a;
}

.search-suggest__empty {
    padding: 12px 14px;
    font-size: .82rem;
    color: var(--color-text-muted, #6d707c);
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.helpline {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.helpline__label {
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-header-text);
    opacity: .7;
    font-weight: 700;
    transition: color .35s var(--ease);
}

.helpline__number {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: .86rem;
    color: var(--color-header-text);
    transition: color .35s var(--ease);
}

.mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(20,21,28,.12);
    color: var(--color-header-text);
    border: none;
    transition: background-color .18s var(--ease), transform .3s var(--ease), color .35s var(--ease);
    flex-shrink: 0;
}

    .mode-toggle:hover {
        background: rgba(20,21,28,.2);
    }

    .mode-toggle .icon-moon {
        display: none;
    }

html[data-theme="dark"] .mode-toggle .icon-sun {
    display: none;
}

html[data-theme="dark"] .mode-toggle .icon-moon {
    display: block;
}

.quote-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #14151c;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .8rem;
    transition: background-color .18s var(--ease);
}

    .quote-btn:hover {
        background: #26262f;
    }

.quote-btn__badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: #fff;
    color: #14151c;
    font-family: var(--font-mono);
    font-size: .66rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}

    .nav-toggle span {
        width: 22px;
        height: 2px;
        background: var(--color-header-text);
        border-radius: 2px;
        transition: background-color .35s var(--ease);
    }

/* =========================== MAIN NAV =========================== */
.mainnav {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 60;
    transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

.mainnav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mainnav__list {
    display: flex;
    gap: 6px;
}

    .mainnav__list a {
        display: inline-block;
        padding: 17px 16px;
        font-weight: 600;
        font-size: .92rem;
        color: var(--color-text-muted);
        border-bottom: 2.5px solid transparent;
        transition: color .18s var(--ease), border-color .18s var(--ease);
    }

        .mainnav__list a:hover {
            color: var(--color-heading);
        }

        .mainnav__list a.is-active {
            color: var(--color-heading);
            border-color: var(--color-primary);
        }

.mainnav__note {
    font-size: .78rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

@media (max-width: 860px) {
    .mainnav__note {
        display: none;
    }
}

/* =========================== PAGE HEADER (inner pages) =========================== */
.page-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-navy) 0%, #101026 100%);
    padding: 54px 0 46px;
    margin-bottom: 4px;
}

.page-header__grid {
    position: absolute;
    inset: 0;
    opacity: .5;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(ellipse at left, black, transparent 75%);
}

.page-header__inner {
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: .74rem;
    color: rgba(255,255,255,.55);
    margin-bottom: 16px;
}

    .breadcrumb a {
        color: rgba(255,255,255,.75);
    }

        .breadcrumb a:hover {
            color: var(--color-primary);
        }

.breadcrumb--light {
    color: var(--color-text-muted);
    margin: 22px 0 0;
}

    .breadcrumb--light a {
        color: var(--color-text-muted);
    }

        .breadcrumb--light a:hover {
            color: var(--color-primary-dark);
        }

    .breadcrumb--light span[aria-current] {
        color: var(--color-heading);
        font-weight: 600;
    }

.page-header h1 {
    color: #fff;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 900;
}

.page-header p {
    color: rgba(255,255,255,.68);
    max-width: 56ch;
    margin: 14px 0 0;
    font-size: .95rem;
}

/* =========================== HERO ROW (home) =========================== */
.hero-row {
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 26px;
    padding: 28px 28px 0;
}

    .hero-row.container {
        padding-left: 28px;
        padding-right: 28px;
    }

.categories {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 4px 0 14px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
    transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

.categories__title {
    background: var(--color-primary);
    color: #171410;
    font-family: var(--font-mono);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 15px 18px;
    margin: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: background-color .35s var(--ease);
}

.categories__list li + li {
    border-top: 1px solid var(--color-card-border);
}

.categories__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--color-card-text);
    transition: background-color .16s var(--ease), color .16s var(--ease), padding-left .16s var(--ease);
}

    .categories__list a:hover, .categories__list a.is-active {
        background: var(--color-primary-tint);
        padding-left: 22px;
        color: var(--color-heading);
    }

.categories__list button {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--color-card-text);
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color .16s var(--ease), color .16s var(--ease), padding-left .16s var(--ease);
}

    .categories__list button:hover, .categories__list button.is-active {
        background: var(--color-primary-tint);
        padding-left: 22px;
        color: var(--color-heading);
    }

.cat-icon {
    display: flex;
    color: var(--color-primary-dark);
    flex-shrink: 0;
}

    .cat-icon svg {
        width: 18px;
        height: 18px;
    }

.cat-arrow {
    margin-left: auto;
    opacity: .35;
}

.categories__all {
    display: block;
    text-align: center;
    margin: 10px 18px 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-card-border);
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

/* ---- hero ---- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-navy) 0%, #101026 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 420px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
}

.hero__grid {
    position: absolute;
    inset: 0;
    opacity: .5;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to right, black, transparent 85%);
}

.hero__frame {
    position: relative;
    height: 100%;
}

    .hero__frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: saturate(1.05) contrast(1.03);
    }

    .hero__frame::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(16,16,38,.05) 0%, rgba(16,16,38,.85) 100%);
    }

.hero__content {
    position: relative;
    padding: 44px 44px 44px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero .eyebrow {
    color: var(--color-primary);
}

.hero__title {
    font-size: clamp(2.4rem, 4.2vw, 3.4rem);
    font-weight: 900;
    line-height: 1.02;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero__copy {
    color: rgba(255,255,255,.72);
    max-width: 34ch;
    margin: 18px 0 26px;
    font-size: .95rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.spec-tag {
    position: absolute;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .06em;
    font-weight: 600;
    color: #fff;
    background: rgba(10,10,22,.55);
    border: 1px solid rgba(255,255,255,.35);
    padding: 5px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.spec-tag--1 {
    top: 20px;
    left: 20px;
}

.spec-tag--2 {
    bottom: 20px;
    left: 20px;
}

/* ---- reusable "spec frame" corner motif ---- */
.frame {
    position: relative;
    overflow: hidden;
}

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

.frame__corner {
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.frame__corner--tl {
    top: 10px;
    left: 10px;
    border-top: 2.5px solid var(--color-primary);
    border-left: 2.5px solid var(--color-primary);
}

.frame__corner--tr {
    top: 10px;
    right: 10px;
    border-top: 2.5px solid var(--color-primary);
    border-right: 2.5px solid var(--color-primary);
}

.frame__corner--bl {
    bottom: 10px;
    left: 10px;
    border-bottom: 2.5px solid var(--color-primary);
    border-left: 2.5px solid var(--color-primary);
}

.frame__corner--br {
    bottom: 10px;
    right: 10px;
    border-bottom: 2.5px solid var(--color-primary);
    border-right: 2.5px solid var(--color-primary);
}

@media (max-width: 980px) {
    .hero-row {
        grid-template-columns: 1fr;
    }

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

    .hero__frame {
        min-height: 240px;
    }

    .hero__content {
        padding: 32px 24px;
    }
}

/* =========================== TRUST STRIP =========================== */
.trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 34px auto 0;
}

.trust__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-sm);
    padding: 16px 16px;
    box-shadow: var(--shadow-sm);
    transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

    .trust__item svg {
        color: var(--color-primary-dark);
        flex-shrink: 0;
        margin-top: 2px;
    }

    .trust__item strong {
        display: block;
        font-size: .86rem;
        color: var(--color-heading);
        margin-bottom: 2px;
    }

    .trust__item span {
        font-size: .78rem;
        color: var(--color-card-text-muted);
    }

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

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

/* =========================== PROMO CARDS =========================== */
.promo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 52px auto 0;
}

.promo-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: stretch;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s var(--ease), transform .2s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}

    .promo-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.promo-card__text {
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .promo-card__text h3 {
        font-size: 1.35rem;
        font-weight: 800;
        margin-bottom: 10px;
        line-height: 1.15;
    }

.promo-card__copy {
    color: var(--color-card-text-muted);
    font-size: .86rem;
    margin: 0 0 20px;
}

.promo-card__frame {
    min-height: 220px;
    background: var(--color-card-bg-2);
}

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

    .promo-card {
        grid-template-columns: 1fr;
    }

    .promo-card__frame {
        order: -1;
        min-height: 180px;
    }
}

/* =========================== NEW ARRIVALS / PRODUCT ROWS =========================== */
.arrivals {
    margin: 60px auto 0;
}

.arrivals__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 14px;
    margin-bottom: 26px;
}

    .arrivals__head h2 {
        font-size: 1.7rem;
        font-weight: 900;
    }

.tabs {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.tab {
    background: none;
    border: none;
    padding: 4px 2px 14px;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-bottom: 2.5px solid transparent;
    margin-bottom: -16px;
    transition: color .18s var(--ease), border-color .18s var(--ease);
}

    .tab:hover {
        color: var(--color-heading);
    }

    .tab.is-active {
        color: var(--color-heading);
        border-color: var(--color-primary);
    }

.product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 22px;
    align-items: center;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s var(--ease), transform .2s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}

    .product:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.product__media {
    position: relative;
    width: 130px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #12131a;
    flex-shrink: 0;
}

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

.product__flag {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: var(--font-mono);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    color: #171410;
}

.product__flag--new {
    background: var(--color-primary);
}

.product__flag--sale {
    background: #fff;
    border: 1px solid var(--color-primary);
}

.product__cat {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-card-text-muted);
}

.product h3 {
    font-size: 1.06rem;
    font-weight: 800;
    margin: 4px 0 6px;
}

    .product h3 a, .product-card__body h3 a {
        text-decoration: none;
        transition: color .16s var(--ease);
    }

        .product h3 a:hover, .product-card__body h3 a:hover {
            color: var(--color-primary-dark);
            text-decoration: underline;
        }

.product p {
    margin: 0;
    color: var(--color-card-text-muted);
    font-size: .86rem;
    max-width: 58ch;
}

.product__pn {
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--color-card-text-muted);
    opacity: .8;
    margin-top: 6px;
}

.product__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 168px;
}

    .product__actions .btn {
        width: 100%;
    }

.product__diagram {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product__diagram svg {
        width: 62px;
        height: 62px;
    }

@media (max-width: 720px) {
    .product {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .product__media {
        width: 100%;
        height: 96px;
    }

    .product__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        min-width: 0;
    }
}

/* =========================== PRODUCT GRID (catalog page) =========================== */
.catalog {
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 26px;
    margin: 40px auto 0;
    align-items: start;
}

.catalog__main {
    min-width: 0;
}

.catalog__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.catalog__count {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--color-text-muted);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .filter-chips button {
        background: var(--color-card-bg);
        border: 1px solid var(--color-card-border);
        color: var(--color-card-text-muted);
        padding: 8px 14px;
        border-radius: 999px;
        font-size: .78rem;
        font-weight: 700;
        transition: all .16s var(--ease);
    }

        .filter-chips button:hover {
            border-color: var(--color-primary);
            color: var(--color-heading);
        }

        .filter-chips button.is-active {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: #171410;
        }

.catalog__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--color-card-bg);
    border: 1px dashed var(--color-card-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

    .catalog__empty p {
        color: var(--color-card-text-muted);
        font-size: .9rem;
        margin: 0;
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s var(--ease), transform .2s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}

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

.product-card__media {
    position: relative;
    height: 170px;
    background: #12131a;
}

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

.product-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

    .product-card__body h3 {
        font-size: 1rem;
        font-weight: 800;
        margin: 6px 0 8px;
        line-height: 1.25;
    }

    .product-card__body p {
        font-size: .82rem;
        color: var(--color-card-text-muted);
        margin: 0;
        flex: 1;
    }

.product-card__foot {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

    .product-card__foot .btn {
        flex: 1;
    }

@media (max-width: 980px) {
    .catalog {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* =========================== PRODUCT DETAIL PAGE =========================== */
.pdp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin: 12px auto 0;
    align-items: start;
}

.pdp__gallery {
    position: sticky;
    top: 92px;
}

.pdp__main {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-card-bg-2);
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
}

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

.pdp__hd-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,.92);
    color: #14151c;
    font-family: var(--font-mono);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}

.pdp__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.pdp__thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: var(--color-card-bg-2);
    transition: border-color .18s var(--ease), opacity .18s var(--ease);
    opacity: .7;
}

    .pdp__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .pdp__thumb:hover {
        opacity: 1;
    }

    .pdp__thumb.is-active {
        border-color: var(--color-primary);
        opacity: 1;
    }

.pdp__info h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.08;
    margin: 6px 0 16px;
}

.pdp__desc {
    color: var(--color-text-muted);
    font-size: .94rem;
    line-height: 1.65;
    max-width: 52ch;
    margin: 0 0 24px;
}

.pdp__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 24px;
    transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

.pdp__spec-label {
    display: block;
    font-family: var(--font-mono);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.pdp__spec-value {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    color: var(--color-card-text);
}

.pdp__stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: .85rem;
    color: var(--color-text-muted);
}

    .pdp__stock svg {
        color: #1e9e5a;
        flex-shrink: 0;
    }

.pdp-section {
    margin: 64px auto 0;
}

.pdp-section__head {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 12px;
    margin-bottom: 28px;
}

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

.pdp-care__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pdp-care__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-tint);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdp-care__item h4 {
    font-size: .94rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.pdp-care__item p {
    font-size: .84rem;
    color: var(--color-text-muted);
    margin: 0;
}

.pdp-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.pdp-related__card {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

    .pdp-related__card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

.pdp-related__media {
    aspect-ratio: 1;
    background: #12131a;
}

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

.pdp-related__card p {
    margin: 0;
    padding: 12px 4px 0;
    font-size: .86rem;
    font-weight: 700;
    color: var(--color-heading);
}

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

    .pdp__gallery {
        position: static;
    }

    .pdp-care__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pdp-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pdp__specs {
        grid-template-columns: 1fr;
    }
}

/* =========================== COCKPIT / CTA BANNER =========================== */
.cockpit {
    margin: 60px auto 0;
}

.cockpit__frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-height: 320px;
    display: flex;
    align-items: center;
}

    .cockpit__frame img {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cockpit__frame::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(90deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.35) 55%, rgba(10,10,10,.05) 100%);
    }

.cockpit__content {
    position: relative;
    z-index: 2;
    padding: 46px;
    max-width: 480px;
}

    .cockpit__content h2 {
        color: #fff;
        font-size: clamp(1.7rem, 3vw, 2.2rem);
        font-weight: 900;
        margin: 4px 0 22px;
    }

@media (max-width: 640px) {
    .cockpit__frame {
        min-height: 280px;
    }

    .cockpit__content {
        padding: 30px 22px;
    }
}

/* =========================== ABOUT PAGE =========================== */
.about-intro {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 44px;
    align-items: center;
    margin: 52px auto 0;
}

.about-intro__frame {
    border-radius: var(--radius-md);
    min-height: 340px;
    box-shadow: var(--shadow-md);
}

.about-intro h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 900;
    margin: 6px 0 16px;
}

.about-intro p + p {
    margin-top: 12px;
}

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

    .about-intro__frame {
        order: -1;
        min-height: 220px;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    margin: 56px auto 0;
}

.stat {
    text-align: center;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 26px 16px;
    transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

    .stat strong {
        display: block;
        font-family: var(--font-mono);
        font-size: clamp(1.6rem,3vw,2.1rem);
        font-weight: 700;
        color: var(--color-primary-dark);
    }

    .stat span {
        display: block;
        margin-top: 6px;
        font-size: .8rem;
        color: var(--color-card-text-muted);
    }

@media (max-width: 760px) {
    .stats {
        grid-template-columns: 1fr 1fr;
    }
}

.values {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    margin: 56px auto 0;
}

.value-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

    .value-card svg {
        color: var(--color-primary-dark);
        margin-bottom: 14px;
    }

    .value-card h3 {
        font-size: 1rem;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .value-card p {
        font-size: .84rem;
        color: var(--color-card-text-muted);
        margin: 0;
    }

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

@media (max-width: 560px) {
    .values {
        grid-template-columns: 1fr;
    }
}

.timeline {
    margin: 56px auto 0;
    max-width: 720px;
}

.timeline__item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
}

    .timeline__item:first-child {
        border-top: none;
    }

.timeline__year {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-primary-dark);
}

.timeline__item h4 {
    font-size: .98rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.timeline__item p {
    font-size: .85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* =========================== CONTACT PAGE =========================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 30px;
    margin: 52px auto 0;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

    .contact-card svg {
        color: var(--color-primary-dark);
        flex-shrink: 0;
        margin-top: 2px;
    }

    .contact-card h3 {
        font-size: .92rem;
        font-weight: 800;
        margin-bottom: 5px;
    }

    .contact-card p, .contact-card a {
        font-size: .85rem;
        color: var(--color-card-text-muted);
        margin: 0;
        display: block;
    }

        .contact-card a:hover {
            color: var(--color-primary-dark);
        }

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 160px;
    position: relative;
    background: linear-gradient(135deg, var(--color-navy), #101026);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .contact-map::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: .5;
        background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
        background-size: 26px 26px;
    }

    .contact-map span {
        position: relative;
        font-family: var(--font-mono);
        font-size: .76rem;
        color: rgba(255,255,255,.7);
        text-align: center;
        padding: 0 20px;
    }

.contact-form {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    margin-bottom: 18px;
}

    .field label {
        display: block;
        font-size: .76rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--color-card-text-muted);
        margin-bottom: 7px;
    }

    .field input, .field select, .field textarea {
        width: 100%;
        border: 1px solid var(--color-card-border);
        background: var(--color-card-bg-2);
        color: var(--color-card-text);
        border-radius: var(--radius-sm);
        padding: 11px 13px;
        font-family: var(--font-body);
        font-size: .88rem;
        transition: border-color .18s var(--ease), background-color .35s var(--ease);
    }

    .field textarea {
        resize: vertical;
        min-height: 110px;
    }

        .field input:focus, .field select:focus, .field textarea:focus {
            outline: none;
            border-color: var(--color-primary);
        }

.form-note {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--color-primary-dark);
    min-height: 1.4em;
    margin-top: 4px;
}

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

@media (max-width: 560px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================== PROSE (terms & long-form text) =========================== */
.prose {
    max-width: 780px;
    margin: 48px auto 0;
}

    .prose h2 {
        font-size: 1.25rem;
        font-weight: 800;
        margin: 36px 0 12px;
    }

        .prose h2:first-child {
            margin-top: 0;
        }

    .prose p {
        font-size: .92rem;
        color: var(--color-text);
        margin: 0 0 14px;
    }

    .prose ul {
        margin: 0 0 14px;
        padding-left: 20px;
        list-style: disc;
    }

    .prose li {
        font-size: .92rem;
        color: var(--color-text);
        margin-bottom: 6px;
    }

.prose__meta {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

/* =========================== FOOTER =========================== */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    margin-top: 74px;
    transition: background-color .35s var(--ease), color .35s var(--ease);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 56px 28px 40px;
}

.footer__brand p {
    font-size: .86rem;
    line-height: 1.6;
    margin: 14px 0 18px;
    color: var(--color-footer-text);
    opacity: .65;
    max-width: 34ch;
}

.logo--light {
    color: var(--color-footer-text);
}

    .logo--light .logo__mark {
        color: var(--color-primary);
    }

    .logo--light .logo__word {
        font-size: 1.2rem;
    }

.footer__social {
    display: flex;
    gap: 10px;
}

    .footer__social a {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid var(--color-border-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-footer-text);
        transition: background-color .18s var(--ease), border-color .18s var(--ease);
    }

        .footer__social a:hover {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: #171410;
        }

.footer__col h4 {
    color: var(--color-footer-text);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer__col a {
    font-size: .88rem;
    color: var(--color-footer-text);
    opacity: .72;
    transition: color .16s var(--ease), opacity .16s var(--ease);
}

    .footer__col a:hover {
        color: var(--color-primary);
        opacity: 1;
    }

.footer__col--newsletter p {
    font-size: .84rem;
    color: var(--color-footer-text);
    opacity: .65;
    margin: 0 0 14px;
}

.newsletter {
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border-dark);
}

    .newsletter input {
        flex: 1;
        border: none;
        background: rgba(255,255,255,.06);
        color: var(--color-footer-text);
        padding: 11px 14px;
        font-family: var(--font-body);
        font-size: .86rem;
    }

        .newsletter input::placeholder {
            color: var(--color-footer-text);
            opacity: .45;
        }

        .newsletter input:focus {
            outline: none;
            background: rgba(255,255,255,.1);
        }

    .newsletter button {
        background: var(--color-primary);
        border: none;
        padding: 0 20px;
        font-weight: 800;
        font-size: .78rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #171410;
        transition: background-color .18s var(--ease);
    }

        .newsletter button:hover {
            background: var(--color-primary-dark);
        }

.newsletter__note {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--color-primary);
    min-height: 1.4em;
    margin-top: 10px;
}

.footer__bottom {
    border-top: 1px solid var(--color-border-dark);
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 28px;
    font-size: .76rem;
    color: var(--color-footer-text);
    opacity: .55;
}

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

@media (max-width: 560px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* =========================== THEME CUSTOMIZER =========================== */
.theme-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #171410;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform .5s var(--ease), background-color .3s var(--ease);
}

    .theme-fab:hover {
        transform: rotate(45deg);
    }

.theme-panel {
    position: fixed;
    right: 24px;
    bottom: 88px;
    z-index: 90;
    width: 296px;
    max-width: calc(100vw - 40px);
    max-height: min(72vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    padding: 20px;
    transform: translateY(14px) scale(.97);
    opacity: 0;
    pointer-events: none;
    transition: all .22s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}

    .theme-panel.is-open {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

.theme-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

    .theme-panel__head h3 {
        font-size: 1rem;
        font-weight: 800;
    }

    .theme-panel__head button {
        background: none;
        border: none;
        color: var(--color-text-muted);
        padding: 4px;
    }

.theme-panel__hint {
    font-size: .76rem;
    color: var(--color-text-muted);
    margin: 0 0 16px;
    line-height: 1.45;
}

.theme-panel__group {
    margin-bottom: 16px;
}

    .theme-panel__group + .theme-panel__group {
        padding-top: 14px;
        border-top: 1px solid var(--color-border);
    }

.theme-panel__label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-muted);
    margin-bottom: 9px;
}

.mode-row {
    display: flex;
    gap: 8px;
}

    .mode-row button {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 9px 8px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--color-border);
        background: var(--color-bg);
        color: var(--color-text-muted);
        font-size: .78rem;
        font-weight: 700;
        transition: all .18s var(--ease);
    }

        .mode-row button.is-active {
            border-color: var(--color-primary);
            color: var(--color-heading);
            background: var(--color-primary-tint);
        }

.swatches {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

    .swatches button {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 2px solid var(--color-surface);
        box-shadow: 0 0 0 1.5px var(--color-border);
        background: var(--sw);
        padding: 0;
        transition: transform .15s var(--ease), box-shadow .15s var(--ease);
    }

        .swatches button:hover {
            transform: scale(1.12);
        }

        .swatches button.is-active {
            box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3.5px var(--sw);
        }

        .swatches button[data-color="auto"] {
            background: linear-gradient(135deg, #ffffff 50%, #1c1d24 50%);
        }

            .swatches button[data-color="auto"].is-active {
                box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3.5px var(--color-primary);
            }

.theme-panel__custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

    .theme-panel__custom input[type=color] {
        width: 32px;
        height: 26px;
        border: none;
        background: none;
        padding: 0;
        border-radius: 6px;
        overflow: hidden;
    }

.theme-panel__note {
    font-size: .7rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin: 8px 0 0;
}

.theme-panel__reset {
    width: 100%;
    text-align: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-top: 4px;
}

    .theme-panel__reset:hover {
        color: var(--color-heading);
    }

.theme-scrim {
    position: fixed;
    inset: 0;
    background: rgba(10,10,18,.25);
    z-index: 85;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease);
}

    .theme-scrim.is-open {
        opacity: 1;
        pointer-events: auto;
    }

@media (min-width: 640px) {
    .theme-scrim {
        display: none;
    }
}

/* =========================== QUICK VIEW MODAL =========================== */
.qv {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease);
}

    .qv.is-open {
        opacity: 1;
        pointer-events: auto;
    }

.qv__scrim {
    position: absolute;
    inset: 0;
    background: rgba(10,10,18,.55);
    backdrop-filter: blur(2px);
}

.qv__panel {
    position: relative;
    background: var(--color-card-bg);
    width: min(680px, 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow-lg);
    transform: translateY(10px) scale(.98);
    transition: transform .22s var(--ease);
}

.qv.is-open .qv__panel {
    transform: none;
}

.qv__media {
    background: #12131a;
    min-height: 220px;
}

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

.qv__body {
    padding: 28px 26px;
}

    .qv__body h3 {
        font-size: 1.25rem;
        font-weight: 800;
        margin: 6px 0 10px;
    }

    .qv__body p {
        margin: 0;
        color: var(--color-card-text-muted);
        font-size: .9rem;
    }

.qv__pn {
    font-family: var(--font-mono);
    font-size: .72rem !important;
    color: var(--color-card-text-muted) !important;
    opacity: .8;
    margin-top: 10px !important;
}

.qv__actions {
    margin-top: 20px;
}

.qv__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14151c;
    z-index: 2;
}

@media (max-width: 620px) {
    .qv__panel {
        grid-template-columns: 1fr;
    }

    .qv__media {
        min-height: 160px;
    }
}

/* =========================== MOBILE NAV =========================== */
@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .search {
        display: none;
    }

    .helpline {
        display: none;
    }

    .mainnav__list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s var(--ease);
    }

    .mainnav.is-open .mainnav__list {
        max-height: 320px;
    }

    .mainnav__list a {
        display: block;
        padding: 14px 24px;
        border-bottom: 1px solid var(--color-border);
    }

    .topbar__inner {
        flex-wrap: wrap;
    }
}

/* =========================== MOBILE SEARCH =========================== */
/*@media (max-width: 860px) {
    .topbar__inner > .search {
        display: flex;
        order: 3;
        flex: 1 0 100%;
        max-width: none;
    }
}*/
/* =========================== MOBILE SEARCH =========================== */
@media (max-width: 860px) {
    .topbar__inner > .search {
        display: flex;
        order: 3;
        flex: 1 0 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
    }

        .topbar__inner > .search input {
            flex: 1 1 auto;
            width: 100%;
            min-width: 0;
            padding: 11px 12px;
            font-size: .85rem;
        }

        .topbar__inner > .search .search__btn {
            flex: 0 0 auto;
            gap: 6px;
            padding: 0 14px;
            font-size: .72rem;
            letter-spacing: .04em;
            white-space: nowrap;
        }
}

/* Bahut chhoti screen par sirf icon, taaki button kabhi clip na ho */
@media (max-width: 400px) {
    .topbar__inner > .search .search__btn span {
        display: none;
    }

    .topbar__inner > .search .search__btn {
        padding: 0 16px;
    }
}