/* ============================================
   FEATURED PRODUCTS CAROUSEL STYLES
   ============================================ */

.featured-products-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

.featured-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-carousel-track-container {
    overflow: hidden;
    padding: 0 60px;
}

.featured-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-product-card {
    flex: 0 0 calc((100% - 72px) / 4);
    /* 4 cards on desktop */
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.featured-product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e9ecef;
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--spacing-lg);
    transition: transform 0.3s ease;
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.05);
}

.featured-product-info {
    padding: var(--spacing-xl);
    text-align: center;
}

.featured-product-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-product-price {
    font-size: var(--font-size-md);
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.featured-product-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.featured-btn-details,
.featured-btn-select {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid;
}

.featured-btn-details {
    background: white;
    color: var(--color-dark);
    border-color: #dee2e6;
}

.featured-btn-details:hover {
    background: #f8f9fa;
    border-color: var(--color-dark);
}

.featured-btn-select {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.featured-btn-select:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.featured-btn-details svg,
.featured-btn-select svg {
    width: 16px;
    height: 16px;
}

/* Navigation Buttons */
.featured-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.featured-nav-prev {
    left: 0;
}

.featured-nav-next {
    right: 0;
}

.featured-carousel-nav:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.featured-carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.featured-carousel-nav svg {
    width: 24px;
    height: 24px;
}

/* Dots Indicator */
.featured-carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-2xl);
}

.featured-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.featured-carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.featured-carousel-dot:hover {
    background: var(--color-primary);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1280px) {
    .featured-product-card {
        flex: 0 0 calc((100% - 48px) / 3);
        /* 3 cards on tablet landscape */
    }
}

@media (max-width: 1024px) {
    .featured-product-card {
        flex: 0 0 calc((100% - 24px) / 2);
        /* 2 cards on tablet */
    }

    .featured-carousel-track-container {
        padding: 0 50px;
    }

    .featured-carousel-nav {
        width: 44px;
        height: 44px;
    }

    .featured-product-image {
        height: 240px;
    }

    .featured-product-title {
        font-size: var(--font-size-md);
        min-height: 48px;
    }
}

@media (max-width: 640px) {
    .featured-product-card {
        flex: 0 0 100%;
        /* 1 card on mobile */
    }

    .featured-carousel-track-container {
        padding: 0 40px;
    }

    .featured-carousel-nav {
        width: 40px;
        height: 40px;
    }

    .featured-carousel-nav svg {
        width: 20px;
        height: 20px;
    }

    .featured-product-image {
        height: 220px;
    }

    .featured-product-info {
        padding: var(--spacing-lg);
    }

    .featured-product-title {
        font-size: var(--font-size-base);
        min-height: auto;
    }

    .featured-product-actions {
        flex-direction: column;
    }

    .featured-btn-details,
    .featured-btn-select {
        width: 100%;
        justify-content: center;
    }
}

/* Smooth Entrance Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-product-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.featured-product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.featured-product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.featured-product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.featured-product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.featured-product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.featured-product-card:nth-child(6) {
    animation-delay: 0.6s;
}

.featured-product-card:nth-child(7) {
    animation-delay: 0.7s;
}

.featured-product-card:nth-child(8) {
    animation-delay: 0.8s;
}

.featured-product-card:nth-child(9) {
    animation-delay: 0.9s;
}

.featured-product-card:nth-child(10) {
    animation-delay: 1s;
}

.featured-product-card:nth-child(11) {
    animation-delay: 1.1s;
}

.featured-product-card:nth-child(12) {
    animation-delay: 1.2s;
}

.featured-product-card:nth-child(13) {
    animation-delay: 1.3s;
}

.featured-product-card:nth-child(14) {
    animation-delay: 1.4s;
}

.featured-product-card:nth-child(15) {
    animation-delay: 1.5s;
}

.featured-product-card:nth-child(16) {
    animation-delay: 1.6s;
}