:root {
            --primary: #006C35;
            --primary-dark: #004b23;
            --primary-light: #008744;
            --secondary: #008744;
            --accent: #F4B400;
            --gold: #F4B400;
            --gold-light: #FFE082;
            --dark: #122317;
            --light: #f5fbf7;
            --grey: #7a8e82;
            --black: #0c1810;
            --white: #ffffff;
            --glass: rgba(255, 255, 255, 0.15);
            --glass-dark: rgba(0, 75, 35, 0.65);
            --success: #00a854;
            --warning: #F4B400;
            --gradient-primary: linear-gradient(135deg, #006C35 0%, #004b23 100%);
            --gradient-dark: linear-gradient(135deg, #122317 0%, #07100a 100%);
            --gradient-accent: linear-gradient(135deg, #F4B400 0%, #d49a00 100%);
            --gradient-gold: linear-gradient(135deg, #F4B400 0%, #FFC72C 100%);
            --gradient-celebrate: linear-gradient(135deg, #006C35 0%, #008744 45%, #F4B400 100%);
            --gradient-saudi: linear-gradient(135deg, #006C35 0%, #004b23 60%, #F4B400 100%);
            --shadow-sm: 0 2px 10px rgba(0, 108, 53, 0.08);
            --shadow-md: 0 5px 20px rgba(0, 108, 53, 0.15);
            --shadow-lg: 0 10px 40px rgba(0, 108, 53, 0.2);
            --shadow-xl: 0 15px 50px rgba(0, 75, 35, 0.3);
            --cart-bg: #ffffff;
            --sidebar-width: 420px;
            --neon-glow: 0 0 15px rgba(0, 108, 53, 0.5), 0 0 30px rgba(244, 180, 0, 0.35);
            --bottom-nav-height: 62px;
            --header-mobile-height: 56px;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Noto Sans Arabic', Tahoma, Geneva, Verdana, sans-serif;
            -webkit-tap-highlight-color: transparent;
        }
        body {
            background: linear-gradient(135deg, #f3f8f5 0%, #e5efe8 100%);
            min-height: 100vh;
            color: var(--dark);
            overflow-x: hidden;
            transition: all 0.3s ease;
            padding-bottom: 80px;
            position: relative;
        }
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 15% 85%, rgba(0, 108, 53, 0.12) 0%, transparent 50%), radial-gradient(circle at 85% 15%, rgba(244, 180, 0, 0.12) 0%, transparent 50%);
            z-index: -1;
            pointer-events: none;
        }
        body.rtl {
            direction: rtl;
            text-align: right;
        }
        body.ltr {
            direction: ltr;
            text-align: left;
        }
        body.modal-open {
            overflow: hidden;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 10px 15px;
        }
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 18px;
            flex-wrap: wrap;
            gap: 12px;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            box-shadow: var(--shadow-lg);
            border: 1px solid rgba(255, 255, 255, 0.6);
            margin-bottom: 6px;
            animation: headerSlideDown 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
            position: relative;
            z-index: 50;
        }
        @keyframes headerSlideDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .logo-container {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }
        .logo {
            height: 50px;
            width: 50px;
            border-radius: 14px;
            box-shadow: var(--shadow-md);
            object-fit: cover;
            border: 2px solid var(--white);
            transition: all 0.4s ease;
            flex-shrink: 0;
        }
        .logo:hover {
            transform: rotate(5deg) scale(1.06);
            box-shadow: var(--shadow-xl), var(--neon-glow);
        }
        .header-text h1 {
            color: var(--dark);
            font-size: 1.15rem;
            margin-bottom: 4px;
            font-weight: 700;
            background: linear-gradient(135deg, #2f3542 0%, #fe5f00 80%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.3;
        }
        .header-text p {
            color: var(--grey);
            font-size: 0.8rem;
            font-weight: 500;
        }
        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }
        .icon-btn {
            width: 40px;
            height: 40px;
            border-radius: 11px;
            background: var(--white);
            color: var(--dark);
            border: 2px solid #e8e8e8;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-sm);
            position: relative;
            flex-shrink: 0;
        }
        .icon-btn:hover {
            background: #fef5f0;
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-2px);
        }
        .icon-btn.cart-btn {
            position: relative;
        }
        .icon-btn .mini-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            background: var(--gradient-primary);
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            font-size: 0.65rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-sm);
        }
        body.ltr .icon-btn .mini-badge {
            right: auto;
            left: -6px;
        }
        .mini-badge:empty,
        .mini-badge[data-count="0"] {
            display: none;
        }
        .hamburger-btn {
            width: 40px;
            height: 40px;
            border-radius: 11px;
            background: var(--white);
            color: var(--dark);
            border: 2px solid #e8e8e8;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            padding: 9px;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-sm);
            flex-shrink: 0;
            z-index: 1001;
        }
        .hamburger-btn .bar {
            width: 18px;
            height: 2px;
            background: var(--dark);
            border-radius: 2px;
            transition: all 0.3s ease;
            display: block;
        }
        .hamburger-btn.open .bar:nth-child(1) {
            transform: translateY(5px) rotate(45deg);
        }
        .hamburger-btn.open .bar:nth-child(2) {
            opacity: 0;
        }
        .hamburger-btn.open .bar:nth-child(3) {
            transform: translateY(-5px) rotate(-45deg);
        }
        .hamburger-dropdown {
            position: fixed;
            top: 70px;
            right: 15px;
            background: white;
            border-radius: 16px;
            box-shadow: var(--shadow-xl);
            min-width: 240px;
            z-index: 1000;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(0, 0, 0, 0.08);
        }
        body.ltr .hamburger-dropdown {
            right: auto;
            left: 15px;
        }
        .hamburger-dropdown.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .hamburger-dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 13px 18px;
            cursor: pointer;
            transition: all 0.25s ease;
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--dark);
            border-bottom: 1px solid #f0f0f0;
            text-decoration: none;
            white-space: nowrap;
        }
        .hamburger-dropdown-item:last-child {
            border-bottom: none;
        }
        .hamburger-dropdown-item:hover {
            background: #fef5f0;
            color: var(--primary);
        }
        .hamburger-dropdown-item i {
            width: 20px;
            text-align: center;
            color: var(--primary);
            font-size: 0.9rem;
            flex-shrink: 0;
        }
        .hamburger-dropdown-item .dropdown-badge {
            background: var(--gradient-primary);
            color: white;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 700;
            margin-right: auto;
        }
        body.ltr .hamburger-dropdown-item .dropdown-badge {
            margin-right: 0;
            margin-left: auto;
        }
        .search-bar-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px 8px;
            position: relative;
            z-index: 40;
        }
        .search-container {
            display: flex;
            align-items: center;
            background: #f5f5f5;
            border-radius: 10px;
            padding: 4px 12px;
            border: 2px solid #ddd;
            transition: border-color 0.3s ease;
            height: 44px;
            max-width: 100%;
            position: relative;
        }
        .search-container:focus-within {
            border-color: var(--primary);
        }
        .search-container .search-icon {
            padding: 0 8px 0 0;
            color: var(--grey);
            font-size: 0.9rem;
            flex-shrink: 0;
            transition: color 0.3s;
        }
        .search-container:focus-within .search-icon {
            color: var(--primary);
        }
        .search-input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 0.9rem;
            padding: 6px 4px;
            background: transparent;
            color: var(--dark);
            font-family: inherit;
            font-weight: 500;
        }
        .search-input::placeholder {
            color: #aaa;
        }
        .search-clear-btn {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: transparent;
            border: none;
            cursor: pointer;
            color: #999;
            display: none;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s ease;
            font-size: 0.75rem;
        }
        .search-clear-btn.visible {
            display: flex;
        }
        .search-clear-btn:hover {
            background: #f0f0f0;
            color: #555;
        }
        .countdown-section {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 18px;
            padding: 16px 20px;
            margin: 10px 0 14px;
            text-align: center;
            box-shadow: var(--shadow-lg);
            border: 2px solid rgba(254, 95, 0, 0.15);
            animation: fadeInUp 0.7s ease;
            position: relative;
            overflow: hidden;
        }
        .countdown-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
        }
        .countdown-timer {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }
        .countdown-item {
            background: var(--white);
            border-radius: 12px;
            padding: 10px 14px;
            min-width: 60px;
            box-shadow: var(--shadow-md);
            border: 2px solid #f0f0f0;
            transition: all 0.3s ease;
            text-align: center;
        }
        .countdown-value {
            display: block;
            font-size: 1.6rem;
            font-weight: 800;
            color: var(--primary);
            line-height: 1;
            margin-bottom: 2px;
            font-variant-numeric: tabular-nums;
        }
        .countdown-label {
            display: block;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--grey);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .countdown-live {
            display: none;
            font-size: 1.1rem;
            font-weight: 700;
            color: #fe5f00;
            animation: pulse 1.2s ease-in-out infinite;
            position: relative;
            z-index: 1;
        }
        @keyframes pulse {
            0%,
            100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.7;
                transform: scale(1.05);
            }
        }
        .poster-slider-wrapper {
            position: relative;
            width: 100%;
            max-width: 100%;
            margin: 8px 0 20px;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            background: #ddd;
            aspect-ratio: 820/312;
            max-height: 350px;
            animation: fadeInUp 0.8s ease;
        }
        .poster-slides-track {
            display: flex;
            height: 100%;
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
        }
        .poster-slide {
            min-width: 100%;
            height: 100%;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            overflow: hidden;
            flex-shrink: 0;
        }
        .poster-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
        }
        .poster-dots {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 7px;
            z-index: 5;
        }
        .poster-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid rgba(255, 255, 255, 0.6);
        }
        .poster-dot.active {
            background: white;
            width: 13px;
            height: 13px;
            border-color: white;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
        }
        .section-divider-img {
            width: 100%;
            border-radius: 16px;
            margin: 18px 0 14px;
            overflow: hidden;
            box-shadow: var(--shadow-md);
            animation: fadeInUp 0.7s ease;
            aspect-ratio: 800/200;
            max-height: 200px;
            display: block;
            cursor: pointer;
        }
        .section-divider-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .section-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--dark);
            margin: 18px 0 8px;
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: fadeInUp 0.6s ease;
            cursor: pointer;
            flex-wrap: wrap;
        }
        .section-title .title-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            color: white;
            font-size: 0.9rem;
            flex-shrink: 0;
        }
        .title-icon.orange {
            background: var(--gradient-primary);
        }
        .title-icon.gold {
            background: var(--gradient-gold);
        }
        .title-icon.blue {
            background: linear-gradient(135deg, #1e90ff 0deg, #3742fa 100%);
        }
        .title-icon.youtube-red {
            background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
        }
        .title-icon.celebrate {
            background: var(--gradient-celebrate);
        }
        .see-more-link {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--primary);
            cursor: pointer;
            white-space: nowrap;
            margin-right: auto;
            padding: 6px 14px;
            border-radius: 20px;
            background: #fef5f0;
            border: 1.5px solid rgba(254, 95, 0, 0.2);
            transition: all 0.3s ease;
            flex-shrink: 0;
        }
        body.ltr .see-more-link {
            margin-right: 0;
            margin-left: auto;
        }
        .see-more-link:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .youtube-section {
            margin: 14px 0 18px;
            animation: fadeInUp 0.75s ease;
        }
        .youtube-slider-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .youtube-slider-viewport {
            flex: 1;
            overflow: hidden;
            border-radius: 14px;
        }
        .youtube-slider-track {
            display: flex;
            gap: 12px;
            transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
            padding: 4px 2px;
        }
        .youtube-video-card {
            flex-shrink: 0;
            background: var(--white);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow-md);
            border: 2px solid transparent;
            transition: all 0.35s ease;
            cursor: pointer;
        }
        .youtube-video-card:hover {
            border-color: #FF0000;
            box-shadow: var(--shadow-lg);
            transform: translateY(-3px);
        }
        .youtube-video-card .video-iframe-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 9/14;
            background: #000;
            overflow: hidden;
        }
        .youtube-video-card iframe {
            width: 100%;
            height: 100%;
            border: none;
            display: block;
        }
        .youtube-arrow {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: white;
            border: 2px solid #ddd;
            cursor: pointer;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            color: var(--dark);
            transition: all 0.3s ease;
            box-shadow: var(--shadow-sm);
            z-index: 2;
        }
        .youtube-arrow:hover {
            background: #FF0000;
            color: white;
            border-color: #FF0000;
        }
        .youtube-arrow:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            pointer-events: none;
            background: #eee;
            color: #999;
            border-color: #ddd;
        }
        .discount-poster {
            width: 100%;
            border-radius: 18px;
            padding: 0;
            margin: 16px 0 12px;
            box-shadow: var(--shadow-lg);
            animation: fadeInUp 0.8s ease;
            background: none;
            cursor: pointer;
        }
        .discount-poster img {
            width: 100%;
            display: block;
            border-radius: 18px;
        }
        .discount-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 18px;
            margin-top: 8px;
        }
        .category-section {
            position: relative;
            margin: 8px 0 16px;
            animation: fadeInUp 0.75s ease;
        }
        .category-slider-container {
            position: relative;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .category-filters {
            display: flex;
            gap: 8px;
            flex-wrap: nowrap;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 4px 4px;
            scrollbar-width: none;
            -ms-overflow-style: none;
            flex: 1;
            mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
            -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
        }
        .category-filters::-webkit-scrollbar {
            display: none;
        }
        .category-filters.expanded {
            flex-wrap: wrap;
            overflow-x: visible;
            mask-image: none;
            -webkit-mask-image: none;
            justify-content: center;
        }
        .category-arrow {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: white;
            border: 1px solid #ddd;
            cursor: pointer;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            color: var(--dark);
            transition: all 0.3s ease;
            box-shadow: var(--shadow-sm);
            z-index: 2;
        }
        .category-arrow:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        .category-arrow:disabled {
            opacity: 0.35;
            cursor: not-allowed;
            pointer-events: none;
        }
        .category-pill {
            padding: 7px 16px;
            border-radius: 22px;
            border: 2px solid #ddd;
            background: white;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.82rem;
            transition: all 0.3s ease;
            color: var(--dark);
            white-space: nowrap;
            flex-shrink: 0;
            user-select: none;
        }
        .category-pill:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-2px);
        }
        .category-pill.active {
            background: var(--gradient-primary);
            color: white;
            border-color: transparent;
            box-shadow: var(--shadow-md);
        }
        .view-all-categories-btn {
            display: inline-block;
            text-align: center;
            background: #e8e8e8;
            color: #666;
            border: none;
            padding: 7px 16px;
            border-radius: 18px;
            cursor: pointer;
            font-size: 0.78rem;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-top: 6px;
        }
        .view-all-categories-btn:hover {
            background: #d5d5d5;
            color: #444;
            transform: translateY(-2px);
        }
        .filter-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: white;
            border-radius: 14px;
            box-shadow: var(--shadow-sm);
            margin: 10px 0 14px;
            flex-wrap: wrap;
            border: 1.5px solid #eee;
            animation: fadeInUp 0.5s ease;
        }
        .filter-bar label {
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--dark);
            flex-shrink: 0;
        }
        .filter-bar select {
            padding: 8px 12px;
            border-radius: 10px;
            border: 2px solid #ddd;
            font-size: 0.85rem;
            font-family: inherit;
            font-weight: 500;
            cursor: pointer;
            background: white;
            color: var(--dark);
            transition: all 0.3s ease;
            flex: 1;
            min-width: 160px;
            max-width: 280px;
        }
        .filter-bar select:focus {
            border-color: var(--primary);
            outline: none;
        }
        .page-back-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: white;
            border: 2px solid #ddd;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--dark);
            transition: all 0.3s ease;
            margin-bottom: 6px;
        }
        .page-back-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: #fef5f0;
        }
        .page-view {
            display: none;
            animation: fadeInUp 0.45s ease;
        }
        .page-view.active {
            display: block;
        }
        .home-view {
            display: block;
        }
        .home-view.hidden {
            display: none;
        }
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 20px;
            margin-top: 8px;
            animation: fadeInUp 0.9s ease;
        }
        .new-arrivals-grid,
        .best-seller-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 18px;
            margin-top: 8px;
        }
        .product-card,
        .new-arrival-card,
        .best-seller-card {
            background: var(--white);
            border-radius: 18px;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            border: 2px solid transparent;
        }
        .product-card:hover,
        .new-arrival-card:hover,
        .best-seller-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-xl);
            border-color: var(--primary);
        }
        .product-card.featured-card {
            border-color: var(--accent);
        }
        .product-card.featured-card::before {
            content: '★';
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 5;
            background: var(--gradient-accent);
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            box-shadow: var(--shadow-md);
        }
        body.ltr .product-card.featured-card::before {
            right: auto;
            left: 10px;
        }
        .product-image-wrapper {
            position: relative;
            width: 100%;
            height: 200px;
            overflow: hidden;
        }
        .product-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .product-card:hover .product-image,
        .new-arrival-card:hover .product-image,
        .best-seller-card:hover .product-image {
            transform: scale(1.05);
        }
        .product-category-badge {
            position: absolute;
            bottom: 10px;
            left: 10px;
            background: var(--glass-dark);
            backdrop-filter: blur(10px);
            color: white;
            padding: 4px 10px;
            border-radius: 16px;
            font-size: 0.72rem;
            font-weight: 600;
            z-index: 2;
        }
        body.ltr .product-category-badge {
            left: auto;
            right: 10px;
        }
        .product-stock-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            padding: 4px 10px;
            border-radius: 16px;
            font-size: 0.72rem;
            font-weight: 600;
            z-index: 2;
        }
        .product-stock-badge.in-stock {
            background: #d4edda;
            color: #155724;
        }
        .product-stock-badge.out-of-stock {
            background: #f8d7da;
            color: #721c24;
        }
        body.ltr .product-stock-badge {
            left: auto;
            right: 10px;
        }
        .product-low-stock-badge {
            position: absolute;
            bottom: 10px;
            right: 10px;
            padding: 4px 10px;
            border-radius: 16px;
            font-size: 0.68rem;
            font-weight: 700;
            z-index: 2;
            background: linear-gradient(135deg, #ff6b00, #ffb347);
            color: white;
            box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
            animation: lowStockPulse 1.5s ease-in-out infinite;
        }
        body.ltr .product-low-stock-badge {
            right: auto;
            left: 10px;
        }
        @keyframes lowStockPulse {
            0%,
            100% {
                opacity: 1;
            }
            50% {
                opacity: 0.7;
            }
        }
        .product-info {
            padding: 16px;
            text-align: center;
        }
        .product-title {
            color: var(--dark);
            font-size: 1rem;
            margin-bottom: 6px;
            font-weight: 700;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .product-sku {
            color: var(--grey);
            font-size: 0.75rem;
            margin-bottom: 4px;
        }
        .product-price {
            color: var(--primary);
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 10px;
        }
        .product-price .currency {
            font-size: 0.78rem;
            font-weight: 500;
            color: var(--grey);
        }
        .add-to-cart-btn {
            background: linear-gradient(135deg, #ff6d1e 0%, #ff8c3a 100%);
            color: white;
            border: none;
            padding: 9px 22px;
            border-radius: 22px;
            font-weight: 600;
            cursor: pointer;
            font-size: 0.88rem;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-sm);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .add-to-cart-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        .add-to-cart-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            box-shadow: none;
        }
        .add-to-cart-btn:disabled:hover {
            transform: none;
        }
        .new-badge,
        .best-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 5px 12px;
            border-radius: 16px;
            font-size: 0.7rem;
            font-weight: 700;
            z-index: 5;
            box-shadow: var(--shadow-md);
            color: white;
        }
        .new-badge {
            background: linear-gradient(135deg, #ff6b81 0%, #fe5f00 100%);
        }
        .best-badge {
            background: var(--gradient-gold);
        }
        body.ltr .new-badge,
        body.ltr .best-badge {
            right: auto;
            left: 10px;
        }
        .skeleton-card {
            background: white;
            border-radius: 18px;
            overflow: hidden;
            box-shadow: var(--shadow-md);
        }
        .skeleton-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }
        .skeleton-body {
            padding: 16px;
        }
        .skeleton-line {
            height: 14px;
            background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 6px;
            margin-bottom: 8px;
        }
        .skeleton-line.short {
            width: 60%;
        }
        .skeleton-line.medium {
            width: 80%;
        }
        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            display: flex;
            align-items: center;
            justify-content: space-around;
            padding: 6px 4px;
            box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.15);
            z-index: 990;
            border-top: 2px solid #eee;
            height: var(--bottom-nav-height);
            gap: 2px;
        }
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            cursor: pointer;
            padding: 6px 8px;
            border-radius: 12px;
            transition: all 0.3s ease;
            color: #888;
            text-decoration: none;
            flex: 1;
            min-width: 0;
            position: relative;
        }
        .bottom-nav-item i {
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }
        .bottom-nav-item span {
            font-size: 0.65rem;
            font-weight: 600;
            white-space: nowrap;
        }
        .bottom-nav-item.active {
            color: var(--primary);
            background: #fef5f0;
        }
        .bottom-nav-item:hover {
            color: var(--primary);
        }
        .bottom-nav-item .nav-badge {
            position: absolute;
            top: 2px;
            right: 6px;
            background: var(--gradient-primary);
            color: white;
            width: 17px;
            height: 17px;
            border-radius: 50%;
            font-size: 0.6rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        body.ltr .bottom-nav-item .nav-badge {
            right: auto;
            left: 6px;
        }
        .nav-badge:empty,
        .nav-badge[data-count="0"] {
            display: none;
        }
        .cart-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1005;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(4px);
        }
        .cart-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .cart-sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--sidebar-width);
            max-width: 90vw;
            height: 100%;
            background: var(--white);
            z-index: 1006;
            box-shadow: var(--shadow-xl);
            transform: translateX(-105%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            border-radius: 0 20px 20px 0;
        }
        .cart-sidebar.active {
            transform: translateX(0);
        }
        body.ltr .cart-sidebar {
            left: auto;
            right: 0;
            transform: translateX(105%);
            border-radius: 20px 0 0 20px;
        }
        body.ltr .cart-sidebar.active {
            transform: translateX(0);
        }
        .cart-sidebar-header {
            padding: 16px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--gradient-primary);
            color: white;
            border-radius: 0 20px 0 0;
        }
        body.ltr .cart-sidebar-header {
            border-radius: 20px 0 0 0;
        }
        .cart-sidebar-header h3 {
            font-size: 1.1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .cart-close-btn {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        .cart-close-btn:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: rotate(90deg);
        }
        .cart-items-list {
            flex: 1;
            overflow-y: auto;
            padding: 12px 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .cart-empty {
            text-align: center;
            padding: 50px 16px;
            color: var(--grey);
        }
        .cart-empty i {
            font-size: 3rem;
            margin-bottom: 16px;
            display: block;
            color: #ddd;
        }
        .cart-item {
            display: flex;
            gap: 12px;
            padding: 12px;
            background: #f9f9f9;
            border-radius: 12px;
            align-items: center;
            transition: all 0.3s ease;
        }
        .cart-item-image {
            width: 55px;
            height: 55px;
            border-radius: 10px;
            object-fit: cover;
            flex-shrink: 0;
            box-shadow: var(--shadow-sm);
        }
        .cart-item-info {
            flex: 1;
            min-width: 0;
        }
        .cart-item-title {
            font-weight: 700;
            font-size: 0.85rem;
            margin-bottom: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: var(--dark);
        }
        .cart-item-price {
            color: var(--primary);
            font-weight: 700;
            font-size: 0.82rem;
        }
        .cart-item-quantity {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 4px;
            color: var(--grey);
        }
        .cart-item-quantity button {
            width: 24px;
            height: 24px;
            border-radius: 5px;
            border: 1px solid #ccc;
            background: #eee;
            color: var(--dark);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
        }
        .cart-item-quantity button:hover {
            background: #ddd;
        }
        .cart-item-remove {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #ffe0e0;
            border: none;
            color: #fe5f00;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            flex-shrink: 0;
            font-size: 0.75rem;
        }
        .cart-item-remove:hover {
            background: #ff9f43;
            color: white;
        }
        .cart-footer {
            padding: 16px 20px;
            border-top: 2px solid #eee;
            background: #fafafa;
            border-radius: 0 0 20px 0;
        }
        body.ltr .cart-footer {
            border-radius: 0 0 0 20px;
        }
        .cart-delivery-options {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        .cart-delivery-option {
            flex: 1;
            min-width: 100px;
            padding: 10px 12px;
            border-radius: 10px;
            border: 2px solid #ddd;
            background: white;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.78rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
            justify-content: center;
            text-align: center;
            color: var(--dark);
            user-select: none;
        }
        .cart-delivery-option.selected {
            border-color: var(--primary);
            background: #fef5f0;
            color: var(--primary);
        }
        .cart-address-input-wrapper {
            margin-bottom: 10px;
            display: none;
        }
        .cart-address-input-wrapper.visible {
            display: block;
        }
        .cart-address-input {
            width: 100%;
            padding: 10px 12px;
            border-radius: 10px;
            border: 2px solid #ddd;
            font-size: 0.82rem;
            font-family: inherit;
            resize: vertical;
            min-height: 50px;
            transition: all 0.3s ease;
            background: white;
            color: var(--dark);
        }
        .cart-address-input:focus {
            border-color: var(--primary);
            outline: none;
        }
        .cart-branch-info {
            margin-bottom: 10px;
            padding: 8px 12px;
            background: #fff8f5;
            border-radius: 10px;
            border: 1.5px solid #ffd6b0;
            display: none;
        }
        .cart-branch-info.visible {
            display: block;
        }
        .cart-branch-info a {
            color: var(--primary);
            font-weight: 700;
            font-size: 0.8rem;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .cart-payment-section {
            margin-bottom: 10px;
            display: none;
        }
        .cart-payment-section.visible {
            display: block;
        }
        .cart-payment-label {
            font-weight: 700;
            font-size: 0.8rem;
            color: var(--dark);
            margin-bottom: 6px;
        }
        .cart-payment-options {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        .cart-payment-option {
            padding: 7px 12px;
            border-radius: 8px;
            border: 2px solid #ddd;
            background: white;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.75rem;
            transition: all 0.25s ease;
            color: var(--dark);
            user-select: none;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .cart-payment-option.selected {
            border-color: var(--primary);
            background: #fef5f0;
            color: var(--primary);
        }
        .cart-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            font-weight: 700;
            font-size: 1rem;
        }
        .cart-total-price {
            color: var(--primary);
            font-size: 1.2rem;
        }
        .cart-checkout-btn {
            width: 100%;
            padding: 13px;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-md);
        }
        .cart-checkout-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }
        .product-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(6px);
            z-index: 1100;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }
        .product-modal-overlay.active {
            display: flex;
        }
        .product-modal {
            background: white;
            border-radius: 22px;
            max-width: 520px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-xl);
            animation: modalAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        @keyframes modalAppear {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(40px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }
        .modal-close-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.6);
            border: none;
            color: white;
            font-size: 1rem;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        body.ltr .modal-close-btn {
            right: auto;
            left: 12px;
        }
        .modal-close-btn:hover {
            background: var(--primary);
            transform: rotate(90deg);
        }
        .modal-product-image-wrapper {
            width: 100%;
            max-height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f5f5f5;
            border-radius: 22px 22px 0 0;
            overflow: hidden;
            min-height: 180px;
        }
        .modal-product-image {
            width: 100%;
            height: auto;
            max-height: 400px;
            object-fit: contain;
            display: block;
        }
        .modal-product-body {
            padding: 20px;
        }
        .modal-product-sku {
            color: var(--grey);
            font-size: 0.78rem;
            margin-bottom: 4px;
        }
        .modal-product-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--dark);
        }
        .modal-product-description {
            color: #555;
            line-height: 1.6;
            margin-bottom: 12px;
            font-size: 0.9rem;
        }
        .modal-product-meta {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }
        .modal-meta-item {
            background: #f5f5f5;
            padding: 7px 13px;
            border-radius: 16px;
            font-size: 0.78rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .modal-low-stock-alert {
            background: linear-gradient(135deg, #fff3e0, #ffe0b2);
            border: 2px solid #ff9800;
            border-radius: 10px;
            padding: 8px 14px;
            margin-bottom: 12px;
            display: none;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            font-size: 0.85rem;
            color: #e65100;
            animation: lowStockPulse 1.5s ease-in-out infinite;
        }
        .modal-low-stock-alert.visible {
            display: flex;
        }
        .modal-product-price {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 16px;
        }
        .modal-add-to-cart-btn {
            width: 100%;
            padding: 13px;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-md);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .modal-add-to-cart-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }
        .modal-add-to-cart-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
        }
        .modal-share-section {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #eee;
            flex-wrap: wrap;
        }
        .modal-share-label {
            font-size: 0.8rem;
            color: var(--grey);
            font-weight: 600;
            flex-shrink: 0;
        }
        .modal-share-icons {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        .modal-share-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            flex-shrink: 0;
        }
        .modal-share-icon:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        .modal-share-icon.whatsapp {
            background: #25D366;
        }
        .modal-share-icon.facebook {
            background: #1877F2;
        }
        .modal-share-icon.copy-link {
            background: #6c757d;
        }
        .modal-share-icon.twitter {
            background: #1DA1F2;
        }
        .product-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.45);
            z-index: 1050;
            display: none;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.35s ease;
        }
        .product-popup-overlay.active {
            display: flex;
        }
        .product-popup-card {
            background: white;
            border-radius: 20px;
            width: 92%;
            max-width: 360px;
            box-shadow: var(--shadow-xl);
            position: relative;
            animation: popupBounceIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
            overflow: hidden;
        }
        @keyframes popupBounceIn {
            0% {
                opacity: 0;
                transform: scale(0.7) translateY(60px);
            }
            60% {
                transform: scale(1.04) translateY(-5px);
            }
            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }
        .product-popup-close {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.55);
            border: none;
            color: white;
            font-size: 0.9rem;
            cursor: pointer;
            z-index: 5;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        .product-popup-close:hover {
            background: #fe5f00;
            transform: rotate(90deg);
        }
        .product-popup-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
            display: block;
        }
        .product-popup-body {
            padding: 16px 18px;
            text-align: center;
        }
        .product-popup-title {
            font-weight: 700;
            font-size: 1rem;
            margin-bottom: 5px;
            color: var(--dark);
        }
        .product-popup-price {
            color: var(--primary);
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 10px;
        }
        .product-popup-link {
            display: inline-block;
            background: var(--gradient-primary);
            color: white;
            padding: 9px 22px;
            border-radius: 22px;
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            font-size: 0.88rem;
        }
        .product-popup-link:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        .toast {
            position: fixed;
            bottom: 175px;
            left: 50%;
            cursor: pointer;
            transform: translateX(-50%) translateY(120px);
            background: var(--dark);
            color: white;
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: 600;
            z-index: 2000;
            box-shadow: var(--shadow-xl);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            font-size: 0.9rem;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        .whatsapp-float {
            position: fixed;
            bottom: 85px;
            left: 25px;
            width: 55px;
            height: 55px;
            background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-xl);
            z-index: 987;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 3px solid white;
            animation: whatsappPulse 2.5s ease-in-out infinite;
        }
        body.ltr .whatsapp-float {
            left: auto;
            right: 25px;
        }
        @keyframes whatsappPulse {
            0%,
            100% {
                box-shadow: var(--shadow-xl);
            }
            50% {
                box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6), 0 0 30px rgba(37, 211, 102, 0.3);
            }
        }
        .whatsapp-float:hover {
            transform: scale(1.12) rotate(12deg);
            animation: none;
        }
        .whatsapp-float i {
            color: white;
            font-size: 28px;
        }
        .flying-product {
            position: fixed;
            z-index: 2000;
            pointer-events: none;
            transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border-radius: 10px;
            box-shadow: var(--shadow-xl);
            object-fit: cover;
        }
        .social-sidebar {
            position: fixed;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--glass-dark);
            backdrop-filter: blur(20px);
            border-radius: 18px;
            padding: 12px 8px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 988;
            box-shadow: var(--shadow-xl);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        body.ltr .social-sidebar {
            left: 16px;
            right: auto;
        }
        .social-icon {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-sm);
        }
        .social-icon:hover {
            transform: translateY(-4px) scale(1.08);
            box-shadow: var(--shadow-md);
        }
        .social-icon.facebook {
            background: linear-gradient(135deg, #1877F2 0%, #0d5cb6 100%);
        }
        .social-icon.instagram {
            background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
        }
        .social-icon.twitter {
            background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
        }
        .social-icon.tiktok {
            background: linear-gradient(135deg, #000000 0%, #333333 100%);
        }
        .social-icon.snapchat {
            background: linear-gradient(135deg, #FFFC00 0%, #FFD700 100%);
            color: #000;
        }
        footer {
            background: var(--gradient-dark);
            color: white;
            text-align: center;
            padding: 24px 16px;
            margin-top: 40px;
            width: 100%;
            border-top: 3px solid var(--primary);
            margin-bottom: var(--bottom-nav-height);
        }
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 16px;
            flex-wrap: wrap;
        }
        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 0.82rem;
            padding: 7px 14px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
        }
        .footer-links a:hover {
            color: white;
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }
        .footer-visit-branch {
            color: #ff9a60;
            font-weight: 600;
            font-size: 0.88rem;
            margin-top: 6px;
        }
        .footer-legal {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.72rem;
            margin-top: 12px;
            line-height: 1.8;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 12px;
        }
        .footer-social-mobile {
            display: none;
            justify-content: center;
            gap: 12px;
            margin-top: 16px;
            flex-wrap: wrap;
        }
        .share-button {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            box-shadow: var(--shadow-md);
            transition: all 0.3s ease;
            font-size: 0.85rem;
            white-space: nowrap;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .share-button:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        .social-sharing {
            display: none;
            justify-content: center;
            gap: 12px;
            margin: 20px 0;
            flex-wrap: wrap;
            width: 100%;
            animation: fadeIn 0.5s ease;
        }
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .social-share-button {
            width: 48px;
            height: 48px;
            border-radius: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-md);
        }
        .social-share-button:hover {
            transform: translateY(-4px) scale(1.08);
            box-shadow: var(--shadow-lg);
        }
        .social-share-button.whatsapp {
            background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
        }
        .social-share-button.facebook {
            background: linear-gradient(135deg, #1877F2 0%, #0d5cb6 100%);
        }
        .social-share-button.copy {
            background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        }
        .copy-link-container {
            display: flex;
            gap: 8px;
            align-items: center;
            background: var(--glass);
            backdrop-filter: blur(10px);
            padding: 10px 16px;
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            margin-top: 12px;
            max-width: 460px;
            width: 100%;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .copy-link-input {
            flex: 1;
            border: none;
            padding: 8px;
            font-size: 0.82rem;
            outline: none;
            background: transparent;
            color: var(--dark);
        }
        .copy-link-button {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 7px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            white-space: nowrap;
            font-size: 0.8rem;
        }
        .copy-success {
            color: var(--success);
            font-weight: bold;
            font-size: 0.8rem;
            display: none;
        }
        .search-results-info {
            text-align: center;
            color: var(--grey);
            font-size: 0.85rem;
            margin: -4px 0 10px;
            display: none;
        }
        .search-results-info.visible {
            display: block;
        }
        @media(max-width:992px) {
            .social-sidebar {
                display: none !important;
            }
            .footer-social-mobile {
                display: flex;
            }
            .cart-sidebar {
                --sidebar-width: 340px;
            }
            .poster-slider-wrapper {
                max-height: 250px;
            }
            .bottom-nav {
                display: flex;
            }
            body {
                padding-bottom: calc(var(--bottom-nav-height) + 20px);
            }
            footer {
                margin-bottom: var(--bottom-nav-height);
            }
            .whatsapp-float {
                bottom: calc(var(--bottom-nav-height) + 20px);
            }
            .header-text h1 {
                font-size: 1rem;
            }
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
                gap: 14px;
            }
            .new-arrivals-grid,
            .best-seller-grid,
            .discount-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 14px;
            }
        }
        @media(max-width:768px) {
            .container {
                padding: 8px 10px;
            }
            header {
                padding: 10px 12px;
                gap: 8px;
                flex-wrap: nowrap;
            }
            .logo-container {
                gap: 6px;
            }
            .logo {
                height: 38px;
                width: 38px;
                border-radius: 10px;
            }
            .header-text h1 {
                font-size: 0.85rem;
            }
            .header-text p {
                font-size: 0.7rem;
            }
            .header-actions {
                gap: 6px;
            }
            .icon-btn {
                width: 34px;
                height: 34px;
                border-radius: 9px;
                font-size: 0.85rem;
            }
            .hamburger-btn {
                width: 34px;
                height: 34px;
                border-radius: 9px;
                padding: 7px;
                gap: 2px;
            }
            .hamburger-btn .bar {
                width: 15px;
                height: 1.8px;
            }
            .share-button {
                padding: 6px 10px;
                font-size: 0.72rem;
                border-radius: 8px;
            }
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
                gap: 10px;
            }
            .new-arrivals-grid,
            .best-seller-grid,
            .discount-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                gap: 10px;
            }
            .product-image-wrapper {
                height: 150px;
            }
            .product-info {
                padding: 10px;
            }
            .product-title {
                font-size: 0.82rem;
            }
            .product-price {
                font-size: 1rem;
            }
            .add-to-cart-btn {
                padding: 7px 14px;
                font-size: 0.75rem;
            }
            .cart-sidebar {
                --sidebar-width: 300px;
                max-width: 88vw;
            }
            .poster-slider-wrapper {
                aspect-ratio: 16/9;
                max-height: 190px;
                border-radius: 10px;
            }
            .section-title {
                font-size: 1.1rem;
            }
            .countdown-value {
                font-size: 1.3rem;
            }
            .countdown-item {
                min-width: 48px;
                padding: 8px 10px;
            }
            .section-divider-img {
                max-height: 140px;
                border-radius: 10px;
            }
            .filter-bar {
                padding: 8px 10px;
                gap: 6px;
            }
            .filter-bar select {
                font-size: 0.78rem;
                padding: 6px 10px;
            }
            .bottom-nav {
                padding: 4px 2px;
                height: 56px;
            }
            .bottom-nav-item i {
                font-size: 1rem;
            }
            .bottom-nav-item span {
                font-size: 0.58rem;
            }
        }
        @media(max-width:480px) {
            .products-grid {
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }
            .new-arrivals-grid,
            .best-seller-grid,
            .discount-grid {
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }
            .product-image-wrapper {
                height: 130px;
            }
            .product-info {
                padding: 8px;
            }
            .product-title {
                font-size: 0.75rem;
            }
            .product-price {
                font-size: 0.9rem;
            }
            .add-to-cart-btn {
                padding: 6px 12px;
                font-size: 0.7rem;
            }
            .cart-sidebar {
                --sidebar-width: 260px;
                max-width: 85vw;
            }
            .poster-slider-wrapper {
                max-height: 150px;
            }
            .header-text h1 {
                font-size: 0.75rem;
            }
            .logo {
                height: 32px;
                width: 32px;
            }
            .icon-btn {
                width: 30px;
                height: 30px;
            }
            .hamburger-btn {
                width: 30px;
                height: 30px;
                padding: 6px;
            }
            .hamburger-btn .bar {
                width: 13px;
                height: 1.6px;
            }
            .search-container {
                height: 36px;
            }
            .search-input {
                font-size: 0.78rem;
            }
            .countdown-item {
                min-width: 40px;
                padding: 6px 8px;
            }
            .countdown-value {
                font-size: 1.1rem;
            }
            .section-divider-img {
                max-height: 110px;
            }
            .bottom-nav {
                height: 50px;
            }
            body {
                padding-bottom: calc(50px + 16px);
            }
        }
        @media(min-width:993px) {
            .bottom-nav {
                display: none;
            }
            body {
                padding-bottom: 20px;
            }
            footer {
                margin-bottom: 0;
            }
            .whatsapp-float {
                bottom: 30px;
            }
        }

