/* ============================================================
   WEEKEND DEALS PAGE - ELECTRIC BAZAAR THEME
   ============================================================ */

/* ── CSS Variables ── */
:root {
    --wd-primary: #FF3D00;
    --wd-primary-dark: #CC3100;
    --wd-primary-light: #FF6B33;
    --wd-secondary: #FFD600;
    --wd-secondary-dark: #CCAB00;
    --wd-bg: #0A0A0F;
    --wd-card: #13131A;
    --wd-card-hover: #1A1A24;
    --wd-border: rgba(255, 61, 0, 0.25);
    --wd-border-light: rgba(255, 61, 0, 0.12);
    --wd-glow: 0 0 30px rgba(255, 61, 0, 0.4);
    --wd-glow-strong: 0 0 50px rgba(255, 61, 0, 0.6);
    --wd-text: #FFFFFF;
    --wd-text-muted: rgba(255, 255, 255, 0.6);
    --wd-text-dim: rgba(255, 255, 255, 0.35);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--wd-bg);
    color: var(--wd-text);
    overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, .wd-hero-title, .section-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

/* ── Hero Section ── */
.wd-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 40%, rgba(255, 61, 0, 0.08) 0%, transparent 70%);
}

.wd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--wd-bg) 100%);
    pointer-events: none;
}

.fire-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 61, 0, 0.15);
    border: 1px solid var(--wd-primary);
    color: var(--wd-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.fire-badge i {
    font-size: 0.8rem;
    animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.wd-hero-title {
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.word-crazy {
    color: var(--wd-secondary);
    display: block;
}

.word-weekend {
    color: var(--wd-text);
    display: block;
}

.word-deals {
    color: var(--wd-primary);
    text-shadow: 0 0 40px rgba(255, 61, 0, 0.5);
    display: block;
}

.wd-hero-subtitle {
    font-size: 1rem;
    color: var(--wd-text-muted);
    margin-bottom: 2rem;
}

/* ── Countdown Timer ── */
.countdown-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid var(--wd-border);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--wd-text-muted);
    margin-bottom: 1rem;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.time-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--wd-border);
    border-radius: 12px;
    padding: 12px 20px;
    min-width: 85px;
    text-align: center;
}

.time-block span {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wd-secondary);
    line-height: 1;
}

.time-block label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--wd-text-muted);
    margin-top: 4px;
    display: block;
}

.time-sep {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wd-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

/* ── Section Header ── */
.wd-deals-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--wd-text) 0%, var(--wd-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--wd-primary);
}

.section-subtitle {
    color: var(--wd-text-muted);
    font-size: 0.9rem;
}

/* ── Deals Grid ── */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

/* ── Deal Card ── */
.deal-card {
    background: var(--wd-card);
    border: 1px solid var(--wd-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.deal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--wd-glow);
    border-color: var(--wd-primary);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--wd-primary);
    border-radius: 12px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    animation: pulse-badge 2s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(255, 61, 0, 0.3);
}

.badge-percent {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.badge-text {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Weekend Tag */
.weekend-tag {
    position: absolute;
    top: 14px;
    right: 0;
    background: var(--wd-secondary);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 12px 5px 10px;
    border-radius: 4px 0 0 4px;
    z-index: 5;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
}

/* Image Container */
.card-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--wd-bg);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.4s ease;
}

.deal-card:hover .card-img {
    transform: scale(1.05);
}

/* Hover Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.deal-card:hover .card-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform 0.2s, background 0.2s;
}

.view-btn {
    background: var(--wd-text);
    color: var(--wd-bg);
}

.view-btn:hover {
    background: var(--wd-secondary);
    color: var(--wd-bg);
    transform: scale(1.02);
}

.cart-btn {
    background: var(--wd-primary);
    color: white;
}

.cart-btn:hover {
    background: var(--wd-primary-dark);
    transform: scale(1.02);
}

/* Card Body */
.card-body {
    padding: 1.2rem;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.product-brand, .product-category {
    font-size: 0.7rem;
    color: var(--wd-primary);
    background: rgba(255, 61, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--wd-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.price-original {
    color: var(--wd-text-dim);
    text-decoration: line-through;
    font-size: 0.85rem;
}

.price-sale {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wd-secondary);
    line-height: 1;
}

.savings-pill {
    display: inline-block;
    background: rgba(255, 214, 0, 0.12);
    border: 1px solid rgba(255, 214, 0, 0.3);
    color: var(--wd-secondary);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Quick Specs */
.quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.spec-chip {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--wd-border-light);
    border-radius: 4px;
    padding: 3px 8px;
    color: var(--wd-text-muted);
}

.spec-chip strong {
    color: var(--wd-primary);
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.02);
    color: white;
}

/* ── Info Section ── */
.wd-info-section {
    padding: 3rem 0;
    border-top: 1px solid var(--wd-border-light);
    border-bottom: 1px solid var(--wd-border-light);
}

.info-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 61, 0, 0.05);
    transform: translateY(-3px);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--wd-primary);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--wd-text-muted);
}

/* ── Back Link ── */
.wd-back-link {
    padding: 2rem 0 3rem;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wd-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    color: var(--wd-primary);
    gap: 12px;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--wd-card);
    border-radius: 24px;
    border: 1px solid var(--wd-border);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--wd-primary);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--wd-text-muted);
    margin-bottom: 1.5rem;
}

.btn-empty {
    display: inline-block;
    background: var(--wd-primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-empty:hover {
    background: var(--wd-primary-dark);
    transform: translateY(-2px);
    color: white;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .wd-hero {
        min-height: 70vh;
    }
    
    .time-block {
        padding: 8px 12px;
        min-width: 65px;
    }
    
    .time-block span {
        font-size: 1.6rem;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .price-sale {
        font-size: 1.3rem;
    }
    
    .info-card {
        padding: 1rem;
    }
}

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

.deal-card {
    animation: fadeInUp 0.5s ease forwards;
}