/* Reserve the mobile logo box before its image loads. */
@media (max-width: 767px) {
  .site-header__brand > img.object-cover {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
    content: url("https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,onerror=redirect,format=auto,width=144,height=144/ogXeR/JvMb5qwSZ0uOp43lmXRlbEwMBFAU4K3TfAry66JZ.png");
  }
  #main-content > .s-block--photos-slider:first-of-type .s-photos-stage__nav {
    display: none;
  }
  #main-content > .s-block--photos-slider:first-of-type .s-photos-slider__slide::after {
    display: none;
  }
}


#main-content > .s-block--main-links .slide--cat-entry,
#main-content > .s-block--main-links .slide--cat-entry__media {
  background-color: #fff;
}

#main-content > .s-block--main-links .scroll-carousel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
#main-content > .s-block--main-links .scroll-carousel__heading {
  grid-column: 2;
  min-width: 0;
}
#main-content > .s-block--main-links .scroll-carousel__nav {
  grid-column: 3;
  justify-self: end;
}
#main-content > .s-block--main-links .s-main-links__title {
  justify-content: center;
  text-align: center;
  font-weight: 800;
}

/* Keep selected mobile product images square, without cropping or upscaling. */
@media (max-width: 767px) {
  :is(
    html:has(link[rel="canonical"][href$="/c2035167090"]) #main-content .s-product-card-vertical,
    html:has(link[rel="canonical"][href$="/c170878324"]) #main-content .s-product-card-vertical,
    #main-content > .s-block--products-slider:has(.scroll-carousel__head a[href$="/category/gyYKWw"]) .s-product-card-vertical,
    #main-content > .s-block--products-slider:has(.scroll-carousel__head a[href*="most-Sales-products"]) .s-product-card-vertical:is([data-product-id="1128830387"], [data-product-id="1829634013"], [data-product-id="101894205"], [data-product-id="702735912"], [data-product-id="243682198"], [data-product-id="2004016395"], [data-product-id="521207016"], [data-product-id="447728212"], [data-product-id="588117904"], [data-product-id="428141164"])
  ) .s-product-card-image > a > .relative {
    width: 100%;
    box-sizing: content-box;
    height: 0;
    padding-top: 100%;
    background-color: #fff;
  }
  :is(
    html:has(link[rel="canonical"][href$="/c2035167090"]) #main-content .s-product-card-vertical,
    html:has(link[rel="canonical"][href$="/c170878324"]) #main-content .s-product-card-vertical,
    #main-content > .s-block--products-slider:has(.scroll-carousel__head a[href$="/category/gyYKWw"]) .s-product-card-vertical,
    #main-content > .s-block--products-slider:has(.scroll-carousel__head a[href*="most-Sales-products"]) .s-product-card-vertical:is([data-product-id="1128830387"], [data-product-id="1829634013"], [data-product-id="101894205"], [data-product-id="702735912"], [data-product-id="243682198"], [data-product-id="2004016395"], [data-product-id="521207016"], [data-product-id="447728212"], [data-product-id="588117904"], [data-product-id="428141164"])
  ) .s-product-card-image > a > .relative > .s-product-card-image-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: scale-down;
  }
}