/* =========================================================
   FIXED PRODUCT GRID LAYOUT (4 per row Desktop, 2 Mobile)
   ========================================================= */
.products-container,
.products-grid,
.new-arrivals-grid,
.best-seller-grid,
.discount-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 18px !important;
    width: 100% !important;
    align-items: stretch !important;
}

@media (max-width: 992px) {
    .products-container,
    .products-grid,
    .new-arrivals-grid,
    .best-seller-grid,
    .discount-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
}

@media (max-width: 768px) {
    .products-container,
    .products-grid,
    .new-arrivals-grid,
    .best-seller-grid,
    .discount-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .products-container,
    .products-grid,
    .new-arrivals-grid,
    .best-seller-grid,
    .discount-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}

/* Uniform Card & Image Heights */
.product-card,
.new-arrival-card,
.best-seller-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    position: relative !important;
}

.product-card:hover,
.new-arrival-card:hover,
.best-seller-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(254, 95, 0, 0.15) !important;
    border-color: var(--primary) !important;
}

.product-image-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 190px !important;
    padding-top: 0 !important;
    background: #fdfdfd !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 768px) {
    .product-image-wrapper {
        height: 140px !important;
    }
}

@media (max-width: 480px) {
    .product-image-wrapper {
        height: 125px !important;
    }
}

