/* Global viewport safety — prevents any body/html margins from leaking */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    min-height: 100% !important;
    overflow-x: hidden;
}

/* ============================================================
   CHEDDERS COMPUTER DIRECT VERSION— HERO SECTION
   Standalone: link this AFTER style.css in index.html
   <link href="css/index.css" rel="stylesheet">
============================================================ */

/* ============================================================
   HERO BACKGROUND — THREE MODES
   Only ONE mode should be active at a time.
   To switch: uncomment the mode you want, comment the rest.
   ============================================================

   ACTIVE NOW → MODE 2: IMAGE BACKGROUND
   ─────────────────────────────────────────────────────────── */

/* ┌─────────────────────────────────────────────────────────┐
   │  MODE 1 — SOLID COLOUR  (currently OFF — uncomment to use)
   └─────────────────────────────────────────────────────────┘ */
/*
.hero {
    background: var(--cc-navy);
    position: relative;
    overflow: hidden;
    padding: 60px 0 52px;
}
.hero-bg-image  { display: none; }
.hero-bg-video  { display: none; }
.hero-orb       { display: block; }
.hero-grid      { display: block; }
*/

/* ┌─────────────────────────────────────────────────────────┐
   │  MODE 2 — IMAGE BACKGROUND  ✅ ACTIVE
   │  Store your image at: assets/images/hero-bg.jpg
   │  (or hero-bg.png / hero-bg.webp — just match the src below)
   └─────────────────────────────────────────────────────────┘ */
/* ┌─────────────────────────────────────────────────────────┐
   │  MODE 2 — IMAGE BACKGROUND  ✅ ACTIVE + FIXED
   └─────────────────────────────────────────────────────────┘ */
.hero {
    background: var(--cc-navy);
    
    /* Modern viewport height chain — works in Desktop-site mode */
    min-height: 100vh;                    /* fallback */
    min-height: -webkit-fill-available;   /* old WebKit / iOS */
    min-height: 100dvh;                   /* modern dynamic (preferred) */
    min-height: 100svh;                   /* smallest guaranteed visible area */

    /* Subtract navbar so content never sits under it */
    min-height: calc(100dvh - var(--nav-h));

    position: relative;
    overflow: hidden;
    padding: 60px 0 52px;
    display: flex;          /* helps with vertical centering */
    align-items: center;
    box-sizing: border-box;
}
/* The image element — scales to cover every screen */
.hero-bg-image {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover;       /* fills the box, no distortion */
    object-position: center; /* keep the focal point centred */
    display: block;
    pointer-events: none;
    /* subtle scale-in on load */
    animation: heroBgIn 1.4s ease both;
}
/* Dark overlay so text stays readable over any photo */
.hero-bg-image::after { display: none; } /* overlay is on .hero::after below */
.hero::after {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    /* Adjust the alpha (0.62) to make image lighter or darker */
    background: linear-gradient(
        135deg,
        rgba(5, 14, 36, 0.75) 0%,
        rgba(5, 14, 36, 0.55) 50%,
        rgba(5, 14, 36, 0.70) 100%
    );
    pointer-events: none;
}
/* Keep orbs & grid for extra depth — semi-transparent on top of image */
.hero-orb { opacity: .55; }
.hero-grid { opacity: .40; }
/* Hide video when image is active */
.hero-bg-video { display: none !important; }

@keyframes heroBgIn {
    from { opacity: 0; transform: scale(1.06); }
    to   { opacity: 1; transform: scale(1); }
}

/* ┌─────────────────────────────────────────────────────────┐
   │  MODE 3 — VIDEO BACKGROUND  (currently OFF — uncomment to use)
   │  Store your video at: assets/videos/hero-bg.mp4
   │  Recommended: also provide a .webm for better browser support
   │  Keep video short (5–15s looping), compressed under 8MB
   └─────────────────────────────────────────────────────────┘ */
