

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-cyrillic-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-latin-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-cyrillic-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-cyrillic-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Manrope — как в richmark-id и richmark_main: один файл на начертание (не
   разбит по кириллице/латинице, как Inter выше — так пришли исходники шрифта). */
@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/Manrope-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/Manrope-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: light;

    --bg: #F7F7F7;
    --surface: #FFFFFF;
    --surface-2: #EEEEEE;
    --line: rgba(0, 0, 0, .08);
    --line-strong: rgba(0, 0, 0, .14);
    --text: #1D1D1F;
    --text-muted: #6E6E73;
    --text-faint: #86868B;
    --accent-base: #0071E3;
    --accent: var(--accent-base);
    --accent-hover: color-mix(in srgb, var(--accent) 85%, white);
    --accent-ink: #FFFFFF;
    --success: #1F9A57;
    --danger: #D2382F;
    --warning: #B57E10;
    --header-bg: rgba(247, 247, 247, .92);
    --badge-glass: rgba(255, 255, 255, .85);
    --alert-error-text: #A02620;
    --alert-success-text: #166B3D;
    --alert-warning-text: #8A5D06;
    --shadow: 0 8px 24px rgba(0, 0, 0, .10);
    --hero-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48.5' viewBox='0 0 56 48.5'%3E%3Cpolygon points='28,0 56,16 56,32.4 28,48.5 0,32.4 0,16' fill='none' stroke='%23E2E2E4' stroke-width='1.5'/%3E%3C/svg%3E");

    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;

    --text-display: clamp(2.4rem, 1rem + 6.2vw, 6.5rem);
    --text-h2: clamp(1.5rem, 1rem + 2vw, 2.6rem);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --container: 1600px;
    --speed: 180ms;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

    --z-sticky-bar: 30;
    --z-header: 40;
    --z-tabbar: 45;
    --z-drawer-scrim: 60;
    --z-drawer: 61;
    --z-lightbox: 80;
    --z-toast: 90;
    --z-skip-link: 100;
}

@media (prefers-color-scheme: dark)  {
    :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --surface: #1C1C1E;
    --surface-2: #2C2C2E;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #F5F5F7;
    --text-muted: #98989D;
    --text-faint: #6E6E73;
    --accent: color-mix(in srgb, var(--accent-base) 78%, white);
    --accent-hover: color-mix(in srgb, var(--accent) 85%, white);
    --accent-ink: #FFFFFF;
    --success: #47C97E;
    --danger: #F0564F;
    --warning: #F2B234;
    --header-bg: rgba(0, 0, 0, .85);
    --badge-glass: rgba(0, 0, 0, .78);
    --alert-error-text: #FFB4B0;
    --alert-success-text: #A8E9C4;
    --alert-warning-text: #F7D488;
    --shadow: 0 8px 24px rgba(0, 0, 0, .55);
    --hero-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48.5' viewBox='0 0 56 48.5'%3E%3Cpolygon points='28,0 56,16 56,32.4 28,48.5 0,32.4 0,16' fill='none' stroke='%233A3A3C' stroke-width='1.5'/%3E%3C/svg%3E");
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398989D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #000000;
    --surface: #1C1C1E;
    --surface-2: #2C2C2E;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #F5F5F7;
    --text-muted: #98989D;
    --text-faint: #6E6E73;
    --accent: color-mix(in srgb, var(--accent-base) 78%, white);
    --accent-hover: color-mix(in srgb, var(--accent) 85%, white);
    --accent-ink: #FFFFFF;
    --success: #47C97E;
    --danger: #F0564F;
    --warning: #F2B234;
    --header-bg: rgba(0, 0, 0, .85);
    --badge-glass: rgba(0, 0, 0, .78);
    --alert-error-text: #FFB4B0;
    --alert-success-text: #A8E9C4;
    --alert-warning-text: #F7D488;
    --shadow: 0 8px 24px rgba(0, 0, 0, .55);
    --hero-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48.5' viewBox='0 0 56 48.5'%3E%3Cpolygon points='28,0 56,16 56,32.4 28,48.5 0,32.4 0,16' fill='none' stroke='%233A3A3C' stroke-width='1.5'/%3E%3C/svg%3E");
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398989D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--accent-ink); }

.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    margin: 0;
    overflow-x: hidden;
    overflow-wrap: break-word;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.55 var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent);
}

html { scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--line-strong); border-radius: 999px;
    border: 3px solid var(--bg); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); background-clip: padding-box; }

@media (prefers-reduced-motion: reduce)  {

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-property: opacity, color, background, background-color, border-color, box-shadow !important;
    }

    .btn.is-loading::after {
        animation-duration: .7s !important;
        animation-iteration-count: infinite !important;
    }
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px)  { .container { padding-inline: 32px; } }
@media (min-width: 1700px)  { .container { padding-inline: 48px; } }

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: var(--z-skip-link);
    background: var(--accent); color: var(--accent-ink);
    padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { left: 8px; }

.cookie-notice {
    position: relative; z-index: var(--z-header);
    background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.cookie-notice-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px 20px; padding-block: 10px;
}
.cookie-notice-inner p { margin: 0; font-size: 13px; color: var(--text-muted); max-width: 68ch; }
.cookie-notice-inner p a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cookie-notice-inner .btn { flex: none; min-height: 36px; padding: 6px 16px; }

