/* 1. الخلفية العامة للمتجر */
body, 
.main-wrapper, 
section.main-content {
    background-color: #fef8df !important;
}

/* 2. تنسيق الفوتر */
.store-footer {
    background-color: #a6964c !important;
    border-radius: 50px 50px 0 0 !important;
    padding-top: 40px !important;
    color: #fef8df !important;
    overflow: hidden;
}

.store-footer *, 
.store-footer p, 
.store-footer a, 
.store-footer span, 
.store-footer h1, 
.store-footer h2, 
.store-footer h3, 
.store-footer h4 {
    color: #fef8df !important;
}

/* 3. تنسيق البانر الهيرو والموضع */
section.s-block--fixed-banner {
    margin-top: -17px !important; 
    padding-top: 0 !important;
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
}

.s-block--fixed-banner .container,
.s-block--fixed-banner .banner--fixed {
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    display: block !important;
    position: relative !important;
}

.banner--fixed img {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
}

/* 4. إزاحة العناصر تحت البانر لمنع التداخل */
section.s-block--fixed-banner + .s-block,
section.s-block--fixed-banner + section,
div[class*="s-block-categories"] {
    margin-top: 30px !important; 
    position: relative !important;
    z-index: 20 !important;
    clear: both !important;
    display: block !important;
}

header.main-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 5. حل مشكلة الفراغات في كاردات المنتجات (تعديل الـ box-sizing) */
.product-entry .product-entry_image a.relative,
.product-entry .product-entry_image {
    height: auto !important;
    aspect-ratio: auto !important;
    display: block !important;
    /* تحويل طريقة حساب الأبعاد لإلغاء الهوامش الإجبارية */
    box-sizing: content-box !important; 
}

.product-entry_image {
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    height: auto !important;
    box-sizing: content-box !important;
}

.product-entry_image img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: 220px !important; 
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
}

/* إخفاء أي طبقات خلفية بيضاء قد تظهر بسبب الـ box-sizing القديم */
.product-entry_image::before, 
.product-entry_image::after {
    display: none !important;
}
****
/* استهداف مباشر للكلاسات اللي بعتها لكسر الارتفاع الثابت */
.product-entry > div > a, 
.product-entry .product-slider, 
.product-entry .s-slider-wrapper, 
.product-entry .s-slider-container {
    height: auto !important;
    min-height: 0 !important;
    box-sizing: content-box !important;
    display: block !important;
}

/* إجبار حاوية الصورة إنها تلم على محتواها */
.product-entry_image, 
.product-entry_image a {
    height: auto !important;
    padding: 0 !important;
    box-sizing: content-box !important;
}

/* ضبط مقاس الصورة عشان الكارد يقصر */
.product-entry_image img {
    max-height: 200px !important; /* قلل الرقم ده لو عاوز الكارد يقصر أكتر */
    width: 100% !important;
    object-fit: contain !important;
    display: block !important;
}