/* =====================================================
   HULKNUTRITION — Global Background: Dark + Green Ambient Glow
   Applied to ALL pages. Navbar & Footer keep their own styles.
   ===================================================== */

/* Translation Flash Prevention (Cloak) */
.loading-cloak {
    /* Fast initial paint: removing opacity:0 so hero image displays instantly */
    pointer-events: none !important;
}
.loading-cloak.ready {
    pointer-events: auto !important;
}


@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
    --font-latin: 'Outfit', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
}

html {
    background-color: #030a06 !important;
    scroll-behavior: smooth;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Latin fonts (French & English) */
html[lang="fr"], html[lang="en"] {
    font-family: var(--font-latin) !important;
}

/* Arabic fonts */
html[lang="ar"], body.lang-ar, .font-serif {
    font-family: var(--font-arabic) !important;
    letter-spacing: 0 !important;
}

/* Professional Font Rendering for Mobile */
@media (max-width: 640px) {
    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;  
        overflow: hidden;
    }
    
    /* Ensure Amiri headings are perfectly legible */
    .lang-ar h3 {
        line-height: normal !important;
        font-weight: 700 !important;
        font-size: 115% !important; /* Amiri tends to look smaller than sans-serifs */
    }
}

body {
    background-color: transparent !important;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
}

/* Fixed full-page dark background with green glow — sits behind everything */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-color: #030a06;

    /* 
     * Three green ambient orbs:
     *  1. Top-center: main hero glow
     *  2. Mid-left: subtle secondary glow
     *  3. Bottom-right: subtle tertiary glow
     */
    background-image:
        radial-gradient(ellipse 90% 55% at 50% 12%, rgba(34, 197, 94, 0.17) 0%, transparent 65%),
        radial-gradient(ellipse 60% 45% at 15% 55%, rgba(34, 197, 94, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse 60% 45% at 85% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 65%);
}

/* =====================================================
   All <section> elements: transparent background
   so the body glow shows through uniformly.
   Cards, navbars, footers are NOT affected.
   ===================================================== */
section {
    background-color: transparent !important;
    background-image: none !important;
}

/* Keep section separators (subtle borders) */
section + section {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

header#header, #navbar-container {
    z-index: 5000 !important;
}

main, section, footer, aside {
    position: relative;
    z-index: 1;
}

/* =====================================================
   Scrollbar — consistent across all pages
   ===================================================== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #030a06;
}
::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.4);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.7);
}
/* =====================================================
   Utilities & Structural Refinements
   ===================================================== */

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* =====================================================
   PREMIUM HERO TITLE: .hero-title
   High-end typography and entrance animations
   ===================================================== */
.hero-title {
    font-size: clamp(34px, 8vw, 76px) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 2rem !important;
    text-align: center;
    /* Branded Gradient */
    background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    position: relative;
    /* Sophisticated Entrance + Smooth Pulse */
    animation: 
        heroTitleSophisticated 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        heroPulse 4s ease-in-out 1.5s infinite;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes heroPulse {
    0%, 100% { 
        transform: translateY(0) scale(1.01) rotateX(0deg); 
        filter: blur(0) brightness(1.1); 
    }
    50% { 
        transform: translateY(-2px) scale(1.03) rotateX(0deg); 
        filter: blur(0) brightness(1.3); 
    }
}

@keyframes heroTitleSophisticated {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1.01);
        filter: blur(0);
    }
}

/* SUBTITLE DESIGN */
.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    max-width: 42rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    opacity: 0;
    animation: heroSubtitleFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes heroSubtitleFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Disable sub-page animations - Static & Clear */
.sub-hero .hero-title,
.sub-hero .hero-subtitle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

@keyframes heroTitleSophisticated {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroPulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.2)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 35px rgba(34, 197, 94, 0.4)); transform: scale(1.02); }
}

