      /* ============================================== */
        /*              1. GLOBAL STYLES & VARIABLES      */
        /* ============================================== */
        :root {
            --clr-background: #FFFFFF;
            --clr-surface: #F8F9FA;
            --clr-primary-text: #212529;
            --clr-secondary-text: #6C757D;
            --clr-accent-pink: #D9026D;
            --clr-border: #E9ECEF;
            --font-heading: 'Playfair Display', serif;
            --font-body: 'Lato', sans-serif;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            font-family: var(--font-body);
            background-color: var(--clr-background);
            color: var(--clr-primary-text);
            line-height: 1.7;
        }
        .container { width: 90%; max-width: 1200px; margin: 0 auto; }
        a { text-decoration: none; color: var(--clr-primary-text); transition: color 0.3s ease; }
        h1, h2, h3 { font-family: var(--font-heading); color: var(--clr-primary-text); }
        .btn { display: inline-block; padding: 12px 30px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; border-radius: 50px; transition: all 0.3s ease; }
        .btn-accent { background-color: var(--clr-accent-pink); color: #fff; border: 2px solid var(--clr-accent-pink); }
        .btn-accent:hover { 
            transform: translateY(-3px); 
            box-shadow: 0 5px 15px rgba(217, 2, 109, 0.3); 
            background-color: #c80263; /* لون أغمق قليلاً عند المرور */
        }
        
        /* ============================================== */
        /*              2. HEADER & NAVIGATION          */
        /* (Styling for the header loaded from header.html) */
        /* ============================================== */
        .main-header {
            position: sticky; top: 0; z-index: 1000;
            padding: 15px 0;
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--clr-border);
            transition: box-shadow 0.3s ease;
        }
        /* Optional: Add a subtle shadow on scroll */
        /* body.scrolled .main-header { box-shadow: 0 2px 10px rgba(0,0,0,0.05); } */
        .main-header .container { display: flex; justify-content: space-between; align-items: center; }
        .logo { display: flex; align-items: center; font-family: var(--font-heading); font-size: 1.8rem; }
        .logo-svg { height: 30px; width: 30px; margin-right: 10px; fill: var(--clr-accent-pink); }
        .main-nav ul { list-style: none; display: flex; gap: 30px; }
        .main-nav a:hover { color: var(--clr-accent-pink); }
        .header-icons { display: flex; gap: 20px; font-size: 1.2rem; }
        .header-icons a i { transition: transform 0.3s ease; }
        .header-icons a:hover i { transform: scale(1.2); color: var(--clr-accent-pink); }

        /* ============================================== */
        /*              3. HERO SECTION                 */
        /* ============================================== */
        .hero-section {
            background-color: var(--clr-surface);
            padding: 80px 0;
            text-align: center;
            overflow: hidden; /* لإخفاء العناصر قبل الأنيميشن */
        }
        .hero-section h1 {
            font-size: 3.5rem; margin-bottom: 1rem;
            animation: slideInUp 0.8s ease-out forwards;
        }
        .hero-section p {
            font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px auto; color: var(--clr-secondary-text);
            animation: slideInUp 0.8s ease-out 0.2s forwards;
            opacity: 0; /* يبدأ شفافًا */
        }
        .hero-section .btn {
            animation: slideInUp 0.8s ease-out 0.4s forwards;
            opacity: 0; /* يبدأ شفافًا */
        }

        /* ============================================== */
        /*              4. CATEGORIES SECTION           */
        /* ============================================== */
        .categories-section { padding: 80px 0; }
        .section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }
        .category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; }
        .category-card { text-align: center; transition: transform 0.3s ease; }
        .category-card:hover { transform: translateY(-5px); }
        .category-card .img-wrapper {
            width: 150px; height: 150px;
            margin: 0 auto 15px auto;
            border-radius: 50%;
            overflow: hidden;
            border: 3px solid var(--clr-border);
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }
        .category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
        .category-card h3 { font-size: 1.2rem; }
        .category-card:hover .img-wrapper { border-color: var(--clr-accent-pink); }
        .category-card:hover img { transform: scale(1.1); }

        /* ============================================== */
        /*      5. FEATURED PRODUCTS (IMPROVED CARD)      */
        /* ============================================== */
        .featured-products { padding: 80px 0; background-color: var(--clr-surface); }
        .product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
        .product-card {
            background-color: var(--clr-background);
            border: 1px solid var(--clr-border);
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease-out;
            display: flex; 
            flex-direction: column; 
            opacity: 0; /* يبدأ شفافًا للأنيميشن */
            transform: translateY(30px);
        }
        .product-card.is-visible {
            opacity: 1;
            transform: translateY(0);
        }
        .product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
        .product-card-image { position: relative; overflow: hidden; }
        .product-card-image img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            transition: transform 0.4s ease;
        }
        .product-card:hover .product-card-image img { transform: scale(1.05); }
        .product-card-category {
            position: absolute; top: 15px; left: 15px;
            background-color: var(--clr-accent-pink);
            color: #fff;
            padding: 3px 10px;
            font-size: 0.8rem;
            border-radius: 20px;
        }
        .product-card-info {
            padding: 20px;
            text-align: center;
            display: flex; 
            flex-direction: column;
            justify-content: space-between;
            flex-grow: 1; 
        }
        .product-card-info h3 { font-size: 1.3rem; margin-bottom: 10px; }
        .product-prices { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin-bottom: 15px; height: 27px; }
        .price-current { font-size: 1.5rem; font-weight: bold; color: var(--clr-accent-pink); }
        .price-old { color: var(--clr-secondary-text); text-decoration: line-through; }
        .product-card-info .btn { font-size: 0.9rem; padding: 10px 25px; margin-top: auto; }
        
        /* ============================================== */
        /*              6. FOOTER (NEW LIGHT STYLE)       */
        /* (Styling for the footer loaded from footer.html) */
        /* ============================================== */
        .main-footer { padding: 60px 0; background-color: var(--clr-surface); color: var(--clr-secondary-text); }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
        .footer-about .logo { color: var(--clr-primary-text); }
        .footer-about .logo-svg { fill: var(--clr-accent-pink); }
        .footer-about p { color: var(--clr-secondary-text); }
        .footer-widget h4 { color: var(--clr-primary-text); margin-bottom: 1.5rem; }
        .footer-widget ul { list-style: none; }
        .footer-widget li { margin-bottom: 1rem; }
        .footer-widget ul a { color: var(--clr-secondary-text); }
        .footer-widget ul a:hover { color: var(--clr-accent-pink); }
        .footer-bottom { text-align: center; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--clr-border); }
        
        /* ============================================== */
        /*              7. ANIMATIONS                   */
        /* ============================================== */
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }
        .fade-in.is-visible {
            opacity: 1;
            transform: translateY(0);
        }


        @media(max-width: 768px) {
            .footer-grid { grid-template-columns: 1fr; }
            .hero-section h1 { font-size: 2.5rem; }
        }
