/* ألوان الواجهة */

:root {
  --hirfa-page: #F5F3EC;
  --hirfa-card: #EBE8DF;
  --hirfa-teal: #133d4b;
  --hirfa-ink: #243b42;
  --hirfa-muted: #52656a;
  --hirfa-mist: #e6eeeb;
  --hirfa-tabs-bg: #e8e4dd;
}

body.index.color-mode-light,
body.index.color-mode-light main.app-inner,
body.index.color-mode-light #featured-products-style2-1,
body.index.color-mode-light .s-block--testimonials {
  background-color: var(--hirfa-page) !important;
}

/* الأكثر مبيعًا والتبويبات */

#featured-products-style2-1 .hide-scroll-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

#featured-products-style2-1 .hide-scroll-wrapper::before {
  content: "الأكثر مبيعًا";
  display: block;
  color: var(--hirfa-teal);
  font-family: inherit;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

#featured-products-style2-1 .hide-scroll-wrapper > .tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  box-sizing: border-box;
  width: min(320px, 100%);
  margin: 40px auto 20px;
  padding: 4px;
  overflow: visible;
  background: var(--hirfa-tabs-bg);
  border: 0;
  border-radius: 10px;
}

#featured-products-style2-1 .hide-scroll-wrapper > .tabs ~ .tabs {
  display: none !important;
}

#featured-products-style2-1 .hide-scroll-wrapper > .tabs:first-child::before {
  content: "BEST SELLERS";
  position: absolute;
  inset-inline: 0;
  bottom: calc(100% + 23px);
  color: var(--hirfa-muted);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 2px;
  text-align: center;
  pointer-events: none;
}

#featured-products-style2-1 .hide-scroll-wrapper > .tabs:first-child::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--hirfa-teal);
  transform: translateX(-50%);
  pointer-events: none;
}

#featured-products-style2-1 .tabs > .tab-trigger {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 6px 10px;
  border: 0 !important;
  border-radius: 7px;
  background: transparent;
  color: var(--hirfa-teal);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

#featured-products-style2-1 .tabs > .tab-trigger.is-active {
  background-color: var(--hirfa-teal);
  color: #fff;
  font-weight: 700;
}

#featured-products-style2-1 .tab-trigger > span {
  color: inherit;
}

#featured-products-style2-1 .tab-trigger,
#featured-products-style2-1 .tab-trigger > span {
  border-bottom: 0 !important;
  background-image: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

#featured-products-style2-1 .tab-trigger::before,
#featured-products-style2-1 .tab-trigger::after,
#featured-products-style2-1 .tab-trigger > span::before,
#featured-products-style2-1 .tab-trigger > span::after {
  content: none !important;
}

#featured-products-style2-1 .tab-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

#featured-products-style2-1 .product-entry__subtitle {
  margin-block: 4px 0;
  color: var(--hirfa-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* آراء العملاء */

.s-block--testimonials:has(> .s-block--testimonials) {
  padding-block: clamp(28px, 4vw, 48px);
}

.s-block--testimonials .swiper-slide > div:has(> figcaption) {
  box-sizing: border-box;
  height: auto !important;
  padding: 20px;
  border: 0;
  border-radius: 12px;
  background: var(--hirfa-card) !important;
  color: var(--hirfa-ink);
  text-align: start;
}

.s-block--testimonials .swiper-slide blockquote {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto !important;
  margin: 0;
  padding: 0;
  color: var(--hirfa-ink);
  text-align: start;
}

.s-block--testimonials blockquote > .text-sm {
  color: inherit;
  font-size: 13.5px !important;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.s-block--testimonials blockquote .mt-3:first-child {
  margin-top: 0;
}

.s-block--testimonials .swiper-slide figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent !important;
  color: var(--hirfa-teal);
}

.s-block--testimonials figcaption .opacity-60 {
  color: var(--hirfa-muted);
  opacity: 1;
}

.s-block--testimonials .swiper-slide figcaption > img {
  display: none !important;
}

.s-block--testimonials .swiper-slide figcaption::before {
  content: "";
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: var(--hirfa-mist);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23133d4b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.35'/%3E%3Cpath d='M4.9 20c.4-3.6 3.2-5.8 7.1-5.8s6.7 2.2 7.1 5.8'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 21px 21px;
}

.hirfa-reviews-track {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #c6cfcd transparent;
  padding-block: 2px 8px;
}

.hirfa-reviews-track > .hirfa-review-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  flex: 0 0 min(80%, 250px) !important;
  box-sizing: border-box;
  min-width: 0;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 20px !important;
  scroll-snap-align: start;
  border: 0 !important;
  border-radius: 12px;
  background: var(--hirfa-card) !important;
  color: var(--hirfa-ink);
  text-align: start;
  align-self: stretch;
  min-height: 320px;
  box-shadow: none;
}