/* Periodic shine effect */
.hero-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg) translateY(-50%);
    animation: shineInfinite 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes shineInfinite {
    0% { left: -150%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

/* Arabic override for Title - Refined */
[dir="rtl"] .hero-title {
    font-family: var(--font-arabic) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(30px, 12vw, 48px) !important;
        margin-bottom: 1.25rem !important;
    }
}

/* Sub-pages Hero Consistency - Raised Even More */
.sub-hero {
    min-height: 40vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 40px !important; 
    padding-bottom: 20px !important;
}

@media (min-width: 768px) {
    .sub-hero {
        min-height: 60vh !important;
        padding-top: 80px !important;
    }
}

/* Shop Hero Overlay — improved contrast for titles */
.hero-overlay-gradient {
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.85) 0%, 
        rgba(0,0,0,0.3) 50%, 
        #030604 100%) !important;
}

/* Card hover effect refinement */
.card-hover:hover {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.12) !important;
}

/* =====================================================
   Mobile Grid Helpers & Fixes
   ===================================================== */
@media (max-width: 640px) {
    /* Prevent WhatsApp button from blocking the last row */
    #whatsapp-btn, .whatsapp-fab, #whatsapp-float-btn {
        bottom: 80px !important; 
        right: 16px !important;
        width: 44px !important;
        height: 44px !important;
        z-index: 40 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #whatsapp-btn svg, .whatsapp-fab svg, #whatsapp-float-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    [dir="rtl"] #whatsapp-btn, 
    [dir="rtl"] .whatsapp-fab, 
    [dir="rtl"] #whatsapp-float-btn {
        right: auto !important;
        left: 16px !important;
    }
    
    /* Global SVG scaling safety */
    svg {
        max-width: 100% !important;
        max-height: 100% !important;
    }
}

/* Logical Alignment Utilities */
.text-start { text-align: left; }
.text-end { text-align: right; }
[dir="rtl"] .text-start { text-align: right; }
[dir="rtl"] .text-end { text-align: left; }

/* Global WhatsApp RTL Fix */
[dir="rtl"] #whatsapp-float-btn {
    right: auto !important;
    left: 1.5rem !important; /* Matches right-6 = 24px */
}


/* Quiz RTL Polish */
[dir="rtl"] .quiz-step-card .flex {
    flex-direction: row-reverse;
}

[dir="rtl"] .quiz-step-card .text-left, 
[dir="rtl"] .quiz-step-card .text-start {
    text-align: right !important;
}

[dir="rtl"] .quiz-icon-wrap {
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .check-circle {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .rtl\:rotate-180 {
    transform: rotate(180deg);
}

/* Ensure font size is correct in RTL */
[dir="rtl"] .quiz-step-card h3 {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
}

/* Mobile RTL Refinements */
@media (max-width: 640px) {
    [dir="rtl"] .quiz-step-card {
        padding: 16px 12px;
    }
}

/* =====================================================
   Tailwind Runtime Fallbacks (Robustness)
   Ensures layout doesn't break if Tailwind isn't loaded.
   ===================================================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hidden { display: none; }
.w-full { width: 100%; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }

/* SVG Icon Safety (Prevents "Huge" icons) */
.w-4 { width: 1rem !important; }
.h-4 { height: 1rem !important; }
.w-5 { width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; }
.w-6 { width: 1.5rem !important; }
.h-6 { height: 1.5rem !important; }
.w-8 { width: 2rem !important; }
.h-8 { height: 2rem !important; }
.w-14 { width: 3.5rem !important; }
.h-14 { height: 3.5rem !important; }
.w-16 { width: 4rem !important; }
.h-16 { height: 4rem !important; }

/* Fix Quiz Design specifically */
.quiz-glass-card svg {
    max-width: 14px !important;
    max-height: 14px !important;
}
.quiz-icon-wrap {
    min-width: 52px;
    min-height: 52px;
}
[dir="rtl"] .quiz-icon-wrap {
    margin-left: 0;
}

/* =====================================================
   HULKNUTRITION BRANDED CAROUSEL: #hulk-cat-carousel
   ===================================================== */
/* =====================================================
   HULKNUTRITION BRANDED CAROUSEL: #hulk-cat-carousel
   Version 4.0 - Horizontal Scroll Only
   ===================================================== */
.category-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
}

#hulk-cat-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    padding: 20px !important;
    margin: 0 !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

#hulk-cat-carousel::-webkit-scrollbar {
    display: none !important;
}

