*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    padding: 20px;
    background-color: #f8f8f8;
    color: #475569;
}
section .product-container img{
    max-width: 100%;
    height: 600px;
}
.product-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 10px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 30px;
    background-color: #ffffff;
}
.section-box{
    line-height: 1.6;
}
.product-card-right{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    padding: 30px;
    margin: 10px;
}
.title{
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0766eb;
    padding: 5px;
}
section h2{
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a56aa;
    padding: 5px;
}
.product-card-right h3{
    margin: 10px 0px;
    font-size: 20px;
    color: #18478a;

}
.price{
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row-reverse;
    background-color: #ffffff;
    margin: 10px;
    padding: 30px 55px;
}
.price p{
    margin: 10px 0px;
    font-size: 20px;
    color: #FFFFFF;
    background-color: #1a365d;
    padding: 15px;
    border-radius: 5px;
}
.price button{
    position: relative;
    bottom: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    margin: 30px 0px 0px 0px;
    width: fit-content;
    height: 60px;
    font-size: 20px;
    color: #18478a;
    text-decoration: none;
    background-color: #FFFFFF;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #18478a;
    transition: background-color 0.3s, color 0.3s, transform 0.4s;
}
.price button:hover{
    background-color: #18478a;
    color: #FFFFFF;
    transform: scale(1.15);
    transform: translateY(-6px);
}
.card-livreson{
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    padding: 30px;
    margin: 10px;
}
@media (max-width: 768px) {
    .main {
        grid-template-columns: 1fr;
    }
    section .product-container img{
        width: 100%;
        height: auto;
    }
    .product-container {
        padding: 20px;
    }
    .product-card-right {
        padding: 20px;
    }
    .price {
        flex-direction: column;
        align-items: center;
    }
    .price p {
        text-align: center;
        margin-bottom: 10px;
        font-size: 18px;
        width: 85%;
    }
    .price button {
        width: 85%;
        margin-top: 15px;
        font-size: 18px;
    }
    .card-livreson {
        padding: 20px;
    }
    .section-box {
        padding: 10px;
    }
    .title, section h2 {
        font-size: 20px;
    }
    .product-card-right h3 {
        font-size: 18px;
    }
    .product-container img {
        height: 400px;
    }
    .section-title{
        font-size: 22px !important;
        text-align: center !important;
    }
}
.btn-add-cart , .btn-ok{
    background-color: #0ea5e9;
    width: 55%;
    height: auto;
    position: static;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 8px;
}
.btn-add-cart:hover{
    background-color: #0766eb;
    transform: translateY(-3px);
}

/* ========================================= */
/* --- PRO PRODUCT PAGE REDESIGN (LIGHT THEME) --- */
/* ========================================= */

/* 1. الخلفية العامة والنصوص الأساسية */
.pro-product-page {
    padding-bottom: 80px;
    /* خلفية فاتحة لكن ليست بيضاء ساطعة (رمادي فاتح جداً مائل للأزرق) */
    background-color: #f1f5f9; 
    color: #334155; /* لون النص الأساسي رصاصي داكن */
}

/* 2. Breadcrumb (شريط المسار) */
.breadcrumb {
    padding: 20px 0;
    color: #64748b; /* رمادي متوسط */
    font-size: 0.9rem;
}
.breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: #0ea5e9; /* لون التمييز الأزرق عند التحويم */ }
.breadcrumb .current {
    color: #1e293b; /* لون داكن للمكان الحالي */
    font-weight: 600;
    margin-left: 5px;
}

/* 3. Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 45% 50%;
    gap: 5%;
    align-items: start;
    margin-top: 20px;
}

/* 4. Visual Column (Image Container) */
.visual-column {
    position: sticky;
    top: 100px;
}

.image-wrapper {
    /* جعل الحاوية بيضاء لتبرز عن الخلفية الرمادية الفاتحة */
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    /* حدود فاتحة جداً */
    border: 1px solid #e2e8f0;
    position: relative;
    /* ظل خفيف جداً وناعم */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}
/* إزالة تأثير التوهج القديم لأنه لا يناسب التصميم الفاتح */
.glow-effect { display: none; }


/* 5. Info Column (تفاصيل المنتج) */
.product-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 15px 0;
    color: #1e293b; /* عنوان داكن */
    font-weight: 800;
}

.badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* تحديث ألوان الشارات لتناسب الخلفية الفاتحة */
.badge.new { background: #e0f2fe; color: #0284c7; }
.badge.refurbished { background: #fef3c7; color: #d97706; }
.badge.used { background: #f1f5f9; color: #475569; }


.product-price {
    font-size: 2.5rem;
    color: #0ea5e9; /* الحفاظ على الأزرق المميز للسعر */
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.product-price .unit {
    font-size: 1rem;
    color: #64748b; /* العملة بلون رمادي */
    font-weight: 400;
}

.short-desc {
    font-size: 1.05rem;
    color: #475569; /* نص الوصف رمادي مريح للقراءة */
    line-height: 1.7;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0; /* خط فاصل فاتح */
    padding-bottom: 30px;
}

/* زر الشراء (تحديث ليكون أكثر وضوحاً) */
.add-to-cart-btn{
    background: #0ea5e9;
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.add-to-cart-btn:hover {
    background: #0284c7; /* درجة أغمق عند التحويم */
    transform: translateY(-2px);
}
/* إزالة الأنيميشن للنبض ليكون التصميم أكثر هدوءاً واحترافية */


/* 6. Tech Specs Grid (تصحيح الألوان الغامقة والأيقونات) */
.tech-specs-container {
    margin-top: 40px;
}
.specs-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1e293b; /* عنوان داكن */
    font-weight: 700;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.spec-item {
    /* خلفية بيضاء للبطاقة لتمييزها */
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    /* حدود فاتحة */
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    /* ظل خفيف */
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}
.spec-item:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

/* تصحيح لون الأيقونة */
.spec-item i {
    font-size: 1.4rem;
    color: #0284c7; /* أزرق داكن احترافي بدلاً من النيون */
    background: #e0f2fe; /* خلفية زرقاء فاتحة جداً للأيقونة */
    padding: 10px;
    border-radius: 10px;
}

.spec-item strong {
    display: block;
    color: #334155; /* عنوان المواصفة داكن */
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.spec-item span {
    font-size: 0.85rem;
    color: #64748b; /* قيمة المواصفة رمادي متوسط */
    line-height: 1.4;
    display: block;
}

/* 7. Related Section (توضيح القسم السفلي) */
.related-section {
    margin-top: 80px;
    /* خط فاصل علوي فاتح */
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
}
.related-title {
    margin-bottom: 30px;
    font-size: 1.6rem;
    color: #1e293b;
    font-weight: 700;
}

/* تحديث بطاقات المنتجات ذات الصلة لتتناسب مع التصميم الفاتح */
/* ملاحظة: هذا سيعتمد على كلاس .product-card الموجود لديك */
/* سنقوم بعمل Override بسيط هنا لضمان ظهورها بشكل جيد في هذه الصفحة */
.related-section .product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.related-section .product-card h3 {
    color: #1e293b;
}
.related-section .product-card .price {
    color: #0ea5e9;
}
.related-section .product-card a {
    background-color: #f1f5f9;
    color: #334155;
}
.related-section .product-card a:hover {
    background-color: #1e293b;
    color: #ffffff;
}


/* Responsive */
@media (max-width: 900px) {
    .main-grid { grid-template-columns: 1fr; gap: 30px; }
    .visual-column { position: static; }
    .image-wrapper { padding: 20px; }
    .product-header h1 { font-size: 2rem; }
    .specs-grid { grid-template-columns: 1fr; }
}


/* basket shop style */
/* ========================================= */
/* === تنسيقات السلة الجديدة - نظيفة وبسيطة === */
/* ========================================= */

/* 1. الخلفية المعتمة */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

/* 2. النافذة الجانبية الرئيسية */
#sidebar {
    position: fixed;
    top: 0;
    right: -550px;
    width: 100%;
    max-width: 550px;
    height: 100vh;
    background: #f1f5f9; /* رمادي فاتح */
    z-index: 2000;
    padding: 0;
    color: #1e293b; /* أزرق داكن للكتابة */
    overflow-y: auto;
    transition: right 0.3s ease;
}

/* 3. رأس بسيط - أيقونة إغلاق فقط */
.sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    background: white;
    border-bottom: 2px solid #f59e0b; /* برتقالي */
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #64748b;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    padding: 0;
}

.close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* 4. عنوان السلة (نص عادي) */
.cart-title {
    padding: 20px;
    margin: 0 5px 10px 5px;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
}

/* 5. محتوى السلة */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f1f5f9;
}

/* 6. تنسيق كل منتج - بسيط ومرتب */
.cart-product {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* 7. صفقة المنتج (الصورة والمعلومات) */
.product-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.product-row img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #f1f5f9;
}

.product-info {
    flex: 1;
}

.product-name {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.product-price {
    color: #475569;
    font-weight: bold;
    font-size: 1rem;
    margin: 0 0 15px 0;
}

/* 8. سطر التحكم بالكمية - مرتب */
.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* 9. أزرار الكمية */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    position: static;
}

.qty-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.qty-value {
    color: #1e293b;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 40px;
    text-align: center;
}

/* 10. السعر الكلي للحبة وأيقونة الحذف */
.price-delete {
    display: flex;
    align-items: center;
    gap: 20px;
}

.item-total-price {
    color: #1e293b;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0;
}

.delete-icon {
    color: #ef4444;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s;
}

.delete-icon:hover {
    background: #fee2e2;
}

/* 11. السعر الكلي */
.summary-totals {
    background: white;
    padding: 5px;
    margin: 20px 0;
    border-radius: 10px;
    border: 2px solid #f59e0b;
    display: flex;
    justify-content: center;
    align-items: center;
}

.total-line {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    width: 90%;
    padding: 15px 10px;
}

#finalTotal {
    color: #1e293b;
    font-size: 1.6rem;
    font-weight: 800;
}

/* 12. نموذج الطلب */
.sidebar-footer-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px solid #e2e8f0;
}

.form-title {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

/* 13. حقول الإدخال - مع ظلال برتقالية */
.form-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.1); /* ظل برتقالي خفيف */
}