.hirfa-review-card blockquote {
  display: block;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit;
  line-height: 1.75;
  text-align: start;
  flex: 0 0 auto;
}

.hirfa-review-card .hirfa-review-person {
  display: flex !important;
  align-items: center !important;
  gap: 9px;
  margin: auto 0 0 !important;
  padding: 22px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--hirfa-teal);
  flex: 0 0 auto;
}

.hirfa-review-person img {
  display: none !important;
}

.hirfa-review-card .hirfa-review-person::before {
  content: "" !important;
  display: block;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 8px;
  background: #dfe7e5 center / 21px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23133d4b' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.4'/%3E%3Cpath d='M5 20c.4-3.7 3.2-5.8 7-5.8s6.6 2.1 7 5.8'/%3E%3C/svg%3E");
  width: 30px;
  background-size: 18px 18px;
}

.hirfa-review-card :has(> .hirfa-review-person) {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  min-width: 0;
}



.s-block--testimonials > .container:has(.hirfa-reviews-track)::before {
  content: "CUSTOMER REVIEWS";
  display: block;
  margin: 0 auto 24px;
  padding-bottom: 13px;
  background: linear-gradient(#133d4b, #133d4b)
              center bottom / 26px 2px no-repeat;
  color: #52656a;
  font: 500 10px/1.4 Arial, sans-serif;
  letter-spacing: 1.8px;
  text-align: center;
}

.s-block--testimonials .hirfa-review-card blockquote,
.s-block--testimonials .hirfa-review-card blockquote :is(p, .text-sm, .text-xl),
.s-block--testimonials .hirfa-review-card p:not(.hirfa-review-person *) {
  font-size: 13.5px !important;
  font-weight: 400;
  line-height: 1.8 !important;
}

/* الهيدر الزجاجي */

#main-nav.fixed-header,
#main-nav.fixed-header .main-nav__content {
  background: transparent !important;
}

#main-nav.fixed-header > .inner {
  background: rgb(255 255 255 / 48%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(115%) !important;
  backdrop-filter: blur(20px) saturate(115%) !important;
  color: var(--hirfa-teal) !important;
  border-bottom: 1px solid rgb(255 255 255 / 45%);
  box-shadow: 0 2px 10px rgb(30 43 46 / 5%);
}

#main-nav.fixed-header .main-nav__content :is(a, button, i) {
  color: var(--hirfa-teal) !important;
}

#main-nav.fixed-header img[alt*="حرفة المسابيح"] {
  filter: brightness(0) saturate(100%) !important;
}

/* الفوتر */

footer.store-footer-wrap,
footer.store-footer-wrap .store-footer,
footer.store-footer-wrap .store-footer__inner {
  background: var(--hirfa-teal) !important;
  color: #fff !important;
}

footer.store-footer-wrap :is(h2, h3, p, a, span, small, button, i) {
  color: #fff !important;
}

footer.store-footer-wrap .store-footer > .border-t {
  border-color: rgb(255 255 255 / 18%) !important;
}

footer.store-footer-wrap .store-footer__inner img[alt="حرفة المسابيح"] {
  filter: brightness(0) invert(1) !important;
}




