/* style.css */
/* التصميم الجديد المطور لمتجر لوميرا - يدعم المظهرين الفاتح والداكن بالكامل (بدون ألوان داكنة إجبارية في المظهر الفاتح) */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* ==================================================== */
    /* 1. المظهر الافتراضي: الفاتح الكامل (Pure Light Mode) */
    /* ==================================================== */
    --bg-body: #FFFFFF; /* خلفية الصفحة البيضاء */
    --bg-panel: #FFFFFF; /* خلفية الألواح والهيدر والنافبار */
    --bg-top-bar: #F9FAFB; /* خلفية الشريط العلوي للهيدر */
    --bg-section: #F4F6F9; /* خلفية الأقسام الرمادية */
    --bg-card: #FFFFFF; /* خلفية الكروت */
    --bg-cart: #FFFFFF; /* خلفية السلة المنزلقة */
    --bg-input: #F2F4F7; /* خلفية حقول الإدخال والبحث */
    --bg-hero: #F9FAFB; /* خلفية الهيرو سلايدر */
    --bg-deals: #F9FAFB; /* خلفية بنر صفقات الأسبوع */
    --bg-timer: #FFFFFF; /* خلفية كتل العداد التنازلي */
    --bg-footer: #F9FAFB; /* خلفية الفوتر الفاتح */
    
    --text-color: #12151C; /* نصوص رئيسية غامقة مريحة للعين */
    --text-title: #0C0E14; /* عناوين ناصعة الغموق */
    --text-muted: #667085; /* نصوص ثانوية رمادية */
    --border-color: #E4E7EC; /* فواصل رمادية خفيفة للفاتح */
    
    --shadow-card: 0 4px 15px rgba(16, 24, 40, 0.04);
    
    /* التدرج الذهبي المعدني الفاخر للأزرار والرموز */
    --gradient-gold: linear-gradient(135deg, #FFE595 0%, #E4B33C 50%, #C2911B 100%);
    --color-gold-solid: #E4B33C;
    --color-gold-glow: rgba(228, 179, 60, 0.15);
    
    --shadow-glow: 0 8px 25px rgba(228, 179, 60, 0.12);
    --shadow-glow-large: 0 15px 40px rgba(228, 179, 60, 0.25);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif;
    
    --hero-bg-gradient: radial-gradient(circle at 80% 20%, rgba(228, 179, 60, 0.04) 0%, transparent 60%);
    --deals-bg-gradient: radial-gradient(circle at 10% 80%, rgba(228, 179, 60, 0.03) 0%, transparent 70%);
}

/* ==================================================== */
/* 2. المظهر البديل: الداكن الكامل (Pure Dark Mode)     */
/* ==================================================== */
body.dark-theme {
    --bg-body: #07080B; /* أسود سبحي ملكي عميق */
    --bg-panel: #0B0D13; /* خلفية الألواح والهيدر والنافبار */
    --bg-top-bar: #030406; /* خلفية الشريط العلوي */
    --bg-section: #0B0D13; /* أغمق للأقسام */
    --bg-card: #11141C; /* رمادي أزرق داكن للكروت */
    --bg-cart: #0B0D13; /* سلة داكنة */
    --bg-input: #171B26; /* خلفية حقول الإدخال والبحث */
    --bg-hero: #0B0D13; /* خلفية الهيرو سلايدر */
    --bg-deals: #0B0D13; /* خلفية بنر صفقات الأسبوع */
    --bg-timer: #171B26; /* خلفية كتل العداد التنازلي */
    --bg-footer: #030406; /* خلفية الفوتر الداكن */
    
    --text-color: #F2F4F7; /* نصوص فاتحة */
    --text-title: #FFFFFF; /* عناوين بيضاء ناصعة */
    --text-muted: #8F9CAE; /* نصوص ثانوية مهدأة */
    --border-color: #1E2330; /* فواصل داكنة */
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.3);
    
    --hero-bg-gradient: radial-gradient(circle at 80% 20%, rgba(228, 179, 60, 0.06) 0%, transparent 60%);
    --deals-bg-gradient: radial-gradient(circle at 10% 80%, rgba(228, 179, 60, 0.06) 0%, transparent 70%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-solid);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button, input, textarea, select {
    font-family: var(--font-family);
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* الهيدر العلوي (يتغير بالكامل حسب المظهر) */
header.site-header {
    background-color: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-color);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

header.site-header .top-bar {
    background-color: var(--bg-top-bar);
    padding: 10px 5%;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

header.site-header .top-bar .info span {
    margin-left: 20px;
    color: var(--text-muted);
}

header.site-header .top-bar .info a:hover {
    color: var(--color-gold-solid);
}

header.site-header .main-header {
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

header.site-header .logo a {
    font-size: 28px;
    font-weight: 950;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.03em;
}

header.site-header .logo span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(228, 179, 60, 0.4));
}

/* محرك البحث الذكي في الهيدر */
.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 4px 18px;
    transition: var(--transition-smooth);
}

.search-wrapper:focus-within {
    border-color: var(--color-gold-solid);
    box-shadow: 0 0 15px rgba(228, 179, 60, 0.15);
    background-color: var(--bg-body);
}

