/* ----- ОБНУЛЕНИЕ И ПЕРЕМЕННЫЕ ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-yellow: #2b6cb0;
    --dark-bg: #111111;
    --text-dark: #222222;
    --text-light: #666666;
    --text-muted: #999999;
    --border-light: #eaeaea;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    
    /* Новые переменные из шаблона */
    --blue: #2b6cb0;
    --blue-dark: #1e4a7a;
    --blue-light: #e6f0ff;
    --border: #e5e7eb;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --text-gray: #555;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Убираем стандартную обводку и задаём свою */
input:focus,
select:focus,
button:focus,
a:focus,
textarea:focus {
    outline: 1px solid #e6e6e6;
    outline-offset: 1px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== НОВАЯ ШАПКА (HEADER) ИЗ ПРИМЕРА ===== */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top row – contacts */
.header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 500;
}

.header-top a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color .2s;
}

.header-top a:hover { color: var(--blue); }

/* Bottom row – logo + search + nav icons */
.header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    position: relative;
}

/* LOGO - теперь с правильным позиционированием */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    flex-shrink: 0;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 26px;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}

.ak {
    background: linear-gradient(to bottom, #4da8ff, #003f8c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.spares {
    color: #000000;
}

.logo-slogan {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    margin-top: 2px;
}

.logo-slogan::before,
.logo-slogan::after {
    content: '';
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--blue);
}

/* SEARCH BAR */
.search-wrap {
    flex: 1;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
    background: var(--white);
    min-width: 0;
    max-width: 500px;
    margin: 0 auto;
}

.search-wrap:focus-within {
    border-color: #999999;
}

.search-cat-select {
    padding: 0 14px;
    border: none;
    border-right: 1px solid var(--border);
 
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    min-width: 160px;
    max-width: 200px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.search-cat-select:hover { background-color:var(--bg-light); }

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: transparent;
    outline: none;
    min-width: 0;
}

.search-input::placeholder { color: var(--text-muted); }

.search-btn {
    padding: 0 20px;
    background: #c9e1f7;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}

.search-btn:hover { background: var(--blue); }

.search-btn svg { width: 18px; height: 18px; stroke: white; }

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hdr-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.hdr-btn:hover { background: var(--blue-light); color: var(--blue); }

.hdr-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; flex-shrink: 0; }

.hdr-btn-label { display: block; }

.badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: var(--blue);
    color: white;
    border-radius: 20px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.hdr-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    margin: 0 4px;
}

/* MOBILE TOGGLE - теперь слева */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    flex-direction: column;
    gap: 5px;
    order: -1; /* Это заставит гамбургер быть первым */
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: .3s;
}

.mobile-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* MOBILE NAV DRAWER */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s, color .15s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--blue-light); color: var(--blue); }

/* Mobile search */
.mobile-search {
    display: none;
    padding: 12px 16px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.mobile-search .search-wrap {
    flex: 1;
}

/* ===== МЕНЮ БАР (ИСПРАВЛЕНО) ===== */
.menu-bar {
    background: #f7f9fc;
    border-bottom: 2px solid var(--border);
    position: relative;
    width: 100%;
    z-index: 990;
}

.menu-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 24px;
}

.catalog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--blue);
    color: white;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.catalog-btn:hover { background: var(--blue-dark); }

.catalog-btn svg { width: 18px; height: 18px; stroke: white; }

.menu-links {
    display: flex;
    align-items: center;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.menu-links::-webkit-scrollbar { display: none; }

.menu-links a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}

.menu-links a:hover,
.menu-links a.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* ===== MEGA MENU (ИСПРАВЛЕНО) ===== */
.mega-wrap {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-top: 2px solid var(--blue);
    padding: 30px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .25s ease;
    z-index: 999;
}

.mega-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-inner {
    max-width: 100%; /* Растягиваем на всю ширину */
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
    width: 100%;
}

/* Для больших экранов - фиксированное количество колонок */
@media (min-width: 1400px) {
    .mega-inner {
        grid-template-columns: repeat(6, 1fr);
        max-width: 1400px; /* Опционально: ограничиваем максимальную ширину */
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .mega-inner {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .mega-inner {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .mega-inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .mega-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 16px;
    }
    
    .mega-menu {
        padding: 20px 0;
    }
}

/* Стили для колонок - убираем обрезание текста */
.mega-col {
    min-width: 0;
}

.mega-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue-light);
    /* Убираем обрезание текста */
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.mega-col a {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    text-decoration: none;
    padding: 6px 0;
    transition: color .15s, padding-left .15s;
    /* Позволяем тексту переноситься */
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

.mega-col a:hover {
    color: var(--blue);
    padding-left: 5px;
}

.mega-col .more-link,
.mega-col .view-all-link {
    color: var(--blue);
    font-weight: 600;
    margin-top: 8px;
    font-size: 12px;
}

/* Для длинных названий */
.mega-col a br {
    display: none;
}

/* Дополнительные стили для лучшего отображения */
.mega-col {
    display: flex;
    flex-direction: column;
}

.mega-col a:last-child {
    margin-top: auto;
}
/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .hdr-btn-label { display: none; }
    .logo-title { font-size: 22px; }
}

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

    .header-bottom {
        padding: 10px 0;
        gap: 12px;
        justify-content: space-between;
    }

    /* Поиск скрываем на мобильных */
    .search-wrap {
        display: none;
    }

    /* Гамбургер показываем */
    .mobile-toggle { 
        display: flex;
        order: -1; /* Гамбургер первый */
    }
    
    /* Логотип по центру */
    .logo {
        order: 0;
        margin: 0 auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Иконки справа */
    .header-actions {
        order: 1;
        margin-left: auto;
    }
    
    .hdr-btn-label { display: none; }
    .header-actions .hdr-divider { display: none; }
    
    .menu-bar { display: none; }
    .mobile-search { display: flex; }
}

@media (max-width: 640px) {
    .header-inner { padding: 0 16px; }
    .logo-title { font-size: 18px; }
    .logo img { max-height: 35px; }
    .logo-slogan { display: none; }
    .logo { gap: 8px; }
}

@media (max-width: 480px) {
    .logo-title { font-size: 16px; }
    .logo img { max-height: 30px; }
    .hdr-btn { padding: 6px 10px; }
    .hdr-btn svg { width: 18px; height: 18px; }
}

@media (max-width: 768px) {
    .mega-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .mega-menu {
        padding: 20px 0;
    }
}

 
/* ----- КАТЕГОРИИ (карточки как в шаблоне) ----- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 60px 0;
}

.category-card {
    background: var(--bg-light);
    padding: 40px 25px;
    text-align: center;
    text-decoration: none;
    border-radius: 0; /* Прямые углы как в шаблоне */
    transition: all 0.3s;
    border: 1px solid transparent;
}

