/* Add custom CSS styles below */ 
/* 1. توحيد لون خلفية الفوتر بالكامل ليصبح #111111 مع إزالة الحواف الدائرية */
footer.store-header,
.store-footer,
#footer,
.footer-container,
[data-testid="store-footer"] {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    margin-top: 20px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* 2. استهداف كافة الحاويات الفرعية والداخلية للفوتر لضمان عدم وجود أجزاء فاتحة اللون */
.store-footer *,
#footer *,
footer.store-header * {
    background-color: transparent !important;
}

/* 3. إعادة تلوين النصوص والروابط داخل الفوتر باللون الابيض لتكون واضحة */
.store-footer a,
.store-footer p,
.store-footer span,
.store-footer li,
.store-footer h3,
.store-footer h4,
.store-footer h5 {
    color: #ffffff !important;
}

/* 4. تنسيق خطوط الفواصل في الفوتر إن وجدت */
.store-footer hr,
.store-footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.2) !important;
}
/* تغيير لون أيقونة التواصل في الفوتر للون الذهبي */
.s-contacts-icon,
.s-contacts-item .s-contacts-icon,
salla-contacts .s-contacts-icon {
    color: #DDB45A !important;
    border-color: #DDB45A !important; /* لتغيير لون الإطار إن وجد */
}

/* تغيير لون خطوط الـ SVG أو العناصر الداخلية إن وجدت داخل الأيقونة */
.s-contacts-icon svg,
.s-contacts-icon i,
.s-contacts-icon path {
    color: #DDB45A !important;
    fill: #DDB45A !important;
    stroke: #DDB45A !important;
}
/* 1. خلفية الهيدر الرئيسي باللون الداكن #110B08 */
header.store-header,
header.store-header .store-header__inner,
#mainnav,
.main-nav-container {
    background-color: #FFFFFF !important;
}