/* حِرفة | القائمة الجانبية على الجوال */
@media (max-width: 767px) {
  #storemenu-panel {
    box-sizing: border-box;
    width: min(65vw, 280px) !important;
    min-width: min(232px, 82vw) !important;
    max-width: 82vw !important;
    padding: 0 !important;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
    background: #123b49 !important;
    color: #fff;
  }

  /* تركواز شبه شفاف مع تمويه خلف القائمة */
  @supports ((backdrop-filter: blur(12px)) or
             (-webkit-backdrop-filter: blur(12px))) {
    #storemenu-panel {
      background: rgba(18, 59, 73, 0.9) !important;
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
    }
  }

  /* الشعار بالأعلى مع ترك مساحة للإغلاق والرجوع */
  #storemenu-panel .side-panel__top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 72px;
    margin: 0;
    padding: 0 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  #storemenu-panel .navbar-brand {
    margin: 0 auto;
  }

  #storemenu-panel .navbar-brand img {
    display: block;
    width: auto;
    height: 36px !important;
  }

  #storemenu-panel .menu-close,
  #storemenu-panel .back-btn {
    position: absolute;
    top: 14px;
    width: 44px;
    height: 44px;
    z-index: 2;
  }

  #storemenu-panel .menu-close {
    right: auto;
    left: 4px;
  }

  #storemenu-panel .back-btn {
    right: 4px;
    left: auto;
  }

  /* تمرير المحتوى داخل القائمة، خصوصًا في الأقسام المتفرعة */
  #storemenu-panel .side-panel__content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px 24px !important;
  }

  #storemenu-panel .main-menu-item > a,
  #storemenu-panel .sub-menu--title > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 5px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #fff;
  }

  #storemenu-panel .sub-menu a {
    font-size: 15px !important;
  }

  #storemenu-panel .main-menu a span {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  #storemenu-panel #widget-storemenu a {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #e4ecee;
  }
}







/* ===== عنوان القسم ===== */
.s-block--products-slider .s-block__title {
  justify-content: center;
  margin-bottom: 18px;
}
.s-block--products-slider .s-block__title .right-side {
  width: 100%;
  text-align: center;
}
.s-block--products-slider .s-block__title h2 {
  font-size: 22px;
  font-weight: 700;
  color: #3b2a14;
  margin-bottom: 0;
}
.s-block--products-slider .s-block__title h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  background: #b8924a;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== بطاقة المنتج ===== */
.s-products-slider-card .product-entry {
  background: #fff;
  border: 1px solid #eee6d8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(60, 40, 10, .06);
}
.s-products-slider-card .product-entry__image-main {
  aspect-ratio: 1 / 1;
}
.s-products-slider-card .product-entry__image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s-products-slider-card .product-entry__content {
  padding: 12px 12px 14px;
}

/* الاسم: سطرين كحد أقصى + خط رفيع تحته */
.s-products-slider-card .product-entry__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  min-height: 3em;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #efe7d8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* السعر */
.s-products-slider-card .total-price {
  font-size: 18px;
  font-weight: 700;
  color: #6b4a1e;
}

/* ===== زر الإضافة للسلة: إطار بدل التعبئة ===== */
.s-products-slider-card .btn--add-to-cart--full .s-button-element {
  background: #fff;
  color: var(--color-primary, #2f4a5a);
  border: 1px solid var(--color-primary, #2f4a5a);
  border-radius: 10px;
  height: 40px;
  font-size: 13px;
  box-shadow: none;
}
.s-products-slider-card .btn--add-to-cart--full .s-button-element:hover {
  background: var(--color-primary, #2f4a5a);
  color: #fff;
}












/* تكبير بطاقات المنتجات في تبويبات الأكثر مبيعًا - الجوال */
@media (max-width: 767px) {
  #section-bDqANw_1-slider .swiper-slide,
  #section-bDqANw_2-slider .swiper-slide {
    width: 74% !important;
    max-width: 74% !important;
    flex: 0 0 74% !important;
  }

  #section-bDqANw_1-slider custom-salla-product-card,
  #section-bDqANw_2-slider custom-salla-product-card,
  #section-bDqANw_1-slider .product-entry,
  #section-bDqANw_2-slider .product-entry {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }