/* Deals Page Stylesheet */

.deals-main-wrap {
    padding: 0;
    background-color: var(--surface, #f9f9fb);
    font-family: 'Figtree', 'Inter', sans-serif;
}

/* ==========================================
   Deals Hero Styling
   ========================================== */
.deals-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.deals-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.deals-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.deals-hero:hover .deals-hero-bg img {
    transform: scale(1.0);
}

.deals-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
}

.deals-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
}

.deals-hero-text-wrapper {
    animation: dealsHeroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.deals-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.deals-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.25rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.deals-hero-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #1a1c1d;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.deals-hero-btn:hover {
    background-color: #1a1c1d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.deals-hero-btn:active {
    transform: translateY(0);
}

/* ==========================================
   Countdown Counter Section Styling
   ========================================== */
.deals-counter-section {
    position: relative;
    z-index: 5;
    margin-top: -60px; /* Pull counter onto hero background */
    padding-bottom: 3.5rem;
}

.deals-counter-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.counter-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #86868b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.counter-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2f61e6;
    animation: dealsPulse 1.5s infinite;
}

.deals-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.deals-timer-box {
    flex: 1;
    max-width: 110px;
    background: rgba(26, 28, 29, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.deals-timer-box:hover {
    transform: translateY(-4px);
    background: rgba(26, 28, 29, 0.05);
}

.deals-timer-num {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #1a1c1d;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.5rem;
}

.deals-timer-txt {
    font-size: 0.75rem;
    font-weight: 700;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Expired Timer State */
.deals-counter-card.expired .counter-label::before {
    background-color: #ef4444;
}

.deals-counter-card.expired .deals-timer-num {
    color: #ef4444;
}

/* ==========================================
   Active Deals Grid Section
   ========================================== */
.deals-products-section {
    padding: 2rem 0 7rem;
}

.deals-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a1c1d;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.deals-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #1a1c1d;
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* Empty State Styling */
.no-deals-container {
    text-align: center;
    padding: 6rem 2rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.no-deals-icon {
    font-size: 4.5rem !important;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.no-deals-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1c1d;
    margin-bottom: 0.75rem;
}

.no-deals-container p {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

.deals-pagination-wrap {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

/* Animations */
@keyframes dealsHeroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dealsPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(47, 97, 230, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(47, 97, 230, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(47, 97, 230, 0);
    }
}

/* ==========================================
   Responsive Adaptations
   ========================================== */
@media (max-width: 768px) {
    .deals-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .deals-counter-section {
        margin-top: -40px;
    }
    
    .deals-counter-card {
        padding: 1.75rem 1.25rem;
    }
    
    .deals-timer {
        gap: 0.5rem;
    }
    
    .deals-timer-box {
        padding: 0.75rem 0.25rem;
        border-radius: 12px;
    }
}
