/* Auto-generated from base.html inline <style> block.
   Dynamic bits (store colors, font, RTL shift) are injected via
   CSS custom properties from a small inline block in base.html. */

* {
            font-family: var(--mp-font-family, 'Cairo'), sans-serif;
        }
        
        body {
            background-color: var(--bg-light);
            color: var(--text-dark);
            padding-bottom: 70px;
        }
        
        /* Top Navbar */
        .top-navbar {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            padding: 8px 0;
            font-size: 0.85rem;
        }
        
        .top-navbar a {
            color: rgba(255,255,255,0.9);
            text-decoration: none;
        }
        
        .top-navbar a:hover {
            color: white;
        }
        
        /* Main Navbar */
        .main-navbar {
            background: var(--bg-card, white);
            box-shadow: var(--card-shadow);
            position: sticky;
            top: 0;
            z-index: 1030;
        }
        
        .navbar-brand {
            font-weight: 700;
            font-size: 1.25rem;
            color: var(--secondary-color, white);
        }
        
        .navbar-brand:hover {
            color: var(--secondary-color, white);
        }
        
        .navbar-brand img {
            height: 45px;
            width: 45px;
            object-fit: cover;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
        }
        
        /* Search Bar */
        .search-bar {
            position: relative;
            max-width: 500px;
            width: 100%;
        }
        
        .search-bar input {
            border-radius: 50px;
            padding: 12px 50px 12px 24px;
            border: 2px solid var(--border-color);
            transition: all 0.3s ease;
            font-size: 0.95rem;
        }
        
        .search-bar input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(23, 50, 105, 0.15);
        }
        
        .search-bar button {
            position: absolute;
            inset-inline-end: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary-color);
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            color: white;
            transition: all 0.2s;
        }
        
        .search-bar button:hover {
            background: var(--primary-dark);
            transform: translateY(-50%) scale(1.05);
        }
        
        /* Nav Icons */
        .nav-icon-btn {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 8px 16px;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.75rem;
            transition: all 0.2s;
        }
        
        .nav-icon-btn i {
            font-size: 1.4rem;
            margin-bottom: 2px;
        }
        
        .nav-icon-btn:hover {
            color: var(--primary-color);
        }
        
        .nav-icon-btn .badge {
            position: absolute;
            top: 2px;
            inset-inline-end: 8px;
            font-size: 0.65rem;
            padding: 3px 6px;
            background: var(--danger, #ef4444);
        }
        
        /* Cart Badge */
        .cart-badge {
            position: absolute;
            top: 0;
            inset-inline-end: 5px;
            font-size: 0.65rem;
            padding: 2px 6px;
            background: var(--danger, #ef4444) !important;
            color: var(--text-inverse, white);
            min-width: 18px;
            text-align: center;
        }
        
        /* Wishlist Badge */
        .wishlist-badge {
            position: absolute;
            top: 0;
            inset-inline-end: 5px;
            font-size: 0.65rem;
            padding: 2px 6px;
            background: var(--store-primary, #ef4444) !important;
            color: var(--text-inverse, white);
            min-width: 18px;
            text-align: center;
        }
        
        /* Language Selector */
        .lang-selector {
            display: flex;
            align-items: center;
            gap: 4px;
            background: rgba(255,255,255,0.15);
            border-radius: 20px;
            padding: 4px;
        }
        
        .lang-btn {
            padding: 4px 12px;
            border-radius: 16px;
            border: none;
            font-size: 0.8rem;
            font-weight: 600;
            background: transparent;
            color: rgba(255,255,255,0.8);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .lang-btn.active {
            background: white;
            color: var(--primary-color);
        }
        
        .lang-btn:hover:not(.active) {
            background: rgba(255,255,255,0.2);
            color: white;
        }
        
        /* Product Cards */
        .product-card {
            background: var(--bg-card, white);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
        }
        
        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--card-hover-shadow);
        }
        
        .product-image {
            height: 180px;
            object-fit: contain;
            background: var(--bg-light);
        }
        
        /* Buttons */
        .btn-primary {
            background: var(--primary-color);
            border-color: var(--primary-color);
            border-radius: 10px;
            font-weight: 600;
            padding: 10px 24px;
        }
        
        .btn-primary:hover {
            background: var(--primary-dark);
            border-color: var(--primary-dark);
        }
        
        .btn-outline-primary {
            border-color: var(--primary-color);
            color: var(--primary-color);
            border-radius: 10px;
        }
        
        .btn-outline-primary:hover {
            background: var(--primary-color);
            border-color: var(--primary-color);
        }
        
        /* Cards */
        .card {
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: var(--card-shadow);
        }
        
        .card-header {
            background: transparent;
            border-bottom: 1px solid var(--border-color);
            padding: 16px 20px;
            font-weight: 600;
        }
        
        /* Badges */
        .badge-success {
            background: var(--success-bg, #dcfce7);
            color: var(--success-dark, #166534);
        }
        
        .badge-warning {
            background: var(--warning-bg, #fef3c7);
            color: var(--warning-dark, #92400e);
        }
        
        .badge-danger {
            background: var(--danger-bg, #fee2e2);
            color: var(--danger-dark, #991b1b);
        }
        
        /* Bottom Navigation (Mobile) */
        .bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-card, white);
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            z-index: 1040;
            padding: 8px 0;
        }
        
        .bottom-nav a {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 8px;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.7rem;
        }
        
        .bottom-nav a i {
            font-size: 1.3rem;
            margin-bottom: 2px;
        }
        
        .bottom-nav a.active,
        .bottom-nav a:hover {
            color: var(--primary-color);
        }
        
        @media (max-width: 768px) {
            .bottom-nav {
                display: flex;
            }
            
            .desktop-nav {
                display: none !important;
            }
            
            body {
                padding-bottom: 80px;
            }
        }
        
        /* Footer */
        footer {
            background: var(--text-dark, #1e293b);
            color: var(--text-muted, #94a3b8);
            padding: 40px 0 20px;
        }
        
        footer h5 {
            color: var(--text-inverse, white);
            font-weight: 600;
            margin-bottom: 16px;
        }
        
        footer a {
            color: var(--text-muted, #94a3b8);
            text-decoration: none;
        }
        
        footer a:hover {
            color: var(--primary-color);
        }
        
        /* Toast Notifications */
        .toast-container {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;
        }
        
        .custom-toast {
            background: var(--text-dark);
            color: white;
            padding: 14px 24px;
            border-radius: 12px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideUp 0.3s ease;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            max-width: 90vw;
            text-align: center;
        }
        
        .custom-toast i {
            font-size: 1.2rem;
        }
        
        .custom-toast.success {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }
        
        .custom-toast.error {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        }
        
        .custom-toast.warning {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        }
        
        .custom-toast.info {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        }
        
        @keyframes slideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        /* Unit Badge */
        .unit-badge {
            font-size: 0.7rem;
            background: var(--bg-light);
            color: var(--text-muted);
            padding: 2px 8px;
            border-radius: 4px;
            font-weight: 500;
        }
        
        /* Stock Badge */
        .stock-badge {
            font-size: 0.75rem;
            padding: 4px 10px;
            border-radius: 20px;
        }
        
        .stock-badge.in-stock {
            background: var(--success-bg, #dcfce7);
            color: var(--success-dark, #166534);
        }
        
        .stock-badge.low-stock {
            background: var(--warning-bg, #fef3c7);
            color: var(--warning-dark, #92400e);
        }
        
        .stock-badge.out-of-stock {
            background: var(--danger-bg, #fee2e2);
            color: var(--danger-dark, #991b1b);
        }
        
        /* ===== IMPROVED MOBILE MENU ===== */
        #mobileMenu {
            width: 320px;
            max-width: 85vw;
        }
        
        .mobile-menu-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 20px 24px;
            border: none;
        }
        
        .mobile-menu-header .offcanvas-title {
            font-weight: 700;
            font-size: 1.2rem;
        }
        
        .mobile-menu-body {
            padding: 0;
            display: flex;
            flex-direction: column;
            background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
        }
        
        /* User Profile Section */
        .mobile-user-profile {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 20px 24px;
            background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 8%, white) 0%, white 100%);
            border-bottom: 1px solid var(--border-color);
        }
        
        .mobile-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
        }
        
        .mobile-user-info {
            flex: 1;
        }
        
        .mobile-user-name {
            font-weight: 700;
            font-size: 1.05rem;
            color: var(--text-dark);
            margin-bottom: 2px;
        }
        
        .mobile-user-phone {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        
        /* Language Switch */
        .mobile-lang-switch {
            display: flex;
            gap: 8px;
            padding: 16px 24px;
            background: white;
            border-bottom: 1px solid var(--border-color);
        }
        
        .mobile-lang-switch button {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            background: white;
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.25s ease;
        }
        
        .mobile-lang-switch button.active {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            border-color: var(--primary-color);
            color: white;
            box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
        }
        
        .mobile-lang-switch button:not(.active):hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }
        
        /* Navigation Items */
        .mobile-nav {
            padding: 12px;
        }
        
        .mobile-nav-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            margin-bottom: 4px;
            border-radius: 14px;
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 500;
            font-size: 0.98rem;
            transition: all 0.2s ease;
            background: transparent;
        }
        
        .mobile-nav-item:hover {
            background: color-mix(in srgb, var(--primary-color) 8%, white);
            color: var(--primary-color);
            transform: translateX(var(--nav-shift, 0));
        }
        
        .mobile-nav-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 12%, white) 0%, color-mix(in srgb, var(--primary-color) 6%, white) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-size: 1.2rem;
            transition: all 0.2s ease;
        }
        
        .mobile-nav-item:hover .mobile-nav-icon {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            color: white;
            transform: scale(1.05);
        }
        
        .mobile-nav-item span {
            flex: 1;
        }
        
        .mobile-nav-arrow {
            color: var(--text-muted);
            font-size: 0.85rem;
            opacity: 0;
            transition: all 0.2s ease;
        }
        
        .mobile-nav-item:hover .mobile-nav-arrow {
            opacity: 1;
            color: var(--primary-color);
        }
        
        .mobile-nav-item.logout {
            color: var(--danger, #ef4444);
        }
        
        .mobile-nav-item.logout .mobile-nav-icon {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            color: var(--danger, #ef4444);
        }
        
        .mobile-nav-item.logout:hover {
            background: #fef2f2;
            color: #dc2626;
        }
        
        .mobile-nav-item.logout:hover .mobile-nav-icon {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
        }
        
        /* Contact Section */
        .mobile-contact-section {
            margin: 8px 12px 12px;
            padding: 16px;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 16px;
            border: 1px solid var(--border-color);
        }
        
        .mobile-contact-title {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .mobile-contact-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            margin-bottom: 8px;
            background: white;
            border-radius: 12px;
            text-decoration: none;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        .mobile-contact-item:last-child {
            margin-bottom: 0;
        }
        
        .mobile-contact-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .mobile-contact-icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
        }
        
        .mobile-contact-icon.phone {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            color: #2563eb;
        }
        
        .mobile-contact-icon.whatsapp {
            background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
            color: #16a34a;
        }
        
        .mobile-contact-info {
            flex: 1;
        }
        
        .mobile-contact-label {
            display: block;
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 2px;
        }
        
        .mobile-contact-value {
            display: block;
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-dark);
        }
        
        /* Store Footer */
        .mobile-store-footer {
            margin-top: auto;
            padding: 20px 24px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            font-weight: 600;
        }
        
        .mobile-store-logo {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(255,255,255,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        
        .mobile-store-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .mobile-store-logo i {
            font-size: 1.2rem;
        }
        
        
    