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

:root {
    --primary-yellow: #FFC107;
    --dark-gray: #333;
    --light-gray: #f5f5f5;
    --text-gray: #666;
    --border-gray: #e0e0e0;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- ШАПКА (header) ----- */
header {
    background: white;
    border-bottom: 1px solid var(--border-gray);
    padding: 10px 0 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header-top-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: var(--dark-gray);
}

.logo span {
    color: var(--primary-yellow);
}

.top-links {
    display: flex;
    gap: 20px;
    font-size: 11px;
    flex-wrap: wrap;
}

.top-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.top-links a:hover {
    color: var(--primary-yellow);
}

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

nav {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: 20px;
}

nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-yellow);
}

/* ----- КОРЗИНА ----- */
.cart-icon {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--dark-gray);
}

.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: #FFD54F;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* ----- ГЕРОЙ СЛАЙДЕР ----- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 320px;
    max-height: 720px;
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    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;
}

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

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

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

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

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

/* ----- КАТАЛОГ (общие стили) ----- */
.catalog-section {
    padding: 10px;
    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;
    gap: 12px;
    margin-bottom: 10px;
    position: relative;
    
}

.filter-select {
    padding: 11px 20px;
    border: 1px solid var(--border-gray);
    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 {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    font-size: 14px;
    min-width: 300px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.search-btn {
    background: var(--primary-yellow);
    border: none;
    padding: 12px 16px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-btn svg {
    stroke: white;
}

.search-btn:hover {
    background: #FFA000;
}

/* ----- РЕЗУЛЬТАТЫ ПОИСКА ----- */
.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: 1px 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: 0;
    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: #FFA000;
    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.6;
    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(--primary-yellow);
    font-size: 32px;
    width: auto;
    height: auto;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    padding: 10px;
}

.brands-arrow:hover {
    color: #FFA000;
    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 {
    background: #f8f9fa;
    padding: 60px 0 25px;
    border-top: 1px solid var(--border-gray);
    font-size: 14px;
}

.footer-top {
    margin-bottom: 50px;
}

.footer-brand {
    margin-bottom: 35px;
}

.footer-logo {
    font-size: 30px;
    font-weight: 700;
    color: var(--dark-gray);
}

.footer-logo span {
    color: var(--primary-yellow);
}

.footer-tagline {
    font-size: 15px;
    color: var(--text-gray);
    margin-top: 5px;
}

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

.footer-column {
    min-width: 0;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--dark-gray);
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-yellow);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-list a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-list a:hover {
    color: var(--primary-yellow);
    padding-left: 5px;
}

.footer-cities {
    margin-bottom: 40px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.city-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.city-list li {
    margin-bottom: 8px;
}

.city-list a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.city-list a:hover {
    color: var(--primary-yellow);
}

.all-cities-link {
    margin-top: 20px;
}

.all-cities-link a {
    font-weight: 500;
    color: var(--primary-yellow);
    text-decoration: none;
}

.all-cities-link a:hover {
    text-decoration: underline;
}

.footer-benefits {
    margin: 40px 0 30px;
}

.footer-benefits ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-benefits li {
    font-weight: 500;
    color: var(--dark-gray);
}

.footer-seo-text {
    margin-bottom: 35px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-gray);
    max-width: 900px;
}

.footer-bottom {
    border-top: 1px solid var(--border-gray);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-contacts {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-contacts span {
    color: var(--dark-gray);
    font-weight: 500;
}

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

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    transform: translateY(-3px);
}

.social-link svg {
    fill: var(--text-gray);
    transition: fill 0.3s;
}

.social-link:hover svg {
    fill: #fff;
}

/* ===== АДАПТИВНОСТЬ ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

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

@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: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .search-input {
        width: 100%;
        min-width: auto;
    }

    .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: #FFA000;
        }
        
        .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: #FFA000;
        }
        
        .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(255, 193, 7, 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: #ff6b00;
    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: #FFC107;
    background-color: #fff9e6;
}
.type-filter:hover {
    border-color: #FFC107;
}
@media (max-width: 768px) {
    .filter-type-wrapper {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    .type-filter {
        width: 100%;
    }
}







        /* Дополнительные стили для карточки товара */
        .product-page {
            padding: 40px 0;
        }
        
        .breadcrumbs {
            margin-bottom: 30px;
            font-size: 14px;
            color: var(--text-gray);
        }
        
        .breadcrumbs a {
            color: var(--text-gray);
            text-decoration: none;
        }
        
        .breadcrumbs a:hover {
            color: var(--primary-yellow);
        }
        
        .breadcrumbs span {
            margin: 0 8px;
        }
        
        .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: #FFA000;
            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: left;
        }
        
        /* Стили для 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;
            }
        }