/* ============================================
   SMM CMS - Main Stylesheet
   RTL Arabic - Responsive - Beautiful Light UI
   ============================================ */

/* Track Order Buttons */
.track-btn-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.track-btn-desktop:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.floating-track-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 99;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.3);
    font-weight: 800;
    font-size: 0.95rem;
}

.floating-track-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.6);
}

.floating-track-btn span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tracking Page Specific Styles */
.tracker-container {
    max-width: 550px;
    margin: 40px auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.tracker-input-group {
    margin-bottom: 24px;
}

.tracker-input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tracker-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fcfcfd;
}

.tracker-input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.tracker-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-checkout-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3) !important;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}


.tracker-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}


@media (max-width: 768px) {
    .track-btn-desktop {
        display: none;
    }
}


/* -------------------------------------------
   CSS Variables & Theme - LIGHT MODE
   ------------------------------------------- */
:root {
    --primary: #FF9801;
    --primary-dark: #E08600;
    --primary-light: #FFB84D;
    --secondary: #00B894;
    --secondary-dark: #00A381;
    --accent: #FDCB6E;
    --accent-dark: #E0B050;
    --danger: #FF6B6B;
    --warning: #FDCB6E;
    --success: #00B894;
    --info: #74B9FF;

    --smm-primary: #FF9801;
    --smm-light: #FFB84D;
    --smm-gradient: linear-gradient(135deg, #FF9801 0%, #FFA726 100%);

    --account-primary: #00B894;
    --account-light: #55EFC4;
    --account-gradient: linear-gradient(135deg, #00B894 0%, #55EFC4 100%);

    --key-primary: #F39C12;
    --key-light: #FDCB6E;
    --key-gradient: linear-gradient(135deg, #F39C12 0%, #FDCB6E 100%);

    /* Light theme colors */
    --bg-primary: #fefefe;
    --bg-secondary: #f1f1f2;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8F9FA;
    --bg-surface: #f1f1f2;
    --bg-input: #FFFFFF;

    --text-primary: #2C3E50;
    --text-secondary: #5A6A7A;
    --text-muted: #A0AAB3;
    --text-white: #FFFFFF;

    --border-color: #EFEFEF;
    --border-light: #F5F5F5;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(255,152,1,0.12);

    --font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1240px;
    --header-height: 70px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.92) 0%, transparent 24%),
        radial-gradient(circle at 80% 15%, rgba(248,248,255,0.75) 0%, transparent 18%),
        radial-gradient(circle at 60% 70%, rgba(245,246,255,0.68) 0%, transparent 22%);
    opacity: 0.45;
    filter: blur(34px);
    animation: driftClouds 32s linear infinite;
}
@keyframes driftClouds {
    0% {
        transform: translate3d(-4%, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(4%, 1.5%, 0) scale(1.02);
    }
    100% {
        transform: translate3d(-4%, 0, 0) scale(1);
    }
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

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

ul, ol { list-style: none; }

input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

button { cursor: pointer; border: none; background: none; }

::selection { background: var(--primary); color: white; }

/* -------------------------------------------
   Container
   ------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------------------------
   Main Content
   ------------------------------------------- */
.main-content {
    min-height: calc(100vh - var(--header-height) - 200px);
}

/* -------------------------------------------
   Top Bar
   ------------------------------------------- */
.top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}
.top-bar-right,
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.top-bar-item:hover {
    color: var(--primary);
}
.top-bar-item svg {
    opacity: 0.7;
}

/* -------------------------------------------
   Hero Box - Modern Animated Section
   ------------------------------------------- */
.hero-box {
    min-height: auto;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    padding: 30px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

/* Colonne gauche - Image animée */
.hero-image-col {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dotted-pattern {
    position: absolute;
    width: 400px;
    height: 400px;
    background-image: radial-gradient(circle, rgba(59,130,246,0.3) 2px, transparent 2px);
    background-size: 20px 20px;
    border-radius: 50%;
    z-index: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* Animations pour l'image */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes shadowPulse {
    0%, 100% { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)); }
    50% { filter: drop-shadow(0 25px 50px rgba(0,0,0,0.15)); }
}

.animated-image {
    animation: 
        float 3s ease-in-out infinite,
        slideInLeft 0.8s ease-out 0.3s both,
        shadowPulse 3s ease-in-out infinite;
}

/* Colonne droite - Texte dynamique */
.hero-text-col {
    flex: 0 0 55%;
    text-align: center;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    margin-bottom: 30px;
}

.hero-content h1,
.hero-title-animated {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2D3748;
    margin-bottom: 16px;
    line-height: 1.2;
    animation: fadeInRight 0.6s ease-out 0.2s both;
}

.hero-content h2,
.hero-subtitle-animated {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 20px;
    animation: fadeInRight 0.6s ease-out 0.4s both;
}

.hero-content p,
.hero-desc-animated {
    font-size: 1.1rem;
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 16px;
    margin-left: 20%;
    margin-right: 20%;
    animation: fadeInRight 0.6s ease-out 0.6s both;
}

/* Badge étoile pour #1 */
.hero-subtitle-animated .star-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #E53E3E;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.hero-subtitle-animated .star-badge::before {
    content: '★';
    color: white;
    font-size: 16px;
}

/* Animation pour le texte */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Bouton CTA */
.hero-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: #FF9500;
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeInRight 0.6s ease-out 0.8s both;
    box-shadow: 0 4px 15px rgba(255,149,0,0.3);
    margin-top: 20px;
    width: 100%;
    max-width: 320px;
}

.hero-cta-btn:hover {
    background: #E68600;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,149,0,0.4);
    color: #FFFFFF;
}

.hero-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255,149,0,0.3);
}

/* Responsive - Tablette */
@media (max-width: 1024px) {
    .hero-container {
        gap: 30px;
        padding: 0 20px;
    }
    
    .hero-content h1,
    .hero-title-animated {
        font-size: 2.2rem;
    }
    
    .hero-content h2,
    .hero-subtitle-animated {
        font-size: 1.4rem;
    }
    
    .hero-image {
        max-height: 350px;
    }
    
    .dotted-pattern {
        width: 300px;
        height: 300px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero-box {
        min-height: auto;
        padding: 20px 0;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 0 15px;
    }
    
    .hero-image-col {
        display: none;
    }
    
    .hero-text-col {
        flex: none;
        width: 100%;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 20px;
    }
    
    .hero-content h1,
    .hero-title-animated {
        font-size: 1.6rem;
    }
    
    .hero-content h2,
    .hero-subtitle-animated {
        font-size: 1.1rem;
    }
    
    .hero-content p,
    .hero-desc-animated {
        font-size: 0.9rem;
    }
    
    .hero-cta-btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Respecter prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero-box * {
        animation: none !important;
        transition: none !important;
    }
    
    .animated-image {
        animation: none !important;
    }
}
.top-bar-item:hover svg {
    opacity: 1;
}

/* -------------------------------------------
   Header / Navigation
   ------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow var(--transition);
}
.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--smm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}
.nav-links-container {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link-icon {
    display: none;
}
.mobile-only {
    display: none !important;
}
.nav-header-mobile {
    display: none;
}
.nav-link {
    padding: 8px 14px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    border-radius: var(--radius-sm);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 4px;
}
.nav-link:hover {
    color: var(--primary);
    background: rgba(255,152,1,0.06);
}
.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 60%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Nav Item with Dropdown */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-item.has-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-arrow {
    transition: transform 0.3s ease;
}
.nav-item.has-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}
.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid var(--border-light);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 8px;
}
.nav-item.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.nav-dropdown-link:hover {
    background: rgba(255,152,1,0.06);
    color: var(--primary);
}
.nav-dropdown-link.active {
    background: rgba(255,152,1,0.06);
    color: var(--primary);
    font-weight: 700;
}

