/**
 * ==============================================
 * ОСНОВНЫЕ СТИЛИ САЙТА - PREMIUM FRONTEND VERSION
 * Интернет-магазин тюнинга квадроциклов
 * ==============================================
 *
 * ВАЖНО:
 * Этот файл полностью задаёт визуальную систему публичной части сайта.
 *
 * Основные цели обновления:
 * 1. Сделать интерфейс дороже визуально
 * 2. Усилить иерархию блоков и типографики
 * 3. Добавить “воздух”, глубину и премиальные поверхности
 * 4. Сохранить performance / industrial характер бренда
 * 5. Не ломать существующую HTML-структуру
 *
 * Дизайн-направление:
 * - dark premium
 * - luxury industrial
 * - performance tech
 *
 * ==============================================
 */


/* ============================================== */
/* CSS-ПЕРЕМЕННЫЕ / ДИЗАЙН-СИСТЕМА */
/* ============================================== */
/**
 * Здесь задаются все ключевые токены интерфейса:
 * - фоновые поверхности
 * - акцентные цвета
 * - текстовые цвета
 * - тени
 * - радиусы
 * - отступы
 * - переходы
 *
 * Идея:
 * Поверхности должны выглядеть не "плоско тёмными",
 * а иметь разную глубину и дорогую фактуру.
 */
:root {
    /* БАЗОВЫЕ ФОНЫ */
    --bg-primary: #090909;
    --bg-secondary: #101010;
    --bg-tertiary: #151515;
    --bg-card: rgba(24, 24, 24, 0.92);
    --bg-card-solid: #181818;
    --bg-card-hover: rgba(30, 30, 30, 0.96);
    --bg-elevated: rgba(20, 20, 20, 0.96);
    --bg-input: #161616;
    --bg-header: rgba(9, 9, 9, 0.76);
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* АКЦЕНТЫ */
    --accent: #ff5a1f;
    --accent-hover: #ff733f;
    --accent-active: #e84b12;
    --accent-light: rgba(255, 90, 31, 0.10);
    --accent-light-strong: rgba(255, 90, 31, 0.18);
    --accent-border: rgba(255, 90, 31, 0.26);
    --accent-glow: rgba(255, 90, 31, 0.32);

    /* ДОП. АКЦЕНТНЫЕ ОТТЕНКИ */
    --gold-soft: #c7a66b;
    --gold-soft-light: rgba(199, 166, 107, 0.12);

    /* ТЕКСТ */
    --text-primary: #ffffff;
    --text-secondary: #b2b2b2;
    --text-tertiary: #8a8a8a;
    --text-muted: #666666;
    --text-soft: rgba(255, 255, 255, 0.72);

    /* ГРАНИЦЫ */
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.18);
    --border-accent: rgba(255, 90, 31, 0.28);

    /* СТАТУСЫ */
    --success: #00c853;
    --error: #ff1744;
    --warning: #ffd54f;
    --info: #29b6f6;

    /* БЕЙДЖИ */
    --badge-new: linear-gradient(135deg, #00c853, #00a845);
    --badge-hit: linear-gradient(135deg, #ff5a1f, #ff7b4b);
    --badge-sale: linear-gradient(135deg, #ff1744, #ff4d6d);

    /* ТЕНИ */
    --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.20);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.36);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.48);
    --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.56);
    --shadow-accent: 0 12px 34px rgba(255, 90, 31, 0.20);
    --shadow-accent-soft: 0 0 0 1px rgba(255, 90, 31, 0.08), 0 14px 36px rgba(255, 90, 31, 0.14);
    --shadow-card-hover: 0 26px 70px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(255, 90, 31, 0.14);

    /* РАДИУСЫ */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 999px;

    /* ТИПОГРАФИКА */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* ПЕРЕХОДЫ */
    --transition-fast: all 0.16s ease;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    /* ЛЭЙАУТ */
    --header-height: 76px;
    --header-height-scroll: 62px;
    --sidebar-width: 280px;
    --container-max: 1360px;
    --mobile-nav-height: 68px;

    /* БЛЮРЫ */
    --blur-soft: blur(12px);
    --blur-strong: blur(20px);
}


