/* ============================================
   متجر إلكتروني احترافي - ملف CSS الرئيسي
   Professional E-Commerce Store - Main CSS
   ============================================ */

/* استيراد الخطوط العربية الاحترافية - نفس خط streamy */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;600;700;800;900&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* تطبيق الخط على جميع العناصر */
/* تطبيق الخط على العناصر الأساسية */
html,
body,
div,
span,
p,
a,
h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
textarea,
select,
label,
table,
th,
td,
tr,
ul,
li,
ol,
section,
article,
header,
footer,
nav,
main,
.btn,
.card,
.badge,
.alert,
.main-nav a,
.btn-primary,
.btn-secondary,
.btn-link,
.cart-link,
.user-name,
.cart-text {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
}

img:hover {
    transform: scale(1.02);
}

/* Product Images Special Style */
.product-image img,
.category-image img {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.product-image:hover img,
.category-image:hover img {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

:root {
    /* Brand Colors - تصميم موحد احترافي */
    --logo-blue: #0066cc;
    --logo-orange: #ff6b35;

    /* Modern Color Palette - نظام ألوان موحد */
    --primary: #0066cc;
    /* أزرق احترافي */
    --primary-dark: #004a99;
    /* أزرق داكن */
    --primary-light: #e6f0ff;
    /* أزرق فاتح */
    --secondary: #ff6b35;
    /* برتقالي */
    --secondary-dark: #cc5620;
    /* برتقالي داكن */
    --accent: #ffc107;
    /* ذهبي للعملة */

    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #0066cc;

    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    --gradient-purple: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    --gradient-dark: linear-gradient(135deg, #111827 0%, #374151 100%);

    /* Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-white: #ffffff;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #1a1a2e;
    --bg-light: #f1f5f9;
    --bg-purple-light: #e6f0ff;

    /* Borders */
    --border-color: #e2e8f0;
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --border-radius-lg: 28px;

    /* Premium Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 102, 204, 0.1), 0 1px 2px -1px rgba(0, 102, 204, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 102, 204, 0.1), 0 2px 4px -2px rgba(0, 102, 204, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 102, 204, 0.15), 0 4px 6px -4px rgba(0, 102, 204, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 102, 204, 0.15), 0 8px 10px -6px rgba(0, 102, 204, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 102, 204, 0.2);
    --shadow-colored: 0 10px 40px -10px rgba(0, 102, 204, 0.4);
    --shadow-purple: 0 10px 40px -10px rgba(0, 102, 204, 0.5);

    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
}

html {
    scroll-behavior: smooth;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
}

body {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.1px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
}


h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-weight: 400;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   HEADER STYLES - Modern & Professional
   ============================================ */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #FFE66D;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    gap: 2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

/* Updated Navigation */
.main-nav {
    padding: 0;
}

.main-nav ul {
    gap: 0.5rem;
}

.main-nav a {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    color: var(--secondary);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(232, 106, 51, 0.1);
}

.main-nav a::before {
    background: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    margin-left: 1rem;
}

.mobile-menu-btn:hover {
    background: var(--bg-secondary);
}

/* Mobile Sidebar */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-overlay:not(.active) {
    pointer-events: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

/* Ensure form elements are always on top */
form,
.auth-container,
.auth-page,
input,
textarea,
select,
button {
    position: relative;
    z-index: 100 !important;
}

/* Ensure overlay doesn't block when inactive */
body:not(.menu-open) .mobile-menu-overlay {
    pointer-events: none !important;
    display: none !important;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-sidebar-header {
    padding: 1.5rem;
    padding-top: 5.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.mobile-logo img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.mobile-logo-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
}

.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
}

.mobile-nav a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    padding-right: 2rem;
}

.mobile-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mobile-user-info {
    margin-bottom: 1rem;
}

.mobile-user-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.mobile-user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    border: none;
    cursor: pointer;
    width: 100%;
}

.mobile-btn-link {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.mobile-btn-link:hover {
    background: var(--primary);
    color: white;
}

.mobile-btn-primary {
    background: var(--primary);
    color: white;
}

.mobile-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.mobile-btn-cart {
    background: var(--logo-blue);
    color: white;
    justify-content: space-between;
}

.mobile-btn-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.mobile-cart-count {
    background: var(--logo-orange);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    font-size: 0.85rem;
    min-width: 24px;
    text-align: center;
}

/* Professional Simple Buttons */
.btn-primary,
.btn-secondary,
.cart-link {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
    font-weight: 600;
    letter-spacing: 0;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary:active,
.btn-secondary:active,
.cart-link:active {
    transform: translateY(1px);
}

.cart-link {
    background: var(--logo-blue) !important;
    color: white !important;
    box-shadow: 0 4px 6px rgba(14, 41, 84, 0.2);
    min-width: 120px;
    justify-content: space-between;
}

.cart-link:hover {
    background: var(--logo-orange) !important;
    box-shadow: 0 6px 12px rgba(232, 106, 51, 0.3);
}

.cart-text {
    margin-left: 10px;
}

.cart-link .cart-count {
    background: var(--secondary);
    color: var(--text-white);
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    line-height: 1;
    border-radius: 50%;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.4);
}

.btn-link {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
    background: transparent;
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--primary);
    background: rgba(232, 106, 51, 0.05);
}

/* Social Icons Fix */
.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    width: 100%;
    margin-top: 1rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-btn i {
    line-height: 1;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-btn.facebook {
    background-color: #1877f2;
    border-color: #1877f2;
}

.social-btn.facebook:hover {
    background-color: #166fe5;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.social-btn.instagram:hover {
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

.social-btn.whatsapp {
    background-color: #25d366;
    border-color: #25d366;
}

.social-btn.whatsapp:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.contact-item-footer:hover {
    color: white;
    transform: translateX(-5px);
}

.contact-item-footer i {
    color: var(--logo-blue);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-item-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item-footer a:hover {
    color: var(--logo-orange);
}

.contact-item-footer span {
    color: rgba(255, 255, 255, 0.9);
}

.support-badge {
    background: var(--logo-orange);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    display: inline-block;
}

.logo a {
    display: inline-block;
    transition: var(--transition-base);
}

.logo a:hover {
    transform: translateY(-2px);
}

.logo h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.03em;
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-link {
    color: var(--text-primary);
    padding: 0.625rem 1.125rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
    font-weight: 700;
    font-size: 0.9375rem;
    position: relative;
    overflow: hidden;
}

.btn-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 107, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition-base);
    z-index: -1;
    border-radius: var(--border-radius-sm);
}

.btn-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-link:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.625rem 1.125rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(255, 107, 53, 0.08) 100%);
    border-radius: var(--border-radius-sm);
    font-size: 0.9375rem;
    border: 2px solid var(--primary);
    white-space: nowrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 102, 204, 0.08);
    color: var(--primary);
    font-size: 1rem;
    transition: var(--transition-base);
    border: 1px solid rgba(0, 102, 204, 0.15);
    text-decoration: none;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
    border-color: var(--primary);
}

.btn-icon[title="طلباتي"] {
    background: rgba(0, 102, 204, 0.1);
    color: var(--logo-blue);
    border-color: rgba(0, 102, 204, 0.2);
}

.btn-icon[title="طلباتي"]:hover {
    background: var(--logo-blue);
    color: white;
    border-color: var(--logo-blue);
}

.btn-icon[title="تسجيل الخروج"] {
    background: rgba(255, 107, 53, 0.1);
    color: var(--logo-orange);
    border-color: rgba(255, 107, 53, 0.2);
}

.btn-icon[title="تسجيل الخروج"]:hover {
    background: var(--logo-orange);
    color: white;
    border-color: var(--logo-orange);
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.9375rem;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    transition: var(--transition-base);
    overflow: hidden;
}

.cart-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cart-link:hover::before {
    width: 300px;
    height: 300px;
}

.cart-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.cart-icon {
    font-size: 1.375rem;
    position: relative;
    z-index: 1;
}

.cart-count {
    background: var(--secondary);
    color: var(--text-white);
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 24px;
    min-height: 24px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.4);
    line-height: 1;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* Navigation - Modern Style */
.main-nav {
    padding: 0.875rem 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.625rem 1.125rem;
    position: relative;
    transition: var(--transition-base);
    border-radius: var(--border-radius-sm);
    display: block;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0.375rem;
    right: 1.125rem;
    left: 1.125rem;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: var(--transition-base);
}

.main-nav a:hover {
    color: var(--primary);
    background: rgba(255, 107, 107, 0.1);
}

.main-nav a:hover::before {
    transform: scaleX(1);
}

/* ============================================
   BUTTONS - Premium Design
   ============================================ */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 1rem 2.25rem;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-white);
    border: none;
    padding: 1rem 2.25rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #44B0BA 0%, #3A9FA0 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(78, 205, 196, 0.4);
}

