/* ============================================
   DEAL OF THE DAY FOOTER  (fixed)
   ============================================ */
footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

footer h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

footer ul li a:hover {
    color: #a78bfa;
    transform: translateX(4px);
}

footer .deal-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #ffffff;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

footer .deal-countdown {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

footer .deal-countdown .unit {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 54px;
    text-align: center;
}

footer .deal-countdown .unit .num {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1;
}

footer .deal-countdown .unit .lbl {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 4px;
    display: block;
}


/* ============================================
   BEST CATEGORIES SECTION
   ============================================ */

.best-categories-section {
    padding: 80px 0;
    background: #f8f9fc;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.section-header > div {
    flex: 1;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 60, 225, 0.1);
    color: #6C3CE1;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.section-tag i {
    font-size: 14px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 8px 0 4px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6C3CE1;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #6C3CE1;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 24px;
}

.view-all:hover {
    background: #6C3CE1;
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(108, 60, 225, 0.25);
}

.view-all i {
    transition: transform 0.3s ease;
}

.view-all:hover i {
    transform: translateX(4px);
}

.categories-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #fff;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 20%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.75) 90%
    );
    z-index: 2;
    pointer-events: none;
}

.category-info {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    color: #ffffff;
    z-index: 3;
}

.category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.category-info h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 10px 0 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.3px;
}

.category-info button {
    margin-top: 12px;
    border: none;
    background: #6C3CE1;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(108, 60, 225, 0.35);
}

.category-info button i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.category-card:hover button {
    background: #ffffff;
    color: #6C3CE1;
    box-shadow: 0 8px 32px rgba(108, 60, 225, 0.3);
}

.category-card:hover button i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .best-categories-section {
        padding: 48px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .view-all {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .categories-wrapper {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding: 4px 0 16px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .categories-wrapper::-webkit-scrollbar {
        display: none;
    }

    .category-card {
        min-width: 280px;
        height: 240px;
        scroll-snap-align: start;
        flex-shrink: 0;
        border-radius: 20px;
    }

    .category-card:hover {
        transform: translateY(-4px);
    }

    .category-info h3 {
        font-size: 20px;
    }

    .category-info button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .mobile-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        padding: 4px 0;
    }

    .mobile-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #d1d5db;
        transition: all 0.4s ease;
        cursor: pointer;
        border: none;
        padding: 0;
    }

    .mobile-dots .dot.active {
        background: #6C3CE1;
        width: 24px;
        border-radius: 4px;
    }

    .mobile-dots .dot:hover {
        background: #6C3CE1;
        opacity: 0.7;
    }
}

@media (min-width: 769px) {
    .mobile-dots {
        display: none !important;
    }
}

.best-categories-section {
    padding: 16px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}


/* ============================================
   SKELETON LOADER STYLES
   ============================================ */

.hero-skeleton-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0F172A;
    min-height: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.hero-skeleton-slide {
    width: 100%;
    min-height: 500px;
}

.hero-skeleton-content {
    width: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.8) 50%, 
        rgba(15, 23, 42, 0.7) 100%
    );
    display: flex;
    align-items: center;
    padding: 80px 100px;
    position: relative;
    background-image: 
        linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(30,41,59,0.8) 100%),
        radial-gradient(circle at 70% 30%, rgba(124,58,237,0.1) 0%, transparent 50%);
}

.hero-skeleton-text {
    max-width: 650px;
    padding: 40px 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    width: 100%;
}

.skeleton-badge {
    width: 80px;
    height: 28px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 50px;
    margin-bottom: 16px;
}