/* ============================================== */
/* RESET И БАЗОВАЯ ОСНОВА */
/* ============================================== */
/**
 * Сбрасываем браузерные различия и задаём базовую среду.
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(255, 90, 31, 0.06), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 20%),
        linear-gradient(180deg, #090909 0%, #0c0c0c 100%);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Тонкая фонова сетка для дорогого техно-ощущения */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    opacity: 0.22;
    z-index: -2;
}

/* Дополнительное акцентное свечение */
body::after {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 90, 31, 0.12), transparent 68%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.8;
}


/* ============================================== */
/* СКРОЛЛБАРЫ */
/* ============================================== */
/**
 * Скроллбар делаем тонким и фирменным.
 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-full);
    border: 2px solid #0f0f0f;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-hover), #ff8b63);
}

.filter-options::-webkit-scrollbar,
.sidebar-content::-webkit-scrollbar,
.catalog-sidebar::-webkit-scrollbar,
.cart-items::-webkit-scrollbar,
.summary-items::-webkit-scrollbar,
.search-overlay-results::-webkit-scrollbar {
    width: 5px;
}

.filter-options::-webkit-scrollbar-thumb,
.sidebar-content::-webkit-scrollbar-thumb,
.catalog-sidebar::-webkit-scrollbar-thumb,
.cart-items::-webkit-scrollbar-thumb,
.summary-items::-webkit-scrollbar-thumb,
.search-overlay-results::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-full);
}


/* ============================================== */
/* ТИПОГРАФИКА */
/* ============================================== */
/**
 * В premium-интерфейсе важна сильная иерархия заголовков.
 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.8rem, 4vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }

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

.text-center { text-align: center; }


/* ============================================== */
/* КОНТЕЙНЕРЫ И СЕКЦИИ */
/* ============================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-padding {
    padding: 110px 0;
}

.bg-dark {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.004)),
        rgba(15, 15, 15, 0.96);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}


/* ============================================== */
/* ЗАГОЛОВКИ СЕКЦИЙ */
/* ============================================== */
/**
 * Заголовки делаем более брендированными и дорогими.
 */
.section-title {
    position: relative;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    padding-bottom: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 110px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 56px;
    height: 3px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent), #ff8d67);
    border-radius: var(--radius-full);
    box-shadow: 0 0 18px rgba(255, 90, 31, 0.34);
}

.section-title.white {
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 1.08rem;
    max-width: 720px;
    margin: 0 auto 3.4rem;
    line-height: 1.8;
}

.about-title,
.contacts-title {
    position: relative;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 16px;
    color: var(--text-primary);
}

.about-title::after,
.contacts-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--accent), #ff9b75);
}

.contacts-title {
    text-align: center;
}

.contacts-title::after {
    left: 50%;
    transform: translateX(-50%);
}


/* ============================================== */
/* КНОПКИ */
/* ============================================== */
/**
 * Кнопки должны ощущаться дорогими и упругими.
 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    will-change: transform;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
    transform: translateX(-120%);
    transition: transform 0.8s ease;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, #ff7a49 100%);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(255, 90, 31, 0.28);
}

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

.btn-outline {
    color: #fff;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-strong);
    backdrop-filter: var(--blur-soft);
    -webkit-backdrop-filter: var(--blur-soft);
}

.btn-outline:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-soft);
}

.btn-large {
    min-height: 56px;
    padding: 16px 32px;
    font-size: 14px;
}

.btn-small {
    min-height: 40px;
    padding: 9px 18px;
    font-size: 11px;
}

.btn-sm {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 11px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ============================================== */
/* ХЕДЕР */
/* ============================================== */
/**
 * Хедер делаем более "брендовым" и стеклянным.
 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    transition: var(--transition);
}

.site-header::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.site-header.scrolled {
    height: var(--header-height-scroll);
    background: rgba(8, 8, 8, 0.88);
    box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-icon {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 8px rgba(255,90,31,0.18));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

.nav-link {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--accent), #ff8b61);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    width: 660px;
    padding: 28px;
    background: rgba(18, 18, 18, 0.94);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-xl);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
}

.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

.brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    padding: 12px 10px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.brand-link:hover {
    background: rgba(255,255,255,0.03);
    transform: translateY(-3px);
}

.brand-logo {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.brand-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Логотип в карточках на главной странице — крупнее */
.brand-logo.brand-logo-adaptive {
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 164px;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.brand-placeholder {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    backdrop-filter: blur(8px);
}

.header-icon:hover {
    color: var(--accent);
    transform: translateY(-2px);
    border-color: var(--border-accent);
    background: var(--accent-light);
    box-shadow: var(--shadow-accent-soft);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent), #ff8554);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(30%, -30%);
    box-shadow: 0 0 0 3px rgba(9,9,9,0.95);
}