.site-header {
    position: sticky; top: 0; z-index: var(--z-header);
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);

    padding-top: env(safe-area-inset-top, 0);
}
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 'logo nav' 'search search';
    gap: 10px 16px;
    align-items: center;
    padding-block: 10px;
}
@media (min-width: 900px)  {
    .header-inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: 'logo search nav';
        padding-block: 14px;
    }
}
.logo {
    grid-area: logo;
    display: flex; align-items: center; gap: 10px; min-width: 0;
    text-decoration: none; color: var(--text); min-height: 44px;
}
.logo-mark { color: var(--accent); flex: none; }
.logo-text {
    font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: .02em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.logo-set { position: relative; display: block; height: 34px; }
.logo-set-dark { display: none; }
:root[data-theme="dark"] .logo-set-light { display: none; }
:root[data-theme="dark"] .logo-set-dark { display: block; }
@media (prefers-color-scheme: dark)  {
    :root:not([data-theme="light"]) .logo-set-light { display: none; }
    :root:not([data-theme="light"]) .logo-set-dark { display: block; }
}
.logo-frame { display: block; height: 34px; width: auto; max-width: 200px; object-fit: contain; }
.logo-set.has-alt .logo-frame { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }

.logo-set.has-alt .logo-frame-a { animation: logo-crossfade-a 12s ease-in-out 3 forwards; }
.logo-set.has-alt .logo-frame-b { animation: logo-crossfade-b 12s ease-in-out 3 forwards; }
@keyframes logo-crossfade-a { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes logo-crossfade-b { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce)  {
    .logo-set.has-alt .logo-frame-a, .logo-set.has-alt .logo-frame-b { animation: none; }
    .logo-set.has-alt .logo-frame-b { display: none; }
}

.header-search-wrap { grid-area: search; position: relative; }
.header-search {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 0 14px; min-height: 44px;
    color: var(--text-muted);
    transition: border-color var(--speed);
}
.header-search:focus-within { border-color: var(--accent); color: var(--text); }
.header-search input {
    flex: 1; background: none; border: 0; outline: none;
    color: var(--text); min-width: 0; height: 42px;
}
.header-search input::placeholder { color: var(--text-muted); }

.search-suggestions {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: var(--z-header);
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--radius); box-shadow: var(--shadow);
    max-height: 70vh; overflow-y: auto;
    padding: 6px;
    opacity: 0; transform: scale(0.97) translateY(-6px); transform-origin: top;
    pointer-events: none;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.search-suggestions.is-open { opacity: 1; transform: none; pointer-events: auto; }
.search-suggestion {
    display: flex; align-items: center; gap: 12px;
    padding: 8px; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--text);
    min-height: 44px;
}
.search-suggestion:hover, .search-suggestion.is-active { background: var(--surface-2); }
.search-suggestion-media {
    flex: none; width: 44px; height: 58px; object-fit: cover;
    border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line);
}
.search-suggestion-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.search-suggestion-name {
    font-size: 14px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search-suggestion-price { display: flex; gap: 8px; align-items: baseline; }
.search-suggestion-price .price { font-size: 13px; font-weight: 600; }
.search-suggestion-price .price-old { font-size: 12px; }
.search-suggestions-more {
    display: block; text-align: center; padding: 10px; margin-top: 4px;
    border-top: 1px solid var(--line); color: var(--accent); text-decoration: none;
    font-size: 13px; font-weight: 600; min-height: 44px; line-height: 24px;
}
.search-suggestions-empty { padding: 16px 10px; text-align: center; color: var(--text-muted); font-size: 14px; }

.header-nav { grid-area: nav; display: flex; gap: 4px; justify-content: flex-end; }

@media (max-width: 639px)  {
    .header-nav .nav-link:not(.theme-toggle) { display: none; }
}

button.nav-link {
    background: none; border: 0; cursor: pointer;
    font-family: var(--font-body); font-size: 12px; line-height: inherit;
    padding: 4px 8px; margin: 0; color: var(--text-muted);
}
.nav-link {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-width: 56px; min-height: 44px; padding: 4px 8px;
    color: var(--text-muted); text-decoration: none; font-size: 12px;
    border-radius: var(--radius-sm);
    transition: color var(--speed), background var(--speed);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--text); background: var(--surface); }
.cart-badge {
    position: absolute; top: 2px; right: 6px;
    min-width: 18px; height: 18px; padding: 0 5px;
    display: none; align-items: center; justify-content: center;
    background: var(--accent); color: var(--accent-ink);
    border-radius: 999px; font-size: 11px; font-weight: 600;
}
.cart-badge.is-visible { display: inline-flex; }
.cart-badge.is-bumped { animation: badge-bump 320ms var(--ease-spring); }
@keyframes badge-bump { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

.mobile-tabbar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom, 0)); z-index: var(--z-tabbar);
    justify-content: center;
    pointer-events: none;
}
@media (max-width: 639px)  {
    .mobile-tabbar { display: flex; }

    .site-main { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0)); }
}
.tabbar-capsule {
    display: flex; align-items: center; gap: 8px;
    max-width: calc(100vw - 24px);
    pointer-events: auto;

    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px;

    overflow: hidden;
}
.tabbar-item {
    position: relative;

    flex: 0 0 44px;
    display: flex; align-items: center; justify-content: center; gap: 0;
    height: 44px; padding-inline: 0;
    border-radius: 999px;

    background: color-mix(in srgb, var(--text-muted) 10%, transparent);
    color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600;
    transition: flex-basis var(--speed) var(--ease-out), background var(--speed) var(--ease-out), color var(--speed) var(--ease-out), padding-inline var(--speed) var(--ease-out), border-radius var(--speed) var(--ease-out);
}
.tabbar-item.is-active {
    flex-basis: 140px;
    padding-inline: 18px;
    justify-content: flex-start;

    gap: 8px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
}
.tabbar-icon { position: relative; display: flex; flex: none; }
.tabbar-label {
    overflow: hidden; white-space: nowrap;
    max-width: 0; opacity: 0;
    transition: max-width var(--speed) var(--ease-out), opacity 140ms var(--ease-out);
}
.tabbar-item.is-active .tabbar-label { max-width: 100px; opacity: 1; }
.tabbar-badge {
    position: absolute; top: -3px; right: -6px;
    min-width: 16px; height: 16px; padding: 0 4px;
    display: none; align-items: center; justify-content: center;
    background: var(--accent); color: var(--accent-ink);
    border: 2px solid var(--surface);
    border-radius: 999px; font-size: 10px; font-weight: 600;
}
.tabbar-badge.is-visible { display: inline-flex; }
.tabbar-item.is-active .tabbar-badge { background: var(--accent-ink); color: var(--accent); border-color: var(--accent); }

.site-main { flex: 1; }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; }
.footer-inner { padding-block: 32px; display: grid; gap: 12px; }
.footer-brand { font-family: var(--font-display); font-weight: 600; margin: 0; }
.footer-note { color: var(--text-muted); font-size: 14px; margin: 0; max-width: 48ch; }
.footer-requisites { color: var(--text-faint); font-size: 12px; margin: 4px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--text); }

.hero-texture {
    position: absolute; inset: 0; pointer-events: none;
    background-image: var(--hero-hex);
    background-size: 56px 48.5px;
    mask-image: radial-gradient(120% 100% at 85% 20%, #000 0%, transparent 65%);
    -webkit-mask-image: radial-gradient(120% 100% at 85% 20%, #000 0%, transparent 65%);
}
.btn-arrow { display: inline-block; margin-left: 4px; transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine)  { .btn:hover .btn-arrow { transform: translateX(4px); } }

[data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce)  {

    [data-reveal] { transform: none; }
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px;
    border-radius: var(--radius); border: 1px solid transparent;
    font-weight: 600; font-size: 15px; text-decoration: none;
    cursor: pointer; touch-action: manipulation;
    transition: background .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out), transform .15s var(--ease-out), opacity 120ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn.is-swapping { opacity: 0; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--text-muted); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn-sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
    content: ''; position: absolute; inset: 0; margin: auto;
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(0,0,0,.35); border-top-color: transparent;
    animation: spin .7s linear infinite;
}
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after { border-color: var(--text-muted); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: none; border: 0; color: var(--text-muted); cursor: pointer;
    transition: color var(--speed), background var(--speed);
}
.icon-btn:hover { color: var(--danger); background: var(--surface-2); }

.section { padding-block: clamp(40px, 6vw, 88px) 0; }
.section-page { padding-block: 24px 48px; }
.section-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: var(--text-h2); letter-spacing: -0.01em; margin: 0 0 20px;
}
.page-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 1rem + 1.8vw, 38px); letter-spacing: -0.01em; margin: 0 0 20px; }
.block-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 28px 0 14px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