.skeleton-title {
    width: 85%;
    height: 44px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-brand {
    width: 40%;
    height: 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    margin-bottom: 16px;
}

.skeleton-price {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.skeleton-current-price {
    width: 120px;
    height: 36px;
    background: linear-gradient(90deg, rgba(124,58,237,0.15) 25%, rgba(124,58,237,0.25) 50%, rgba(124,58,237,0.15) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-original-price {
    width: 80px;
    height: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-discount {
    width: 60px;
    height: 26px;
    background: linear-gradient(90deg, rgba(239,68,68,0.15) 25%, rgba(239,68,68,0.25) 50%, rgba(239,68,68,0.15) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 50px;
}

.skeleton-description {
    width: 90%;
    height: 18px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 24px;
}

.skeleton-btn {
    width: 160px;
    height: 48px;
    background: linear-gradient(90deg, rgba(124,58,237,0.15) 25%, rgba(124,58,237,0.25) 50%, rgba(124,58,237,0.15) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 50px;
}

.hero-skeleton-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.skeleton-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skeleton-dot.active {
    width: 32px;
    border-radius: 6px;
    background: rgba(124,58,237,0.3);
}

@keyframes skeletonShimmer {
    0%   { background-position:  200% 0; }
    100% { background-position: -200% 0; }
}


/* ============================================
   MODERN HERO BANNER  (image now visible)
   ============================================ */

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0F172A;
    min-height: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.95);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    position: relative;
}

.hero-slide-content {
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center right;   /* keeps subject visible */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 100px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

/* Lighter overlay so the image actually shows through */
.hero-slide-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(15, 23, 42, 0.30) 45%,
        rgba(15, 23, 42, 0.05) 100%
    );
    z-index: 1;
    border-radius: 24px;
    pointer-events: none;
}

/* Soft vignette on the right so the image blends into the section */
.hero-slide-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(15, 23, 42, 0.35) 0%,
        transparent 40%
    );
    z-index: 1;
    border-radius: 24px;
    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 40px 50px;
    background: rgba(15, 23, 42, 0.55);   /* darker glass so text stays readable */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    color: white;
    animation: heroFadeIn 0.8s ease;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.hero-badge.deal {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.hero-badge.new {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.hero-badge.hot {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-brand {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.85;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.hero-price {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-current-price {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #A78BFA, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-original-price {
    font-size: 20px;
    text-decoration: line-through;
    opacity: 0.55;
    font-weight: 500;
}

.hero-discount {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
}

.hero-description {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    letter-spacing: 0.3px;
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.5);
}

.hero-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateX(4px);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.hero-slider:hover .hero-nav { opacity: 1; }

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-nav:hover {
    background: rgba(124, 58, 237, 0.8);
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    background: #7C3AED;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.hero-dot:hover          { background: rgba(255, 255, 255, 0.6); }
.hero-dot.active:hover   { background: #7C3AED; }


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-slide-content,
    .hero-skeleton-content {
        padding: 60px;
        min-height: 420px;
    }
    .hero-text,
    .hero-skeleton-text {
        padding: 32px 40px;
        max-width: 550px;
    }
    .hero-title          { font-size: 34px; }
    .hero-current-price  { font-size: 30px; }
    .hero-skeleton-wrapper,
    .hero-slider         { min-height: 420px; }
    .hero-skeleton-slide,
    .hero-slides         { min-height: 420px; }
}

@media (max-width: 768px) {
    .hero-nav { display: none !important; }

    .hero-slide-content,
    .hero-skeleton-content {
        padding: 40px 24px;
        min-height: 380px;
        align-items: flex-end;
    }
    .hero-text,
    .hero-skeleton-text {
        padding: 28px 24px;
        max-width: 100%;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .hero-title          { font-size: 28px; }
    .hero-current-price  { font-size: 26px; }
    .hero-description    { -webkit-line-clamp: 1; font-size: 14px; }
    .hero-btn            { padding: 12px 28px; font-size: 14px; }
    .hero-dots,
    .hero-skeleton-dots  { bottom: 20px; gap: 8px; }
    .hero-dot,
    .skeleton-dot        { width: 8px; height: 8px; }
    .hero-dot.active,
    .skeleton-dot.active { width: 24px; }
    .skeleton-title      { height: 32px; }
    .skeleton-current-price { width: 100px; height: 28px; }
    .hero-skeleton-wrapper,
    .hero-slider         { min-height: 380px; }
    .hero-skeleton-slide,
    .hero-slides         { min-height: 380px; }
}

@media (max-width: 480px) {
    .hero-slide-content,
    .hero-skeleton-content {
        padding: 24px 16px;
        min-height: 320px;
    }
    .hero-text,
    .hero-skeleton-text { padding: 20px 16px; }
    .hero-title         { font-size: 22px; }
    .hero-current-price { font-size: 22px; }
    .hero-brand         { font-size: 13px; }
    .hero-price         { gap: 10px; }
    .hero-original-price{ font-size: 16px; }
    .hero-discount      { font-size: 12px; padding: 2px 10px; }
    .hero-btn           { padding: 10px 20px; font-size: 13px; }
    .hero-dots,
    .hero-skeleton-dots { bottom: 16px; gap: 6px; }
    .hero-dot,
    .skeleton-dot       { width: 6px; height: 6px; }
    .hero-dot.active,
    .skeleton-dot.active{ width: 18px; }
    .skeleton-title     { height: 26px; }
    .skeleton-current-price { width: 80px; height: 24px; }
    .hero-skeleton-wrapper,
    .hero-slider        { min-height: 320px; }
    .hero-skeleton-slide,
    .hero-slides        { min-height: 320px; }
}