/* =====================================================
   Design System: Verdant — Forest Green & Amber
   Premium Refurbished iPhone Shop
   v20260308
   ===================================================== */

:root {
    --bg: #F2F5F2;
    --bg-elev: #F8FAF8;
    --surface: #FFFFFF;
    --surface-soft: #F6FAF6;
    --line: #D8E4DA;
    --line-strong: #BACED0;
    --text: #0C1A10;
    --text-muted: #546460;
    --accent: #1A6B3A;
    --accent-strong: #135230;
    --accent-soft: #EBF5EE;
    --accent2: #D97706;
    --accent2-soft: #FEF3C7;
    --media-bg: #EEF3EE;
    --danger: #DC2626;
    --success: #16A34A;
    --radius-xl: 14px;
    --radius-lg: 10px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --shadow-soft: 0 8px 32px rgba(12, 26, 16, 0.08);
    --shadow-card: 0 2px 10px rgba(12, 26, 16, 0.06);
    --max-width: 1280px;
    --mobile-cta-height: 74px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', 'Urbanist', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.shop-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.shop-body-locked { overflow: hidden; }

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

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

a:hover { text-decoration: underline; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

/* ===== Header ===== */
.shop-header {
    position: sticky;
    top: 0;
    z-index: 70;
    border-bottom: 1px solid transparent;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 4px 24px rgba(13, 21, 38, 0.08);
}

.shop-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.shop-brand img {
    display: block;
    width: auto;
    height: 44px;
    max-width: min(52vw, 320px);
}

.shop-drawer-logo {
    display: block;
    width: auto;
    height: 40px;
    max-width: 200px;
}

.shop-brand:hover { text-decoration: none; }

/* Desktop Nav */
.shop-nav {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 16px;
}

.shop-nav > a,
.shop-nav-dropdown > summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #4B5775;
    padding: 8px 12px;
    border-radius: 8px;
    list-style: none;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
}

.shop-nav-dropdown > summary::-webkit-details-marker { display: none; }

.shop-nav > a:hover,
.shop-nav-dropdown > summary:hover {
    text-decoration: none;
    background: var(--bg-elev);
    color: var(--text);
}

.shop-nav-dropdown > summary::after {
    content: '▾';
    font-size: 10px;
    line-height: 1;
    transition: transform 0.14s ease;
}

.shop-nav-dropdown[open] > summary::after { transform: rotate(180deg); }

.shop-nav > a.is-active,
.shop-nav-dropdown.is-active > summary,
.shop-nav-dropdown[open] > summary {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.shop-nav-dropdown { position: relative; }

.shop-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(13, 21, 38, 0.14);
    display: grid;
    gap: 2px;
    z-index: 25;
}

.shop-nav-dropdown-models .shop-nav-dropdown-menu {
    min-width: 240px;
    max-height: min(58vh, 420px);
    overflow: auto;
}

.shop-nav-dropdown-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1E2A42;
}

.shop-nav-dropdown-menu a:hover {
    text-decoration: none;
    background: var(--bg-elev);
}

.shop-nav-dropdown-menu a.is-active {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

/* Header Actions */
.shop-header-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.shop-lang-form,
.shop-lang-form-mobile { margin: 0; }

.shop-lang-select {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    min-height: 36px;
    padding: 4px 10px;
}

.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    min-height: 38px;
    transition: background 0.14s ease, border-color 0.14s ease;
}

.shop-chip:hover {
    text-decoration: none;
    background: var(--bg-elev);
    border-color: var(--accent);
}

.shop-chip-strong {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.shop-chip-strong:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.shop-chip-label { white-space: nowrap; }

.shop-chip-strong .shop-chip-count {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 7px;
    font-size: 11px;
}

/* Mobile menu toggle */
.shop-menu-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 13px;
    min-height: 38px;
    cursor: pointer;
}

/* ===== Mobile Drawer ===== */
.shop-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    opacity: 0;
    background: rgba(7, 12, 22, 0.54);
    transition: opacity 0.22s ease;
}

.shop-drawer-backdrop.is-open { opacity: 1; }

.shop-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 360px);
    height: 100dvh;
    max-height: 100vh;
    z-index: 90;
    background: #ffffff;
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 48px rgba(9, 14, 24, 0.22);
    transform: translateX(104%);
    transition: transform 0.24s ease;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
    gap: 14px;
    overscroll-behavior: contain;
}

.shop-drawer.is-open { transform: translateX(0); }

.shop-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shop-drawer-head p {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.shop-drawer-close {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg-elev);
    color: var(--text);
    padding: 7px 12px;
    min-height: 38px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.shop-drawer-nav {
    display: grid;
    gap: 4px;
    align-content: start;
    overflow: auto;
}

.shop-drawer-nav > a,
.shop-drawer-dropdown > summary {
    display: block;
    padding: 10px 12px;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    cursor: pointer;
}

.shop-drawer-dropdown > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shop-drawer-dropdown > summary::-webkit-details-marker { display: none; }

.shop-drawer-dropdown > summary::after {
    content: '▾';
    font-size: 11px;
    transition: transform 0.14s ease;
}

.shop-drawer-dropdown[open] > summary::after { transform: rotate(180deg); }

.shop-drawer-nav > a:hover,
.shop-drawer-dropdown > summary:hover {
    text-decoration: none;
    background: var(--bg-elev);
}

.shop-drawer-nav > a.is-active,
.shop-drawer-dropdown.is-active > summary,
.shop-drawer-dropdown[open] > summary {
    border-color: #BFD4FF;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.shop-drawer-dropdown-links {
    display: grid;
    gap: 3px;
    padding: 4px 0 2px 12px;
}

#shopDrawerModelsDropdown .shop-drawer-dropdown-links {
    max-height: min(52vh, 360px);
    overflow: auto;
}