/*
.hero {
    background: var(--cc-navy);
    position: relative;
    overflow: hidden;
    padding: 60px 0 52px;
}
.hero-bg-video {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 14, 36, 0.78) 0%,
        rgba(5, 14, 36, 0.58) 50%,
        rgba(5, 14, 36, 0.72) 100%
    );
    pointer-events: none;
}
.hero-orb       { opacity: .45; }
.hero-grid      { opacity: .35; }
.hero-bg-image  { display: none !important; }
*/

/* ── Atmospheric orbs (shared by all modes) ── */
.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(110px); pointer-events: none; z-index: 1;
}
.hero-orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(29,110,245,.32) 0%, transparent 70%);
    top: -160px; left: -120px;
}
.hero-orb-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(6,182,212,.18) 0%, transparent 70%);
    bottom: -80px; right: -60px;
}
.hero-grid {
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(29,110,245,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29,110,245,.06) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at 40% 50%, black 20%, transparent 75%);
    pointer-events: none;
}

/* ── Row: always side-by-side, never stacked ── */
.hero .hero-row {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative; /* ensures z-index:2 on container works */
}

/* Left column: text */
.hero-content {
    flex: 1 1 0;
    min-width: 0;
    animation: aFadeDown .65s ease both;
}

/* Right column: image card */
.hero-visual {
    /* Fixed proportional width so image never pushes text */
    flex: 0 0 38%;
    max-width: 38%;
    animation: aFadeLeft .85s ease .15s both;
}

/* ─── TEXT ELEMENTS ─── */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6,182,212,.1);
    border: 1px solid rgba(6,182,212,.3);
    color: var(--cc-cyan);
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    flex-wrap: nowrap;
    letter-spacing: 0.5px;
}


.pulse-dot {
    width: 7px; height: 7px; border-radius: 30%;
    background: var(--cc-cyan);
    animation: aPulseDot 2s infinite;
    flex-shrink: 0;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    /* clamp: never tiny on mobile, never huge on desktop */
    font-size: clamp(1.65rem, 4.5vw, 3.4rem);
    font-weight: 900; color: var(--cc-white);
    line-height: 1.12; margin-bottom: 18px;
}
.hero-title .grad-text {
    background: var(--cc-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: clamp(.78rem, 1.8vw, .98rem);
    color: var(--cc-muted);
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 440px;
    display: block;
}
.hero-actions {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 20px;
}
.trust-items {
    display: flex; flex-wrap: wrap; gap: 14px;
}
.trust-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .75rem; color: var(--cc-muted); font-weight: 500;
}
.trust-badge i { color: var(--cc-blue); font-size: .75rem; }

/* ─── IMAGE CARD + SLIDESHOW ─── */
.laptop-card-inner {
    background: var(--cc-card);
    border: 1px solid var(--cc-border);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,.45);
    position: relative;
    /* Gradient border glow */
    outline: 1px solid transparent;
}
.laptop-card-inner::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(29,110,245,.3), rgba(6,182,212,.15), transparent 55%);
    z-index: -1;
    pointer-events: none;
}

/* ── Slideshow wrapper — aspect ratio per breakpoint ──────────────
   Desktop  (≥992px)  → 9:4 landscape  → assets/images/web/
   Tablet   (768–991) → 6:6 landscape   → assets/images/mobile-tab/
   Mobile   (≤767px)  → 6:12 portrait   → assets/images/mobile-tab/
   The JS engine (heroSlideshowScript) swaps <img> src at the 992px
   breakpoint so the correct image folder is always loaded.
──────────────────────────────────────────────────────────────── */
.hero-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 4;          /* desktop landscape (≥992px) */
    border-radius: 12px;
    overflow: hidden;
    background: #0a1628;
}

/* Individual slides */
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .9s ease, transform 1s ease;
    transform: scale(1.04);
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.hero-slide.leaving {
    opacity: 0;
    transform: scale(.97);
    z-index: 0;
}
.hero-slide img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    border-radius: 12px;
}