/* 2. الشريط العلوي (Top Bar) باللون الذهبي #DDB45A مع تقليل الفراغات */
header.store-header .top-bar,
header.store-header .top-navbar,
header.store-header [class*="top-bar"] {
    background-color: #DDB45A !important;
    color: #110B08 !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* 3. جعل النصوص وروابط القوائم في الشريط العلوي واضحة باللون الداكن #110B08 */
header.store-header .top-bar a,
header.store-header .top-bar span,
header.store-header .top-bar li,
header.store-header .top-navbar a,
header.store-header .top-navbar span,
header.store-header .top-navbar li,
header.store-header .s-menu-topnav-item {
    color: #110B08 !important;
    fill: #110B08 !important;
    stroke: #110B08 !important;
}

/* 4. لون النصوص والأيقونات داخل الهيدر الرئيسي لتكون باللون الذهبي #DDB45A */
header.store-header a,
header.store-header button,
header.store-header i,
header.store-header svg,
header.store-header span {
    color: #110B08 !important;
    fill: #DDB45A !important;
    stroke: #DDB45A !important;
}

/* 5. ضبط حجم وإطار مربع البحث ليصبح متناسقاً وغير ممتد بشكل مبالغ فيه */
header.store-header .search-wrapper,
header.store-header salla-search,
header.store-header form[action*="search"] {
    max-width: 500px !important;
    margin: 8px auto !important;
    width: 100% !important;
}

header.store-header input[type="search"],
header.store-header .search-input {
    background-color: #110B08 !important;
    color: #DDB45A !important;
    border: 1px solid #DDB45A !important;
    width: 100% !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

/* 6. لون نص البحث المؤقت (Placeholder) */
header.store-header input::placeholder,
header.store-header .search-input::placeholder {
    color: #110B08 !important;
}
/* ضبط حاوية البحث لتكون أفقية (جنب بعض) */
header.store-header .search-wrapper,
header.store-header salla-search,
header.store-header form[action*="search"],
header.store-header .search-input-group {
    display: flex !important;
    align-items: center !important;
    flex-direction: row-reverse !important; /* لعدم عكس اتجاه العناصر وتثبيتها بالعربي */
    max-width: 500px !important;
    margin: 8px auto !important;
    width: 100% !important;
}

/* تنسيق حقل الإدخال */
header.store-header input[type="search"],
header.store-header .search-input {
    background-color: #FFFFFF !important;
    color: #DDB45A !important;
    border: 1px solid #DDB45A !important;
    width: 100% !important;
    border-radius: 8px !important;
    padding: 8px 15px !important;
    text-align: right !important;
}

/* ضبط زر أو أيقونة البحث لتكون بجانب النص تماماً داخل الحقل */
header.store-header .search-wrapper svg,
header.store-header salla-search svg,
header.store-header [class*="search"] svg,
header.store-header .search-icon,
header.store-header button[type="submit"] {
    position: static !important;
    margin-right: -35px !important; /* سحب الأيقونة لتستقر جوه الحقل بجانب الكلمة */
    z-index: 10 !important;
    color: #DDB45A !important;
    fill: #DDB45A !important;
    stroke: #DDB45A !important;
    background: transparent !important;
}
/* إعادة إظهار باقي العناوين في الفوتر لشكلها الطبيعي */
footer .store-footer__inner h3 {
    font-size: inherit !important;
    background-image: none !important;
}

/* تكبير وتعديل اللوجو في الفوتر بألوانه الطبيعية */
footer .store-footer__inner a.flex.items-center.m-0 h3 {
    font-size: 0 !important;
    display: inline-block !important;
    width: 180px !important;    /* تم تكبير العرض */
    height: 70px !important;    /* تم تكبير الارتفاع */
    background-image: url('https://cdn.files.salla.network/other/1880628618/266012d5-3aef-42f2-bcc5-c9c7c3be8541-original.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    margin: 0 !important;
    filter: none !important;           /* إزالة الفلتر الأبيض نهائياً */
    -webkit-filter: none !important;    /* إزالة الفلتر لمتصفحات سفاري */
}
/* استهداف الحاوية السفلية للحقوق لتأخذ عرض الفوتر كاملاً باللون الذهبي */
footer.store-header div.border-t,
.store-footer div.border-t,
footer.store-header .container.text-center,
.store-footer .container.text-center,
footer.store-header [class*="border-t"],
.store-footer [class*="border-t"] {
    background-color: #DDB45A !important;
    color: #110B08 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 15px 20px !important;
    border-top: 1px solid rgba(17, 11, 8, 0.15) !important;
}

/* تلوين جميع النصوص والروابط وأيقونات الدفع داخل الشريط السفلي */
footer.store-header div.border-t *,
.store-footer div.border-t *,
.copyright-text,
.copyright-text * {
    color: #110B08 !important;
    fill: #110B08 !important;
}
/* ===== السكشنين: 1288616784 و 1711752797 ===== */

/* العنوان في النص */
:is(section[component-id="1288616784"], section[component-id="1711752797"]) :is(.s-block__title, .s-block__title-right, h2, h3) {
  text-align: center !important;
  justify-content: center !important;
  width: 100%;
}

/* الحاوية تتوسّط والكروت في النص */
:is(section[component-id="1288616784"], section[component-id="1711752797"]) :is(.s-products-list-wrapper, .s-products-list-vertical-cards, .s-products-list-horizontal-cards, salla-products-list > div) {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  margin-inline: auto;
}

/* الكارت عمودي بنفس تصميم السلايدر */
:is(section[component-id="1288616784"], section[component-id="1711752797"]) .s-product-card-entry {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 300px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid #efe6d6;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transition: transform .3s ease, box-shadow .3s ease;
}
:is(section[component-id="1288616784"], section[component-id="1711752797"]) .s-product-card-entry:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

/* الصورة فوق وبعرض الكارت كله */
:is(section[component-id="1288616784"], section[component-id="1711752797"]) .s-product-card-image {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  overflow: hidden;
}
:is(section[component-id="1288616784"], section[component-id="1711752797"]) .s-product-card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* المحتوى */
:is(section[component-id="1288616784"], section[component-id="1711752797"]) .s-product-card-content {
  width: 100%;
  padding: 14px 16px 18px;
  text-align: center;
}
:is(section[component-id="1288616784"], section[component-id="1711752797"]) .s-product-card-content-title a {
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1c;
}
:is(section[component-id="1288616784"], section[component-id="1711752797"]) .s-product-card-price {
  color: #b8862b;
  font-weight: 800;
  justify-content: center;
}
:is(section[component-id="1288616784"], section[component-id="1711752797"]) .s-product-card-content-footer {
  justify-content: center;
  width: 100%;
}

/* زر أضف إلى السلة */
:is(section[component-id="1288616784"], section[component-id="1711752797"]) :is(salla-add-product-button button, .s-button-element) {
  width: 100%;
  background: #1c1c1c !important;
  color: #f5e6c8 !important;
  border: none !important;
  border-radius: 12px;
  padding: 10px 0;
  font-weight: 700;
  transition: background .3s ease, color .3s ease;
}
:is(section[component-id="1288616784"], section[component-id="1711752797"]) :is(salla-add-product-button button, .s-button-element):hover {
  background: #b8862b !important;
  color: #fff !important;
}

/* المفضلة فوق صورة الكارت */
:is(section[component-id="1288616784"], section[component-id="1711752797"]) .s-product-card-wishlist-btn {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}
:is(section[component-id="1288616784"], section[component-id="1711752797"]) .s-product-card-entry {
  position: relative;
}

/* موبايل */
@media (max-width: 640px) {
  :is(section[component-id="1288616784"], section[component-id="1711752797"]) .s-product-card-entry {
    max-width: 340px;
  }
}