.products-container {
    max-width: 1680px;
    margin: 0 auto;
    /*padding: 20px;*/
    pointer-events: none;
    padding-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(328px, 1fr));
    gap: 30px;
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 328px;
    margin: 0 auto;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: scale(1.02);
}

.card-image {
    position: relative;
    background-color: #f7f7f7;
    height: 551px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.card-image img {
    width: 328px;
    height: 328px;
    object-fit: cover;
}

.product-new-label {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #242323;
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 21.6px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 10px 0;
}

.carousel-indicators span {
    width: 40px;
    height: 3px;
    background-color: rgba(36, 35, 35, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.carousel-indicators span::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    bottom: -8px;
}

.carousel-indicators span:hover {
    background-color: rgba(36, 35, 35, 0.6);
    width: 50px;
}

.carousel-indicators span.active {
    background-color: #242323;
    width: 60px;
}

.product-info {
    position: relative;
    height: 54px;
    width: 100%;
}

.product-info h3 {
    color: #242323;
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 21.6px;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
}

.product-info .product-code {
    color: #727272;
    font-size: 18px;
    font-family: 'Forum', serif;
    font-weight: 400;
    text-transform: capitalize;
    line-height: 21.6px;
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
}

.product-info .price-label {
    color: #727272;
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 21.6px;
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
}

.product-info .product-price {
    color: #727272;
    font-size: 18px;
    font-family: Arial !important;

    /*font-family: 'Raleway', sans-serif;*/
    font-weight: 400;
    text-transform: uppercase;
    line-height: 21.6px;
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
}

/* Стили для баннера */
.hero-banner {
    width: 100vw; /* Полная ширина окна */
    margin-left: calc(-1 * (100vw - min(1680px, 100%)) / 2); /* Компенсация отступов контейнера */
    height: 655px; /* Фиксированная высота для десктопов */
    overflow: hidden; /* Предотвращение выхода за границы */
    position: relative; /* Для корректного позиционирования */
    margin-bottom: 20px; /* Отступ снизу */
}

.hero-banner img {
    width: 100%; /* Заполнение всей ширины */
    height: 100%; /* Заполнение всей высоты */
    object-fit: cover; /* Сохранение пропорций */
    display: block; /* Устранение нижнего зазора */
    position: absolute; /* Заполнение контейнера */
    top: 0;
    left: 0;
}

/* Стили для заголовка и описания типа изделия */
.product-type-header {
    text-align: center; /* Центрирование содержимого */
    margin-bottom: 30px; /* Отступ снизу */
}

.product-type-header h2 {
    color: #242323;
    font-size: 28px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 33.6px;
    margin: 0 0 10px 0; /* Отступ снизу для разделения с описанием */
}

.product-type-description {
    color: #727272;
    font-size: 18px;
    font-family: 'Forum', serif;
    font-weight: 400;
    line-height: 24px;
    max-width: 800px; /* Ограничение ширины для читаемости */
    margin: 0 auto; /* Центрирование */
}

/* Стили для кнопки избранного */
.favorite-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    transition: transform 0.3s ease;
}

.favorite-button:hover {
    transform: scale(1.1);
}

.favorite-icon {
    width: 24px;
    height: 24px;
    stroke: #242323;
    fill: none;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.favorite-icon.filled {
    fill: #242323;
    stroke: #242323;
}

/* Адаптивные стили для ноутбуков и планшетов */
@media (max-width: 1200px) {
    .products-container {
        max-width: 960px;
        padding: 15px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .product-card {
        max-width: 280px;
    }

    .card-image {
        height: 450px;
    }

    .card-image img {
        width: 260px;
        height: 260px;
    }

    .product-new-label {
        font-size: 16px;
        line-height: 19.2px;
    }

    .carousel-indicators {
        gap: 10px;
    }

    .carousel-indicators span {
        width: 35px;
    }

    .carousel-indicators span:hover,
    .carousel-indicators span.active {
        width: 45px;
    }

    .product-info h3,
    .product-info .product-code,
    .product-info .price-label,
    .product-info .product-price {
        font-size: 16px;
        line-height: 19.2px;
    }

    .hero-banner {
        height: 500px; /* Уменьшенная высота */
        margin-left: calc(-1 * (100vw - min(960px, 100%)) / 2); /* Компенсация для меньшего контейнера */
    }

    .product-type-header h2 {
        font-size: 24px;
        line-height: 28.8px;
    }

    .product-type-description {
        font-size: 16px;
        line-height: 21.6px;
        max-width: 600px;
    }

    .favorite-button {
        top: 15px;
        right: 15px;
        padding: 4px;
    }

    .favorite-icon {
        width: 22px;
        height: 22px;
    }
}

/* Адаптивные стили для мобильной версии: 2 карточки в строке без прокрутки */
@media (max-width: 768px) {
    /* Контейнер для блока товаров */
    .products-container {
        overflow: hidden;
        padding: 20px 15px;
    }

    /* Сетка товаров - две карточки в строке */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Два столбца */
        gap: 15px;
        padding: 10px 0;
        margin: 0 auto;
        width: 100%;
    }

    /* Карточки товаров */
    .product-card {
        max-width: none; /* Убираем ограничение ширины */
        width: 100%; /* Полная ширина столбца */
        margin: 0; /* Убираем авто-центрирование */
    }

    /* Изображения товаров */
    .card-image {
        height: 300px;
    }

    .card-image img {
        width: 100%; /* Полная ширина карточки */
        height: 250px;
        object-fit: cover;
    }

    /* Индикаторы карусели */
    .carousel-indicators {
        gap: 10px;
        bottom: 15px;
    }

    .carousel-indicators span {
        width: 30px;
        height: 3px;
    }

    .carousel-indicators span:hover,
    .carousel-indicators span.active {
        width: 40px;
    }

    /* Шрифты в информации о товаре */
    .product-info h3,
    .product-info .product-code,
    .product-info .price-label,
    .product-info .product-price {
        font-size: 16px;
        line-height: 19.2px;
    }
    .product-code{
        display: none;
    }
    .hero-banner {
        height: 400px; /* Высота для планшетов */
        margin-left: 0; /* Без компенсации, так как контейнер не ограничивает */
    }

    .product-type-header {
        margin-bottom: 20px;
    }

    .product-type-header h2 {
        font-size: 20px;
        line-height: 24px;
    }

    .product-type-description {
        font-size: 14px;
        line-height: 19.2px;
        max-width: 90%;
    }

    .favorite-button {
        top: 15px;
        right: 15px;
        padding: 4px;
    }

    .favorite-icon {
        width: 20px;
        height: 20px;
    }
}

/* Дополнительные корректировки для очень маленьких экранов */
@media (max-width: 480px) {
    /* Контейнер для блока товаров */
    .products-container {
        padding: 15px 10px;
    }

    /* Сетка товаров */
    .products-grid {
        gap: 12px;
    }

    /* Изображения товаров */
    .card-image {
        height: 250px;
    }

    .card-image img {
        height: 200px;
    }

    /* Индикаторы карусели */
    .carousel-indicators {
        gap: 8px;
        bottom: 10px;
    }

    .carousel-indicators span {
        width: 25px;
        height: 2px;
    }

    .carousel-indicators span:hover,
    .carousel-indicators span.active {
        width: 35px;
    }

    /* Шрифты в информации о товаре */
    .product-info h3,
    .product-info .product-code,
    .product-info .price-label,
    .product-info .product-price {
        font-size: 14px;
        line-height: 16.8px;
    }

    .hero-banner {
        height: 300px; /* Высота для мобильных */
    }

    .product-type-header h2 {
        font-size: 18px;
        line-height: 21.6px;
    }

    .product-type-description {
        font-size: 12px;
        line-height: 16.8px;
    }

    .favorite-button {
        top: 10px;
        right: 10px;
        padding: 3px;
    }

    .favorite-icon {
        width: 18px;
        height: 18px;
    }
}

/* Адаптивные стили для очень маленьких смартфонов */
@media (max-width: 320px) {
    .products-container {
        padding: 10px 8px;
    }

    .products-grid {
        gap: 10px;
    }

    .card-image {
        height: 200px;
    }

    .card-image img {
        height: 160px;
    }

    .product-new-label {
        font-size: 12px;
        line-height: 14.4px;
        top: 10px;
        left: 10px;
    }

    .carousel-indicators {
        gap: 6px;
        bottom: 8px;
    }

    .carousel-indicators span {
        width: 20px;
        height: 2px;
    }

    .carousel-indicators span:hover,
    .carousel-indicators span.active {
        width: 30px;
    }

    .product-info {
        height: 48px;
    }

    .product-info h3,
    .product-info .product-code,
    .product-info .price-label,
    .product-info .product-price {
        font-size: 12px;
        line-height: 14.4px;
    }

    .hero-banner {
        height: 250px; /* Высота для маленьких экранов */
    }

    .product-type-header h2 {
        font-size: 16px;
        line-height: 19.2px;
    }

    .product-type-description {
        font-size: 11px;
        line-height: 15.4px;
    }

    .favorite-button {
        top: 8px;
        right: 8px;
        padding: 2px;
    }

    .favorite-icon {
        width: 16px;
        height: 16px;
    }
}



.favorite-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.favorite-icon {
    transition: all 0.3s ease;
    stroke: #242323;
    fill: none;
}

.favorite-icon.filled {
    fill: #242323;
    stroke: #242323;
}

/* Анимация при клике */
.favorite-btn:active {
    transform: scale(0.95);
}

/* Адаптивность для больших карточек */
.collection-product-card.large .favorite-btn {
    width: 45px;
    height: 45px;
    top: 25px;
    right: 25px;
}

.collection-product-card.large .favorite-icon {
    width: 28px;
    height: 28px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .favorite-btn {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }

    .favorite-icon {
        width: 20px;
        height: 20px;
    }
}
