/* قسم جمالك بعناية خبراء */
.s-block--banners:has(.banner-entry__text) > .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, 180px) !important;
  grid-auto-rows: 180px !important;
  gap: 18px !important;
}








.s-block--banners:has(.banner-entry__text) .banner-entry {
  min-height: 0 !important;
  height: auto !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}








.s-block--banners:has(.banner-entry__text) > .grid > .banner-entry:first-child {
  grid-row: span 2 !important;
}








.s-block--banners:has(.banner-entry__text) > .grid > .banner-entry:last-child {
  grid-column: auto !important;
}








.s-block--banners:has(.banner-entry__text) .banner-entry__text {
  padding: 18px !important;
}








.s-block--banners:has(.banner-entry__text) .banner__title {
  font-size: 22px !important;
  line-height: 1.25 !important;
}








.s-block--banners:has(.banner-entry__text) .banner__description {
  font-size: 14px !important;

/* إخفاء أزرار عرض سريع ومفضلة ومقارنة/مشابهة من بطاقة المنتج */
custom-salla-product-card .s-product-card-quick-btn,
custom-salla-product-card .s-product-card-wishlist-btn,
custom-salla-product-card .compare-button,
custom-salla-product-card .union-button {
  display: none !important;
}

}

/* استعادة مقاسات بطاقات الم
}

/* استعادة مقاسات بطاقات المنتجات */
custom-salla-product-card .s-product-card-image,
custom-salla-product-card .s-product-card-image-cover,
custom-salla-product-card .s-product-card-image > a {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  height: 250px !important;
  min-height: 250px !important;
  max-height: 250px !important;
  margin-inline: auto !important;
}

custom-salla-product-card .s-product-card-quick-btn,
custom-salla-product-card .s-product-card-wishlist-btn,
custom-salla-product-card .compare-button,
custom-salla-product-card .union-button { display: none !important; }

@media (max-width: 767px) {
  .s-products-list {
    display: grid !important;
    grid-template-columns: repeat(2, 150px) !important;
    justify-content: center !important;
    justify-items: center !important;
    column-gap: 10px !important;
    row-gap: 18px !important;
  }
  .s-products-list custom-salla-product-card.s-product-card-entry,
  .s-products-slider-card,
  .s-products-slider-card custom-salla-product-card.s-product-card-entry {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    margin: 0 !important;
  }
  .s-products-slider-card { margin-inline-end: 10px !important; }
  custom-salla-product-card .s-product-card-image,
  custom-salla-product-card .s-product-card-image-cover,
  custom-salla-product-card .s-product-card-image > a {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    margin-inline: auto !important;
  }
}

/* الفيديو الرئيسي للجوال: عرض كامل وارتفاع متوازن */
@media (max-width: 767px) {
  .NG-hero-section-1 .section-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-inline: calc(50% - 50vw) !important;
    padding-inline: 0 !important;
    border-radius: 0 !important;
  }

  .NG-hero-section-1 .banner-wrapper,
  .NG-hero-section-1 video {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
  }
}

/* جمالك بعناية الخبراء: شبكة جوال أعرض وأقصر */
@media (max-width: 767px) {
  .s-block--banners:has(.banner-entry__text) > .grid {
    width: calc(100% + 20px) !important;
    margin-inline: -10px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, 100px) !important;
    grid-auto-rows: 100px !important;
    gap: 8px !important;
  }

  .s-block--banners:has(.banner-entry__text) .banner-entry {
    min-height: 0 !important;
    height: auto !important;
  }

  .s-block--banners:has(.banner-entry__text) > .grid > .banner-entry:first-child {
    grid-row: span 2 !important;
  }

  .s-block--banners:has(.banner-entry__text) .banner-entry__text {
    padding: 7px !important;
  }

  .s-block--banners:has(.banner-entry__text) .banner__title {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .s-block--banners:has(.banner-entry__text) .banner__description {
    display: none !important;
  }
}

/* إخفاء المشاركة ووسائل التواصل من صفحة المنتج فقط */
.product-single #test__social {
  display: none !important;
}


/* إخفاء المشاركة ووسائل التواصل من صفحة المنتج فقط */
.product-single #test__social {
  display: none !important;
}


/* قسم فرع بيوتي ديرم والخريطة */
#GL-maps-16 .maps-wrapper > .mb-4 > div.border {
  display: none !important;
}

#GL-maps-16 .map-frame {
  display: block !important;
  border: 1px solid #e5ddd9 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 28px rgba(66, 42, 32, .10) !important;
}

@media (max-width: 767px) {
  #GL-maps-16 .map-frame {
    height: 280px !important;
    border-radius: 14px !important;
  }
}


/* لون وصف التذييل */
.store-footer .footer-description,
.store-footer .footer-description p {
  color: #7c483a !important;
}


/* لون وصف التذييل */
.store-footer .footer-description,
.store-footer .footer-description p {
  color: #7c483a !important;
}

/* صفحات الأقسام: مسافة مريحة بين بطاقات الجوال */
@media (max-width: 767px) {
  .container--products-list .s-products-list {
    grid-template-columns: repeat(2, 150px) !important;
    justify-content: center !important;
    column-gap: 14px !important;
    row-gap: 22px !important;
  }
}

/* تثبيت فجوة بطاقات صفحات الأقسام للجوال */
@media screen and (max-width: 767px) {
  body .container--products-list salla-products-list.s-products-list {
    display: grid !important;
    grid-template-columns: repeat(2, 150px) !important;
    justify-content: center !important;
    gap: 22px 18px !important;
  }

  body .container--products-list .s-products-list-wrapper {
    margin-inline: 0 !important;
  }
}


/* رجعة: تثبيت مسافات بطاقات الأقسام على Safari والجوال */
@media screen and (max-width: 1024px) {
  body .container--products-list salla-products-list.s-products-list {
    display: grid !important;
    grid-template-columns: repeat(2, 150px) !important;
    justify-content: center !important;
    gap: 22px 18px !important;
  }

  body .container--products-list .s-products-list-wrapper {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    margin-inline: 0 !important;
  }
}


/* صفحات الأقسام للجوال: بطاقات مرنة بلا تراكب */
@media screen and (max-width: 1024px) {
  body .container--products-list salla-products-list.s-products-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    gap: 22px 14px !important;
  }

  body .container--products-list .s-products-list-wrapper {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 165px !important;
    margin: 0 auto !important;
  }

  body .container--products-list custom-salla-product-card.s-product-card-entry {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body .container--products-list custom-salla-product-card .s-product-card-image,
  body .container--products-list custom-salla-product-card .s-product-card-image-cover,
  body .container--products-list custom-salla-product-card .s-product-card-image > a {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* Beauty Derm — mobile category cards only — 2026-08-28 */
@media screen and (max-width: 767px) {
  body.product-index salla-products-list.s-products-list {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.product-index salla-products-list.s-products-list .s-products-list-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-inline: 0 !important;
    gap: 12px 10px !important;
  }

  body.product-index salla-products-list.s-products-list custom-salla-product-card.s-product-card-entry {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }
}


/* Beauty Derm — align add-to-cart bar in mobile category cards — 2026-08-28 */
@media screen and (max-width: 767px) {
  body.product-index salla-products-list.s-products-list custom-salla-product-card.s-product-card-entry .s-product-card-image {
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
  }
}