.category-card:hover {
    background: var(--white);
    border-color: var(--primary-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.category-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--text-dark);
    stroke-width: 1.5;
    transition: stroke 0.3s;
}
.category-card:hover .category-icon svg {
    stroke: var(--primary-yellow);
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.category-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ----- ЗАГОЛОВКИ СЕКЦИЙ ----- */
.section-title {
    font-size: 32px;
    font-weight: 600;
    margin: 40px 0;
    color: var(--dark-gray);
    text-align: center;
    /* если нужен flex для ссылки "Смотреть всё" — используйте другой подход, например, отдельный элемент */
}
.section-title a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}
.section-title a:hover {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
}

/* ----- СЕТКА ТОВАРОВ ----- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.product-card {
    background: var(--white);
    border: 0px solid var(--border-light);
    padding: 25px 20px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-color: transparent;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-yellow);
    color: var(--text-dark);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 2;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s;
}
.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    min-height: 48px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: auto;
    margin-bottom: 20px;
}

.buy-button {
    width: 100%;
    padding: 12px;
    background: var(--blue);
    border: 1px solid  var(--blue);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 5px;
    margin-top: 5px;
}
.buy-button:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: scale(1.02);
}
/* ----- БРЕНДЫ (как в шаблоне) ----- */
.brands-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0 50px;
    padding: 30px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.brands-wrapper img {
    height: 35px;
    opacity: 0.5;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.brands-wrapper img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ----- ПРЕИМУЩЕСТВА ----- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 60px 0;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--text-dark);
    stroke-width: 1.2;
    fill: none;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}


    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        margin: 0;
    }
    nav.active { display: flex; }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { padding-right: 0; }
    .hero-description { margin: 0 auto 35px; }
    .hero-image img { margin: 0 auto; }

    .categories-grid, .product-grid, .features-grid, .footer-columns {
        grid-template-columns: 1fr;
    }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-title { font-size: 36px; }
    .product-grid { gap: 15px; }
}
/* ----- КОРЗИНА ----- */
.cart-icon {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

 

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-yellow);
    color: white;
    border-radius: 20px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
    transition: all 0.3s ease;
    animation: breathe 2s ease-in-out infinite;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart-badge.has-items {
    border-radius: 50%;
    width: 20px;
    padding: 0;
}

@keyframes breathe {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
        background: #2b6cb0; /* ИЗМЕНЕНО: было #FFD54F, стало #2b6cb0 */
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cart-badge:hover {
    animation: none;
    transform: scale(1.1) !important;
}

/* ----- ГЕРОЙ СЛАЙДЕР ----- */
/* ===== ГЕРОЙ СЛАЙДЕР ===== */
.hero-slider {
    position: relative;
    width: 100%;
    background: #000; /* Фон на случай загрузки */
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 40%; /* Соотношение сторон 40% от ширины (например 2.5:1) */
    /* Если хотите другое соотношение: 
       56.25% - 16:9
       75% - 4:3
       40% - 2.5:1 (широкий)
    */
}

.slider-wrapper .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение покрывает весь контейнер, но может обрезаться */
    /* Или используйте object-fit: contain если хотите видеть всё изображение */
    display: none;
}