/* Slide progress dots */
.slide-dots {
    position: absolute; bottom: 10px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 2;
}
.slide-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: none; cursor: pointer; padding: 0;
    transition: all .35s;
}
.slide-dot.active {
    background: #fff;
    width: 18px; border-radius: 3px;
}

/* Slide progress bar — thin line at bottom of image */
.slide-progress {
    position: absolute; bottom: 0; left: 0;
    height: 3px; border-radius: 0 0 12px 12px;
    background: var(--cc-grad);
    width: 0%;
    transition: width linear;
    z-index: 3;
}

/* ─── FLOATING BADGES ─── */
.float-badge {
    position: absolute;
    background: rgba(10,22,40,.88);
    border: 1px solid var(--cc-border);
    border-radius: 12px; padding: 9px 13px;
    display: flex; align-items: center; gap: 9px;
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
    backdrop-filter: blur(14px);
    z-index: 4; white-space: nowrap;
}
.float-badge strong { display: block; color: var(--cc-white); font-size: .78rem; line-height: 1.2; }
.float-badge small  { color: var(--cc-muted); font-size: .66rem; }

.fb-1 {
    top: -14px; left: -14px;
    animation: aFloatY 4s ease-in-out infinite;
}
.fb-2 {
    bottom: -14px; right: -10px;
    animation: aFloatY 4s ease-in-out infinite 2s;
}

/* ─── KEYFRAMES ─── */
@keyframes aFadeDown { from{opacity:0;transform:translateY(-18px)} to{opacity:1;transform:translateY(0)} }
@keyframes aFadeLeft { from{opacity:0;transform:translateX(28px)}  to{opacity:1;transform:translateX(0)} }
@keyframes aPulseDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.55)} }
@keyframes aFloatY   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* ============================================================
   RESPONSIVE — Tablet: tighter, mid image
============================================================ */

/* Tablet: shrink image column a touch */


@media (min-width: 768px) and (max-width: 991.98px) {
    .hero { padding: 44px 0 38px; }
    .hero .hero-row { gap: 24px; align-items: center; }
    .hero-content { flex: 1 1 0; }
    .hero-visual { flex: 0 0 42%; max-width: 42%; }

    /*.hero-tag { font-size: 2rem; padding: 10px 18px; margin-bottom: 24px; letter-spacing: 0.5px; }*/
    .hero-tag {
        font-size: 1rem;
        padding: 10px 18px;
        margin-bottom: 24px;
        letter-spacing: 0.5px;
        gap: 10px;
    }
    .hero-title { font-size: clamp(2.8rem, 6vw, 4.2rem); margin-bottom: 22px; line-height: 1.2; }
    .hero-sub { font-size: 1.2rem; line-height: 1.75; margin-bottom: 28px; display: block; }
    .hero-actions { gap: 18px; margin-bottom: 28px; }
    .hero-actions .btn-cc-primary,
    .hero-actions .btn-cc-outline { padding: 16px 32px; font-size: 1.1rem; border-radius: 12px; font-weight: 600; }
    .trust-items { gap: 22px; flex-wrap: wrap; }
    .trust-badge { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
    .trust-badge i { font-size: 1.1rem !important; }

    .laptop-card-inner { padding: 12px; border-radius: 18px; }
    
    /* FIX: Separate tablet landscape vs portrait */
    @media (orientation: portrait) {
        .hero-slideshow { border-radius: 12px; aspect-ratio: 6 / 6; overflow: hidden; }
    }
    @media (orientation: landscape) {
        .hero-slideshow { border-radius: 12px; aspect-ratio: 16 / 9; overflow: hidden; }
    }
    
    .hero-slide img { border-radius: 12px; }

    .float-badge { padding: 8px 12px; gap: 8px; border-radius: 12px; }
    .float-badge i { font-size: 1rem !important; }
    .float-badge strong { font-size: .78rem; font-weight: 600; }
    .float-badge small { font-size: .66rem; display: inline-block; }
    .fb-1 { top: -12px; left: -10px; }
    .fb-2 { bottom: -12px; right: -8px; }
    .slide-dots { bottom: 10px; gap: 6px; }
    .slide-dot { width: 6px; height: 6px; border-radius: 10px; }
    .slide-dot.active { width: 18px; background: white; }

    .hero-slideshow::after { content: ''; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); pointer-events: none; }
}


