/* ================================
   1. استدعاء خطوط وأيقونات
================================ */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css');

/* ================================
   2. القواعد العامة
================================ */
html, body {
  overflow-x: hidden;
}

body {
  background: #f3f4f6;
}

section.s-block.s-block--fixed-banner:nth-of-type(1) {
  margin-top: 0rem;
}

section.s-block.s-block--fixed-banner .container {
  max-width: 100%;
  padding: 0;
}

/* ================================
   3. بطاقات المنتجات
================================ */
.s-product-card-image,
.s-product-card-content,
.s-product-card-content-main,
.s-product-card-content-sub,
.s-product-card-content-footer,
.s-product-card-vertical {
  background: #fff0;
}

.s-product-card-content {
  flex-wrap: wrap;
  flex-direction: row;
  padding: 1.25rem 0 0;
}

.s-product-card-content-main {
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid #9eae89;
}

.s-product-card-content-sub {
  width: 80%;
  margin-bottom: 0;
  padding-right: 15px;
}

.s-product-card-content-footer {
  width: 20%;
}

.s-product-card-vertical {
  border: 2px solid #9eae89;
}

.s-product-card-content-title a,
.s-product-card-content-subtitle {
  text-align: center;
}

/* ================================
   4. البنرات والعروض
================================ */
.s-block--features + .s-block--features,
.s-block--fixed-banner + .s-block--fixed-banner,
.s-block--banners + .s-block--banners {
  margin-top: 0;
}

section.s-block.s-block--banners .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 100%;
  box-sizing: border-box;
}

a.banner-entry,
.banner-entry.square-photos {
  background: #fff0;
  transition: transform 0.5s ease-in-out;
  height: 150px;
  max-width: 100%;
  box-sizing: border-box;
}

a.banner-entry.square-photos:hover {
  transform: scale(0.95);
}

section.s-block.s-block--banners .s-block__title .right-side {
  padding-left: 0;
  text-align: center;
}

/* ================================
   5. الأزرار
================================ */
button.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center {
  border: 0;
  border-right: 1px solid #9eae89;
  border-radius: 0 0 0 10px;
  padding: 0.5rem;
}

button.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center:hover {
  color: #fff;
  opacity: 1;
}

.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center .sicon-shopping-bag:before {
  content: "\f07a";
  font-family: FontAwesome;
}

button.s-button-outline.s-button-wide.s-button-light-outline.s-button-disabled {
  border: none;
  border-radius: 0 0 0 10px;
  border-right: 1px solid #22a9e0;
  opacity: 1;
  background: #fff0;
  cursor: no-drop;
}

button.s-button-outline.s-button-wide.s-button-light-outline.s-button-disabled span.s-button-text {
  font-size: 0;
}

button.s-button-outline.s-button-wide.s-button-light-outline.s-button-disabled::after {
  content: "\f05e";
  font-family: FontAwesome;
}

/* ================================
   6. الهيدر والنافبار
================================ */
.main-nav-container {
  box-shadow: none;
  background-color: #9eae89;
}

.top-navbar {
  background-color: #1d1f1f !important;
}

.top-navbar .s-search-input {
  background-color: #fff !important;
  border-radius: 5px !important;
  color: #000 !important;
}

.navbar-brand img {
  max-height: 4rem !important;
  padding: 5px;
}

.main-menu li.root-level > a,
button.s-button-btn.s-button-solid.s-button-wide.s-button-primary.s-button-loader-center,
i.header-btn__icon {
  color: #fff;
  border: none;
}

/* ================================
   7. الفوتر
================================ */
.store-footer__inner {
  background-color: #1D1F1F !important;
}

.store-footer__inner * {
  text-align: center;
}

.store-footer__inner .container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-footer__inner .container > div:nth-of-type(1) {
  padding-left: 0;
  grid-column: span 1 / span 2;
}

.store-footer__inner .container > div:nth-of-type(1) h3 {
  margin: 0 auto 10px;
}