.category-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

@media (max-width: 767px)  {
    .category-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        margin-inline: -16px;
        padding-inline: 16px;
        padding-bottom: 6px;
        scrollbar-width: none;
    }
    .category-chips::-webkit-scrollbar { display: none; }
    .category-chips .chip { flex: none; }
}

.vehicle-picker-btn { flex: none; }
.vehicle-picker-btn svg { color: var(--accent); }
@media (max-width: 767px)  { .vehicle-picker-btn { display: none; } }

.vehicle-letter-group + .vehicle-letter-group { margin-top: 28px; }
.vehicle-letter-heading {
    font-family: var(--font-display); font-weight: 600; font-size: 20px;
    margin: 0 0 12px; color: var(--text-muted);
}
.vehicle-make-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.vehicle-make-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 16px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); text-decoration: none; color: var(--text);
    transition: border-color var(--speed), background var(--speed);
}
.vehicle-make-card:hover { border-color: var(--accent); background: var(--surface-2); }
.vehicle-make-name { font-size: 15px; font-weight: 600; }
.vehicle-make-meta { font-size: 12px; color: var(--text-muted); }

@media (max-width: 639px)  {
    .vehicle-make-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .vehicle-make-card { padding: 12px; gap: 4px; }
}
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 8px 16px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; text-decoration: none; color: var(--text); font-size: 14px;
    transition: border-color var(--speed), background var(--speed);
}
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip-icon { width: 18px; height: 18px; object-fit: contain; flex: none; }
.chip-count { color: var(--text-muted); font-size: 12px; }
.chip.is-active .chip-count { color: var(--accent-ink); opacity: .7; }

.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.catalog-head-text { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.catalog-count { color: var(--text-muted); font-size: 14px; margin: 0; }
.catalog-toolbar { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 24px; border-block: 1px solid var(--line); padding-block: 6px; }
.toolbar-label { color: var(--text-muted); font-size: 14px; }
.sort-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sort-link {
    min-height: 44px; display: inline-flex; align-items: center;
    padding: 6px 12px; border-radius: var(--radius-sm);
    color: var(--text-muted); text-decoration: none; font-size: 14px;
    transition: color var(--speed), background var(--speed), transform var(--speed) var(--ease-out);
}
@media (hover: hover) and (pointer: fine)  { .sort-link:hover { color: var(--text); background: var(--surface); } }
.sort-link:active { transform: scale(0.97); }
.sort-link.is-active { color: var(--accent); font-weight: 600; }
.sort-select { display: none; }

@media (max-width: 639px)  {
    .catalog-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
    .sort-links { display: none; }
    .sort-select {
        display: block; grid-column: 1; width: 100%; min-height: 44px;
        padding: 0 38px 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
        background: var(--surface); color: var(--text); font-size: 14px;
        appearance: none; -webkit-appearance: none; -moz-appearance: none;
        background-image: var(--select-chevron);
        background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
    }
    .sort-select::-ms-expand { display: none; }
    .filters-trigger { grid-column: 2; }
    .stock-toggle { grid-column: 1 / -1; margin-left: 0; }
}

.product-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)   { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px)  { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1440px)  { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.product-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;

    transition: border-color .3s var(--ease-out), opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: 0s, calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms);
}
.product-card:hover { border-color: var(--line-strong); }

.product-card-media {
    position: relative; display: block; aspect-ratio: 3 / 4;
    background: var(--surface-2); overflow: hidden;
}
.product-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s var(--ease-out);
}
@media (hover: hover) and (pointer: fine)  {
    .product-card:hover .product-card-media img { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce)  { .product-card:hover .product-card-media img { transform: none; } }
.product-card-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 12px; flex: 1; }
.product-card-title {
    color: var(--text); text-decoration: none; font-family: var(--font-display);
    font-size: 10px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    min-height: calc(1.4em * 3);
}
.product-card-title:hover { color: var(--accent); }
.product-card-bottom { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.swatch-dot {
    width: 18px; height: 18px; border-radius: 50%; flex: none;
    background: var(--swatch, transparent); border: 1px solid var(--line-strong);
    box-shadow: inset 0 0 0 2px var(--surface);
}
.swatch-row { display: flex; align-items: center; flex: none; }
.swatch-row .swatch-dot-sm { width: 16px; height: 16px; margin-left: -6px; box-shadow: inset 0 0 0 1.5px var(--surface), 0 0 0 1px var(--surface); }
.swatch-row .swatch-dot-sm:first-child { margin-left: 0; }
.swatch-more {
    margin-left: 4px; color: var(--text-muted); font-size: 11px; font-weight: 600;
}
.product-card-price {
    display: flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-end;
    gap: 2px 8px; margin-left: auto; min-width: 0;
}
.price { font-weight: 600; font-size: 17px; white-space: nowrap; }
.price-old { color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.price-xl { font-size: 28px; }
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
}

.product-card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.product-card-badges .badge { font-size: 10px; padding: 2px 6px; }
.badge-new  { background: var(--text); color: var(--surface); }
.badge-sale { background: var(--accent); color: var(--accent-ink); }
.badge-low  { background: var(--badge-glass); color: var(--warning); border: 1px solid rgba(242,178,52,.4); backdrop-filter: blur(4px); }
.badge-variants { background: var(--badge-glass); color: var(--text-muted); border: 1px solid var(--line-strong); backdrop-filter: blur(4px); }

.product-page { display: grid; gap: 32px; }
@media (min-width: 900px)  { .product-page { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(32px, 4vw, 72px); } }
.gallery-main {
    aspect-ratio: 3 / 4; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity 150ms var(--ease-out); }
.gallery-main img.is-switching { opacity: 0; }
@media (prefers-reduced-motion: reduce)  { .gallery-main img { transition: none; } }

.gallery-thumbs-col { margin-top: 10px; }
.gallery-thumb-arrow { display: none; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb {
    flex: none; width: 64px; height: 84px; padding: 0;
    background: var(--surface); border: 2px solid transparent;
    border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
    transition: border-color var(--speed);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active, .gallery-thumb:hover { border-color: var(--accent); }

@media (min-width: 900px)  {

    .product-gallery { display: flex; gap: 12px; align-items: flex-start; }
    .gallery-main { order: 2; flex: 1 1 auto; min-width: 0; }
    .gallery-thumbs-col {
        order: 1; flex: none; width: 76px; margin-top: 0;
        display: flex; flex-direction: column; gap: 6px;
        overflow: hidden;
    }
    .gallery-thumb-arrow:not([hidden]) {
        display: flex; align-items: center; justify-content: center;
        flex: none; width: 100%; height: 22px;
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
        color: var(--text-muted); cursor: pointer; transition: color var(--speed), border-color var(--speed);
    }
    .gallery-thumb-arrow:not([hidden]):hover { color: var(--text); border-color: var(--line-strong); }
    .gallery-thumbs {
        flex: 1 1 auto; min-height: 0; flex-direction: column;
        overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
    }
    .gallery-thumbs::-webkit-scrollbar { display: none; }
    .gallery-thumb { width: 100%; height: auto; aspect-ratio: 3 / 4; }
}

.product-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 3vw, 26px); margin: 0 0 8px; line-height: 1.25; }
.product-meta { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }
.product-rating { display: inline-flex; align-items: center; gap: 3px; color: var(--text); font-weight: 600; text-decoration: none; }
.product-rating:hover { text-decoration: underline; }
.product-rating-star { color: var(--warning); }
.product-rating-count { color: var(--text-muted); font-weight: 400; }
.stock-in { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }

.about-content { max-width: 720px; }

.product-reviews-layout { display: grid; gap: 32px; }
@media (min-width: 900px)  {
    .product-reviews-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: start; gap: clamp(32px, 4vw, 56px); }
}

