/* ==========================================================================
   THE SHELF (ذا شيلف) - Modern Vibrant Stylesheet (Bahama Buck's Aesthetic)
   Primary Color: #FF381D (Logo Red Heart Accent)
   ========================================================================== */

:root {
    --primary-red: #FF381D;
    --primary-red-hover: #E02B12;
    --primary-red-light: #FFEBE8;
    --accent-orange: #FF7020;
    --accent-gold: #FF6B35;
    --accent-mint: #10B981;
    --bg-cream: #FFF9F2;
    --bg-warm-card: #FFFFFF;
    --dark-slate: #1E293B;
    --dark-card: #0F172A;
    --text-main: #334155;
    --text-muted: #64748B;
    --border-light: #FFE3DC;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 999px;
    --shadow-soft: 0 10px 30px -5px rgba(255, 56, 29, 0.12);
    --shadow-bouncy: 0 14px 28px rgba(0, 0, 0, 0.08), 0 10px 10px rgba(0, 0, 0, 0.04);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    position: relative;
    line-height: 1.6;
    direction: rtl;
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
}

/* FontAwesome icon elements must NOT have font-family overridden */
.fa, .fas, .far, .fal, .fab, .fad, .fa-solid, .fa-regular,
.fa-light, .fa-brands, [class^="fa-"], [class*=" fa-"] {
    font-family: inherit; /* will be set by FA's own CSS */
}

/* Typography Utilities - excluding icon elements */
h1, h2, h3, h4, h5, h6, button, input, select, textarea, a, p, span {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    line-height: 1.25;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--dark-slate);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 90px 0;
}

.text-center { text-align: center; }
.text-white { color: #FFFFFF !important; }

/* Subheading Pill Badge */
.sub-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-red-light);
    color: var(--primary-red);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.sub-heading-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 184, 0, 0.15);
    color: var(--accent-gold);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--dark-slate);
    margin-bottom: 12px;
}

.section-desc {
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 40px auto;
}

/* Bahama Buck's Bouncy Hover Containers */
.hover-outer {
    display: inline-block;
    transition: transform 0.3s var(--transition-bounce);
}

.hover-inner {
    transition: transform 0.3s var(--transition-bounce), box-shadow 0.3s ease;
}

.hover-outer:hover {
    transform: translateY(-6px) scale(1.02);
}

.hover-outer:hover .hover-inner {
    box-shadow: 0 20px 40px rgba(255, 56, 29, 0.2);
}

.load-bounce {
    animation: bounceIn 0.8s var(--transition-bounce) forwards;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.85) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Button Component Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary, .btn-red {
    background: linear-gradient(135deg, var(--primary-red), #FF523B);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(255, 56, 29, 0.3);
}

.btn-primary:hover, .btn-red:hover {
    background: linear-gradient(135deg, #E02B12, var(--primary-red));
    box-shadow: 0 12px 28px rgba(255, 56, 29, 0.45);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--dark-slate);
    border: 2px solid var(--border-light);
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}

.btn-secondary:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-dark {
    background: var(--dark-slate);
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #FFFFFF;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #FFFFFF;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
}

.btn-block {
    width: 100%;
}

/* Floating Particles Background */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    opacity: 0.12;
    animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    20% { opacity: 0.15; }
    80% { opacity: 0.15; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Announcement Ticker Bar */
.announcement-bar {
    background: linear-gradient(90deg, #FF381D, #FF6B35, #FF381D);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    color: #FFFFFF;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 101;
    width: 100%;
    direction: rtl;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ticker-content {
    display: flex;
    width: max-content;
    white-space: nowrap;
    gap: 40px;
    will-change: transform;
    animation: tickerMove 25s linear infinite;
}

.ticker-content span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

@keyframes tickerMove {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(50%, 0, 0); }
}

/* Header & Navigation */
#main-header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(255, 249, 242, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 56, 29, 0.08);
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.brand-logo {
    display: flex;
    align-items: center;
}

#logo-img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(255, 56, 29, 0.15));
    transition: transform 0.3s var(--transition-bounce);
}

.brand-logo:hover #logo-img {
    transform: scale(1.06) rotate(-2deg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-toggle-btn {
    background: #FFFFFF;
    border: 2px solid var(--border-light);
    color: var(--dark-slate);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--transition-bounce);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lang-toggle-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 56, 29, 0.15);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--dark-slate);
    transition: color 0.25s ease;
    position: relative;
    padding: 4px 0;
}

.nav-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-red);
    opacity: 0.85;
    margin-top: -2px;
    letter-spacing: -0.2px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-red);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 24px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 4px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--dark-slate);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-toggle:hover {
    background: var(--primary-red-light);
    color: var(--primary-red);
}

