*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Cairo',sans-serif;
    background:#0b2b1e;
    color:#fff;
    direction:rtl;
    overflow-x:hidden;
}

/* ================= HEADER ================= */

header{
    position:sticky;
    top:0;
    width:100%;
    background:#10291f;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 60px;
    z-index:1000;
    box-shadow:0 2px 10px rgba(0,0,0,.35);
}

.logo img{
    width:80px;
    height:80px;
    object-fit:cover;
    border-radius:50%;
    border:3px solid #d4b06a;
    background:#fff;
    padding:4px;
}

nav{
    display:flex;
    gap:35px;
}

nav a{
    color:#fff;
    text-decoration:none;
    font-size:20px;
    font-weight:700;
    transition:.3s;
}

nav a:hover,
nav a.active{
    color:#d9b25f;
}

/* ================= CART ICON ================= */

.cart{
    position:relative;
    cursor:pointer;
}

.cart img{
    width:38px;
    height:38px;
    object-fit:contain;
}

#cart-count{
    position:absolute;
    top:-8px;
    left:-8px;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#d9b25f;
    color:#000;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:12px;
    font-weight:bold;
}

/* ================= HERO ================= */

.hero{
    width:100%;
}

.hero img{
    width:100%;
    display:block;
}

/* ================= PRODUCTS ================= */

.products{
    padding:70px 40px;
    background:#0b2b1e;
}

.section-title{
    text-align:center;
    color:#d9b25f;
    font-size:40px;
    margin-bottom:50px;
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.product-card{
    background:#123426;
    border:2px solid #d9b25f;
    border-radius:18px;
    overflow:hidden;
    text-align:center;
    transition:.3s;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 25px rgba(0,0,0,.35);
}

.product-card img{
    width:100%;
    height:280px;
    object-fit:contain;
    background:#fff;
    padding:20px;
}

.product-card h3{
    margin-top:18px;
    font-size:28px;
}

.product-card p{
    color:#d9b25f;
    font-size:24px;
    font-weight:bold;
    margin:12px 0;
}

.product-card span{
    display:block;
    margin-bottom:18px;
    color:#ddd;
}

.add-cart{
    width:100%;
    border:none;
    padding:18px;
    background:#d9b25f;
    color:#123426;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
}/* ================= ABOUT ================= */

.about{
    background:#0b2b1e;
    padding:70px 20px;
    text-align:center;
}

.about-title{
    color:#d9b25f;
    font-size:46px;
    font-weight:800;
    margin-bottom:40px;
}

.about-full{
    width:95%;
    max-width:1200px;
    display:block;
    margin:auto;
    border-radius:18px;
    border:2px solid #d9b25f;
    box-shadow:0 8px 25px rgba(0,0,0,.35);
}

/* ================= CONTACT ================= */

.contact{
    background:#0b2b1e;
    padding:80px 20px;
    text-align:center;
}

.contact-box{
    max-width:1000px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
    flex-wrap:wrap;
    background:#123b2a;
    border:2px solid #d9b25f;
    border-radius:20px;
    padding:35px;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.contact-info{
    flex:1;
    text-align:right;
}

.contact-info h3{
    color:#d9b25f;
    font-size:32px;
    margin-bottom:20px;
}

.contact-info p{
    font-size:22px;
    line-height:2;
}

.contact-info strong{
    color:#d9b25f;
}

.contact-qr{
    width:170px;
    height:170px;
    object-fit:contain;
    background:#fff;
    padding:8px;
    border:4px solid #d9b25f;
    border-radius:18px;
}

/* ================= CART ================= */

.cart-sidebar{
    position:fixed;
    top:0;
    right:-420px;
    width:390px;
    height:100%;
    background:#123b2a;
    box-shadow:-5px 0 20px rgba(0,0,0,.4);
    transition:.35s;
    z-index:9999;
    display:flex;
    flex-direction:column;
}

.cart-sidebar.open{
    right:0;
}

.cart-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px;
    border-bottom:1px solid rgba(255,255,255,.15);
}

.cart-header h2{
    font-size:24px;
}

#close-cart{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#d9b25f;
    color:#123426;
    font-size:22px;
    font-weight:bold;
    cursor:pointer;
}

.cart-items{
    flex:1;
    overflow-y:auto;
    padding:15px;
}

.cart-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#184734;
    border-radius:12px;
    padding:12px;
    margin-bottom:12px;
}

.cart-name{
    font-weight:bold;
    color:#fff;
}

.cart-price{
    color:#d9b25f;
    font-weight:bold;
}

.qty-box{
    display:flex;
    align-items:center;
    gap:8px;
}

.qty-box button{
    width:30px;
    height:30px;
    border:none;
    border-radius:50%;
    background:#d9b25f;
    color:#123426;
    font-weight:bold;
    cursor:pointer;
}

.qty-box span{
    min-width:20px;
    text-align:center;
    font-weight:bold;
}

