/* 
 * ستايل متجر هدايا الإمارات - مستوحى من دخون الإماراتية
 * تصميم فاخر وعصري للمتاجر الإلكترونية العربية
 * محسّن للأداء ولمحركات البحث وللجوال
 * إصدار محسن v2.0 - تم إزالة التكرار وتحسين الأداء
 */

/* الإعدادات الأساسية والخطوط */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables محسنة */
:root {
    /* الألوان */
    --primary-gold: #D4AF37;
    --light-gold: #FFD700;
    --dark-gold: #B8860B;
    --deep-blue: #1B2951;
    --light-blue: #E8F4FD; 
    --cream: #FFF8DC;
    --white: #FFFFFF;
    --dark-gray: #2C3E50;
    --light-gray: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #666666;
    --success-green: #25D366;
    --error-red: #e74c3c;
    --warning-orange: #f39c12;
    
    /* الظلال */
    --shadow-light: rgba(212, 175, 55, 0.1);
    --shadow-medium: rgba(212, 175, 55, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
    
    /* التدرجات */
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #D4AF37 50%, #B8860B 100%);
    --gradient-blue: linear-gradient(135deg, #1B2951 0%, #2C3E50 100%);
    --gradient-success: linear-gradient(135deg, #25D366 0%, #20B358 100%);
    
    /* المسافات والأحجام */
    --border-radius: 15px;
    --border-radius-small: 8px;
    --border-radius-large: 20px;
    --container-width: 1400px;
    --section-padding: 80px;
    --section-padding-mobile: 60px;
    
    /* التحولات */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
    
    /* الخطوط */
    --font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 1rem;
    --font-size-small: 0.875rem;
    --font-size-large: 1.125rem;
    --line-height-base: 1.7;
    
    /* Z-index */
    --z-progress: 9999;
    --z-header: 1000;
    --z-sidebar: 10000;
    --z-overlay: 9999;
    --z-notification: 10001;
}

/* Reset محسن */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background: var(--white);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* تحسينات الوصول */
*:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
    border-radius: var(--border-radius-small);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* شريط علوي أنيق */
.top-banner {
    background: var(--gradient-gold);
    color: var(--deep-blue);
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: calc(var(--z-header) - 1);
}

.top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.banner-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.banner-icon {
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* الهيدر الرئيسي */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 30px var(--shadow-medium);
    backdrop-filter: blur(10px);
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
}

/* اللوجو */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover,
.logo:focus {
    transform: translateY(-2px);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--deep-blue);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.logo-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--deep-blue);
    line-height: 1;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-gold);
    opacity: 0.9;
}

/* القائمة الرئيسية */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus {
    color: var(--deep-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-light);
}

.english-link {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white !important;
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
    border: 2px solid transparent;
}

.english-link:hover,
.english-link:focus {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.5);
    color: white !important;
    border-color: var(--primary-gold);
}

/* أدوات الهيدر */
.header-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-tool {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    border: none;
    cursor: pointer;
}

.header-tool:hover,
.header-tool:focus {
    background: var(--gradient-gold);
    color: var(--deep-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-light);
}

.cart-counter,
.mobile-cart-counter {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--error-red);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounce 2s infinite;
    z-index: 1;
}

.cart-counter.has-items,
.mobile-cart-counter.has-items {
    display: flex;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.mobile-menu-toggle {
    display: none;
    background: var(--gradient-gold);
    color: var(--deep-blue);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius-small);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--shadow-light);
}

/* قسم البطل (Hero Section) */
.hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-blue) 100%);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, var(--light-gold) 0%, transparent 70%);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInRight 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--deep-blue);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* الأزرار */
.btn-primary {
    background: var(--gradient-gold);
    color: var(--deep-blue);
    padding: 18px 35px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 6px 25px var(--shadow-light);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--deep-blue);
    padding: 18px 35px;
    border: 2px solid var(--primary-gold);
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--primary-gold);
    color: var(--deep-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.hero-visual {
    position: relative;
    animation: fadeInLeft 1s ease-out;
}

.hero-image {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: 0 20px 60px var(--shadow-dark);
    transition: var(--transition);
}

.hero-image:hover {
    transform: scale(1.02);
}

/* أقسام المنتجات */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-container,
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--deep-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* رابط عرض الكل */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 20px;
}

.view-all-link:hover,
.view-all-link:focus {
    color: var(--dark-gold);
    transform: translateX(-5px);
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* شبكة المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    contain: layout style;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow-light);
    transition: var(--transition);
    position: relative;
    contain: layout style;
    will-change: transform;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--shadow-medium);
    border-color: rgba(212, 175, 55, 0.3);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge,
