/* --- بداية: استيراد الخطوط الجديدة من جوجل --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Cormorant+Garamond:wght@700&display=swap');
/* --- بداية: تعريف الخط المحلي الجديد (للتجربة) --- */
@font-face {
    font-family: 'Aston Script'; /* غيرنا الاسم هنا */
    src: url('fonts/Aston Script.ttf') format('truetype'); /* وغيرنا مسار الملف هنا */
    font-weight: normal;
    font-style: normal;
}
/* --- نهاية: تعريف الخط المحلي الجديد --- */

/* --- إعدادات عامة --- */
body { 
    font-family: 'Cairo', Arial, sans-serif; 
    margin: 0; 
    background-color: #ffffff;
    color: #333333; 
}

/* --- تطبيق خط العناوين المميز --- */
h1, h2, h3, h4, h5, h6, 
.product-name, .product-title-large, /* <<< الإضافة هنا */
.product-price, .product-price-large, .cart-item-price,
.summary-row span:last-child {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}


/* --- تصميم الهيدر والـ Navbar --- */
.main-header { 
    background-color: #ffffff; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    padding: 10px 5%; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-section { display: flex; align-items: center; }
.nav-section.right { flex: 1; justify-content: flex-start; position: relative; }
.nav-section.middle { flex: 0 1 auto; }
.nav-section.left { flex: 1; justify-content: flex-end; gap: 15px; }
.logo { 
    font-family: 'Aston Script', cursive;
    font-size: 20px; /*  */
    font-weight: normal;
    text-decoration: none; 
    color: #1a1a1a; 
    transition: color 0.3s ease; 
    white-space: nowrap;
    padding-top: 5px;
}
.logo:hover { color: #555555; }
.menu-toggle-btn { 
    background-color: #f1f3f5; 
    color: #333333; 
    border: 1px solid #dee2e6;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer; 
    z-index: 1002; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.menu-toggle-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* --- تصميم القائمة المنسدلة الموحدة --- */
/* --- بداية التعديل --- */
.expanded-links { 
    display: none; 
    flex-direction: column; 
    list-style: none; 
    margin: 0; 
    padding: 8px 0; 
    position: absolute; 
    top: calc(100% + 10px); 
    left: 0; /* تم التغيير من right إلى left */
    background-color: #ffffff; 
    border: 1px solid #e0e0e0;
    border-radius: 8px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); 
    min-width: 220px; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(-10px); 
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s; 
    z-index: 1001; 
}
/* --- نهاية التعديل --- */
.main-header.menu-is-open .expanded-links { display: flex; opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s; }
.expanded-links li { width: 100%; }
.expanded-links a { 
    display: block; 
    text-decoration: none; 
    color: #333333; 
    font-weight: bold; 
    font-size: 16px; 
    padding: 12px 20px; 
    margin: 0; 
    white-space: nowrap; 
    transition: background-color 0.2s ease; 
    border-radius: 0; 
    background-color: transparent; 
    border-bottom: 1px solid #f0f0f0; 
}
.expanded-links li:last-child a { border-bottom: none; }
.expanded-links a:hover { background-color: #f8f9fa; }


.cart-link { 
    position: relative; 
    text-decoration: none; 
    color: #333333; 
    display: inline-block;
}

.cart-count { 
    position: absolute; 
    top: -6px;
    left: -8px;
    background-color: #1a1a1a; 
    color: #ffffff; 
    border-radius: 50%; 
    padding: 0;
    font-size: 11px;
    font-weight: bold; 
    border: 1px solid #ffffff;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cart-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.cart-link:hover .cart-icon {
    transform: scale(1.1);
}

.cart-icon svg {
    width: 100%;
    height: 100%;
    fill: #333333;
    transition: fill 0.3s ease;
    margin-top:3.5px;
}

/* --- بداية التعديل --- */
.search-container { 
    display: block;
    position: relative; /* ضروري عشان نربط الأيقونة بيه */
}

.search-container::before {
    content: '';
    position: absolute;
    left: 15px; /* المسافة من الشمال */
    top: 50%;
    transform: translateY(-50%);
    width: 18px; /* حجم الأيقونة */
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath fill='%23868e96' d='M 21 3 C 11.622998 3 4 10.623005 4 20 C 4 29.376995 11.622998 37 21 37 C 24.712383 37 28.139151 35.791079 30.9375 33.765625 L 44.085938 46.914062 L 46.914062 44.085938 L 33.886719 31.058594 C 36.443536 28.083 38 24.223631 38 20 C 38 10.623005 30.377002 3 21 3 z M 21 5 C 29.296122 5 36 11.703883 36 20 C 36 28.296117 29.296122 35 21 35 C 12.703878 35 6 28.296117 6 20 C 6 11.703883 12.703878 5 21 5 z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.6;
    z-index: 1;
}

.search-container input[type="search"] { 
    font-family: 'Cairo', Arial, sans-serif;
    background-color: #f1f3f5; 
    border: 1px solid #dee2e6; 
    color: #333333; 
    padding: 8px 15px 8px 40px; /* إضافة مسافة على الشمال للأيقونة */
    border-radius: 20px;
    width: 200px; 
    transition: all 0.3s ease; 
}

.search-toggle-btn { 
    display: none; 
    background: none; 
    border: none; 
    color: #333333; 
    font-size: 20px;
    cursor: pointer; 
    transition: color 0.3s ease;
    padding: 0; /* لضمان توسط الأيقونة */
}

.search-toggle-btn svg {
    width: 22px; /* تحديد حجم الأيقونة */
    height: 22px;
    fill: #333333; /* تحديد لون الأيقونة */
    transition: fill 0.3s ease;
}

.homepage .main-header .search-toggle-btn svg {
    fill: #ffffff;
}

.main-header.header-scrolled .search-toggle-btn svg {
    fill: #333333;
}
/* --- نهاية التعديل --- */

.search-container input[type="search"]::placeholder { color: #868e96; }
.search-container input[type="search"]:focus { 
    outline: none; 
    border-color: #1a1a1a; 
    background-color: #ffffff; 
    width: 250px; 
}
.search-toggle-btn { 
    display: none; 
    background: none; 
    border: none; 
    color: #333333; 
    font-size: 20px;
    cursor: pointer; 
    transition: color 0.3s ease;
}
.search-overlay { display: none; }


/* Hero Section & Homepage Header Styles */
/* Hero Section & Homepage Header Styles */
.hero-section {
    height: 100vh;
    /* --- بداية التعديل --- */
    background-image: url('images/pc.jpg'); /* الصورة الافتراضية للشاشات الكبيرة */
    /* --- نهاية التعديل --- */
    background-size: cover;
    background-position: center;
    display: flex; /* أضفنا هذا السطر للتوسيط */
    align-items: center; /* وهذا أيضًا */
    justify-content: center; /* وهذا */
    text-align: center; /* وهذا */
    color: #fff; /* وهذا لتلوين النص */
}

/* --- بداية الإضافة الجديدة --- */
/* الكود الذي سيشتغل على شاشات الموبايل فقط */
@media (max-width: 767px) {
    .hero-section {
        background-image: url('images/phone.jpg'); /* تغيير الصورة للشاشات الصغيرة */
    }
}
/* --- نهاية الإضافة الجديدة --- */

/* --- بداية: أكواد إضافية لتحسين شكل النص فوق الصورة --- */
.hero-content {
    background-color: rgba(0, 0, 0, 0.4); /* خلفية داكنة شفافة للنص */
    padding: 20px 30px;
    border-radius: 10px;
    max-width: 90%;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}
.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}
.hero-button {
    display: inline-block;
    background-color: #fff;
    color: #1a1a1a;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.hero-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}
/* --- نهاية: الأكواد الإضافية --- */

/* باقي الكود الخاص بـ .homepage .main-header إلخ، اتركه كما هو */
.homepage .main-header {
    position: absolute;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

.homepage .main-header .logo,
.homepage .main-header .expanded-links a {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.homepage .main-header .cart-icon svg {
    fill: #ffffff;
}
.homepage .main-header .menu-toggle-btn {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}
.homepage .main-header .search-toggle-btn {
    color: #ffffff;
}

.main-header.header-scrolled {
    position: sticky;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.main-header.header-scrolled .logo,
.main-header.header-scrolled .expanded-links a {
    color: #1a1a1a;
    text-shadow: none;
}
.main-header.header-scrolled .cart-icon svg {
    fill: #333333;
}
.main-header.header-scrolled .menu-toggle-btn {
    color: #333333;
    background-color: #f1f3f5;
    border-color: #dee2e6;
}
.main-header.header-scrolled .search-toggle-btn {
    color: #333333;
}


/* --- تصميم صفحة السلة --- */
.cart-page-container h1, .checkout-page-container h1, .static-page-container h1 { 
    font-size: 42px; 
    color: #1a1a1a; 
    border-bottom: 2px solid #1a1a1a; 
    padding-bottom: 15px;
    margin-bottom: 35px;
}
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: flex-start; }
.cart-item { display: flex; align-items: center; gap: 20px; background-color: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 15px; border: 1px solid #e0e0e0; }
.cart-item-image { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.cart-item-details { flex-grow: 1; }
.cart-item-details p { margin: 0; color: #555555; font-size: 14px; }
.cart-item-quantity { display: flex; align-items: center; gap: 10px; }
.cart-item-quantity .quantity-btn { 
    background-color: #e9ecef; 
    border: 1px solid #ced4da; 
    color: #333333; 
    width: 30px; height: 30px; font-size: 18px; font-weight: bold; border-radius: 50%; cursor: pointer; transition: background-color 0.3s; display: flex; align-items: center; justify-content: center; }
.cart-item-quantity .quantity-btn:hover { background-color: #dee2e6; }
.cart-item-quantity .quantity-text { font-size: 16px; font-weight: bold; }
.cart-item-price { font-size: 18px; margin-left: auto; padding: 0 20px; }
.remove-from-cart-btn { background: none; border: none; color: #e74c3c; font-size: 20px; cursor: pointer; transition: transform 0.2s; }
.remove-from-cart-btn:hover { transform: scale(1.2); }
.cart-summary { background-color: #f8f9fa; padding: 20px; border-radius: 8px; position: sticky; top: 120px; border: 1px solid #e0e0e0;}
.cart-summary h2 { text-align: center; margin-top: 0; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 20px; }

.checkout-btn, .confirm-order-btn { 
    width: 100%; 
    display: block; 
    text-align: center; 
    background-color: #1a1a1a; 
    color: #ffffff; 
    border: 2px solid #1a1a1a;
    padding: 15px; 
    font-size: 18px; 
    font-weight: bold; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: background-color 0.3s ease, color 0.3s ease; 
    text-decoration: none; 
    box-sizing: border-box; 
}
.checkout-btn:hover, .confirm-order-btn:hover:not(:disabled) { 
    background-color: #ffffff;
    color: #1a1a1a; 
}

.empty-cart-container { display: none; text-align: center; padding: 60px 20px; background-color: #f8f9fa; border-radius: 8px; border: 1px solid #e0e0e0;}
.empty-cart-icon { font-size: 80px; opacity: 0.5; margin-bottom: 20px; }
.empty-cart-container h2 { font-size: 32px; color: #1a1a1a; margin-bottom: 15px; }
.empty-cart-container p { font-size: 18px; line-height: 1.6; max-width: 500px; margin: 0 auto 30px auto; }
.cart-page-container.cart-is-empty .cart-layout { display: none; }
.cart-page-container.cart-is-empty .empty-cart-container { display: block; }

/* --- قسم المنتجات (الصفحة الرئيسية) --- */
.page-content { padding: 40px 5%; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { 
    background-color: #ffffff; 
    border-radius: 8px; 
    overflow: hidden; 
    border: .2px solid #f7f4f4;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    text-align: center; 
    position: relative; 
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.card-image { aspect-ratio: 3 / 4; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}
.product-card .btn {
    margin-top: auto; 
}
.product-name { font-size: 22px; color: #1a1a1a; margin: 0 0 10px; }
.product-price { font-size: 20px; color: #333333; margin: 0 0 20px; }

/* --- الزر الرئيسي للموقع --- */
.btn { 
    font-family: 'Cairo', Arial, sans-serif;
    display: inline-block; 
    background-color: #1a1a1a; 
    color: #ffffff; 
    padding: 10px 25px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: background-color 0.3s ease, color 0.3s ease; 
    border: 2px solid #1a1a1a; 
}
.btn:hover { 
    background-color: #ffffff; 
    color: #1a1a1a; 
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #555555 !important;
    color: #333333;
    padding: 8px 15px;
    transition: background-color 0.3s, color 0.3s;
}
.btn-secondary:hover {
    background-color: #333333;
    color: #ffffff;
}

/* --- تصميم الفوتر --- */
footer.main-footer { background-color: #f8f9fa; color: #555555; padding: 30px 5%; text-align: center; border-top: 1px solid #e0e0e0; }
.social-links { margin-bottom: 15px; }
.social-links a { color: #555555; text-decoration: none; margin: 0 15px; font-size: 16px; font-weight: bold; transition: color 0.3s ease; }
.social-links a:hover { color: #1a1a1a; }
.copyright { margin: 0; font-size: 14px; }

/* --- تصميم صفحة تفاصيل المنتج --- */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-start; }
.product-info-container { display: flex; flex-direction: column; }
.product-title-large { font-size: 48px; color: #1a1a1a; margin-top: 0; margin-bottom: 15px; border: none; }
.product-price-large { font-size: 32px; color: #333333; margin-bottom: 25px; }
.product-description { font-size: 16px; line-height: 1.8; margin-bottom: 30px; }
.product-actions-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
#buy-now-btn {
    font-family: 'Cairo', Arial, sans-serif;
    padding: 15px 30px; 
    font-size: 18px; 
    flex-grow: 1; 
        cursor: pointer; 

}

.add-to-cart-btn { 
    font-family: 'Cairo', Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    padding: 15px 30px; 
    font-size: 18px; 
    font-weight: bold; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
    flex-grow: 1; 
}
.add-to-cart-btn:hover { 
    background-color: #1a1a1a;
    color: #ffffff; 
    transform: scale(1.05); 
}
.product-options { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.option-group { margin-bottom: 20px; }
.option-group label { display: block; margin-bottom: 10px; font-weight: bold; font-size: 18px; }
.size-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.size-btn { 
    font-family: 'Cairo', Arial, sans-serif;
    border: 1px solid #ced4da; 
    background-color: transparent; 
    color: #333333; 
    padding: 10px 20px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: background-color 0.3s, border-color 0.3s, color 0.3s; 
}
.size-btn:hover { background-color: #f1f3f5; border-color: #1a1a1a; }
.size-btn.active { background-color: #1a1a1a; color: #ffffff; border-color: #1a1a1a; }
.size-btn.disabled { background-color: #e9ecef; color: #adb5bd; border-color: #dee2e6; cursor: not-allowed; text-decoration: line-through; }

.quantity-selector { display: flex; align-items: center; gap: 10px; }
.quantity-selector .quantity-btn { 
    background-color: #e9ecef; 
    border: 1px solid #ced4da; 
    color: #333333; 
    width: 40px; height: 40px; font-size: 20px; font-weight: bold; border-radius: 50%; cursor: pointer; transition: background-color 0.3s; }
.quantity-selector .quantity-btn:hover { background-color: #dee2e6; }
.quantity-selector input { font-family: 'Cairo', Arial, sans-serif; width: 50px; height: 40px; text-align: center; background-color: transparent; border: 1px solid #ced4da; color: #333333; font-size: 18px; font-weight: bold; border-radius: 8px; -moz-appearance: textfield; }
.quantity-selector input::-webkit-outer-spin-button, .quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-image-gallery { 
    position: relative; 
    width: 100%; 
    overflow: hidden; 
    border-radius: 8px; 
}
.slide.active-slide {
    opacity: 1;
    z-index: 2;
}
.slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.slider-btn:hover { background-color: rgba(255, 255, 255, 0.8); }
.related-products-section h2 { font-size: 28px; color: #1a1a1a; margin-top: 60px; margin-bottom: 20px; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; } 

/* --- تصميم الإشعارات (Toast Notifications) --- */
#toast-container { position: fixed; top: 20px; left: 20px; z-index: 2000; display: flex; flex-direction: column; align-items: flex-start; }
.toast { font-family: 'Cairo', Arial, sans-serif; background-color: #1a1a1a; color: #ffffff; padding: 15px 25px; border-radius: 8px; margin-bottom: 10px; font-weight: bold; box-shadow: 0 4px 8px rgba(0,0,0,0.2); opacity: 0; animation: fadeinout 4s forwards; }
@keyframes fadeinout { 10% { opacity: 1; transform: translateX(0); } 90% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(20px); } }

/* --- تصميم صفحة إتمام الشراء --- */
.checkout-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: flex-start; }
.customer-details, .order-summary { background-color: #f8f9fa; border: 1px solid #e0e0e0; padding: 25px; border-radius: 8px; }
.customer-details h2, .order-summary h2 { text-align: center; margin-top: 0; border-bottom: 1px solid #e0e0e0; padding-bottom: 15px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    color: #333333;
    padding: 12px 15px;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-family: inherit;
    font-size: 16px;
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
    padding-left: 2.5rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #1a1a1a; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.summary-item { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.summary-total { display: flex; justify-content: space-between; font-size: 20px; border-top: 1px solid #e0e0e0; padding-top: 15px; margin-top: 15px; }
.confirm-order-btn:hover:not(:disabled) { transform: scale(1.02); }
.confirm-order-btn:disabled { background-color: #e9ecef; color: #adb5bd; border-color: #e9ecef; cursor: not-allowed; }
.error-message { color: #e74c3c; font-size: 13px; margin-top: 5px; display: none; }
.form-group input.invalid, .form-group textarea.invalid { border-color: #e74c3c; }


/* --- تصميم الصفحات الثابتة ولوحة التحكم --- */
.static-page-container, .admin-page-container { background-color: #ffffff; padding: 40px; border-radius: 8px; max-width: 900px; margin: 40px auto; border: 1px solid #e0e0e0; }
.about-content p, .contact-info p { font-size: 18px; line-height: 1.8; margin-bottom: 20px; }
.about-content h2, .contact-info h2, .contact-form-container h2, .admin-section h2 { font-size: 28px; color: #1a1a1a; margin-top: 40px; margin-bottom: 20px; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; }
.admin-section h2 { margin-top: 0; }
.about-content ul, .contact-info ul { list-style: none; padding-right: 20px; margin-bottom: 20px; }
.about-content ul li, .contact-info ul li { font-size: 18px; margin-bottom: 15px; position: relative; }
.about-content ul li::before { content: '✓'; color: #1a1a1a; position: absolute; right: -25px; }
.contact-info ul li strong { color: #1a1a1a; }
.contact-info ul li a { color: #333333; text-decoration: none; transition: color 0.3s; }
.contact-info ul li a:hover { color: #000000; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #1a1a1a; padding-bottom: 15px; margin-bottom: 30px; }

/* --- Accordion Styles for Admin Page --- */
.admin-accordion { width: 100%; }
.admin-section { margin-bottom: 40px; }
.accordion-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}
.accordion-header {
    background-color: #f8f9fa;
    color: #333333;
    cursor: pointer;
    padding: 18px 25px;
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    text-align: right;
    outline: none;
    font-size: 20px;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-item:last-child .accordion-header { border-bottom: none; }
.accordion-header:hover, .accordion-header.active { background-color: #e9ecef; }
.accordion-header span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-grow: 1; }
.accordion-header .accordion-icon {
    font-size: 28px;
    font-weight: 300;
    color: #1a1a1a;
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
    margin-right: 15px;
}
.accordion-header.active .accordion-icon { transform: rotate(45deg); }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: transparent;
    padding: 0 25px;
}
.accordion-content.active {
    padding: 25px;
}

/* --- Spinner Styles --- */
.spinner-container { display: flex; justify-content: center; align-items: center; padding: 50px; width: 100%; min-height: 200px; }
.spinner {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #1a1a1a;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* --- أكواد التصميم المتجاوب (Responsive) --- */
@media (max-width: 992px) { 
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .checkout-layout, .cart-layout, .contact-layout { grid-template-columns: 1fr; } 
    .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 768px) { 
    .navbar { flex-wrap: nowrap; } 
    .nav-section.middle { flex-grow: 1; text-align: center; } 
    .nav-section.right { flex-basis: 33%; justify-content: flex-start; }
    .nav-section.left { 
        flex-basis: 33%; 
        justify-content: flex-end; 
        gap: 10px; 
        align-items: center;
    }
    .logo { font-size: 15px; } 
    .search-container { display: none; } 
    .search-toggle-btn { display: block; } 
    .main-header.menu-is-open .expanded-links {
        display: flex;
        left: 0;
    }
    .search-overlay { position: absolute; top: 100%; left: 0; width: 100%; background-color: rgba(255,255,255,0.95); padding: 15px 5%; box-sizing: border-box; box-shadow: 0 4px 8px rgba(0,0,0,0.1); display: none; } 
    .main-header.search-active .search-overlay { display: block; } 
    #mobile-search-bar { 
        font-family: 'Cairo', Arial, sans-serif; 
        width: 100%; 
        background-color: #f1f3f5; 
        border: 1px solid #1a1a1a; 
        color: #333333; 
        padding: 12px 15px; 
        border-radius: 20px;
        outline: none; 
    } 
    .product-detail-layout { grid-template-columns: 1fr; } 
    .product-title-large { font-size: 32px; } 
    .slider-btn { padding: 10px; font-size: 20px; } 
    .admin-controls { flex-direction: column; align-items: stretch; }
    .product-card .btn {
        padding: 8px 20px;
        font-size: 12px;
    }
    .admin-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .size-stock-row input {
        flex-basis: 0;
    }
    .size-stock-row .size-name-input {
        flex-grow: 3;
    }
    .size-stock-row .size-stock-input {
        flex-grow: 2;
    }
}

@media (max-width: 500px) {
.product-grid { 
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10%; /* <<< هذا هو السطر المضاف */
}
    .page-content { padding: 20px 3%; }
    .cart-item { flex-direction: column; align-items: center; text-align: center; }
    .cart-item-price { margin: 10px 0; }
    .cart-item-quantity { justify-content: center; } 
}


/* --- إدارة المنتجات (صفحة الأدمن) --- */
.admin-controls { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 20px; flex-wrap: wrap; gap: 20px; }
.admin-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn { 
    background-color: transparent; 
    border: 1px solid #ced4da; 
    color: #333333; 
    padding: 8px 16px; 
    border-radius: 4px; 
    cursor: pointer; font-weight: bold; 
    transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.filter-btn:hover { background-color: #f1f3f5; border-color: #1a1a1a; }
.filter-btn.active { background-color: #1a1a1a; color: #ffffff; border-color: #1a1a1a; }
.admin-search input[type="search"] { background-color: #f1f3f5; border: 1px solid #ced4da; color: #333333; padding: 8px 15px; border-radius: 4px; width: 250px; }
.admin-search input[type="search"]:focus { outline: none; border-color: #1a1a1a; }
#manage-products-list, #deleted-products-list, #manage-orders-list { border-top: 1px solid #e0e0e0; margin-top: 20px; padding-top: 20px; }
.managed-product-item { display: flex; justify-content: space-between; align-items: center; background-color: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.managed-product-info { font-size: 18px; }
.managed-product-info span { color: #1a1a1a; font-weight: bold; }
.managed-product-controls { display: flex; gap: 10px; }
.btn-edit, .btn-delete, .btn-restore { padding: 8px 15px; font-size: 14px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: background-color 0.3s, transform 0.2s; }
.btn-edit { background-color: #ffc107; color: #000; }
.btn-edit:hover { background-color: #e0a800; transform: scale(1.05); }
.btn-delete { background-color: #dc3545; color: #ffffff; }
.btn-delete:hover { background-color: #c82333; transform: scale(1.05); }
.btn-restore { background-color: #28a745; color: #ffffff; }
.btn-restore:hover { background-color: #218838; transform: scale(1.05); }
.managed-order-item { display: flex; justify-content: space-between; align-items: center; background-color: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 15px; flex-wrap: wrap; gap: 15px; border-right: 4px solid #1a1a1a; }
.managed-order-info { display: flex; flex-wrap: wrap; gap: 25px; font-size: 16px; align-items: center; }
.managed-order-info p { margin: 0; }
.managed-order-info strong { color: #555; margin-left: 8px; }
.managed-order-info span { color: #333; font-weight: normal; }
.managed-order-info span.status { background-color: #ffc107; color: #000; padding: 4px 10px; border-radius: 4px; font-weight: bold; font-size: 14px; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1100; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; }
.modal-overlay.active { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
.modal-content { background-color: #ffffff; padding: 30px; border-radius: 10px; width: 90%; max-width: 700px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 10px 30px -15px rgba(0,0,0, 0.3); transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close-btn { position: absolute; top: 15px; left: 20px; background: none; border: none; font-size: 32px; color: #868e96; cursor: pointer; line-height: 1; transition: color 0.3s ease, transform 0.2s ease; }
.modal-close-btn:hover { color: #1a1a1a; transform: rotate(90deg); }
.modal-content h3 { color: #1a1a1a; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; margin-top: 0; margin-bottom: 20px; font-size: 24px; }
.order-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; margin-bottom: 25px; }
.order-details-grid p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.order-details-grid strong { color: #555; display: block; margin-bottom: 5px; font-size: 14px; }
.order-products-table { width: 100%; border-collapse: collapse; margin-bottom: 25px; }
.order-products-table th, .order-products-table td { padding: 12px 10px; text-align: right; border-bottom: 1px solid #e0e0e0; }
.order-products-table th { color: #1a1a1a; font-size: 14px; }
.order-products-table tr:last-child td { border-bottom: none; }
.order-products-table .product-link-in-modal {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    color: #1a1a1a;
    background-color: transparent;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}
.order-products-table .product-link-in-modal:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    transform: translateY(-1px);
}
.status-update-form { display: flex; align-items: center; gap: 15px; padding: 20px; background-color: #f8f9fa; border-radius: 8px; margin-top: 25px; }
.status-update-form label { font-weight: bold; font-size: 16px; color: #333; }
.status-update-form select { font-family: 'Cairo', Arial, sans-serif; flex-grow: 1; background-color: #ffffff; border: 1px solid #ced4da; color: #333; padding: 10px; border-radius: 4px; font-size: 16px; }
.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(26, 26, 26, 0.9); /* لون أسود شبه شفاف واحترافي */
    color: white;
    padding: 6px 12px; /* تعديل بسيط للمسافات */
    font-size: 12px; /* تصغير الخط قليلاً ليتناسب مع الشكل الجديد */
    font-weight: bold;
    border-radius: 20px; /* درجة دائرية عالية لعمل شكل الكبسولة */
    z-index: 10;
    letter-spacing: 0.5px; /* مسافة بسيطة بين الحروف لشكل أفضل */
}
.product-card.out-of-stock img { filter: grayscale(80%); }
#sizes-stock-container { display: flex; flex-direction: column; gap: 15px; padding: 15px; background-color: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 4px; }
.size-stock-row { display: flex; align-items: center; gap: 10px; }
.size-stock-row input { width: auto; flex: 1; }
.remove-size-btn { background-color: #dc3545; color: white; border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 20px; font-weight: bold; cursor: pointer; line-height: 30px; padding: 0; text-align: center; transition: background-color 0.3s ease, transform 0.2s ease; }
.remove-size-btn:hover { background-color: #c82333; transform: scale(1.1); }
#add-size-btn { font-weight: bold; }

.coupon-section {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}
.coupon-input-group { display: flex; gap: 10px; }
.coupon-input-group input { flex-grow: 1; margin: 0; }
.coupon-input-group button { flex-shrink: 0; border-radius: 4px; padding: 10px 15px; line-height: normal; height: auto; }
.coupon-message { display: block; margin-top: 10px; font-size: 14px; font-weight: bold; }
.summary-details { margin-top: 20px; }
.summary-details .summary-row { margin-bottom: 10px; font-size: 16px; }
.info-grid { display: flex; flex-direction: column; gap: 15px; }
.info-item {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 10px;
}
.info-label { color: #555; font-size: 16px; }
.info-value { color: #1a1a1a; font-size: 18px; font-weight: bold; }
.managed-order-item .managed-product-controls .btn { padding: 6px 12px; font-size: 13px; white-space: nowrap; }

.footer-story {
    max-width: 600px; 
    margin: 0 auto 30px auto; 
    text-align: center;
}
.footer-story h3 {
    font-size: 22px;
    color: #1a1a1a; 
    margin-bottom: 10px;
}
.footer-story p {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}
/* --- أكواد دليل المقاسات --- */
.size-guide-container {
    margin-top: -15px; 
    margin-bottom: 30px;
}

#open-size-guide-btn {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: normal;
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: center;
}

.size-guide-table th, .size-guide-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    font-size: 16px;
}

.size-guide-table th {
    background-color: #f8f9fa;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
}
/* --- بداية: أكواد تصميم فورم التواصل الجديدة --- */

/* 1. الحاوية الرئيسية للفورم */
.contact-form-container {
    max-width: 550px; /* بنصغر أقصى عرض للفورم عشان ميكونش طويل أوي */
    margin: 60px auto; /* بنحط الفورم في نص الصفحة مع مسافة من فوق وتحت */
    padding: 40px; /* مسافة داخلية مريحة للعين */
    background-color: #ffffff; /* خلفية بيضاء ونظيفة */
    border-radius: 15px; /* حواف دائرية زي ما طلبت */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* ظل خفيف وناعم */
    border: 1px solid #e9ecef;
}

.contact-form-container h2 {
    text-align: center;
    border: none;
    margin-bottom: 30px;
    font-size: 28px; /* بنكبر العنوان الرئيسي شوية */
    color: #343a40;
}

/* 2. الحقول نفسها (Inputs & Textarea) */
.contact-form-container .form-group input,
.contact-form-container .form-group textarea {
    width: 100%;
    border: 1px solid #ced4da;
    background-color: #f8f9fa; /* لون رمادي فاتح جدًا للحقل */
    padding: 15px;
    border-radius: 10px; /* حواف دائرية للحقول */
    font-size: 16px;
    color: #495057;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* حركة ناعمة */
}

/* بنغير شكل الـ placeholder نفسه */
.contact-form-container .form-group ::placeholder {
    color: #999;
    font-family: 'Cairo', sans-serif;
}

/* دي بقى من الحاجات الحلوة: لما المستخدم يضغط على الحقل */
.contact-form-container .form-group input:focus,
.contact-form-container .form-group textarea:focus {
    outline: none; /* بنشيل الخط الأزرق اللي بيظهر تلقائي */
    border-color: #1a1a1a; /* لون الحدود بيتغير للأسود */
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1); /* بنضيف ظل خفيف حوالين الحقل */
    background-color: #fff;
}

.contact-form-container .form-group textarea {
    resize: vertical; /* بنسمح للمستخدم يكبر مربع الرسالة بالطول بس */
    min-height: 130px;
}

/* 3. زر الإرسال (Send Message Button) */
#contact-submit-btn {
    border-radius: 10px; /* نفس درجة دائرية الحقول */
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px; /* مسافة بسيطة بين الحروف */
    transition: all 0.3s ease; /* حركة ناعمة لكل حاجة */
}

/* حركة بسيطة لما الماوس يجي على الزرار */
#contact-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px); /* الزرار بيترفع لفوق شوية */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* الظل بتاعه بيزيد */
}

/* --- نهاية: أكواد تصميم فورم التواصل الجديدة --- */
/* --- بداية: أكواد تصغير وتدوير زراير الشراء على الموبايل --- */

@media (max-width: 576px) {
  
    /*
      الكود ده هيشتغل على الزرارين بس
      من غير ما يغير أماكنهم أو يخليهم تحت بعض.
    */
    .product-actions-container .add-to-cart-btn,
    .product-actions-container #buy-now-btn {
        font-size: 14px;      /* صغرنا حجم الخط */
        padding: 12px 18px;   /* صغرنا الـ padding عشان حجم الزرار يقل */
        border-radius: 30px;  /* زودنا دائرية الحواف جدًا عشان ياخد الشكل الدائري */
    }
}

/* --- نهاية: الأكواد --- */
/* --- بداية: أكواد تنسيق معرض الصور الجديد (SwiperJS) --- */

/* --- بداية: أكواد تنسيق معرض الصور الجديد (SwiperJS) --- */

.product-image-gallery { 
    position: relative; 
    width: 100%; 
    overflow: hidden; 
    border-radius: 8px; 
}

/* تنسيق السلايدر الرئيسي */
.main-image-swiper {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* بنحافظ على شكل الصورة المربع */
    margin-bottom: 10px;
    border-radius: 8px; /* لمسة جمالية للحواف */
    overflow: hidden;
}

.main-image-swiper .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* تنسيق الأسهم الجديدة */
.main-image-swiper .swiper-button-next,
.main-image-swiper .swiper-button-prev {
    color: #fff !important; /* لون السهم أبيض */
    background-color: rgba(0, 0, 0, 0.3); /* خلفية داكنة شفافة */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.main-image-swiper .swiper-button-next:hover,
.main-image-swiper .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.main-image-swiper .swiper-button-next::after,
.main-image-swiper .swiper-button-prev::after {
    font-size: 18px !important; /* تصغير حجم أيقونة السهم */
    font-weight: bold;
}

/* --- بداية التعديل المهم هنا --- */
/* تنسيق سلايدر الصور المصغرة */
.thumbnail-swiper {
    height: 45px; /* بنديله ارتفاع ثابت وواضح بالبيكسل  */
    box-sizing: border-box;
    padding: 5px 0;
}
/* --- نهاية التعديل المهم هنا --- */

.thumbnail-swiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.5; /* الصور غير النشطة تكون باهتة */
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent; /* بنضيف إطار شفاف */
}

.thumbnail-swiper .swiper-slide:hover {
    opacity: 0.8;
}

.thumbnail-swiper .swiper-slide-thumb-active {
    opacity: 1; /* الصورة النشطة تكون واضحة */
    border-color: #1a1a1a; 
}

.thumbnail-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* <<< الحل هنا */
}
.about-tagline {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.about-tagline p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.about-tagline ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-tagline li {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.8;
}
/* --- بداية: تنسيقات أداة رفع الصور --- */
.image-uploader {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
}
.image-uploader input[type="file"] {
    display: none; /* بنخفي الزرار الأصلي القبيح */
}
.image-uploader .upload-btn {
    display: inline-block;
    cursor: pointer;
    font-weight: normal;
    padding: 10px 15px;
}
.image-uploader small {
    display: block;
    margin-top: 10px;
    color: #6c757d;
}
.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}
.image-preview {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ced4da;
    background-color: #e9ecef;
}
.image-preview.loading span {
    font-size: 11px;
    text-align: center;
    padding: 5px;
    word-break: break-all;
}
.image-preview.error {
    background-color: #f8d7da;
    color: #721c24;
    font-size: 14px;
    font-weight: bold;
}
.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.delete-img-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border: none;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.image-preview:hover .delete-img-btn {
    opacity: 1;
}
/* --- نهاية: تنسيقات أداة رفع الصور --- */
/* --- بداية: تنسيقات قسم طريقة الدفع --- */
.payment-method-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.payment-method-section h4 {
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.payment-option.selected {
    border-color: #1a1a1a;
    background-color: #ffffff;
}

.payment-icon {
    font-size: 24px;
    margin-right: 15px;
}

.payment-name {
    font-weight: bold;
    color: #1a1a1a;
    flex-grow: 1; /* عشان ياخد باقي المساحة */
}

.payment-check {
    font-size: 20px;
    color: #28a745; /* لون أخضر */
}

.payment-note {
    font-size: 13px;
    color: #6c757d;
    text-align: center;
    margin-top: 10px;
}
/* --- نهاية: تنسيقات قسم طريقة الدفع --- */
/* --- بداية: تنسيقات سعر المقارنة --- */

/* تعديل بسيط على الحاوية عشان تظبط المسافات */
.product-price, .product-price-large {
    display: flex;
    align-items: center;
    justify-content: center; /* توسيط السعرين في الكارت */
    flex-wrap: wrap; /* عشان لو الشاشة ضيقة ينزلوا تحت بعض */
    gap: 10px; /* مسافة بين السعرين */
}

/* تنسيق السعر القديم (المشطوب عليه) */
.compare-price {
    color: #868e96; /* لون رمادي باهت */
    text-decoration: line-through;
    font-size: 0.8em; /* حجمه أصغر من السعر الحالي */
}

/* بنكبر الخط المشطوب عليه شوية في صفحة تفاصيل المنتج */
.product-price-large .compare-price {
    font-size: 0.7em;
}

/* --- نهاية: تنسيقات سعر المقارنة --- */
/* --- بداية: تنسيقات كروت الإحصائيات الجديدة --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0; /* يمنع الأيقونة من الانكماش */
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

.stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}
/* --- نهاية: تنسيقات كروت الإحصائيات الجديدة --- */
/* --- بداية: تنسيقات لوحة التحكم الجديدة --- */
.admin-body {
    background-color: #f8f9fa; /* تغيير لون خلفية الصفحة */
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr; /* القائمة الجانبية والمحتوى */
    min-height: 100vh;
}

/* --- القائمة الجانبية --- */
.admin-sidebar {
    background-color: #ffffff;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-header {
    padding: 0 25px 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.sidebar-header .logo {
    font-size: 24px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link, .sidebar-link-secondary {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    border-right: 4px solid transparent;
    transition: all 0.2s ease-in-out;
}

.sidebar-link:hover {
    background-color: #f8f9fa;
    color: #1a1a1a;
}

.sidebar-link.active {
    border-right-color: #1a1a1a;
    background-color: #f1f3f5;
    color: #1a1a1a;
}

.sidebar-link-secondary {
    margin-top: 30px;
    color: #555;
    font-weight: normal;
}

/* --- المحتوى الرئيسي --- */
.admin-main-content {
    padding: 25px;
    overflow-y: auto; /* للسماح بالاسكرول داخل المحتوى فقط */
}

.admin-content-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.admin-content-header h1 {
    margin: 0;
    font-size: 28px;
    border: none; /* إزالة الخط السفلي من العناوين */
}

#sidebar-toggle-btn {
    display: none; /* سيتم إظهاره في شاشات الموبايل فقط */
    font-size: 24px;
    background: none;
    border: 1px solid #ced4da;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* --- الأقسام الداخلية --- */
.admin-panel {
    display: none; /* كل الأقسام مخفية بشكل افتراضي */
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.admin-panel.active {
    display: block; /* القسم النشط فقط هو الذي يظهر */
}

/* --- تعديلات على التصميم المتجاوب (Responsive) --- */
@media (max-width: 992px) {
    .admin-layout {
        grid-template-columns: 1fr; /* تحويل الشبكة لعمود واحد */
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100%;
        transform: translateX(260px); /* إخفاء القائمة خارج الشاشة */
        transition: transform 0.3s ease;
        z-index: 1200;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .admin-sidebar.open {
        transform: translateX(0); /* إظهار القائمة */
    }

    #sidebar-toggle-btn {
        display: block; /* إظهار زر القائمة */
    }
}
/* --- نهاية: تنسيقات لوحة التحكم الجديدة --- */