/* Desktop navbar layout */
#navbar {
    display: flex;
    align-items: center;
}

.nav-icon-mobile {
    display: none;
}

.mobile-menu-btn-wrap {
    display: none;
}

/* Mobile Nav Drawer Open State */
@media (max-width: 768px) {
    #navbar {
        display: none;
    }

    #navbar.open {
        display: block !important;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        padding: 16px 20px 20px;
        border-bottom: 2px solid var(--primary-red-light);
        box-shadow: 0 20px 45px rgba(255, 56, 29, 0.15);
        z-index: 9999;
        animation: slideDownNav 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

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

    #navbar.open .nav-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    #navbar.open .nav-item {
        width: 100%;
        border-bottom: none;
    }

    #navbar.open .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 14px 20px;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--dark-slate);
        background: rgba(255, 56, 29, 0.04);
        border: 1px solid rgba(255, 56, 29, 0.08);
        border-radius: var(--radius-md);
        transition: all 0.25s ease;
    }

    #navbar.open .nav-link:hover,
    #navbar.open .nav-link.active {
        background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
        color: #FFFFFF;
        border-color: var(--primary-red);
        box-shadow: 0 8px 20px rgba(255, 56, 29, 0.22);
        transform: translateX(-4px);
    }

    .nav-icon-mobile {
        display: inline-block;
        font-size: 1.1rem;
    }

    #navbar.open .nav-link::after {
        display: none;
    }

    .mobile-menu-btn-wrap {
        display: block;
        margin-top: 14px;
        padding-top: 10px;
        border-top: 1px dashed rgba(255, 56, 29, 0.15);
    }

    .mobile-menu-btn-wrap .btn {
        width: 100%;
        border-radius: var(--radius-md);
        padding: 14px;
        font-size: 1rem;
        font-weight: 800;
    }
}

/* HERO SECTION (Bahama Buck's 3D Parallax Style) */
.hero-section {
    position: relative;
    padding: 90px 0 120px 0;
    overflow: hidden;
    background: linear-gradient(160deg, #FFF9F2 60%, #FFF0EB 100%);
}

.hero-bg-blobs .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    z-index: 0;
}

.blob-1 {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, #FFD2CA, #FFBDAD);
    top: -140px;
    right: -140px;
}

.blob-2 {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, #FFE6A3, #FADA5E);
    bottom: -80px;
    left: -80px;
}

.blob-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #FFDDE8, #FFBDD2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.hero-tagline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFEBE8;
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(255, 56, 29, 0.12);
    margin-bottom: 20px;
    border: 2px solid #FFC9C0;
    animation: bounceIn 0.8s var(--transition-bounce);
}

/* Hero Eyebrow Label (above title, no tag/badge) */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 4px;
}

.hero-eyebrow::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 4px;
}

.hero-title {
    font-size: clamp(1.9rem, 4.8vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 22px;
    color: var(--dark-slate);
}

.highlight-text {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 0;
    width: 100%;
    height: 14px;
    background: rgba(255, 184, 0, 0.35);
    z-index: -1;
    border-radius: 6px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(255, 56, 29, 0.1);
    box-shadow: 0 8px 32px rgba(255, 56, 29, 0.08);
    margin-top: 16px;
    overflow: hidden;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-left: 1px solid rgba(0,0,0,0.06);
}

/* حذف الحد من الجانب الأيسر للأعمدة الأولى (RTL) */
.stat-item:nth-child(3n+1) { border-left: none; }
/* حذف الحد السفلي من الصف الأخير */
.stat-item:nth-child(4),
.stat-item:nth-child(5),
.stat-item:nth-child(6) { border-bottom: none; }

.stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 3px;
}

.stat-divider { display: none; }


/* 3D PARALLAX STAGE (CAROUSEL SHOWCASE) */
.hero-visual-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-pills {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pill-btn {
    background: #FFFFFF;
    border: 2px solid var(--border-light);
    color: var(--dark-slate);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-bounce);
}

.pill-btn.active, .pill-btn:hover {
    background: var(--primary-red);
    color: #FFFFFF;
    border-color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(255, 56, 29, 0.3);
    transform: translateY(-2px);
}

.stage-frame {
    position: relative;
    height: 580px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.morph-bg-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.morph-svg {
    width: 440px;
    height: 440px;
    filter: drop-shadow(0 20px 30px rgba(255, 56, 29, 0.12));
    animation: morphPulse 8s ease-in-out infinite alternate;
}

@keyframes morphPulse {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.05) rotate(6deg); }
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s var(--transition-bounce);
    transform: scale(0.92);
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.floater-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease-out;
}