.product-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-gold);
    color: var(--deep-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--error-red);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--success-green);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--primary-gold) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 0.9;
}

.overlay-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    color: var(--deep-blue);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
}

.product-card:hover .overlay-btn {
    transform: translateY(0);
    opacity: 1;
}

.overlay-btn:nth-child(1) { transition-delay: 0.1s; }
.overlay-btn:nth-child(2) { transition-delay: 0.2s; }
.overlay-btn:nth-child(3) { transition-delay: 0.3s; }

.overlay-btn:hover,
.overlay-btn:focus {
    background: var(--primary-gold);
    color: var(--white);
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-category {
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 10px 0;
    line-height: 1.4;
    text-align: center;
}

/* تقييمات المنتجات */
.product-rating,
.card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    min-height: 42px;
}

.stars,
.card-rating .stars {
    color: var(--light-gold);
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.rating-text,
.rating-number {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: bold;
}

.reviews-count {
    color: var(--text-light);
    font-size: 0.75rem;
}

.verified-badge {
    background: var(--success-green);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--success-green);
}

.original-price {
    font-size: 1.1rem;
    color: var(--error-red);
    text-decoration: line-through;
}

.discount {
    background: var(--error-red);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* أزرار المنتجات */
.product-actions,
.product-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    background: white;
    color: #666;
}

.icon-btn:hover,
.icon-btn:focus {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.add-cart-btn:hover,
.add-cart-btn:focus {
    background: var(--primary-gold) !important;
    border-color: var(--primary-gold) !important;
    color: white !important;
}

.order-now-btn,
.whatsapp-btn {
    background: var(--success-green) !important;
    border-color: var(--success-green) !important;
    color: white !important;
}

.order-now-btn:hover,
.whatsapp-btn:hover {
    background: #20b358 !important;
}

.details-btn {
    border-color: #007bff !important;
    color: #007bff !important;
}

.details-btn:hover,
.details-btn:focus {
    background: #007bff !important;
    color: white !important;
}

.btn-add-cart,
.btn-add-to-cart {
    flex: 1;
    background: var(--gradient-gold);
    color: var(--deep-blue);
    border: none;
    padding: 14px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-height: 48px;
    font-family: inherit;
}

.btn-add-cart:hover,
.btn-add-to-cart:hover,
.btn-add-cart:focus,
.btn-add-to-cart:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-light);
}

.btn-whatsapp {
    background: var(--success-green);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--border-radius-small);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: #20b358;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.btn-view-product {
    background: transparent;
    color: var(--deep-blue);
    border: 2px solid var(--primary-gold);
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 12px 16px;
    min-height: 48px;
    font-family: inherit;
}

.btn-view-product:hover,
.btn-view-product:focus {
    background: var(--primary-gold);
    color: var(--deep-blue);
    transform: translateY(-2px);
}

/* مجموعات المنتجات */
.collection-section {
    background: var(--light-gray);
    margin: 60px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.collection-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 500px;
}

.collection-content {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--gradient-blue);
    color: var(--white);
}

.collection-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.collection-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.collection-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