/* Button Sizes */
.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1.25rem 2.75rem;
    font-size: 1.125rem;
}

.btn-extra-large {
    padding: 1.5rem 3.5rem;
    font-size: 1.25rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    padding: 0.875rem 1.875rem;
}

.btn-icon svg,
.btn-icon i {
    width: 1.25rem;
    height: 1.25rem;
}

/* ============================================
   ALERTS - Modern Design
   ============================================ */
.alert {
    padding: 1.125rem 1.5rem;
    margin: var(--spacing-md) 0;
    border-radius: var(--border-radius-sm);
    border-right: 4px solid;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: var(--success);
    color: #065f46;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: var(--danger);
    color: #991b1b;
}

.alert ul {
    margin: var(--spacing-xs) 0 0 var(--spacing-md);
}

/* ============================================
   HERO SECTION - Premium Design
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    position: relative;
    overflow: hidden;
    min-height: 750px;
    display: flex;
    align-items: center;
    color: white;
    padding: 4rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: white;
    top: -200px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: white;
    bottom: -150px;
    left: -100px;
    animation: float 25s infinite ease-in-out reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: white;
    top: 50%;
    left: 50%;
    animation: float 22s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: right;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    font-size: 1.8rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
    animation: slideInDown 0.8s ease;
}

.title-highlight {
    display: block;
    background: linear-gradient(180deg, white 0%, #FFE66D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.98;
    line-height: 1.8;
    animation: slideInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.6s both;
    flex-wrap: wrap;
}

.btn-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: slideInUp 0.8s ease 0.8s both;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 1.5rem;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    letter-spacing: -0.02em;
}

.title-decoration {
    width: 90px;
    height: 6px;
    background: var(--gradient-purple);
    border-radius: 10px;
    animation: expandWidth 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 90px;
        opacity: 1;
    }
}

.section-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.375rem);
    color: var(--text-light);
    margin-top: var(--spacing-xs);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.section-footer {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3.25rem;
    background: var(--gradient-purple);
    color: var(--text-white);
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.125rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-purple);
}

.btn-view-all:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px -10px rgba(139, 92, 246, 0.6);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.featured-products {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-lg) 0;
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: var(--bg-light);
}

.product-card:hover .product-image img {
    transform: scale(1.12) rotate(1deg);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.92), rgba(139, 92, 246, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-product {
    color: var(--text-white);
    font-weight: 800;
    font-size: 1.125rem;
    padding: 1.125rem 2.25rem;
    background: var(--text-white);
    color: var(--primary);
    border-radius: 50px;
    box-shadow: var(--shadow-xl);
    transform: translateY(25px);
    transition: var(--transition-base);
}

.product-card:hover .view-product {
    transform: translateY(0);
}

.sale-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-secondary);
    color: var(--text-white);
    padding: 0.875rem 1.375rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    animation: bounceIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes bounceIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.15) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.badge-text {
    font-size: 0.75rem;
    opacity: 0.95;
    font-weight: 700;
}

.badge-percent {
    font-size: 1.25rem;
    font-weight: 900;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.375rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-name.expanded {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
    flex-wrap: wrap;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.0625rem;
    font-weight: 500;
}

.current-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.current-price::before {
    content: '₪';
    margin-right: 0.25rem;
    font-size: 1.5rem;
}

.btn-add-cart {
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
    padding: 1.25rem;
    background: var(--gradient-purple);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 800;
    font-size: 1.0625rem;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-purple);
    font-family: 'Tajawal', sans-serif;
}

.btn-add-cart:hover {
    background: var(--gradient-secondary);
    transform: translateY(-4px);
    box-shadow: 0 15px 50px -10px rgba(236, 72, 153, 0.6);
}

.btn-add-cart:active {
    transform: translateY(-2px);
}

.cart-icon {
    font-size: 1.5rem;
}

.cart-text {
    font-size: 1.0625rem;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.category-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.category-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--gradient-purple);
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.category-card:hover .category-image-wrapper img {
    transform: scale(1.25) rotate(-3deg);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-purple);
}

.category-icon {
    font-size: 5.5rem;
    color: var(--text-white);
    font-weight: 900;
    opacity: 0.95;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-arrow {
    color: var(--text-white);
    font-size: 3.5rem;
    font-weight: 900;
    animation: bounceRight 1.2s infinite;
}

@keyframes bounceRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-12px);
    }
}

.category-name {
    padding: 1.5rem;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.category-card:hover .category-name {
    color: var(--primary);
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-choose-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--bg-primary);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(99, 102, 241, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-purple);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-purple);
    transition: var(--transition-base);
    animation: pulse-strong 2s ease-in-out infinite;
}

.feature-card:hover .feature-icon-wrapper {
    transform: rotateY(360deg) scale(1.15);
    background: var(--gradient-secondary);
}

.feature-icon-large {
    font-size: 3.25rem;
}

.feature-card h3 {
    font-size: 1.625rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 800;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin: 0;
    line-height: 1.75;
    font-weight: 400;
}

/* ============================================
   AUTH PAGES - Premium Design
   ============================================ */