.product-image {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 10px !important;
    transition: transform 0.4s ease !important;
}

.product-info {
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    justify-content: space-between !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .product-info {
        padding: 8px 6px 10px !important;
    }
}

/* =========================================================
   POPUP ANIMATIONS & UNIFIED CROSS (X) BUTTON FIXES
   ========================================================= */

/* All Cross Buttons Consistency */
.saudi-popup-close,
.modal-close-btn,
.product-popup-close,
.cart-close-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    border: 1.5px solid #ddd !important;
    color: #2f3542 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    z-index: 30 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1 !important;
    font-family: Arial, sans-serif !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    padding: 0 !important;
    outline: none !important;
}

.saudi-popup-close:hover,
.modal-close-btn:hover,
.product-popup-close:hover,
.cart-close-btn:hover {
    background: #fe5f00 !important;
    color: #ffffff !important;
    border-color: #fe5f00 !important;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: 0 4px 14px rgba(254, 95, 0, 0.4) !important;
}

/* Celebration Popup Modal */
.saudi-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 30, 15, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 2100 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    animation: saudiOverlayFade 0.35s ease !important;
}

.saudi-popup-overlay.active {
    display: flex !important;
}

@keyframes saudiOverlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.saudi-popup-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    width: 92% !important;
    max-width: 440px !important;
    padding: 30px 24px 26px !important;
    text-align: center !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 108, 53, 0.2) !important;
    position: relative !important;
    border: 3px solid #006c35 !important;
    animation: saudiBounceIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    overflow: hidden !important;
}