.slide.active {
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    font-size: 28px;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
    text-align: center;
    line-height: 1;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.slider-arrow.left { 
    left: 20px; 
}

.slider-arrow.right { 
    right: 20px; 
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.slider-dots span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots span.active {
    background: var(--primary-yellow);
    transform: scale(1.3);
}

/* Адаптивность для разных экранов */
@media (max-width: 1200px) {
    .slider-wrapper {
        padding-bottom: 45%; /* Немного выше на больших планшетах */
    }
}

@media (max-width: 768px) {
    .slider-wrapper {
        padding-bottom: 56.25%; /* 16:9 на планшетах и телефонах */
    }
    
    .slider-arrow {
        font-size: 20px;
        padding: 8px 12px;
    }
    
    .slider-arrow.left { 
        left: 10px; 
    }
    
    .slider-arrow.right { 
        right: 10px; 
    }
    
    .slider-dots {
        bottom: 12px;
        gap: 8px;
    }
    
    .slider-dots span {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .slider-wrapper {
        padding-bottom: 75%; /* 4:3 на маленьких телефонах, чтобы было больше контента */
    }
    
    .slider-arrow {
        font-size: 16px;
        padding: 6px 10px;
    }
}
/* ----- КАТАЛОГ (общие стили) ----- */
.catalog-section {
    padding:  0px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin: 40px 0;
    color: var(--dark-gray);
}

.catalog-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab {
    padding: 12px 30px;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 5px;
}

.tab.active,
.tab:hover {
    background: var(--primary-yellow);
    color: white;
}

/* ----- ФИЛЬТРЫ И ПОИСК ----- */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;  /* центрирует группу */
    gap: 12px;
    margin-bottom: 10px;
    position: relative;
}
.filter-select {
    width: 200px;   /* или auto, если хотите чтобы ширина определялась содержимым */
    flex: 0 0 auto;
}
.filter-select {
    padding: 11px 20px;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 200px;
}

.filter-select:hover {
    border-color: var(--primary-yellow);
}

.search-input {
    width: 250px;   /* нужная вам ширина */
    flex: 0 0 auto;
    padding: 12px 20px;
   
    border-radius: 5px;
    font-size: 14px;
}
@media (max-width: 768px) {
    .search-input {
        width: 100%;            /* на мобильных лучше на всю ширину */
        min-width: auto;
    }
}
.search-input:focus {
    outline: none;
    border-color: #2b6cb0;
}

.search-btn {
    background: #c9e1f7;
    border: none;
    padding: 12px 16px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex: 0 0 auto;
}

.search-btn svg {
    stroke: white;
}

.search-btn:hover {
    background: var(--blue);
}

/* ----- РЕЗУЛЬТАТЫ ПОИСКА ----- */
.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: calc(100% - 220px);
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 5px;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
}

.search-result-item:hover {
    background: var(--light-gray);
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 5px;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.search-result-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
}

.search-result-price span {
    font-weight: normal;
    color: #999;
    font-size: 14px;
}

.search-result-category {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 2px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-gray);
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-gray);
}

.search-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid var(--border-gray);
    border-top-color: var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ----- СЕТКА ТОВАРОВ ----- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
     margin-top: 20px;
}

.product-card {
    background: white;
    border: 0px solid var(--border-gray);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-yellow);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.product-badge.hot {
    background: #FF5722;
}

.product-card a {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
    min-height: 48px; 
}

.product-description {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.currency-label {
    font-weight: normal;
    color: #999;
    margin-left: 2px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-top: auto;
}

.buy-button {
    width: 100%;
    padding: 12px;
    background: var(--primary-yellow);
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    margin-top: 15px;
}

.buy-button:hover {
    background: #1e4a7a; /* ИЗМЕНЕНО: было #FFA000, стало #1e4a7a (более темный синий) */
    transform: scale(1.05);
}

.view-all {
    text-align: center;
    margin: 40px 0;
}

.view-all a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    transition: all 0.3s;
}

.view-all a:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

/* ----- БЛОК БРЕНДОВ ----- */
.brands-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 25px;
}

.brands-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 20px;
    
}

.brands-scroll {
    display: flex;
    gap: 50px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 50px;
    scrollbar-width: none;
}

.brands-scroll::-webkit-scrollbar {
    display: none;
}

.brands-scroll img {
    height: 45px;
    opacity: 0.8;
    transition: 0.3s;
    flex-shrink: 0;
    cursor: pointer;
}

.brands-scroll img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.brands-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--blue); 
    font-size: 32px;
    width: auto;
    height: auto;
    cursor: pointer;
    z-index: 10;
    transition: color 0.8s;
    padding: 10px;
     opacity: 1;  
}

.brands-arrow:hover {
    color: var(--blue);
    background: transparent;
}

.brands-arrow.left { left: 0; }
.brands-arrow.right { right: 0; }

.brands-seo-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-gray);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    padding: 0px 0;
}

/* ----- ПРЕИМУЩЕСТВА (features) ----- */
.features-section {
    background: var(--light-gray);
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--primary-yellow);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.feature-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ----- SEO КАТЕГОРИИ ----- */
.seo-categories {
    background: #fff;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.seo-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.seo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: var(--primary-yellow);
}

.seo-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.seo-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.seo-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.seo-card a {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-yellow);
    font-size: 14px;
    margin-top: auto;
}

.seo-card a:hover {
    text-decoration: underline;
}

 

.footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Верхняя часть футера */
.footer-top {
    margin-bottom: 50px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Заголовки колонок */
.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #2b6cb0, #1e4a7a);
    border-radius: 2px;
}

/* Списки */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 13px;
    display: inline-block;
    position: relative;
}

.footer-list a:hover {
    color: #2b6cb0;
    transform: translateX(3px);
}

/* Контакты */
.footer-contacts {
    margin-bottom: 25px;
}

.footer-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.25s ease;
}

.footer-contacts a:hover {
    color: #2b6cb0;
}

/* Социальные сети и мессенджеры */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.footer-social a:hover {
    background: #2b6cb0;
    color: #ffffff;
    border-color: #2b6cb0;
    transform: translateY(-2px);
}

/* Форма обратной связи */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    transition: all 0.25s ease;
}

.footer-form input:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: #2b6cb0;
    background: rgba(255,255,255,0.08);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: #6b7280;
}

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

