/* featured-products.css */
.featured-products-section {
    padding: 2rem 0;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #000;
    text-align: left;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-products-container {
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
}

.featured-products-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 1rem 0;
}

.featured-products-wrapper::-webkit-scrollbar {
    display: none;
}

.featured-product-card {
    flex: 0 0 300px;
    position: relative;
}

.featured-product-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.featured-product-image {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    background: #fff;
}

.featured-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    backface-visibility: hidden;
}

.featured-product-image .hover-image {
    opacity: 0;
    z-index: 1;
}

.featured-product-card:hover .hover-image {
    opacity: 1;
}

.featured-product-info {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.featured-product-title {
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    margin: 0;
    text-align: left;
}

.featured-product-variants {
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.featured-color-variant {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    border: 1.5px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.featured-color-variant:hover {
    transform: scale(1.2);
}

.featured-color-variant.active {
    box-shadow: 0 0 0 1px #000;
}

.add-to-cart-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    background: transparent;
    color: #000;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    border-color: #000;
}

.add-to-cart-btn .price {
    font-weight: 500;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: #f5f5f5;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev { left: 1rem; }
.carousel-nav.next { right: 1rem; }

@media (max-width: 768px) {
    @media (hover: none) {
        .featured-product-card:hover .hover-image {
            opacity: 0 !important;
        }
    }
    
    .section-header {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .featured-products-container {
        padding: 0 1rem;
    }

    .featured-product-card {
        flex: 0 0 250px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .add-to-cart-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    @media (hover: none) {
        .featured-product-card:hover .hover-image {
            opacity: 0 !important;
        }
    }
    
    .section-title {
        font-size: 1rem;
    }

    .featured-product-card {
        flex: 0 0 200px;
    }

    .featured-product-title {
        font-size: 0.9rem;
    }

    .featured-color-variant {
        width: 14px;
        height: 14px;
    }

    .add-to-cart-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}