.saudi-popup-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 8px !important;
    background: linear-gradient(90deg, #006c35 0%, #ffd700 50%, #006c35 100%) !important;
}

@keyframes saudiBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(50px);
    }
    70% {
        transform: scale(1.04) translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.saudi-popup-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
}

body.ltr .saudi-popup-close {
    right: auto !important;
    left: 14px !important;
}

.saudi-popup-flag {
    font-size: 3rem !important;
    line-height: 1 !important;
    margin-bottom: 8px !important;
    animation: flagWiggle 2s ease-in-out infinite !important;
}

@keyframes flagWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg) scale(1.05); }
    75% { transform: rotate(8deg) scale(1.05); }
}

.saudi-popup-badge {
    display: inline-block !important;
    background: #e8f5e9 !important;
    color: #006c35 !important;
    border: 1.5px solid #006c35 !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    margin-bottom: 12px !important;
}

.saudi-popup-title {
    color: #004b23 !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
}

.saudi-popup-text {
    color: #4a5568 !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    font-weight: 500 !important;
}

.saudi-popup-btn {
    width: 100% !important;
    padding: 13px 24px !important;
    background: linear-gradient(135deg, #006c35 0%, #004b23 100%) !important;
    color: #ffffff !important;
    border: 2px solid #ffd700 !important;
    border-radius: 25px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(0, 108, 53, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.saudi-popup-btn:hover {
    background: linear-gradient(135deg, #004b23 0%, #003619 100%) !important;
    color: #ffd700 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(0, 108, 53, 0.4) !important;
}

/* Centered Product Popup Modal */
.product-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 2050 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    animation: popupOverlayFade 0.3s ease !important;
}

.product-popup-overlay.active {
    display: flex !important;
}

@keyframes popupOverlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-popup-card {
    background: #ffffff !important;
    border-radius: 22px !important;
    width: 92% !important;
    max-width: 360px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    animation: popupBounceIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    border: 2px solid var(--primary) !important;
}

@keyframes popupBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(40px);
    }
    70% {
        transform: scale(1.03) translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.product-popup-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid #ddd !important;
    color: #333 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

body.ltr .product-popup-close {
    right: auto !important;
    left: 12px !important;
}

.product-popup-close:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

.product-popup-image {
    width: 100% !important;
    height: 190px !important;
    object-fit: contain !important;
    background: #f8f9fa !important;
    display: block !important;
    padding: 12px !important;
}

.product-popup-body {
    padding: 16px 20px 20px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.product-popup-title {
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
    color: var(--dark) !important;
}

.product-popup-price {
    color: var(--primary) !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    margin-bottom: 14px !important;
}

.product-popup-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 11px 24px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    font-size: 0.92rem !important;
    width: 100% !important;
    box-shadow: 0 4px 15px rgba(254, 95, 0, 0.3) !important;
}

.product-popup-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(254, 95, 0, 0.4) !important;
}

/* Main Product Detail Modal Overlay */
.product-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 2000 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
}

.product-modal-overlay.active {
    display: flex !important;
}

.product-modal {
    background: white !important;
    border-radius: 24px !important;
    max-width: 520px !important;
    width: 95% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: var(--shadow-xl) !important;
    animation: modalBounceIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    position: relative !important;
}

@keyframes modalBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.75) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
}

