/* المتغيرات الموحدة - ألوان أبيض وأزرق فقط */
:root {
    --primary-color: #0ea5e9;    /* أزرق سماوي */
    --primary-dark: #0284c7;     /* أزرق داكن */
    --secondary-color: #1e3a8a;  /* أزرق كحلي */
    --accent-color: #38bdf8;     /* أزرق فاتح */
    --bg-color: #f8fafc;         /* خلفية فاتحة جداً */
    --white: #ffffff;            /* أبيض */
    --light-blue: #e0f2fe;       /* أزرق فاتح جداً */
    --gray-light: #f1f5f9;       /* رمادي فاتح */
    --gray: #64748b;             /* رمادي متوسط */
    --gray-dark: #334155;        /* رمادي داكن */
    --success: #0ea5e9;         /* أخضر - تم توحيده مع الأزرق */
    --shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
    --shadow-hover: 0 8px 20px rgba(14, 165, 233, 0.25);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* قواعد الاستجابة للهواتف */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 15px !important;
    }
    .search-box {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0;
    }
    .nav-actions {
        width: 100%;
        justify-content: space-around;
    }
}

/* توحيد الأزرار */
.btn-primary, .btn-main-checkout {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    border: none !important;
    color: white !important;
}

/* تنسيقات الشريط العلوي */
.top-bar {
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
    font-weight: 600;
}

/* تنسيقات الفوتر الجديد */
footer {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

.footer-col p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li a, .footer-col ul li {
    transition: var(--transition);
}

.footer-col ul li a:hover, .footer-col ul li:hover {
    color: #ffffff;
    transform: translateX(-5px);
}

.footer-col ul li i {
    color: #ffffff;
    width: 20px;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #94a3b8;
}

/* إعادة تعيين الأنماط الأساسية */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Cairo', sans-serif; background-color: var(--bg-color); color: var(--gray-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; cursor: pointer; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* أزرار عامة */
.btn { display: inline-block; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: var(--white); padding: 12px 30px; border-radius: 30px; font-weight: 700; transition: var(--transition); border: none; cursor: pointer; box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3); font-size: 1rem; }
.btn:hover { background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color)); transform: translateY(-3px); box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4); }

/* ================= الهيدر والناف بار ================= */
header { 
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.top-bar { 
    background: var(--white);
    color: var(--secondary-color);
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid var(--light-blue);
}
.header-main { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 15px 20px;
    background: var(--white);
}
.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--primary-color); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    transition: var(--transition); 
}
.logo:hover { 
    color: var(--primary-dark); 
    transform: translateY(-2px); 
}
.logo i { 
    color: var(--primary-dark); 
    font-size: 1.8rem; 
}

.search-box { flex: 1; margin: 0 40px; position: relative; max-width: 500px; }
.search-box input { width: 100%; padding: 12px 45px 12px 20px; border: 2px solid var(--light-blue); border-radius: 30px; background-color: var(--light-blue); font-family: inherit; font-size: 0.95rem; transition: var(--transition); }
.search-box input:focus { outline: none; border-color: var(--primary-color); background-color: var(--white); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2); }
.search-box i { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--primary-color); cursor: pointer; }