.shop-lang-form-mobile .shop-lang-select {
    width: 100%;
    margin-top: 8px;
}

.shop-drawer-dropdown-links a {
    display: block;
    padding: 8px 10px;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #2B3A56;
}

.shop-drawer-dropdown-links a:hover {
    text-decoration: none;
    background: var(--bg-elev);
}

.shop-drawer-dropdown-links a.is-active {
    border-color: #BFD4FF;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

/* ===== Main Layout ===== */
.shop-main {
    width: 100%;
    flex: 1 0 auto;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 24px 48px;
}

.shop-main.shop-main-has-sticky-cta {
    padding-bottom: calc(var(--mobile-cta-height) + 24px + env(safe-area-inset-bottom));
}

/* ===== Flash Alerts ===== */
.shop-alert-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.shop-alert {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #F8FAFC;
    color: #24303E;
    font-weight: 600;
    padding: 11px 14px;
    font-size: 14px;
}

.shop-alert-success {
    border-color: #BBF7D0;
    background: #F0FDF4;
    color: #14532D;
}

.shop-alert-warning {
    border-color: #FDE68A;
    background: #FFFBEB;
    color: #78350F;
}

.shop-alert-info {
    border-color: #BACED0;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.shop-alert-danger {
    border-color: #FECACA;
    background: #FFF1F2;
    color: #7F1D1D;
}

/* ===== Surface / Card Container ===== */
.shop-surface {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    margin-bottom: 16px;
}

/* ===== Reveal Animation ===== */
.shop-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.36s ease, transform 0.36s ease;
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.shop-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Result Head (section header row) ===== */
.result-head {
    margin: 0 0 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.result-head > * { min-width: 0; }

.result-head h1,
.result-head h2,
.result-head h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 3.6vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text);
    overflow-wrap: anywhere;
}

.result-head p {
    margin: 0;
    color: var(--text-muted);
    max-width: 60ch;
    font-size: 14px;
}

.result-head-compact { margin-top: 8px; }

/* ===== Typography helpers ===== */
.hero-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-lead {
    margin: 0;
    color: #4B5775;
    font-size: 16px;
    max-width: 66ch;
    line-height: 1.6;
}

/* ===== Form Elements ===== */
input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--text);
    padding: 10px 12px;
    min-height: 44px;
    outline: none;
    width: 100%;
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 16px;
    min-height: 42px;
    transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
    white-space: nowrap;
}

.btn-primary {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
    text-decoration: none;
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.34);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

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

.btn-secondary:hover {
    text-decoration: none;
    background: var(--bg-elev);
    border-color: var(--accent);
    color: var(--accent-strong);
}

.btn-link {
    border: 0;
    background: transparent;
    color: var(--danger);
    padding: 0;
    min-height: auto;
    font-size: 13px;
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

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

.card-actions > * { min-width: 0; }

.card-actions-center { justify-content: center; }

/* ===== Badges ===== */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-elev);
    color: #4B5775;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
}

/* ===== Info dot / popover ===== */
.info-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.info-dot {
    width: 20px;
    height: 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bg-elev);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.info-dot:hover,
.info-dot:focus-visible,
.info-dot[aria-expanded='true'] {
    background: var(--accent-soft);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.info-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    max-width: min(320px, calc(100vw - 40px));
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: #2D3D56;
    font-size: 12px;
    line-height: 1.5;
    padding: 9px 11px;
    box-shadow: 0 16px 32px rgba(13, 21, 38, 0.16);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
    z-index: 30;
}

.info-popover.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== Price Row ===== */
.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-row strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 4vw, 32px);
    letter-spacing: -0.025em;
    color: var(--text);
    overflow-wrap: anywhere;
}

.price-row span {
    font-size: 13px;
    color: #8896A8;
    text-decoration: line-through;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.price-row-large strong { font-size: clamp(30px, 5vw, 42px); }

/* ===== Model Tech Specs ===== */
.model-tech-overview {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-elev);
    padding: 10px 14px;
}

.model-tech-overview h2 {
    margin: 0 0 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
}

.model-tech-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.model-tech-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    font-size: 13px;
}

.model-tech-list li:last-child { border-bottom: 0; }
.model-tech-list li span { color: var(--text-muted); }
.model-tech-list li strong { color: var(--text); }

/* ===== Product Tabs ===== */
.product-tabs-shell {
    display: grid;
    gap: 12px;
}

.product-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-tabs-nav button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: #4B5775;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    min-height: 38px;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.product-tabs-nav button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.product-tabs-nav button.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.product-tab-panels { display: grid; gap: 10px; }

.product-tab-panel {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-elev);
    padding: 14px;
}