.category-card {
    display: inline-block !important;
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    aspect-ratio: 16/11 !important;
    height: auto !important;
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: #0a0a0a !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    scroll-snap-align: start !important;
    text-decoration: none !important;
    isolation: isolate !important;
    box-sizing: border-box !important;
    vertical-align: top !important;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: #22c55e !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 197, 94, 0.2) !important;
    z-index: 10 !important;
}

.category-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.6 !important;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease !important;
}

.category-card:hover .category-img {
    transform: scale(1.1) rotate(1deg) !important;
    opacity: 0.8 !important;
}

.category-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%) !important;
    z-index: 2 !important;
}

.category-content {
    position: absolute !important;
    inset: 0 !important;
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    text-align: center !important;
    z-index: 3 !important;
}

.category-name {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 6px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
}

/* Arabic text needs slightly larger font size */
.lang-ar .category-name {
    font-size: 12px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.category-cta {
    display: inline-block !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    color: #000 !important;
    background: #22c55e !important;
    padding: 2px 12px !important;
    border-radius: 999px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3) !important;
    transform: translateY(10px) !important;
    opacity: 0 !important;
    transition: all 0.4s ease !important;
}

.category-card:hover .category-cta {
    transform: translateY(0) !important;
    opacity: 1 !important;
}


/* No Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar { display: none !important; }
.no-scrollbar { -ms-overflow-style: none !important; scrollbar-width: none !important; }

@media (min-width: 1024px) {
    #hulk-cat-carousel {
        /* Desktop: Start categories to prevent clipping bugs on overflow */
        justify-content: flex-start !important;
        padding: 20px 40px !important;
    }
}

/* =====================================================
   PREMIUM REVEAL SYSTEM
   ===================================================== */
.reveal {
    opacity: 0 !important;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: none;
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1 !important;
    pointer-events: auto;
}

/* Specific Transitions */
.reveal-up { transform: translateY(40px); }
.reveal-up.active { transform: translateY(0); }

.reveal-scale { transform: scale(0.95); }
.reveal-scale.active { transform: scale(1); }

.reveal-in { transform: none; }

/* Staggered Delays */
.reveal.active.delay-100 { transition-delay: 100ms !important; }
.reveal.active.delay-200 { transition-delay: 200ms !important; }
.reveal.active.delay-300 { transition-delay: 300ms !important; }
.reveal.active.delay-400 { transition-delay: 400ms !important; }
.reveal.active.delay-500 { transition-delay: 500ms !important; }

/* Micro-interactions: Global Pulsing for CTA Buttons */
.btn-pulse {
    animation: btnBreath 3s ease-in-out infinite;
}

@keyframes btnBreath {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 10px 40px rgba(34, 197, 94, 0.4); }
}