.user-actions { display: flex; gap: 15px; align-items: center; }
.nav-icons { display: flex; gap: 20px; font-size: 1.2rem; color: var(--secondary-color); }
.nav-icons i { position: relative; transition: var(--transition); padding: 8px; border-radius: 50%; }
.nav-icons i:hover { color: var(--primary-color); background-color: var(--light-blue); transform: translateY(-3px); }
.cart-count { position: absolute; top: -5px; left: -5px; background-color: #ef4444; color: white; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* قائمة المستخدم المنسدلة */
.user-menu { position: relative; }
.user-menu-btn { background: none; border: none; color: var(--secondary-color); font-size: 1.3rem; cursor: pointer; padding: 10px; border-radius: 50%; transition: var(--transition); display: flex; align-items: center; justify-content: center; position: relative; }
.user-menu-btn::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--primary-color); transition: var(--transition); }
.user-menu-btn:hover { color: var(--primary-color); background-color: var(--light-blue); transform: translateY(-3px); }
.user-menu-btn:hover::after { width: 60%; }
.user-menu-dropdown { position: absolute; top: calc(100% + 15px); right: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-hover); min-width: 240px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000; overflow: hidden; border: 1px solid var(--light-blue); }
.user-menu-dropdown::before { content: ''; position: absolute; top: -8px; right: 20px; width: 16px; height: 16px; background: var(--white); transform: rotate(45deg); border-top: 1px solid var(--light-blue); border-left: 1px solid var(--light-blue); }
.user-menu:hover .user-menu-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-item { display: flex; align-items: center; gap: 15px; padding: 14px 22px; color: var(--gray-dark); text-decoration: none; transition: all 0.3s ease; border-bottom: 1px solid var(--light-blue); font-weight: 600; width: 100%; background: none; border-left: none; border-right: none; border-top: none; text-align: right; cursor: pointer; position: relative; overflow: hidden; }
.menu-item::before { content: ''; position: absolute; right: 0; top: 0; width: 3px; height: 100%; background: var(--primary-color); transform: scaleY(0); transition: transform 0.3s ease; transform-origin: bottom; }
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background-color: var(--light-blue); color: var(--primary-color); padding-right: 28px; }
.menu-item:hover::before { transform: scaleY(1); transform-origin: top; }
.menu-item i { font-size: 1.1rem; color: var(--primary-color); width: 24px; text-align: center; transition: var(--transition); }
.menu-item:hover i { transform: scale(1.2); color: var(--secondary-color); }
.logout-form { margin: 0; padding: 0; }
.logout-form button { width: 100%; }
.btn-login, .btn-signup { padding: 8px 18px; border-radius: 25px; font-weight: 600; font-size: 0.9rem; transition: var(--transition); cursor: pointer; }
.btn-login { background-color: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-login:hover { background-color: var(--primary-color); color: white; transform: translateY(-2px); }
.btn-signup { background-color: var(--primary-color); color: white; border: 2px solid var(--primary-color); }
.btn-signup:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

/* شريط التنقل */
.nav-bar {
    background-color: var(--white);
    border-top: 1px solid #eaecf4;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 0;
    justify-content: flex-start;
}

.nav-link {
    font-weight: 700;
    color: var(--text-color);
    padding: 18px 25px;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid #f1f3f9;
}

.nav-link:first-child {
    border-left: none;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: #f8f9fc;
}

.nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(to bottom, rgba(14, 165, 233, 0.05), transparent);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 0 0 3px 3px;
}

.nav-link i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.nav-link.active i {
    opacity: 1;
    transform: scale(1.1);
}

/* تأثير عند التمرير */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .nav-links {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .nav-link {
        padding: 15px 20px;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .nav-link span {
        display: inline-block;
    }
}

/* عناوين الأقسام */
.section { max-width: 1280px; margin: 50px auto; padding: 0 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.section-title { font-size: 1.7rem; font-weight: 800; position: relative; padding-right: 20px; color: var(--secondary-color); }
.section-title::before { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 30px; background: linear-gradient(to bottom, var(--primary-color), var(--accent-color)); border-radius: 5px; }
.view-all { color: var(--primary-color); font-weight: 700; font-size: 0.95rem; transition: var(--transition); display: flex; align-items: center; gap: 5px; }
.view-all:hover { color: var(--primary-dark); gap: 10px; }

/* ================= الصفحة الرئيسية (Home) ================= */
.hero {
    max-width: 1280px;
    margin: 30px auto;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 450px;
    box-shadow: var(--shadow);
}
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}
.hero:hover img {
    transform: scale(1.05);
}
.hero-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: var(--radius);
    max-width: 450px;
    box-shadow: var(--shadow);
    animation: slideIn 0.8s ease-out;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(14, 165, 233, 0.1);
}
.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.3;
}
.hero p {
    margin-bottom: 25px;
    color: var(--gray);
    font-size: 1.05rem;
}
}
.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.home-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 25px; margin-bottom: 50px; }
.cat-card-small { background: var(--white); padding: 25px 15px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; border: 2px solid transparent; position: relative; overflow: hidden; }
.cat-card-small:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--light-blue); }
.cat-card-small::before { content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 4px; background: linear-gradient(to right, var(--primary-color), var(--accent-color)); transform: scaleX(0); transform-origin: right; transition: transform 0.4s ease; }
.cat-card-small:hover::before { transform: scaleX(1); transform-origin: left; }
.cat-icon-small { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; transition: var(--transition); }
.cat-card-small:hover .cat-icon-small { transform: scale(1.2); color: var(--accent-color); }