.product-tab-panel[hidden] { display: none !important; }

.model-tech-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.model-spec-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.model-spec-section-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 10px;
    display: grid;
    gap: 8px;
}

.model-spec-section-card h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
}

.model-spec-row-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.model-spec-row-list li {
    display: grid;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
}

.model-spec-row-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.model-spec-row-list span {
    color: var(--text-muted);
    font-size: 11px;
}

.model-spec-row-list strong {
    color: var(--text);
    font-size: 13px;
    line-height: 1.4;
}

/* ===== Utility ===== */
.mt-12 { margin-top: 12px; }

/* ===== Product Listing Filters ===== */
.filters-surface { scroll-margin-top: 110px; }

.product-filters-shell { position: relative; }

.product-filters { margin-top: 2px; }

.product-filters-toggle { display: none; }

.product-filter-modules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    align-items: start;
}

.product-filter-module {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    min-width: 0;
    transition: border-color 0.14s ease;
}

.product-filter-module-search { grid-column: span 2; }
.product-filter-module-range { grid-column: 1 / -1; }
.product-filter-module[open] { border-color: var(--line-strong); }

.product-filter-module.has-value {
    border-color: #BFDBFE;
    background: #ffffff;
}

.product-filter-module.has-value .product-filter-module-toggle { color: var(--text); }

.product-filter-module-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: #3B4C66;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-filter-module-toggle::-webkit-details-marker { display: none; }

.product-filter-module-toggle::after {
    content: '▾';
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.14s ease;
}

.product-filter-module[open] .product-filter-module-toggle::after { transform: rotate(180deg); }

.product-filter-module-body {
    padding: 8px 10px 10px;
    border-top: 1px solid var(--line);
}

.product-filter-module-static { padding: 8px 10px 10px; }

.product-filter-module-static label,
.product-filter-module-body label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-filter-module-static span,
.product-filter-module-body span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.product-filter-module input,
.product-filter-module select {
    width: 100%;
    min-height: 36px;
    padding: 6px 9px;
}

.product-filter-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.product-search-field { min-width: 0; }
.product-search-field input { width: 100%; }

/* ===== Device Grid (Listing) ===== */
.device-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.device-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.device-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.10);
}

.device-image-wrap {
    position: relative;
    min-height: 210px;
    height: 210px;
    display: grid;
    place-items: center;
    background: var(--media-bg);
    padding: 14px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    isolation: isolate;
}

.device-model-image {
    width: auto;
    height: auto;
    max-width: min(100%, 240px);
    max-height: 176px;
    object-fit: contain;
    object-position: center;
}

.device-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.device-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    line-height: 1.2;
}

.device-title a {
    color: var(--text);
    overflow-wrap: anywhere;
}

.device-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.device-card-actions { margin-top: 4px; }

/* ===== Pager ===== */
.pager {
    min-height: 42px;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pager button {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 7px 12px;
    min-width: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.pager button:hover:not([disabled]) {
    background: var(--bg-elev);
    border-color: var(--accent);
}

.pager button.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.pager button[disabled] {
    opacity: 0.4;
    cursor: default;
}

/* ===== Product Detail Layout ===== */
.product-layout {
    display: grid;
    grid-template-columns: minmax(260px, 460px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.product-layout-unified { align-items: stretch; }

.product-image {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--media-bg);
    padding: 20px;
    min-height: 360px;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
}

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

.product-image-unified { min-height: 440px; }

.product-layout-model .product-image-model {
    min-height: clamp(320px, 42vw, 560px);
}

/* Stock images */
.shop-stock-shot {
    mix-blend-mode: multiply;
    filter: contrast(1.02) saturate(1.03);
}

.product-image .shop-stock-shot {
    transform: scale(1.03);
    transform-origin: center bottom;
}

.device-image-wrap .shop-stock-shot,
.home-model-media .shop-stock-shot {
    transform: scale(1.02);
    transform-origin: center bottom;
}

.device-image-wrap .shop-mini-model-shot,
.home-model-media .shop-mini-model-shot,
.homec-card-media .shop-mini-model-shot {
    transform: scale(1.1);
    transform-origin: center bottom;
}

.product-image .shop-mini-model-shot {
    transform: scale(1.14);
    transform-origin: center bottom;
}

.cart-item .shop-stock-shot { transform: none; }

.cart-item .shop-mini-model-shot {
    transform: scale(1.08);
    transform-origin: center bottom;
}

/* ===== Product Panel (info side) ===== */
.product-panel {
    display: grid;
    align-content: start;
    gap: 8px;
}

.product-layout-model .product-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    padding: clamp(14px, 2vw, 20px);
    gap: 10px;
}

.product-panel h1,
.product-info h1 {
    margin: 2px 0 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

/* ===== Product Trust Grid (spec items in product detail) ===== */
.product-trust-grid,
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.spec-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-elev);
    padding: 10px 12px;
    display: grid;
    gap: 3px;
}

.spec-item span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.spec-item strong {
    font-size: 14px;
    color: var(--text);
}

/* ===== Config Form (model detail) ===== */
.config-form {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-elev);
    padding: 14px;
}

.config-option-groups {
    display: grid;
    gap: 10px;
}

.config-option-group {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    padding: 12px;
}

