/* ===================================================
   69SHOP.IN - PREMIUM CAROUSELS
   Flash Deals Style for Trending Now & You May Also Like
   =================================================== */

/* ===== PREMIUM CAROUSEL SECTION ===== */
.carousel-section.premium-style {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 100%);
    position: relative;
    overflow: hidden;
}

.carousel-section.premium-style::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
    animation: premiumBgFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes premiumBgFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
}

/* Premium Header - Fixed Layout */
.carousel-section.premium-style .carousel-header,
.carousel-section.premium-light .carousel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.carousel-section.premium-style .carousel-title-wrapper,
.carousel-section.premium-light .carousel-title-wrapper {
    flex: 1;
    min-width: 0;
}

.carousel-section.premium-style .carousel-title {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.carousel-section.premium-style .carousel-title h2 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.carousel-section.premium-style .carousel-title .section-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 30px rgba(255, 65, 108, 0.4);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(255, 65, 108, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 12px 40px rgba(255, 65, 108, 0.6); }
}

.carousel-section.premium-style .badge {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.carousel-section.premium-style .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin-top: 8px;
    font-weight: 400;
}

/* Premium Navigation - Fixed positioning */
.carousel-section.premium-style .carousel-nav,
.carousel-section.premium-light .carousel-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.carousel-section.premium-style .view-all-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.carousel-section.premium-style .view-all-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.carousel-section.premium-style .carousel-nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.carousel-section.premium-style .carousel-nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.carousel-section.premium-style .carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Premium Carousel Track */
.carousel-section.premium-style .carousel-wrapper {
    position: relative;
    z-index: 2;
}

.carousel-section.premium-style .carousel-track {
    display: flex;
    gap: 28px;
    padding: 20px 0;
}

/* Premium Cards */
.carousel-section.premium-style .carousel-card {
    flex: 0 0 300px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.carousel-section.premium-style .carousel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%, transparent 50%, rgba(102, 126, 234, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-section.premium-style .carousel-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 126, 234, 0.4);
}

.carousel-section.premium-style .carousel-card:hover::before {
    opacity: 1;
}

/* Premium Card Image */
.carousel-section.premium-style .carousel-card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a3e 0%, #2d2d5a 100%);
}

.carousel-section.premium-style .carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-section.premium-style .carousel-card:hover .carousel-card-image img {
    transform: scale(1.15);
}

.carousel-section.premium-style .carousel-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.5);
}

.carousel-section.premium-style .carousel-card-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
}