/* بطاقات المنتجات العامة */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); position: relative; border: 1px solid var(--light-blue); height: 100%; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--primary-color); }
.product-image { width: 100%; height: 220px; object-fit: cover; background: linear-gradient(135deg, var(--light-blue), #f0f9ff); }
.product-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.merchant-tag { font-size: 0.8rem; color: var(--primary-color); margin-bottom: 8px; font-weight: 600; }
.merchant-tag i { color: var(--primary-color); }
.product-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--secondary-color); line-height: 1.4; flex-grow: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--secondary-color); }
.add-cart-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 2px solid var(--primary-color); color: var(--primary-color); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.add-cart-btn:hover { background: var(--primary-color); color: var(--white); transform: translateY(-2px) scale(1.1); }

/* ================= صفحة الأقسام (Categories Page) ================= */
.category-grid-large { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.cat-card-large { position: relative; height: 200px; border-radius: 20px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); }
.cat-card-large img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat-card-large:hover img { transform: scale(1.1); }
.cat-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); display: flex; align-items: flex-end; padding: 25px; }
.cat-overlay h3 { color: white; font-size: 1.5rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; }
.cat-overlay i { font-size: 1.2rem; }

/* ================= صفحة المنتجات (Products Page - Filtered) ================= */
/* شريط الفلترة العصري */
.modern-filter-bar {
    display: flex; gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 30px;
    scrollbar-width: thin;
}
.modern-filter-bar::-webkit-scrollbar { height: 6px; }
.modern-filter-bar::-webkit-scrollbar-thumb { background-color: #d1d3e2; border-radius: 10px; }

.filter-chip {
    background: var(--white);
    border: 2px solid #eaecf4;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.filter-chip:hover { border-color: var(--primary-color); color: var(--primary-color); background: #f8f9fc; }

.filter-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.4);
    transform: translateY(-2px);
}

/* ================= صفحة المتاجر (Stores Page - Modern) ================= */
.stores-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}
.store-card-modern {
    background: var(--white);
    border: 2px solid var(--light-blue);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.store-card-modern:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-hover);
}
.store-header {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 50%;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white);
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.2);
    transition: var(--transition);
}
.store-card-modern:hover .store-header {
    transform: scale(1.1);
    border-color: var(--primary-color);
}
.store-header img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.store-card-modern:hover .store-header img {
    transform: scale(1.15);
}
.store-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 5px;
}
.store-info p {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
    margin: 0;
}
.store-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
}
.stat {
    text-align: center;
}
.stat .number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}
.stat .label {
    font-size: 0.85rem;
    color: var(--text-color);
}-transition);
    border: 1px solid #eaecf4;
    position: relative;
}
.store-card-modern:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.store-cover { height: 120px; background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%); position: relative; }

