/* Стили для страницы "Хиты продаж" */

/* Герой-секция */
.hits-hero-section {
    padding: 120px 0 80px;
    background-color: var(--secondary-color);
}

.hits-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hits-hero-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hits-hero-images img {
    transition: transform 0.3s ease;
}

.hits-hero-images img:hover {
    transform: scale(1.02);
}

/* Фильтры */
.hits-filters {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.search-box {
    position: relative;
}

.search-input {
    padding-left: 45px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    height: 50px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.sort-select {
    border-radius: 30px;
    border: 1px solid var(--border-color);
    height: 50px;
    padding: 0 20px;
}

/* Категории фильтров */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filter-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Карточки товаров */
.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.product-badge.sale {
    background: var(--accent-color);
}

.product-badge.new {
    background: #4a90e2;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-price-wrapper {
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
}

.product-old-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

.btn-add-to-cart {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Пагинация */
.hits-pagination .page-link {
    color: var(--text-color);
    border: none;
    background: var(--secondary-color);
    margin: 0 5px;
    border-radius: 10px;
    min-width: 40px;
    text-align: center;
}

.hits-pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: var(--white);
}

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

/* Промо-баннер */
.promo-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 60px 0;
    margin: 60px 0;
}

.promo-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.promo-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.btn-promo {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 30px;
    padding: 12px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-promo:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Адаптивность */
@media (max-width: 992px) {
    .hits-hero-section {
        padding: 100px 0 60px;
    }
    
    .hits-hero-title {
        font-size: 2.5rem;
    }
    
    .promo-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hits-hero-title {
        font-size: 2rem;
    }
    
    .hits-hero-text {
        font-size: 1rem;
    }
    
    .category-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .promo-title {
        font-size: 1.8rem;
    }
    
    .promo-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hits-hero-section {
        padding: 80px 0 40px;
    }
    
    .hits-hero-title {
        font-size: 1.8rem;
    }
    
    .product-image-wrapper {
        height: 200px;
    }
    
    .promo-banner {
        padding: 40px 0;
        margin: 40px 0;
    }
}