homepage.css   /* ===== ОСНОВНЫЕ СТИЛИ ГЛАВНОЙ СТРАНИЦЫ ===== */
.homepage-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* ===== ГОРИЗОНТАЛЬНЫЕ КАТЕГОРИИ ===== */
.horizontal-categories {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e1e8ed;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.category-link {
    padding: 12px 24px;
    background: linear-gradient(135deg, #383839, #000000);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
    background: linear-gradient(135deg, #000000, #000000);
}

.no-categories {
    color: #7f8c8d;
    font-style: italic;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content-wrapper {
    max-width: 2000px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* ===== БОКОВАЯ ПАНЕЛЬ ФИЛЬТРОВ ===== */
.filter-sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.filter-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
}

.clear-filters {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.clear-filters:hover {
    color: #c0392b;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.filter-section h4 {
    margin: 0 0 15px 0;
    color: #34495e;
    font-size: 1.1rem;
}

/* Стили для фильтра цен */
.price-inputs {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 10px;
    margin-bottom: 15px;
}

.price-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-input-group label {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 600;
}

.price-input {
    padding: 10px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #000000;
}

.price-slider-container {
    margin: 15px 0;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ecf0f1;
    outline: none;
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
}

/* Чекбоксы категорий */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 8px 0;
    transition: background-color 0.3s ease;
    border-radius: 6px;
    padding-left: 10px;
    color: #000000;
}

.filter-checkbox:hover {
    background-color: #f8f9fa;
    color: #323232;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #373737;
    border-color: #000000;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Кнопки фильтров */
.filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.filter-apply-btn, .filter-reset-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-apply-btn {
    background: linear-gradient(135deg, #444444, #000000);
    color: white;
}

.filter-apply-btn:hover {
    background: linear-gradient(135deg, #000000, #000000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
}

.filter-reset-btn {
    background: #ecf0f1;
    color: #7f8c8d;
    border: 2px solid #bdc3c7;
}

.filter-reset-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* ===== ОСНОВНАЯ ОБЛАСТЬ ТОВАРОВ ===== */
.products-main {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.products-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #414141;
}
/* ===== СЕТКА ТОВАРОВ ===== */
.products-grid-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 20px 0;
}

/* Карточка товара - УПРОЩЕННАЯ ВЕРСИЯ */
.product-card-main {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: visible;
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Кликабельная область карточки */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
}

/* Контейнер изображения */
.product-image-container {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Бейдж скидки */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* Информация о товаре - ВИДИМАЯ ВСЕГДА */
.product-info-main {
    padding: 15px;
    flex: 0 0 auto;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.3;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ИСПРАВЛЕННАЯ ПАНЕЛЬ ПРИ НАВЕДЕНИИ - ВЫЕЗЖАЕТ ВНИЗ ПОВЕРХ ДРУГИХ КАРТОЧЕК */
.product-hover-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    border-radius: 0 !important;
    border: none !important;
    height: auto;
    max-height: 300px;
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); */
}

/* Контент панели */
.panel-content {
    background: white;
    border-radius: 0 !important;
    padding: 20px 15px 15px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Дополнительная информация в панели */
.product-details {
    margin-bottom: 15px;
}

/* Категория */
.product-category {
    font-size: 11px;
    color: #7f8c8d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Мета-информация */
.product-meta {
    margin: 12px 0;
}

.stock-info {
    margin-bottom: 6px;
}

.stock-badge.in-stock {
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.rating-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.stars {
    position: relative;
    display: inline-block;
    color: #ddd;
    font-size: 14px;
}

.stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    color: #f39c12;
    overflow: hidden;
    white-space: nowrap;
}

.review-count {
    font-size: 13px;
    color: #7f8c8d;
}

/* Цены */
.base-price {
    margin-top: 12px;  
}

.old-price-small {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 14px;
    margin-right: 8px;  
}

.current-price-small {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

/* Кнопка купить в панели */
.product-actions {
    margin-top: 10px;
}

/* Кнопка "В корзину" */
.buy-now-btn {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #373738, #000000);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-now-btn:hover {
    background: linear-gradient(135deg, #000000, #000000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.3);
}

/* Состояния кнопки добавления в корзину */
.buy-now-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-text, .btn-loading, .btn-success {
    transition: opacity 0.3s ease;
}

/* Анимация для состояний кнопки */
.btn-loading {
    display: none;
}

.btn-success {
    display: none;
}

/* ===== АКТИВАЦИЯ ПАНЕЛИ ПРИ НАВЕДЕНИИ ===== */
.product-card-main:hover {
    z-index: 200;
}

.product-card-main:hover .product-hover-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.product-card-main:hover .product-image {
    transform: scale(1.05);
}

.filter-message.show {
    display: block;
}

.filter-message.info {
    background: #d6eaf8;
    color: #2c3e50;
    border-left: 4px solid #3498db;
}

.filter-message.success {
    background: #d5f4e6;
    color: #27ae60;
    border-left: 4px solid #27ae60;
}

.filter-message.error {
    background: #fadbd8;
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

/* Индикатор загрузки */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6A0DAD;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Сообщение о отсутствии товаров */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.no-products p {
    font-size: 1.2rem;
    margin: 0;
}

/* Убираем стандартные стили для форм */
.add-to-cart-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .products-grid-main {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .products-grid-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .products-grid-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    /* Для каруселей на главной тоже меняем */
    .products-carousel-super-wide {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    /* Уменьшаем размеры карточек товаров */
    .product-card-main {
        margin-bottom: 0;
    }
    
    .product-image-container {
        aspect-ratio: 1/1;
        padding: 5px;
    }
    
    .product-info-main {
        padding: 8px 5px;
    }
    
    .product-title {
        font-size: 11px;
        min-height: 2.8em;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }
    
    .discount-badge {
        font-size: 10px;
        padding: 4px 6px;
        top: 8px;
        left: 8px;
    }
    
    /* Уменьшаем панель при наведении на мобильных */
    .product-hover-panel {
        max-height: 220px;
    }
    
    .panel-content {
        padding: 12px 8px 8px;
    }
    
    .current-price-small {
        font-size: 14px;
    }
    
    .old-price-small {
        font-size: 11px;
    }
    
    .buy-now-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
        border-radius: 18px;
    }
    
    /* Уменьшаем категорию и рейтинг в панели */
    .product-category {
        font-size: 9px;
        margin-bottom: 4px;
    }
    
    .stars {
        font-size: 10px;
    }
    
    .review-count {
        font-size: 10px;
    }
    
    .stock-badge.in-stock {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* Уменьшаем отступы в хедере */
    .products-header h2 {
        font-size: 1.4rem;
        margin-bottom: 15px !important;
    }
    
    .product-hover-panel {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: 65%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 2;
        border-radius: 0 0 12px 12px;
        max-height: none;
        box-shadow: none;
    }

    .product-card-main:hover .product-hover-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .product-card-main:hover .product-image {
        transform: scale(1.05);
    }
    
    .panel-content {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 0 0 12px 12px;
        padding: 12px 8px 8px;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .product-card-main:hover {
        z-index: 1;
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .products-grid-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    /* Для каруселей на главной тоже меняем */
    .products-carousel-super-wide {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    /* Еще больше уменьшаем на маленьких экранах */
    .product-title {
        font-size: 10px;
        min-height: 2.6em;
    }
    
    .product-image-container {
        padding: 3px;
    }
    
    .product-info-main {
        padding: 6px 4px;
    }
    
    .discount-badge {
        font-size: 9px;
        padding: 3px 5px;
        top: 6px;
        left: 6px;
    }
    
    .current-price-small {
        font-size: 13px;
    }
    
    .old-price-small {
        font-size: 10px;
    }
    
    /* Уменьшаем панель при наведении */
    .product-hover-panel {
        max-height: 200px;
    }
    
    .panel-content {
        padding: 10px 6px 6px;
    }
    
    .buy-now-btn {
        padding: 7px 10px;
        font-size: 11px;
        min-height: 32px;
        border-radius: 16px;
    }
    
    /* Уменьшаем отступы для секций */
    .main-content-wrapper {
        gap: 15px;
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .products-main {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .products-header h2 {
        font-size: 1.3rem;
    }
    
    .product-category {
        font-size: 8px;
    }
    
    /* Еще меньше на очень маленьких экранах */
    .products-grid-main {
        gap: 5px;
    }
    
    .products-carousel-super-wide {
        gap: 5px;
    }
    
    .product-title {
        font-size: 9px;
        min-height: 2.4em;
    }
    
    .current-price-small {
        font-size: 12px;
    }
    
    .buy-now-btn {
        font-size: 10px;
        padding: 6px 8px;
    }
}

@media (max-width: 360px) {
    /* На самых маленьких экранах делаем еще компактнее */
    .products-grid-main {
        gap: 4px;
    }
    
    .products-carousel-super-wide {
        gap: 4px;
    }
    
    .product-title {
        font-size: 8px;
        min-height: 2.2em;
    }
    
    .current-price-small {
        font-size: 11px;
    }
    
    .old-price-small {
        font-size: 9px;
    }
    
    .product-info-main {
        padding: 4px 3px;
    }
    
    .buy-now-btn {
        font-size: 9px;
        padding: 5px 6px;
        min-height: 28px;
    }
    
    .product-hover-panel {
        max-height: 180px;
    }
}

/* Стили для системы фильтров и пагинации */
.filter-form {
    transition: all 0.3s ease;
}

.load-more-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.load-more-btn {
    background: linear-gradient(135deg, #212121, #000000);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 2, 2, 0.4);
}

.load-more-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.pagination .step-links {
    display: inline-block;
}

.pagination a {
    color: #2c3e50;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #000000;
    color: white;
    border-color: #000000;
}

.pagination .current {
    padding: 8px 16px;
    background-color: #000000;
    color: white;
    border: 1px solid #000000;
    border-radius: 4px;
    margin: 0 4px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .pagination {
        display: none;
    }
    
    .load-more-container {
        display: block;
    }
    
    .filter-form {
        position: sticky;
        top: 0;
        background: white;
        z-index: 100;
        padding: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

@media (min-width: 769px) {
    .load-more-container {
        display: none;
    }
    
    /* На десктопе панель выдвигается вниз, не смещая другие карточки */
    .product-card-main {
        overflow: visible;
    }
}

/* ===== ВИДЕО ПРЕВЬЮ ===== */
.product-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 5;
}

.product-video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Анимация при наведении */
.product-card-main:hover .product-image {
    transform: translateX(-100%);
}

.product-card-main:hover .product-video-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Отключение на мобильных */
@media (max-width: 768px) {
    .product-video-container {
        display: none !important;
    }
    .product-card-main:hover .product-image {
        transform: none !important;
    }
}

/* ДОБАВЬ В КОНЕЦ homepage.css: */

/* Анимация ТОЛЬКО для товаров с видео */
.product-card-main[data-has-video="true"]:hover .product-image {
    transform: translateX(-100%);
}

.product-card-main[data-has-video="true"]:hover .product-video-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Для товаров БЕЗ видео - отключаем анимацию */
.product-card-main:not([data-has-video="true"]):hover .product-image {
    transform: none !important;
}

/* ДОБАВЬ В КОНЕЦ homepage.css: */

/* Анимация ТОЛЬКО для товаров с видео */
.product-card-main[data-has-video="true"]:hover .product-image {
    transform: translateX(-100%);
}

.product-card-main[data-has-video="true"]:hover .product-video-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Для товаров БЕЗ видео - отключаем анимацию */
.product-card-main:not([data-has-video="true"]):hover .product-image {
    transform: none !important;
}

/* Блок отзывов клиентов - ГОРИЗОНТАЛЬНАЯ ЛИНИЯ С БОЛЬШИМИ ФОТО */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 40px 0;
    overflow: hidden;
}

.testimonials-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    color: #2c3e50;
    font-weight: 300;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.testimonials-container {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 80px;
}

.testimonials-track {
    display: flex;
    gap: 35px;
    padding: 30px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 auto;
    width: 420px;
    height: 420px;
    perspective: 1200px;
    cursor: pointer;
}

.testimonial-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.testimonial-card:hover .testimonial-inner {
    transform: rotateY(180deg);
}

.testimonial-front,
.testimonial-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.testimonial-front {
    background: transparent;
}

.testimonial-back {
    background: linear-gradient(135deg, #6A0DAD 0%, #4B0082 100%);
    color: white;
    transform: rotateY(180deg);
    padding: 35px;
    box-sizing: border-box;
    text-align: center;
}

.testimonial-photo {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 0;
    transition: all 0.3s ease;
}

.testimonial-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.testimonial-text {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
    font-family: 'Georgia', 'Times New Roman', serif;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-author {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffd700;
    margin-top: auto;
}

/* Кнопки навигации */
.testimonials-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 10;
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.testimonials-nav:hover {
    background: #282828;
    transform: translateY(-50%) scale(1.15);
}

.testimonials-nav.prev {
    left: 15px;
}

.testimonials-nav.next {
    right: 15px;
}

/* Индикатор прокрутки */
.testimonials-scroll-indicator {
    text-align: center;
    margin-top: 30px;
    color: #ffffff;
    font-size: 1.1rem;
}

/* Анимация для мобильных устройств */
.testimonial-card.active .testimonial-inner {
    transform: rotateY(180deg);
}

/* ИСПРАВЛЕННЫЕ АНИМАЦИИ-ПОДСКАЗКИ (не конфликтуют с переворотом) */
@keyframes hintPulse {
    0% {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    50% {
        box-shadow: 0 12px 35px rgba(106, 13, 173, 0.4);
    }
    100% {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
}

@keyframes hintBorderGlow {
    0% {
        outline: 2px solid transparent;
    }
    50% {
        outline: 3px solid rgba(106, 13, 173, 0.6);
    }
    100% {
        outline: 2px solid transparent;
    }
}

@keyframes hintScale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Анимации подсказок применяются только когда карточка не активна */
.testimonial-card:not(.active):not(:hover).hint-animation .testimonial-inner {
    animation: hintPulse 2s ease-in-out 1;
}

.testimonial-card:not(.active):not(:hover).hint-animation .testimonial-front {
    animation: hintBorderGlow 2s ease-in-out 1;
}

/* Отдельная анимация для привлечения внимания */
.testimonial-card:not(.active):not(:hover).attention-grabber .testimonial-inner {
    animation: hintPulse 3s ease-in-out 2;
}

/* Для мобильных - более тонкие анимации */
@media (max-width: 768px) {
    .testimonial-card:not(.active):not(:hover).hint-animation .testimonial-inner {
        animation: hintScale 2s ease-in-out 1;
    }
}

/* Анимация появления карточек */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: slideInFromBottom 0.7s ease forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }

/* Адаптация для планшетов */
@media (max-width: 1200px) {
    .testimonials-container {
        padding: 0 70px;
        max-width: 1400px;
    }
    
    .testimonial-card {
        width: 350px;
        height: 350px;
    }
    
    .testimonial-photo {
        width: 330px;
        height: 330px;
    }
    
    .testimonial-back {
        padding: 30px;
    }
    
    .testimonial-text {
        font-size: 1.2rem;
        -webkit-line-clamp: 4;
    }
    
    .testimonial-author {
        font-size: 1.1rem;
    }
}

/* Адаптация для средних планшетов */
@media (max-width: 992px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .testimonials-container {
        padding: 0 60px;
    }
    
    .testimonials-track {
        gap: 30px;
        padding: 25px 0;
    }
    
    .testimonial-card {
        width: 300px;
        height: 300px;
    }
    
    .testimonial-photo {
        width: 280px;
        height: 280px;
    }
    
    .testimonial-back {
        padding: 25px;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
        -webkit-line-clamp: 4;
    }
    
    .testimonial-author {
        font-size: 1rem;
    }
    
    .testimonials-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Исправления для мобильной навигации */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 50px 0;
    }

    .testimonials-title {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }

    .testimonials-container {
        padding: 0 50px;
        position: relative;
    }

    .testimonials-track {
        gap: 25px;
        padding: 20px 0;
        margin: 0 -10px;
        padding: 20px 10px;
    }

    .testimonial-card {
        width: 280px;
        height: 280px;
        margin: 0 5px;
    }

    .testimonial-photo {
        width: 260px;
        height: 260px;
    }

    .testimonial-back {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 1rem;
        -webkit-line-clamp: 4;
    }

    .testimonial-author {
        font-size: 0.95rem;
    }

    .testimonials-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .testimonials-nav.prev {
        left: 5px;
    }

    .testimonials-nav.next {
        right: 5px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 576px) {
    .testimonials-container {
        padding: 0 35px;
    }

    .testimonials-track {
        gap: 20px;
    }

    .testimonial-card {
        width: 250px;
        height: 250px;
    }

    .testimonial-photo {
        width: 230px;
        height: 230px;
    }

    .testimonial-back {
        padding: 18px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        -webkit-line-clamp: 4;
    }

    .testimonial-author {
        font-size: 0.9rem;
    }

    .testimonials-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .testimonials-nav.prev {
        left: 2px;
    }

    .testimonials-nav.next {
        right: 2px;
    }
}

@media (max-width: 480px) {
    .testimonials-container {
        padding: 0 25px;
    }

    .testimonials-track {
        gap: 15px;
        padding: 15px 0;
    }

    .testimonial-card {
        width: 220px;
        height: 220px;
    }

    .testimonial-photo {
        width: 200px;
        height: 200px;
    }

    .testimonial-back {
        padding: 15px;
    }

    .testimonial-text {
        font-size: 0.9rem;
        -webkit-line-clamp: 4;
    }

    .testimonial-author {
        font-size: 0.85rem;
    }

    .testimonials-nav {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        background: rgba(106, 13, 173, 0.95);
    }
}

@media (max-width: 360px) {
    .testimonials-container {
        padding: 0 15px;
    }

    .testimonials-track {
        gap: 10px;
    }

    .testimonial-card {
        width: 200px;
        height: 200px;
    }

    .testimonial-photo {
        width: 180px;
        height: 180px;
    }

    .testimonials-nav {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .testimonials-container {
        padding: 0 10px;
    }

    .testimonials-nav {
        width: 28px;
        height: 28px;
    }

    .testimonials-track {
        gap: 8px;
    }
}



/* Плавное исчезновение кнопок навигации */
.testimonials-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Сообщение при отсутствии отзывов */
.no-testimonials {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    margin: 40px 0;
}

.no-testimonials p {
    color: #666;
    font-style: italic;
}

/* Стили для блока коллекций */
.featured-collections {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-collections .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #2c3e50;
    font-size: 2.5rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ширина минимум 300px */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.collection-card {
    display: block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    text-decoration: none;
    color: inherit;
    position: relative;
    width: 100%;
    max-width: 600px; /* Максимальная ширина 300px */
    margin: 0 auto; /* Центрируем карточки */
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.collection-image {
    position: relative;
    width: 100%;
    height: 400px; 
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Важно: заполняем область без искажений */
    transition: transform 0.3s ease;
}

.collection-card:hover .collection-image img {
    transform: scale(1.05);
}

.no-collection-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.collection-card:hover .collection-overlay {
    transform: translateY(-5px);
}

.collection-name {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-align: center;
}

.collection-count {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
    text-align: center;
}

.no-collections {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* Адаптивность для коллекций */
@media (max-width: 768px) {
    .featured-collections {
        padding: 40px 0;
    }
    
    .collections-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .collection-card {
        max-width: 280px;
    }
    
    .collection-image {
        height: 200px; /* На мобильных уменьшаем высоту */
    }
}

@media (max-width: 480px) {
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-card {
        max-width: 100%;
    }
    
    .collection-image {
        height: 150px;
    }
}

/* === СТИЛИ ДЛЯ РАЗДЕЛОВ ГЛАВНОЙ СТРАНИЦЫ === */
.homepage-section {
    margin: 60px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    position: relative;
}

.homepage-section:nth-child(even) {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.homepage-section[data-section-type="best_price"] {
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
    border: 2px solid #ffeaa7;
}

.homepage-section[data-section-type="new"] {
    background: linear-gradient(135deg, #d1ecf1 0%, #ffffff 100%);
    border: 2px solid #bee5eb;
}

.homepage-section[data-section-type="exclusive"] {
    background: linear-gradient(135deg, #f8d7da 0%, #ffffff 100%);
    border: 2px solid #f5c6cb;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8B4513, #D2691E);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-products-grid {
    margin-top: 30px;
}

.no-products-in-section {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-style: italic;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

.show-more-section {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.show-more-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Адаптивность для разделов */
@media (max-width: 768px) {
    .homepage-section {
        margin: 30px 0;
        padding: 20px 0;
        border-radius: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 25px;
    }
}

/* Анимация появления разделов */
@keyframes sectionSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.homepage-section {
    animation: sectionSlideIn 0.6s ease-out;
}

.homepage-section:nth-child(1) { animation-delay: 0.1s; }
.homepage-section:nth-child(2) { animation-delay: 0.2s; }
.homepage-section:nth-child(3) { animation-delay: 0.3s; }


/* === СУПЕР-ШИРОКАЯ КАРУСЕЛЬ С ОРИГИНАЛЬНЫМИ КАРТОЧКАМИ === */

/* СЕКЦИЯ - РАСШИРЯЕМ НА ВСЮ ШИРИНУ */
.homepage-section-wide {
    margin: 80px 0;
    padding: 60px 20px;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.homepage-section-wide:nth-child(even) {
    background: #f8f8f8;
}

.homepage-section-wide[data-section-type="best_price"] {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.homepage-section-wide[data-section-type="new"] {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
}

.homepage-section-wide[data-section-type="exclusive"] {
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
}

/* ЗАГОЛОВКИ */
.section-header-wide {
    text-align: center;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-title-wide {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.section-title-wide::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #000000;
    border-radius: 2px;
}

.section-description-wide {
    font-size: 1.2rem;
    color: #666666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* СТАТИЧНЫЙ КОНТЕЙНЕР (ЗАМЕНА КАРУСЕЛИ) */
.carousel-super-wide {
    position: relative;
    display: flex;
    justify-content: center !important; /* Центрируем блок */
    /* margin: 40px 0; */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* СТАТИЧНАЯ СЕТКА 5 ТОВАРОВ */
.products-carousel-super-wide {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки */
    gap: 25px; /* Такой же отступ как в популярных товарах */
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible !important;
    padding: 20px 0 !important; /* Такой же padding как в популярных товарах */
    box-sizing: border-box;
}

/* УВЕЛИЧИВАЕМ ОРИГИНАЛЬНЫЕ КАРТОЧКИ */
.products-carousel-super-wide .product-card-main {
    width: 100%;
    /* УБИРАЕМ фиксированную высоту - используем стандартную из product-card-main */
    height: auto;
    margin: 0;
    box-sizing: border-box;
}

/* ВОССТАНАВЛИВАЕМ СТАНДАРТНЫЙ РАЗМЕР ИЗОБРАЖЕНИЙ */
.products-carousel-super-wide .product-image-container {
    /* УБИРАЕМ фиксированную высоту - используем стандартную из product-image-container */
    height: auto;
    aspect-ratio: 1/1; /* Сохраняем квадратное соотношение */
}

.products-carousel-super-wide .product-title {
    font-size: 1.1rem;
    min-height: 2.6em;
}

/* ЧЕРНО-БЕЛЫЙ СТИЛЬ ДЛЯ СТАТИЧНОГО БЛОКА */
.products-carousel-super-wide .product-card-main {
    background: #ffffff;
    /* border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
}


.products-carousel-super-wide .current-price-small {
    color: #000000;
    font-weight: 600;
}

.products-carousel-super-wide .old-price-small {
    color: #666666;
}

.products-carousel-super-wide .buy-now-btn {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
}

.products-carousel-super-wide .buy-now-btn:hover {
    background: #ffffff;
    color: #000000;
}

/* УДАЛЯЕМ СТРЕЛКИ ПРОКРУТКИ */
.carousel-btn {
    display: none !important; /* Скрываем стрелки */
}

/* КНОПКА "ПОКАЗАТЬ ВСЕ" */
.show-all-btn-wide {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 30px;
    border: 2px solid #000000;
    font-weight: 600;
}

.show-all-btn-wide:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.section-footer-wide {
    text-align: center;
    margin-top: 40px;
}

.no-products-in-section {
    text-align: center;
    padding: 80px 20px;
    color: #666666;
    font-style: italic;
    font-size: 1.1rem;
    width: 100%;
}

/* АДАПТИВНОСТЬ ДЛЯ СТАТИЧНОГО БЛОКА */
@media (max-width: 1400px) {
    .products-carousel-super-wide {
        grid-template-columns: repeat(4, 1fr); /* 4 колонки на средних экранах */
        gap: 20px;
        padding: 20px 15px;
    }
}

/* АДАПТИВНОСТЬ СОВПАДАЕТ С ПОПУЛЯРНЫМИ ТОВАРАМИ */
@media (max-width: 1200px) {
    .products-carousel-super-wide {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .products-carousel-super-wide {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-carousel-super-wide {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .products-carousel-super-wide {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ГАРАНТИРУЕМ ЧТО НЕТ ОБРЕЗКИ */
.homepage-section-wide,
.carousel-super-wide,
.products-carousel-super-wide {
    overflow: visible !important;
}

.homepage-section-wide {
    padding: 40px 0 !important;
    margin: 0 !important;
}

/* УБИРАЕМ ВСЕ НАШИ ПРЕДЫДУЩИЕ ПЕРЕОПРЕДЕЛЕНИЯ РАЗМЕРОВ */
.products-carousel-super-wide .product-card-main,
.products-carousel-super-wide .product-image-container {
    /* Все размеры теперь наследуются из основных стилей */
}

/* АНИМАЦИИ (ОСТАВЛЯЕМ БЕЗ ИЗМЕНЕНИЙ) */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.products-carousel-super-wide .product-card-main {
    animation: slideIn 0.6s ease-out;
}

.products-carousel-super-wide .product-card-main:nth-child(1) { animation-delay: 0.1s; }
.products-carousel-super-wide .product-card-main:nth-child(2) { animation-delay: 0.2s; }
.products-carousel-super-wide .product-card-main:nth-child(3) { animation-delay: 0.3s; }
.products-carousel-super-wide .product-card-main:nth-child(4) { animation-delay: 0.4s; }
.products-carousel-super-wide .product-card-main:nth-child(5) { animation-delay: 0.5s; }

/* ПЛАВНОЕ ПОЯВЛЕНИЕ РАЗДЕЛОВ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.homepage-section-wide {
    animation: fadeInUp 0.8s ease-out;
}

/* УБИРАЕМ ВСЕ БОКОВЫЕ ОТСТУПЫ */
.carousel-super-wide {
    margin: 0 !important;
    padding: 0 !important;
}
.products-carousel-super-wide {
    margin: 0 !important;
    padding: 0 !important;
}
.homepage-section-wide {
    margin: 0 !important;
    padding: 40px 0 !important; /* Оставляем только вертикальные отступы */
}

/* ЦЕНТРИРУЕМ НАЗВАНИЯ ТОВАРОВ */
.product-title {
    text-align: center !important;
    justify-content: center !important;
}
.product-info-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* ===== МИНИ-КОЛЛЕКЦИИ КАТЕГОРИЙ ===== */
.mini-collections-section {
    padding: 40px 0;
    background: #f8f9fa;
    margin: 40px 0;
}

.mini-collections-section .section-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.mini-collections-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.mini-collections-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mini-collections-nav:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mini-collections-nav.prev {
    left: 10px;
}

.mini-collections-nav.next {
    right: 10px;
}

.mini-collections-grid {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.mini-collections-grid::-webkit-scrollbar {
    height: 8px;
}

.mini-collections-grid::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.mini-collections-grid::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.mini-collection-item {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.mini-collection-image {
    width: 400px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.mini-collection-item:hover .mini-collection-image {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.mini-collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mini-collection-item:hover .mini-collection-img {
    transform: scale(1.05);
}

.no-mini-collection-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 10px;
}

.mini-collection-name {
    font-size: 1.6rem; /* УВЕЛИЧИЛ ШРИФТ */
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-align: center;
    width: 100%;
    line-height: 1.2;
}

/* Скрываем кнопки на мобильных */
@media (max-width: 768px) {
    .mini-collections-nav {
        display: none;
    }
    
    .mini-collections-grid {
        gap: 15px;
        padding: 0 15px;
    }
    
    .mini-collection-item {
        flex: 0 0 300px;
    }
    
    .mini-collection-image {
        width: 300px;
        height: 150px;
    }
    
    .mini-collection-name {
        font-size: 1.3rem; /* УВЕЛИЧИЛ ШРИФТ ДЛЯ МОБИЛЬНЫХ */
    }
}

/* ===== МИНИ-КОЛЛЕКЦИИ КАТЕГОРИЙ ===== */
.mini-collections-section {
    padding: 40px 0;
    background: #f8f9fa;
    margin: 40px 0;
}

.mini-collections-section .section-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.mini-collections-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.mini-collections-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mini-collections-nav:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mini-collections-nav.prev {
    left: 10px;
}

.mini-collections-nav.next {
    right: 10px;
}

.mini-collections-grid {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.mini-collections-grid::-webkit-scrollbar {
    height: 8px;
}

.mini-collections-grid::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.mini-collections-grid::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.mini-collection-item {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.mini-collection-image {
    width: 400px;
    height: 260px; /* УВЕЛИЧЕНО НА 30% (было 200px) */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.mini-collection-item:hover .mini-collection-image {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.mini-collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mini-collection-item:hover .mini-collection-img {
    transform: scale(1.05);
}

.no-mini-collection-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 10px;
}

.mini-collection-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-align: center;
    width: 100%;
    line-height: 1.2;
}

/* Адаптивность - больше брейкпоинтов для плавного уменьшения */
@media (max-width: 1400px) {
    .mini-collection-item {
        flex: 0 0 380px;
    }
    
    .mini-collection-image {
        width: 380px;
        height: 247px;
    }
}

@media (max-width: 1200px) {
    .mini-collection-item {
        flex: 0 0 350px;
    }
    
    .mini-collection-image {
        width: 350px;
        height: 227px;
    }
}

@media (max-width: 1100px) {
    .mini-collection-item {
        flex: 0 0 320px;
    }
    
    .mini-collection-image {
        width: 320px;
        height: 208px;
    }
}

@media (max-width: 992px) {
    .mini-collection-item {
        flex: 0 0 300px;
    }
    
    .mini-collection-image {
        width: 300px;
        height: 195px;
    }
}

@media (max-width: 900px) {
    .mini-collection-item {
        flex: 0 0 280px;
    }
    
    .mini-collection-image {
        width: 280px;
        height: 182px;
    }
}

@media (max-width: 825px) {
    .mini-collection-item {
        flex: 0 0 260px;
    }
    
    .mini-collection-image {
        width: 260px;
        height: 169px;
    }
}

@media (max-width: 768px) {
    .mini-collections-nav {
        display: none;
    }
    
    .mini-collections-grid {
        gap: 15px;
        padding: 0 15px;
    }
    
    .mini-collection-item {
        flex: 0 0 240px;
    }
    
    .mini-collection-image {
        width: 240px;
        height: 156px;
    }
    
    .mini-collection-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 700px) {
    .mini-collection-item {
        flex: 0 0 220px;
    }
    
    .mini-collection-image {
        width: 220px;
        height: 143px;
    }
    
    .mini-collection-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 625px) {
    .mini-collection-item {
        flex: 0 0 200px;
    }
    
    .mini-collection-image {
        width: 200px;
        height: 130px;
    }
    
    .mini-collection-name {
        font-size: 1.1rem;
    }
    
    .mini-collections-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 550px) {
    .mini-collection-item {
        flex: 0 0 180px;
    }
    
    .mini-collection-image {
        width: 180px;
        height: 117px;
    }
    
    .mini-collection-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .mini-collection-item {
        flex: 0 0 160px;
    }
    
    .mini-collection-image {
        width: 160px;
        height: 104px;
    }
    
    .mini-collection-name {
        font-size: 0.9rem;
    }
    
    .mini-collections-section .section-title {
        font-size: 1.4rem;
    }
    
    .mini-collections-grid {
        gap: 10px;
        padding: 0 10px;
    }
}

@media (max-width: 425px) {
    .mini-collection-item {
        flex: 0 0 150px;
    }
    
    .mini-collection-image {
        width: 150px;
        height: 97px;
    }
    
    .mini-collection-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    .mini-collection-item {
        flex: 0 0 140px;
    }
    
    .mini-collection-image {
        width: 140px;
        height: 91px;
    }
    
    .mini-collection-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .mini-collection-item {
        flex: 0 0 130px;
    }
    
    .mini-collection-image {
        width: 130px;
        height: 84px;
    }
    
    .mini-collection-name {
        font-size: 0.75rem;
    }
}

/* ===== УНИФИЦИРОВАННЫЕ СТИЛИ ЗАГОЛОВКОВ ===== */

/* СБРОС ВСЕХ СТАРЫХ СТИЛЕЙ */
.section-title,
.section-title-wide,
.testimonials-title,
.featured-collections .section-title,
.mini-collections-section .section-title,
.product-title,
.filter-header h3,
.products-header h2,
.collection-name,
.mini-collection-name,
.testimonial-author,
.filter-section h4,
.section-description,
.section-description-wide,
.category-link,
.testimonial-text,
.collection-count {
    text-align: center !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    display: block;
}

/* ОСНОВНЫЕ ЗАГОЛОВКИ РАЗДЕЛОВ - ЕДИНЫЙ СТИЛЬ */
.section-title,
.section-title-wide,
.testimonials-title,
.featured-collections .section-title,
.mini-collections-section .section-title {
    font-size: 2.2rem;
    margin-bottom: 20px !important;
    color: #2c3e50;
}

/* УБИРАЕМ ВСЕ ПСЕВДОЭЛЕМЕНТЫ И ПОДЧЕРКИВАНИЯ */
.section-title::after,
.section-title-wide::after {
    display: none !important;
}

/* ЗАГОЛОВКИ ТОВАРОВ */
.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px !important;
    color: #2c3e50;
}

/* ЗАГОЛОВКИ ФИЛЬТРОВ И ПРОДУКТОВ */
.filter-header h3 {
    font-size: 1.4rem;
    margin-bottom: 20px !important;
    color: #2c3e50;
}

.products-header h2 {
    font-size: 2.2rem;
    margin-bottom: 25px !important;
    color: #2c3e50;
}

/* ЗАГОЛОВКИ КОЛЛЕКЦИЙ */
.collection-name {
    font-size: 1.4rem;
    margin-bottom: 10px !important;
}

.mini-collection-name {
    font-size: 1.4rem;
}

/* ЗАГОЛОВКИ В ОТЗЫВАХ */
.testimonial-author {
    font-size: 1.2rem;
    margin-top: 20px !important;
}

/* ЗАГОЛОВКИ ФИЛЬТРОВ */
.filter-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px !important;
    color: #34495e;
}

/* ОПИСАНИЯ РАЗДЕЛОВ */
.section-description,
.section-description-wide {
    font-size: 1.1rem;
    margin-bottom: 30px !important;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
    font-weight: 400 !important;
}

/* КАТЕГОРИИ */
.category-link {
    font-size: 0.95rem;
    font-weight: 700 !important;
}

/* ТЕКСТ ОТЗЫВОВ */
.testimonial-text {
    font-size: 1.1rem;
    margin-bottom: 20px !important;
    font-style: italic;
    font-weight: 400 !important;
}

/* СЧЕТЧИК КОЛЛЕКЦИЙ */
.collection-count {
    font-size: 0.95rem;
    font-weight: 400 !important;
}

/* ПЕРЕОПРЕДЕЛЯЕМ КОНТЕЙНЕРЫ ЗАГОЛОВКОВ */


.filter-header {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    border: none !important;
}

.products-header {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    border: none !important;
    display: block !important;
}

/* УБИРАЕМ FLEX И ДРУГИЕ ВЫРАВНИВАНИЯ В ЗАГОЛОВКАХ */
.filter-header,
.products-header {
    display: block !important;
    justify-content: normal !important;
    align-items: normal !important;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 1200px) {
    .section-title,
    .section-title-wide,
    .testimonials-title,
    .featured-collections .section-title,
    .mini-collections-section .section-title {
        font-size: 2rem;
        margin-bottom: 18px !important;
    }
    
    .products-header h2 {
        font-size: 1.6rem;
        margin-bottom: 22px !important;
    }
}

@media (max-width: 768px) {
    .section-title,
    .section-title-wide,
    .testimonials-title,
    .featured-collections .section-title,
    .mini-collections-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 16px !important;
    }
    
    .products-header h2 {
        font-size: 1.5rem;
        margin-bottom: 20px !important;
    }
    
    .collection-name,
    .mini-collection-name {
        font-size: 1.2rem;
        margin-bottom: 8px !important;
    }
    
    .filter-header h3 {
        font-size: 1.2rem;
        margin-bottom: 18px !important;
    }
    
    .section-description,
    .section-description-wide {
        font-size: 1rem;
        margin-bottom: 25px !important;
    }
}

@media (max-width: 480px) {
    .section-title,
    .section-title-wide,
    .testimonials-title,
    .featured-collections .section-title,
    .mini-collections-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 14px !important;
    }
    
    .products-header h2 {
        font-size: 1.4rem;
        margin-bottom: 18px !important;
    }
    
    .collection-name,
    .mini-collection-name {
        font-size: 1.1rem;
    }
    
    .product-title {
        font-size: 1rem;
        margin-bottom: 8px !important;
    }
    
    .testimonial-author {
        font-size: 1.1rem;
        margin-top: 15px !important;
    }
    
    .section-description,
    .section-description-wide {
        font-size: 0.95rem;
        margin-bottom: 20px !important;
    }
}

/* ДОПОЛНИТЕЛЬНЫЕ ПРАВКИ ДЛЯ ЦЕНТРИРОВАНИЯ */
.horizontal-categories {
    text-align: center !important;
}

.categories-container {
    justify-content: center !important;
    text-align: center !important;
}

.sort-options {
    justify-content: center !important;
    text-align: center !important;
}

.products-header,
.filter-header {
    text-align: center !important;
}

/* УБИРАЕМ ВСЕ СТАРЫЕ СТИЛИ КОНТЕЙНЕРОВ */
.filter-header,
.products-header {
    display: block !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ФОРСИРУЕМ ЦЕНТРИРОВАНИЕ ДЛЯ ВСЕХ ЭЛЕМЕНТОВ */
.filter-header > *,
.products-header > * {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Полноэкранная 3D Карусель Отзывов */
.testimonials-carousel-fullwidth {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.testimonials-carousel-fullwidth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.03"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.testimonials-fullwidth-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.testimonials-fullwidth-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-fullwidth {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-subtitle-fullwidth {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 300;
}

.carousel-fullwidth-container {
    position: relative;
    height: 500px;
    perspective: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 80px;
}

.carousel-fullwidth {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    width: 100%;
    cursor: grab;
}

.carousel-fullwidth.dragging {
    cursor: grabbing;
}

.testimonial-fullwidth-card {
    position: absolute;
    width: 450px;
    height: 350px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    cursor: grab;
}

.testimonial-fullwidth-card:active {
    cursor: grabbing;
}

.testimonial-fullwidth-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-fullwidth-card:hover .testimonial-fullwidth-content {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}

/* Позиционирование карточек */
.testimonial-fullwidth-card.center {
    transform: translateZ(50px) scale(1.1);
    z-index: 10;
}

.testimonial-fullwidth-card.center .testimonial-fullwidth-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.testimonial-fullwidth-card.left {
    transform: translateX(-400px) translateZ(-30px) scale(0.9);
    opacity: 0.8;
    z-index: 5;
}

.testimonial-fullwidth-card.right {
    transform: translateX(400px) translateZ(-30px) scale(0.9);
    opacity: 0.8;
    z-index: 5;
}

.testimonial-fullwidth-card.far-left {
    transform: translateX(-650px) translateZ(-60px) scale(0.8);
    opacity: 0.5;
    z-index: 1;
}

.testimonial-fullwidth-card.far-right {
    transform: translateX(650px) translateZ(-60px) scale(0.8);
    opacity: 0.5;
    z-index: 1;
}

.testimonial-fullwidth-card.hidden {
    opacity: 0;
    transform: translateX(800px) scale(0.7);
}

/* Иконка цитаты */
.quote-icon-fullwidth {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
    line-height: 1;
    opacity: 0.3;
}

/* Текст отзыва */
.testimonial-fullwidth-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #2c3e50;
    margin: 0 0 30px 0;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Футер отзыва */
.testimonial-fullwidth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 2px solid #f8f9fa;
}

.testimonial-fullwidth-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-fullwidth-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #667eea;
    background: white;
}

.testimonial-fullwidth-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo-fullwidth {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #f8f9fa;
    color: #667eea;
}

.testimonial-fullwidth-author-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-fullwidth-author {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.testimonial-fullwidth-rating {
    font-size: 1.3rem;
    color: #ffd700;
}

.testimonial-fullwidth-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.testimonial-fullwidth-date {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

/* Навигация */
.carousel-fullwidth-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 20;
}

.carousel-fullwidth-prev,
.carousel-fullwidth-next {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-fullwidth-prev:hover,
.carousel-fullwidth-next:hover {
    background: white;
    color: #667eea;
    transform: scale(1.1);
    border-color: white;
}

.carousel-fullwidth-dots {
    display: flex;
    gap: 15px;
}

.carousel-fullwidth-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-fullwidth-dot.active {
    background: white;
    transform: scale(1.4);
}

/* Состояние пустых отзывов */
.no-testimonials-fullwidth {
    text-align: center;
    padding: 80px 0;
}

.empty-state-fullwidth {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon-fullwidth {
    font-size: 5rem;
    margin-bottom: 25px;
    opacity: 0.7;
    color: white;
}

.empty-state-fullwidth h3 {
    color: white;
    margin-bottom: 15px;
    font-weight: 300;
    font-size: 2rem;
}

.empty-state-fullwidth p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .testimonial-fullwidth-card {
        width: 400px;
        height: 320px;
    }
    
    .testimonial-fullwidth-card.left {
        transform: translateX(-320px) translateZ(-30px) scale(0.9);
    }
    
    .testimonial-fullwidth-card.right {
        transform: translateX(320px) translateZ(-30px) scale(0.9);
    }
    
    .testimonial-fullwidth-card.far-left {
        transform: translateX(-520px) translateZ(-60px) scale(0.8);
    }
    
    .testimonial-fullwidth-card.far-right {
        transform: translateX(520px) translateZ(-60px) scale(0.8);
    }
}

@media (max-width: 768px) {
    .testimonials-carousel-fullwidth {
        padding: 60px 0;
    }
    
    .section-title-fullwidth {
        font-size: 2.5rem;
    }
    
    .section-subtitle-fullwidth {
        font-size: 1.2rem;
    }
    
    .carousel-fullwidth-container {
        height: 400px;
    }
    
    .testimonial-fullwidth-card {
        width: 320px;
        height: 280px;
    }
    
    .testimonial-fullwidth-content {
        padding: 25px;
    }
    
    .testimonial-fullwidth-card.left {
        transform: translateX(-250px) translateZ(-30px) scale(0.9);
    }
    
    .testimonial-fullwidth-card.right {
        transform: translateX(250px) translateZ(-30px) scale(0.9);
    }
    
    .testimonial-fullwidth-card.far-left {
        transform: translateX(-380px) translateZ(-60px) scale(0.8);
    }
    
    .testimonial-fullwidth-card.far-right {
        transform: translateX(380px) translateZ(-60px) scale(0.8);
    }
    
    .quote-icon-fullwidth {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .testimonial-fullwidth-text {
        font-size: 1rem;
        -webkit-line-clamp: 3;
    }
    
    .testimonial-fullwidth-photo {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-fullwidth-author {
        font-size: 1.1rem;
    }
    
    .carousel-fullwidth-nav {
        gap: 20px;
        margin-top: 40px;
    }
    
    .carousel-fullwidth-prev,
    .carousel-fullwidth-next {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel-fullwidth {
        padding: 40px 0;
    }
    
    .section-title-fullwidth {
        font-size: 2rem;
    }
    
    .section-subtitle-fullwidth {
        font-size: 1rem;
    }
    
    .carousel-fullwidth-container {
        height: 350px;
    }
    
    .testimonial-fullwidth-card {
        width: 280px;
        height: 250px;
    }
    
    .testimonial-fullwidth-content {
        padding: 20px;
    }
    
    .testimonial-fullwidth-text {
        -webkit-line-clamp: 2;
        font-size: 0.9rem;
    }
    
    .testimonial-fullwidth-photo {
        width: 40px;
        height: 40px;
    }
    
    .no-photo-fullwidth {
        font-size: 1.5rem;
    }
    
    .testimonial-fullwidth-author {
        font-size: 1rem;
    }
    
    .testimonial-fullwidth-rating {
        font-size: 1rem;
    }
}

/* Добавьте к существующему CSS */
.testimonial-fullwidth-card {
    transition: transform 0.1s ease; /* Быстрая реакция на перетаскивание */
}

.carousel-fullwidth.dragging .testimonial-fullwidth-card {
    transition: none; /* Убираем анимацию при активном перетаскивании */
}

/* После перетаскивания - плавный возврат */
.testimonial-fullwidth-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Добавьте в ваш CSS файл */
.products-grid-main {
    transition: opacity 0.3s ease;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

/* Скрываем хедер/футер на мобильных для главной */
@media (max-width: 768px) {
    .premium-header,
    .navigation-bar,
    .brand-bar,
    .premium-footer {
        display: none !important;
    }
}

/* ЭКСТРЕННЫЙ ФИКС ДЛЯ МОБИЛЬНЫХ КНОПОК */
.mobile-catalog-controls {
    display: none;
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px;
    margin: -20px -20px 20px -20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-controls-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.mobile-filter-btn,
.mobile-sort-btn {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background: #2c3e50 !important;
    border: 2px solid #2c3e50 !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-filter-btn:hover,
.mobile-sort-btn:hover {
    background: #34495e !important;
    border-color: #34495e !important;
    transform: translateY(-2px);
}

.mobile-control-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media screen and (max-width: 768px) {
    .mobile-catalog-controls {
        display: block !important;
    }
    
    .catalog-header,
    .filters-sidebar {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    .mobile-catalog-controls {
        display: none !important;
    }
}

/* ===== ИСПРАВЛЕНИЕ ДЛЯ ТОВАРОВ В БЛОКАХ "ЛУЧШАЯ ЦЕНА", "НОВИНКИ", "ЭКСКЛЮЗИВ" ===== */

/* Для планшетов */
@media (max-width: 992px) {
    .products-carousel-super-wide {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

/* Для мобильных */
@media (max-width: 768px) {
    .products-carousel-super-wide {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    /* Принудительно уменьшаем все элементы внутри */
    .products-carousel-super-wide .product-card-main,
    .products-carousel-super-wide .product-card-main * {
        box-sizing: border-box !important;
    }
    
    .products-carousel-super-wide .product-title {
        font-size: 11px !important;
        line-height: 1.2 !important;
        min-height: 2.8em !important;
        -webkit-line-clamp: 2 !important;
        text-align: center !important;
        margin: 5px 0 !important;
    }
    
    .products-carousel-super-wide .product-image-container {
        padding: 5px !important;
    }
    
    .products-carousel-super-wide .current-price-small {
        font-size: 14px !important;
    }
    
    .products-carousel-super-wide .old-price-small {
        font-size: 11px !important;
    }
}

@media (max-width: 576px) {
    .products-carousel-super-wide {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    .products-carousel-super-wide .product-title {
        font-size: 10px !important;
    }
    
    .products-carousel-super-wide .current-price-small {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .products-carousel-super-wide {
        gap: 5px !important;
    }
    
    .products-carousel-super-wide .product-title {
        font-size: 9px !important;
    }
    
    .products-carousel-super-wide .current-price-small {
        font-size: 12px !important;
    }
}

@media (max-width: 360px) {
    .products-carousel-super-wide {
        gap: 4px !important;
    }
    
    .products-carousel-super-wide .product-title {
        font-size: 8px !important;
    }
    
    .products-carousel-super-wide .current-price-small {
        font-size: 11px !important;
    }
}

/* ПОПУЛЯРНЫЕ ТОВАРЫ (.products-grid-main) */
@media (max-width: 768px) {
    .products-grid-main .product-title {
        font-size: 11px !important;
        min-height: 2.8em !important;
        line-height: 1.2 !important;
        -webkit-line-clamp: 2 !important;
        text-align: center !important;
        margin: 5px 0 !important;
    }
    
    .products-grid-main .product-info-main {
        padding: 8px 5px !important;
    }
    
    .products-grid-main .current-price-small {
        font-size: 14px !important;
    }
    
    .products-grid-main .old-price-small {
        font-size: 11px !important;
    }
    
    .products-grid-main .buy-now-btn {
        font-size: 12px !important;
        padding: 8px 12px !important;
        min-height: 36px !important;
    }
    
    .products-grid-main .product-category {
        font-size: 9px !important;
        margin-bottom: 4px !important;
    }
}

@media (max-width: 576px) {
    .products-grid-main .product-title {
        font-size: 10px !important;
        min-height: 2.6em !important;
    }
    
    .products-grid-main .current-price-small {
        font-size: 13px !important;
    }
    
    .products-grid-main .old-price-small {
        font-size: 10px !important;
    }
    
    .products-grid-main .buy-now-btn {
        font-size: 11px !important;
        padding: 7px 10px !important;
        min-height: 32px !important;
    }
}

@media (max-width: 480px) {
    .products-grid-main .product-title {
        font-size: 9px !important;
        min-height: 2.4em !important;
    }
    
    .products-grid-main .current-price-small {
        font-size: 12px !important;
    }
    
    .products-grid-main .buy-now-btn {
        font-size: 10px !important;
        padding: 6px 8px !important;
    }
}

@media (max-width: 360px) {
    .products-grid-main .product-title {
        font-size: 8px !important;
        min-height: 2.2em !important;
    }
    
    .products-grid-main .current-price-small {
        font-size: 11px !important;
    }
    
    .products-grid-main .old-price-small {
        font-size: 9px !important;
    }
    
    .products-grid-main .buy-now-btn {
        font-size: 9px !important;
        padding: 5px 6px !important;
        min-height: 28px !important;
    }
}

/* ===== АДАПТИВНОЕ УМЕНЬШЕНИЕ ДЛЯ 8 ПРЕИМУЩЕСТВ В ОДНОЙ СТРОКЕ ===== */

/* Для очень широких экранов (более 1500px) */
@media (min-width: 1501px) {
    .advantages-bar > div > div {
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 15px !important;
    }
    
    .advantage-icon {
        width: 160px !important;
        height: 160px !important;
        margin: 0 auto 15px auto !important;
    }
    
    .advantage-icon img {
        max-width: 140px !important;
        max-height: 140px !important;
    }
    
    .advantage-item h3 {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .advantage-item p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
}

/* Для экранов 1200px - 1500px - ТАКИЕ ЖЕ РАЗМЕРЫ, КАК НИЖЕ 1200px */
@media (min-width: 1200px) and (max-width: 1500px) {
    .advantages-bar > div > div {
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 8px !important;
    }
    
    .advantage-item {
        padding: 12px 3px !important;
    }
    
    .advantage-icon {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 10px auto !important;
    }
    
    .advantage-icon img {
        max-width: 100px !important;
        max-height: 100px !important;
    }
    
    .advantage-item h3 {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .advantage-item p {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }
}

/* Для экранов 1024px - 1199px (такие же размеры, как выше) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .advantages-bar > div > div {
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 8px !important;
    }
    
    .advantage-item {
        padding: 12px 3px !important;
    }
    
    .advantage-icon {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 10px auto !important;
    }
    
    .advantage-icon img {
        max-width: 100px !important;
        max-height: 100px !important;
    }
    
    .advantage-item h3 {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .advantage-item p {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }
}

/* Для планшетов в ландшафтной ориентации (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .advantages-bar > div > div {
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 5px !important;
    }
    
    .advantage-item {
        padding: 10px 2px !important;
    }
    
    .advantage-icon {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 8px auto !important;
    }
    
    .advantage-icon img {
        max-width: 80px !important;
        max-height: 80px !important;
    }
    
    .advantage-item h3 {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }
    
    .advantage-item p {
        font-size: 0.8rem !important;
        line-height: 1.1 !important;
        display: none !important; /* Скрываем описание чтобы точно влезло */
    }
}

/* Для экранов меньше 768px (мобильные) уже есть стили в HTML */

/* Дополнительная оптимизация - динамическое уменьшение на очень узких экранах */
@media (min-width: 768px) and (max-width: 900px) {
    .advantages-bar > div > div {
        gap: 3px !important;
    }
    
    .advantage-icon {
        width: 90px !important;
        height: 90px !important;
    }
    
    .advantage-icon img {
        max-width: 70px !important;
        max-height: 70px !important;
    }
    
    .advantage-item h3 {
        font-size: 0.85rem !important;
    }
}

/* Еще более компактно для очень узких десктопов */
@media (min-width: 768px) and (max-width: 850px) {
    .advantages-bar > div > div {
        gap: 2px !important;
    }
    
    .advantage-item {
        padding: 8px 1px !important;
    }
    
    .advantage-icon {
        width: 85px !important;
        height: 85px !important;
    }
    
    .advantage-icon img {
        max-width: 65px !important;
        max-height: 65px !important;
    }
    
    .advantage-item h3 {
        font-size: 0.8rem !important;
        height: 2.5em !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
}

/* Универсальные правила для всех размеров (для экономии кода можно объединить одинаковые медиазапросы) */
@media (min-width: 1024px) and (max-width: 1500px) {
    .advantages-bar > div > div {
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 8px !important;
    }
    
    .advantage-item {
        padding: 12px 3px !important;
    }
    
    .advantage-icon {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 10px auto !important;
    }
    
    .advantage-icon img {
        max-width: 100px !important;
        max-height: 100px !important;
    }
    
    .advantage-item h3 {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .advantage-item p {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }
}