.config-group-head {
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.config-group-head-with-help {
    width: 100%;
    justify-content: flex-start;
}

.config-group-label { margin-right: auto; }

.config-group-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.config-group-icon svg { width: 14px; height: 14px; }

.config-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.config-option-btn {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-elev);
    color: var(--text);
    text-align: left;
    padding: 10px;
    display: grid;
    gap: 3px;
    min-height: 72px;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.config-option-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.config-option-btn.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.config-option-btn.is-adjusting:not(.is-active) {
    border-color: var(--line-strong);
    background: var(--bg-elev);
}

.config-option-btn.is-condition-better:not(.is-active) {
    border-color: #86EFAC;
    background: #F0FDF4;
}

.config-option-btn.is-condition-worse:not(.is-active) {
    border-color: #FCA5A5;
    background: #FFF1F2;
}

.config-option-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.config-option-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.config-option-change {
    font-size: 11px;
    color: var(--text-muted);
}

.config-option-btn.is-condition-better .config-option-change { color: var(--success); }
.config-option-btn.is-condition-worse .config-option-change { color: var(--danger); }

.config-options-empty {
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.config-summary {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-elev);
    color: var(--text);
    font-size: 14px;
    padding: 10px 12px;
}

.config-adjustments {
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-elev);
    color: var(--text-muted);
    font-size: 13px;
    padding: 9px 12px;
}

.config-adjustments.is-condition-better {
    border-color: #86EFAC;
    background: #F0FDF4;
    color: #14532D;
}

.config-adjustments.is-condition-worse {
    border-color: #FCA5A5;
    background: #FFF1F2;
    color: #7F1D1D;
}

.model-main-actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.model-main-actions > * { width: 100%; }

/* ===== Condition Guide ===== */
.condition-guide {
    position: relative;
    display: inline-block;
}

.condition-guide-toggle {
    list-style: none;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--bg-elev);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.condition-guide-toggle::-webkit-details-marker { display: none; }
.condition-guide-toggle::marker { content: ''; }

.condition-guide[open] .condition-guide-toggle {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.condition-guide-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 58px));
    max-height: min(340px, 62vh);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(13, 21, 38, 0.16);
    padding: 12px;
    display: grid;
    gap: 8px;
    z-index: 18;
}

.condition-guide-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.condition-guide-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    color: #4B5775;
    font-size: 12px;
    line-height: 1.4;
}

.condition-guide-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.condition-guide-link:hover { text-decoration: underline; }

/* ===== Cart & Account Grid ===== */
.cart-grid,
.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
}

.account-grid-auth {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cart-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    padding: 12px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 12px;
    align-items: center;
}

.cart-item > div { min-width: 0; }

.cart-item img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 8px;
    background: var(--media-bg);
}

.cart-item h3 {
    margin: 0 0 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
}

.cart-actions-col {
    text-align: right;
    display: grid;
    justify-items: end;
    gap: 6px;
}

/* ===== Order Summary / Form Card ===== */
.order-summary,
.form-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    padding: 16px;
}

.order-summary-sticky {
    position: sticky;
    top: 90px;
    align-self: start;
}

.order-summary h2,
.form-card h2 {
    margin: 0 0 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.summary-row,
.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.summary-item { font-size: 14px; }
.summary-item > div { min-width: 0; }
.summary-item-block { align-items: flex-start; }

.summary-total {
    border-bottom: 0;
    font-size: 17px;
    font-weight: 700;
    padding-top: 10px;
}

/* ===== Form Grid ===== */
.form-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-card label,
.filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-card span,
.filter-grid span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Checkout Steps ===== */
.checkout-steps {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkout-steps span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-elev);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
}

.checkout-steps span.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.checkout-account-hint {
    margin: 4px 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.checkout-account-hint-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.checkout-account-hint-links a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.checkout-choice-block {
    margin: 8px 0 12px;
    display: grid;
    gap: 8px;
}

.checkout-choice-block h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
}

.checkout-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.checkout-choice-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-elev);
    display: grid;
    gap: 8px;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.checkout-choice-card:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.10);
}

.checkout-choice-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.14);
}

.checkout-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-choice-card img {
    width: auto;
    height: 32px;
    object-fit: contain;
    object-position: left center;
}

.checkout-choice-card strong {
    font-size: 14px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.checkout-choice-card span {
    font-size: 12px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.checkout-form-card {
    display: grid;
    gap: 10px;
}

.checkout-legal-box .checkbox-row {
    align-items: flex-start;
    margin: 0;
}

.checkout-legal-box .checkbox-row input[type='checkbox'] { margin-top: 2px; }

.checkout-legal-box a {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== Status Pills ===== */
.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    color: var(--text-muted);
}

.status-success {
    border-color: #86EFAC;
    background: #F0FDF4;
    color: #14532D;
}

.status-danger {
    border-color: #FCA5A5;
    background: #FFF1F2;
    color: #7F1D1D;
}

.status-neutral {
    border-color: var(--line);
    background: var(--bg-elev);
    color: var(--text-muted);
}

/* ===== Shop Note ===== */
.shop-note {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-elev);
    color: #4B5775;
    font-size: 14px;
    padding: 10px 12px;
    overflow-wrap: anywhere;
}

.shop-note-compact {
    margin: 8px 0 0;
    font-size: 13px;
}

.shop-note-success {
    border-color: #BBF7D0;
    background: #F0FDF4;
    color: #14532D;
}

/* ===== Table ===== */
.table-wrap { overflow: auto; }

.shop-table {
    width: 100%;
    border-collapse: collapse;
}

.shop-table th,
.shop-table td {
    border-bottom: 1px solid var(--line);
    text-align: left;
    padding: 8px 8px;
    font-size: 14px;
    white-space: nowrap;
}

.shop-table th {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ===== Info Pages ===== */
.info-page {
    display: grid;
    gap: 14px;
}

.info-hero-compact {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-elev);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
    padding: 16px 20px;
}

.info-hero-copy {
    display: grid;
    align-content: start;
    gap: 6px;
}

.info-hero-copy h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--text);
}