/* ── Mobile phone in "desktop site" / wide-reported mode (768–850px portrait) ──
   Targets real phones that Chrome reports as tablet-width on live sites.
   Overrides the tablet query's oversized fonts back down to phone-friendly sizes. */
@media (min-width: 768px) and (max-width: 850px) and (orientation: portrait) {
    .hero { padding: 36px 0 32px; min-height: auto !important; height: auto !important; }
    .hero .hero-row { gap: 8px; align-items: center; }

    .hero-content { flex: 1 1 0; }
    .hero-visual  { flex: 0 0 40%; max-width: 40%; }

   /* .hero-tag  { font-size: 1rem; padding: 6px 10px; margin-bottom: 14px; line-height: 1.4; }*/

    .hero-tag {
        font-size: 1rem;
        padding: 6px 10px;
        margin-bottom: 14px;
        line-height: 1.4;
        flex-wrap: wrap;
        justify-content: flex-start; /* Left align */
        gap: 6px;
    }
    
    
    .hero-title { font-size: clamp(1.4rem, 5vw, 2rem); margin-bottom: 14px; line-height: 1.3; }
    .hero-sub   { font-size: .9rem; line-height: 1.75; margin-bottom: 20px; display: block; }
    .hero-actions { gap: 12px; margin-bottom: 18px; }
    .hero-actions .btn-cc-primary,
    .hero-actions .btn-cc-outline { padding: 11px 20px; font-size: .9rem; border-radius: 9px; }
    .trust-items { gap: 14px; }
    .trust-badge { font-size: .68rem; }
    .laptop-card-inner { padding: 8px; border-radius: 14px; }

    /* FIX: Separate mobile portrait vs landscape */
    @media (orientation: portrait) {
        .hero-slideshow { border-radius: 8px; aspect-ratio: 6 / 12; } /* portrait — mobile-tab/ images */
    }
    @media (orientation: landscape) {
        .hero-slideshow { border-radius: 8px; aspect-ratio: 16 / 9; } /* landscape — better fit */
    }
    
    .hero-slide img { border-radius: 8px; }

    .float-badge { padding: 6px 9px; gap: 5px; border-radius: 9px; }
    .float-badge i { font-size: .8rem !important; }
    .float-badge strong { font-size: .62rem; }
    .float-badge small  { display: none; }
    .fb-1 { top: -8px; left: -6px; }
    .fb-2 { bottom: -8px; right: -4px; }
    .slide-dots { bottom: 7px; gap: 4px; }
    .slide-dot  { width: 5px; height: 5px; }
    .slide-dot.active { width: 14px; }
}

