﻿/* ========== ЦВЕТА ========== */
:root {
    --primary: #546e7a;
    --primary-dark: #37474f;
    --accent: #e65100;
    --bg: #e8eaed;
    --white: #ffffff;
    --text: #333333;
    --text-light: #888888;
    --radius: 12px;
    --radius-sm: 8px;
}

/* Сброс */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background: #e8eaed;
    line-height: 1.4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ========== ШАПКА ========== */
.header__top {
    background: var(--primary-dark);
    color: #b0bec5;
    padding: 8px 0;
    font-size: 11px;
}

.header__top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__contacts span { margin-right: 20px; }
.header__contacts svg { stroke: #b0bec5; vertical-align: middle; margin-right: 3px; }

.header__datetime {
    font-size: 11px;
    color: #b0bec5;
    white-space: nowrap;
}

.header__datetime svg {
    stroke: #b0bec5;
    vertical-align: middle;
    margin-right: 3px;
}

.header__main {
    background: var(--white);
    padding: 16px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.header__main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* Логотип */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    line-height: 1.2;
    flex-shrink: 0;
}

.logo__text {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.logo__sub {
    font-size: 10px;
    color: var(--text-light);
}

/* Строка поиска */
.header__search {
    background: var(--white);
    padding: 16px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.search-box {
    display: flex;
    max-width: 100%;
}

.search-box__input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #cfd8dc;
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 13px;
    background: #fafafa;
}

.search-box__input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.search-box__btn {
    padding: 16px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.search-box__btn:hover { background: var(--primary-dark); }
.search-box__btn svg { stroke: white; }

/* Действия в шапке */
.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #cfd8dc;
    border-radius: 50%;
    color: var(--text);
    transition: all 0.3s;
}

.user-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Корзина */
.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    padding: 12px 24px;
    border: 2px solid #cfd8dc;
    border-radius: var(--radius);
    transition: all 0.3s;
    text-decoration: none;
}

.cart-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cart-count {
    background: var(--accent);
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

/* Навигация */
.nav {
    background: var(--primary);
}

.nav__list { display: flex; list-style: none; }

.nav__list a {
    color: white;
    padding: 20px 30px;
    display: block;
    font-weight: 500;
    font-size: 13px;
    transition: background 0.3s;
}

.nav__list a:hover {
    background: var(--primary-dark);
    color: white;
}

.nav__dropdown { position: relative; }

.nav__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 100;
    list-style: none;
}

.nav__dropdown:hover .nav__submenu { display: block; }

.nav__submenu a {
    color: var(--text);
    padding: 16px 30px;
    border-bottom: 1px solid #eee;
}

.nav__submenu a:hover {
    background: #eceff1;
    color: var(--primary-dark);
}

/* ========== STICKY-ПАНЕЛЬ ========== */
.sticky-header {
    position: fixed;
    top: -120px;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: top 0.3s ease;
    padding: 8px 0;
}

.sticky-header--visible { top: 0; }

.sticky-header .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-header__logo {
    text-decoration: none;
    flex-shrink: 0;
}

.sticky-header__logo .logo__text {
    font-size: 18px;
    color: var(--primary);
}

.sticky-header__catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.sticky-header__catalog-btn:hover {
    background: var(--primary-dark);
    color: white;
}

.sticky-header__catalog-btn svg { stroke: white; }

.sticky-header__search {
    flex: 1;
    display: flex;
    min-width: 0;
}

.sticky-search__input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #cfd8dc;
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 12px;
    background: #fafafa;
    min-width: 0;
}

.sticky-search__input:focus {
    outline: none;
    border-color: var(--primary);
}

