
                :root {
            --primary-navy: #1a237e;
            --primary-blue: #3f51b5;
            --light-blue: #e3f2fd;
            --accent-blue: #2196f3;
            --dark-navy: #0d47a1;
            --dark-blue: #172554;
            --success-green: #4caf50;
            --warning-orange: #ff9800;
            --error-red: #f44336;
            --gradient-primary: linear-gradient(135deg, #1a237e 0%, #3f51b5 100%);
            --gradient-secondary: linear-gradient(135deg, #2196f3 0%, #1a237e 100%);
            --gradient-light: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            --gradient-hero: linear-gradient(135deg, #1a237e 0%, #3f51b5 50%, #2196f3 100%);
            --gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
            --text-dark: #212121;
            --text-light: #757575;
            --text-primary: #1f2937;
            --text-secondary: #6b7280;
            --white: #ffffff;
            --light-gray: #f8fafc;
            --border-color: #e5e7eb;
            --shadow-soft: 0 4px 20px rgba(26, 35, 126, 0.1);
            --shadow-strong: 0 8px 30px rgba(26, 35, 126, 0.2);
            --shadow-hero: 0 20px 60px rgba(26, 35, 126, 0.3);
            --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
            --border-radius: 12px;
            --border-radius-small: 6px;
            --border-radius-lg: 0.75rem;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        [dir="rtl"] {
            font-family: 'Cairo', 'Tajawal', sans-serif;
        }
        [dir="ltr"] {
            font-family: 'Inter', sans-serif;
        }
        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            background: #f8f9fa;
            overflow-x: hidden;
            padding-top: 80px;
        }
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }
        /* Hidden content for multilingual support */
        .content-en, .content-ar {
            display: none;
        }
        [dir="ltr"] .content-en {
            display: contents;
        }
        [dir="rtl"] .content-ar {
            display: contents;
        }
        .hidden {
            display: none;
        }
        /* ===== HEADER & NAVBAR ===== */
        .header {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            box-shadow: var(--shadow-soft);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            padding: 12px 0;
            transition: var(--transition);
        }
        .header.scrolled {
            padding: 8px 0;
            box-shadow: var(--shadow-strong);
        }
        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
            height: 56px;
        }
        .logo {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary-navy);
            text-decoration: none;
            transition: var(--transition);
            gap: 10px;
            flex-shrink: 0;
        }
        .logo:hover {
            color: var(--primary-blue);
            transform: translateY(-1px);
        }
        .logo img {
            width: 80px;
            height: 80px;
            object-fit: contain;
            border-radius: 8px;
        }
        .logo-text {
            display: block;
        }
        .nav-menu {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            list-style: none;
            margin: 0;
        }
        .nav-link {
            color: var(--text-dark);
            text-decoration: none;
            font-weight: 600;
            position: relative;
            transition: var(--transition);
            padding: 8px 12px;
            border-radius: var(--border-radius-small);
            font-size: 0.9rem;
        }
        .nav-link:hover {
            color: var(--primary-blue);
            background: var(--light-blue);
        }
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--gradient-primary);
            transition: var(--transition);
            transform: translateX(-50%);
        }
        .nav-link:hover::after {
            width: 80%;
        }
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
            font-size: 1.1rem;
            position: relative;
            background: transparent;
            color: var(--primary-navy);
        }
        .action-btn:hover {
            background: var(--light-blue);
            color: var(--primary-blue);
            transform: translateY(-1px);
            box-shadow: var(--shadow-soft);
        }
        .icon-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            background: var(--warning-orange);
            color: white;
            padding: 2px 6px;
            border-radius: 50%;
            font-size: 0.7rem;
            font-weight: 700;
            min-width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
        }
        [dir="rtl"] .icon-badge {
            right: auto;
            left: -6px;
        }
        .auth-buttons {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .auth-btn {
            padding: 8px 14px;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
            font-weight: 600;
            font-size: 0.85rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            height: 42px;
        }
        .auth-btn.primary {
            background: var(--gradient-primary);
            color: white;
            box-shadow: var(--shadow-soft);
        }
        .auth-btn.outline {
            background: transparent;
            color: var(--primary-navy);
            border: 2px solid var(--primary-navy);
        }
        .auth-btn:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-strong);
        }
        .auth-btn.outline:hover {
            background: var(--primary-navy);
            color: white;
        }
        .lang-toggle {
            padding: 8px 16px;
            border: 2px solid var(--primary-navy);
            border-radius: var(--border-radius);
            background: transparent;
            color: var(--primary-navy);
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
            height: 42px;
        }
        .lang-toggle:hover {
            background: var(--primary-navy);
            color: white;
            transform: translateY(-1px);
        }
        .user-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            border-radius: var(--border-radius);
            background: transparent;
            color: var(--primary-navy);
            cursor: pointer;
            font-size: 1.2rem;
            transition: var(--transition);
            border: none;
            position: relative;
        }
        .user-icon:hover {
            background: var(--light-blue);
            color: var(--primary-blue);
            transform: translateY(-1px);
            box-shadow: var(--shadow-soft);
        }
        .dropdown {
            position: absolute;
            top: calc(100% + 15px);
            right: 0;
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-strong);
            min-width: 200px;
            z-index: 2000;
            border: 1px solid rgba(0,0,0,0.05);
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: var(--transition);
        }
        .dropdown.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        [dir="rtl"] .dropdown {
            right: auto;
            left: 0;
        }
        .dropdown-item {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            color: var(--text-dark);
            text-decoration: none;
            transition: var(--transition-fast);
            gap: 10px;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
            font-size: 0.9rem;
        }
        .dropdown-item:hover {
            background: var(--light-blue);
        }
        .cart-dropdown, .wishlist-dropdown {
            position: absolute;
            top: calc(100% + 15px);
            right: 0;
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-strong);
            min-width: 350px;
            max-width: 400px;
            z-index: 2000;
            border: 1px solid rgba(0,0,0,0.05);
            max-height: 500px;
            overflow-y: auto;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: var(--transition);
        }
        .cart-dropdown.show, .wishlist-dropdown.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        [dir="rtl"] .cart-dropdown, [dir="rtl"] .wishlist-dropdown {
            right: auto;
            left: 0;
        }
        .dropdown-header {
            padding: 1.5rem;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .dropdown-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--primary-navy);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .dropdown-empty {
            padding: 3rem 2rem;
            text-align: center;
            color: var(--text-light);
        }
        .dropdown-empty i {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }
        .dropdown-items {
            padding: 0;
        }
        .dropdown-item-card {
            display: flex;
            align-items: center;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid #f0f0f0;
            gap: 1rem;
            transition: var(--transition-fast);
            cursor: pointer;
        }
        .dropdown-item-card:hover {
            background: #f8f9fa;
        }
        .dropdown-item-card:last-child {
            border-bottom: none;
        }
        .item-image {
            width: 50px;
            height: 50px;
            border-radius: var(--border-radius-small);
            background: var(--light-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
        }
        .item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--border-radius-small);
        }
        .item-details {
            flex: 1;
            min-width: 0;
        }
        .item-name {
            font-weight: 600;
            color: var(--text-dark);
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .item-price {
            color: var(--accent-blue);
            font-weight: 700;
            font-size: 0.85rem;
        }
        .item-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .quantity-input {
            width: 50px;
            padding: 4px 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            text-align: center;
            font-size: 0.85rem;
        }
        .remove-btn {
            background: var(--error-red);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 6px 8px;
            cursor: pointer;
            font-size: 0.75rem;
            transition: var(--transition-fast);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .remove-btn:hover {
            background: #d32f2f;
            transform: translateY(-1px);
        }
        .dropdown-total {
            padding: 1rem 1.5rem;
            border-top: 2px solid #f0f0f0;
            background: #f8f9fa;
        }
        .total-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--primary-navy);
        }
        .dropdown-actions {
            padding: 1rem 1.5rem;
            display: flex;
            gap: 0.5rem;
        }
        .btn-action {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: var(--border-radius-small);
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 0.85rem;
        }
        .btn-view {
            background: var(--gradient-primary);
            color: white;
        }
        .btn-checkout {
            background: var(--success-green);
            color: white;
        }
        .btn-action:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-soft);
        }
        /* Search Overlay */
        .search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(26, 35, 126, 0.8);
            backdrop-filter: blur(10px);
            z-index: 2000;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 100px;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }
        .search-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        .search-container {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-strong);
            max-width: 600px;
            width: 90%;
            padding: 2rem;
            transform: translateY(-30px);
            transition: var(--transition);
        }
        .search-overlay.show .search-container {
            transform: translateY(0);
        }
        .search-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        .search-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary-navy);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .search-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-light);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: var(--transition-fast);
        }
        .search-close:hover {
            background: var(--light-blue);
            color: var(--primary-blue);
        }
        .search-input-container {
            position: relative;
            margin-bottom: 1rem;
        }
        .search-input {
            width: 100%;
            padding: 16px 50px 16px 20px;
            border: 2px solid #e0e0e0;
            border-radius: var(--border-radius);
            font-size: 1rem;
            transition: var(--transition);
            background: #fafafa;
        }
        [dir="rtl"] .search-input {
            padding: 16px 20px 16px 50px;
        }
        .search-input:focus {
            outline: none;
            border-color: var(--primary-blue);
            background: white;
            box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
        }
        .search-btn {
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            background: var(--gradient-primary);
            border: none;
            border-radius: var(--border-radius-small);
            color: white;
            padding: 8px 12px;
            cursor: pointer;
            transition: var(--transition);
        }
        [dir="rtl"] .search-btn {
            right: auto;
            left: 15px;
        }
        .search-btn:hover {
            background: var(--gradient-secondary);
        }
        .search-suggestions-enhanced {
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

.suggestions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-navy);
}