/* Mega Menu */
.nav-more-btn {
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-more-btn:hover {
    color: var(--primary);
    background: rgba(255,152,1,0.06);
}
.nav-more-menu .nav-dropdown { display: none; }
.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 720px;
    max-width: 90vw;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 48px rgba(0,0,0,0.14);
    border: 1px solid var(--border-light);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 200;
    margin-top: 8px;
    pointer-events: none;
}
.mega-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}
.mega-menu-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mega-menu-heading {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    margin-bottom: 2px;
}
.mega-menu-heading:hover {
    background: rgba(255,152,1,0.06);
    color: var(--primary);
}
.mega-menu-link {
    display: block;
    padding: 6px 8px 6px 18px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}
.mega-menu-link::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border);
    transition: background var(--transition);
}
.mega-menu-link:hover {
    background: rgba(255,152,1,0.06);
    color: var(--primary);
}
.mega-menu-link:hover::before {
    background: var(--primary);
}

/* Search Toggle Button */
.header-search-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.header-search-toggle:hover {
    background: rgba(255,152,1,0.08);
    color: var(--primary);
}

/* Cart Button */
.cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.cart-btn:hover {
    background: rgba(255,152,1,0.08);
    color: var(--primary);
}
.cart-count {
    position: absolute;
    top: 2px;
    left: 2px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(255,107,107,0.3);
}

/* Header CTA Button */
.btn-header-cta {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    gap: 6px;
}
.btn-header-cta svg {
    stroke-width: 2.5;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
    position: relative;
    z-index: 1001;
}
.mobile-menu-btn:hover {
    background: rgba(255,152,1,0.08);
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    position: absolute;
}
.mobile-menu-btn span:nth-child(1) { transform: translateY(-7px); }
.mobile-menu-btn span:nth-child(2) { transform: scaleX(1); }
.mobile-menu-btn span:nth-child(3) { transform: translateY(7px); }

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    transform: scaleX(0);
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* Nav Dropdown Toggle (for mobile) */
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: all var(--transition);
    background: none;
    border: none;
    padding: 0;
    margin-right: 4px;
    cursor: pointer;
}
.nav-dropdown-toggle .nav-arrow {
    transition: transform 0.3s ease;
}
.nav-item.has-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}
.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid var(--border-light);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 8px;
}
.nav-item.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.nav-dropdown-link:hover {
    background: rgba(255,152,1,0.06);
    color: var(--primary);
}
.nav-dropdown-link.active {
    background: rgba(255,152,1,0.06);
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .nav-dropdown-toggle {
        position: absolute;
        left: 0;
        top: 0;
        width: 54px;
        height: 54px;
        margin-right: 0;
        color: var(--text-muted);
        border-radius: 0;
        z-index: 2;
    }
    .nav-dropdown-toggle:hover {
        background: rgba(255,152,1,0.08);
        color: var(--primary);
    }
    .nav-item.has-dropdown:hover .nav-arrow {
        transform: none; /* Disable desktop hover rotation */
    }
    .dropdown-open > .nav-dropdown-toggle .nav-arrow {
        transform: rotate(180deg);
    }
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}
.search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.search-overlay-content {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.4s ease;
}
.search-overlay.open .search-overlay-content {
    transform: translateY(0);
}
.search-overlay-form {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.search-overlay-input {
    flex: 1;
    padding: 20px 24px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}
.search-overlay-input::placeholder {
    color: var(--text-muted);
}
.search-overlay-submit {
    padding: 20px 24px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.search-overlay-submit:hover {
    background: var(--primary-dark);
}
.search-overlay-close {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition);
    padding: 8px;
}
.search-overlay-close:hover {
    opacity: 1;
}

/* Nav Overlay (mobile) */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* -------------------------------------------
   Cart Sidebar
   ------------------------------------------- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
}
.cart-sidebar.open { right: 0; }

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.cart-sidebar-header h3 { 
    font-size: 1.1rem; 
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-sidebar-header h3 svg {
    color: var(--primary);
}
.cart-close { font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.cart-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}
.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-price { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-remove { color: var(--danger); font-size: 1.2rem; padding: 4px; cursor: pointer; }

.cart-sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: #fff;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.02);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cart-total strong {
    font-size: 1.3rem;
    color: var(--primary);
    font-family: sans-serif; /* Force standard numerals */
}

.cart-sidebar-footer .btn-primary {
    width: 100%;
    display: block;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    text-align: center;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 152, 1, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.cart-sidebar-footer .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 152, 1, 0.4);
}