.footer-form button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #2b6cb0, #1e4a7a);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Montserrat', sans-serif;
}

.footer-form button:hover {
    background: linear-gradient(135deg, #1e4a7a, #2b6cb0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43,108,176,0.3);
}

/* SEO текст */
.footer-seo-text {
    margin: 40px 0 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    line-height: 1.6;
    color: #9ca3af;
}

.footer-seo-text p {
    margin-bottom: 15px;
}

.footer-seo-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* Нижняя часть футера */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 12px;
    color: #9ca3af;
}

.footer-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-copyright {
    font-size: 12px;
    color: #6b7280;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer .container {
        padding: 0 20px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .footer-social a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .footer-benefits {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-copyright {
        order: 2;
    }
    
    .footer-benefits {
        order: 1;
    }
}

@media (max-width: 480px) {
    .footer-title {
        font-size: 15px;
    }
    
    .footer-list a {
        font-size: 12px;
    }
    
    .footer-contacts a {
        font-size: 13px;
    }
    
    .footer-form input,
    .footer-form textarea,
    .footer-form button {
        font-size: 12px;
    }
    
    .footer-seo-text {
        font-size: 11px;
    }
    
    .footer-benefits {
        font-size: 11px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
}

/* Анимация для элементов при наведении */
.footer-list a,
.footer-social a,
.footer-contacts a,
.footer-form button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Стили для ссылок с иконками (если добавите иконки) */
.footer-contacts a::before {
    display: none;
}

/* Стили для блока преимуществ в нижней части */
.footer-benefits span {
    position: relative;
    padding-left: 0;
}

/* Эффект свечения для кнопки формы */
.footer-form button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    .header-bottom-row {
        display: flex;
        justify-content: space-between;
    }

    .logo { order: 1; }
    .cart-icon { order: 2; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        order: 4;
    }

    nav.active {
        display: flex;
    }

    .hero-slider {
        height: 45vh;
    }

    .slider-arrow {
        font-size: 22px;
        padding: 8px 12px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .catalog-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-select {
        width: 100%;
    }

   

    .search-results {
        width: 100%;
        right: 0;
    }

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

    .footer-columns,
    .cities-grid {
        grid-template-columns: 1fr;
    }

    .footer-benefits ul {
        flex-direction: column;
        gap: 12px;
    }

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

@media (max-width: 480px) {
    .hero-slider {
        height: 38vh;
    }

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

    .tab {
        padding: 10px 20px;
        font-size: 12px;
    }
}
/* Уведомления */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid var(--primary-yellow);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 9999;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2s forwards;
    max-width: 300px;
}

.cart-notification.success {
       border-left-color: var(--primary-yellow); 
}

.cart-notification.error {
     border-left-color: #f44336; 
}

.cart-notification-title {
    font-weight: 600;
    margin-bottom: 5px;
     color: var(--primary-yellow);
}

.cart-notification-text {
    font-size: 13px;
    color: var(--text-gray);
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}



    .cart-page {
            padding: 40px 0;
            min-height: 400px;
        }
        
        .cart-empty {
            text-align: center;
            padding: 80px 20px;
            background: var(--light-gray);
            border-radius: 10px;
        }
        
        .cart-empty h2 {
            font-size: 28px;
            margin-bottom: 20px;
            color: var(--dark-gray);
        }
        
        .cart-empty p {
            color: var(--text-gray);
            margin-bottom: 30px;
        }
        
        .cart-empty .btn {
            display: inline-block;
            padding: 15px 40px;
            background: var(--primary-yellow);
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: 600;
            transition: background 0.3s;
        }
        
        .cart-empty .btn:hover {
            background: #1e4a7a; /* ИЗМЕНЕНО: было #FFA000, стало #1e4a7a */
        }
        
        .cart-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 30px;
        }
        
        .cart-table th {
            text-align: left;
            padding: 15px;
            background: var(--light-gray);
            border-bottom: 2px solid var(--border-gray);
        }
        
        .cart-table td {
            padding: 20px 15px;
            border-bottom: 1px solid var(--border-gray);
            vertical-align: middle;
        }
        
        .cart-product {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .cart-product-image {
            width: 80px;
            height: 80px;
            object-fit: contain;
            border: 1px solid var(--border-gray);
            border-radius: 5px;
            padding: 5px;
        }
        
        .cart-product-title {
            font-weight: 600;
            color: var(--dark-gray);
            text-decoration: none;
        }
        
        .cart-product-title:hover {
            color: var(--primary-yellow);
        }
        
        .cart-quantity {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .cart-quantity-input {
            width: 60px;
            padding: 8px;
            text-align: center;
            border: 1px solid var(--border-gray);
            border-radius: 5px;
        }
        
        .cart-quantity-btn {
            background: none;
            border: 1px solid var(--border-gray);
            width: 30px;
            height: 30px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .cart-quantity-btn:hover {
            background: var(--primary-yellow);
            color: white;
            border-color: var(--primary-yellow);
        }
        
        .cart-remove {
            color: #ff4444;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 20px;
            transition: color 0.3s;
        }
        
        .cart-remove:hover {
            color: #cc0000;
        }
        
        .cart-summary {
            background: var(--light-gray);
            padding: 30px;
            border-radius: 10px;
            margin-top: 30px;
        }
        
        .cart-summary-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-gray);
        }
        
        .cart-summary-row:last-child {
            border-bottom: none;
            font-size: 20px;
            font-weight: 700;
            color: var(--dark-gray);
        }
        
        .cart-checkout {
            display: inline-block;
            width: 100%;
            padding: 15px;
            background: var(--primary-yellow);
            color: white;
            text-align: center;
            text-decoration: none;
            border-radius: 5px;
            font-weight: 600;
            margin-top: 20px;
            transition: background 0.3s;
        }
        
        .cart-checkout:hover {
            background: #1e4a7a; /* ИЗМЕНЕНО: было #FFA000, стало #1e4a7a */
        }
        
        .cart-continue {
            display: inline-block;
            padding: 12px 30px;
            background: white;
            color: var(--dark-gray);
            text-decoration: none;
            border: 1px solid var(--border-gray);
            border-radius: 5px;
            margin-top: 20px;
            transition: all 0.3s;
        }
        
        .cart-continue:hover {
            border-color: var(--primary-yellow);
            color: var(--primary-yellow);
        }
        
        
        
        
.product-badge.discount {
    background: #ff4444; /* Красный цвет */
    color: white;
}

.product-badge.discount::before {
    content: '🔥';
    margin-right: 3px;
    font-size: 12px;
}     

/* Стили для кнопки закрытия результатов поиска */
.search-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease; /* Убираем все лишнее */
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.search-close-btn:hover {
    background: var(--primary-yellow);
    color: white;
    transform: rotate(90deg); /* Только поворот, без смещения */
    box-shadow: 0 4px 10px rgba(43, 108, 176, 0.3); /* ИЗМЕНЕНО: было rgba(255, 193, 7, 0.3), стало rgba(43, 108, 176, 0.3) */
}

/* Анимация появления результатов */
/* Стили для результатов поиска - переопределяем анимацию */
#searchResultsContainer {
    display: none; /* По умолчанию скрыт */
    margin:  20px auto;
    padding: 20px 0;
    background: white;
    border-radius: 10px;
}

#searchResultsContainer .product-card {
    opacity: 1 !important; /* Принудительно показываем */
    transform: none !important; /* Убираем трансформацию */
    animation: none !important; /* Отключаем анимацию */
}

