/**
 * Hero Deals Carousel Styles
 */

/* ✨ MORE COMPACT Section Container */
.hero-deals-carousel-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
   z-index: auto !important;

}

/* Animated background pattern */
.hero-deals-carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-20px) translateY(-20px); }
}

/* ✨ COMPACT Header */
.hero-deals-header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: auto !important;
}

.hero-deals-header .container {
    padding-top: 1rem !important;    /* ✨ Less padding */
    padding-bottom: 1rem !important; /* ✨ Less padding */
}

.hero-deals-title {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* ✨ Tighter spacing */
}

.hero-deals-icon {
    font-size: 1.75rem; /* ✨ Slightly smaller */
    animation: pulse 2s ease-in-out infinite;
}

.hero-deals-heading {
    font-size: 1.5rem; /* ✨ Smaller heading */
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-deals-subtitle {
    font-size: 0.8rem; /* ✨ Smaller subtitle */
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.hero-deals-view-all {
    color: white;
    font-weight: 600;
    font-size: 0.875rem; /* ✨ Smaller text */
    text-decoration: none;
    padding: 0.5rem 1.25rem; /* ✨ Less padding */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-deals-view-all:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

/* ✨ COMPACT Carousel Wrapper */
.hero-deals-carousel-wrapper {
    position: relative;
    padding: 1.75rem 0 1.25rem;
    
}

.hero-deals-carousel {
    position: relative;
    overflow: hidden;
}

.hero-deals-track {
    display: flex;
    gap: 1.25rem; /* ✨ Slightly tighter gap */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ✨ COMPACT Deal Cards */
.deal-card {
    flex: 0 0 calc(25% - 0.9375rem);
    background: white;
    border-radius: 12px; /* ✨ Less rounded */
    overflow: hidden;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2), /* ✨ Smaller shadow */
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.deal-card:hover {
    transform: translateY(-6px); /* ✨ Less movement */
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}
/* Badge */
.deal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: auto !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.deal-badge-hot { background: rgba(239, 68, 68, 0.95); color: white; }
.deal-badge-trending { background: rgba(59, 130, 246, 0.95); color: white; }
.deal-badge-limited { background: rgba(245, 158, 11, 0.95); color: white; }
.deal-badge-new { background: rgba(16, 185, 129, 0.95); color: white; }
.deal-badge-best { background: rgba(139, 92, 246, 0.95); color: white; }

/* Image */
.deal-image-wrapper {
    aspect-ratio: 4/3;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.deal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.deal-card:hover .deal-image {
    transform: scale(1.05);
}

/* Product Info */
.deal-info {
    padding: 0.875rem; /* ✨ Even less padding */
}

.deal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating */
.deal-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.star {
    font-size: 0.875rem;
}

.rating-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-left: 0.25rem;
}

/* Pricing */
.deal-pricing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.price-original {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.price-deal {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ef4444;
}

/* Savings */
.deal-savings {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px; /* ✨ Smaller */
    border-radius: 6px;
    font-size: 0.8rem; /* ✨ Smaller text */
    font-weight: 700;
    margin-bottom: 0.5rem; /* ✨ Less margin */
    display: inline-block;
}

.savings-highlight {
    font-weight: 800;
    color: #15803d;
}

/* Countdown */
.deal-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 10px; /* ✨ Smaller */
    background: #fef3c7;
    border-radius: 6px;
    margin-bottom: 0.75rem; /* ✨ Less margin */
    font-size: 0.8rem; /* ✨ Smaller text */
    font-weight: 600;
    color: #92400e;
}
.deal-countdown.urgent {
    background: #fee2e2;
    color: #991b1b;
    animation: pulse 2s ease-in-out infinite;
}

.deal-countdown.expired {
    background: #f3f4f6;
    color: #6b7280;
}

.countdown-icon {
    font-size: 1rem;
}

/* ✨ BASE CTA Button with Icon */
.deal-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
     padding: 0.65rem 0.875rem; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Default purple */
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

/* Shine effect on hover */
.deal-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.deal-cta-button:hover::before {
    left: 100%;
}

.deal-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.cta-icon {
    font-size: 1.1rem;
}

.cta-text {
    position: relative;
   z-index: auto !important;
}

.cta-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.deal-cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* ✨ RETAILER-SPECIFIC COLORS */

/* Amazon - Orange/Gold */
.deal-cta-button[data-retailer="Amazon"] {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.deal-cta-button[data-retailer="Amazon"]:hover {
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.6);
}

/* Walmart - Blue */
.deal-cta-button[data-retailer="Walmart"] {
    background: linear-gradient(135deg, #0071ce 0%, #004f9a 100%);
    box-shadow: 0 4px 12px rgba(0, 113, 206, 0.4);
}

.deal-cta-button[data-retailer="Walmart"]:hover {
    box-shadow: 0 6px 20px rgba(0, 113, 206, 0.6);
}

/* Target - Red */
.deal-cta-button[data-retailer="Target"] {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
}

.deal-cta-button[data-retailer="Target"]:hover {
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.6);
}

/* Best Buy - Blue */
.deal-cta-button[data-retailer="Best Buy"] {
    background: linear-gradient(135deg, #0046be 0%, #003087 100%);
    box-shadow: 0 4px 12px rgba(0, 70, 190, 0.4);
}

.deal-cta-button[data-retailer="Best Buy"]:hover {
    box-shadow: 0 6px 20px rgba(0, 70, 190, 0.6);
}

/* eBay - Multi-color accent */
.deal-cta-button[data-retailer="eBay"] {
    background: linear-gradient(135deg, #e53238 0%, #0064d2 100%);
    box-shadow: 0 4px 12px rgba(229, 50, 56, 0.4);
}

.deal-cta-button[data-retailer="eBay"]:hover {
    box-shadow: 0 6px 20px rgba(229, 50, 56, 0.6);
}

/* Newegg - Orange/Black */
.deal-cta-button[data-retailer="Newegg"] {
    background: linear-gradient(135deg, #ff6900 0%, #cc5500 100%);
    box-shadow: 0 4px 12px rgba(255, 105, 0, 0.4);
}

.deal-cta-button[data-retailer="Newegg"]:hover {
    box-shadow: 0 6px 20px rgba(255, 105, 0, 0.6);
}

/* B&H Photo - Green/Yellow */
.deal-cta-button[data-retailer="B&H"] {
    background: linear-gradient(135deg, #78be20 0%, #629919 100%);
    box-shadow: 0 4px 12px rgba(120, 190, 32, 0.4);
}

.deal-cta-button[data-retailer="B&H"]:hover {
    box-shadow: 0 6px 20px rgba(120, 190, 32, 0.6);
}

/* Generic/Unknown - Keep default purple */
.deal-cta-button[data-retailer="Retailer"],
.deal-cta-button:not([data-retailer]) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.deal-cta-button[data-retailer="Retailer"]:hover,
.deal-cta-button:not([data-retailer]):hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}
/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: auto !important;
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* ========================================
   DUAL CTA FOR HERO CAROUSEL
======================================== */

/* Mobile: Stacked */
.deal-cta-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

/* Primary Button (Buy) */
.deal-cta-button.deal-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    cursor: pointer;
}

.deal-cta-button.deal-cta-primary:hover {
    background: linear-gradient(135deg, #f55a24 0%, #e8820d 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.deal-cta-button .cta-arrow {
    transition: transform 0.2s;
}

.deal-cta-button.deal-cta-primary:hover .cta-arrow {
    transform: translateX(4px);
}

/* Secondary Button (View Details) */
.deal-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #4F46E5;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
}

.deal-cta-secondary:hover {
    background: #eff6ff;
    color: #4338CA;
}

.deal-cta-secondary svg {
    transition: transform 0.2s;
}

.deal-cta-secondary:hover svg {
    transform: translateX(4px);
}

/* Desktop: Side by side */
@media (min-width: 768px) {
    .deal-cta-container {
        flex-direction: row;
        gap: 10px;
    }
    
    .deal-cta-button.deal-cta-primary {
        flex: 1;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .deal-cta-secondary {
        flex: 0.5;
        padding: 12px 14px;
        font-size: 12px;
        border: 2px solid #e0e7ff;
    }
}
/* Responsive */
@media (max-width: 1279px) {
    .deal-card { flex: 0 0 calc(33.333% - 1rem); }
}

@media (max-width: 1023px) {
    .deal-card { flex: 0 0 calc(50% - 0.75rem); }
    .hero-deals-heading { font-size: 1.5rem; }
}

@media (max-width: 639px) {
    .deal-card { flex: 0 0 100%; }
    .hero-deals-title { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .hero-deals-heading { font-size: 1.25rem; }
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
}