.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* -------------------------------------------
   Hero Section
   ------------------------------------------- */
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255,152,1,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0,184,148,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 0%, rgba(253,203,110,0.04) 0%, transparent 50%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FF9801 0%, #00B894 50%, #F39C12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-search { max-width: 600px; margin: 0 auto 30px; }
.search-form {
    display: flex;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: border-color var(--transition);
    box-shadow: var(--shadow-sm);
}
.search-form:focus-within { border-color: var(--primary); box-shadow: var(--shadow-md); }
.search-input {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
    padding: 16px 28px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* -------------------------------------------
   Sections
   ------------------------------------------- */
.section {
    padding: 40px 0;
    position: relative;
}
.article-section {
    background: var(--bg-secondary);
    padding: 40px 0;
}
.faq-section-wrapper {
    background: var(--bg-secondary);
    padding: 40px 0;
}
.faq-section-wrapper .section-title {
    text-align: center;
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.homepage .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,152,1,0.9), rgba(0,184,148,0.9));
    opacity: 0.65;
}
.homepage .section:first-child::before {
    display: none;
}
body.category-page {
    background: #ffffff;
}
.category-page .category-hero {
    background: #ffffff;
    overflow: hidden;
    position: relative;
}
.category-page .category-hero::before,
.category-page .category-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    pointer-events: none;
}
.category-page .category-hero::before {
    width: 220px;
    height: 220px;
    background: rgba(255,152,1,0.18);
    top: -40px;
    right: -40px;
    animation: floatSlow 9s ease-in-out infinite;
}
.category-page .category-hero::after {
    width: 160px;
    height: 160px;
    background: rgba(0,184,148,0.12);
    bottom: -30px;
    left: -20px;
    animation: floatSlow 11s ease-in-out infinite reverse;
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* -------------------------------------------
   Categories Grid
   ------------------------------------------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}
.category-page .category-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 20px 42px rgba(15,23,42,0.09);
}
.category-page .category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(15,23,42,0.14);
}

.category-card-image {
    width: 100%;
    max-height: 250px;
    min-height: 150px;
    overflow: hidden;
    position: relative;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-card-image img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-body {
    padding: 20px 16px 24px;
    width: 100%;
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
}
.category-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.category-type-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.category-type-badge.type-smm { background: rgba(255,152,1,0.1); color: var(--primary); }
.category-type-badge.type-account { background: rgba(0,184,148,0.1); color: var(--secondary); }
.category-type-badge.type-key { background: rgba(243,156,18,0.1); color: var(--key-primary); }

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* -------------------------------------------
   Products Grid
   ------------------------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* -------------------------------------------
   Product Card - SMM Style (Light)
   ------------------------------------------- */
.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: var(--border-light);
}

.product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    background: var(--danger);
    color: white;
}

/* Card Header Styles by Type */
.product-card-header {
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.product-card-header.type-smm {
    background: transparent;
    padding: 0;
}
.product-card-header.type-account {
    background: linear-gradient(180deg, rgba(0,184,148,0.06) 0%, transparent 100%);
    padding: 30px 20px 20px;
}
.product-card-header.type-key {
    background: linear-gradient(180deg, rgba(243,156,18,0.06) 0%, transparent 100%);
    padding: 30px 20px 20px;
}

/* Product Image Wrapper - 350x250 */
.product-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.product-image-wrapper .product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0;
    border-radius: 8px;
}

/* Product Placeholder (when no image) */
.product-image-wrapper.product-placeholder {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    flex-direction: column;
    gap: 10px;
    color: #aaa;
}
.product-image-wrapper.product-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}
.product-image-wrapper.product-placeholder span {
    font-size: 0.85rem;
    font-weight: 600;
}