.search-wrapper input {
    width: 100%;
    background: transparent;
    color: var(--text-color);
    padding: 10px 15px;
    font-size: 14px;
}

.search-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-wrapper .search-btn {
    background: transparent;
    color: var(--color-gold-solid);
    cursor: pointer;
    padding: 8px;
}

.search-wrapper .search-btn svg {
    width: 20px;
    height: 20px;
}

/* نتائج البحث المباشرة (AJAX Dropdown) */
.search-results-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    left: 0;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    padding: 10px 0;
}

body.dark-theme .search-results-dropdown {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--bg-input);
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    background-color: var(--bg-section);
    border: 1px solid var(--border-color);
}

.search-result-item .info {
    flex: 1;
}

.search-result-item .info .name {
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

.search-result-item .info .price {
    color: var(--color-gold-solid);
    font-size: 13px;
    margin-top: 2px;
}

.search-result-item .view-product {
    color: var(--text-muted);
    font-size: 12px;
}

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

.header-actions .icon-btn {
    background: transparent;
    color: var(--text-color);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-actions .icon-btn:hover {
    border-color: var(--color-gold-solid);
    color: var(--color-gold-solid);
    box-shadow: 0 0 10px rgba(228, 179, 60, 0.1);
}

/* التحكم بأيقونات الثيم المضيء/المظلم */
body.dark-theme .sun-icon {
    display: block !important;
}
body.dark-theme .moon-icon {
    display: none !important;
}

.header-actions .icon-btn svg {
    width: 22px;
    height: 22px;
}

.header-actions .icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gradient-gold);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(228, 179, 60, 0.3);
}

/* بار التنقل السفلي للهيدر */
.nav-bar {
    padding: 0 5%;
    background-color: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li a {
    display: block;
    padding: 16px 20px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    color: var(--color-gold-solid);
}

/* الهيرو سلايدر (يتحول بالكامل للون الفاتح في المظهر العادي) */
.hero-section {
    position: relative;
    background-color: var(--bg-hero);
    background-image: var(--hero-bg-gradient);
    color: var(--text-color);
    overflow: hidden;
    padding: 70px 5% 90px 5%;
    display: flex;
    align-items: center;
    min-height: 520px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.hero-slide {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-content {
    max-width: 650px;
}

.hero-content .subtitle {
    color: var(--color-gold-solid);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    padding: 4px 14px;
    background-color: rgba(228, 179, 60, 0.08);
    border: 1px solid rgba(228, 179, 60, 0.15);
    border-radius: 30px;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
    color: var(--text-title);
}

.hero-content h1 span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(228, 179, 60, 0.3));
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-gold);
    color: #000;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(228, 179, 60, 0.2);
}

.hero-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-large);
}

.hero-image img {
    max-height: 400px;
    margin: 0 auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    animation: floatImage 6s ease-in-out infinite;
}

body.dark-theme .hero-image img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* قسم التصنيفات السريع */
.categories-section {
    padding: 70px 5%;
    background-color: var(--bg-section);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-title);
    position: relative;
    padding-right: 18px;
    letter-spacing: -0.02em;
}

.section-header h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background: var(--gradient-gold);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(228, 179, 60, 0.3);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.category-card:hover {
    border-color: var(--color-gold-solid);
    box-shadow: var(--shadow-glow);
    transform: translateY(-6px);
}

.category-card .icon-wrapper {
    width: 68px;
    height: 68px;
    background-color: var(--bg-section);
    border-radius: 50%;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.category-card:hover .icon-wrapper {
    background: var(--gradient-gold);
    color: #000;
    border-color: var(--color-gold-solid);
}

.category-card .icon-wrapper svg {
    width: 30px;
    height: 30px;
}

.category-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
}

/* قسم المنتجات المصفاة */
.products-section {
    padding: 80px 5%;
    background-color: var(--bg-body);
    transition: var(--transition-smooth);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 45px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    overflow-x: auto;
}

.filter-tab {
    padding: 10px 25px;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.filter-tab:hover,
.filter-tab.active {
    color: var(--text-color);
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

/* كارت المنتج البريميوم المكتمل */
.product-card {
    background-color: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.product-card:hover {
    border-color: var(--color-gold-solid);
    box-shadow: var(--shadow-glow);
    transform: translateY(-8px);
}

.product-card .badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--gradient-gold);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 30px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(228, 179, 60, 0.3);
}

.product-card .image-wrapper {
    position: relative;
    background-color: var(--bg-section);
    border-radius: 18px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--border-color);
}

.product-card .image-wrapper img {
    max-height: 80%;
    transition: var(--transition-smooth);
}

.product-card:hover .image-wrapper img {
    transform: scale(1.08);
}

.product-card .category {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.product-card h3.name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .bottom-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card .price-wrapper {
    display: flex;
    flex-direction: column;
}

.product-card .price {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-color);
}