.slide-main-img {
    width: 560px;
    height: 560px;
    object-fit: cover;
    border-radius: 28px;
    filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.18));
}

.floating-badge {
    position: absolute;
    background: linear-gradient(135deg, var(--accent-gold), #FF9800);
    color: #FFFFFF;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.4);
}

.badge-top-right {
    top: 40px;
    right: 40px;
    animation: floatBadge 3s ease-in-out infinite alternate;
}

@keyframes floatBadge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
    animation: floatIcon 4s ease-in-out infinite alternate;
}

.icon-leaf-1 { top: 20px; left: 60px; }
.icon-mint-2 { bottom: 60px; right: 50px; }
.icon-heart-1 { top: 120px; right: 20px; color: var(--primary-red); }

@keyframes floatIcon {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(15deg); }
}

.price-tag-floating {
    position: absolute;
    bottom: 30px;
    left: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.tag-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--dark-slate);
}

.tag-price {
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--primary-red);
}

.stage-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--dark-slate);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s var(--transition-bounce);
}

.stage-arrow:hover {
    background: var(--primary-red);
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow { right: -15px; }
.next-arrow { left: -15px; }

/* CATEGORY & PRODUCERS CARDS SECTION - 4-CARD SLIDER */
.categories-slider-container,
.producers-slider-container {
    position: relative;
    padding: 10px 15px;
    margin-top: 20px;
}

.categories-slider-viewport,
.producers-slider-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 10px 4px;
}

.categories-slider-track,
.producers-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Card item size: 4 visible cards on desktop */
.cat-card-item {
    flex: 0 0 calc(25% - 18px);
    min-width: calc(25% - 18px);
    box-sizing: border-box;
}

.cat-card-inner {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cat-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 59, 92, 0.15);
    border-color: rgba(255, 59, 92, 0.3);
}

.cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 3;
    letter-spacing: 0.5px;
}

.cat-img-box {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
    background: #F8F9FA;
}

.cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-card-inner:hover .cat-img-box img {
    transform: scale(1.08);
}

.cat-details {
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
}

.cat-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark, #2D2D2D);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Modal App Tabs Switcher */
.modal-app-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    background: #F1F5F9;
    padding: 6px;
    border-radius: 14px;
}

.modal-tab {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #64748B;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.modal-tab.active {
    background: #FFFFFF;
    color: #FF3B5C;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid rgba(255, 56, 29, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: var(--primary-red, #FF381D);
    font-size: 1rem;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--primary-red, #FF381D);
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 28px rgba(255, 56, 29, 0.35);
}

.arrow-prev {
    right: -15px !important;
    left: auto !important;
}

.arrow-next {
    left: -15px !important;
    right: auto !important;
}