.auth-container {
    max-width: 520px;
    margin: var(--spacing-3xl) auto;
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-2xl);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.page-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    margin-bottom: var(--spacing-xl);
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.auth-form {
    margin-top: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
    transition: var(--transition-base);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-user-select: text;
    user-select: text;
    min-height: 3.5rem;
    line-height: 1.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 5rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.form-group small {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-link {
    text-align: center;
    margin-top: var(--spacing-lg);
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-link a {
    color: var(--primary);
    font-weight: 700;
    transition: var(--transition-base);
}

.auth-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--text-white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.main-footer::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-weight: 800;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-address {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--secondary);
    padding-right: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--primary);
    width: 20px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #25d366;
    color: white;
    border-radius: 12px;
    font-weight: 800;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
}

.whatsapp-link:hover {
    background: #128c7e;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    width: 100%;
    margin-top: 1rem;
}

.social-links .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.social-links .social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-links .social-btn.facebook {
    background-color: #1877f2;
    border-color: #1877f2;
}

.social-links .social-btn.facebook:hover {
    background-color: #166fe5;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.social-links .social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.social-links .social-btn.instagram:hover {
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

.social-links .social-btn.whatsapp {
    background-color: #25d366;
    border-color: #25d366;
}

.social-links .social-btn.whatsapp:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.footer-address {
    color: rgba(255, 255, 255, 0.85);
    margin: 0.75rem 0;
}

.contact-info p {
    margin: 0.75rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.contact-info a {
    color: #FFE66D;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-info a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

.footer-bottom p:not(:last-child) {
    margin-bottom: 0.5rem;
}

.footer-developer {
    margin-top: 0.75rem !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer-developer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-developer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        min-height: 650px;
        padding: var(--spacing-2xl) 0;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-features {
        gap: var(--spacing-md);
    }

    .main-nav ul {
        gap: 0.125rem;
    }

    .main-nav a {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--spacing-md);
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .auth-container {
        margin: var(--spacing-lg) auto;
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .header-top {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch;
    }

    .header-actions {
        justify-content: center;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE - صفحة تفاصيل المنتج
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    padding: var(--spacing-2xl) 0;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
    margin-bottom: var(--spacing-3xl);
}

.product-images {
    position: sticky;
    top: 120px;
}

.product-images img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-2xl);
    transition: var(--transition-slow);
}

.product-images img:hover {
    transform: scale(1.05);
}

.product-placeholder-large {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.product-detail-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.stars {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
}

.rating-text {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9375rem;
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.discount-badge {
    background: var(--gradient-secondary);
    color: var(--text-white);
    padding: 0.625rem 1.125rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
    animation: pulse-strong 2s ease-in-out infinite;
}

.product-stock {
    margin-bottom: var(--spacing-lg);
}

.stock-available {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    border: 2px solid var(--success);
}

.stock-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    border: 2px solid var(--danger);
}

.product-actions {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: center;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--bg-primary);
}

.qty-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: var(--bg-light);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--gradient-purple);
    color: var(--text-white);
}

#product-quantity {
    width: 70px;
    border: none;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    text-align: center;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
    padding: 0;
}

#product-quantity:focus {
    outline: none;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-purple-light);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xl);
}