.form-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-input::placeholder {
    color: #94a3b8;
}

/* 14. زر تأكيد الطلب */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: #f59e0b; /* برتقالي */
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); /* ظل برتقالي */
    position: static;
}

.submit-btn:hover {
    background: #e58e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* 15. زر السلة العائم */
.floating-cart {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #f59e0b;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
    border: 4px solid white;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #1e293b;
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid white;
}

/* 16. رسالة السلة الفارغة */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 1.1rem;
}

/* 17. تحسين التمرير */
.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 4px;
}

/* 18. للشاشات الصغيرة */
@media (max-width: 768px) {
    #sidebar {
        max-width: 100%;
        right: -100%;
    }
    
    .floating-cart {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        bottom: 20px;
        left: 20px;
    }
    
    .product-row {
        flex-direction: column;
        text-align: center;
    }
    
    .product-row img {
        width: 100%;
        height: 150px;
    }
    
    .control-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .price-delete {
        justify-content: space-between;
    }
}

/* style message add to cart */
/* رسالة تأكيد الإضافة */
#add-confirmation {
    animation: slideUp 0.3s ease-out;
}

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

/* --- تنسيقات محسنة للنافذة الجانبية --- */
/* ========================================= */

.checkout-sidebar {
    position: fixed;
    top: 0;
    right: -450px; /* مخفية خارج الشاشة */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, #1a365d 0%, #0f172a 100%);
    z-index: 2000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: #ffffff;
    overflow-y: auto;
}

.checkout-sidebar.active {
    right: 0;
    display: flex !important;
}

/* رأس النافذة */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.sidebar-header h3 {
    margin: 0;
    color: #f1f5f9;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h3 i {
    color: #0ea5e9;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #94a3b8;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

/* محتوى السلة */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

/* حاوية المنتجات */
#cart-items-container {
    min-height: 220px;
}

/* الخلفية المعتمة */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* نموذج الطلب */


.sidebar-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 0.95rem;
    transition: 0.3s;
}

.sidebar-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-input::placeholder {
    color: #64748b;
}

/* زر التأكيد */
.btn-submit-order {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit-order:hover {
    background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* المجموع الكلي */
.total-line {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 8px;
    text-align: right;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 8px;
}

.total-line span {
    color: #0ea5e9;
    font-size: 1.3rem;
}