/* ========================================
   FEATURED PRODUCTS SECTION
   Modern product cards with size selectors
   ======================================== */

.featured-products-section {
    padding: 4rem 0;
    background: #fafafa;
}

.featured-products-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    margin-top: 2rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.featured-products-grid::-webkit-scrollbar {
    display: none;
}

/* Product Card */
.featured-product-card {
    flex: 0 0 280px;
    width: 280px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.featured-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Product Image Container */
.featured-product-image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f5;
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.05);
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.wishlist-btn svg {
    color: #333;
    transition: all 0.3s ease;
}

.wishlist-btn:hover svg {
    color: #e11d48;
    fill: #e11d48;
}

/* Size Selector Overlay */
.size-selector-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.featured-product-card:hover .size-selector-overlay {
    opacity: 1;
    transform: translateY(0);
}

.size-options {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.size-option {
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #333;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-option:hover {
    background: #ffffff;
    border-color: #333;
    transform: scale(1.05);
}

.size-option.selected {
    background: #333;
    color: #ffffff;
    border-color: #333;
}

/* Product Content */
.featured-product-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-category {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #666;
    text-transform: uppercase;
}

.featured-product-title {
    margin: 0;
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.4;
}

.featured-product-title a {
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.featured-product-title a:hover {
    color: #333;
}

/* Price Row */
.featured-price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.featured-price-current {
    font-size: var(--text-xl);
    font-weight: 700;
    color: #1a1a1a;
}

.featured-price-original {
    font-size: var(--text-base);
    color: #999;
    text-decoration: line-through;
}

.featured-discount {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 2px transparent;
}

.color-dot:hover {
    box-shadow: 0 0 0 2px #333;
    transform: scale(1.15);
}

.color-dot.selected {
    box-shadow: 0 0 0 2px #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-products-section {
        padding: 3rem 0;
    }

    .featured-product-card {
        flex: 0 0 240px;
        width: 240px;
    }

    .featured-product-content {
        padding: 1rem;
        gap: 0.5rem;
    }

    .featured-product-title {
        font-size: 0.9rem;
    }

    .featured-price-current {
        font-size: 1.1rem;
    }

    .featured-price-original {
        font-size: 0.9rem;
    }

    .size-option {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .featured-product-card {
        flex: 0 0 220px;
        width: 220px;
    }

    .size-selector-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    }

    /* Remove padding for edge-to-edge scroll */
    .featured-products-section .container {
        padding-left: 0;
        padding-right: 0;
    }

    .featured-products-section .section-header-row {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .featured-products-grid {
        padding-left: 1rem;
    }
}

/* View All Link */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link:hover {
    color: #000;
}

.view-all-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.view-all-link:hover::after {
    transform: translateX(4px);
}