.feature-item-inline {
    text-align: center;
    padding: var(--spacing-md);
    transition: var(--transition-base);
}

.feature-item-inline span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.feature-item-inline p {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
}

.feature-item-inline:hover {
    transform: translateY(-4px);
}

.product-description {
    border-top: 2px solid rgba(99, 102, 241, 0.1);
    padding-top: var(--spacing-xl);
}

.product-description h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 400;
}

.description-content p {
    margin-bottom: var(--spacing-md);
}

.related-products {
    padding: var(--spacing-3xl) 0;
}

/* Responsive Product Detail */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .product-images {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .product-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .product-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 var(--spacing-md);
        gap: var(--spacing-md);
    }

    .quantity-selector {
        width: auto;
        align-self: stretch;
        justify-content: center;
    }

    .quantity-selector .qty-btn {
        flex: 1;
        max-width: 60px;
    }

    .quantity-selector #product-quantity {
        flex: 1;
        max-width: 80px;
    }

    .btn-add-cart {
        width: calc(100% - var(--spacing-md) * 2);
        margin: 0 auto;
        max-width: 280px;
    }
}

.page-header {
    text-align: center;
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
}

.page-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.375rem);
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.products-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.sidebar-section h3 {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-purple);
    border-radius: 2px;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: var(--spacing-sm);
}