.reviews-standalone { max-width: 480px; }
.reviews-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.reviews-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 0 0 14px; }
.reviews-summary { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.reviews-avg { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; }
.reviews-count { display: block; font-size: 12px; color: var(--text-faint); margin-top: 4px; }

.reviews-list {
    display: flex; flex-direction: column; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line);
    max-height: 420px; overflow-y: auto; overscroll-behavior: contain;
}
.review-item { display: flex; flex-direction: column; gap: 6px; }
.review-text { font-size: 13px; line-height: 1.5; margin: 0; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.review-text.is-expanded { -webkit-line-clamp: unset; overflow: visible; }
.review-text-expand {
    align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--accent); font-size: 12px; font-weight: 600;
}
@media (hover: hover) and (pointer: fine)  { .review-text-expand:hover { color: var(--accent-hover); } }
.review-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-date { font-size: 11px; color: var(--text-faint); }
.review-thumb { position: relative; display: block; width: 36px; height: 36px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.review-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-thumb.is-video::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.review-thumb.is-video::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-46%, -50%);
    border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff;
}
.reviews-more { margin-top: 16px; }

.review-lightbox {
    position: fixed; inset: 0; z-index: var(--z-lightbox);
    display: flex; align-items: center; justify-content: center; padding: 32px;
    background: rgba(0, 0, 0, .85);
    opacity: 0; pointer-events: none;
    transition: opacity var(--speed) var(--ease-out);
}
.review-lightbox.is-open { opacity: 1; pointer-events: auto; }
.review-lightbox img {
    max-width: 100%; max-height: 100%; border-radius: var(--radius);
    transform: scale(.95);
    transition: transform var(--speed) var(--ease-out);
}
.review-lightbox.is-open img { transform: scale(1); }
.review-lightbox-close {
    position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
    transition: background var(--speed) var(--ease-out), transform var(--speed) var(--ease-out);
}
@media (hover: hover) and (pointer: fine)  { .review-lightbox-close:hover { background: rgba(255, 255, 255, .22); } }
.review-lightbox-close:active { transform: scale(.92); }
@media (prefers-reduced-motion: reduce)  {
    .review-lightbox, .review-lightbox img, .review-lightbox-close { transition: none; }
}

.star-rating { position: relative; display: inline-block; line-height: 1; font-size: 13px; letter-spacing: 1px; }
.star-rating-track, .star-rating-fill { display: block; white-space: nowrap; }
.star-rating-track { color: var(--line-strong); }
.star-rating-fill { position: absolute; inset: 0; overflow: hidden; color: var(--warning); }

.product-variants { margin: 0 0 20px; }
.product-variants-label {
    margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.product-variants-label .mono { color: var(--text-faint); font-weight: 400; }
.variant-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.variant-swatch {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: 72px; text-decoration: none; color: var(--text-muted);
    text-align: center;
}
.variant-swatch-media {
    display: block; width: 72px; aspect-ratio: 3 / 4;
    border-radius: var(--radius-sm); overflow: hidden;
    background: var(--surface-2);
    border: 2px solid transparent;
    transition: border-color var(--speed);
}
.variant-swatch-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.variant-swatch:hover .variant-swatch-media { border-color: var(--line-strong); }
.variant-swatch.is-current .variant-swatch-media { border-color: var(--accent); }
.variant-swatch-label {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; font-size: 11px; line-height: 1.35; max-width: 100%;
}
.variant-swatch.is-current .variant-swatch-label { color: var(--text); font-weight: 600; }

.buy-trust {
    list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px;
    margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line);
    font-size: 12px; color: var(--text-muted);
}
.buy-trust li { display: flex; align-items: center; gap: 7px; }
.buy-trust li::before { content: ''; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }

.sticky-buy-bar { display: none; }
@media (max-width: 899px)  {
    .sticky-buy-bar {
        display: block;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky-bar);
        background: var(--header-bg); backdrop-filter: blur(10px);
        border-top: 1px solid var(--line);
        transform: translateY(100%); opacity: 0; pointer-events: none;
        transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out);
    }
    .sticky-buy-bar.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .sticky-buy-inner {
        display: flex; align-items: center; gap: 14px;
        padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0));
    }
    .sticky-buy-info { min-width: 0; display: grid; gap: 1px; }
    .sticky-buy-price { font-weight: 600; font-size: 15px; }
    .sticky-buy-name { color: var(--text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sticky-buy-inner .btn { flex: none; margin-left: auto; }
}
@media (max-width: 639px)  {

    .sticky-buy-bar { bottom: calc(78px + env(safe-area-inset-bottom, 0)); }
}

.product-buy {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px; margin-bottom: 8px;
}
.product-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.buy-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-btn { flex: 1; min-width: 200px; }

.qty-stepper {
    display: inline-flex; align-items: stretch;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn {
    width: 44px; min-height: 44px; border: 0; background: none; color: var(--text);
    font-size: 18px; cursor: pointer; touch-action: manipulation;
    transition: background var(--speed);
}
.qty-btn:hover { background: var(--line); }
.qty-input {
    width: 48px; text-align: center; border: 0; background: none; color: var(--text);
    -moz-appearance: textfield; appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.attr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.attr-table th, .attr-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.attr-table th { color: var(--text-muted); font-weight: 400; width: 42%; }
.product-description { color: var(--text); font-size: 15px; line-height: 1.65; }
.product-description p { margin: 0 0 12px; }
.disclaimer-note { display: block; margin-top: 8px; font-size: 11px; color: var(--text-muted); }

.rich-content { display: grid; gap: clamp(28px, 4vw, 48px); }
.rich-content img { width: 100%; height: auto; border-radius: var(--radius); background: var(--surface-2); }

.rc-text { max-width: 68ch; }
.rc-text.is-center { max-width: none; text-align: center; margin-inline: auto; }
.rc-text.is-center .rc-title { margin-inline: auto; }

.rc-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(18px, 1vw + 13px, 24px); line-height: 1.25;
    letter-spacing: -0.01em; margin: 0 0 12px;
}
.rc-text p, .rc-tile p, .rc-chess-body p, .rc-billboard-body p {
    margin: 0 0 10px; color: var(--text-muted); font-size: 15px; line-height: 1.65;
}
.rc-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.rc-list li {
    position: relative; padding-left: 20px; color: var(--text-muted); font-size: 15px; line-height: 1.55;
}
.rc-list li::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg);
}

.rc-roll img { display: block; max-height: 640px; object-fit: cover; margin-inline: auto; }

.rc-chess {
    display: grid; gap: 20px; align-items: center;
    grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .rc-chess { grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); } }
.rc-chess.is-reverse .rc-chess-media { order: 2; }
.rc-chess-media img { aspect-ratio: auto; }
.rc-chess-body .rc-title { margin-top: 0; }

.rc-billboard { position: relative; border-radius: var(--radius); overflow: hidden; }
.rc-billboard-media img { border-radius: 0; }
.rc-billboard-body { padding: 20px clamp(16px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }

.rc-tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rc-tile {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; display: grid; gap: 12px; align-content: start;
}
.rc-tile-media { border-radius: var(--radius-sm); overflow: hidden; }
.rc-tile-media img { border-radius: var(--radius-sm); aspect-ratio: 3 / 4; object-fit: contain; }
.rc-tile-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: 16px; letter-spacing: -0.01em; margin: 0;
}

.cart-layout { display: grid; gap: 24px; }
@media (min-width: 900px)  { .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.cart-items { display: grid; gap: 12px; }
.cart-item {
    display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px;
}
@media (min-width: 640px)  { .cart-item { grid-template-columns: auto 1fr auto; } }
.cart-item-media { width: 60px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); flex: none; }
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { display: grid; gap: 4px; min-width: 0; }
.cart-item-title { color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.4; }
.cart-item-title:hover { color: var(--accent); }
.cart-item-price { color: var(--text-muted); font-size: 13px; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; justify-content: space-between; }
@media (min-width: 640px)  { .cart-item-controls { grid-column: auto; } }
.cart-item-sum { font-weight: 600; white-space: nowrap; }
.cart-item.is-removing { opacity: .4; pointer-events: none; }

.cart-summary {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px;
    position: sticky; top: 90px;
}
.summary-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0 0 16px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 8px; }
.summary-row[hidden] { display: none; }
.summary-row-total { border-top: 1px solid var(--line); margin-top: 4px; }
.summary-total { font-weight: 600; font-size: 22px; }
.summary-note { color: var(--text-muted); font-size: 13px; margin: 8px 0 16px; }
.summary-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.summary-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary-item-name { color: var(--text-muted); }
.summary-item-sum { white-space: nowrap; }

.checkout-layout { display: grid; gap: 24px; }
@media (min-width: 900px)  { .checkout-layout { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } }
.summary-list-photo { gap: 14px; }
.summary-item-photo { display: flex; align-items: center; gap: 12px; }
.summary-item-media {
    flex: none; width: 56px; height: 74px; object-fit: cover;
    border-radius: var(--radius-sm); background: var(--surface-2);
    border: 1px solid var(--line);
}
.summary-item-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.summary-item-photo .summary-item-name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; font-size: 14px; color: var(--text);
}
.summary-item-qty { color: var(--text-faint); font-size: 12px; }
.summary-item-photo .summary-item-sum { font-weight: 600; white-space: nowrap; }
.form-hint.delivery-pvz-note { margin: -8px 0 20px; }
.form-section { border: 0; padding: 0; margin: 0 0 28px; }
.form-legend { font-family: var(--font-display); font-weight: 600; font-size: 17px; padding: 0; margin-bottom: 16px; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 640px)  { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.label-optional { color: var(--text-muted); font-weight: 400; }
.form-input {
    width: 100%; min-height: 48px; padding: 12px 14px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); color: var(--text);
    transition: border-color var(--speed), box-shadow var(--speed);
}
.form-input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form-input:disabled { opacity: .55; }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding-right: 38px;
    background-image: var(--select-chevron);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

select.form-input::-ms-expand { display: none; }
.form-hint { color: var(--text-muted); font-size: 13px; margin: 6px 0 0; }
.form-hint-center { text-align: center; margin-top: 12px; }
.form-error { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
.consent-field { margin-top: 4px; }
.consent-label {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--text-muted); line-height: 1.5; cursor: pointer;
}
.consent-label input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.consent-label a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.consent-field.has-error .consent-label { color: var(--danger); }
.has-error .form-input { border-color: var(--danger); }

.radio-cards { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 640px)  { .radio-cards { grid-template-columns: repeat(3, 1fr); } }
.radio-card { display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card-body {
    display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 52px; padding: 10px 14px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); font-size: 14px;
    transition: border-color var(--speed), background var(--speed);
}
.radio-card input:checked + .radio-card-body {
    border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600;
}
.radio-card input:focus-visible + .radio-card-body { outline: 2px solid var(--accent); outline-offset: 2px; }

.select-compact { min-height: 44px; padding-block: 8px; }

.pickup-point-results {
    margin-top: 6px; max-height: 260px; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}