.burger-menu {
    display: none;
    width: 24px;
    padding: 0;
    border: none;
    background: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: var(--transition-fast);
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* ============================================== */
/* МОБИЛЬНОЕ МЕНЮ */
/* ============================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 7, 0.97);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    width: 100%;
    max-width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 24px;
    box-sizing: border-box;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-item {
    margin-bottom: 4px;
}

.mobile-nav-item a,
.accordion-header {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: var(--transition-fast);
    display: block;
    padding: 7px 0;
}

.mobile-nav-item a:hover,
.accordion-header:hover {
    color: var(--accent);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.accordion-icon {
    transition: var(--transition-fast);
}

.accordion.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    padding-left: 0;
}

.accordion.active .accordion-content {
    max-height: 600px;
    margin-top: 4px;
}

/* Марки — 2 колонки */
.mobile-brands-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
}

.mobile-brand-link {
    display: block;
    color: var(--text-secondary) !important;
    font-size: 15px !important;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 5px 0;
    transition: var(--transition-fast);
}

.mobile-brand-link:hover {
    color: var(--accent) !important;
}

.mobile-contacts {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.mobile-phone,
.mobile-email {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 6px;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--mobile-nav-height);
    display: none;
    align-items: center;
    justify-content: space-around;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,255,255,0.07);
    z-index: 998;
    box-shadow: 0 -10px 28px rgba(0,0,0,0.30);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--accent);
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