/* Dots Pagination */
.categories-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.categories-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E2E8F0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.categories-slider-dots .dot.active {
    width: 32px;
    border-radius: 12px;
    background: var(--primary-red, #FF3B5C);
    box-shadow: 0 4px 12px rgba(255, 59, 92, 0.4);
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
    .cat-card-item {
        flex: 0 0 calc(33.333% - 16px);
        min-width: calc(33.333% - 16px);
    }
    .arrow-prev { right: -10px; }
    .arrow-next { left: -10px; }
}

@media (max-width: 768px) {
    .cat-card-item {
        flex: 0 0 calc(50% - 12px);
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 480px) {
    .cat-card-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .arrow-prev { right: 0; }
    .arrow-next { left: 0; }
}

/* QUIZ SECTION (DARK THEME WITH GOLD ACCENTS) */
.dark-bg {
    background: var(--dark-slate);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.dark-bg h2 {
    color: #FFFFFF;
}

.quiz-box-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-card {
    background: var(--dark-card);
    border: 2px solid rgba(255, 184, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-step {
    display: none;
    width: 100%;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-indicator {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.step-question {
    font-size: 1.6rem;
    color: #FFFFFF;
    margin-bottom: 28px;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quiz-opt-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 20px;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: right;
    transition: all 0.3s var(--transition-bounce);
}

.quiz-opt-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 56, 29, 0.4);
}

.opt-emoji {
    font-size: 1.8rem;
}

.quiz-result-view {
    display: none;
    text-align: center;
    width: 100%;
}

.quiz-result-view.active {
    display: block;
    animation: bounceIn 0.6s var(--transition-bounce);
}

.result-badge {
    background: rgba(255, 184, 0, 0.2);
    color: var(--accent-gold);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    display: inline-block;
    font-weight: 800;
    margin-bottom: 16px;
}

.result-title {
    font-size: 2.2rem;
    color: #FFFFFF;
    margin-bottom: 14px;
}

.result-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.result-action {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* CUSTOM BOX BUILDER SECTION */
.builder-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

.builder-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.b-tab {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.b-tab.active, .b-tab:hover {
    background: var(--primary-red);
    color: #FFFFFF;
    border-color: var(--primary-red);
}

.builder-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.b-item-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: all 0.3s var(--transition-bounce);
    position: relative;
}

.b-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-red);
}

.b-item-img {
    height: 100px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 12px;
}

.b-item-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.b-item-seller {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.b-item-price {
    font-weight: 900;
    color: var(--primary-red);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 12px;
}

.b-add-btn {
    background: var(--primary-red-light);
    color: var(--primary-red);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.b-add-btn:hover {
    background: var(--primary-red);
    color: #FFFFFF;
}

/* RIGHT TRAY VISUALIZER */
.box-tray-card {
    width: 100%;
    position: sticky;
    top: 100px;
}

.box-tray-inner {
    background: #FFFFFF;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-bouncy);
}

.tray-header {
    text-align: center;
    margin-bottom: 24px;
}

.tray-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.box-capacity {
    display: inline-block;
    background: var(--primary-red-light);
    color: var(--primary-red);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-top: 6px;
}

.box-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.tray-slot {
    aspect-ratio: 1;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    background: var(--bg-cream);
    position: relative;
    transition: all 0.3s ease;
}

.tray-slot.filled {
    border-style: solid;
    border-color: var(--primary-red);
    background: #FFFFFF;
}

.tray-slot.empty span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
}

.slot-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.slot-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-red);
    color: #FFFFFF;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
}

.custom-notes-wrap {
    margin-bottom: 24px;
}

.custom-notes-wrap label {
    display: block;
    font-weight: 800;
    font-size: 0.88rem;
    margin-bottom: 8px;

}

.custom-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.custom-input:focus {
    border-color: var(--primary-red);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.price-row strong {
    color: var(--primary-red);
    font-size: 1.4rem;
}

/* PRODUCERS SLIDER / CARDS */
.bg-cream {
    background: var(--bg-cream);
}

.producers-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.producer-card {
    width: 100%;
}

.card-content {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-bouncy);
    text-align: center;
    position: relative;
    height: 100%;
}

.producer-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.avatar-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-gold));
    overflow: hidden;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #FFFFFF;
    color: #10B981;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.producer-name {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.producer-loc {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.rating-stars {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.rating-stars span {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-right: 6px;
}

.producer-story {
    font-size: clamp(0.82rem, 2vw, 0.9rem) !important;
    color: #475569 !important;
    line-height: 1.55 !important;
    margin-bottom: 15px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    background: rgba(255, 245, 242, 0.6) !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    border-right: 3px solid #FF5C38 !important;
    font-style: italic !important;
}

.producer-top-item {
    background: var(--bg-cream);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-top {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 0.8rem;
}

/* APP DOWNLOAD SHOWCASE SECTION */
.app-showcase-section {
    background: linear-gradient(135deg, #FF381D, #D6230C);
    position: relative;
    overflow: hidden;
}

.app-showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.app-title {
    font-size: 3.2rem;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.highlight-yellow {
    color: var(--accent-gold);
}

.app-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 36px;
    line-height: 1.7;
}

.app-features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.f-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.f-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #FFFFFF;
    flex-shrink: 0;
}

.f-item h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.f-item p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.download-store-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn .btn-inner {
    background: #FFFFFF;
    color: var(--dark-slate);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.store-btn i {
    font-size: 2rem;
    color: var(--primary-red);
}

.store-btn span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.store-btn strong {
    display: block;
    font-size: 1.1rem;
}

/* ==========================================================================
   IPHONE 17 PRO MOCKUP & 5-SCREEN VERTICAL SLIDER STYLES
   ========================================================================== */
.app-phone-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Phone Screen Switcher Nav Controls */
.phone-screen-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 330px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: var(--radius-full);
}

.screen-counter-badge {
    font-size: 0.85rem;
    font-weight: 800;
    color: #FFFFFF;
}

.screen-dots {
    display: flex;
    gap: 6px;
}

.screen-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.screen-dots .dot.active {
    width: 22px;
    border-radius: 10px;
    background: var(--primary-red);
}

.screen-nav-btns {
    display: flex;
    gap: 6px;
}

.btn-screen-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--primary-red);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.btn-screen-arrow:hover {
    transform: scale(1.1);
}

/* iPhone 17 Pro Body Frame */
.iphone-17-pro {
    width: 265px;
    height: 525px;
    position: relative;
    margin: 0 auto;
}