/* Mobile: tighter — image must stay beside text */
@media (max-width: 767.98px) {
    .hero { 
        padding: 32px 0 28px; 
       min-height: auto !important;
        height: auto !important;    }
    .hero .hero-row { gap: 9px; align-items: center; }

    .hero-content { flex: 1 1 0; }
    .hero-visual  { flex: 0 0 39%; max-width: 39%; }

    /*.hero-tag  { font-size: .55rem; padding: 5px 7px; margin-bottom: 10px; line-height: 1.4; }*/
    .hero-tag {
        font-size: 0.60rem;
        padding: 5px 7px;
        margin-bottom: 10px;
        line-height: 1.4;
        gap: 5px;
        flex-direction: column; /* Stacks items vertically */
        align-items: flex-start; /* Left align everything */
        text-align: left; /* Left align text */
        justify-content: flex-start;
        letter-spacing: 0.5px;
    }
    
    /* First line wrapper */
    .hero-tag .first-line {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        width: auto; /* Auto width instead of full */
    }
    
    /* Second line */
    .hero-tag .second-line {
        display: block;
        width: auto;
        text-align: left;
    }
    
    /* Ensure pulse dot is visible */
    .hero-tag .pulse-dot {
        display: inline-block;
        width: 6px;
        height: 6px;
        background-color: var(--cc-cyan);
        border-radius: 50%;
        animation: pulse 1.5s ease-in-out infinite;
        flex-shrink: 0;
    }
    
    /* Animation if not already defined */
    @keyframes pulse {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
        }
        50% {
            opacity: 0.5;
            transform: scale(1.2);
        }
    }
    
    .hero-title { font-size: clamp(1.3rem, 5vw, 2rem); margin-bottom: 10px; line-height: 1.3; }
    .hero-sub   { font-size: .4rem; line-height: 1.2; margin-bottom: 7px; display: block; }*/
    .hero-actions { gap: 5px; margin-bottom: 8px; }
    .hero-actions .btn-cc-primary,
    .hero-actions .btn-cc-outline { padding: 8px 10px; font-size: .9rem; border-radius: 7px; }
    .trust-items { gap: 9px; }

    .trust-badge { font-size: .60rem; }
    .laptop-card-inner { padding: 8px; border-radius: 14px; }
    
    .hero-slideshow { border-radius: 8px; aspect-ratio: 6 / 12; overflow: hidden; }
    .hero-slide img { border-radius: 8px; }

    .float-badge { padding: 6px 9px; gap: 5px; border-radius: 9px; }
    .float-badge i { font-size: .8rem !important; }
    .float-badge strong { font-size: .62rem; }
    .float-badge small  { display: none; }
    .fb-1 { top: -8px; left: -6px; }
    .fb-2 { bottom: -8px; right: -4px; }
    .slide-dots { bottom: 7px; gap: 4px; }
    .slide-dot  { width: 5px; height: 5px; }
    .slide-dot.active { width: 14px; }
}





/* Very small phones (< 380px)
@media (max-width: 399px) {
    .hero-visual { flex: 0 0 36%; max-width: 36%; }
    .float-badge { display: none; } hide entirely on tiny screens 
    .hero-title  { font-size: 1rem; }


/* ── View All Products — gentle attention pulse ── */
@keyframes gentlePulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(29,110,245,.0);
        border-color: rgba(29,110,245,.5);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(29,110,245,.15);
        border-color: rgba(29,110,245,.9);
    }
}
.btn-pulse-blink {
    animation: gentlePulse 2.4s ease-in-out infinite;
}

/*========================================
       price-unavailable class
==========================================*/
.price-unavailable {
    color: var(--cc-muted);
    font-size: .85rem;
    font-style: italic;
}
.btn-add-cart--unavail,
.btn-add-home--unavail {
    opacity: 0.45;
    cursor: not-allowed;
    background: var(--cc-border) !important;
}

/* ============================================================
   FEATURED PRODUCTS - ROTATING GRID (2 mobile / 4 tablet / 6 desktop)
   JS outputs: col-6 col-md-3 col-lg-2  →  Bootstrap handles widths.
   We only need spacing + card styles here.
============================================================ */

#featuredGrid {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Spacing between cards */
#featuredGrid .featured-slot {
    padding: 0 10px !important;
    margin-bottom: 20px !important;
}

/* Product Card Styling */
#featuredGrid .product-card {
    background: var(--cc-card);
    border: 1px solid var(--cc-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#featuredGrid .product-card:hover {
    transform: translateY(-5px);
    border-color: var(--cc-blue);
    box-shadow: 0 20px 40px rgba(29, 110, 245, 0.15);
}

/* Image Container */
#featuredGrid .product-img-wrap {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #0f172a 0%, #1e2d47 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

#featuredGrid .product-img-wrap img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 160px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

#featuredGrid .product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}

/* Badge */
#featuredGrid .product-badge-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--cc-grad);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Content Area */
#featuredGrid .p-4 {
    padding: 20px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#featuredGrid .product-brand-label {
    color: var(--cc-blue-lt);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