.category-link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.category-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: var(--bg-purple-light);
    z-index: -1;
    transition: var(--transition-base);
}

.category-link-item:hover::before {
    width: 100%;
}

.category-link-item:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

.category-icon-small {
    font-size: 1.125rem;
}

.products-content {
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-2xl);
    flex-wrap: wrap;
}

.page-link {
    padding: 0.75rem 1.25rem;
    background: var(--bg-primary);
    color: var(--primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.page-link:hover {
    background: var(--gradient-purple);
    color: var(--text-white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
}

.page-link.active {
    background: var(--gradient-purple);
    color: var(--text-white);
    border-color: var(--primary);
}

.page-prev,
.page-next {
    padding: 0.75rem 1.75rem;
    min-width: auto;
}

.no-products-container {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.no-products {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

/* Responsive Products Layout */
@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        position: relative;
        top: auto;
    }
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.p-1 {
    padding: var(--spacing-xs);
}

.p-2 {
    padding: var(--spacing-sm);
}

.p-3 {
    padding: var(--spacing-md);
}

.p-4 {
    padding: var(--spacing-lg);
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* ============================================
   ADVANCED ANIMATIONS - انيميشنات متقدمة
   ============================================ */

/* Smooth entrance animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
    }

    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 0 40px rgba(99, 102, 241, 0.3);
    }
}

@keyframes float-up {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-down {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(20px);
    }
}

@keyframes slide-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes blink-glow {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.5));
    }

    50% {
        opacity: 0.7;
        filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.8));
    }
}

/* Stagger animation */
.stagger-item {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-item:nth-child(1) {
    animation-delay: 0s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(5) {
    animation-delay: 0.4s;
}

/* Hover lift effect */
.hover-lift {
    transition: var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

/* Gradient animation background */
.gradient-animate {
    background-size: 200% 200%;
    animation: slide-gradient 8s ease infinite;
}

/* Pulse effect for badges */
@keyframes pulse-strong {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Shimmer text effect */
@keyframes shimmer-text {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* ============================================
   CART PAGE - صفحة السلة
   ============================================ */
.empty-cart {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px dashed rgba(99, 102, 241, 0.2);
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-lg);
    animation: float-up 3s ease-in-out infinite;
}

.empty-cart h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.empty-cart p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.cart-items {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.cart-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px 150px 120px 60px;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
    align-items: center;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 120px 150px 120px 60px;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(99, 102, 241, 0.05);
    align-items: center;
    transition: var(--transition-base);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: var(--bg-purple-light);
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--bg-light);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.cart-item:hover .item-image img {
    transform: scale(1.1);
}

.item-details {
    min-width: 0;
}

.item-details h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.4;
}

.item-details h3 a {
    color: var(--text-primary);
    transition: var(--transition-base);
}

.item-details h3 a:hover {
    color: var(--primary);
}

.item-price,
.item-total {
    text-align: center;
}

.price-value,
.total-value {
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--secondary);
}

.item-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
}

.qty-btn-cart {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-cart:hover {
    background: var(--gradient-purple);
    color: var(--text-white);
}

.qty-value {
    width: 50px;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
}

.item-actions {
    text-align: center;
}

.btn-remove {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition-base);
    padding: var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.btn-remove:hover {
    transform: scale(1.2);
    color: #c2185b;
}

.cart-summary {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
    position: sticky;
    top: 120px;
    height: fit-content;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--text-white);
    padding: var(--spacing-lg);
}

.summary-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.summary-content {
    padding: var(--spacing-lg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    font-weight: 600;
}

.summary-row.total {
    border: none;
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    padding-bottom: 0;
    font-size: 1.25rem;
    color: var(--primary);
}

.total-amount {
    font-weight: 900;
    font-size: 1.75rem;
}

.promo-code {
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.promo-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.9375rem;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
    transition: var(--transition-base);
}

.promo-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-purple-light);
}

.btn-promo {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-secondary);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: var(--spacing-lg);
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.trust-badge {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    text-align: center;
    margin-top: var(--spacing-lg);
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.trust-badge p {
    margin: 0.5rem 0;
    color: var(--success);
    font-weight: 700;
    font-size: 0.9375rem;
}

/* Responsive Cart */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .cart-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: var(--spacing-md);
    }

    .item-image {
        grid-row: 1 / 3;
    }

    .item-price,
    .item-quantity,
    .item-total,
    .item-actions {
        grid-column: 2;
        display: flex;
        justify-content: space-between;
        padding: var(--spacing-xs) 0;
    }
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/* ============================================
   Currency Styling - تنسيق العملة (الشيكل)
   ============================================ */
.currency {
    color: var(--accent);
    font-weight: 700;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.price-symbol {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
}

/* ============================================
   HERO SLIDER - سلايدر الصفحة الرئيسية
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 4rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide:nth-child(1) {
    background: linear-gradient(135deg, #0066cc 0%, #004a99 50%, #003366 100%);
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, #e63946 0%, #d62828 50%, #c1121f 100%);
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, #06a77d 0%, #048a6f 50%, #036b5a 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: white;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.slide-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 3;
}

.slide-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.slide-description {
    font-size: clamp(1.1rem, 2.5vw, 1.75rem);
    margin-bottom: 2.5rem;
    font-weight: 500;
    opacity: 1;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 0, 0, 0.2);
    animation: slideInUp 1s ease;
    line-height: 1.6;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
}

.btn-slider {
    display: inline-block;
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: #ffffff;
    color: #0066cc;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
    border: 2px solid transparent;
    animation: slideInUp 1.2s ease;
}

.btn-slider:hover {
    background: #0066cc;
    color: #ffffff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.5);
    border-color: #ffffff;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #667eea;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PRODUCTS SECTION - قسم المنتجات
   ============================================ */
.products-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-light);
    font-size: 3rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--danger);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quick-view {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.btn-quick-view:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-name.expanded {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
}

.price-old {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-add-to-cart {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 0 16px 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-all {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
}

.btn-view-all:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* ============================================
   CATEGORIES SECTION - قسم التصنيفات
   ============================================ */
.categories-section {
    padding: 4rem 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.category-card {
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-light);
    font-size: 3rem;
}

.category-name {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    margin: 0;
}

/* ============================================
   FEATURES SECTION - قسم المميزات
   ============================================ */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(99,102,241,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: right;
}

.feature-item:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(15px);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

.feature-item:hover .feature-icon::after {
    opacity: 0.6;
}

.feature-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    transition: color 0.3s ease;
}

.feature-item:hover h3 {
    color: #6366f1;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Mobile Header Responsive */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .header-right {
        gap: 1rem;
    }

    .header-left {
        gap: 0.75rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .btn-link,
    .user-name {
        display: none;
    }

    .cart-text {
        display: none;
    }

    .cart-link {
        min-width: auto;
        padding: 0.6rem;
        justify-content: center;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .mobile-menu-overlay:not(.active) {
        pointer-events: none !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 60px;
    }

    .header-content {
        padding: 0.5rem 0;
    }

    .header-actions {
        gap: 0.4rem;
    }

    .btn-primary {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* تحسين أزرار الأيقونات على الموبايل */
    .btn-icon {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
        border-radius: 8px;
        background: transparent !important;
        border: 1.5px solid var(--primary) !important;
        color: var(--primary) !important;
    }

    .btn-icon[title="طلباتي"] {
        border-color: var(--logo-blue) !important;
        color: var(--logo-blue) !important;
        background: transparent !important;
    }

    .btn-icon[title="تسجيل الخروج"] {
        border-color: var(--logo-orange) !important;
        color: var(--logo-orange) !important;
        background: transparent !important;
    }

    /* تحسين سلة المشتريات على الموبايل */
    .cart-link {
        padding: 0.4rem 0.6rem;
        min-width: auto;
        gap: 0.3rem;
        background: var(--logo-blue) !important;
        border-radius: 10px;
    }

    .cart-link .cart-count {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        font-size: 0.6rem;
        background: var(--logo-orange);
    }

    .cart-link .cart-icon {
        font-size: 1rem;
    }

    .features-section {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .feature-item {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 85px;
        height: 85px;
        font-size: 2.2rem;
        margin-bottom: 1.25rem;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .feature-item p {
        font-size: 0.95rem;
    }

    .hero-slider {
        height: 500px;
        margin-bottom: 3rem;
    }

    .slide-text {
        padding: 2.5rem 1.5rem;
    }

    .slide-title {
        font-size: clamp(2rem, 7vw, 3rem) !important;
        margin-bottom: 1.25rem;
    }

    .slide-description {
        font-size: clamp(1rem, 3vw, 1.4rem) !important;
        margin-bottom: 2rem;
        opacity: 1 !important;
    }

    .btn-slider {
        padding: 1rem 2.25rem;
        font-size: 1.1rem;
    }

    /* إخفاء أزرار التنقل (الأسهم) على الموبايل */
    .slider-controls {
        display: none;
    }

    .slide-text {
        padding: 2.5rem 2rem;
    }

    .slide-description {
        padding: 0 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .features-section {
        padding: 2.5rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-item {
        padding: 1.75rem 1.25rem;
    }

    .feature-icon {
        width: 75px;
        height: 75px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .feature-item h3 {
        font-size: 1.1rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .hero-slider {
        height: 450px;
        margin-bottom: 2.5rem;
    }

    .slide-text {
        padding: 2rem 1.25rem;
    }

    .slide-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .slide-description {
        font-size: clamp(0.95rem, 3.5vw, 1.25rem) !important;
        margin-bottom: 1.75rem;
        opacity: 1 !important;
        line-height: 1.5;
    }

    .btn-slider {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        font-weight: 700;
    }

    .slider-controls {
        padding: 0 1rem;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .slider-indicators {
        bottom: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FORCE FONT APPLICATION - تطبيق الخط بشكل إجباري
   ============================================ */
/* Removed aggressive * selector which was breaking icons */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
li,
input,
textarea,
select,
button,
label,
table,
th,
td {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Cairo', sans-serif !important;
}

/* Force interactive elements to be clickable */
input,
textarea,
select,
button,
a.btn,
a.button,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"] {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-touch-callout: default !important;
    -webkit-user-select: text !important;
    user-select: text !important;
    position: relative !important;
    z-index: 10 !important;
}

input:focus,
textarea:focus,
select:focus {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    z-index: 100 !important;
}

button,
a {
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}