.featured-products {
    max-width: 1680px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.featured-products .firm-style {
    color: #727272;
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 21.6px;
    margin: 0 0 10px 0;
}

.featured-products h2 {
    color: #242323;
    font-size: 36px;
    font-family: 'Forum', serif;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 36px;
    margin: 0 0 40px 0;
}

.featured-product-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: #E4E4E4;
    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: 'Raleway', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 21.6px;
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
}

/* Адаптивные стили для ноутбуков и планшетов */
@media (max-width: 1200px) {
    .featured-products {
        max-width: 960px;
        padding: 30px 15px;
    }

    .featured-product-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;
    }

    .featured-products h2 {
        font-size: 32px;
        line-height: 32px;
    }

    .featured-products .firm-style {
        font-size: 16px;
        line-height: 19.2px;
    }
}

/* Адаптивные стили для мобильной версии: 2 карточки в строке без прокрутки */
@media (max-width: 768px) {
    /* Контейнер для блока товаров */
    .featured-products {
        overflow: hidden;
        padding: 20px 15px;
    }

    /* Сетка товаров - две карточки в строке */
    .featured-product-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;
    }
}

/* Дополнительные корректировки для очень маленьких экранов */
@media (max-width: 480px) {
    .product-card {
        max-width: none;
        width: 100%;
    }

    .card-image {
        height: 300px;
    }

    .card-image img {
        width: 100%;
        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;
    }
}

/* Адаптивные стили для очень маленьких смартфонов */
@media (max-width: 320px) {
    .featured-products {
        padding: 15px 10px;
    }

    .featured-product-grid {
        gap: 10px;
    }

    .product-card {
        max-width: none;
        width: 100%;
    }

    .card-image {
        height: 250px;
    }

    .card-image img {
        width: 100%;
        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;
    }

    .featured-products h2 {
        font-size: 24px;
        line-height: 24px;
    }

    .featured-products .firm-style {
        font-size: 12px;
        line-height: 14.4px;
    }
}


/* Стили для унифицированных кнопок избранного */
.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-btn:active {
    transform: scale(0.95);
}

.favorite-icon {
    transition: all 0.3s ease;
    stroke: #242323;
    fill: none;
    width: 24px;
    height: 24px;
}

.favorite-icon.filled {
    fill: #242323;
    stroke: #242323;
}

/* Скрываем старые стили кнопок избранного */
.favorite-button {
    display: none !important;
}

/* Мобильная адаптация для кнопок избранного */
@media (max-width: 768px) {
    .favorite-btn {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }

    .favorite-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .favorite-btn {
        width: 32px;
        height: 32px;
        top: 12px;
        right: 12px;
    }

    .favorite-icon {
        width: 18px;
        height: 18px;
    }
}