/* Стили для сетки в результатах поиска */
#searchResultsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    #searchResultsGrid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    #searchResultsGrid {
        grid-template-columns: 1fr;
    }
}
/* Исправление для заголовка результатов поиска */
/* Исправление для заголовка результатов поиска */
.search-results-header {
    display: flex;
    justify-content: center; /* МЕНЯЕМ НА CENTER */
    align-items: center;
    margin-bottom: 30px;
    position: relative; /* Добавляем для позиционирования кнопки */
}

.search-results-header .section-title {
    margin: 0; /* Убираем отступы у заголовка */
    text-align: center; /* Центрируем текст */
}

.search-close-btn {
    position: absolute; /* Позиционируем кнопку абсолютно */
    right: 0; /* Прижимаем к правому краю */
 
}

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

.pagination-link,
.pagination-current,
.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-link {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid var(--border-gray);
}

.pagination-link:hover {
    background: var(--primary-yellow);
    color: white;
    border-color: var(--primary-yellow);
}

.pagination-current {
    background: var(--primary-yellow);
    color: white;
    font-weight: 600;
}

.pagination-arrow {
    background: var(--light-gray);
    color: var(--dark-gray);
    font-size: 20px;
    border: 1px solid var(--border-gray);
}

.pagination-arrow:hover {
    background: var(--primary-yellow);
    color: white;
    border-color: var(--primary-yellow);
}

@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }
    
    .pagination-link,
    .pagination-current,
    .pagination-arrow {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

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

.pagination-link,
.pagination-current,
.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-link {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid var(--border-gray);
}

.pagination-link:hover {
    background: var(--primary-yellow);
    color: white;
    border-color: var(--primary-yellow);
}

.pagination-current {
    background: var(--primary-yellow);
    color: white;
    font-weight: 600;
}

.pagination-arrow {
    background: var(--light-gray);
    color: var(--dark-gray);
    font-size: 20px;
    border: 1px solid var(--border-gray);
}

.pagination-arrow:hover {
    background: var(--primary-yellow);
    color: white;
    border-color: var(--primary-yellow);
}

@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }
    
    .pagination-link,
    .pagination-current,
    .pagination-arrow {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}


/* SEO блок категории */
.seo-category {
    padding: 60px 0;
    background: #f9f9f9;
    margin: 40px 0;
}

.seo-category-content {
    max-width: 1000px;
    margin: 0 auto;
}

.seo-category-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.seo-category-text h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #222;
    font-weight: 600;
}

.seo-category-text p {
    margin-bottom: 20px;
}

.seo-category-text ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.seo-category-text li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.seo-category-text strong {
    color: #2b6cb0; /* ИЗМЕНЕНО: было #ff6b00, стало #2b6cb0 */
    font-weight: 600;
}

@media (max-width: 768px) {
    .seo-category {
        padding: 40px 0;
    }
    
    .seo-category-text {
        font-size: 15px;
    }
    
    .seo-category-text h3 {
        font-size: 18px;
    }
}

   /* Стили для отображения типа товара */