.store-footer__inner .grid > div:nth-of-type(1) p {
  margin: 10px auto;
}

.store-footer__inner .s-contacts-list.s-contacts-list-vertical {
  align-items: center;
}

.store-footer__inner salla-social.s-social-list {
  justify-content: center;
}

footer.store-footer {
  background-color: #1D1F1F;
}

.copyright-text p,
.copyright-text a {
  color: #fff !important;
}

/* ================================
   8. السلايدر
================================ */
salla-slider.photos-slider .swiper-slide,
salla-slider.photos-slider .swiper {
  width: 100%;
  padding: 0;
  border-radius: 0;
  box-sizing: border-box;
}

section.s-block.s-block--photos-slider {
  margin-top: 0;
}

salla-slider.photos-slider .swiper-slide img {
  border-radius: 0;
}

salla-slider .slide--one-sixth {
  width: 33.33%;
}

.slide--cat-entry h2 {
  display: none;
}

.slide--cat-entry i {
  color: #fff0;
  width: 100%;
  height: 100%;
  background-size: 21rem;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 0;
}

a.slide--cat-entry {
  padding: 0;
  background: #fff0;
  border: none;
  height: 15rem;
  box-shadow: none !important;
  transition: transform 0.5s ease-in-out;
  max-width: 100%;
}

a.slide--cat-entry:hover {
  transform: scale(1.05);
}

/* ================================
   9. تحسينات للصور المحددة (بنرات خاصة)
================================ */
section.s-block.s-block--banners:has(div[data-bg*="r58MGxNnA2EGWmVSmXlz553YxAUbYWV9nDn5Zk6t.png"]) .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

section.s-block.s-block--banners:has(div[data-bg*="r58MGxNnA2EGWmVSmXlz553YxAUbYWV9nDn5Zk6t.png"]) a.banner-entry.square-photos {
  height: 300px;
}

section.s-block.s-block--fixed-banner:has(img[src*="3keVHFOVvQxkdjlUfbYEBvf3cWrfH3Gn6ZdlSPxN.png"]) + section,
section.s-block.s-block--fixed-banner:has(img[src*="3keVHFOVvQxkdjlUfbYEBvf3cWrfH3Gn6ZdlSPxN.png"]) {
  margin-top: 0;
}

/* ================================
   10. إخفاء عناصر غير مهمة
================================ */
.s-comments.s-comments-product,
.s-slider-block__title-nav button,
p.s-cart-summary-content {
  display: none;
}

/* ================================
   11. ميديا كويري (Responsive)
================================ */
@media (min-width: 992px) {
  .store-footer__inner .container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  i.sicon-menu {
    color: #fff;
  }
  section.s-block.s-block--banners a.banner-entry {
    height: 96px;
  }
  .slide--cat-entry i {
    background-size: 15rem;
  }
}

@media (max-width: 600px) {
  a.banner-entry.square-photos {
    height: 80px !important;
  }
  section.s-block.s-block--banners .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  salla-slider .slide--one-sixth {
    width: 50%;
  }
  a.slide--cat-entry {
    height: 9.5rem;
  }
  .slide--cat-entry i {
    background-size: 13rem;
  }
  section.s-block.s-block--banners .s-block__title .right-side h2::after {
    width: 95%;
    font-size: 16px;
    line-height: 1.75rem;
  }
  section.s-block.s-block--banners .s-block__title .right-side h2 {
    font-size: 36px;
  }
  section.s-block.s-block--banners:has(div[data-bg*="r58MGxNnA2EGWmVSmXlz553YxAUbYWV9nDn5Zk6t.png"]) a.banner-entry.square-photos {
    height: 150px !important;
  }
}

@media (max-width: 400px) {
  salla-slider .slide--one-sixth {
    width: 61%;
  }
  .product-index .s-product-card-content-sub {
    width: 70%;
  }
  .product-index .s-product-card-content-footer {
    width: 30%;
  }
}

/* ================================
   12. صور عامة
================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}