.carousel-section.premium-style .carousel-card:hover .carousel-card-wishlist {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.carousel-section.premium-style .carousel-card-wishlist:hover {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    transform: scale(1.15);
}

.carousel-section.premium-style .carousel-card-wishlist.active {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

/* Quick Actions Overlay */
.carousel-section.premium-style .carousel-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.carousel-section.premium-style .carousel-card:hover .carousel-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.carousel-section.premium-style .overlay-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.carousel-section.premium-style .overlay-btn:hover {
    background: var(--blue-primary);
    transform: scale(1.1);
}

/* Premium Card Content */
.carousel-section.premium-style .carousel-card-content {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
}

.carousel-section.premium-style .carousel-card-category {
    font-size: 0.75rem;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.carousel-section.premium-style .carousel-card-title {
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    font-size: 1.05rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.carousel-section.premium-style .carousel-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.carousel-section.premium-style .carousel-card-rating .stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.carousel-section.premium-style .carousel-card-rating .count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.carousel-section.premium-style .carousel-card-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.carousel-section.premium-style .carousel-card-price .current {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.carousel-section.premium-style .carousel-card-price .original {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.carousel-section.premium-style .carousel-card-price .discount {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Premium Card Actions */
.carousel-section.premium-style .carousel-card-actions {
    display: flex;
    gap: 12px;
}

.carousel-section.premium-style .carousel-card-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-section.premium-style .carousel-card-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.carousel-section.premium-style .carousel-card-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.carousel-section.premium-style .carousel-card-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-section.premium-style .carousel-card-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Premium Indicators */
.carousel-section.premium-style .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    position: relative;
    z-index: 2;
}

.carousel-section.premium-style .carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-section.premium-style .carousel-indicator.active {
    width: 36px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

/* ===== ALTERNATIVE LIGHT PREMIUM STYLE ===== */
.carousel-section.premium-light {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
}

.carousel-section.premium-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #ff416c 100%);
}

.carousel-section.premium-light .carousel-title h2 {
    color: #1a202c;
    font-size: 2rem;
    font-weight: 800;
}

.carousel-section.premium-light .section-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.carousel-section.premium-light .badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.carousel-section.premium-light .section-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    margin-top: 8px;
}

.carousel-section.premium-light .view-all-link {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.carousel-section.premium-light .view-all-link:hover {
    background: rgba(102, 126, 234, 0.2);
}

.carousel-section.premium-light .carousel-nav-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.carousel-section.premium-light .carousel-nav-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.carousel-section.premium-light .carousel-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
}

.carousel-section.premium-light .carousel-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.carousel-section.premium-light .carousel-card-image {
    height: 220px;
    background: #f8fafc;
}

.carousel-section.premium-light .carousel-card-badge {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.carousel-section.premium-light .carousel-card-content {
    padding: 24px;
}

.carousel-section.premium-light .carousel-card-category {
    color: #667eea;
}

.carousel-section.premium-light .carousel-card-title {
    color: #1a202c;
}

.carousel-section.premium-light .carousel-card-rating .count {
    color: #94a3b8;
}

.carousel-section.premium-light .carousel-card-price .current {
    color: #1a202c;
}

.carousel-section.premium-light .carousel-card-price .original {
    color: #94a3b8;
}

.carousel-section.premium-light .carousel-card-btn.primary {
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.carousel-section.premium-light .carousel-card-btn.secondary {
    background: #f1f5f9;
    color: #64748b;
    border: none;
}

.carousel-section.premium-light .carousel-indicator {
    background: #e2e8f0;
}

.carousel-section.premium-light .carousel-indicator.active {
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
}

/* ===== COUNTDOWN TIMER IN CAROUSEL ===== */
.carousel-countdown {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255, 65, 108, 0.1) 0%, rgba(255, 75, 43, 0.1) 100%);
    padding: 12px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 65, 108, 0.2);
}

.carousel-countdown .countdown-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.carousel-section.premium-light .carousel-countdown .countdown-label {
    color: #64748b;
}

.carousel-countdown .countdown-timer {
    display: flex;
    gap: 8px;
}

.carousel-countdown .countdown-block {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    padding: 8px 12px;
    border-radius: 10px;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3);
}

.carousel-countdown .countdown-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    font-family: 'Poppins', sans-serif;
    display: block;
}

.carousel-countdown .countdown-unit {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .carousel-section.premium-style,
    .carousel-section.premium-light {
        padding: 50px 0 60px;
    }

    .carousel-section.premium-style .carousel-title h2,
    .carousel-section.premium-light .carousel-title h2 {
        font-size: 1.6rem;
    }

    .carousel-section.premium-style .carousel-card,
    .carousel-section.premium-light .carousel-card {
        flex: 0 0 270px;
    }

    .carousel-section.premium-style .carousel-track,
    .carousel-section.premium-light .carousel-track {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-section.premium-style .carousel-header,
    .carousel-section.premium-light .carousel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .carousel-section.premium-style .carousel-title,
    .carousel-section.premium-light .carousel-title {
        flex-wrap: wrap;
    }

    .carousel-section.premium-style .carousel-title .section-icon,
    .carousel-section.premium-light .section-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .carousel-section.premium-style .carousel-title h2,
    .carousel-section.premium-light .carousel-title h2 {
        font-size: 1.4rem;
    }

    .carousel-section.premium-style .carousel-card,
    .carousel-section.premium-light .carousel-card {
        flex: 0 0 250px;
    }

    .carousel-section.premium-style .carousel-card-image,
    .carousel-section.premium-light .carousel-card-image {
        height: 180px;
    }

    .carousel-countdown {
        flex-wrap: wrap;
        gap: 12px;
    }

    .carousel-countdown .countdown-block {
        padding: 6px 10px;
        min-width: 45px;
    }

    .carousel-countdown .countdown-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-section.premium-style,
    .carousel-section.premium-light {
        padding: 40px 0 50px;
    }

    .carousel-section.premium-style .carousel-card,
    .carousel-section.premium-light .carousel-card {
        flex: 0 0 85vw;
        max-width: 300px;
    }

    .carousel-section.premium-style .carousel-nav-btn,
    .carousel-section.premium-light .carousel-nav-btn {
        width: 44px;
        height: 44px;
    }

    .carousel-section.premium-style .view-all-link,
    .carousel-section.premium-light .view-all-link {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ===== Fix: Ensure carousel nav doesn't overlap product cards ===== */
.carousel-section .carousel-header {
    position: relative;
    z-index: 10;
    margin-bottom: 28px;
}

.carousel-section .carousel-nav {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.carousel-section .carousel-wrapper {
    position: relative;
    z-index: 1;
    clear: both;
}

/* Ensure the track doesn't get overlapped */
.carousel-section .carousel-track {
    position: relative;
    z-index: 1;
}

/* Make sure product cards are on a lower z-index than header */
.carousel-section .carousel-card {
    position: relative;
    z-index: 1;
}

/* Prevent nav buttons from extending beyond header */
.carousel-section.premium-style .carousel-nav,
.carousel-section.premium-light .carousel-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
}