.cart-footer{
    padding:20px;
    border-top:1px solid rgba(255,255,255,.15);
}

.checkout-btn{
    width:100%;
    padding:15px;
    border:none;
    border-radius:10px;
    background:#d9b25f;
    color:#123426;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
}/* ================= CHECKOUT ================= */

.checkout-form{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.65);
    z-index:10000;
    justify-content:center;
    align-items:center;
}

.checkout-content{
    width:560px;
    max-width:92%;
    max-height:90vh;
    overflow-y:auto;
    background:#fff;
    color:#222;
    border-radius:18px;
    padding:30px;
    position:relative;
}

#close-checkout{
    position:absolute;
    top:15px;
    left:20px;
    font-size:30px;
    cursor:pointer;
    color:#222;
    font-weight:bold;
}

.checkout-content h2{
    text-align:center;
    color:#123426;
    margin-bottom:20px;
}

.checkout-content h3{
    color:#123426;
    margin:20px 0 10px;
}

.checkout-content input,
.checkout-content select,
.checkout-content textarea{
    width:100%;
    padding:12px;
    margin-bottom:12px;
    border:1px solid #ddd;
    border-radius:10px;
    font-family:'Cairo',sans-serif;
    font-size:16px;
}

.checkout-content textarea{
    height:100px;
    resize:vertical;
}

.back-btn{
    width:100%;
    padding:12px;
    margin-bottom:20px;
    border:none;
    border-radius:10px;
    background:#efefef;
    color:#123426;
    font-size:16px;
    font-family:'Cairo',sans-serif;
    cursor:pointer;
}

.back-btn:hover{
    background:#d9b25f;
    color:#fff;
}

.payment-methods{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-bottom:15px;
}

.payment-option{
    background:#f7f7f7;
    border:1px solid #ddd;
    border-radius:10px;
    padding:10px;
    cursor:pointer;
}

.payment-option input{
    width:auto;
    margin-left:8px;
}

.bank-box{
    background:#f8f8f8;
    border:1px solid #ddd;
    border-radius:10px;
    padding:15px;
    margin:15px 0;
}

#payment-text{
    line-height:2;
    color:#222;
}

#copy-payment{
    width:100%;
    margin-top:10px;
    padding:10px;
    border:none;
    border-radius:10px;
    background:#d9b25f;
    color:#123426;
    font-weight:bold;
    cursor:pointer;
}

.upload-label{
    display:block;
    margin:15px 0 8px;
    color:#123426;
    font-weight:bold;
}

#payment-proof{
    margin-bottom:20px;
}

#send-order{
    width:100%;
    padding:15px;
    border:none;
    border-radius:10px;
    background:#123426;
    color:#fff;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
}

#send-order:hover{
    background:#1b4d37;
}/* ================= EMPTY CART ================= */

.empty-cart{
    text-align:center;
    color:#ddd;
    margin-top:50px;
    font-size:18px;
}

/* ================= MOBILE ================= */

@media (max-width:768px){

    header{
        padding:15px 20px;
    }

    nav{
        gap:15px;
    }

    nav a{
        font-size:15px;
    }

    .logo img{
        width:60px;
        height:60px;
    }

    .products{
        padding:50px 15px;
    }

    .section-title,
    .about-title{
        font-size:32px;
    }

    .contact-box{
        flex-direction:column;
        text-align:center;
    }

    .contact-info{
        text-align:center;
    }

    .contact-qr{
        width:140px;
        height:140px;
    }

    .cart-sidebar{
        width:100%;
        right:-100%;
    }

    .payment-methods{
        grid-template-columns:1fr;
    }
}
/* ===========================================
   CHECKOUT PAGE
=========================================== */

.checkout-page{

    background:#f5f8f5;

    min-height:100vh;

    padding:60px 20px;

}

.checkout-container{

    max-width:900px;

    margin:auto;

    background:#fff;

    border-radius:20px;

    padding:40px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.checkout-container h1{

    text-align:center;

    color:#1d4d38;

    margin-bottom:10px;

    font-size:34px;

}

.checkout-text{

    text-align:center;

    color:#666;

    margin-bottom:35px;

}

.form-group{

    margin-bottom:22px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:700;

    color:#1d4d38;

}

.form-group input,
.form-group select,
.form-group textarea{

    width:100%;

    padding:14px;

    border:2px solid #dfe8df;

    border-radius:12px;

    font-size:16px;

    transition:.3s;

    background:#fff;

}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{

    border-color:#2d7a54;

    outline:none;

    box-shadow:0 0 8px rgba(45,122,84,.15);

}

textarea{

    resize:vertical;

    min-height:110px;

}

.payment-title{

    margin:35px 0 20px;

    color:#1d4d38;

    font-size:24px;

}
.payment-methods{

    display:flex;

    flex-direction:column;

    gap:15px;

    margin-bottom:30px;

}

.payment-option{

    display:flex;

    align-items:center;

    gap:12px;

    padding:15px 18px;

    border:2px solid #dfe8df;

    border-radius:12px;

    cursor:pointer;

    transition:.3s;

    background:#fff;

}

.payment-option:hover{

    border-color:#2d7a54;

    background:#f4fbf7;

}

.payment-option input{

    width:20px;

    height:20px;

}

#visa-fields{

    background:#f8faf8;

    border:2px dashed #2d7a54;

    border-radius:15px;

    padding:20px;

    margin-bottom:25px;

}