body.ltr .modal-close-btn {
    right: auto !important;
    left: 14px !important;
}

/* =========================================================
   SAUDI NATIONAL DAY DISCOUNT PAGE STYLES (#pageView.saudi-theme)
   ========================================================= */
#pageView.saudi-theme {
    background: linear-gradient(180deg, #004b23 0%, #006c35 180px, #f4fdf6 400px) !important;
    border-radius: 24px !important;
    padding: 20px !important;
    box-shadow: 0 12px 35px rgba(0, 75, 35, 0.15) !important;
    position: relative !important;
    margin-top: 10px !important;
}

#pageView.saudi-theme #pageViewTitle {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 16px !important;
}

#pageView.saudi-theme #pageViewTitleText {
    color: #ffffff !important;
}

#pageView.saudi-theme #pageViewIcon {
    background: linear-gradient(135deg, #ffd700 0%, #006c35 100%) !important;
    color: #004b23 !important;
}

#pageView.saudi-theme .page-back-btn {
    background: #006c35 !important;
    color: #ffffff !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 4px 14px rgba(0, 108, 53, 0.3) !important;
    padding: 9px 20px !important;
    font-size: 0.9rem !important;
    border-radius: 25px !important;
}

#pageView.saudi-theme .page-back-btn:hover {
    background: #004b23 !important;
    color: #ffd700 !important;
}

