/* Add custom CSS styles below */ 
/* =========================================================
   1. الإعدادات العامة والهيدر (Global & Header)
   ========================================================= */

/* توحيد لون الخلفية للأبيض النظيف */
body, .bg-gray-100 {
    background-color: #fff;
}

/* تنسيق الهيدر العلوي */
header .bg-white {
    background: #fff;
    box-shadow: none;
}
.header-btn__icon {
    border-width: 0;
}
.header-btn__icon.icon:where([dir="rtl"], [dir="rtl"] *) {
    margin-left: 0;
}

/* أيقونات الهيدر (القائمة، السلة، الحساب) بلون GMA الكحلي */
.sicon-menu:before { color: #19154a; margin-right: 0; font-size: 20px; padding: 7px; content: "\e928"; }
.sicon-shopping-bag:before { color: #19154a; font-size: 20px; padding: 7px; content: "\e906"; }
.sicon-user-circle:before { color: #19154a; font-size: 20px; padding: 7px; content: "\f078"; }

/* السلة والبحث */
.s-cart-summary-content { display: none; }
.s-cart-summary-count { background-color: #19154a; color: #fff; }
.rtl\:mr-4:where([dir=rtl], [dir=rtl] *) { margin-right: 0; }

/* شريط البحث */
.top-navbar .s-search-input { background-color: transparent; border: 1px groove #d7cbbd; }
.s-search-icon svg { fill: #19154a; }
.s-search-input-wrapper > input[type=search]::placeholder { color: #19154a; }
salla-search div.s-search-input-wrapper > input { border-radius: 5px !important; }

/* أزرار الهيدر الإضافية */
.header-buttons { background-color: transparent; border: 1px groove #d7cbbd; border-radius: 5px !important; }
.header-buttons span { color: #19154a; }
.header-buttons .btn--rounded-gray { background-color: transparent; }

/* =========================================================
   3. كروت المنتجات والأقسام (Product Cards & Sliders)
   ========================================================= */

/* عناوين الأقسام */
.s-block__title { flex-direction: column; align-items: center; justify-content: center; color: #19154a; }
[dir=rtl] .s-block__title .right-side { padding-left: 0; }
.s-slider-block__title { justify-content: center; display: flex; flex-direction: column; }
.s-slider-block__title h2 { color: #19154a; }
.s-slider-block__title-right:where([dir=rtl], [dir=rtl] *) { padding-left: 0; }
.s-slider-block__title h2:where([dir=rtl], [dir=rtl] *) { padding-left: 0; }
.s-slider-block__display-all, .s-block__display-all { color: #19154a; margin-top: 1rem; }
salla-slider.s-products-slider-slider { margin-bottom: 2.5rem; }

/* تصميم الكرت (البطاقة) */
.s-product-card-entry { border-radius: 5px; background-color: #fff; padding: 0; }
.s-products-list-vertical-cards { gap: 15px; }
.s-product-card-vertical .s-product-card-image { border-radius: 8px; max-height: 17rem; min-height: 17rem; background: none !important; }
.s-product-card-image::before { background: #fff; color: #fff; }
.s-product-card-fit-height .s-product-card-image { height: 12rem; }

/* محتوى الكرت (النصوص والأزرار) */
.s-product-card-content { padding-left: 1rem; padding-right: 1rem; }
.s-product-card-content-main { padding-right: 0.37rem; padding-left: 0.37rem; padding-bottom: 0; justify-content: center; }
.s-product-card-content-sub { padding: 0.37rem; margin-bottom: 0.5rem; justify-content: center; display: flex; align-items: center; flex-direction: column; }
.s-product-card-content-title a { text-align: center; color: #19154a; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-product-card-price { color: #19154a; }
.s-product-card-content-subtitle { text-align: center; display: none; }
.s-product-card-promotion-title { background-color: #19154a; }

/* أزرار المنتجات (إضافة للسلة / أمنيات) */
.s-product-card-entry salla-button .s-button-btn { border-radius: 0.3rem !important; background-color: #19154a; border: 0; }
.s-product-card-entry salla-button .s-button-btn .s-button-text { color: #fff; }
.s-product-card-entry salla-button .s-button-btn:hover { background-color: #19154a; color: #fff; }
.s-button-text .sicon-shopping-bag { display: none; }
.s-product-card-vertical .s-product-card-wishlist-btn { top: 0.12rem; }
[dir=rtl] .s-product-card-vertical .s-product-card-wishlist-btn { left: 0; }
.s-product-card-vertical .s-product-card-wishlist-btn button { background-color: #ffffff40 !important; border-radius: 0 16px 16px 0 !important; color: #19154a; }

/* إخفاء عناصر غير مرغوبة وتعديلات اليمين/اليسار */
[dir=rtl] .s-product-card-content-pie { display: none; }
[dir=rtl] .s-product-card-special .s-product-card-content-main, [dir=rtl] special .s-product-card-content-sub { padding-left: 0; }
[dir=rtl] .s-product-card-content-extra-padding { padding-left: 0; padding-right: 0; }
.s-block--special-products .tabs { display: none; }

/* أزرار التبويبات (Tabs) */
.s-block--tabs-produtcs .tab-trigger button { background-color: #19154a98 !important; border: none !important; color: #fff; }
.s-block--tabs-produtcs .tab-trigger.is-active button { background-color: #19154a !important; border: none; color: #fff; }
.s-block--tabs-produtcs .s-button-btn { border-radius: 0rem; }

@media(max-width: 600px) { .s-products-slider-card { max-width: 190px; } }