/* معلومات الخدمات */
.info-section {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 40px 0;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* القائمة الجانبية للهواتف */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: var(--gradient-blue);
    z-index: var(--z-sidebar);
    transition: var(--transition);
    box-shadow: -5px 0 25px var(--shadow-dark);
    overflow-y: auto;
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar-header {
    background: var(--gradient-gold);
    color: var(--deep-blue);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-sidebar-logo {
    font-size: 1.3rem;
    font-weight: 800;
}

.mobile-sidebar-close {
    background: transparent;
    color: var(--deep-blue);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-sidebar-close:hover,
.mobile-sidebar-close:focus {
    background: var(--deep-blue);
    color: var(--light-gold);
}

.mobile-sidebar-nav {
    padding: 20px 0;
}

.mobile-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border-right: 4px solid transparent;
}

.mobile-sidebar-nav a:hover,
.mobile-sidebar-nav a.active,
.mobile-sidebar-nav a:focus {
    background: rgba(255, 255, 255, 0.1);
    border-right-color: var(--primary-gold);
    color: var(--light-gold);
}

.mobile-sidebar-nav i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* الفوتر */
.footer {
    background: var(--deep-blue);
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-gold);
}

.footer-section p,
.footer-section li {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover,
.footer-section a:focus {
    color: var(--light-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-gold);
    color: var(--deep-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover,
.social-link:focus {
    background: var(--light-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.legal-links a:hover,
.legal-links a:focus {
    color: var(--light-gold);
}

.shipping-return-footer-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
    font-size: 0.9rem;
}

.shipping-return-footer-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* زر العودة للأعلى */
.back-to-top,
#back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    color: var(--deep-blue);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-header);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.back-to-top.show,
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
#back-to-top:hover,
.back-to-top:focus,
#back-to-top:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

/* شريط التقدم */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-gold);
    z-index: var(--z-progress);
    transition: width 0.1s ease;
}

/* رسائل التأكيد والإشعارات */
.cart-notification,
.success-notification,
.error-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px var(--shadow-medium);
    z-index: var(--z-notification);
    max-width: 350px;
    animation: slideInRight 0.4s ease-out;
    font-family: var(--font-family);
    font-weight: 600;
}

.cart-notification,
.success-notification {
    background: var(--gradient-success);
    color: white;
}

.error-notification {
    background: linear-gradient(135deg, var(--error-red), #c0392b);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-icon {
    font-size: 2rem;
    color: var(--success-green);
}

.notification-text strong {
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: block;
}

.notification-text p {
    margin: 5px 0;
    opacity: 0.9;
}

.notification-text small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* رسائل التحميل */
.loading-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--text-light);
    background: var(--light-gray);
    border-radius: var(--border-radius);
    margin: 20px 0;
    position: relative;
}

.loading-message::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* رسائل الخطأ */
.no-products,
.error-product {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    grid-column: 1 / -1;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.no-products i {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.6;
    color: var(--warning-orange);
}

.no-products h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* الفئات المحسنة */
.correct-product {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* انيميشنات */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* التصميم المتجاوب */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-content {
        padding: 50px 30px;
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 60px;
        --container-width: 100%;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .collection-title {
        font-size: 2rem;
    }
    
    .info-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    .header-content {
        padding: 15px 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: var(--section-padding-mobile) 0;
    }
    
    .section {
        padding: var(--section-padding-mobile) 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .product-card {
        min-height: 350px;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .mobile-sidebar {
        width: 300px;
        right: -300px;
    }
    
    .icon-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }
    
    .product-actions {
        gap: 6px !important;
    }
    
    .footer-legal {
        flex-direction: column;
        text-align: center;
    }
    
    .shipping-return-footer-info {
        gap: 15px;
        font-size: 0.8rem;
    }
    
    .english-link {
        padding: 12px 20px;
        border-radius: 8px;
        margin: 5px 0;
        font-weight: bold;
        border: 2px solid var(--primary-gold);
    }
    
    .banner-text {
        font-size: 0.8rem;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .collection-content {
        padding: 30px 20px;
    }
    
    .collection-title {
        font-size: 1.8rem;
    }
    
    .product-card {
        min-height: 320px;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .mobile-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-notification,
    .success-notification,
    .error-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .shipping-return-footer-info {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .cta-group {
        flex-direction: column;
    }
}

/* إخفاء القائمة على الشاشات الكبيرة */
@media (min-width: 769px) {
    .mobile-sidebar,
    .mobile-overlay {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* تحسينات للشاشات الكبيرة جداً */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1600px) {
    :root {
        --container-width: 1600px;
    }
    
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* تحسينات الأداء */
.lazyload {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazyload.loaded {
    opacity: 1;
}

.fully-loaded,
.loaded {
    opacity: 1;
    visibility: visible;
}

/* تحسينات النطاق الآمن للمس */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }
    
    .product-overlay {
        display: none;
    }
    
    .icon-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* تحسينات الحركة المخفضة */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before {
        animation: none;
    }
    
    .banner-icon {
        animation: none;
    }
}

/* تحسينات التباين العالي */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: rgba(0, 0, 0, 0.3);
        --shadow-medium: rgba(0, 0, 0, 0.5);
        --shadow-dark: rgba(0, 0, 0, 0.7);
    }
    
    .product-card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-sidebar,
    .mobile-overlay,
    .back-to-top,
    .progress-bar,
    .cart-notification,
    .success-notification,
    .error-notification {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .section {
        padding: 20pt 0;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1pt solid #ccc;
    }
}

/* تحسينات الخطوط للشاشات عالية الدقة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* إصدار محسن من تخطيط الشبكة للمتصفحات القديمة */
@supports not (display: grid) {
    .products-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .product-card {
        flex: 1 1 300px;
        max-width: 350px;
    }
    
    .info-cards {
        display: flex;
        flex-wrap: wrap;
    }
    
    .info-card {
        flex: 1 1 250px;
    }
}

/* تحسينات الـ Dark Mode */
@media (prefers-color-scheme: dark) {
    /* يمكن إضافة دعم الوضع الداكن هنا لاحقاً */
}