.info-hero-copy .hero-lead {
    margin: 0;
    color: #4B5775;
    font-size: 14px;
    line-height: 1.55;
    max-width: 64ch;
}

.info-context-photo {
    margin: 0;
    width: 128px;
    height: 96px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--media-bg);
    box-shadow: var(--shadow-card);
    justify-self: end;
}

.info-context-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.info-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.info-highlight-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 12px;
    display: grid;
    gap: 4px;
}

.info-highlight-card p {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.info-highlight-card strong {
    font-size: 14px;
    line-height: 1.35;
    color: var(--text);
}

/* ===== FAQ ===== */
.faq-accordion {
    display: grid;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    overflow: clip;
    transition: border-color 0.14s ease;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 18px;
    line-height: 1;
    color: var(--text-muted);
    flex: 0 0 auto;
    font-weight: 400;
}

.faq-item[open] {
    border-color: var(--accent);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--line);
    color: var(--accent-strong);
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    margin: 0;
    padding: 12px 14px 14px;
    color: #4B5775;
    line-height: 1.6;
}

/* ===== Quality Steps ===== */
.quality-steps,
.faq-list {
    display: grid;
    gap: 10px;
}

.quality-card,
.faq-card { background: var(--bg-elev); }

.quality-heading {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #4B5775;
}

.quality-process {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.faq-support p { margin: 4px 0; }

/* ===== Legal ===== */
.legal-copy {
    display: grid;
    gap: 14px;
}

.legal-copy h1,
.legal-copy h2,
.legal-copy h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    color: var(--text);
}

.legal-copy h1 { font-size: clamp(26px, 4vw, 38px); }
.legal-copy h2 { font-size: clamp(19px, 3vw, 26px); }
.legal-copy h3 { font-size: 17px; }

.legal-copy p {
    margin: 0;
    color: #4B5775;
    line-height: 1.65;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.legal-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
    display: grid;
    gap: 6px;
    box-shadow: var(--shadow-card);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.legal-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.legal-card-wide { grid-column: 1 / -1; }

.legal-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    color: #4B5775;
    line-height: 1.55;
}

/* ===== Link Row ===== */
.link-grid { display: grid; gap: 8px; }

.link-row {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    padding: 12px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.link-row:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

/* ===== Empty State ===== */
.empty-state {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-elev);
    padding: 32px 16px;
    text-align: center;
}

.empty-state h1,
.empty-state h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.empty-state p {
    margin: 8px 0 0;
    color: var(--text-muted);
}

/* ===== Mobile Sticky CTA ===== */
.mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 24px rgba(13, 21, 38, 0.12);
    backdrop-filter: blur(10px);
}

.mobile-sticky-cta p {
    margin: 0;
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mobile-sticky-cta span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-muted);
}

.mobile-sticky-cta strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    line-height: 1;
}

.mobile-sticky-cta .btn-primary { min-width: 120px; }

/* ===== Discount Tag ===== */
.discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    background: var(--text);
    color: #F7F9FD;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
}

/* ===== Signal Pills (model listing) ===== */
.signal-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
}

.signal-mark {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--text-muted);
}

.signal-mark.is-stock { background: var(--success); }
.signal-mark.is-storage { background: var(--accent); }
.signal-mark.is-color { background: #8B5CF6; }

/* ===== Home Model Grid (legacy) ===== */
.home-model-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-model-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #ffffff;
    overflow: hidden;
    display: grid;
    grid-template-rows: 210px 1fr;
    min-height: 380px;
    box-shadow: var(--shadow-card);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-model-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.10);
}

.home-model-media {
    position: relative;
    border-bottom: 1px solid var(--line);
    background: var(--media-bg);
    display: grid;
    place-items: center;
    padding: 14px;
    overflow: hidden;
    isolation: isolate;
}

.home-model-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.home-model-body {
    padding: 14px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.home-model-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

.home-model-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.home-model-price {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    line-height: 1;
}

.home-model-range {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.home-model-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-model-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

/* ===== Cart Grid Refined ===== */
.cart-grid-refined { }

/* ===== Newsletter Form (Footer) ===== */
.shop-newsletter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-newsletter-form input {
    min-width: 220px;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 14px;
    width: auto;
}

.shop-newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.5); }