#pageView.saudi-theme .product-card {
    border: 1.5px solid #c8e6c9 !important;
    box-shadow: 0 4px 15px rgba(0, 108, 53, 0.08) !important;
}

#pageView.saudi-theme .product-card:hover {
    border-color: #006c35 !important;
    box-shadow: 0 10px 25px rgba(0, 108, 53, 0.2) !important;
}

#pageView.saudi-theme .product-card .add-to-cart-btn {
    background: linear-gradient(135deg, #006c35 0%, #004b23 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid #ffd700 !important;
    box-shadow: 0 4px 12px rgba(0, 108, 53, 0.25) !important;
}

#pageView.saudi-theme .product-card .add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #004b23 0%, #003619 100%) !important;
    color: #ffd700 !important;
    transform: translateY(-2px) !important;
}

/* Green Framed Posters */
.saudi-poster-frame {
    border: 3.5px solid #006c35 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0, 108, 53, 0.2) !important;
    margin: 18px 0 !important;
    position: relative !important;
    background: #004b23 !important;
    transition: transform 0.3s ease !important;
}

.saudi-poster-frame:hover {
    transform: translateY(-3px) !important;
    border-color: #ffd700 !important;
}

.saudi-poster-frame img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    max-height: 280px !important;
    object-fit: cover !important;
}

