/* ============================================
   MODERN TOP DEALS CAROUSEL STYLES
   ============================================ */

.top-deals-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.top-deals-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.top-deals-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.top-deals-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.top-deals-title .highlight {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-deals-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Carousel Container */
.top-deals-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

.top-deals-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.top-deals-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Deal Card */
.top-deal-card {
    flex: 0 0 auto;
    width: 450px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.top-deal-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.top-deal-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.top-deal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-deal-card:hover .top-deal-image {
    transform: scale(1.1);
}

.top-deal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.top-deal-card:hover .top-deal-overlay {
    opacity: 1;
}

.top-deal-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    z-index: 2;
}

.top-deal-price-tag {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.top-deal-price-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.top-deal-price-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: #f59e0b;
    margin: 0;
    line-height: 1;
}

.top-deal-content {
    padding: 1.75rem;
}

.top-deal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-deal-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-deal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.top-deal-validity {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-deal-validity i {
    color: #f59e0b;
}

.top-deal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.top-deal-cta:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    color: white;
    text-decoration: none;
}

.top-deal-cta i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.top-deal-cta:hover i {
    transform: translateX(4px);
}

/* Navigation Arrows */
.top-deals-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
}

.top-deals-nav:hover {
    background: #f59e0b;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.top-deals-nav.prev {
    left: 0;
}

.top-deals-nav.next {
    right: 0;
}

.top-deals-nav i {
    font-size: 1.25rem;
}

/* Loading State */
.top-deals-loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.top-deals-loading i {
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

/* Empty State */
.top-deals-empty {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.top-deals-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .top-deal-card {
        width: 380px;
    }
}

@media (max-width: 992px) {
    .top-deal-card {
        width: 340px;
    }
    
    .top-deals-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .top-deals-section {
        padding: 2.5rem 0;
    }

    .top-deals-title {
        font-size: 1.75rem;
    }

    .top-deals-subtitle {
        font-size: 0.95rem;
    }
    
    .top-deals-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1.25rem;
    }

    .top-deals-carousel-wrapper {
        padding: 0 15px;
    }

    .top-deal-card {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .top-deal-image-wrapper {
        height: 200px;
    }

    .top-deal-title {
        font-size: 1.15rem;
    }

    .top-deal-description {
        font-size: 0.875rem;
    }
    
    .top-deal-price-amount {
        font-size: 1.25rem;
    }

    .top-deals-nav {
        width: 40px;
        height: 40px;
    }

    .top-deals-nav i {
        font-size: 1rem;
    }
    
    .top-deals-carousel {
        gap: 1.5rem;
        padding: 1rem 0 1.5rem;
    }
}

@media (max-width: 576px) {
    .top-deals-section {
        padding: 2rem 0;
    }
    
    .top-deals-header {
        margin-bottom: 2rem;
    }
    
    .top-deals-title {
        font-size: 1.5rem;
    }
    
    .top-deals-subtitle {
        font-size: 0.875rem;
    }

    .top-deal-card {
        width: 100%;
        max-width: 300px;
    }
    
    .top-deal-image-wrapper {
        height: 180px;
    }

    .top-deals-carousel-wrapper {
        padding: 0 10px;
    }

    .top-deals-nav {
        display: none;
    }
    
    .top-deal-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .top-deal-cta {
        width: 100%;
        justify-content: center;
    }
}