/* Add this to your style.css file */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    background-color: var(--clr-surface);
}

.auth-box {
    width: 100%;
    max-width: 450px;
    background-color: var(--clr-background);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--clr-border);
}

.auth-box h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.auth-box p {
    color: var(--clr-secondary-text);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    color: var(--clr-primary-text);
    font-size: 1rem;
}

.btn.full-width {
    width: 100%;
}

.auth-link {
    margin-top: 20px;
}
.auth-link a {
    color: var(--clr-accent-pink);
    font-weight: bold;
}
/* ============================================== */
/*      6. FOOTER (IMPROVED SEPARATED STYLE)      */
/* ============================================== */
.main-footer { 
    padding: 60px 0; 
    /* !!! التغيير الرئيسي: لون خلفية أغمق قليلاً من لون السطح !!! */
    background-color: #F1F3F5; /* درجة رمادي فاتحة جدًا وناعمة */
    color: var(--clr-secondary-text); 
    /* !!! إضافة حد علوي بلون مميز وفاتح جدًا للفصل !!! */
    border-top: 1px solid #DEE2E6; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 40px; 
}

.footer-about .logo { 
    color: var(--clr-primary-text); 
}

.footer-about .logo-svg { 
    fill: var(--clr-accent-pink); 
}

.footer-about p { 
    color: var(--clr-secondary-text); 
}

.footer-widget h4 { 
    color: var(--clr-primary-text); 
    margin-bottom: 1.5rem; 
}

.footer-widget ul { 
    list-style: none; 
}