.bottom-nav-badge {
    position: absolute;
    top: -3px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================== */
/* ХЛЕБНЫЕ КРОШКИ */
/* ============================================== */
.breadcrumbs {
    padding: 18px 0;
    margin-top: var(--header-height);
    background: rgba(14,14,14,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.breadcrumbs-list li {
    color: var(--text-tertiary);
    font-size: 13px;
}

.breadcrumbs-list li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: rgba(255,255,255,0.2);
}

.breadcrumbs-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.breadcrumbs-list span {
    color: #fff;
}


/* ============================================== */
/* HERO-СЕКЦИЯ */
/* ============================================== */
/**
 * Hero теперь должен ощущаться как титульный экран бренда.
 */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 90, 31, 0.12), transparent 28%),
        radial-gradient(circle at 80% 15%, rgba(255,255,255,0.06), transparent 18%),
        linear-gradient(135deg, #090909 0%, #111111 48%, #0b0b0b 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent 30%),
        linear-gradient(0deg, rgba(0,0,0,0.28), transparent 30%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.18;
    animation: float var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 14px rgba(255,90,31,0.32);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(18px, -22px); }
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    margin-bottom: 26px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hero-title {
    margin-bottom: 24px;
    line-height: 0.98;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-title-accent {
    color: var(--accent);
    text-shadow: 0 0 24px rgba(255,90,31,0.24);
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 42px;
    font-size: 1.18rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 30px;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 999px;
    position: relative;
}

.wheel {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 4px;
    height: 10px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: var(--accent);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 10px; opacity: 1; }
    100% { top: 28px; opacity: 0; }
}


/* ============================================== */
/* КАРТОЧКИ МАРОК */
/* ============================================== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 42px;
}

.brand-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.brand-card::before {
    content: '';
    position: absolute;
    inset: -20% auto auto -20%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,90,31,0.08), transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
}

.brand-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
}

.brand-card:hover::before {
    opacity: 1;
}

.brand-logo-wrapper {
    width: 108px;
    height: 108px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.brand-logo {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: var(--transition);
}

.brand-card:hover .brand-logo {
    transform: scale(1.04);
}

.brand-name {
    color: #fff;
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.brand-count {
    color: var(--text-tertiary);
    font-size: 13px;
}


/* ============================================== */
/* КАРТОЧКИ КАТЕГОРИЙ */
/* ============================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 42px;
}

.category-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-xs);
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    background:
        linear-gradient(180deg, rgba(255,90,31,0.06), rgba(255,255,255,0.01)),
        var(--bg-card-solid);
    box-shadow: var(--shadow-accent-soft);
}

.category-icon-wrapper {
    color: var(--text-secondary);
    margin-bottom: 16px;
    transition: var(--transition);
}

.category-card:hover .category-icon-wrapper {
    color: var(--accent);
    transform: translateY(-2px);
}

.category-name {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-count {
    color: var(--text-tertiary);
    font-size: 12px;
}


/* ============================================== */
/* КАРТОЧКИ ТОВАРОВ */
/* ============================================== */
/**
 * Один из самых важных блоков: карточки должны продавать.
 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 42px;
}

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

.product-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 7px 12px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.24);
}

.badge-hit { background: var(--badge-hit); }
.badge-new { background: var(--badge-new); }
.badge-sale { background: var(--badge-sale); }

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
        #111;
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.18));
    pointer-events: none;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    min-height: 48px;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

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

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
}

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

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

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

/* Бейдж «Цвет на выбор» — верхний правый угол карточки в списках */
.badge-paint {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 7px 11px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(9, 9, 9, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-accent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Ряд превью-цветов на карточке в списках */
.product-colors {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -4px 0 16px;
}

.product-colors .pc-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.product-colors .pc-more {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-left: 2px;
}


/* ============================================== */
/* ПРЕИМУЩЕСТВА */
/* ============================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 42px;
}

.feature-item {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
        transparent;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    background: rgba(255,255,255,0.02);
}

.feature-icon {
    color: var(--accent);
    margin-bottom: 18px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 14px;
}


/* ============================================== */
/* CTA-СЕКЦИЯ */
/* ============================================== */
.cta-section {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(255, 90, 31, 0.10), transparent 38%),
        linear-gradient(135deg, rgba(255, 90, 31, 0.05), rgba(255,255,255,0.01));
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    margin-bottom: 18px;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}


/* ============================================== */
/* КАТАЛОГ */
/* ============================================== */
.catalog-header {
    padding: 52px 0 42px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        rgba(15,15,15,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.catalog-title {
    margin-bottom: 8px;
}

.catalog-total {
    color: var(--text-secondary);
    font-size: 16px;
}

.catalog-section {
    padding: 46px 0 70px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

@media (min-width: 993px) {
    .catalog-sidebar {
        position: sticky;
        top: calc(var(--header-height) + 20px);
        height: fit-content;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
            var(--bg-card-solid);
        border: 1px solid var(--border);
        border-radius: 24px;
        box-shadow: var(--shadow-sm);
    }

    .sidebar-header {
        position: sticky;
        top: 0;
        background: rgba(24,24,24,0.96);
        backdrop-filter: blur(12px);
        z-index: 5;
    }
}

.catalog-sidebar {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
        var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title {
    margin: 0;
    font-size: 18px;
}

.sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-close:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.sidebar-content {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}

.filter-section {
    margin-bottom: 26px;
}

.filter-title {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

.filter-options {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 8px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.16);
    border-radius: 5px;
    position: relative;
    transition: var(--transition-fast);
}

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

.filter-checkbox input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    color: #fff;
    font-size: 14px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: #fff;
    transition: var(--transition);
}

.price-input:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        rgba(18,18,18,0.92);
    box-shadow: var(--shadow-xs);
}

.toolbar-left {
    display: flex;
    gap: 14px;
    align-items: center;
}

.filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.filter-toggle:hover {
    border-color: var(--border-accent);
    color: var(--accent);
}

.sort-select select {
    padding: 10px 40px 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-card-solid);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: 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='white'%3E%3Cpath d='M6 9L12 15L18 9' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active,
.view-btn:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-light);
}


/* ============================================== */
/* SKELETON */
/* ============================================== */
.skeleton-loader {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skeleton-card {
    background: var(--bg-card-solid);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(90deg, #1f1f1f 25%, #2b2b2b 50%, #1f1f1f 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

.skeleton-line {
    height: 18px;
    margin: 16px 16px 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f1f1f 25%, #2b2b2b 50%, #1f1f1f 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

.skeleton-line.short {
    width: 60%;
    margin-bottom: 16px;
}

@keyframes skeleton {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


/* ============================================== */
/* ПАГИНАЦИЯ */
/* ============================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 44px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: #fff;
    transition: var(--transition);
}

.pagination a:hover,
.pagination .active {
    background: linear-gradient(135deg, var(--accent), #ff8554);
    border-color: transparent;
    box-shadow: var(--shadow-accent);
}


/* ============================================== */
/* КОРЗИНА */
/* ============================================== */
.cart-header,
.checkout-header {
    padding: 46px 0 38px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        rgba(14,14,14,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.cart-title,
.checkout-title {
    margin-bottom: 8px;
}

.cart-count {
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 700;
}

.cart-section,
.checkout-section {
    padding: 44px 0 72px;
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 30px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 680px;
    overflow-y: auto;
    padding-right: 6px;
}

.cart-item {
    display: grid;
    grid-template-columns: 124px 1fr;
    gap: 20px;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
        var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 22px;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.cart-item:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-accent-soft);
}

.cart-item-image {
    width: 124px;
    height: 124px;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
}

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

.cart-item-title {
    font-size: 18px;
    margin: 0;
}

.cart-item-title a {
    color: #fff;
    text-decoration: none;
}

.cart-item-title a:hover {
    color: var(--accent);
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 14px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cart-item-remove {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #fff;
    background: rgba(255, 23, 68, 0.15);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover:not(:disabled) {
    background: var(--accent);
}

.quantity-input {
    width: 48px;
    border: none;
    background: transparent;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

.cart-item-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
}

.cart-summary,
.checkout-summary {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.summary-card,
.checkout-form {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
        var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.summary-title {
    font-size: 20px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.summary-items {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 15px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 22px;
    font-weight: 800;
}

.summary-total span:last-child {
    color: var(--accent);
}

.continue-shopping-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.continue-shopping-link:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-light);
}

.empty-cart {
    max-width: 560px;
    margin: 0 auto;
    padding: 78px 26px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
        var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}

.empty-cart-icon {
    margin-bottom: 26px;
    color: rgba(255,255,255,0.25);
}

.empty-cart-title {
    margin-bottom: 10px;
}

.empty-cart-text {
    margin-bottom: 28px;
}


/* ============================================== */
/* ФОРМЫ / CHECKOUT */
/* ============================================== */
.checkout-block {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.checkout-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 20px;
}

.block-title svg {
    color: var(--accent);
}

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

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.required {
    color: var(--accent);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: #fff;
    font-size: 15px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--border-hover);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 4px var(--accent-light);
    background: #1a1a1a;
}

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

.form-error {
    margin-top: 6px;
    font-size: 12px;
    color: var(--error);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.radio-label:hover {
    border-color: var(--border-accent);
    background: var(--accent-light);
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.18);
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.radio-label input:checked + .radio-custom {
    border-color: var(--accent);
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.radio-text strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
}

.radio-text small {
    color: var(--text-secondary);
}

.summary-agreement {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.summary-agreement a {
    color: var(--accent);
    text-decoration: none;
}

.consent-group {
    margin-bottom: 16px;
}

.consent-checkbox {
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
}

.consent-checkbox .checkbox-custom {
    flex-shrink: 0;
    margin-top: 2px;
}

.consent-text {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    line-height: 1.5;
}

.consent-link {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

.consent-link:hover {
    text-decoration: underline;
}

.checkout-submit-mobile {
    display: none;
    margin-top: 20px;
}


/* ============================================== */
/* ПОИСКОВЫЙ ОВЕРЛЕЙ */
/* ============================================== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8,8,8,0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.search-overlay-content {
    width: 100%;
    max-width: 680px;
    padding: 36px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        rgba(18,18,18,0.96);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 28px;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(16px);
    transition: var(--transition-slow);
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.search-overlay-close:hover {
    color: var(--accent);
    background: var(--accent-light);
    transform: rotate(90deg);
}

.search-overlay-title {
    text-align: center;
    margin-bottom: 28px;
    font-size: 28px;
}

.search-input-wrapper {
    margin-bottom: 24px;
}

.search-overlay-input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: #fff;
    font-size: 18px;
    transition: var(--transition);
}

.search-overlay-input:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.search-overlay-results {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
}

.search-result-item:hover {
    transform: translateX(4px);
    border-color: var(--border-accent);
    background: var(--accent-light);
}

.search-result-image {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.search-result-name mark {
    background: var(--accent);
    color: #fff;
    padding: 2px 5px;
    border-radius: 5px;
}

.search-result-meta {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 4px;
}

.search-result-price {
    color: var(--accent);
    font-weight: 800;
}

.search-results-footer {
    text-align: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.search-loading,
.search-error,
.search-no-results {
    text-align: center;
    color: var(--text-secondary);
    padding: 28px;
}


/* ============================================== */
/* ФУТЕР */
/* ============================================== */
.site-footer {
    margin-top: auto;
    padding: 72px 0 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        #0b0b0b;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr;
    gap: 28px;
    margin-bottom: 36px;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-legal li {
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.footer-legal li:last-child {
    border-bottom: none;
}

.footer-legal a {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 7px 0;
    color: var(--text-secondary) !important;
    font-size: 14px !important;
    line-height: 1.35;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--accent) !important;
    padding-left: 0 !important;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-about {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-title {
    font-size: 15px;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links,
.footer-contacts {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.footer-contacts a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

.footer-bottom {
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 12px;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-light);
    transform: translateY(-2px);
}


/* ============================================== */
/* КНОПКА "НАВЕРХ" */
/* ============================================== */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff7c4b);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-accent);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
}


/* ============================================== */
/* TOAST */
/* ============================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 320px;
    padding: 14px 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        rgba(20,20,20,0.96);
    border-left: 4px solid;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease forwards;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--error); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--info); }

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: #fff;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}


/* ============================================== */
/* АНИМАЦИИ */
/* ============================================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================== */
/* МЕЛКИЕ ПОЛЕЗНЫЕ УТИЛИТЫ */
/* ============================================== */
.no-products,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 54px 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 24px;
    color: var(--text-secondary);
}

.no-products h3,
.error-message h3 {
    color: #fff;
    margin-top: 10px;
}

/* ==============================================
   PRODUCT IMAGES LOADING POLISH
   Версия: 1.0.0
   ============================================== */

.product-image {
    opacity: 0;
    transition: opacity 0.28s ease;
}

.product-image.is-loaded {
    opacity: 1;
}

/* Слой для плавной смены картинок при наведении (hover-галерея) */
.pc-hover-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}
.product-card:hover .pc-hover-layer {
    transform: scale(1.08);
}
.product-card.pc-clickable .product-image-wrapper {
    cursor: pointer;
}

.product-image-wrapper {
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        rgba(255,255,255,0.01);
}

/* Стили для куки-баннера */
.cookie-banner {
    position: fixed;         /* Фиксирует элемент относительно экрана */
    bottom: 20px;            /* Отступ от нижнего края экрана */
    left: 50%;               /* Центрирование по горизонтали */
    transform: translateX(-50%); /* Точное выравнивание по центру */
    width: 90%;              /* Ширина на мобильных устройствах */
    max-width: 800px;        /* Максимальная ширина на десктопах */
    background: #ffffff;     /* Цвет фона */
    padding: 20px;           /* Внутренние отступы */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15); /* Тень, чтобы баннер "летал" над контентом */
    border-radius: 12px;     /* Закругление углов */
    z-index: 10000;          /* Чтобы баннер был поверх всех элементов */
    display: flex;           /* Flexbox для выравнивания текста и кнопок */
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Анимация появления/исчезновения */
}

/* Стили при скрытии (используется в JS) */
.cookie-banner.hide {
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
}

/* Текст внутри баннера */
.cookie-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* Контейнер для кнопок */
.cookie-buttons {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column; /* Текст и кнопки друг под другом */
        bottom: 0;              /* Прижимаем к самому низу на мобилках */
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        border-radius: 12px 12px 0 0; /* Закругляем только верхние углы */
    }
    
    .cookie-banner.hide {
        transform: translateY(100%);
    }

    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons button {
        flex: 1; /* Кнопки на всю ширину */
    }
}