.saudi-poster-badge-overlay {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    background: #006c35 !important;
    color: #ffd700 !important;
    border: 1.5px solid #ffd700 !important;
    padding: 5px 14px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 0.82rem !important;
}

/* Discount Sliders */
.saudi-slider-container {
    margin-bottom: 24px !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    padding: 16px !important;
    border: 2px solid #006c35 !important;
    box-shadow: 0 6px 20px rgba(0, 108, 53, 0.12) !important;
}

.saudi-slider-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 14px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e8f5e9 !important;
}

.saudi-slider-title {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #004b23 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.saudi-slider-nav {
    display: flex !important;
    gap: 8px !important;
}

.saudi-nav-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #006c35 !important;
    color: white !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.saudi-nav-btn:hover {
    background: #004b23 !important;
    color: #ffd700 !important;
    transform: scale(1.1) !important;
}

.saudi-slider-viewport {
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    width: 100% !important;
    position: relative !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.saudi-slider-viewport::-webkit-scrollbar {
    display: none !important;
}

.saudi-slider-track {
    display: flex !important;
    gap: 14px !important;
    padding: 4px 2px !important;
}

.saudi-slider-card {
    flex: 0 0 220px !important;
    min-width: 220px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1.5px solid #c8e6c9 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.saudi-slider-card:hover {
    transform: translateY(-4px) !important;
    border-color: #006c35 !important;
    box-shadow: 0 8px 20px rgba(0, 108, 53, 0.2) !important;
}

.saudi-slider-card-img-wrapper {
    position: relative !important;
    padding-top: 85% !important;
    overflow: hidden !important;
    background: #f8f9fa !important;
}

.saudi-slider-card-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.saudi-slider-card-body {
    padding: 10px !important;
}

.saudi-slider-card-sku {
    font-size: 0.65rem !important;
    color: #888 !important;
    margin-bottom: 2px !important;
}

.saudi-slider-card-title {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #2f3542 !important;
    margin-bottom: 6px !important;
    height: 2.2em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.saudi-slider-card-price {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #006c35 !important;
    margin-bottom: 8px !important;
}

.saudi-slider-add-btn {
    width: 100% !important;
    padding: 6px !important;
    border-radius: 12px !important;
    background: #006c35 !important;
    color: white !important;
    border: none !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.saudi-slider-add-btn:hover {
    background: #004b23 !important;
    color: #ffd700 !important;
}

/* 2 Premium Products Spotlight Section */
.saudi-spotlight-container {
    margin: 24px 0 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f4fdf6 100%) !important;
    border: 3px solid #ffd700 !important;
    border-radius: 22px !important;
    padding: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 108, 53, 0.25) !important;
    position: relative !important;
}

.saudi-spotlight-header {
    text-align: center !important;
    margin-bottom: 16px !important;
}

.saudi-spotlight-title {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #004b23 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.saudi-spotlight-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
}

@media (max-width: 600px) {
    .saudi-spotlight-grid {
        grid-template-columns: 1fr !important;
    }
}

.saudi-spotlight-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 2px solid #006c35 !important;
    padding: 14px !important;
    display: flex !important;
    gap: 14px !important;
    align-items: center !important;
    box-shadow: 0 6px 18px rgba(0, 108, 53, 0.12) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
}