.shop-newsletter-form input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.shop-newsletter-form .btn-primary {
    min-height: 40px;
    padding: 8px 16px;
    box-shadow: none;
    background: #ffffff;
    color: var(--text);
    border: none;
}

.shop-newsletter-form .btn-primary:hover {
    background: var(--bg-elev);
}

.shop-newsletter-form small {
    width: 100%;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Footer ===== */
.shop-footer {
    width: 100%;
    margin-top: auto;
    background: #0D1526;
    color: rgba(255, 255, 255, 0.7);
}

.shop-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 24px;
    display: grid;
    gap: 32px;
    font-size: 13px;
}

.shop-footer-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px 40px;
    align-items: center;
}

.shop-footer-brand .shop-brand img {
    height: 40px;
    opacity: 0.92;
}

.shop-footer-brand .shop-brand { min-height: auto; }

.shop-footer-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-footer-trust-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 4px;
}

.shop-footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    white-space: nowrap;
}

.shop-footer-trust-badge svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.shop-footer-trust-badge-green {
    border-color: rgba(134, 239, 172, 0.3);
    color: #86EFAC;
}

.shop-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.shop-footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
    transition: color 0.12s ease, background 0.12s ease;
}

.shop-footer-links a:hover {
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.shop-footer-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.shop-footer-socials a:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.shop-footer-socials svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.shop-footer-copy {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    width: 100%;
}

.shop-footer-copy a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: underline;
}

/* ===== Cookie Banner ===== */
.shop-cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 16px));
    width: min(680px, calc(100vw - 24px));
    z-index: 95;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(13, 21, 38, 0.18);
    padding: 16px 20px;
    display: grid;
    gap: 12px;
    transition: transform 0.28s ease, opacity 0.28s ease;
    opacity: 0;
}

.shop-cookie-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.shop-cookie-banner p {
    margin: 0;
    font-size: 14px;
    color: #4B5775;
    line-height: 1.55;
}

.shop-cookie-banner a {
    color: var(--accent);
    text-decoration: underline;
}

.shop-cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== CTA Pulse ===== */
.cta-pulse {
    animation: ctaPulse 2.4s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28); }
    50% { box-shadow: 0 4px 28px rgba(37, 99, 235, 0.50); }
}

/* ===== FREE SHIPPING HIGHLIGHT ===== */
.free-shipping-highlight {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.free-shipping-highlight-cost {
    background: var(--success);
    color: #ffffff;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
}

/* =====================================================
   HOME PAGE COMPONENTS
   ===================================================== */

/* Hero */
.homec-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 2.8vw, 36px);
    background: linear-gradient(135deg, #F7F9FD 0%, #EFF4FF 60%, #E8F0FE 100%);
    border-color: #DBEAFE;
}

.homec-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: clamp(18px, 2.2vw, 32px);
    align-items: center;
}

.homec-copy {
    display: grid;
    align-content: start;
    gap: 16px;
}

.homec-copy h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--text);
    max-width: 18ch;
}

.homec-lead {
    margin: 0;
    color: #4B5775;
    font-size: clamp(15px, 1.7vw, 18px);
    max-width: 54ch;
    line-height: 1.65;
}

.homec-hero-actions { margin-top: 4px; }

/* Quick Finder */
.homec-finder {
    border: 1px solid #DBEAFE;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    padding: 14px;
    display: grid;
    gap: 10px;
    max-width: 640px;
}

.homec-finder-label {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.homec-finder-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.homec-finder-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.homec-finder-chip:hover {
    text-decoration: none;
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-strong);
    transform: translateY(-1px);
}

.homec-finder-chip.is-all {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.homec-finder-chip.is-all:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.homec-finder-chip.is-unavailable {
    opacity: 0.38;
    pointer-events: none;
    border-style: dashed;
    background: var(--bg-elev);
    color: var(--text-muted);
}

/* Hero Visual */
.homec-hero-visual {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: linear-gradient(160deg, var(--accent-soft) 0%, #D4EDDA 100%);
    min-height: 300px;
    overflow: hidden;
    isolation: isolate;
}

.homec-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    z-index: 1;
    pointer-events: none;
}

.homec-orb-a {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -50px;
    background: rgba(37, 99, 235, 0.18);
}

.homec-orb-b {
    width: 140px;
    height: 140px;
    bottom: -40px;
    left: -28px;
    background: rgba(29, 78, 216, 0.12);
}

.homec-device-card {
    position: absolute;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 32px rgba(13, 21, 38, 0.12);
    padding: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    z-index: 2;
    animation: homec-float 7s ease-in-out infinite;
}

.homec-device-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.homec-device-a { width: 48%; height: 78%; left: 6%; top: 11%; }
.homec-device-b { width: 36%; height: 56%; right: 9%; top: 13%; animation-delay: -1.8s; }
.homec-device-c { width: 38%; height: 58%; right: 18%; bottom: -3%; animation-delay: -3.6s; }

/* Proof Bar */
.homec-proof-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.homec-proof-stars {
    color: #D97706;
    font-size: 15px;
    letter-spacing: -0.02em;
    line-height: 1;
}

.homec-proof-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Trust Strip */
.homec-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.homec-trust-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    padding: 14px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: start;
}

.homec-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
}

.homec-trust-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.homec-trust-text {
    display: grid;
    gap: 4px;
}

