/* Hero секция */
.hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6edfe 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    color: #232f3e;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #565959;
    margin-bottom: 2rem;
}

/* Поиск */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
}

.search-bar input:focus {
    outline: none;
    border-color: #c9daf8;
}

.search-bar button {
    padding: 12px 30px;
    background-color: #c9daf8;
    border: 2px solid #c9daf8;
    border-radius: 0 8px 8px 0;
    color: #232f3e;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.search-bar button:hover {
    background-color: #b0c4f0;
    border-color: #b0c4f0;
}

/* Баннеры */
.banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.banner {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.banner:hover {
    transform: translateY(-4px);
}

.banner-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.banner h3 {
    font-size: 1.1rem;
    color: #232f3e;
    margin-bottom: 0.5rem;
}

.banner p {
    font-size: 0.9rem;
    color: #565959;
}

/* Секции товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #c9daf8;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    color: #232f3e;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #B12704;
    margin: 0.5rem 0;
}

.product-rating {
    color: #FFA41C;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.btn-add-to-cart {
    width: 100%;
    padding: 8px;
    background-color: #c9daf8;
    border: none;
    border-radius: 6px;
    color: #232f3e;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-add-to-cart:hover {
    background-color: #b0c4f0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .banners {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Блоки категорий со слайдерами */
.category-products-slider {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e7e7e7;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #111;
    margin: 0;
}

.section-title a {
    color: #111;
    text-decoration: none;
}

.section-title a:hover {
    color: #c45500;
    text-decoration: underline;
}

.slider-controls {
    display: flex;
    gap: 8px;
}

.slider-prev,
.slider-next {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
    background: #e0e0e0;
    border-color: #ff9900;
    color: #ff9900;
}

/* Контейнер слайдера */
.products-slider {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.products-slider::-webkit-scrollbar {
    height: 8px;
}

.products-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.products-slider::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.products-slider::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Трек товаров */
.products-track {
    display: flex;
    gap: 1.2rem;
    padding: 0.5rem 0 1rem;
}

/* Карточка товара - копия стилей из category.css */
.products-track .product-card {
    flex: 0 0 240px;
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.products-track .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.products-track .product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    background: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
}

.products-track .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.products-track .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.products-track .product-title:hover {
    color: #c45500;
    text-decoration: underline;
}

.products-track .product-price {
    margin: 0.5rem 0;
}

.products-track .old-price {
    text-decoration: line-through;
    color: #666;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.products-track .current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b12704;
}

.products-track .product-stock {
    margin-bottom: 0.5rem;
}

.products-track .in-stock {
    color: #008a00;
    font-size: 0.8rem;
    font-weight: 500;
}

.products-track .out-of-stock {
    color: #cc0000;
    font-size: 0.8rem;
    font-weight: 500;
}

.products-track .btn-add-to-cart {
    width: 100%;
    padding: 0.6rem;
    background: #ff9900;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: #000;
    transition: background 0.2s;
}

.products-track .btn-add-to-cart:hover {
    background: #e68900;
}

/* Адаптивность */
@media (max-width: 768px) {
    .products-track .product-card {
        flex: 0 0 180px;
        padding: 0.8rem;
    }
    
    .products-track .product-image {
        height: 160px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .products-track .product-card {
        flex: 0 0 150px;
        padding: 0.6rem;
    }
    
    .products-track .product-image {
        height: 120px;
    }
}