.footer-widget li { 
    margin-bottom: 1rem; 
}

.footer-widget ul a { 
    color: var(--clr-secondary-text); 
    font-weight: bold; /* جعل الروابط أثقل قليلاً */
}

.footer-widget ul a:hover { 
    color: var(--clr-accent-pink); 
}

.footer-bottom { 
    text-align: center; 
    padding-top: 40px; 
    margin-top: 40px; 
    border-top: 1px solid #DEE2E6; /* استخدام نفس لون الحد العلوي */
}

/* لا تنسى تعديل media query للفوتر إذا كانت موجودة */
@media(max-width: 768px) {
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; /* توسيط المحتوى في شاشات الموبايل */
    }
    .footer-about .logo {
        justify-content: center; /* توسيط الشعار في الموبايل */
    }
}
/* ============================================== */
/*      5. FEATURED PRODUCTS (FINAL ROBUST CARD)  */
/* ============================================== */
.featured-products { padding: 80px 0; background-color: var(--clr-surface); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card {
    background-color: var(--clr-background);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease-out;
    display: flex; 
    flex-direction: column; 
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* --- التعديل هنا --- */
.product-card-image {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: #f4f5f7; /* لون خلفية أنعم قليلاً */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* الأيقونة البديلة */
.product-card-image .placeholder-icon {
    font-size: 3.5rem;
    color: #e0e0e0; /* لون أيقونة أفتح */
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute; /* الصورة ستغطي الخلفية والأيقونة */
    top: 0;
    left: 0;
    z-index: 2; /* للتأكد من أنها في المقدمة */
}
/* --- نهاية التعديل --- */

.product-card-category {
    position: absolute; top: 15px; left: 15px;
    background-color: var(--clr-accent-pink);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.8rem;
    border-radius: 20px;
    z-index: 3;
}
.product-card-info {
    padding: 20px;
    text-align: center;
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; 
}
.product-card-info h3 { font-size: 1.3rem; margin-bottom: 10px; }
.product-prices { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin-bottom: 15px; height: 27px; }
.price-current { font-size: 1.5rem; font-weight: bold; color: var(--clr-accent-pink); }
.price-old { color: var(--clr-secondary-text); text-decoration: line-through; }
.product-card-info .btn { font-size: 0.9rem; padding: 10px 25px; margin-top: auto; }
/* ============================================== */
/*       4. CATEGORIES SECTION (CAROUSEL)         */
/* ============================================== */
.categories-section { 
    padding: 80px 0;
    overflow-x: hidden; /* !!! مهم جدًا لإخفاء الشريط الزائد !!! */
}
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }

/* حاوية السلايدر */
.category-slider-wrapper {
    width: 100%;
    display: flex;
    position: relative;
}
.category-slider-wrapper::before,
.category-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px; /* عرض التدرج الشفاف */
    z-index: 2;
    pointer-events: none;
}
.category-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--clr-background), transparent);
}
.category-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--clr-background), transparent);
}

/* الشريط المتحرك */
.category-track {
    display: flex;
    gap: 40px; /* مسافة أكبر بين العناصر */
    /* الأنيميشن للحركة اللانهائية */
    animation: scroll 40s linear infinite; 
}
.category-slider-wrapper:hover .category-track {
    animation-play-state: paused; /* إيقاف الحركة عند مرور الماوس */
}

/* بطاقة القسم */
.category-card { 
    text-align: center;
    flex-shrink: 0; /* لمنع العناصر من التقلص */
}
.category-card .img-wrapper {
    width: 150px; height: 150px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--clr-border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f5f7; /* لون الخلفية البديل */
}
.category-card .placeholder-icon {
    font-size: 2.5rem;
    color: #e0e0e0;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}
.category-card h3 { font-size: 1.2rem; }
.category-card:hover .img-wrapper { 
    border-color: var(--clr-accent-pink); 
    transform: scale(1.05); 
}
.category-card:hover img { transform: scale(1.1); }

/* Keyframes for the scrolling animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* تحريك نصف العرض فقط لأننا سنضاعف المحتوى */
}
/* ============================================== */
/*       8. IMPROVED QUANTITY & MOBILE NAV        */
/* ============================================== */