.product-icon-wrapper {
    position: relative;
    display: inline-block;
}

.product-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.smm-style .product-icon-circle {
    background: var(--smm-gradient);
    box-shadow: 0 4px 20px rgba(255,152,1,0.3);
}
.account-style .product-icon-circle.account-circle {
    background: var(--account-gradient);
    box-shadow: 0 4px 20px rgba(0,184,148,0.3);
}
.key-style .product-icon-circle.key-circle {
    background: var(--key-gradient);
    box-shadow: 0 4px 20px rgba(243,156,18,0.3);
}

.product-type-emoji { font-size: 1.8rem; }

/* SMM glow effect */
.smm-style .product-header-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(255,152,1,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Account glow effect */
.account-style .account-glow {
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(0,184,148,0.2);
    border-radius: 50%;
    animation: spin-slow 4s linear infinite;
}

/* Key shimmer effect */
.key-style .key-shimmer {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent 40%, rgba(253,203,110,0.2) 50%, transparent 60%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-top: 10px;
}

/* Card Body */
.product-card-body {
    padding: 20px;
    flex: 1 1 auto;
    min-height: 0;
}

/* Product Name - SMM Style with multiple lines */
.product-card.type-smm .product-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 20px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: center;
}
.product-name-line {
    display: block;
}
.product-name-line.highlight {
    color: var(--primary);
    font-weight: 800;
}