.homec-trust-text h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.1;
}

.homec-trust-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* Section Head */
.homec-section-head { margin-bottom: 14px; }

/* Series/Home Grid */
.homec-grid {
    display: grid;
    gap: 12px;
}

.homec-series-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    justify-content: center;
}

/* Home Cards */
.homec-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 310px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.homec-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.10);
}

.homec-card-media {
    background: var(--media-bg);
    display: grid;
    place-items: center;
    padding: 14px;
    flex: 0 0 168px;
    height: 168px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.homec-card-media img {
    width: auto;
    height: auto;
    max-width: min(100%, 230px);
    max-height: 138px;
    object-fit: contain;
    object-position: center;
}

.homec-card-body {
    padding: 14px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.homec-card-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
}

.homec-card-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.homec-card-price {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    line-height: 1;
    color: var(--text);
}

.homec-card-sub {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.homec-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.homec-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-elev);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
}

.homec-card-actions { margin-top: auto; }

/* Empty / Skeleton */
.homec-empty {
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    background: var(--bg-elev);
    padding: 24px;
    text-align: center;
}

.homec-empty h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.homec-empty p {
    margin: 8px 0 0;
    color: var(--text-muted);
}

.homec-skeleton { pointer-events: none; }

.homec-skeleton .homec-card-media,
.homec-skeleton-line {
    background: linear-gradient(90deg, #F0F4FA 0%, #E4EAF5 50%, #F0F4FA 100%);
    background-size: 200% 100%;
    animation: homec-shimmer 1.3s linear infinite;
}

.homec-skeleton-line {
    height: 11px;
    border-radius: 999px;
}

.homec-skeleton-line.w60 { width: 60%; }
.homec-skeleton-line.w80 { width: 80%; }
.homec-skeleton-line.w40 { width: 40%; }

@keyframes homec-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@keyframes homec-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* Why Buy Section */
.homec-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.homec-why-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 20px 18px;
    display: grid;
    gap: 10px;
    align-content: start;
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.homec-why-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.homec-why-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-grid;
    place-items: center;
}

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

.homec-why-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.homec-why-text {
    margin: 0;
    font-size: 14px;
    color: #4B5775;
    line-height: 1.6;
}

/* Home Hero (legacy) */
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 22px;
    align-items: stretch;
    padding: 28px;
    background: linear-gradient(135deg, #F7F9FD 0%, #EFF4FF 100%);
}

.home-hero-copy {
    display: grid;
    align-content: start;
    gap: 14px;
}

.home-hero-copy h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.home-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-hero-metrics article {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 14px;
}

.home-hero-metrics span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.home-hero-metrics strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-trust-grid article {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 12px;
}

.trust-title {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.home-trust-grid strong {
    display: block;
    margin-top: 3px;
    font-size: 14px;
}

.home-hero-actions { margin-top: 4px; }

.home-hero-media {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--media-bg);
    display: grid;
    place-items: center;
    padding: 20px;
}

.home-hero-media figure {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    width: 100%;
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 20px;
}

.home-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.home-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-story-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #ffffff;
    display: grid;
    grid-template-rows: 190px 1fr;
}

.home-story-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.home-story-body {
    padding: 14px;
    display: grid;
    gap: 6px;
}

.home-story-body h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
}

.home-story-body p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

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

@media (prefers-reduced-motion: reduce) {
    .homec-device-card { animation: none; }
    .homec-card, .homec-finder-chip, .device-card, .legal-card { transition: none; }
    .cta-pulse { animation: none; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28); }
}

@media (max-width: 1100px) {
    .homec-hero-shell {
        grid-template-columns: 1fr;
    }

    .homec-copy h1 { max-width: none; }

    .homec-hero-visual { min-height: 240px; }
}