/* Стили для фильтра */
.filter-type-wrapper {
    display: inline-block;
    margin-left: 10px;
}
.type-filter {
    min-width: 180px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;  
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.type-filter.active {
    border-color: #2b6cb0; /* ИЗМЕНЕНО: было #FFC107, стало #2b6cb0 */
    background-color: #e6f0ff; /* ИЗМЕНЕНО: было #fff9e6, стало #e6f0ff (светло-синий) */
}
.type-filter:hover {
    border-color: #2b6cb0; /* ИЗМЕНЕНО: было #FFC107, стало #2b6cb0 */
}
@media (max-width: 768px) {
    .filter-type-wrapper {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    .type-filter {
        width: 100%;
    }
}







        /* Дополнительные стили для карточки товара */
        .product-page {
            padding: 40px 0;
        }
        
        
        .product-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            margin-bottom: 60px;
        }
        
        .product-gallery {
            position: relative;
        }
        
        .product-main-image {
            width: 100%;
            height: 450px;
            object-fit: contain;
            border: 1px solid var(--border-gray);
            border-radius: 10px;
            padding: 20px;
            background: white;
        }
        
        .product-badge-single {
            position: absolute;
            top: 20px;
            left: 20px;
            background: var(--primary-yellow);
            color: white;
            padding: 8px 16px;
            border-radius: 5px;
            font-weight: 600;
            z-index: 2;
        }
        
        .product-badge-single.hot {
            background: #FF5722;
        }
        
        .product-info h1 {
            font-size: 32px;
            margin-bottom: 15px;
            color: var(--dark-gray);
        }
        
        .product-meta {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            font-size: 14px;
            color: var(--text-gray);
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-gray);
        }
        
        .product-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .product-meta i {
            color: var(--primary-yellow);
        }
        
        .product-price-single {
            font-size: 36px;
            font-weight: 700;
            color: var(--dark-gray);
            margin-bottom: 20px;
        }
        
        .product-price-single span {
            font-size: 18px;
            font-weight: normal;
            color: #999;
        }
        
        .product-availability {
            display: inline-block;
            padding: 8px 16px;
            background: #e8f5e9;
            color: #2e7d32;
            border-radius: 5px;
            font-weight: 600;
            margin-bottom: 25px;
        }
        
        .product-availability.out-of-stock {
            background: #ffebee;
            color: #c62828;
        }
        
        .product-description {
            margin: 30px 0;
            line-height: 1.8;
            color: var(--text-gray);
        }
        
        .product-description h3 {
            font-size: 18px;
            margin-bottom: 15px;
            color: var(--dark-gray);
        }
        
        .product-actions {
            display: flex;
            gap: 15px;
            align-items: center;
            margin: 30px 0;
        }
        
        .quantity-selector {
            display: flex;
            align-items: center;
            border: 1px solid var(--border-gray);
            border-radius: 5px;
            overflow: hidden;
        }
        
        .quantity-btn {
            width: 45px;
            height: 45px;
            background: var(--light-gray);
            border: none;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .quantity-btn:hover {
            background: var(--primary-yellow);
            color: white;
        }
        
        .quantity-input {
            width: 70px;
            height: 45px;
            text-align: center;
            border: none;
            border-left: 1px solid var(--border-gray);
            border-right: 1px solid var(--border-gray);
            font-size: 16px;
            font-weight: 600;
        }
        
        .add-to-cart-btn {
            flex: 1;
            height: 45px;
            background: var(--primary-yellow);
            border: none;
            color: white;
            font-size: 16px;
            font-weight: 600;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .add-to-cart-btn:hover {
            background: #1e4a7a; /* ИЗМЕНЕНО: было #FFA000, стало #1e4a7a */
            transform: scale(1.02);
        }
        
        .product-specs {
            margin-top: 40px;
            border-top: 1px solid var(--border-gray);
            padding-top: 30px;
        }
        
        .specs-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .specs-table tr {
            border-bottom: 1px solid var(--border-gray);
        }
        
        .specs-table td {
            padding: 12px 0;
        }
        
        .specs-table td:first-child {
            font-weight: 600;
            width: 200px;
            color: var(--dark-gray);
        }
        
        .section-title-small {
            font-size: 24px;
            margin: 40px 0 25px;
            text-align: center;
        }
        
        /* Стили для 404 */
        .not-found-page {
            text-align: center;
            padding: 100px 20px;
        }
        
        .not-found-page h1 {
            font-size: 72px;
            color: var(--primary-yellow);
            margin-bottom: 20px;
        }
        
        .not-found-page h2 {
            font-size: 32px;
            margin-bottom: 20px;
        }
        
        .not-found-page p {
            color: var(--text-gray);
            margin-bottom: 30px;
        }
        
        .not-found-page .btn {
            display: inline-block;
            padding: 15px 40px;
            background: var(--primary-yellow);
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: 600;
        }
        
        @media (max-width: 768px) {
            .product-container {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            
            .product-main-image {
                height: 350px;
            }
            
            .product-price-single {
                font-size: 28px;
            }
            
            .product-actions {
                flex-direction: column;
            }
            
            .quantity-selector {
                width: 100%;
            }
            
            .quantity-input {
                flex: 1;
            }
            
            .add-to-cart-btn {
                width: 100%;
            }
            
            .specs-table td:first-child {
                width: 140px;
            }
        }
        
        /* ===== ПРЕИМУЩЕСТВА (ОПТИМИЗИРОВАННЫЕ СТИЛИ) ===== */
.features-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 25px 35px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(43, 108, 176, 0.1);
}

/* Эффект свечения при наведении */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-dark));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -12px rgba(43, 108, 176, 0.15);
    border-color: rgba(43, 108, 176, 0.2);
}