.sticky-search__btn {
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.sticky-search__btn svg { stroke: white; }
.sticky-search__btn:hover { background: var(--primary-dark); }

.cart-link--small {
    padding: 6px 10px;
    font-size: 12px;
    flex-shrink: 0;
}

/* Выпадающий каталог в sticky */
.sticky-catalog {
    display: none;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 10px 0;
}

.sticky-catalog--open { display: block; }

.sticky-catalog .container {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.sticky-catalog a {
    padding: 8px 16px;
    background: #eceff1;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text);
    text-decoration: none;
}

.sticky-catalog a:hover { background: #cfd8dc; }

/* ========== ГЛАВНЫЙ КОНТЕНТ ========== */
.main { padding: 30px 0; min-height: 300px; }

/* ========== БАННЕР ========== */
.hero {
    position: relative;
    background: var(--primary-dark);
    border-radius: var(--radius);
    margin-bottom: 30px;
    overflow: hidden;
    width: 100%;
    padding-bottom: 56.25%;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider__track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.hero-slider__slide {
    flex: 0 0 100%;
    height: 100%;
}

.hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    display: none;
}

.hero-slider__dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
}

.hero-slider__dot--active { background: white; }
.hero-slider__dot:hover { background: rgba(255,255,255,0.8); }

/* ========== КНОПКИ ========== */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.3s;
    color: white;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #bf360c; }

.btn-danger { background: #c62828; color: white; }
.btn-danger:hover { background: #b71c1c; }

.btn-gray { background: #546e7a; color: white; }
.btn-gray:hover { background: #37474f; }

.btn-favorite { background: none; color: #c62828; border: 2px solid #c62828; }
.btn-favorite:hover { background: #c62828; color: white; }

.btn-block { width: 100%; }
.btn-lg { padding: 20px 40px; font-size: 15px; }
a.btn { text-decoration: none; color: white; }

.btn svg, .cart-link svg { vertical-align: middle; flex-shrink: 0; }

/* ========== СЕКЦИИ ========== */
.section { margin-bottom: 60px; }

.section h2 {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--primary-dark);
    padding-bottom: 16px;
    border-bottom: 2px solid #cfd8dc;
}

/* ========== СЕТКА ПОПУЛЯРНЫХ ТОВАРОВ ========== */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.popular-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.popular-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.popular-card__image {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%;
    background: #eceff1;
    overflow: hidden;
}

.popular-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.popular-card__info {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.popular-card__name {
    font-size: 12px;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
    height: 30px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.popular-card__rating { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.popular-card__rating span { font-size: 11px; color: #888; }

.popular-card__prices { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.popular-card__old-price { font-size: 12px; color: #999; text-decoration: line-through; }
.popular-card__discount { font-size: 11px; color: #e65100; font-weight: 600; }

.popular-card__price {
    font-size: 15px;
    font-weight: bold;
    color: var(--accent);
    margin-top: auto;
}

/* ========== СЕТКА КАТЕГОРИЙ ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover { transform: translateY(-4px); }

.category-card svg {
    display: block;
    margin: 0 auto 20px;
    stroke: var(--primary);
}

.category-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 15px;
    display: block;
}

.category-card p {
    color: var(--text-light);
    font-size: 12px;
    display: block;
}

/* ========== ФИЛЬТРЫ ========== */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    background: white;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 12px; color: #888; white-space: nowrap; }

.form-input--small { width: 80px; padding: 8px 10px; }

/* ========== ХЛЕБНЫЕ КРОШКИ ========== */
.breadcrumbs { font-size: 12px; color: var(--text-light); margin-bottom: 24px; }
.breadcrumbs a { color: var(--primary); }

/* ========== КАРТОЧКА ТОВАРА ========== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-detail__image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eceff1;
    border-radius: var(--radius-sm);
    padding: 30px;
    min-height: 350px;
}

.product-detail__img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.product-detail__info h1 {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-detail__brand {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail__meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: var(--text-light);
}

.product-detail__rating { display: flex; align-items: center; gap: 6px; margin-bottom: 15px; }
.product-detail__rating span { font-size: 14px; font-weight: 600; }
.product-detail__reviews { color: var(--primary); font-size: 12px; }

.product-detail__price-block {
    background: #fff3e0;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-detail__price { font-size: 24px; font-weight: bold; color: var(--accent); }
.product-detail__stock { font-size: 14px; font-weight: 600; }

.product-detail__description { margin-bottom: 15px; }
.product-detail__description h3 { font-size: 15px; color: var(--primary-dark); margin-bottom: 8px; }
.product-detail__description p { color: #555; line-height: 1.5; font-size: 13px; }

.product-detail__actions {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-detail__quantity label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 12px;
}

.product-detail__delivery {
    margin-top: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; }

.product-detail__contacts {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #555;
}

.product-detail__contacts p { margin-bottom: 3px; }
.product-detail__contacts strong { color: var(--primary-dark); }

/* ========== КОЛИЧЕСТВО ========== */
.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #cfd8dc;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-input__btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #eceff1;
    font-size: 16px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.quantity-input__btn:hover { background: #cfd8dc; }

.quantity-input__field {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid #cfd8dc;
    border-right: 1px solid #cfd8dc;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* ========== СЕКЦИИ ТОВАРА ========== */
.product-section {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-section h2 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #cfd8dc;
}

/* ========== ТАБЛИЦА ХАРАКТЕРИСТИК ========== */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid #f0f0f0; }
.specs-table td { padding: 12px 0; font-size: 14px; }
.specs-table td:first-child { color: #888; width: 40%; font-weight: 500; }
.specs-table td:last-child { color: var(--text); }

/* ========== СОВЕТЫ ПО УСТАНОВКЕ ========== */
.install-tips {
    margin-top: 20px;
    padding: 20px;
    background: #fff3e0;
    border-radius: var(--radius-sm);
}
.install-tips h3 { color: var(--accent); margin-bottom: 10px; }

/* ========== ИНФОРМАЦИЯ О БРЕНДЕ ========== */
.brand-info {
    margin-top: 20px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: var(--radius-sm);
}
.brand-info h3 { color: #2e7d32; margin-bottom: 10px; }

/* ========== АНАЛОГИ ========== */
.analog-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.analog-list li { padding: 6px 12px; background: #f5f5f5; border-radius: 4px; font-size: 13px; }

/* ========== ГАЛЕРЕЯ ========== */
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }

.gallery__thumb {
    width: 50px;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.gallery__thumb:hover { border-color: var(--accent); transform: scale(1.05); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ========== СЕТКА ТОВАРОВ В КАТЕГОРИЯХ ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

.product-card__link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }

.product-card__image {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%;
    background: #eceff1;
    overflow: hidden;
}

.product-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.product-card__info { padding: 20px 24px; }
.product-card__name { font-size: 13px; margin-bottom: 5px; color: var(--text); height: 34px; overflow: hidden; }
.product-card__category { font-size: 11px; color: var(--text-light); margin-bottom: 6px; }
.product-card__rating { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.product-card__rating span { font-size: 11px; color: #888; }
.product-card__prices { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.product-card__old-price { font-size: 12px; color: #999; text-decoration: line-through; }
.product-card__discount { font-size: 11px; color: #e65100; font-weight: 600; }
.product-card__price { font-size: 16px; font-weight: bold; color: var(--accent); }
.product-card__actions { padding: 0 24px 20px; }

/* Наличие */
.in-stock { color: #2e7d32; font-size: 11px; font-weight: 600; }
.out-of-stock { color: #c62828; font-size: 11px; }

/* ========== ПУСТОЙ РЕЗУЛЬТАТ ========== */
.empty-result { text-align: center; padding: 40px 15px; background: var(--white); border-radius: var(--radius); }
.empty-result p { font-size: 16px; color: var(--text-light); margin-bottom: 15px; }

/* ========== ПАГИНАЦИЯ ========== */
.pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination__list { display: flex; list-style: none; gap: 8px; }

.pagination__list a {
    display: block;
    padding: 14px 24px;
    background: var(--white);
    border: 1px solid #cfd8dc;
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    text-decoration: none;
}

.pagination__list a:hover { background: #eceff1; border-color: var(--primary); color: var(--primary); }
.pagination__item--active a { background: var(--primary); color: white; border-color: var(--primary); }
.pagination__item--disabled a { color: #ccc; cursor: not-allowed; pointer-events: none; }

/* ========== КОРЗИНА ========== */
.cart-table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--primary-dark); color: white; padding: 20px 24px; text-align: left; font-size: 12px; }
.cart-table th:first-child { border-radius: var(--radius) 0 0 0; }
.cart-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.cart-table td { padding: 20px 24px; border-bottom: 1px solid #eee; vertical-align: middle; }

.cart-table__image { width: 60px; }
.cart-table__image img { width: 50px; height: 50px; object-fit: contain; border-radius: 4px; background: #f5f5f5; }

.cart-table__product a { color: var(--primary-dark); font-weight: 500; font-size: 15px; }
.cart-table__product a:hover { color: var(--accent); }
.cart-table__price, .cart-table__total { font-weight: 600; white-space: nowrap; }
.cart-table__total { font-size: 16px; color: var(--accent); }

/* Итого */
.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.cart-summary__actions { display: flex; gap: 10px; }
.cart-summary__total { text-align: right; }
.cart-summary__total span { display: block; color: #888; font-size: 14px; }
.cart-summary__total strong { font-size: 28px; color: var(--accent); }
.cart-checkout { text-align: right; }
.cart-checkout .btn-lg { padding: 16px 40px; font-size: 18px; }

/* ========== ОФОРМЛЕНИЕ ========== */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.checkbox-label a { color: var(--primary); text-decoration: underline; }
.checkbox-label a:hover { color: var(--primary-dark); }

/* ========== ЛАЙТБОКС ========== */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; }
.lightbox__overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); }
.lightbox__content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 90%; max-height: 90%; }

.lightbox__image { max-width: 100%; max-height: 80vh; object-fit: contain; display: block; transition: transform 0.3s; }
.lightbox__image--zoomed { transform: scale(1.5); cursor: zoom-out; }

.lightbox__btn {
    position: absolute;
    background: rgba(0,0,0,0.5);
    border: none;
    cursor: pointer;
    z-index: 2;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    pointer-events: auto;
}

.lightbox__btn:hover { background: rgba(0,0,0,0.8); }
.lightbox__close { top: -50px; right: 0; }
.lightbox__prev { left: -50px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: -50px; top: 50%; transform: translateY(-50%); }
.lightbox__zoom { bottom: -50px; right: 0; }

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2e7d32;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast--show { opacity: 1; }
.toast--hide { opacity: 0; }

/* ========== СТАТИЧЕСКИЕ СТРАНИЦЫ ========== */
.static-page {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    line-height: 1.8;
}

.static-page h1 { font-size: 28px; margin-bottom: 10px; color: var(--primary-dark); }
.static-page h2 { font-size: 20px; margin-top: 30px; margin-bottom: 15px; color: var(--primary-dark); border-bottom: 1px solid #e0e0e0; padding-bottom: 8px; }
.static-page p { margin-bottom: 15px; color: #555; }
.static-page ul { margin-bottom: 15px; padding-left: 25px; }
.static-page li { margin-bottom: 8px; color: #555; }

/* ========== ПОДВАЛ ========== */
.footer {
    background: var(--primary-dark);
    color: #90a4ae;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__col h4 { color: white; margin-bottom: 20px; font-size: 14px; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { color: #90a4ae; font-size: 13px; }
.footer__col a:hover { color: white; }

.footer__bottom {
    border-top: 1px solid #455a64;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

.footer__bottom p { margin-bottom: 5px; }

/* ========== АДАПТИВ ========== */
@media (max-width: 1024px) {
    .popular-grid { grid-template-columns: repeat(4, 1fr); }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .popular-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    
    .product-detail { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
    .product-detail__image { min-height: 200px; padding: 20px; }
    .product-detail__actions { flex-direction: column; align-items: stretch; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .sticky-header__catalog-btn span { display: none; }
    
    .nav__list { flex-wrap: wrap; justify-content: center; }
    .nav__list a { padding: 12px 16px; font-size: 12px; }
    .nav__dropdown { position: static; }
    .nav__submenu { position: static; box-shadow: none; border-radius: 0; min-width: 100%; background: var(--primary-dark); }
    .nav__submenu a { color: #b0bec5; padding: 10px 25px; border-bottom: 1px solid #455a64; }
    .nav__submenu a:hover { background: var(--primary); color: white; }
    
    .search-box__input { padding: 12px 14px; font-size: 13px; }
    .search-box__btn { padding: 12px 18px; }
    
    .lightbox__close { top: -40px; right: 10px; }
    .lightbox__prev { left: 10px; top: 50%; }
    .lightbox__next { right: 10px; top: 50%; }
    .lightbox__zoom { bottom: -40px; right: 10px; }
    .lightbox__btn { padding: 6px; background: rgba(0,0,0,0.7); }
}

@media (max-width: 480px) {
    .popular-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    
    .container { padding: 0 8px; }
    .sticky-header .container { gap: 6px; }
    .sticky-header__catalog-btn { padding: 8px 10px; }
    
    .popular-card__info { padding: 8px 10px 10px; }
    .popular-card__name { font-size: 10px; height: 24px; }
    .popular-card__price { font-size: 12px; }
    .popular-card__old-price { font-size: 10px; }
    .popular-card__discount { font-size: 10px; }
    .popular-card__rating span { font-size: 10px; }
    
    .product-card__info { padding: 12px 14px; }
    .product-card__name { font-size: 11px; }
    .product-card__price { font-size: 13px; }
    .product-card__old-price { font-size: 10px; }
    .product-card__discount { font-size: 10px; }
    
    .nav__list a { padding: 10px 12px; font-size: 11px; }
    .nav__submenu a { padding: 8px 20px; font-size: 11px; }
    
    .section h2 { font-size: 18px; }
    .footer__grid { gap: 20px; }
    
    .search-box { max-width: 100%; }
    .search-box__input { padding: 10px 12px; font-size: 12px; flex: 1; min-width: 0; }
    .search-box__btn { padding: 10px 14px; flex-shrink: 0; }
    
    .hero__overlay { max-width: 240px; padding: 12px 15px; width: 85%; border-radius: var(--radius-sm); }
    .hero__overlay h1 { font-size: 14px; margin-bottom: 5px; }
    .hero__overlay p { font-size: 10px; margin-bottom: 10px; }
    .hero__overlay .btn-lg { padding: 8px 16px; font-size: 11px; }
    .hero-slider__dots { bottom: 6px; gap: 5px; }
    .hero-slider__dot { width: 7px; height: 7px; }
}

.quickview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
}

.quickview__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.quickview__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.quickview__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
}

.quickview__close:hover { color: #333; }
.quickview__body { margin-top: 10px; }

.btn-quickview {
    background: none;
    color: #888;
    border: 1px solid #ddd;
    font-size: 11px;
    padding: 5px 10px;
}

.callback-link {
    color: #b0bec5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.callback-link:hover { color: white; }

.callback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}
.callback-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.callback-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    width: 380px;
    max-width: 90%;
}
.callback-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
}
.callback-modal__content h3 { margin-bottom: 10px; }
.callback-modal__content p { color: #888; font-size: 13px; margin-bottom: 20px; }

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}
.share-buttons span { font-size: 13px; color: #888; }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.8; }
.share-btn--telegram { background: #0088cc; }
.share-btn--whatsapp { background: #25D366; }
.share-btn--email { background: #546e7a; }