/* Default product name style */
.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}
.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Star Rating */
.product-rating {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.stars {
    font-size: 24px;
    color: #F5A623;
    letter-spacing: 2px;
}

.product-delivery {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.feature-tag {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}
.feature-tag.type-smm { background: rgba(255,152,1,0.08); color: var(--primary); }
.feature-tag.type-account { background: rgba(0,184,148,0.08); color: var(--secondary); }
.feature-tag.type-key { background: rgba(243,156,18,0.08); color: var(--key-primary); }

/* Card Footer */
.product-card-footer {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: auto;
}

/* SMM Price Row Styles */
.product-card.type-smm .product-card-footer {
    gap: 0;
}

.price-divider {
    height: 1px;
    background: #E0E0E0;
    margin-bottom: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.price-left {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-currency {
    font-size: 16px;
    font-weight: 700;
    color: #00A86B;
}

.price-value {
    font-size: 20px;
    font-weight: 800;
    color: #00A86B;
}

.price-zero {
    font-size: 14px;
    color: #A0AAB3;
    margin-right: -4px;
}

.price-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.price-number {
    font-size: 16px;
    color: #A0AAB3;
}

.price-slash {
    font-size: 16px;
    color: #A0AAB3;
}
.product-price-block {
    text-align: center;
    width: 100%;
}
.product-price-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}
.product-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    display: block;
}
.product-original-price {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-discount-badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.product-buy-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1rem;
    text-align: center;
    transition: all var(--transition);
}
.product-buy-btn.type-smm {
    background: var(--smm-gradient);
    color: white;
}
.product-buy-btn.type-account {
    background: var(--account-gradient);
    color: white;
}
.product-buy-btn.type-key {
    background: var(--key-gradient);
    color: #333;
}
.product-card:hover .product-buy-btn { transform: scale(1.02); }

/* -------------------------------------------
   Why Us Section
   ------------------------------------------- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.why-us-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.why-us-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.why-us-icon { font-size: 2.5rem; margin-bottom: 16px; }
.why-us-card h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 10px; }
.why-us-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* -------------------------------------------
   Article Section
   ------------------------------------------- */
.article-section {
    background: var(--bg-secondary);
}
.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 2;
    color: var(--text-secondary);
}
.article-content h2 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 32px 0 16px;
}
.article-content h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 24px 0 12px;
}
.article-content p {
    margin-bottom: 16px;
    line-height: 2;
}
.article-content strong { color: var(--primary); }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content a.internal-link { color: var(--primary); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; transition: color 0.2s, text-decoration-style 0.2s; }
.article-content a.internal-link:hover { color: var(--primary-dark, #e67e00); text-decoration-style: solid; }

/* -------------------------------------------
   FAQ Section
   ------------------------------------------- */
.faq-section-wrapper {
    background: var(--bg-secondary);
}
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
    font-size: 1.2rem;
    transition: transform var(--transition);
    color: var(--primary);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    line-height: 1.9;
}
.faq-answer p { margin-bottom: 8px; }

/* -------------------------------------------
   Breadcrumb
   ------------------------------------------- */
.breadcrumb {
    padding: 16px 0;
    margin-bottom: 20px;
}
.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumb li {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb li a {
    color: var(--text-secondary);
    transition: color var(--transition);
}
.breadcrumb li a:hover { color: var(--primary); }
.breadcrumb li + li::before {
    content: '‹';
    margin-left: 8px;
    color: var(--text-muted);
}

/* -------------------------------------------
   Category Page
   ------------------------------------------- */
.category-hero {
    padding: 50px 0 30px;
    position: relative;
}
.category-hero.type-smm { background: linear-gradient(180deg, rgba(255,152,1,0.04) 0%, transparent 100%); }
.category-hero.type-account { background: linear-gradient(180deg, rgba(0,184,148,0.04) 0%, transparent 100%); }
.category-hero.type-key { background: linear-gradient(180deg, rgba(243,156,18,0.04) 0%, transparent 100%); }

.category-hero-content { text-align: center; }
.category-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.category-hero-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.category-type-label {
    display: inline-block;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.category-type-label.type-smm { background: rgba(255,152,1,0.1); color: var(--primary); }
.category-type-label.type-account { background: rgba(0,184,148,0.1); color: var(--secondary); }
.category-type-label.type-key { background: rgba(243,156,18,0.1); color: var(--key-primary); }

/* -------------------------------------------
   Product Detail Page
   ------------------------------------------- */
.product-detail {
    padding: 40px 0 60px;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.product-detail-info h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.product-detail-desc {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 24px;
}

.product-detail-features {
    margin-bottom: 24px;
}
.product-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}
.product-features li .icon-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.product-features li .icon-check.type-smm { background: rgba(255,152,1,0.1); color: var(--primary); }
.product-features li .icon-check.type-account { background: rgba(0,184,148,0.1); color: var(--secondary); }
.product-features li .icon-check.type-key { background: rgba(243,156,18,0.1); color: var(--key-primary); }
.product-features li .icon-check::before { content: '✓'; }

/* Order Form (Sidebar) */
.order-form-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.order-form-header {
    padding: 24px;
    text-align: center;
}
.order-form-header.type-smm { background: var(--smm-gradient); }
.order-form-header.type-account { background: var(--account-gradient); }
.order-form-header.type-key { background: var(--key-gradient); }

.order-form-header h2 { color: white; font-size: 1.2rem; }
.order-form-header .order-price {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-top: 8px;
}
.order-form-header .order-original-price {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    text-decoration: line-through;
}

.order-form-body {
    padding: 24px;
}
.order-form-group {
    margin-bottom: 18px;
}
.order-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.order-form-group input,
.order-form-group select,
.order-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition);
}
.order-form-group input:focus,
.order-form-group select:focus,
.order-form-group textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,152,1,0.1);
}

.footer {
    background: #2D3436;
    color: #DFE6E9;
    padding: 60px 0;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .order-form-wrapper {
        position: relative;
        top: auto;
        order: -1;
        margin-bottom: 24px;
    }
}
@media (min-width: 1025px) {
    .product-detail-grid {
        grid-template-columns: 350px 1fr;
    }
}

.faq-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--text-primary);
}
.order-form-group input::placeholder,
.order-form-group textarea::placeholder {
    color: var(--text-muted);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.quantity-control button {
    padding: 12px 16px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}
.quantity-control button:hover { background: var(--primary); color: white; }
.quantity-control input {
    width: 60px;
    text-align: center;
    border: none;
    border-right: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-radius: 0;
}

.order-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.order-btn.type-smm { background: var(--smm-gradient); }
.order-btn.type-account { background: var(--account-gradient); }
.order-btn.type-key { background: var(--key-gradient); }
.order-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.delivery-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0,184,148,0.08);
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--secondary);
}