.iphone-body-inner {
    width: 100%;
    height: 100%;
    background: #1C1F26;
    border-radius: 48px;
    padding: 10px;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 4px #3B404D, 0 0 0 7px #121418;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* iPhone 17 Titanium Side Details */
.iphone-action-button {
    position: absolute;
    right: -8px;
    top: 90px;
    width: 4px;
    height: 26px;
    background: #4B515D;
    border-radius: 4px 0 0 4px;
}

.iphone-volume-up {
    position: absolute;
    right: -8px;
    top: 130px;
    width: 4px;
    height: 48px;
    background: #4B515D;
    border-radius: 4px 0 0 4px;
}

.iphone-volume-down {
    position: absolute;
    right: -8px;
    top: 190px;
    width: 4px;
    height: 48px;
    background: #4B515D;
    border-radius: 4px 0 0 4px;
}

.iphone-power-button {
    position: absolute;
    left: -8px;
    top: 150px;
    width: 4px;
    height: 64px;
    background: #4B515D;
    border-radius: 0 4px 4px 0;
}

/* Inner Screen Frame */
.iphone-screen-frame {
    position: absolute;
    inset: 10px;
    background: #000;
    border-radius: 40px;
    overflow: hidden;
    box-sizing: border-box;
}

.app-custom-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    display: block;
}

/* Dynamic Island - hidden, image fills full screen */
.iphone-dynamic-island {
    display: none;
}

.camera-lens {
    display: none;
}

.sensor-dot {
    display: none;
}

/* Status Bar - hidden, image fills full screen */
.iphone-status-bar {
    display: none;
}

.status-icons {
    display: flex;
    gap: 5px;
    font-size: 0.68rem;
}

/* Viewport and Vertical Slider */
.iphone-screen-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000;
}

.iphone-screens-slider {
    height: 500%;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    display: flex;
    flex-direction: column;
}

.iphone-slide-screen {
    height: 20%;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

/* App Header inside Screen 1 */
.app-screen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #FFE3DC;
}

.app-mini-logo {
    height: 24px;
}

.app-search-mini {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid #FFE3DC;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-screen-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin-top: 6px;
}