/* Staggering for dynamically loaded items (best sellers, products) */
.product-card-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Blog Mobile Enhancements ────────────────────────── */
@media (max-width: 768px) {
    .blog-categories-mobile {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 4px 0 20px 0 !important;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px !important;
    }
    .blog-categories-mobile::-webkit-scrollbar {
        display: none;
    }
    .blog-categories-mobile button {
        flex: 0 0 auto !important;
        padding: 10px 20px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    /* Small Blog Card Layout for Mobile */
    .blog-card-mobile {
        width: 240px !important;
        max-width: 240px !important;
        height: auto !important;
        min-height: 320px !important;
    }
    
    .blog-card-mobile .h-48 {
        height: 140px !important;
    }

    .blog-card-mobile h3 {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    .blog-card-mobile p {
        font-size: 10px !important;
    }
    
    .blog-featured-mobile {
        flex-direction: column !important;
    }
    .blog-featured-mobile .aspect-video {
        aspect-ratio: 16/10 !important;
    }

    /* ── About Page Mobile Enhancements ─────────────────── */
    /* Values Carousel */
    .about-values-mobile {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        padding: 4px 4px 24px 4px !important;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px !important;
    }
    .about-values-mobile::-webkit-scrollbar {
        display: none;
    }
    .about-values-mobile > div {
        flex: 0 0 280px !important;
        scroll-snap-align: center !important;
    }

    /* Team Layout Adjustments */
    .team-grid-mobile {
        grid-template-columns: 1fr !important;
        gap: 48px !important;
    }
    .team-grid-mobile .w-48 {
        width: 130px !important;
        height: 130px !important;
    }
    .team-grid-mobile h3 {
        font-size: 1.3rem !important;
    }

    /* Stats Badge Positioning on Mobile */
    .about-stats-mobile {
        bottom: -1.2rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0.8rem 1.2rem !important;
        width: max-content !important;
        border-radius: 1rem !important;
    }
    .about-stats-mobile p:first-child {
        font-size: 1.8rem !important;
    }
}

/* =====================================================
   HULKNUTRITION ULTRA-PREMIUM DESIGN SYSTEM (V5.0)
   Focused on Mobile conversion & Brand Excellence
   ===================================================== */

/* ── Global Enhancements ── */
:root {
    --accent-glow-primary: rgba(34, 197, 94, 0.4);
    --surface-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
}

.glass-morphism {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

.neon-shadow-green {
    box-shadow: 0 0 25px var(--accent-glow-primary);
}

/* ── Mobile Sticky Action Bar ── */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 16px env(safe-area-inset-bottom);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 4000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-action-bar.visible {
    transform: translateY(0);
}

/* ── Bento Grid Utilities ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 16px;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bento-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.3s ease;
}

.bento-card:hover {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.05);
}

/* ── Modern Accordion ── */
.premium-accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.premium-accordion-trigger {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.premium-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-accordion-item.active .premium-accordion-content {
    max-height: 1000px;
    padding-bottom: 20px;
}

.premium-accordion-icon {
    transition: transform 0.4s;
}

.premium-accordion-item.active .premium-accordion-icon {
    transform: rotate(180deg);
}

/* ── Reviews Carousel ── */
.reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none;
}

.reviews-carousel::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 24px;
}

@media (max-width: 480px) {
    .review-card {
        flex: 0 0 280px;
    }
}

/* ── Image Gallery (Snap) ── */
.product-gallery-snap {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 30px;
}

.product-gallery-snap::-webkit-scrollbar {
    display: none;
}

.gallery-image-wrapper {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 1/1;
}

/* ── Skeleton Loading ── */
.skeleton {
    background: linear-gradient(90deg, #0a0a0a 25%, #1a1a1a 50%, #0a0a0a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Float Animation ── */
.animate-float-slow {
    animation: float-slow 4s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ── Exclusive Offers Banner (Seamless Integration) ── */
.offers-banner {
    width: 100%;
    height: 140px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(5, 5, 5, 0.9) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    /* Soft top & bottom fade using Mask-Image. The only true way to erase edges! */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2rem; 
    overflow: visible;
    animation: premium-pulse 4s ease-in-out infinite;
}

/* Moving Light Sweep (Reflection Effect) */
.offers-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: sweep-light 2s infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes sweep-light {
    0% { left: -150%; }
    80% { left: 200%; } /* Takes 1.6s to sweep across smoothly */
    100% { left: 200%; } /* 0.4s pause before starting again */
}

@keyframes premium-pulse {
    0%, 100% { 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 10px rgba(34, 197, 94, 0); 
    }
    50% { 
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 20px rgba(34, 197, 94, 0.2); 
    }
}

/* No fake fogs needed anymore since mask-image physically fades the edges */
.offers-banner::after {
    display: none;
}


@media (max-width: 768px) {
    .offers-banner {
        margin-bottom: 3rem; 
        height: 100px;
        background-size: 100% 100%; 
    }
    .offers-banner::after {
        height: 30px; 
        background: linear-gradient(to top, #050505 0%, rgba(5, 5, 5, 0.15) 40%, transparent 100%);
    }
}

.offers-banner h2 {
    z-index: 10;
    position: relative;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #000;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.7);
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* RTL Adjustments */
[dir="rtl"] .offers-banner h2 {
    font-family: var(--font-arabic);
    letter-spacing: 0; /* Arabic cursive shouldn't have letter spacing */
}