/* --- 1. Improved Quantity Input --- */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--clr-border);
    border-radius: 50px; /* !!! زوايا دائرية بالكامل !!! */
    overflow: hidden; /* لإخفاء الزوايا الحادة للأزرار */
    background-color: #fff;
}
.quantity-control button {
    background-color: transparent;
    border: none;
    color: var(--clr-secondary-text);
    font-size: 1rem;
    font-weight: bold;
    width: 35px;
    height: 40px; /* تقليل الارتفاع قليلاً */
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.quantity-control button:hover {
    background-color: var(--clr-accent-pink);
    color: #fff;
}
.quantity-control input {
    width: 40px;
    height: 40px;
    text-align: center;
    background-color: transparent; /* خلفية شفافة */
    border: none;
    border-left: 1px solid var(--clr-border);
    border-right: 1px solid var(--clr-border);
    color: var(--clr-primary-text);
    font-size: 1rem;
    font-weight: bold;
    /* إخفاء أسهم الإدخال الافتراضية */
    -moz-appearance: textfield;
}
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* --- 2. Mobile Navigation (Hamburger Menu) --- */
.mobile-nav-toggle {
    display: none; /* يظهر فقط في شاشات الموبايل */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-primary-text);
}

/* التجاوب (Responsive) */
@media(max-width: 992px) {
    .main-nav {
        display: none; /* إخفاء القائمة الرئيسية على الديسكتوب */
        position: absolute;
        top: 100%; /* يبدأ تحت الهيدر مباشرة */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--clr-border);
    }
    .main-nav.active {
        display: block; /* إظهار القائمة عند الضغط */
    }
    .main-nav ul {
        flex-direction: column; /* ترتيب الروابط بشكل عمودي */
        padding: 10px 0;
    }
    .main-nav ul li {
        width: 100%;
        text-align: center;
    }
    .main-nav ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--clr-border);
    }
    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .header-icons .btn {
        display: none; /* إخفاء أزرار الدخول لتبسيط الهيدر */
    }
    
    .mobile-nav-toggle {
        display: block; /* إظهار أيقونة الهمبرجر */
    }
}
/* ============================================== */
/*       9. FINAL MOBILE & CART FIXES             */
/* ============================================== */

/* --- 1. Cart Page Responsive Fixes --- */
@media(max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-items-table thead {
        /* إخفاء العناوين التقليدية للجدول على الموبايل */
        display: none;
    }
    .cart-item-row {
        /* تحويل كل صف إلى بطاقة منفصلة */
        display: block;
        background-color: var(--clr-surface);
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        border-bottom: none; /* إزالة الخط السفلي القديم */
    }
    .cart-item-row td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px dashed var(--clr-border);
    }
    .cart-item-row td:last-child {
        border-bottom: none;
    }
    /* إضافة عنوان لكل خانة باستخدام pseudo-elements */
    .cart-item-row td::before {
        content: attr(data-label); /* سيقرأ العنوان من data-label في الـ HTML */
        font-weight: bold;
        color: var(--clr-secondary-text);
    }
    .product-cell {
        flex-direction: row; /* التأكد من أنها أفقية */
    }
    .product-cell::before {
        display: none; /* لا نحتاج عنوان لخلية المنتج الرئيسية */
    }
    .order-summary {
        position: static;
        margin-top: 20px;
    }
}


