/* Keep WhatsApp clear of the mobile product purchase bar. */
@media (max-width: 767px) {
  body.product-single [id^="gb-widget-"] {
    transform: translateY(calc(-134px - env(safe-area-inset-bottom, 0px))) !important;
  }
}








/* Compact rating-only testimonials without changing customer ratings. */
.s-reviews-testimonial:has(.s-reviews-testimonial__text > p:empty) { padding: 20px !important; }
.s-reviews-testimonial:has(.s-reviews-testimonial__text > p:empty) .s-reviews-testimonial__inner { flex-direction: row !important; align-items: center !important; gap: 16px !important; width: 100% !important; }
.s-reviews-testimonial:has(.s-reviews-testimonial__text > p:empty) .s-reviews-testimonial__avatar { flex: 0 0 48px; margin: 0 !important; }
.s-reviews-testimonial:has(.s-reviews-testimonial__text > p:empty) .s-reviews-testimonial__avatar img { width: 48px !important; height: 48px !important; }
.s-reviews-testimonial:has(.s-reviews-testimonial__text > p:empty) .s-reviews-testimonial__text { flex: 1; text-align: start !important; }
.s-reviews-testimonial:has(.s-reviews-testimonial__text > p:empty) .s-reviews-testimonial__name_wrapper { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; }
.s-reviews-testimonial:has(.s-reviews-testimonial__text > p:empty) .s-reviews-testimonial__rating { display: block !important; }
.s-reviews-testimonial:has(.s-reviews-testimonial__text > p:empty) .s-reviews-testimonial__icon { display: none !important; }








/* Show all three service paths without horizontal swiping on phones. */
@media (max-width: 767px) {
  [component-id="1990156477"] .swiper-wrapper { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; transform: none !important; width: 100% !important; }
  [component-id="1990156477"] .swiper-slide { width: auto !important; margin: 0 !important; min-width: 0; }
  [component-id="1990156477"] .slide--cat-entry { width: 100% !important; height: 144px !important; padding: 12px 6px !important; }
  [component-id="1990156477"] .slide--cat-entry h2 { font-size: 13px !important; line-height: 1.7 !important; white-space: normal; }
  [component-id="1990156477"] .slide--cat-entry i { font-size: 30px !important; }
  [component-id="1990156477"] .s-slider-block__title-nav { display: none !important; }
}




/* Keep product-card actions readable and align mobile card content. */
@media (max-width: 767px) {
  .s-product-card-content { justify-content: flex-start !important; gap: 12px !important; }
  .s-product-card-content-main { min-height: 60px; margin: 0 !important; }
  .s-product-card-content-title { margin: 0 !important; font-size: 13px !important; line-height: 20px !important; }
  .s-product-card-content-subtitle { display: none !important; }
  .s-product-card-content-sub { margin: 0 !important; }
  .s-product-card-content-footer { margin-top: auto !important; }
  .s-product-card-content-footer .s-button-element { padding-inline: 8px !important; min-height: 44px; height: auto !important; }
  .s-product-card-content-footer .s-button-text { display: inline-flex !important; align-items: center; justify-content: center; gap: 4px; width: 100%; overflow: visible !important; white-space: normal !important; text-overflow: clip !important; font-size: 13px !important; line-height: 20px; }
  .s-product-card-content-footer .s-button-text > span { white-space: normal !important; }
  .s-product-card-content-footer .s-button-text > i { flex-shrink: 0; margin: 0 !important; }
}
/* Keep the checkout action clear on phones. */
@media (max-width:767px){body.cart [id^="gb-widget-"]{transform:translateY(calc(-118px - env(safe-area-inset-bottom, 0px))) !important;}}
/* Explain commissioned pieces while preserving inventory notifications. */
custom-salla-product-card[id="815468142"] .s-product-card-content-main::after,
custom-salla-product-card[id="383252311"] .s-product-card-content-main::after,
custom-salla-product-card[id="213608918"] .s-product-card-content-main::after,
custom-salla-product-card[id="1319329827"] .s-product-card-content-main::after,
custom-salla-product-card[id="778141112"] .s-product-card-content-main::after,
custom-salla-product-card[id="998295862"] .s-product-card-content-main::after,
custom-salla-product-card[id="1991727877"] .s-product-card-content-main::after,
custom-salla-product-card[id="1886489844"] .s-product-card-content-main::after,
custom-salla-product-card[id="1249891261"] .s-product-card-content-main::after,
custom-salla-product-card[id="1525702984"] .s-product-card-content-main::after{content:"متاح للتنفيذ حسب الطلب";display:block;color:#2d6b83;font-size:12px;line-height:1.7;margin-top:8px;font-weight:700;}
/* Keep the mobile product add-to-cart label complete. */
@media(max-width:767px){
body.product-single button[data-testid="store-product-add-to-cart"]{padding-inline:6px!important;min-height:44px!important;height:auto!important;}
body.product-single button[data-testid="store-product-add-to-cart"] .s-button-text{white-space:normal!important;text-overflow:clip!important;overflow:visible!important;font-size:12px!important;line-height:18px!important;display:block!important;}
}