.app-promo-card {
    background: linear-gradient(90deg, #FF381D, #FF7020);
    color: #FFFFFF;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
}

.app-cat-row {
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.app-chip {
    background: #FFFFFF;
    border: 1px solid #FFE3DC;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.app-chip.active {
    background: #FF381D;
    color: #FFFFFF;
    border-color: #FF381D;
}

.app-product-card-mini {
    background: #FFFFFF;
    border: 1px solid #FFE3DC;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.app-product-card-mini img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.p-details h5 {
    font-size: 0.78rem;
    margin-bottom: 2px;
}

.p-details p {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.p-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    margin-top: 2px;
}

.p-star {
    color: var(--accent-gold);
    font-size: 0.65rem;
}

/* Sub-Headers for Screens 2, 3, 4 */
.screen-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    padding-bottom: 6px;
    border-bottom: 1px solid #FFE3DC;
}

/* Screen 2 Product Detail */
.p-detail-hero img {
    width: 100%;
    height: 110px;
    border-radius: 14px;
    object-fit: cover;
}

.p-detail-info h4 {
    font-size: 0.88rem;
    margin-top: 4px;
}

.seller-strip {
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.text-green { color: #10B981; }
.text-red { color: #FF381D; }

.flavor-selector {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.chips-group {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.chip-opt {
    background: #FFFFFF;
    border: 1px solid #FFE3DC;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
}

.chip-opt.active {
    background: #FF381D;
    color: #FFFFFF;
}

.btn-add-cart {
    width: 100%;
    background: #FF381D;
    color: #FFFFFF;
    border: none;
    padding: 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Screen 3 Cart */
.cart-item-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #FFE3DC;
}

.cart-item-card img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

.c-info h6 { font-size: 0.72rem; }
.c-info span { font-size: 0.68rem; color: #FF381D; font-weight: 700; }

.qty-stepper {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    background: var(--bg-cream);
    padding: 2px 6px;
    border-radius: 6px;
}

.coupon-box {
    background: #FFFFFF;
    border: 1px dashed #FF381D;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}

.btn-apple-pay {
    width: 100%;
    background: #000000;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Screen 4 GPS Map Tracking */
.map-view-simulated {
    height: 120px;
    background: #E2E8F0;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(#CBD5E1 1.5px, transparent 1.5px);
    background-size: 14px 14px;
}

.map-pin {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.pin-seller { top: 15px; right: 20px; color: #FF381D; }
.pin-driver { top: 50px; right: 120px; color: #FFB800; }
.pin-user { bottom: 15px; left: 20px; color: #10B981; }

.pulse-driver {
    animation: mapPulse 1.5s infinite;
}

@keyframes mapPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 184, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0); }
}

.driver-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #FFE3DC;
}

.driver-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFEBE8;
    color: #FF381D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.driver-details h6 { font-size: 0.74rem; }
.driver-details small { font-size: 0.62rem; color: var(--text-muted); }

.driver-actions {
    margin-right: auto;
    display: flex;
    gap: 6px;
}

.btn-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #FFE3DC;
    background: #FFFFFF;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eta-box {
    font-size: 0.72rem;
    background: #FFEBE8;
    color: #FF381D;
    padding: 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* Screen 5 Success Delivery */
.delivered-content {
    justify-content: center;
    gap: 12px;
}

.success-icon-wrap {
    font-size: 2.8rem;
    color: #10B981;
    animation: bounceIn 0.8s var(--transition-bounce);
}

.delivered-content h3 {
    font-size: 0.95rem;
    font-weight: 900;
}

.deliv-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.review-box {
    background: #FFFFFF;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #FFE3DC;
    font-size: 0.72rem;
    font-weight: 700;
}

.rating-stars-interactive {
    color: #FFB800;
    font-size: 1rem;
    margin-top: 4px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.btn-reorder {
    width: 100%;
    background: #FF381D;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Scroll Hint at Bottom of Each Phone Screen */
.scroll-down-hint {
    text-align: center;
    font-size: 0.62rem;
    font-weight: 800;
    color: #FF381D;
    padding: 4px 0;
    background: rgba(255, 235, 232, 0.8);
    border-radius: 8px;
    cursor: pointer;
    animation: pulseHint 1.8s infinite;
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.8; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(2px); }
}

.iphone-home-bar {
    display: none;
}

.phone-logo {

    height: 24px;
}

.phone-body-content {
    padding: 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.p-banner {
    background: var(--accent-gold);
    color: var(--dark-slate);
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.p-card-small {
    background: #FFFFFF;
    padding: 10px;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.p-card-small img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.p-card-small h5 {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.p-price {
    color: var(--primary-red);
    display: block;
    font-size: 0.85rem;
}

.p-bottom-bar {
    margin-top: auto;
    background: #FFFFFF;
    padding: 10px;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: space-around;
}

.p-btn {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.p-btn.active {
    color: var(--primary-red);
}

/* FAQ SECTION */
.faq-accordion-wrap {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    background: transparent;
    border: none;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark-slate);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    color: var(--primary-red);
    transition: transform 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary-red);
}

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

.faq-answer {
    padding: 0 28px 22px 28px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* FOOTER SECTION */
#footer {
    background: var(--dark-slate);
    color: rgba(255,255,255,0.8);
    position: relative;
}

.footer-wave-top {
    background: var(--bg-cream);
    line-height: 0;
}

.footer-wave-top svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}

.f-about {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.f-col h4 {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.f-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.f-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.25s ease;
}

.f-links a:hover {
    color: var(--primary-red);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.newsletter-input {
    flex-grow: 1;
    padding: 12px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #FFFFFF;
    outline: none;
    font-family: 'Cairo', sans-serif;
}

.newsletter-input:focus {
    border-color: var(--primary-red);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* MODAL OVERLAY & CARD */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    max-width: 440px;
    width: 100%;
}

.modal-inner {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--bg-cream);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--dark-slate);
    cursor: pointer;
}

.modal-logo-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto 20px auto !important;
}

.modal-logo {
    height: 50px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

.modal-inner h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.modal-inner p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.qr-code-wrap {
    background: var(--bg-cream);
    padding: 16px;
    border-radius: var(--radius-md);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 180px !important;
    height: 180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 24px !important;
    border: 1px solid var(--border-light);
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.qr-code-wrap img,
#modal-qr-img {
    width: 148px !important;
    height: 148px !important;
    min-width: 148px !important;
    min-height: 148px !important;
    max-width: 148px !important;
    max-height: 148px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 8px;
}

.modal-store-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* LIVE ORDER TOAST NOTIFICATION */
#live-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-bouncy);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: slideInRight 0.4s var(--transition-bounce) forwards;
    max-width: 340px;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.toast-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--dark-slate);
}

.toast-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 36px auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .builder-layout {
        grid-template-columns: 1fr;
    }

    .app-showcase-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .f-item {
        justify-content: center;
        text-align: right;
    }

    .download-store-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .nav-list {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .quiz-options-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .price-tag-floating {
        bottom: 10px;
        left: 10px;
        padding: 8px 14px;
    }
}

/* ==========================================================================
   SECTION WAVE DIVIDERS
   ========================================================================== */
.has-wave-divider {
    position: relative !important;
}

.wave-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 2px);
    height: 80px;
    vertical-align: bottom;
}

@media (max-width: 768px) {
    .wave-divider {
        bottom: -2px !important;
    }
    .wave-divider svg {
        height: 45px !important;
    }
}

/* Categories & Producers Spotlight 4-Card Responsive Slider Structure */
.categories-slider-track,
.producers-slider-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 24px !important;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: transform;
    width: 100%;
}

.cat-card-item,
.producer-card-item {
    flex: 0 0 calc(25% - 18px) !important;
    max-width: calc(25% - 18px) !important;
    width: calc(25% - 18px) !important;
    box-sizing: border-box !important;
}

@media (max-width: 1200px) {
    .cat-card-item,
    .producer-card-item {
        flex: 0 0 calc(33.333% - 16px) !important;
        max-width: calc(33.333% - 16px) !important;
        width: calc(33.333% - 16px) !important;
    }
}

@media (max-width: 768px) {
    .cat-card-item,
    .producer-card-item {
        flex: 0 0 calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
        width: calc(50% - 12px) !important;
    }
}

@media (max-width: 480px) {
    .cat-card-item,
    .producer-card-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   UNIVERSAL RESPONSIVE ENGINE (MOBILE, TABLET & DESKTOP PERFECTION)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text-side {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
        width: 100%;
        max-width: 650px;
    }

    .hero-visual-side {
        height: 380px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .stage-frame {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .announcement-bar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.78rem;
        padding: 7px 0;
        position: relative;
        z-index: 101;
        width: 100%;
        overflow: hidden;
    }

    /* Header Mobile Grid: Absolute 100% Viewport Centered Logo */
    .header-inner {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 14px !important;
        height: 56px !important;
    }

    .brand-logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 10 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .brand-logo img {
        height: 32px !important;
        width: auto !important;
    }

    .mobile-toggle {
        z-index: 20 !important;
    }

    .header-actions {
        z-index: 20 !important;
    }

    .header-actions .btn-primary {
        padding: 5px 10px !important;
        font-size: 0.74rem !important;
        border-radius: var(--radius-full) !important;
        white-space: nowrap !important;
        height: 30px !important;
        gap: 4px !important;
    }

    .header-actions .btn-primary i {
        font-size: 0.75rem !important;
    }

    .app-phone-col {
        margin-top: 30px !important;
        margin-bottom: 25px !important;
    }

    .app-showcase-section .wave-divider {
        position: absolute !important;
        bottom: -2px !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 5 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .app-showcase-section .wave-divider svg {
        height: 45px !important;
        width: calc(100% + 2px) !important;
        display: block !important;
        vertical-align: bottom !important;
    }

    .hero-eyebrow {
        font-size: 0.85rem;
        padding: 5px 14px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* App Showcase Section Mobile Polish */
    .app-showcase-section {
        padding-top: 40px !important;
        padding-bottom: 50px !important;
        position: relative !important;
    }

    .app-title {
        font-size: clamp(1.4rem, 4vw, 2.2rem) !important;
        line-height: 1.35 !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }

    .app-desc {
        font-size: clamp(0.85rem, 2.2vw, 1rem) !important;
        line-height: 1.6 !important;
        text-align: center !important;
        color: rgba(255, 255, 255, 0.85) !important;
        margin-bottom: 24px !important;
    }

    .app-features-list {
        gap: 12px !important;
        margin-bottom: 24px !important;
    }

    .f-item {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: var(--radius-md) !important;
        padding: 12px 14px !important;
        gap: 12px !important;
        text-align: right !important;
    }

    .f-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.05rem !important;
        border-radius: 10px !important;
    }

    .f-item h4 {
        font-size: 0.95rem !important;
        margin-bottom: 3px !important;
    }

    .f-item p {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
    }

    .download-store-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .download-store-buttons .btn {
        flex: 1 !important;
        padding: 10px 8px !important;
        font-size: 0.82rem !important;
        border-radius: var(--radius-md) !important;
    }

    /* Footer Mobile Section Polish */
    #footer {
        background: #1E293B;
    }

    .footer-content {
        padding: 30px 0 20px !important;
    }

    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        text-align: center !important;
        align-items: center !important;
    }

    .footer-logo {
        height: 40px !important;
        margin: 0 auto 12px auto !important;
    }

    .f-about {
        font-size: 0.86rem !important;
        line-height: 1.6 !important;
        color: rgba(255, 255, 255, 0.75) !important;
        max-width: 90% !important;
        margin: 0 auto 16px auto !important;
    }

    .social-links {
        justify-content: center !important;
        gap: 12px !important;
    }

    .f-col h4 {
        font-size: 1.05rem !important;
        margin-bottom: 12px !important;
        color: #FFFFFF !important;
    }

    .f-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px 16px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .f-links li {
        margin: 0 !important;
    }

    .f-links a {
        font-size: 0.85rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .footer-bottom p {
        font-size: 0.78rem !important;
        color: rgba(255, 255, 255, 0.5) !important;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        background: #FFFFFF;
        padding: 16px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-soft);
    }

    .stat-divider {
        display: none;
    }

    .stat-num {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-visual-side {
        height: 320px;
    }

    .stage-frame {
        height: 320px;
    }

    .slide-main-img {
        max-height: 240px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-desc {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    /* iPhone 17 Pro Mockup Responsiveness on Mobile */
    .iphone-17-pro {
        width: 100%;
        max-width: 240px;
        height: 480px;
        margin: 0 auto;
    }

    .iphone-screen-viewport {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .phone-screen-nav {
        margin-bottom: 15px;
    }

    .download-store-buttons {
        flex-direction: column;
        width: 100%;
    }

    .download-store-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px 8px;
    }

    .stat-num {
        font-size: 1.15rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .slider-arrow {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.9rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
        z-index: 25 !important;
    }

    .arrow-prev {
        right: 4px !important;
        left: auto !important;
    }

    .arrow-next {
        left: 4px !important;
        right: auto !important;
    }

    .cat-card-inner {
        padding: 16px;
    }

    .producer-card {
        padding: 16px;
    }

    .modal-card {
        padding: 24px 16px;
        width: 92%;
    }

    .modal-store-btns {
        flex-direction: column;
    }
}

/* ==========================================================================
   DYNAMIC SLIDER ARROW VISIBILITY & TRANSITION
   ========================================================================== */
.slider-arrow, .stage-arrow {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease !important;
}

.slider-arrow.is-hidden,
.slider-arrow[disabled],
.stage-arrow.is-hidden,
.stage-arrow[disabled] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-50%) scale(0.7) !important;
}

/* ==========================================================================
   WORDPRESS ADMIN BAR COMPATIBILITY
   ========================================================================== */
#wpadminbar {
    z-index: 99999 !important;
}

body.admin-bar #main-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar #main-header {
        top: 46px !important;
    }
}

/* ==========================================================================
   404 ERROR PAGE STYLES & ANIMATIONS
   ========================================================================== */
.error-404-wrapper {
    min-height: calc(100vh - 120px);
    padding: 140px 0 80px 0;
    background: linear-gradient(135deg, #FFF9F6 0%, #FFF2ED 50%, #FFE9E0 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.error-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

.error-card {
    max-width: 780px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.error-card-inner {
    padding: 55px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
}

/* 404 Badge & Floating Icon */
.error-badge-wrap {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-icon-float {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(229, 62, 62, 0.2);
    border: 3px solid #ffffff;
    animation: floatIcon 4s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(-3deg); }
}

.error-icon-float i {
    font-size: 3.5rem;
    color: var(--primary-red);
}

.error-badge-404 {
    position: absolute;
    bottom: -10px;
    background: var(--gradient-red);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 4px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
    letter-spacing: 1px;
}

/* Titles and Typography */
.error-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.3;
}

.error-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* 404 Search Form */
.error-search-form {
    max-width: 540px;
    margin: 0 auto 32px auto;
}

.error-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.error-search-input-wrap:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.15);
}

.error-search-input-wrap .search-icon {
    position: absolute;
    right: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.error-search-input-wrap input {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 45px 10px 15px;
    font-size: 0.95rem;
    font-family: inherit;
    background: transparent;
}

.error-search-input-wrap .btn {
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Quick Action Buttons */
.error-actions-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.error-actions-btns .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

/* Quick Chips Links */
.error-quick-chips {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}

.chips-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.chips-list {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.chip-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-cream);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.chip-item:hover {
    background: #ffffff;
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.12);
}

.highlight-chip {
    background: #FFF5F5;
    border-color: #FEB2B2;
    color: var(--primary-red);
}

/* Mobile Responsiveness for 404 */
@media (max-width: 640px) {
    .error-card-inner {
        padding: 35px 20px;
    }
    .error-title {
        font-size: 1.5rem;
    }
    .error-desc {
        font-size: 0.95rem;
    }
    .error-actions-btns {
        flex-direction: column;
        width: 100%;
    }
    .error-actions-btns .btn {
        width: 100%;
        justify-content: center;
    }
}