.product-card .old-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card .action-btn {
    background-color: var(--bg-section);
    color: var(--text-color);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.product-card .action-btn:hover {
    background: var(--gradient-gold);
    color: #000;
    border-color: var(--color-gold-solid);
    box-shadow: 0 4px 10px rgba(228, 179, 60, 0.2);
}

.product-card .action-btn svg {
    width: 18px;
    height: 18px;
}

/* بنر صفقات الأسبوع (يتحول للون الفاتح التبايني في المظهر العادي والداكن في المظهر المظلم) */
.deals-banner {
    background-color: var(--bg-deals);
    background-image: var(--deals-bg-gradient);
    color: var(--text-color);
    padding: 70px 5%;
    margin: 40px 5%;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.deals-info h3 {
    color: var(--color-gold-solid);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.deals-info h2 {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
    color: var(--text-title);
}

/* العداد التنازلي للبنر */
.countdown-timer {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.countdown-timer .time-block {
    background-color: var(--bg-timer);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    min-width: 80px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.countdown-timer .time-block span.num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--color-gold-solid);
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(228, 179, 60, 0.15);
}

.countdown-timer .time-block span.label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.deals-image img {
    max-height: 320px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.08));
}

body.dark-theme .deals-image img {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

/* سلة المشتريات المنزلقة (Slide-out Cart) */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background-color: var(--bg-cart);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

body.dark-theme .cart-drawer {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

.cart-drawer.active {
    right: 0;
}

/* خلفية السلة الشفافة لغلقها */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-section);
    color: var(--text-color);
    transition: var(--transition-smooth);
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.cart-header .close-btn {
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
}

.cart-items-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.cart-item img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    background-color: var(--bg-section);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.cart-item .details {
    flex: 1;
}

.cart-item .details .name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    line-height: 1.4;
}

.cart-item .details .price {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-gold-solid);
}

.cart-item .qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 96px;
    justify-content: space-between;
    margin-top: 10px;
    background-color: var(--bg-section);
}

.cart-item .qty-control button {
    background: transparent;
    color: var(--text-color);
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.cart-item .qty-control span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
}

.cart-item .remove-btn {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.cart-item .remove-btn:hover {
    color: #EF4444;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-section);
    transition: var(--transition-smooth);
}

.cart-totals {
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-color);
}

.cart-totals .price {
    color: var(--color-gold-solid);
}

.cart-checkout-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    background-color: #25D366; /* لون واتساب */
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15);
    transition: var(--transition-smooth);
}

.cart-checkout-btn:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

/* صفحة تفاصيل المنتج الفاتحة */
.product-detail-section {
    padding: 70px 5%;
    background-color: var(--bg-body);
    transition: var(--transition-smooth);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-gallery {
    background-color: var(--bg-section);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.product-gallery img {
    max-height: 380px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
}

body.dark-theme .product-gallery img {
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

.product-info-panel h1 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.product-info-panel .meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
}

.product-info-panel .meta .category {
    color: var(--color-gold-solid);
    font-weight: 700;
}

.product-info-panel .meta .stock {
    color: #10B981;
    font-weight: 700;
}

.product-info-panel .meta .stock.out {
    color: #EF4444;
}

.product-info-panel .price-area {
    margin-bottom: 35px;
    padding: 18px 25px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: inline-flex;
    align-items: baseline;
    gap: 15px;
    transition: var(--transition-smooth);
}

.product-info-panel .price-area .current {
    font-size: 32px;
    font-weight: 900;
    color: var(--color-gold-solid);
}

.product-info-panel .price-area .old {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-info-panel .desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.9;
}

.product-info-panel .actions {
    display: flex;
    gap: 20px;
}

.product-info-panel .btn-add-cart {
    flex: 1;
    background: var(--gradient-gold);
    color: #000;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(228, 179, 60, 0.2);
}

.product-info-panel .btn-add-cart:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.product-info-panel .btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15);
    transition: var(--transition-smooth);
}

.product-info-panel .btn-whatsapp:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
}

/* قسم البراندات */
.brands-section {
    padding: 60px 5%;
    background-color: var(--bg-body);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.brands-slider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    padding: 10px 0;
}

.brands-slider span {
    font-size: 20px;
    font-weight: 900;
    color: var(--border-color);
    white-space: nowrap;
    letter-spacing: 4px;
    transition: var(--transition-smooth);
}

body.dark-theme .brands-slider span {
    color: #262933;
}

.brands-slider span:hover {
    color: var(--color-gold-solid);
}

/* الفوتر (يتغير بالكامل حسب المظهر) */
footer.site-footer {
    background-color: var(--bg-footer);
    color: var(--text-color);
    padding: 80px 5% 40px 5%;
    border-top: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gold-solid);
    margin-bottom: 25px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--color-gold-solid);
    padding-right: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition-smooth);
}

/* زر واتساب العائم */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-floating svg {
    width: 32px;
    height: 32px;
}

/* توافق الشاشات (Responsive) */
@media (max-width: 991px) {
    .hero-slide {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-image img {
        max-height: 300px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .deals-banner {
        grid-template-columns: 1fr;
        margin: 40px 20px;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    header.site-header .main-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    .search-container {
        width: 100%;
        max-width: 100%;
    }
    .nav-bar {
        overflow-x: auto;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 36px;
    }
}