#order-summary{

    background:#f7faf8;

    border-radius:15px;

    padding:25px;

    margin:30px 0;

}

#order-summary h2{

    color:#1d4d38;

    margin-bottom:20px;

}

.summary-item{

    display:flex;

    justify-content:space-between;

    padding:12px 0;

    border-bottom:1px solid #e8ece8;

}

#checkout-total{

    color:#2d7a54;

    font-size:28px;

    font-weight:bold;

}

.confirm-order{

    width:100%;

    background:#2d7a54;

    color:#fff;

    border:none;

    padding:18px;

    border-radius:14px;

    font-size:20px;

    font-weight:bold;

    cursor:pointer;

    transition:.3s;

}

.confirm-order:hover{

    background:#1d5c3f;

    transform:translateY(-2px);

}

#success-message{

    text-align:center;

    padding:50px 20px;

}

#success-message h2{

    color:#2d7a54;

    font-size:34px;

    margin-bottom:20px;

}

#success-message p{

    font-size:18px;

    margin:12px 0;

    color:#555;

}

#success-message button{

    margin-top:25px;

    background:#2d7a54;

    color:#fff;

    border:none;

    padding:15px 35px;

    border-radius:12px;

    font-size:18px;

    cursor:pointer;

}

#success-message button:hover{

    background:#1d5c3f;

}

@media(max-width:768px){

    .checkout-container{

        padding:25px;

    }

    .checkout-container h1{

        font-size:28px;

    }

    .summary-item{

        flex-direction:column;

        gap:6px;

    }

}
.payment-option label{
    color:#1b6b3a !important;
    font-size:20px;
    font-weight:700;
}

.payment-option span{
    color:#1b6b3a !important;
    font-size:20px;
    font-weight:700;
}

.payment-option p{
    color:#1b6b3a !important;
}

.payment-option{
    color:#1b6b3a !important;
}
/* ==========================================
   EHAB STORE - CHECKOUT FINAL STYLE
========================================== */
/* أسماء المنتجات في ملخص الطلب بالأخضر */
#checkout-items .summary-product-name {
    color: #1b6b3a !important;
    font-weight: 800;
    font-size: 18px;
}
/* تفاصيل الكمية والسعر */
#checkout-items .summary-item span:last-child {
    color: #1b6b3a !important;
    font-weight: 700;
}
/* كل سطر في ملخص الطلب */
#checkout-items .summary-item {
    border-bottom: 1px solid #dce9df;
    padding: 14px 0;
}
/* عنوان الشحن */
.shipping-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    margin-top: 8px;
    border-top: 2px solid #dce9df;
    color: #1b6b3a;
    font-size: 18px;
    font-weight: 800;
}
/* قيمة الشحن */
#shipping-cost {
    color: #1b6b3a !important;
    font-weight: 800;
}
/* الإجمالي النهائي */
#order-summary h3 {
    color: #1b6b3a !important;
    margin-top: 20px;
}
#checkout-total {
    color: #1b6b3a !important;
    font-size: 28px;
    font-weight: 900;
}
/* ==========================================
   بيانات الدفع / رفع صورة التحويل
========================================== */
.payment-info-box {
    background: #f4faf6;
    border: 2px solid #d6e8dc;
    border-radius: 14px;
    padding: 18px;
    margin: 15px 0 25px;
}
.payment-info-box h3 {
    color: #1b6b3a;
    margin-bottom: 10px;
}
.payment-info-box p {
    color: #333;
    line-height: 1.9;
    margin: 5px 0;
}
/* خانات رفع صورة الإيصال */
.receipt-box {
    background: #f8fbf9;
    border: 2px dashed #2d7a54;
    border-radius: 14px;
    padding: 18px;
    margin: 15px 0 25px;
}
.receipt-box label {
    display: block;
    color: #1b6b3a;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
}
.receipt-box input[type="file"] {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #d5e2d8;
    border-radius: 10px;
    cursor: pointer;
}
/* نص توضيحي أسفل رفع الصورة */
.receipt-note {
    color: #777;
    font-size: 14px;
    margin-top: 8px;
}
/* إخفاء بيانات الدفع غير المختارة */
#wallet-payment,
#instapay-payment {
    display: none;
}
/* ==========================================
   موبايل
========================================== */
@media (max-width:768px){
    #checkout-items .summary-product-name {
        font-size: 17px;
    }
    .shipping-row {
        font-size: 16px;
    }
    #checkout-total {
        font-size: 25px;
    }
}