/* -------------------------------------------
   Checkout Page
   ------------------------------------------- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}
.checkout-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.checkout-form h2 { font-size: 1.4rem; margin-bottom: 24px; }

.checkout-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
    box-shadow: var(--shadow-sm);
}
.checkout-summary h2 { font-size: 1.2rem; margin-bottom: 20px; }
.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.checkout-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* -------------------------------------------
   Search Page
   ------------------------------------------- */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.search-page-header {
    padding: 40px 0;
    text-align: center;
}
.search-page-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* -------------------------------------------
   Footer (Light)
   ------------------------------------------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.social-link {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255,152,1,0.06);
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }
.footer-contact li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.footer-countries {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    font-size: 1.4rem;
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* -------------------------------------------
   WhatsApp Float
   ------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
    z-index: 999;
    transition: all var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.4);
    color: white;
}

/* -------------------------------------------
   Flash Messages
   ------------------------------------------- */
.flash-message {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin: 20px;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.3s ease;
}
.flash-success { background: rgba(0,184,148,0.1); color: var(--secondary); border: 1px solid rgba(0,184,148,0.2); }
.flash-error { background: rgba(255,107,107,0.1); color: var(--danger); border: 1px solid rgba(255,107,107,0.2); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------
   Static Page
   ------------------------------------------- */
.static-page {
    padding: 60px 0;
}
.static-page-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.static-page-content h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}
.static-page-content p {
    margin-bottom: 16px;
    line-height: 2;
    color: var(--text-secondary);
}

/* -------------------------------------------
   Responsive
   ------------------------------------------- */
@media (min-width: 1025px) {
    .nav-mobile-search,
    .nav-header-mobile,
    .nav-dropdown-toggle {
        display: none !important;
    }
    .nav-dropdown {
        display: block !important;
    }
}