#featuredGrid .product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cc-white);
    line-height: 1.3;
    margin-bottom: 12px;
    min-height: 2.6em;
}

/* Specs */
#featuredGrid .spec-line {
    color: var(--cc-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

#featuredGrid .spec-line i {
    color: var(--cc-blue);
    width: 16px;
    font-size: 0.75rem;
}

/* Price Row */
#featuredGrid .border-top {
    border-top: 1px solid var(--cc-border) !important;
    margin-top: auto;
    padding-top: 16px !important;
    margin-bottom: 16px !important;
}

#featuredGrid .product-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cc-white);
}

/* Rating Stars */
#featuredGrid [style*="color:var(--cc-gold)"] {
    color: var(--cc-gold) !important;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

#featuredGrid [style*="color:var(--cc-gold)"] span {
    color: var(--cc-muted) !important;
    font-size: 0.7rem;
}

/* Buttons */
#featuredGrid .btn-cc-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--cc-grad);
    color: white !important;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1;
}

#featuredGrid .btn-cc-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 110, 245, 0.3);
    color: white !important;
}

/* Action row */
#featuredGrid .d-flex.gap-2 {
    display: flex !important;
    gap: 10px !important;
    margin-top: auto;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    #featuredGrid {
        margin: 0 -8px !important;
    }
    
    #featuredGrid [class*="col-"] {
        padding: 0 8px !important;
        margin-bottom: 16px !important;
    }
    
    #featuredGrid .product-img-wrap {
        height: 180px;
        padding: 15px;
    }
    
    #featuredGrid .product-img-wrap img {
        max-height: 140px;
    }
    
    #featuredGrid .product-name {
        font-size: 1rem;
        min-height: 2.4em;
    }
    
    #featuredGrid .product-price {
        font-size: 1.2rem;
    }
    
    #featuredGrid .btn-cc-primary {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Restore proper borders after debug cleanup */
#featuredGrid {
    border: none !important;
}
#featuredGrid .product-card {
    border: 1px solid var(--cc-border) !important;
}
#featuredGrid .product-img-wrap {
    border: none !important;
}

/* Loading state */
#featuredLoading {
    text-align: center;
    padding: 60px 20px;
    color: var(--cc-muted);
}

#featuredLoading i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

/* ============================================================
   VIEW ALL PRODUCTS BUTTON — Under Featured Products
============================================================ */
.view-all-wrapper {
    margin-top: 48px;
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--cc-card);
    border: 2px solid var(--cc-blue);
    color: var(--cc-white) !important;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.btn-view-all i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    color: var(--cc-white) !important;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

/* Yellow pulse animation for the button */
@keyframes yellowPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.2);
        border-color: var(--cc-blue);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(251, 191, 36, 0.15), 0 0 30px rgba(251, 191, 36, 0.25);
        border-color: #fbbf24;
    }
}

.btn-view-all {
    animation: yellowPulse 2.5s ease-in-out infinite;
}

/* Override the old pulse class to use new styling */
.btn-pulse-blink {
    animation: yellowPulse 2.5s ease-in-out infinite !important;
    color: var(--cc-white) !important;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .view-all-wrapper {
        margin-top: 32px;
    }
    
    .btn-view-all {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

/* ============================================================
   FEATURED PRODUCTS — PAGE INDICATOR DOTS (hidden — silent rotation)
============================================================ */
#featuredDots {
    display: none !important;
}

.featured-slot{
    will-change: transform, opacity;
}


/* FINAL FIX: Portrait orientation (catches "Desktop site" on mobile) */
@media (orientation: portrait) {
    .hero {
        min-height: auto !important;
        height: auto !important;
        padding-top: 36px;
        padding-bottom: 32px;
    }

    /* Force background elements to hug edges */
    .hero::after,
    .hero-bg-image,
    .hero-orb,
    .hero-grid {
        top: 0 !important;
        bottom: 0 !important;
    }
}