.store-avatar-wrapper { position: absolute; top: 60px; right: 25px; }
.store-avatar { width: 90px; height: 90px; border-radius: 20px; border: 4px solid var(--white); background: white; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.store-body { padding: 55px 25px 25px; text-align: right; }
.store-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.store-name { font-size: 1.3rem; font-weight: 800; color: var(--dark-color); }
.store-rating-stars { color: #f6c23e; font-size: 0.9rem; }
.store-category { display: inline-block; background: #e8eaf6; color: var(--primary-color); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 15px; }
.store-desc { color: var(--text-color); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }

.store-actions { display: flex; gap: 10px; border-top: 1px solid #f1f3f9; padding-top: 20px; }
.btn-visit { flex: 1; background: var(--dark-color); color: white; padding: 12px; border-radius: 10px; font-weight: 700; border: none; cursor: pointer; transition: var(--transition); display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-visit:hover { background: var(--primary-color); }
.btn-fav-store { width: 45px; background: #eaecf4; border: none; border-radius: 10px; color: var(--text-color); cursor: pointer; transition: var(--transition); }
.btn-fav-store:hover { background: #ffebee; color: #e74a3b; }

/* ================= صفحة السلة (Cart) ================= */
.cart-wrapper { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; margin-top: 30px; }
.cart-item-row { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #f1f3f9; align-items: center; }
.cart-img { width: 100px; height: 100px; border-radius: 10px; object-fit: cover; }
.cart-details { flex: 1; }
.cart-qty { display: flex; align-items: center; gap: 10px; background: #f8f9fc; padding: 5px 15px; border-radius: 8px; }
.cart-qty button { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text-color); }
.cart-summary-box { background: #f8f9fc; padding: 25px; border-radius: var(--radius); border: 1px solid #eaecf4; }

/* الفوتر */
footer { background-color: #f0f7ff; padding-top: 70px; margin-top: 80px; border-top: 1px solid #1976d2; }
.footer-col h4 { font-weight: 800; color: var(--dark-color); margin-bottom: 25px; font-size: 1.2rem; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-color); font-weight: 600; transition: var(--transition); }
.footer-links a:hover { color: #1976d2; padding-right: 5px; }
.newsletter-form { display: flex; gap: 10px; margin-top: 20px; }
.newsletter-form input { flex: 1; padding: 12px; border: 1px solid #eaecf4; border-radius: 8px; outline: none; }
.social-icons-footer a { width: 40px; height: 40px; background: #eaecf4; color: #1976d2; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin-left: 10px; transition: var(--transition); }
.social-icons-footer a:hover { background: #1976d2; color: white; }

/* Responsive */
@media (max-width: 768px) {
    .header-main { flex-direction: column; gap: 15px; }
    .search-box { width: 100%; margin: 10px 0; }
    .hero { height: 250px; }
    .hero-content { padding: 0 20px; text-align: center; }
    .hero h1 { font-size: 1.8rem; }
    .stores-modern-grid { grid-template-columns: 1fr; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ===========================================
   متجر متعدد البائعين - تصميم Frontend فقط
   =========================================== */

/* المتغيرات العامة */
:root {
    /* الألوان الرئيسية */
    --primary-color: #4e73df;
    --primary-dark: #2e59d9;
    --primary-light: #e8eaf6;
    --secondary-color: #1cc88a;
    --secondary-dark: #17a673;
    --accent-color: #f6c23e;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --success-color: #1cc88a;

    /* ألوان التصميم */
    --dark-color: #2d3436;
    --dark-gray: #5a5c69;
    --medium-gray: #858796;
    --light-gray: #b2bec3;
    --light-bg: #f8f9fc;
    --white: #ffffff;
    --border-color: #eaecf4;

    /* الظلال */
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 15px 35px rgba(0,0,0,0.12);

    /* الزوايا */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* التحولات */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s ease;

    /* الأبعاد */
    --header-height: 70px;
    --sidebar-width: 250px;
    --container-width: 1200px;
}

/* إعادة التعيين الأساسي */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-color);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== الأزرار ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 115, 223, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(28, 200, 138, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(28, 200, 138, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--white);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #d52a1a;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 30px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== الهيدر ==================== */
.top-bar {
    background: linear-gradient(90deg, #1cc88a 0%, #4e73df 100%);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
    position: relative;
    z-index: 1001;
}

.header-main {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* اللوجو */
.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
}

.logo-small {
    font-size: 1.2rem;
}

/* مربع البحث */
.search-box {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background-color: var(--light-bg);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.search-box input:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.search-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* إجراءات المستخدم */
.user-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
}

.action-item:hover {
    color: var(--primary-color);
}

.action-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.action-item:hover i {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    font-weight: bold;
}

/* شريط التنقل */
.nav-bar {
    background-color: var(--white);
    border-top: 1px solid #eaecf4;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 0;
    justify-content: flex-start;
}

.nav-link {
    font-weight: 700;
    color: var(--gray-dark);
    padding: 18px 25px;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid #f1f3f9;
}

.nav-link:first-child {
    border-left: none;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: #f8f9fc;
}

.nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(to bottom, rgba(14, 165, 233, 0.05), transparent);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 0 0 3px 3px;
}

.nav-link i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.nav-link.active i {
    opacity: 1;
    transform: scale(1.1);
}

/* قائمة المستخدم المنسدلة */
.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    z-index: 1000;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 10px 0;
}

/* ==================== الصفحة الرئيسية ==================== */
.hero {
    margin: 30px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80')
                no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: right;
    color: var(--white);
}

.hero-content {
    padding: 0 50px;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.6;
}

/* الأقسام الرئيسية */
.main-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.category-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition-normal);
}

.category-card:hover .category-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.category-card span {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* المنتجات المميزة */
.featured-products {
    margin: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    padding-right: 15px;
    color: var(--dark-color);
}

.section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    width: 6px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
}

.view-all:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* شبكة المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--danger-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #f1f3f9;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.merchant-tag {
    font-size: 0.75rem;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.merchant-tag i {
    color: var(--primary-color);
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--dark-color);
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.rating-count {
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-decoration: line-through;
    margin-left: 5px;
}

.add-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.add-cart-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* المتاجر المميزة */
.featured-stores {
    margin: 50px 0;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.store-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.store-header {
    height: 220px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    position: relative;
    width: 100%;
}

.store-logo {
    position: absolute;
    bottom: -30px;
    right: 30px;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    border: 4px solid var(--white);
    background: var(--white);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.store-body {
    padding: 40px 30px 30px;
    text-align: right;
}

.store-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.store-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.store-desc {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
    height: 70px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.store-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.store-products {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* ==================== صفحة المنتجات ==================== */
.products-page {
    margin: 30px 0;
}

/* شريط الفلترة */
.filter-bar {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.clear-filters {
    color: var(--danger-color);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-section h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--medium-gray);
    transition: var(--transition-fast);
}

.filter-option:hover {
    color: var(--primary-color);
}

.filter-option input {
    width: 18px;
    height: 18px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* شريط التصنيف السريع */
.category-bar {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 30px;
    scrollbar-width: thin;
}

.category-bar::-webkit-scrollbar {
    height: 6px;
}

.category-bar::-webkit-scrollbar-thumb {
    background-color: #d1d3e2;
    border-radius: 10px;
}

.category-chip {
    background: var(--white);
    border: 2px solid var(--border-color);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.category-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--light-bg);
}

.category-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.4);
    transform: translateY(-2px);
}

/* ترتيب المنتجات */
.sort-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.results-count {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--dark-gray);
    cursor: pointer;
}

/* ==================== صفحة الأقسام ==================== */
.categories-page {
    margin: 30px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-big-card {
    position: relative;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.category-big-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.category-big-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-big-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.category-content {
    color: var(--white);
}

.category-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-content span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==================== صفحة المتاجر ==================== */
.stores-page {
    margin: 30px 0;
}

.store-search {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.store-search input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.store-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

/* ==================== صفحة تفاصيل المنتج ==================== */
.product-details-page {
    margin: 30px 0;
}

.product-details-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.product-gallery {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    object-fit: contain;
    background: var(--light-bg);
    padding: 20px;
}

.product-info-details {
    padding: 0 30px;
}

.product-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-title-details {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.product-rating-details {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.rating-badge {
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.product-price-details {
    margin-bottom: 25px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 10px;
}

.old-price-details {
    font-size: 1.5rem;
    color: var(--medium-gray);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--danger-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 10px;
}

.product-description {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-features {
    margin-bottom: 30px;
}

.product-features h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-gray);
}

.feature-item i {
    color: var(--secondary-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--dark-color);
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity-input input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--dark-color);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-meta-details {
    display: flex;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.meta-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* ==================== صفحة السلة ==================== */
.cart-page {
    margin: 30px 0;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.cart-item-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.cart-item-store {
    color: var(--medium-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    gap: 15px;
}

.remove-item {
    color: var(--danger-color);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.save-later {
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.coupon-section {
    margin: 20px 0;
}

.coupon-input {
    display: flex;
    gap: 10px;
}

.coupon-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* ==================== صفحة الدفع ==================== */
.checkout-page {
    margin: 30px 0;
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.section-title-checkout {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-list {
    display: grid;
    gap: 15px;
}

.address-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.address-card:hover {
    border-color: var(--primary-color);
}

.address-card.selected {
    border-color: var(--primary-color);
    background: rgba(78, 115, 223, 0.05);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.address-name {
    font-weight: 700;
    color: var(--dark-color);
}

.address-default {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.address-details {
    color: var(--dark-gray);
    line-height: 1.6;
}

.payment-methods {
    display: grid;
    gap: 15px;
}

.payment-method {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-method:hover {
    border-color: var(--primary-color);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background: rgba(78, 115, 223, 0.05);
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.payment-details h4 {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.payment-details p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* ==================== صفحات الحساب ==================== */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--medium-gray);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--medium-gray);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==================== لوحات التحكم ==================== */
.dashboard {
    min-height: calc(100vh - var(--header-height));
    margin: 30px 0;
}

.dashboard-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 30px;
}

/* الشريط الجانبي */
.dashboard-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-profile-sidebar {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-light);
}

.user-name {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.user-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.dashboard-menu {
    padding: 20px 0;
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-gray);
    transition: var(--transition-fast);
    border-right: 3px solid transparent;
}

.menu-item:hover,
.menu-item.active {
    color: var(--primary-color);
    background: var(--primary-light);
    border-right-color: var(--primary-color);
}

.menu-item i {
    width: 20px;
}

/* محتوى اللوحة */
.dashboard-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* الجداول */
.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--light-bg);
    padding: 15px;
    text-align: right;
    font-weight: 700;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--dark-gray);
}

.table tr:hover {
    background: var(--light-bg);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background: rgba(28, 200, 138, 0.1);
    color: var(--secondary-color);
}

.status-pending {
    background: rgba(246, 194, 62, 0.1);
    color: var(--warning-color);
}

.status-cancelled {
    background: rgba(231, 74, 59, 0.1);
    color: var(--danger-color);
}

/* ==================== الفوتر ==================== */
footer {
    background-color: #f0f7ff;
    padding-top: 70px;
    margin-top: 80px;
    border-top: 1px solid #1976d2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: #1976d2;
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--dark-gray);
    font-weight: 600;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #1976d2;
    padding-right: 5px;
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    color: #1976d2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background: #1976d2;
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #1976d2;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.payment-methods-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.payment-method-footer {
    width: 50px;
    height: 30px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
}

/* ==================== التجاوب ==================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }

    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        margin-top: 15px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
    }

    .cart-container,
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .product-details-container {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        grid-template-columns: 80px 1fr;
    }

    .main-image {
        height: 400px;
    }

    .hero {
        height: 350px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .nav-link {
        padding: 15px 20px;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .hero {
        height: 300px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content {
        padding: 0 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .main-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .stores-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cart-item-actions {
        justify-content: center;
    }

    .product-actions {
        flex-direction: column;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 250px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo i {
        font-size: 1.3rem;
    }

    .search-box input {
        padding: 10px 40px 10px 15px;
        font-size: 0.9rem;
    }

    .nav-icons {
        gap: 15px;
        font-size: 1rem;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }

    .footer-col h3 {
        font-size: 1.1rem;
    }

    .footer-col p,
    .footer-col ul li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 200px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .btn {
        padding: 7px 18px;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1rem;
    }

    .logo i {
        font-size: 1.2rem;
    }
}

    .main-categories {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-bar {
        gap: 10px;
    }

    .category-chip {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .auth-container {
        padding: 20px;
    }
}

/* تأثيرات إضافية */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s ease forwards;
}

/* عناصر تحميل مؤقتة (للروابط التي ستضاف لاحقاً) */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* رسائل التنبيه */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(28, 200, 138, 0.1);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-dark);
}

.alert-warning {
    background: rgba(246, 194, 62, 0.1);
    border: 1px solid var(--warning-color);
    color: #856404;
}

.alert-danger {
    background: rgba(231, 74, 59, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-info {
    background: rgba(78, 115, 223, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-dark);
}

/* عناصر فارغة */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--medium-gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-gray);
}
/* الحاوية الأساسية للكارد */
.modern-product-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

/* صورة المنتج */
.image-section {
    position: relative;
    padding: 10px;
    background: #fbfbfb;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.5s ease;
}

.modern-product-card:hover .image-section img {
    transform: scale(1.1);
}

/* ملصق "جديد" */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4361ee;
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 5;
}

/* الأزرار السريعة */
.quick-actions {
    position: absolute;
    bottom: -50px; /* مخفية */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    transition: all 0.3s ease;
}

.modern-product-card:hover .quick-actions {
    bottom: 20px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.action-btn:hover {
    background: #4361ee;
    color: white;
}

/* قسم المعلومات */
.info-section {
    padding: 15px;
    text-align: right;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-name {
    font-size: 0.8rem;
    color: #adb5bd;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2b2d42;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-truncate: ellipsis;
}

.price-wrapper {
    margin-bottom: 15px;
}

.current-price {
    color: #4361ee;
    font-weight: 800;
    font-size: 1.2rem;
}

.current-price .currency {
    font-size: 0.8rem;
    margin-left: 2px;
}

/* زر التفاصيل */
.btn-details {
    margin-top: auto;
    background: #f8f9fa;
    color: #4361ee;
    text-decoration: none;
    padding: 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
}

.modern-product-card:hover .btn-details {
    background: #eef2ff;
}
/* Unique Cart Design - 2026 Modern Style */
.cart-standalone-wrapper {
    background-color: #f8fbff !important;
    min-height: 100vh;
    font-family: 'Cairo', sans-serif !important;
    padding: 40px 0;
}

/* تصميم كرت المنتج المنفرد */
.cart-card-item {
    background: #ffffff !important;
    border-radius: 24px !important;
    border: none !important;
    margin-bottom: 20px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

.cart-card-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.product-img-wrapper img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 20px !important;
    object-fit: cover !important;
    background: #f1f1f1;
}

/* تحكم الكمية العصري */
.qty-modern-control {
    display: flex !important;
    align-items: center !important;
    background: #f1f4f9 !important;
    border-radius: 50px !important;
    padding: 6px 12px !important;
    width: fit-content;
}

.qty-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #ffffff !important;
    color: #0d6efd !important;
    font-weight: bold !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 0.3s !important;
}

.qty-btn:hover {
    background: #0d6efd !important;
    color: #ffffff !important;
}

.qty-val {
    font-weight: 800 !important;
    color: #2d3436 !important;
    padding: 0 15px !important;
}

/* كرت الملخص العائم */
.summary-card {
    background: #ffffff !important;
    border-radius: 28px !important;
    padding: 35px !important;
    position: sticky !important;
    top: 40px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(13, 110, 253, 0.05) !important;
}

.btn-checkout-custom {
    display: block !important;
    width: 100% !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #0d6efd, #004ecb) !important;
    color: #ffffff !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 18px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    transition: 0.4s !important;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3) !important;
    border: none !important;
}

.btn-checkout-custom:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.4) !important;
    color: #fff !important;
}

/* زر الحذف */
.remove-link {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ff4757 !important;
    text-decoration: none !important;
    padding: 8px 15px !important;
    border-radius: 10px !important;
    background: rgba(255, 71, 87, 0.05) !important;
    transition: 0.3s !important;
}

.remove-link:hover {
    background: rgba(255, 71, 87, 0.15) !important;
}


.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
}
/* ==========================================================================
   Modern Shopping Cart System - Newest Design 2026
   ========================================================================== */

/* الحاوية الرئيسية */
.cart-standalone-wrapper {
    background-color: #f9fbff !important; /* لون خلفية هادئ جداً */
    font-family: 'Cairo', sans-serif;
}

/* بطاقة المنتج - التصميم المنفرد */
.modern-cart-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.modern-cart-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.06) !important;
    border-color: rgba(13, 110, 253, 0.1) !important;
}

/* غلاف صورة المنتج */
.product-visual {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.product-visual img {
    width: 110px !important;
    height: 110px !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

.modern-cart-card:hover .product-visual img {
    transform: scale(1.08);
}

/* التحكم بالكمية (Stepper) */
.quantity-stepper {
    display: inline-flex !important;
    align-items: center;
    background: #f1f4f9;
    padding: 4px;
    border-radius: 12px;
}

.step-btn {
    width: 30px !important;
    height: 30px !important;
    border: none !important;
    background: #ffffff !important;
    color: #0d6efd !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.step-btn:hover {
    background: #0d6efd !important;
    color: #ffffff !important;
}

/* بطاقة ملخص الحساب العائمة */
.summary-card-modern {
    background: #ffffff !important;
    border-radius: 25px !important;
    padding: 30px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(13, 110, 253, 0.05) !important;
    position: sticky;
    top: 100px;
}

/* زر إتمام الشراء */
.btn-main-checkout {
    background: linear-gradient(135deg, #0d6efd 0%, #0052cc 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px !important;
    border-radius: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-main-checkout:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.3) !important;
    filter: brightness(1.1);
}

/* أيقونة الحذف */
.btn-remove-soft {
    color: #ff4d4d !important;
    background: rgba(255, 77, 77, 0.08) !important;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border: none;
}

.btn-remove-soft:hover {
    background: #ff4d4d !important;
    color: white !important;
}

    /* عند اختيار اللون أو المقاس */
    .color-option input:checked + span,
    .size-option input:checked + span {
        background-color: #4361ee;
        color: white;
        border-color: #4361ee;
    }

    .btn-outline-secondary, .btn-outline-dark {
        border-radius: 10px;
        padding: 8px 15px;
        transition: 0.3s;
    }
