/* ============ Öne Çıkan Ürünler (Favoriler) ============ */

.featured-products {
    width: 100%;
    background: #FFFFFF;
    padding: 40px 22px 54px;
}

.featured-products__header {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 22px;
}

.featured-products__header h2 {
    font-size: 24px;
    font-weight: 500;
    color: #20252A;
    letter-spacing: -0.01em;
    margin: 0;
}

.featured-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    min-width: 0;
}

.product-card__link {
    display: block;
    text-decoration: none;
    outline: none;
}

.product-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.15;
    overflow: hidden;
    background: #F0F0EE;
}

.product-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card__image--primary {
    opacity: 1;
    z-index: 1;
}

.product-card__image--hover {
    opacity: 0;
    z-index: 2;
}

.product-card:hover .product-card__image--primary,
.product-card:focus-within .product-card__image--primary {
    opacity: 0;
}

.product-card:hover .product-card__image--hover,
.product-card:focus-within .product-card__image--hover {
    opacity: 1;
    transform: scale(1.015);
}

.product-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    font-size: 11px;
    font-weight: 500;
    color: #5A4A8A;
    background: #ECE8F5;
    border-radius: 12px;
    padding: 4px 10px;
    line-height: 1.3;
    white-space: nowrap;
}

.product-card__content {
    padding: 14px 2px 0;
}

.product-card__name {
    font-size: 15px;
    font-weight: 500;
    color: #24282C;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-card__price-old {
    font-size: 13px;
    color: #9AA0A6;
    text-decoration: line-through;
}

.product-card__price-current {
    font-size: 15px;
    font-weight: 500;
    color: #8E3B3B;
}

.product-card__desc {
    font-size: 12.5px;
    color: #666B70;
    line-height: 1.45;
    margin: 7px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__colors {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
}

.product-card__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: inline-block;
    box-sizing: border-box;
}

.product-card__dot--active {
    border: 2px solid #20252A;
}

.product-card__more {
    font-size: 12px;
    color: #666B70;
}

/* View All */
.featured-products__footer {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.featured-products__link {
    position: relative;
    font-size: 13.5px;
    font-weight: 500;
    color: #20252A;
    text-decoration: none;
    padding-bottom: 6px;
    letter-spacing: 0.02em;
}

.featured-products__link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #D8D5CE;
    transform: translateX(-50%) scaleX(1);
    transform-origin: center;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), background 400ms;
}

.featured-products__link:hover::after,
.featured-products__link:focus-visible::after {
    transform: translateX(-50%) scaleX(1.35);
    background: #20252A;
}

/* Tablet: 2 ürün yan yana */
@media (max-width: 899px) {
    .featured-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

/* Mobil: 2 ürün yan yana, hover yok — ana görsel kalır */
@media (max-width: 599px) {
    .featured-products {
        padding: 32px 16px 46px;
    }

    .featured-products__header h2 {
        font-size: 22px;
    }

    .product-card__name {
        font-size: 14px;
    }

    .product-card__price-current {
        font-size: 14px;
    }

    .product-card__desc {
        font-size: 12px;
    }

    .product-card__dot {
        width: 18px;
        height: 18px;
    }

    .product-card:hover .product-card__image--primary,
    .product-card:focus-within .product-card__image--primary {
        opacity: 1;
    }

    .product-card:hover .product-card__image--hover,
    .product-card:focus-within .product-card__image--hover {
        opacity: 0;
        transform: none;
    }
}