/* --- 2. Mobile Header Icon Order Fix --- */
@media (max-width: 992px) {
    .main-header .container {
        /* عكس ترتيب العناصر في الهيدر */
        flex-direction: row-reverse;
    }

    .main-nav {
        /* القائمة ستظهر على اليسار الآن */
        right: 0;
        left: auto;
    }
    
    .header-icons {
        order: 1; /* تغيير ترتيب الأيقونات */
    }
    
    .logo {
        order: 2; /* اللوجو في المنتصف */
        position: absolute; /* لتوسيطه بشكل مثالي */
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-nav-toggle {
        display: block;
        order: 3; /* أيقونة الهمبرجر في أقصى اليسار */
    }
    
    /* إخفاء أيقونة البحث من الهيدر الرئيسي على الموبايل */
    .header-icons .search-icon {
        display: none;
    }

    /* إضافة البحث كعنصر في القائمة المنسدلة */
    .main-nav ul li.mobile-search-item {
        display: block; /* إظهاره فقط في القائمة */
        padding: 10px 20px;
    }
    .mobile-search-item .search-bar {
        display: flex;
        width: 100%;
        border: 1px solid var(--clr-border);
        border-radius: 50px;
        overflow: hidden;
    }
    .mobile-search-item input {
        width: 100%;
        border: none;
        padding: 10px 15px;
        outline: none;
    }
    .mobile-search-item button {
        background-color: var(--clr-accent-pink);
        color: white;
        border: none;
        padding: 0 15px;
        cursor: pointer;
    }
    .desktop-only { display: none; } /* إخفاء العناصر المخصصة للديسكتوب */
}

/* للتأكد من أن البحث يظهر فقط على الموبايل */
.main-nav ul li.mobile-search-item {
    display: none;
}
/* ============================================== */
/*              6. FOOTER (FINAL FIX)             */
/* ============================================== */
.main-footer { padding: 60px 0; background-color: #F1F3F5; color: var(--clr-secondary-text); border-top: 1px solid #DEE2E6; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-about .logo { color: var(--clr-primary-text); }
.footer-about .logo-svg { fill: var(--clr-accent-pink); }
.footer-about p { color: var(--clr-secondary-text); }
.footer-widget h4 { color: var(--clr-primary-text); margin-bottom: 1.5rem; }
.footer-widget ul { list-style: none; }
.footer-widget li { margin-bottom: 1rem; }
.footer-widget ul a { color: var(--clr-secondary-text); font-weight: bold; }
.footer-widget ul a:hover { color: var(--clr-accent-pink); }
.footer-bottom { text-align: center; padding-top: 40px; margin-top: 40px; border-top: 1px solid #DEE2E6; }

@media(max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-about .logo { justify-content: center; }
    /* !!! الحل النهائي: إخفاء الوصف في الموبايل !!! */
    .footer-about p {
        display: none;
    }
}
/* ============================================== */
/*   11. CART PAGE (REBUILT WITH DETAILS & COLOR) */
/* ============================================== */
.page-header { background-color: var(--clr-surface); text-align: center; padding: 60px 20px; border-bottom: 1px solid var(--clr-border); }
.page-header h1 { font-size: 3rem; }
.cart-section { padding: 60px 0; }

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.cart-items {
    background-color: var(--clr-surface);
    border-radius: 12px;
    padding: 10px 30px;
}
.cart-item {
    display: grid;
    /* أعمدة للديسكتوب: صورة، تفاصيل، كمية، سعر */
    grid-template-columns: 100px 1fr 120px 100px;
    gap: 20px;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid var(--clr-border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-image img { width: 100%; border-radius: 8px; }
.cart-item-info h3 { font-family: var(--font-body); font-size: 1.1rem; text-transform: none; letter-spacing: 0; }
.cart-item-info a:hover { color: var(--clr-accent-pink); }
.cart-item-info .remove-btn { color: var(--clr-secondary-text); font-size: 0.9rem; margin-top: 5px; background: none; border: none; cursor: pointer; padding: 0;}
.cart-item-info .remove-btn:hover { color: var(--clr-accent-pink); }

.cart-item-quantity { text-align: center; }
.cart-item-total { font-weight: bold; font-size: 1.1rem; text-align: right; }

/* ملخص الطلب بتفاصيل وألوان أكثر */
.order-summary {
    background: linear-gradient(145deg, #fef5f9, #fce4ec); /* تدرج لوني وردي فاتح */
    border: 1px solid var(--clr-accent-pink);
    border-radius: 12px;
    padding: 30px;
    position: sticky;
    top: 120px;
    box-shadow: 0 10px 25px rgba(217, 2, 109, 0.1);
}
.order-summary h2 { text-align: center; margin-bottom: 25px; font-size: 1.8rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; }
.summary-row.total { font-family: var(--font-heading); font-size: 1.4rem; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(217, 2, 109, 0.2); }
.btn-checkout { display: block; width: 100%; text-align: center; margin-top: 20px; padding: 16px; }

/* === التصميم المتجاوب النهائي للسلة === */
@media(max-width: 992px) {
    .cart-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; margin-top: 40px; }
}

@media(max-width: 768px) {
    .cart-items { padding: 10px 20px; }
    .cart-item {
        /* تحويل الشبكة إلى مناطق ليسهل التحكم بها */
        grid-template-areas:
            "image info"
            "quantity total";
        grid-template-columns: 1fr 1fr;
        row-gap: 20px;
    }
    .cart-item-image { grid-area: image; }
    .cart-item-info { grid-area: info; }
    .cart-item-quantity { grid-area: quantity; text-align: center; }
    .cart-item-total { grid-area: total; text-align: center; }
    
    .cart-item-quantity::before, .cart-item-total::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: var(--clr-secondary-text);
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
}
/* ... باقي كود السلة ... */

.cart-item {
    display: grid;
    /* أعمدة للديسكتوب: صورة، تفاصيل، كمية، سعر */
    grid-template-columns: 100px 1fr 120px 100px;
    gap: 20px;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid var(--clr-border);
}
.cart-item:last-child { border-bottom: none; }

/* !!! --- التعديل الرئيسي هنا --- !!! */
.cart-product-image {
    width: 90px; /* تحديد عرض ثابت */
    height: 90px; /* تحديد ارتفاع ثابت */
    border-radius: 8px;
    overflow: hidden;
    background-color: #f4f5f7; /* لون الخلفية البديل */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e0e0e0; /* لون الأيقونة البديلة */
    font-size: 1.8rem; /* حجم الأيقونة البديلة */
    flex-shrink: 0; /* لمنعها من التقلص */
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* !!! --- نهاية التعديل --- !!! */


.cart-item-info h3 { font-family: var(--font-body); font-size: 1.1rem; text-transform: none; letter-spacing: 0; }
.cart-item-info a:hover { color: var(--clr-accent-pink); }
.cart-item-info .remove-btn { color: var(--clr-secondary-text); font-size: 0.9rem; margin-top: 5px; background: none; border: none; cursor: pointer; padding: 0;}
.cart-item-info .remove-btn:hover { color: var(--clr-accent-pink); }

/* ... باقي كود السلة والتجاوب ... */

/* تأكد من أن media query للموبايل يعالج الصورة بشكل صحيح */
@media(max-width: 768px) {
    /* ... */
    .product-cell {
        display: flex;
        align-items: center;
        gap: 15px; /* مسافة بين الصورة والنص */
        width: 100%;
        margin-bottom: 15px;
    }
    .cart-product-image {
        width: 70px; /* تصغير الصورة قليلاً على الموبايل */
        height: 70px;
    }
    /* ... */
}
/* ============================================== */
/*       4. CATEGORIES SECTION (JS SLIDER)        */
/* ============================================== */
.categories-section { 
    padding: 80px 0;
    overflow: hidden;
}
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }

.category-slider-wrapper {
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* الشريط الذي سيتم تحريكه بواسطة JS */
.category-track {
    display: flex;
    gap: 40px;
    /* الحركة ستكون الآن عبر transform في JS، مع انتقال سلس */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}

.category-card {
    text-align: center;
    flex-shrink: 0;
    width: 170px; /* تحديد عرض ثابت لكل بطاقة */
}
.category-card .img-wrapper {
    width: 150px; height: 150px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--clr-border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f5f7;
    position: relative;
}
.category-card .placeholder-icon {
    font-size: 2.5rem;
    color: #e0e0e0;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.category-card h3 { font-size: 1.2rem; }
.category-card:hover .img-wrapper { 
    border-color: var(--clr-accent-pink); 
    transform: scale(1.05); 
}
.category-card:hover img { transform: scale(1.1); }
/* ============================================== */
/*              POPUP MESSAGE STYLES              */
/* ============================================== */
.popup-message {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}
.popup-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: zoomIn 0.3s ease;
}
.popup-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.popup-close:hover { color: #000; }
.popup-content p {
    font-size: 1.2rem;
    color: var(--clr-secondary-text);
    margin-bottom: 25px;
}
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes zoomIn { from {transform: scale(0.8);} to {transform: scale(1);} }
/* Message Banner styles */
.message-banner {
    padding: 15px 20px;
    margin: 0;
    color: #fff;
    text-align: center;
    font-weight: bold;
    border-radius: 0;
}
.message-banner.success {
    background-color: #28a745; /* أخضر للنجاح */
}
.message-banner.error {
    background-color: #dc3545; /* أحمر للخطأ */
}
.message-banner.info {
    background-color: #0dcaf0; /* أزرق للمعلومات */
}
/* ============================================== */
/*       11. CART PAGE (FINAL REBUILD)            */
/* ============================================== */
.cart-items-list {
    background-color: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 20px 30px;
}
.cart-header {
    display: grid;
    grid-template-columns: 100px 1fr 120px 100px;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--clr-border);
    font-family: var(--font-heading);
    color: var(--clr-secondary-text);
    text-transform: uppercase;
    font-size: 0.9rem;
}
.header-quantity, .header-total { text-align: center; }

.cart-item-card {
    display: grid;
    grid-template-columns: 100px 1fr 120px 100px;
    gap: 20px;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid var(--clr-border);
}
.cart-item-card:last-child { border-bottom: none; }

.cart-item-image {
    width: 100px; height: 100px;
    border-radius: 8px; background-color: #f4f5f7;
    display: flex; justify-content: center; align-items: center;
    color: #e0e0e0; font-size: 2rem;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.item-price-mobile { display: none; } /* يظهر فقط في الموبايل */

.cart-item-quantity { text-align: center; }
.cart-item-total { text-align: right; font-weight: bold; font-size: 1.2rem; }

.order-summary { /* ... ستايل صندوق الملخص كما هو ... */ }
.summary-divider { margin: 25px 0; border: none; border-top: 1px solid rgba(217, 2, 109, 0.2); }
.coupon-form label { font-weight: bold; display: block; margin-bottom: 10px; }
.coupon-input-group { display: flex; }
.coupon-input-group input { width: 100%; border: 1px solid var(--clr-border); padding: 12px; border-radius: 50px 0 0 50px; outline: none; }
.coupon-input-group button { border-radius: 0 50px 50px 0; }

/* === Responsive Cart === */
@media(max-width: 992px) {
    .cart-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; margin-top: 40px; }
}

@media(max-width: 768px) {
    .cart-header { display: none; }
    .cart-item-card {
        grid-template-columns: 80px 1fr; /* عمودان فقط: صورة وتفاصيل */
        grid-template-areas: 
            "image details"
            "actions actions";
        gap: 15px;
    }
    .cart-item-image { grid-area: image; width: 80px; height: 80px; }
    .cart-item-details { grid-area: details; }
    .cart-item-details .item-price-mobile { display: block; font-size: 0.9rem; color: var(--clr-secondary-text); }
    .cart-item-actions-wrapper {
        grid-area: actions;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8f9fa;
        padding: 10px;
        border-radius: 8px;
        margin-top: 10px;
    }
    .cart-item-quantity { text-align: left; }
    .cart-item-total { text-align: right; }
}
/* ============================================== */
/*       12. FINAL FIXES FOR CART & ACCOUNT       */
/* ============================================== */

/* --- Cart Page Button Fix --- */
.remove-btn {
    color: var(--clr-secondary-text);
    font-size: 0.9rem;
    margin-top: 5px;
    background: none;
    border: 1px solid var(--clr-border) !important; /* إضافة حدود */
    border-radius: 50px !important; /* زوايا دائرية */
    cursor: pointer;
    padding: 3px 10px !important; /* تعديل الحشو */
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.remove-btn:hover {
    color: #fff;
    background-color: var(--clr-accent-pink);
    border-color: var(--clr-accent-pink) !important;
}

/* --- Account Page Table Status --- */
.status {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}
.status-pending { background-color: #fff0c2; color: #7a5f00; }
.status-processing { background-color: #cfe2ff; color: #084298; }
.status-shipped { background-color: #d1e7dd; color: #0f5132; }
.status-delivered { background-color: #e2e3e5; color: #41464b; }
.status-cancelled { background-color: #f8d7da; color: #842029; }
/* Add to your main CSS file */
.footer-widget .social-links {
    list-style: none; /* يضمن عدم وجود نقاط */
}

.footer-widget .social-links li a {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* مسافة بين الأيقونة والنص */
    font-weight: bold; /* جعل النص أثقل قليلاً */
    transition: color 0.3s ease;
}

.footer-widget .social-links li a:hover {
    color: var(--clr-accent-pink); /* تغيير اللون عند المرور */
}