@media (max-width: 1024px) {
    .product-detail-grid { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        background: #ffffff; /* Solid white to prevent transparency issues */
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        gap: 0;
        overflow-y: auto;
        z-index: 2000;
        display: flex;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }
    .main-nav.open {
        right: 0;
    }
    
    .nav-links-container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link-icon {
        display: block;
        margin-left: 10px;
        color: var(--primary);
    }
    
    .mobile-only {
        display: flex !important;
    }

    /* New Mobile Menu Components */
    .nav-mobile-search {
        padding: 16px 20px;
        background: #f8f9fa;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-mobile-search form {
        display: flex;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 4px;
        overflow: hidden;
    }
    .nav-mobile-search input {
        flex: 1;
        padding: 10px 14px;
        border: none;
        font-size: 0.95rem;
    }
    .nav-mobile-search button {
        padding: 10px;
        color: var(--primary);
    }



    .nav-header-mobile {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 5;
    }
    .nav-header-title {
        font-size: 1.2rem;
        font-weight: 900;
        color: var(--text-primary);
    }
    .nav-close-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        transition: all var(--transition);
        background: var(--bg-secondary);
        border: none;
    }
    .nav-close-btn:hover {
        background: var(--danger);
        color: white;
    }
    .nav-item {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .nav-link {
        padding: 16px 24px;
        padding-left: 64px; /* Space for the dropdown toggle on the left */
        font-size: 1.05rem;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
        display: flex;
        align-items: center;
        position: relative;
    }
    .nav-link::after {
        display: none;
    }
    .nav-link:hover {
        background: rgba(255,152,1,0.04);
        color: var(--primary);
    }
    .nav-link.active {
        background: rgba(255,152,1,0.06);
        color: var(--primary);
        border-right: 5px solid var(--primary);
        font-weight: 700;
    }
    .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 0;
        top: 0;
        width: 60px;
        height: 60px; /* Matched to link height */
        border-right: 1px solid var(--border-light);
        color: var(--text-muted);
        transition: all var(--transition);
        background: transparent;
        z-index: 2;
    }
    .dropdown-open > .nav-dropdown-toggle .nav-arrow {
        transform: rotate(180deg);
        color: var(--primary);
    }
    .nav-dropdown-toggle:hover {
        background: rgba(255,152,1,0.08);
        color: var(--primary);
    }
    .nav-dropdown {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        max-height: none;
        overflow: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        background: #fcfcfc;
        width: 100%;
        transition: none;
    }
    .dropdown-open > .nav-dropdown {
        display: block;
        padding: 5px 0;
        border-bottom: 1px solid var(--border-light);
    }
    .nav-dropdown-link {
        padding: 12px 40px;
        font-size: 0.95rem;
        border-bottom: none;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.2s ease;
    }
    .nav-dropdown-link::before {
        display: none;
    }
    .nav-more-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border-light);
        border-radius: 0;
        justify-content: flex-start;
    }
    .nav-more-menu .mega-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        background: #fcfcfc;
        width: 100%;
        max-width: 100%;
        pointer-events: auto;
    }
    .nav-more-menu.dropdown-open .mega-menu {
        display: block;
    }
    .nav-more-menu.dropdown-open .nav-more-btn .nav-arrow {
        transform: rotate(180deg);
        color: var(--primary);
    }
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .mega-menu-heading {
        font-size: 1rem;
        padding: 12px 40px;
        border-bottom: 1px solid var(--border-light);
        font-weight: 700;
    }
    .mega-menu-link {
        padding: 12px 56px;
        font-size: 0.95rem;
        border-bottom: none;
    }
    .mega-menu-link::before { display: none; }
    /* Mobile Menu Button Styling */
    .mobile-menu-btn {
        display: flex;
        width: 44px;
        height: 44px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        order: 3; /* Ensure it stays at the end */
    }
    .mobile-menu-btn span {
        background: var(--text-primary);
        width: 24px;
    }
    .mobile-menu-btn.active {
        background: var(--danger);
        border-color: var(--danger);
    }
    .mobile-menu-btn.active span {
        background: #fff;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 2;
    }
    .header-search-toggle {
        display: none; /* Hidden on mobile, moved to menu */
    }
    .cart-btn {
        width: 44px;
        height: 44px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        color: var(--text-primary);
    }
    .cart-count {
        top: -5px;
        left: -5px;
    }
    .logo {
        order: 1;
    }
    
    .top-bar { display: none; }
    .header-inner { 
        display: flex;
        justify-content: space-between;
        gap: 12px; 
    }
    .logo img { height: 36px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-badges { gap: 10px; }
    .badge-item { font-size: 0.8rem; padding: 6px 12px; }
    
    .section { padding: 50px 0; }
    .section-title { font-size: 1.5rem; }
    
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .category-card { padding: 20px 16px; }
    .category-icon { font-size: 2rem; }
    .category-name { font-size: 0.95rem; }
    
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    
    .search-overlay {
        padding-top: 80px;
    }
    .search-overlay-input {
        padding: 16px 20px;
        font-size: 1rem;
    }
    .search-overlay-submit {
        padding: 16px 20px;
    }
}

@media (max-width: 768px) {
    .products-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 16px; 
    }
    .product-card {
        border-radius: 12px;
    }
    .product-card-body {
        padding: 14px;
    }
    .product-name {
        font-size: 0.95rem;
    }
    .product-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    .product-image-wrapper {
        height: 180px;
    }
    .price-value {
        font-size: 18px;
    }
    .product-buy-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero { padding: 60px 0 40px; }
    .hero-title { font-size: 1.6rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .why-us-grid { grid-template-columns: 1fr; }
    
    .cart-sidebar {
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }
}

/* -------------------------------------------
   Scrollbar (light theme)
   ------------------------------------------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* -------------------------------------------
   Loading Animation
   ------------------------------------------- */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* -------------------------------------------
   AI Loading Overlay
   ------------------------------------------- */
.ai-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}
.ai-loading-overlay .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.ai-loading-overlay p { color: var(--text-primary); font-size: 1.1rem; }