/* Иконка */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-light) 0%, rgba(43, 108, 176, 0.08) 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05) rotate(5deg);
    background: linear-gradient(135deg, var(--blue-light) 0%, rgba(43, 108, 176, 0.15) 100%);
}

.feature-icon svg {
    width: 42px;
    height: 42px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.02);
}

/* Заголовок */
.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

/* Декоративная линия под заголовком */
.feature-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--blue-dark));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.feature-card:hover .feature-title::after {
    width: 60px;
}

/* Описание */
.feature-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin-top: 15px;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-description {
    color: var(--text-dark);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .features-grid {
        gap: 25px;
        margin: 50px 0;
    }
    
    .feature-card {
        padding: 35px 20px 30px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .feature-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }
    
    .feature-card {
        padding: 30px 20px;
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
    
    .feature-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 20px;
    }
    
    .feature-icon svg {
        width: 34px;
        height: 34px;
    }
    
    .feature-title {
        font-size: 18px;
    }
    
    .feature-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        gap: 16px;
        margin: 30px 0;
    }
    
    .feature-card {
        padding: 25px 16px;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 16px;
    }
    
    .feature-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .feature-title {
        font-size: 17px;
    }
    
    .feature-title::after {
        width: 35px;
    }
    
    .feature-description {
        font-size: 12.5px;
    }
}

/* Анимация появления при скролле (если используется в script.js) */
.feature-card.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.animate.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ----- СЕТКА ТОВАРОВ (ИСПРАВЛЕННАЯ) ----- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.product-card {
    background: var(--white);
    border: 0px solid var(--border-light);
    border-radius: 10px;
    padding: 20px 20px 20px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-color: transparent;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-yellow);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 2;
}

.product-badge.hot {
    background: #FF5722;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s;
}
.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    min-height: 48px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Строка с ценой и кодом товара */
.product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Код товара (SKU) */
.product-sku {
    font-size: 14px;
    color: #999;
    font-family: monospace;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

 

/* ===== КАРТОЧКА ТОВАРА - ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ ===== */

/* Кнопка избранного (сердечко) */
.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #eaeaea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 15;
    opacity: 0;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-card:hover .favorite-btn {
    opacity: 1;
    transform: translateX(0);
}

.favorite-btn svg {
    width: 18px;
    height: 18px;
    stroke: #999;
    fill: none;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    background: #fff5f5;
    border-color: #ff6b6b;
    transform: scale(1.05);
}

.favorite-btn:hover svg {
    stroke: #ff6b6b;
}

.favorite-btn.active {
    background: #fff5f5;
    border-color: #ff6b6b;
}

.favorite-btn.active svg {
    stroke: #ff6b6b;
    fill: #ff6b6b;
}

/* Рейтинг звезд */
.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: 12px;
}

.star {
    width: 16px;
    height: 16px;
    stroke: #ddd;
    fill: none;
    transition: all 0.2s ease;
}

.star-filled {
    fill: #ffc107;
    stroke: #ffc107;
}

.rating-count {
    font-size: 11px;
    color: #999;
    margin-left: 5px;
}

/* Адаптация для мобильных */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-title {
        font-size: 13px;
        min-height: 40px;
    }
    
    .product-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
  
    
    .buy-button {
        padding: 10px;
        font-size: 12px;
    }
    
    .favorite-btn {
        opacity: 1;
        transform: translateX(0);
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .favorite-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .star {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
    
    .favorite-btn {
        opacity: 1;
    }
    
    .product-price-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }
    
    .product-sku {
        max-width: 45%;
        white-space: normal;
        word-break: break-all;
    }
}

/* Анимация добавления в избранное */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.favorite-btn.active svg {
    animation: heartBeat 0.3s ease;
}

/* ===== ПОДВАЛ (СВЕТЛЫЙ) ===== */
.footer {
    background: #f8f9fa;
    color: #6b7280;
    padding: 60px 0 0;
    margin-top: 60px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
}

.footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Верхняя часть футера */
.footer-top {
    margin-bottom: 50px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

/* Заголовки колонок - темные */
.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1f2937;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #2b6cb0;
    border-radius: 2px;
}

/* Списки - светлосерый текст */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #6b7280;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 13px;
    display: inline-block;
}

.footer-list a:hover {
    color: #2b6cb0;
    transform: translateX(3px);
}

/* Контакты */
.footer-contacts {
    margin-bottom: 25px;
}

.footer-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.25s ease;
}

.footer-contacts a:hover {
    color: #2b6cb0;
}

/* Социальные сети и мессенджеры */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 6px;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb;
}

.footer-social a:hover {
    background: #2b6cb0;
    color: #ffffff;
    border-color: #2b6cb0;
    transform: translateY(-2px);
}

/* Форма обратной связи */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #1f2937;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    transition: all 0.25s ease;
}

.footer-form input:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43,108,176,0.1);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: #9ca3af;
}

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

.footer-form button {
    padding: 12px 20px;
    background: #2b6cb0;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Montserrat', sans-serif;
}

.footer-form button:hover {
    background: #1e4a7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43,108,176,0.3);
}

/* SEO текст */
.footer-seo-text {
    margin: 40px 0 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    line-height: 1.6;
    color: #6b7280;
}

.footer-seo-text p {
    margin-bottom: 15px;
}

.footer-seo-text strong {
    color: #1f2937;
    font-weight: 600;
}

/* Нижняя часть футера */
.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 12px;
    color: #6b7280;
}