.suggestions-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.suggestions-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.suggestions-list::-webkit-scrollbar {
    width: 6px;
}

.suggestions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.suggestions-list::-webkit-scrollbar-thumb {
    background: var(--primary-navy);
    border-radius: 3px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: #f9fafb;
    border-color: var(--primary-navy);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.1);
}

[dir="rtl"] .suggestion-item:hover {
    transform: translateX(4px);
}

.suggestion-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-image .placeholder-icon {
    font-size: 1.5rem;
    color: var(--primary-navy);
    opacity: 0.4;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-category {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.suggestion-category i {
    font-size: 0.75rem;
}

.suggestion-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.price-sale {
    color: var(--success-green);
    font-size: 1rem;
}

.price-original {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: line-through;
}

.price-current {
    color: var(--primary-navy);
    font-size: 1rem;
}

.suggestion-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-navy);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.suggestion-item:hover .suggestion-arrow {
    transform: translateX(4px);
}

[dir="rtl"] .suggestion-item:hover .suggestion-arrow {
    transform: translateX(-4px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .suggestion-item {
        gap: 12px;
        padding: 10px;
    }
    .suggestion-image {
        width: 50px;
        height: 50px;
    }
    .suggestion-name {
        font-size: 0.9rem;
    }
    .suggestion-category {
        font-size: 0.8rem;
    }
    .suggestion-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}
        .search-results {
            max-height: 400px;
            overflow-y: auto;
        }
        .search-product-list {
            max-height: 320px;
            overflow-y: auto;
        }
        .search-product-item {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: var(--transition-fast);
            gap: 12px;
        }
        .search-product-item:hover {
            background: var(--light-blue);
        }
        .search-product-item:last-child {
            border-bottom: none;
        }
        .search-product-item .product-image {
            width: 50px;
            height: 50px;
            border-radius: var(--border-radius-small);
            background: var(--light-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
        }
        .search-product-item .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--border-radius-small);
        }
        .search-product-item .product-info {
            flex: 1;
            min-width: 0;
        }
        .search-product-item .product-name {
            font-weight: 600;
            color: var(--text-dark);
            font-size: 0.9rem;
            margin: 0 0 4px 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .search-product-item .product-category {
            color: var(--text-light);
            font-size: 0.8rem;
            margin: 0 0 4px 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .search-product-item .product-price {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }
        .search-product-item .sale-price {
            color: var(--accent-blue);
            font-weight: 700;
            font-size: 0.85rem;
        }
        .search-product-item .original-price {
            color: var(--text-light);
            font-size: 0.8rem;
            text-decoration: line-through;
        }
        .search-product-item .current-price {
            color: var(--accent-blue);
            font-weight: 700;
            font-size: 0.85rem;
        }
        .view-all-results {
            padding: 16px;
            border-top: 1px solid #f0f0f0;
            background: #f8f9fa;
            text-align: center;
        }
        .btn-view-all {
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            padding: 12px 24px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9rem;
            transition: var(--transition);
            width: 100%;
        }
        .btn-view-all:hover {
            background: var(--gradient-secondary);
            transform: translateY(-1px);
            box-shadow: var(--shadow-soft);
        }
        .loading-spinner {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 2rem;
            color: var(--text-light);
        }
        .spinner {
            width: 32px;
            height: 32px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid var(--primary-blue);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        /* Mobile Menu */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: white;
            z-index: 2500;
            display: flex;
            flex-direction: column;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            transform: translateX(-100%);
            color: var(--text-dark);
        }
        .mobile-menu-overlay.show {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }
        [dir="rtl"] .mobile-menu-overlay {
            transform: translateX(100%);
        }
        [dir="rtl"] .mobile-menu-overlay.show {
            transform: translateX(0);
        }
        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #f0f0f0;
            background: #f8f9fa;
        }
        .mobile-menu-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--primary-navy);
            font-size: 1.2rem;
            font-weight: 700;
        }
        .mobile-menu-logo img {
            width: 40px;
            height: 40px;
            border-radius: 6px;
        }
        .mobile-menu-close {
            background: var(--light-blue);
            border: none;
            color: var(--primary-navy);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: var(--transition-fast);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .mobile-menu-close:hover {
            background: var(--primary-blue);
            color: white;
        }
        .mobile-menu-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            padding: 20px 0;
        }
        .mobile-nav-section {
            padding: 0;
        }
        .mobile-nav-link {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 20px;
            color: var(--text-dark);
            text-decoration: none;
            transition: var(--transition-fast);
            font-size: 1rem;
            font-weight: 500;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
        }
        .mobile-nav-link:hover {
            background: var(--light-blue);
            color: var(--primary-blue);
        }
        .mobile-nav-link i {
            width: 20px;
            text-align: center;
            font-size: 1.1rem;
            color: var(--primary-navy);
        }
        .mobile-user-action {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 10px 20px;
            color: var(--text-dark);
            text-decoration: none;
            border-bottom: 1px solid #f0f0f0;
            transition: var(--transition-fast);
            font-size: 0.95rem;
            font-weight: 500;
            background: none;
            border-left: none;
            border-right: none;
            border-top: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
        }
        .mobile-user-action:hover {
            color: var(--primary-blue);
        }
        .mobile-user-action.danger {
            color: var(--error-red);
        }
        .mobile-user-action.danger:hover {
            color: #d32f2f;
        }
        .mobile-auth-section {
            margin-top: auto;
            padding: 20px;
            border-top: 1px solid #f0f0f0;
            background: #f8f9fa;
        }
        .mobile-auth-message {
            text-align: center;
            color: var(--text-light);
            margin-bottom: 20px;
            font-size: 0.9rem;
        }
        .mobile-auth-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .mobile-auth-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px 20px;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            transition: var(--transition);
        }
        .mobile-auth-btn.primary {
            background: var(--gradient-primary);
            color: white;
            box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
        }
        .mobile-auth-btn.outline {
            background: transparent;
            color: var(--primary-navy);
            border: 2px solid var(--primary-navy);
        }
        .mobile-auth-btn:hover {
            transform: translateY(-1px);
        }
        .mobile-auth-btn.outline:hover {
            background: var(--primary-navy);
            color: white;
        }
        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.3rem;
            color: var(--primary-navy);
            cursor: pointer;
            width: 42px;
            height: 42px;
            border-radius: var(--border-radius);
            transition: var(--transition);
        }
        .mobile-menu-toggle:hover {
            background: var(--light-blue);
            color: var(--primary-blue);
        }
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 0;
            background: transparent;
        }
        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--success-green);
            color: white;
            padding: 15px 20px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-strong);
            transform: translateX(400px);
            transition: var(--transition);
            z-index: 3000;
            display: flex;
            align-items: center;
            gap: 10px;
            max-width: 300px;
        }
        [dir="rtl"] .toast {
            right: auto;
            left: 20px;
            transform: translateX(-400px);
        }
        .toast.show {
            transform: translateX(0);
        }
        .toast.error {
            background: var(--error-red);
        }
        /* ===== Wishlist Header ===== */
        .wishlist-header {
            background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
            color: white;
            padding: 3rem 0;
            margin-bottom: 3rem;
        }
        .wishlist-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
        }
        .wishlist-subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
        }
        /* Wishlist Grid */
        .wishlist-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 3rem;
        }
        .wishlist-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow-soft);
            transition: var(--transition);
            position: relative;
        }
        .wishlist-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(26, 35, 126, 0.2);
        }
        .product-image-container {
            position: relative;
            width: 100%;
            height: 220px;
            overflow: hidden;
            background: #f5f5f5;
            cursor: pointer;
        }
        .product-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        .wishlist-card:hover .product-image-container img {
            transform: scale(1.05);
        }
        .product-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: var(--error-red);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            z-index: 2;
        }
        [dir="rtl"] .product-badge {
            left: auto;
            right: 12px;
        }
        .remove-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.95);
            border: none;
            color: var(--error-red);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3;
        }
        [dir="rtl"] .remove-btn {
            right: auto;
            left: 12px;
        }
        .remove-btn:hover {
            background: var(--error-red);
            color: white;
            transform: scale(1.1);
        }
        .product-info {
            padding: 1.5rem;
        }
        .product-name {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            cursor: pointer;
        }
        .product-name:hover {
            color: var(--primary-blue);
        }
        .product-category {
            font-size: 0.9rem;
            color: var(--text-light);
            margin-bottom: 0.75rem;
        }
        .product-price {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        .current-price {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-blue);
        }
        .original-price {
            font-size: 1rem;
            color: var(--text-light);
            text-decoration: line-through;
        }
        .stock-status {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }
        .stock-status.in-stock {
            color: var(--success-green);
        }
        .stock-status.out-of-stock {
            color: var(--error-red);
        }
        .card-actions {
            display: flex;
            gap: 0.75rem;
        }
        .btn-add-cart, .btn-view-product {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .btn-add-cart {
            background: var(--gradient-primary);
            color: white;
        }
        .btn-add-cart:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(63, 81, 181, 0.4);
        }
        .btn-add-cart:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .btn-view-product {
            background: transparent;
            color: var(--primary-blue);
            border: 2px solid var(--primary-blue);
        }
        .btn-view-product:hover {
            background: var(--primary-blue);
            color: white;
        }
        /* Empty State */
        .empty-wishlist {
            text-align: center;
            padding: 4rem 2rem;
            background: white;
            border-radius: 12px;
            box-shadow: var(--shadow-soft);
        }
        .empty-wishlist i {
            font-size: 5rem;
            color: var(--text-light);
            margin-bottom: 1.5rem;
            opacity: 0.5;
        }
        .empty-wishlist h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: var(--text-dark);
        }
        .empty-wishlist p {
            color: var(--text-light);
            margin-bottom: 2rem;
        }
        .btn-browse {
            background: var(--gradient-primary);
            color: white;
            padding: 14px 32px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            display: inline-block;
        }
        .btn-browse:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(63, 81, 181, 0.4);
            color: white;
        }
        /* Bulk Actions */
        .bulk-actions {
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: var(--shadow-soft);
            margin-bottom: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        .items-count {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-dark);
        }
        .action-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }
        .btn-bulk {
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .btn-move-all {
            background: var(--success-green);
            color: white;
        }
        .btn-clear-all {
            background: var(--error-red);
            color: white;
        }
        .btn-bulk:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }
        /* Loading */
        .loading-spinner {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 4rem;
        }
        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid var(--primary-blue);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        /* Toast */
        .toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 9999;
        }
        [dir="rtl"] .toast-container {
            right: auto;
            left: 20px;
        }
        .toast {
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            padding: 1rem 1.5rem;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 300px;
            animation: slideIn 0.3s ease;
        }
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        @keyframes slideInRtl {
            from {
                transform: translateX(-100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        .toast {
            animation: slideIn 0.3s ease;
        }
        [dir="rtl"] .toast {
            animation: slideInRtl 0.3s ease;
        }
        .toast.success {
            border-left: 4px solid var(--success-green);
        }
        .toast.error {
            border-left: 4px solid var(--error-red);
        }
        [dir="rtl"] .toast.success {
            border-left: none;
            border-right: 4px solid var(--success-green);
        }
        [dir="rtl"] .toast.error {
            border-left: none;
            border-right: 4px solid var(--error-red);
        }
        .toast i {
            font-size: 1.5rem;
        }
        .toast.success i {
            color: var(--success-green);
        }
        .toast.error i {
            color: var(--error-red);
        }
        /* Responsive */
        @media (max-width: 768px) {
            body {
                padding-top: 70px;
            }
            .wishlist-header {
                padding: 2rem 0;
            }
            .wishlist-title {
                font-size: 2rem;
            }
            .wishlist-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 1rem;
            }
            .bulk-actions {
                flex-direction: column;
                align-items: stretch;
            }
            .action-buttons {
                width: 100%;
            }
            .btn-bulk {
                flex: 1;
            }
            .toast-container {
                right: 10px;
                left: 10px;
            }
            .toast {
                min-width: auto;
            }
        }
        @media (max-width: 480px) {
            .wishlist-grid {
                grid-template-columns: 1fr;
            }
            .card-actions {
                flex-direction: column;
            }
        }
        /* Back to Top Button */
        .back-to-top-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            box-shadow: var(--shadow-strong);
            transition: var(--transition);
            z-index: 1500;
            opacity: 0;
            visibility: hidden;
            transform: translateY(100px);
        }
        [dir="rtl"] .back-to-top-btn {
            right: auto;
            left: 30px;
        }
        .back-to-top-btn.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .back-to-top-btn:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hero);
        }
        .back-to-top-btn:active {
            transform: translateY(-2px);
        }
        /* Animation effect */
        .back-to-top-btn i {
            animation: bounceUpDown 2s ease-in-out infinite;
        }
        @keyframes bounceUpDown {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-5px);
            }
        }
        .back-to-top-btn:hover i {
            animation: none;
        }
        /* Mobile responsive for back to top */
        @media (max-width: 768px) {
            .back-to-top-btn {
                width: 45px;
                height: 45px;
                bottom: 20px;
                right: 20px;
                font-size: 1.1rem;
            }
           
            [dir="rtl"] .back-to-top-btn {
                right: auto;
                left: 20px;
            }
        }
        @media (max-width: 480px) {
            .back-to-top-btn {
                width: 40px;
                height: 40px;
                bottom: 15px;
                right: 15px;
                font-size: 1rem;
            }
           
            [dir="rtl"] .back-to-top-btn {
                right: auto;
                left: 15px;
            }
        }
        /* Animation Classes */
        .fade-in-up {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .fade-in-left {
            opacity: 0;
            transform: translateX(-30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .fade-in-right {
            opacity: 0;
            transform: translateX(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .scale-in {
            opacity: 0;
            transform: scale(0.9);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        /* Active state when element is visible */
        .fade-in-up.visible,
        .fade-in-left.visible,
        .fade-in-right.visible,
        .scale-in.visible {
            opacity: 1;
            transform: translateY(0) translateX(0) scale(1);
        }
        /* Stagger animations for children */
        .stagger-animation > * {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }
        .stagger-animation.visible > *:nth-child(1) { transition-delay: 0.1s; }
        .stagger-animation.visible > *:nth-child(2) { transition-delay: 0.2s; }
        .stagger-animation.visible > *:nth-child(3) { transition-delay: 0.3s; }
        .stagger-animation.visible > *:nth-child(4) { transition-delay: 0.4s; }
        .stagger-animation.visible > *:nth-child(5) { transition-delay: 0.5s; }
        .stagger-animation.visible > *:nth-child(6) { transition-delay: 0.6s; }
        .stagger-animation.visible > * {
            opacity: 1;
            transform: translateY(0);
        }
        /* Responsive for header */
        @media (max-width: 1200px) {
            .header-content {
                gap: 0.75rem;
                padding: 0 10px;
            }
            .nav-menu {
                gap: 1rem;
            }
            .nav-link {
                font-size: 0.85rem;
                padding: 6px 10px;
            }
            .nav-actions {
                gap: 6px;
            }
            .action-btn {
                width: 38px;
                height: 38px;
            }
            .lang-toggle {
                padding: 6px 12px;
                font-size: 0.8rem;
            }
            .auth-btn {
                padding: 6px 12px;
                font-size: 0.8rem;
            }
        }
        @media (max-width: 1024px) {
            .contact-grid {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
        }
        @media (max-width: 768px) {
            body {
                padding-top: 70px;
            }
            .container {
                padding: 0 10px;
            }
            .header {
                padding: 8px 0;
            }
            .header-content {
                height: auto;
                min-height: 56px;
                gap: 0.5rem;
                align-items: center;
                flex-wrap: nowrap;
            }
            .logo {
                font-size: 1.3rem;
            }
            .logo img {
                width: 80px;
                height: 80px;
            }
            .logo-text {
                display: none;
            }
            .nav-menu {
                display: none;
            }
            .mobile-menu-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 38px;
                height: 38px;
                font-size: 1.2rem;
            }
            .nav-actions {
                flex: 1;
                justify-content: flex-end;
                gap: 4px;
                align-items: center;
            }
            .auth-buttons {
                display: none;
            }
            .action-btn {
                width: 36px;
                height: 36px;
                font-size: 1rem;
            }
            .lang-toggle {
                display: flex;
                width: 55px;
                height: 36px;
                padding: 0;
                font-size: 0.9rem;
                justify-content: center;
            }
            .lang-toggle span {
                display: none;
            }
            .lang-toggle i {
                display: block;
            }
            .user-icon {
                display: flex;
                width: 36px;
                height: 36px;
                font-size: 1rem;
            }
            .cart-dropdown, .wishlist-dropdown {
                position: fixed;
                top: 70px;
                left: 10px;
                right: 10px;
                width: auto;
                max-width: calc(100% - 20px);
                min-width: 0;
                transform: translateY(0);
                max-height: calc(100vh - 80px);
                overflow-y: auto;
            }
            .search-container {
                width: calc(100% - 20px);
                max-width: 500px;
                padding: 1rem;
            }
            .search-input {
                padding: 12px 40px 12px 15px;
                font-size: 0.9rem;
            }
            .search-btn {
                right: 10px;
                padding: 6px 10px;
            }
            [dir="rtl"] .search-btn {
                left: 10px;
            }
            .toast {
                right: 16px;
                bottom: 16px;
                left: 16px;
                transform: translateY(100%);
            }
            .toast.show {
                transform: translateY(0);
            }
        }
        @media (max-width: 480px) {
            .header {
                padding: 6px 0;
            }
            .header-content {
                gap: 0.25rem;
                padding: 0 5px;
            }
            .logo {
                font-size: 1.1rem;
            }
            .logo img {
                width: 80px;
                height: 80px;
            }
            .mobile-menu-toggle {
                width: 34px;
                height: 34px;
                font-size: 1.1rem;
                order: -1;
            }
            .action-btn {
                width: 32px;
                height: 32px;
                font-size: 0.9rem;
            }
            .lang-toggle {
                width: 55px;
                height: 32px;
                font-size: 0.8rem;
            }
            .container {
                padding: 0 0.75rem;
            }
            .cart-dropdown, .wishlist-dropdown {
                top: 60px;
                max-height: calc(100vh - 70px);
            }
            .search-container {
                padding: 0.75rem;
            }
            .search-input {
                padding: 10px 35px 10px 12px;
                font-size: 0.85rem;
            }
            .search-btn {
                padding: 5px 8px;
                font-size: 0.8rem;
            }
        }
        @media (max-width: 360px) {
            .logo {
                font-size: 1rem;
            }
            .logo img {
                width: 60px;
                height: 60px;
            }
            .mobile-menu-toggle {
                width: 30px;
                height: 30px;
                font-size: 1rem;
            }
            .action-btn {
                width: 30px;
                height: 30px;
                font-size: 0.85rem;
            }
            .lang-toggle {
                width: 55px;
                height: 30px;
                font-size: 0.75rem;
            }
        }