@media (max-width: 992px) {
    .shop-nav,
    #shopDesktopNav {
        display: none;
    }

    .shop-menu-toggle { display: inline-flex; }

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

    .product-filter-module-search,
    .product-filter-module-range {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .cart-grid,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .order-summary-sticky { position: static; }
    .checkout-choice-grid { grid-template-columns: 1fr; }
    .model-tech-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .model-spec-section-grid { grid-template-columns: 1fr; }
    .product-layout { grid-template-columns: 1fr; }
    .info-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .homec-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .shop-main { padding: 20px 16px 40px; }

    .shop-surface { padding: 18px; }

    .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .homec-why-grid { grid-template-columns: 1fr; }
    .home-story-grid { grid-template-columns: 1fr; }

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

    .homec-series-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .homec-finder-chips {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homec-finder-chip.is-all {
        grid-column: 1 / -1;
    }

    .homec-hero-actions .btn-primary { width: 100%; }

    .shop-footer-top {
        grid-template-columns: 1fr;
    }

    .shop-footer-inner { padding: 32px 16px 20px; }
}

@media (max-width: 600px) {
    .shop-header-inner {
        padding: 0 16px;
    }

    .homec-trust-strip { grid-template-columns: 1fr; }

    .model-tech-list-grid { grid-template-columns: 1fr; }

    .info-highlights { grid-template-columns: 1fr; }

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

    .homec-finder-chips { grid-template-columns: 1fr; }

    .homec-finder-chip.is-all { grid-column: auto; }

    .homec-hero-visual { min-height: 200px; }

    .homec-device-c { display: none; }

    .mobile-sticky-cta { display: flex; }

    .shop-newsletter-form { flex-direction: column; align-items: stretch; }

    .shop-newsletter-form input { min-width: 0; width: 100%; }

    .home-model-grid { grid-template-columns: 1fr; }

    .quality-process { grid-template-columns: 1fr; }

    .shop-footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .homec-card { min-height: 280px; border-radius: var(--radius-lg); }

    .homec-card-media {
        flex-basis: 140px;
        height: 140px;
    }

    .cart-item {
        grid-template-columns: 72px 1fr;
    }

    .cart-actions-col {
        grid-column: 1 / -1;
        text-align: left;
        flex-direction: row;
        align-items: center;
        display: flex;
        justify-content: space-between;
    }
}

/* =====================================================
   ACCOUNT PAGE
   ===================================================== */

.account-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.account-page-ident { display: grid; gap: 4px; }

.account-page-ident h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.account-page-ident .device-meta { margin-top: 2px; }

.account-tabs-nav { margin-bottom: 20px; }

.account-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 11px;
    padding: 0 5px;
    margin-left: 5px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.account-tab-panel { display: grid; gap: 12px; }
.account-tab-panel[hidden] { display: none; }

.account-section-subhead {
    margin: 10px 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Order rows ── */
.account-orders-list { display: grid; gap: 8px; }
.account-order-row[hidden] { display: none; }

.account-order-row {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(90px, auto) auto;
    gap: 10px 16px;
    align-items: center;
    transition: border-color 0.14s ease;
}

.account-order-row:hover { border-color: var(--line-strong); }

.account-order-meta { display: grid; gap: 2px; min-width: 0; }

.account-order-number {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-order-status {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.account-order-total {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

.account-order-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.account-order-actions .btn-secondary {
    padding: 6px 11px;
    font-size: 12px;
    min-height: 32px;
    white-space: nowrap;
}

/* ── Account responsive ── */
@media (max-width: 760px) {
    .account-order-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
    }

    .account-order-meta { grid-column: 1; grid-row: 1; }
    .account-order-total { grid-column: 2; grid-row: 1; text-align: right; }
    .account-order-status { grid-column: 1 / -1; grid-row: 2; }
    .account-order-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
}

@media (max-width: 480px) {
    .account-page-header { flex-direction: column; gap: 12px; }
    .account-tabs-nav { gap: 4px; }
    .account-tabs-nav button { font-size: 13px; padding: 7px 12px; }
}

/* ===== CHECKOUT V2 ===== */

/* Progress stepper */
.co-progress {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.co-progress-step {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}
.co-progress-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--bg-elev);
    border: 2px solid var(--line);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}
.co-progress-step.is-done .co-progress-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.co-progress-step.is-active { color: var(--text); }
.co-progress-step.is-active .co-progress-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.co-progress-line {
    flex: 1;
    height: 2px;
    background: var(--line);
    margin: 0 10px;
    min-width: 16px;
}
.co-progress-label { display: inline; }

/* Checkout sections */
.co-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
}
.co-section:last-child { margin-bottom: 0; }
.co-section-head {
    margin: 0 0 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.co-section-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Extras section (coupon + notes) */
.co-extras-section { display: grid; gap: 0; }
.co-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.co-toggle-btn:hover { text-decoration: underline; }
.co-toggle-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.co-toggle-panel[hidden] { display: none; }
.co-toggle-panel textarea,
.co-toggle-panel input[type="text"] { width: 100%; }
.co-coupon-row { display: grid; }

/* Guest hint */
.co-guest-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.co-guest-links {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.co-guest-links a { color: var(--accent); text-decoration: underline; font-weight: 600; }

/* ===== CHECKOUT SUCCESS ===== */
.co-success-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 8px 0 28px;
}
.co-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.co-success-header h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(22px, 5vw, 30px);
    letter-spacing: -0.02em;
}
.co-success-ordernr {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}
.co-success-ordernr strong {
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
}

/* Bank transfer action box */
.co-bank-action {
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
}
.co-bank-action > strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
}
.co-bank-rows { display: grid; gap: 6px; }
.co-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
    flex-wrap: wrap;
}
.co-bank-row span:first-child { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.co-bank-row code {
    font-size: 13px;
    background: rgba(245,158,11,0.15);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-all;
}
.co-bank-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #92400e;
}

/* Order detail rows (success page) */
.co-detail-rows { display: grid; gap: 0; }
.co-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    flex-wrap: wrap;
}
.co-detail-row:last-child { border-bottom: 0; }
.co-detail-row > span:first-child { color: var(--text-muted); font-weight: 600; }
.co-detail-row-total {
    padding-top: 12px;
    font-size: 16px;
}
.co-detail-row-total span { font-weight: 700; color: var(--text); }
.co-tracking-link { color: var(--accent); text-decoration: underline; font-weight: 600; }

/* Success action buttons */
.co-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .co-progress-label { display: none; }
    .co-progress-step.is-active .co-progress-label { display: inline; }
    .co-section { padding: 14px; }
    .co-bank-row { flex-direction: column; gap: 2px; }
}