.saudi-spotlight-card:hover {
    transform: translateY(-4px) !important;
    border-color: #ffd700 !important;
}

.saudi-spotlight-img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
}

.saudi-spotlight-badge {
    position: absolute !important;
    top: -10px !important;
    right: 12px !important;
    background: #ffd700 !important;
    color: #004b23 !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    padding: 3px 10px !important;
    border-radius: 10px !important;
}

.saudi-spotlight-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.saudi-spotlight-card-title {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    color: #2f3542 !important;
    margin-bottom: 6px !important;
}

.saudi-spotlight-card-price {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #006c35 !important;
    margin-bottom: 8px !important;
}

/* Split Feature Banner Section */
.split-feature-section {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin: 24px 0 !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .split-feature-section {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

.split-banner-box {
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-lg) !important;
    background: linear-gradient(135deg, #004b23 0%, #006c35 100%) !important;
    min-height: 200px !important;
    display: flex !important;
    align-items: center !important;
    border: 2px solid #ffd700 !important;
}

.split-banner-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 0.35 !important;
}

.split-banner-content {
    position: relative !important;
    z-index: 2 !important;
    padding: 24px !important;
    color: #ffffff !important;
}

.split-banner-badge {
    background: #ffd700 !important;
    color: #004b23 !important;
    font-weight: 800 !important;
    font-size: 0.78rem !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    display: inline-block !important;
    margin-bottom: 10px !important;
}

.split-banner-title {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}

.split-products-box {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
}

@media (max-width: 480px) {
    .split-products-box {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================================
   BISHA BRANCH PRE-BOOKING & SAUDI NATIONAL DAY THEME ADDITIONS
   ============================================================= */

/* Single-Piece Purchase Limit Badge on Product Card */
.product-limit-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #F4B400 0%, #D48800 100%);
    color: #122317;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(244, 180, 0, 0.4);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    letter-spacing: -0.2px;
}

body.rtl .product-limit-badge {
    left: auto;
    right: 8px;
}

/* Cart Item Quantity Limit Styling */
.increment-btn.limit-reached,
.increment-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    background: #ccc !important;
}

.cart-item-limit-notice {
    font-size: 0.7rem;
    color: #b45309;
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
}

/* Pre-Booking Customer Details Form inside Cart Sidebar */
.cart-customer-section {
    background: #f9fdfa;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.cart-customer-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-customer-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #d1fae5;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    background: #fff;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s;
}

.cart-customer-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 108, 53, 0.1);
}

.cart-ip-notice {
    font-size: 0.72rem;
    color: #047857;
    background: rgba(0, 108, 53, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

/* Grand Opening Ribbon Announcement */
.opening-announcement-bar {
    background: linear-gradient(135deg, #006C35 0%, #004b23 60%, #F4B400 100%);
    color: #ffffff;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    border: 1px solid rgba(244, 180, 0, 0.4);
}

.opening-badge {
    background: #F4B400;
    color: #122317;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

/* =============================================================
   OFFICIAL INVOICE MODAL (SAUDI NATIONAL DAY / GRAND OPENING SLIP)
   ============================================================= */
.invoice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 24, 16, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.invoice-modal-overlay.active {
    display: flex;
    animation: invoiceFadeIn 0.3s ease;
}

@keyframes invoiceFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.invoice-card {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    position: relative;
    border: 2px solid #F4B400;
    display: flex;
    flex-direction: column;
}

.invoice-header {
    background: linear-gradient(135deg, #006C35 0%, #004b23 100%);
    color: #ffffff;
    padding: 24px 20px 20px;
    text-align: center;
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.invoice-close-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

body.rtl .invoice-close-btn {
    left: auto;
    right: 14px;
}

.invoice-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.invoice-badge-top {
    display: inline-block;
    background: #F4B400;
    color: #122317;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.invoice-store-name {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.invoice-order-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px dashed rgba(244, 180, 0, 0.7);
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 10px;
}

.invoice-order-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: #F4B400;
    letter-spacing: 2px;
}

.invoice-body {
    padding: 20px;
    color: #1b281f;
}

.invoice-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f4fbf6;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.82rem;
}

.invoice-meta-item strong {
    display: block;
    color: #006C35;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 0.82rem;
}

.invoice-items-table th {
    background: #f3f8f5;
    color: #006C35;
    font-weight: 700;
    padding: 8px 10px;
    text-align: right;
    border-bottom: 2px solid #e0ede4;
}

body.ltr .invoice-items-table th {
    text-align: left;
}

.invoice-items-table td {
    padding: 10px;
    border-bottom: 1px solid #eef3f0;
}

.invoice-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4fbf6;
    border: 2px solid #006C35;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #006C35;
    margin-bottom: 20px;
}

.invoice-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-whatsapp-invoice {
    background: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 0.98rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    transition: all 0.25s;
    text-decoration: none;
}

.btn-whatsapp-invoice:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.btn-print-invoice {
    background: #f0f5f2;
    color: #006C35;
    border: 1.5px solid #006C35;
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-print-invoice:hover {
    background: #e2ede5;
}

/* =============================================================
   IP ALREADY BOOKED ALERT MODAL
   ============================================================= */
.ip-blocked-card {
    background: #ffffff;
    border-radius: 20px;
    max-width: 460px;
    width: 100%;
    padding: 26px 22px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 2px solid #F4B400;
    position: relative;
}

.ip-blocked-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(244, 180, 0, 0.15);
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
    border: 2px solid #F4B400;
}

.ip-blocked-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.ip-blocked-text {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ip-existing-order-box {
    background: #f4fbf6;
    border: 1px dashed #006C35;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #006C35;
}

/* Print CSS */
@media print {
    body * {
        visibility: hidden !important;
    }
    .invoice-card, .invoice-card * {
        visibility: visible !important;
    }
    .invoice-card {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
    }
    .invoice-actions, .invoice-close-btn {
        display: none !important;
    }
}

/* Footer Admin Access Button */
.btn-footer-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #006C35 0%, #004d25 100%);
    color: #ffffff !important;
    border: 1.5px solid #F4B400;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 108, 53, 0.3), 0 0 10px rgba(244, 180, 0, 0.25);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-footer-admin:hover {
    background: linear-gradient(135deg, #008744 0%, #006C35 100%);
    border-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 108, 53, 0.45), 0 0 15px rgba(244, 180, 0, 0.4);
    transform: translateY(-2px);
    color: #F4B400 !important;
}

.btn-footer-admin i {
    color: #F4B400;
}