.pickup-point-results:not([hidden]) {
    animation: pickup-results-reveal 180ms var(--ease-out) both;
}
@keyframes pickup-results-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce)  {
    .pickup-point-results:not([hidden]) { animation: none; }
}
.pickup-point-option {
    display: block; width: 100%; text-align: left;
    padding: 10px 12px; font-size: 14px; color: var(--text);
    background: none; border: none; border-bottom: 1px solid var(--line);
    cursor: pointer;
}
.pickup-point-option:last-child { border-bottom: none; }
.pickup-point-option:hover { background: var(--surface-2); }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--text-muted); font-size: 14px; }
.auth-switch a { color: var(--accent); }

.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.account-layout { display: grid; gap: 32px; }
@media (min-width: 900px)  { .account-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.account-profile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.account-profile .block-title { margin-top: 0; }
.account-orders .block-title { margin-top: 0; }

.order-list { display: grid; gap: 10px; }
.order-row {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; text-decoration: none; color: var(--text);
    transition: border-color var(--speed);
}
@media (min-width: 640px)  { .order-row { grid-template-columns: auto 1fr auto auto; } }
.order-row:hover { border-color: var(--accent); }
.order-number { font-weight: 600; font-variant-numeric: tabular-nums; }
.order-date { color: var(--text-muted); font-size: 13px; }
.order-total { font-weight: 600; }

.status {
    display: inline-flex; align-items: center; padding: 4px 10px;
    border-radius: 999px; font-size: 12px; font-weight: 600;
    background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--line);
}
.status-new       { color: var(--warning); border-color: rgba(242,178,52,.4); }
.status-confirmed { color: #6FA8F5; border-color: rgba(111,168,245,.4); }
.status-verified  { color: #3EB8B0; border-color: rgba(62,184,176,.4); }
.status-shipped   { color: var(--accent); border-color: rgba(255,106,43,.4); }
.status-completed { color: var(--success); border-color: rgba(71,201,126,.4); }
.status-cancelled { color: var(--danger); border-color: rgba(240,86,79,.4); }
.status-pay-paid    { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.status-pay-pending { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 40%, transparent); }
button.status { font-family: inherit; cursor: pointer; }
button.status:disabled { cursor: wait; opacity: .6; }

.order-detail-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.order-detail-head .page-title { margin-bottom: 0; }
.order-detail-date { color: var(--text-muted); margin: 8px 0 24px; }
.order-detail-layout { display: grid; gap: 24px; }
@media (min-width: 900px)  { .order-detail-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.order-items { display: grid; gap: 12px; }

.success-card { max-width: 560px; margin-inline: auto; text-align: center; padding-block: 24px; }
.success-icon { margin-inline: auto; margin-bottom: 20px; }
.success-text { color: var(--text-muted); margin: 0 0 24px; }
.success-table { text-align: left; margin-bottom: 24px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.cancel-order-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cancel-order-form .form-label { margin: 0; font-weight: 400; color: var(--text-muted); }
.cancel-order-form .select-compact { width: auto; min-width: 200px; }
.success-card .cancel-order-form { justify-content: center; }

@keyframes success-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.success-card.is-just-confirmed .success-icon { animation: success-pop .5s var(--ease-out); }
@media (prefers-reduced-motion: reduce)  {
    .success-card.is-just-confirmed .success-icon { animation: none; }
}

.empty-state { text-align: center; padding-block: 48px; max-width: 480px; margin-inline: auto; }
.empty-compact { padding-block: 24px; }
.empty-code { font-family: var(--font-display); font-weight: 600; font-size: 64px; color: var(--accent); margin: 0; line-height: 1; }
.empty-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 12px 0; }
.empty-text { color: var(--text-muted); margin: 0 0 20px; }
.empty-text a { color: var(--accent); }

.page-builder { max-width: 820px; }
.pb-blocks { display: grid; gap: 28px; margin-top: 8px; }
.pb-heading { font-family: var(--font-display); font-weight: 600; font-size: var(--text-h2); letter-spacing: -0.01em; margin: 0; }
.pb-text { display: grid; gap: 14px; color: var(--text); font-size: 16px; line-height: 1.7; }
.pb-text p { margin: 0; }
.pb-image { margin: 0; }
.pb-image img { width: 100%; border-radius: var(--radius); }
.pb-image figcaption { margin-top: 10px; color: var(--text-muted); font-size: 14px; text-align: center; }
.pb-image-text { display: grid; gap: 24px; align-items: center; }
.pb-image-text-media { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.pb-image-text-body { display: grid; gap: 14px; color: var(--text); font-size: 16px; line-height: 1.7; }
.pb-image-text-body p { margin: 0; }
@media (min-width: 700px)  {
    .pb-image-text { grid-template-columns: 1fr 1fr; gap: 40px; }
    .pb-image-text.is-reverse .pb-image-text-media { order: 2; }
}
.pb-button { margin: 0; }
.pb-divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

.legal-page { max-width: 780px; }
.legal-updated { color: var(--text-faint); font-size: 13px; margin: 0 0 28px; }
.legal-body { display: grid; gap: 14px; color: var(--text); font-size: 15px; line-height: 1.7; }
.legal-h2 {
    font-family: var(--font-display); font-weight: 600; font-size: 19px;
    letter-spacing: -0.01em; margin: 20px 0 2px;
}
.legal-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-missing { color: var(--danger); }
.legal-requisites { border-collapse: collapse; width: 100%; font-size: 14px; margin-top: 4px; }
.legal-requisites th, .legal-requisites td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-requisites th { color: var(--text-muted); font-weight: 400; width: 40%; }

.error-404 { position: relative; overflow: hidden; min-height: calc(100vh - 300px); display: flex; align-items: center; }
.error-404-inner { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; text-align: center; padding-block: clamp(56px, 10vw, 120px); }
.error-404 .hero-texture { mask-image: radial-gradient(70% 90% at 50% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(70% 90% at 50% 40%, #000 0%, transparent 70%); }
.error-404-eyebrow {
    display: inline-block; margin: 0 0 20px;
    color: var(--accent); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.error-404-title {
    font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
    font-size: clamp(28px, 2rem + 3vw, 56px); line-height: 1.08; margin: 0 0 18px;
}
.error-404-text { color: var(--text-muted); font-size: 16px; max-width: 44ch; margin: 0 auto 32px; }
.error-404-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.alert { border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.global-alert { margin-top: 20px; }
.alert-error   { background: rgba(240,86,79,.12); border: 1px solid rgba(240,86,79,.4); color: var(--alert-error-text); }
.alert-success { background: rgba(71,201,126,.12); border: 1px solid rgba(71,201,126,.4); color: var(--alert-success-text); }
.alert-warning { background: rgba(242,178,52,.12); border: 1px solid rgba(242,178,52,.4); color: var(--alert-warning-text); }
.alert code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 13px; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 32px; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; padding: 0 8px;
    border-radius: var(--radius-sm); border: 1px solid var(--line);
    color: var(--text); text-decoration: none;
    transition: border-color var(--speed);
}
.page-link:hover { border-color: var(--accent); }
.page-link.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.page-link-edge { padding: 0 12px; font-size: 13px; color: var(--text-muted); }
.pagination-total { width: 100%; text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 6px; }

/* ============ Admin shell (сайдбар вместо повторяющегося нава на каждой странице) ============ */
.admin-shell { display: flex; align-items: stretch; min-height: 100vh; }
.admin-sidebar {
    width: 240px; flex: none; border-right: 1px solid var(--line); padding: 24px 16px;
    display: flex; flex-direction: column;
    /* fixed, не sticky — .admin-shell растягивается по высоте контента
       .admin-main (страницы с длинными списками/формами), и sticky у
       дочернего флекс-элемента с явной height:100vh вело себя ненадёжно
       на такой растянутой containing block: сайдбар прокручивался вместе
       со страницей вместо того, чтобы оставаться на месте. fixed этого
       не зависит вообще. */
    position: fixed; left: 0; top: 0; height: 100vh; overflow-y: auto;
    background: var(--surface);
}
.admin-brand { display: block; margin: 4px 0 24px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; }
.admin-sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-sidebar-link {
    padding: 10px 12px; border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 600; color: var(--text-muted); text-decoration: none;
    transition: background var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
}
@media (hover: hover) and (pointer: fine)  { .admin-sidebar-link:hover { background: var(--surface-2); color: var(--text); } }
.admin-sidebar-link.is-active { background: var(--accent); color: var(--accent-ink); }
.admin-sidebar-foot { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.admin-sidebar-foot a, .admin-sidebar-foot button {
    display: block; padding: 10px 12px; border-radius: var(--radius-sm);
    font-size: 13px; color: var(--text-muted); text-decoration: none;
    background: none; border: 0; text-align: left; width: 100%; cursor: pointer; font: inherit;
    transition: background var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
}
@media (hover: hover) and (pointer: fine)  {
    .admin-sidebar-foot a:hover, .admin-sidebar-foot button:hover { background: var(--surface-2); color: var(--text); }
}
/* margin-left вместо flex:1 «съедающего» соседа — sidebar теперь position:
   fixed (вне потока), .admin-shell больше не видит его как флекс-элемент
   с шириной, место под него нужно резервировать явно. */
.admin-main { flex: 1; min-width: 0; padding: 40px 48px; margin-left: 240px; }
@media (max-width: 900px)  {
    .admin-shell { flex-direction: column; }
    .admin-sidebar {
        position: static; height: auto; width: auto;
        flex-direction: row; flex-wrap: wrap; align-items: center;
        border-right: 0; border-bottom: 1px solid var(--line);
    }
    .admin-main { margin-left: 0; }
    .admin-brand { margin: 0 12px 0 0; }
    /* Пункты не переносятся построчно (обрезались бы по краю экрана без
       возможности дотянуться до остальных) — горизонтальный скролл в одну
       строку, тот же приём, что у .gallery-thumbs/.table-scroll. */
    .admin-sidebar-nav { flex-direction: row; flex-wrap: nowrap; flex: 1 1 100%; overflow-x: auto; order: 3; }
    .admin-sidebar-link { flex: none; }
    .admin-sidebar-foot { flex-direction: row; margin: 0 0 0 auto; padding-top: 0; border-top: 0; }
    .admin-main { padding: 20px 16px; }
}
@media (min-width: 640px)  { }
@media (hover: hover) and (pointer: fine)  { }
@media (min-width: 640px)  { }
.cell-muted { color: var(--text-muted); font-size: 13px; }
@media (hover: hover) and (pointer: fine)  { }
.order-items-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-width: 260px; }
.order-items-list a { color: var(--accent); }

.stock-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 6px 12px; margin-left: auto;
    color: var(--text-muted); text-decoration: none; font-size: 14px;
    border-radius: var(--radius-sm);
    transition: color var(--speed), transform var(--speed) var(--ease-out);
}
@media (hover: hover) and (pointer: fine)  { .stock-toggle:hover { color: var(--text); } }
.stock-toggle:active { transform: scale(0.97); }
.stock-toggle.is-active { color: var(--text); }
.stock-toggle-track {
    position: relative; width: 36px; height: 20px; flex: none;
    background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px;
    transition: background .25s var(--ease-out), border-color .25s var(--ease-out);
}
.stock-toggle-thumb {
    position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
    background: var(--text-muted); border-radius: 50%;
    transition: transform .25s var(--ease-out), background .25s var(--ease-out);
}
.stock-toggle.is-active .stock-toggle-track { background: var(--accent); border-color: var(--accent); }
.stock-toggle.is-active .stock-toggle-thumb { transform: translateX(16px); background: var(--accent-ink); }

.active-filters {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-bottom: 24px;
}
.filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 6px 12px 6px 16px;
    background: var(--surface-2); border: 1px solid var(--line-strong);
    border-radius: 999px; color: var(--text); text-decoration: none; font-size: 13px;
    transition: border-color var(--speed), background var(--speed), transform var(--speed) var(--ease-out);
}
@media (hover: hover) and (pointer: fine)  { .filter-chip:hover { border-color: var(--accent); background: var(--surface); } }
.filter-chip:active { transform: scale(0.97); }
.filter-chip span { color: var(--text-muted); font-size: 15px; line-height: 1; }
.filter-reset {
    display: inline-flex; align-items: center; min-height: 44px; padding: 6px 8px;
    color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600;
    transition: transform var(--speed) var(--ease-out);
}
.filter-reset:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine)  { .filter-reset:hover { color: var(--accent-hover); } }

.catalog-layout { display: block; }
@media (min-width: 900px)  {
    .catalog-layout.has-filters { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
}

.filters-trigger { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 900px)  { .filters-trigger { display: none; } }

.filters { display: grid; gap: 4px; margin-bottom: 24px; }
@media (min-width: 900px)  { .filters { position: sticky; top: 82px; margin-bottom: 0; } }

.filters-drawer-head, .filters-drawer-foot, .filters-close { display: none; }
.filters-scrim { display: none; }

@media (max-width: 899px)  {
    .filters-scrim {
        display: block;
        position: fixed; inset: 0; z-index: var(--z-drawer-scrim);
        background: rgba(0, 0, 0, .5);
        opacity: 0; pointer-events: none;
        transition: opacity var(--speed) var(--ease-out);
    }
    .filters {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
        max-height: min(82vh, 640px);
        margin-bottom: 0; gap: 0;
        background: var(--surface);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border: 1px solid var(--line-strong); border-bottom: 0;
        padding: 4px 20px calc(20px + env(safe-area-inset-bottom, 0));
        overflow-y: auto; overscroll-behavior: contain;
        transform: translateY(100%);
        transition: transform 320ms var(--ease-drawer), box-shadow 320ms var(--ease-drawer);
    }
    body.filters-open .filters-scrim { opacity: 1; pointer-events: auto; }
    body.filters-open .filters {
        transform: translateY(0);

        box-shadow: 0 -12px 32px rgba(0, 0, 0, .3);
    }
    body.filters-open { overflow: hidden; }

    .filters-drawer-head {
        display: flex; align-items: center; justify-content: space-between;
        position: sticky; top: 0; z-index: 1;
        margin: 0 -20px; padding: 16px 20px 12px;
        background: var(--surface); border-bottom: 1px solid var(--line);
    }
    .filters-drawer-head::before {

        content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
        width: 36px; height: 4px; border-radius: 999px; background: var(--line-strong);
    }
    .filters-drawer-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0; }
    .filters-close {
        display: flex; align-items: center; justify-content: center;

        width: 44px; height: 44px; border-radius: 50%; border: 0;
        background: var(--surface-2); color: var(--text-muted); cursor: pointer;
        transition: transform var(--speed) var(--ease-out);
    }
    .filters-close:active { transform: scale(0.9); }
    .filters-drawer-foot {
        display: flex; align-items: center; gap: 12px;
        position: sticky; bottom: 0; margin: 0 -20px;
        padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0));
        background: var(--surface); border-top: 1px solid var(--line);
    }
    .filters-drawer-foot .btn-primary { flex: 1; }

    .filters > .filter-group:last-of-type { border-bottom: 0; }
}

.filter-group { border-bottom: 1px solid var(--line); padding-block: 16px; }

.filters-drawer-head + .filter-group { padding-top: 0; }
.filter-group-summary {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 600; font-size: 14px;
    color: var(--text); min-height: 44px;
    transition: transform var(--speed) var(--ease-out);
}
.filter-group-summary:active { transform: scale(0.98); }
.filter-group-summary::-webkit-details-marker { display: none; }

.filter-group-icon { position: relative; flex: none; width: 14px; height: 14px; }
.filter-group-icon::before, .filter-group-icon::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 14px; height: 1.5px; background: var(--text-faint);
    transform: translate(-50%, -50%);
    transition: transform var(--speed) var(--ease-out);
}
.filter-group-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.filter-group[open] .filter-group-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.filter-values { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.filter-value {
    display: flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 4px 8px;
    color: var(--text-muted); text-decoration: none; font-size: 14px;
    border-radius: var(--radius-sm);
    transition: color var(--speed), background var(--speed), transform var(--speed) var(--ease-out);
}
@media (hover: hover) and (pointer: fine)  { .filter-value:hover { color: var(--text); background: var(--surface-2); } }
.filter-value:active { transform: scale(0.98); }
.filter-check {
    flex: none; width: 16px; height: 16px;
    border: 1.5px solid var(--line-strong); border-radius: 4px;
    transition: border-color var(--speed), background var(--speed);
}
.filter-value.is-checked { color: var(--text); font-weight: 600; }
.filter-value.is-checked .filter-check {
    background: var(--accent); border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}
.filter-value-name { flex: 1; min-width: 0; }
.filter-value-count { color: var(--text-faint); font-size: 12px; }
.filter-value.is-checked .filter-value-count { color: var(--text-muted); }

.filter-values:not(.is-expanded) li:nth-child(n+11) { display: none; }
.filter-values.is-expanded li:nth-child(n+11) {
    animation: filter-value-reveal 220ms var(--ease-out) both;
}

.filter-values.is-expanded li:nth-child(11) { animation-delay: 0ms; }
.filter-values.is-expanded li:nth-child(12) { animation-delay: 40ms; }
.filter-values.is-expanded li:nth-child(13) { animation-delay: 80ms; }
.filter-values.is-expanded li:nth-child(14) { animation-delay: 120ms; }
.filter-values.is-expanded li:nth-child(15) { animation-delay: 160ms; }
.filter-values.is-expanded li:nth-child(16) { animation-delay: 200ms; }
.filter-values.is-expanded li:nth-child(17) { animation-delay: 240ms; }
.filter-values.is-expanded li:nth-child(18) { animation-delay: 280ms; }
@keyframes filter-value-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce)  {
    .filter-values.is-expanded li:nth-child(n+11) { animation: none; }
}
.filter-values-toggle {
    display: inline-flex; align-items: center; min-height: 36px; margin-top: 4px; padding: 4px 8px;
    background: none; border: 0; cursor: pointer;
    color: var(--accent); font-size: 13px; font-weight: 600;
    transition: transform var(--speed) var(--ease-out);
}
@media (hover: hover) and (pointer: fine)  { .filter-values-toggle:hover { color: var(--accent-hover); } }
.filter-values-toggle:active { transform: scale(0.97); }

.catalog-content { min-width: 0; }
@media (min-width: 800px)  { }
@media (min-width: 640px)  { }

.theme-icon { position: relative; width: 20px; height: 20px; display: block; }
.theme-icon svg { position: absolute; inset: 0; transition: opacity .25s var(--ease-out), transform .35s var(--ease-out); }

.theme-toggle .icon-sun { opacity: 1; transform: none; }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(40deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(-40deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark)  {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { opacity: 0; transform: rotate(-40deg) scale(.6); }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { opacity: 1; transform: none; }
}

.toast {
    position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px);
    z-index: var(--z-toast); opacity: 0;
    background: var(--surface-2); border: 1px solid var(--line);
    color: var(--text); padding: 12px 20px; border-radius: var(--radius);
    box-shadow: var(--shadow); font-size: 14px; pointer-events: none;

    transition: opacity 120ms var(--ease-out), transform 120ms var(--ease-out);
    max-width: calc(100vw - 32px);
}
.toast.is-visible {
    opacity: 1; transform: translate(-50%, 0);
    transition: opacity var(--speed) var(--ease-out), transform var(--speed) var(--ease-out);
}
.toast.is-success { border-color: rgba(71,201,126,.5); }
.toast.is-error { border-color: rgba(240,86,79,.5); }
.admin-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.category-media-thumb-icon { width: 32px; height: 32px; }
.category-media-thumb-image { width: 64px; height: 64px; }

.product-rename-form { display: flex; gap: 6px; align-items: center; }
.product-rename-form .form-input { width: 260px; }
.pb-block {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px; background: var(--surface); margin: 0;
}