.footer-copyright {
    font-size: 12px;
    color: #9ca3af;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer .container {
        padding: 0 20px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .footer-social a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .footer-benefits {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-copyright {
        order: 2;
    }
    
    .footer-benefits {
        order: 1;
    }
}

@media (max-width: 480px) {
    .footer-title {
        font-size: 15px;
    }
    
    .footer-list a {
        font-size: 12px;
    }
    
    .footer-contacts a {
        font-size: 13px;
    }
    
    .footer-form input,
    .footer-form textarea,
    .footer-form button {
        font-size: 12px;
    }
    
    .footer-seo-text {
        font-size: 11px;
    }
    
    .footer-benefits {
        font-size: 11px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
}

/* ===== ОФОРМЛЕНИЕ ЗАКАЗА ===== */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 40px 0;
}

.checkout-form {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

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

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
}

.hidden {
    display: none;
}

.nova-poshta-block,
.ukr-poshta-block {
    margin-top: 15px;
    margin-left: 28px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.checkout-summary {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.checkout-summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.product-mini {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.product-mini img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.product-mini-info {
    flex: 1;
}

.product-mini-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-mini-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 2px solid var(--border-light);
    font-size: 18px;
    font-weight: 700;
    color: var(--blue);
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.checkout-btn:hover {
    background: var(--blue-dark);
}

.success-message {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 40px auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    color: white;
    font-size: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.order-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--blue);
}

@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
    }
}
/* Стили для иконок в подсказках */
.postal-code-hint svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.postal-code-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
}
/* Бренды – горизонтальный скролл */
.brands-slider {
    margin: 30px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.brands-scroll {
    display: inline-flex;
    gap: 20px;
    padding: 10px 0;
}
.brand-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    cursor: pointer;
    transition: transform 0.2s;
}
.brand-item:hover {
    transform: scale(1.05);
}
.brand-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 10px;
}
.brand-item span {
    margin-top: 8px;
    font-size: 12px;
    text-align: center;
    color: #333;
}
.brands-empty {
    text-align: center;
    padding: 20px;
    color: #999;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.subcategory-card {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: #2b6cb0;
}

.subcategory-card a {
    text-decoration: none;
    color: inherit;
}

.subcategory-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.subcategory-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* ===== SEO-текст (описание категории) ===== */
.seo-text-section {
    padding: 40px 0;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 40px 0;
}

.seo-text-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.seo-text-section .section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
    position: relative;
    display: inline-block;
}

.seo-text-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2b6cb0; /* акцентный желтый */
    border-radius: 2px;
}

.seo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-top: 25px;
}

/* Типографика внутри SEO-текста */
.seo-text p {
    margin-bottom: 1em;
}

.seo-text h2,
.seo-text h3,
.seo-text h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #222;
}

.seo-text ul, 
.seo-text ol {
    margin: 0 0 1em 1.5em;
    padding-left: 0;
}

.seo-text li {
    margin-bottom: 0.3em;
}

.seo-text a {
    color: #2b6cb0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}

.seo-text a:hover {
    border-bottom-color: #2b6cb0;
}

.seo-text strong {
    font-weight: 700;
    color: #222;
}

/* Адаптация под планшеты и мобильные */
@media (max-width: 768px) {
    .seo-text-section {
        padding: 30px 0;
        margin: 30px 0;
    }
    
    .seo-text-section .section-title {
        font-size: 24px;
    }
    
    .seo-text {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .seo-text-section {
        padding: 20px 0;
        margin: 20px 0;
    }
    
    .seo-text-section .section-title {
        font-size: 22px;
    }
}
.pagination-info {
        text-align: center;
        margin-top: 20px;
        color: #aaa;
        font-size: 14px;
    }
/* Блок пагинации */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 20px;
    font-family: inherit;
}

/* Общие стили для всех ссылок и кнопок пагинации */
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background-color: #f5f5f5;
    color: #555;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Текущая страница */
.pagination .pagination-current {
    background-color: #e0e0e0;
    color: #333;
    font-weight: 600;
    border: 1px solid #ddd;
    cursor: default;
}

/* Ссылки при наведении */
.pagination a:hover {
    background-color: #e9e9e9;
    color: #000;
    transform: translateY(-1px);
}

/* Стрелки переключения блоков (⪻ и ⪼) */
.pagination-link.pagination-block-prev,
.pagination-link.pagination-block-next {
    font-size: 18px;
    font-weight: normal;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
}

/* Кнопки "Назад" и "Вперёд" */
.pagination-prev,
.pagination-next {
    padding: 0 12px;
    font-weight: 500;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
}

/* Отключённые состояния (если будут) */
.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
    background-color: #f9f9f9;
}

/* Информационная строка */
.pagination-info {
    text-align: center;
    margin-top: 15px;
    color: #aaa;
    font-size: 13px;
}

 
.breadcrumbs {
    display: block !important;
    margin: 0 !important;
    padding: 2px 0 2px 20px !important;
    position: sticky !important;
    top: 103px !important;          
    z-index: 999 !important;
 
    clear: both !important;
}
/* Стили для списка внутри */
.breadcrumb-list {
    display: flex !important;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #aaa !important;
}

.breadcrumb-list li + li::before {
    content: "›";
    margin: 0 8px;
    color: #ccc !important;
}

.breadcrumb-list a {
    color: #aaa !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
    color: #888 !important;
    text-decoration: none !important;
}

.breadcrumb-list span {
    color: #999 !important;
    font-weight: 500;
}