.s-block--circle-links salla-slider .swiper-wrapper {
    display: flex !important;
    justify-content: center !important;
}

.s-slider-swiper-wrapper .swiper-slide {
    flex-shrink: 0 !important;
    width: auto !important;
    margin: 0 10px !important;
}
    .s-block--features-products.two-cols .inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 1rem;
    }
@media(max-width: 768px) {
    .s-block--features-products .inner {
        padding-top: 5rem;
    }
    .s-block--features-products .inner > div:first-of-type .home-block-title {
        display: none;
    }
    .s-block--features-products .inner > div:nth-child(2) .home-block-title {
        position: absolute;
        left: 50%;
        top: 0;
        z-index: 10;
        transform: translateX(-50%)
    }
    .s-block--features-products .grid custom-salla-product-card {
        flex-direction: column;
    }
    .s-block--features-products .grid custom-salla-product-card .product-card__image {
        height: 12rem;
        width: 100%;
    }
    .s-block--features-products .grid custom-salla-product-card .product-card__image img {
        object-fit: contain;
    }
    .s-block--features-products .grid custom-salla-product-card .product-card__addToCart {
        position: relative;
    }
      .s-block--special-products-slider > div > div,
    .s-block--special-products-slider > div > div img {
        max-height: unset !important;
    }
}
.s-block--special-products-slider > div > div,
.s-block--special-products-slider > div > div img {
    max-height: unset !important;
}


.s-block--special-products-slider > div {
  display: flex !important;
  align-items: center !important;
}

.s-block--special-products-slider .lg\:w-1\/3 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}

.s-block--special-products-slider img {
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

.s-block--special-products-slider .slider-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 100% !important;
}


.s-block--special-products-slider img {
  height: 100% !important;
  width: auto !important;
}

.s-block--special-products-slider * {
  max-height: unset !important;
}

@media (max-width: 768px) {
  .s-block--special-products-slider > div {
    flex-direction: column !important;
  }

  .s-block--special-products-slider .lg\:w-1\/3,
  .s-block--special-products-slider .slider-wrap {
    width: 100% !important;
  }

  .s-block--special-products-slider img {
    height: auto !important;
    width: 100% !important;
  }
}

.s-block--special-products-slider > div {
  display: flex !important;
  align-items: center !important;
}

.s-block--special-products-slider .slider-wrap {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.s-block--special-products-slider .swiper-wrapper {
  display: flex !important;
  align-items: center !important;
}

.s-block--special-products-slider .product-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.s-block--special-products-slider .product-card__image {
  height: 300px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-block--special-products-slider .product-card__image img {
  max-height: 100%;
  object-fit: contain !important;
}

.s-block--special-products-slider .lg\:w-1\/3 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}

.s-block--special-products-slider .lg\:w-1\/3 img {
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

@media (max-width: 768px) {
  .s-block--special-products-slider > div {
    flex-direction: column !important;
  }

  .s-block--special-products-slider .lg\:w-1\/3,
  .s-block--special-products-slider .slider-wrap {
    width: 100% !important;
  }

  .s-block--special-products-slider .product-card__image {
    height: 220px !important;
  }
}

@media (max-width: 1023px) {

  salla-product-images {
    max-height: 380px !important;
    height: 380px !important;
    display: block !important;
    overflow: hidden !important;
  }

  salla-product-images::part(container),
  salla-product-images::part(wrapper),
  salla-product-images::part(main-image) {
    max-height: 380px !important;
    height: 380px !important;
  }

  .product-page .swiper-slide img,
  .s-product-page .swiper-slide img,
  main .swiper-slide img {
    max-height: 350px !important;
    width: 100% !important;
    object-fit: contain !important;
  }

  main .swiper,
  main .swiper-wrapper,
  main .swiper-slide {
    max-height: 380px !important;
  }

  .s-product-gallery,
  .product-gallery,
  [class*="gallery"],
  [class*="product-image"] {
    max-height: 380px !important;
    overflow: hidden !important;
  }

  .s-content,
  main,
  .s-main,
  #main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 768px) {
  body:not(.free-images-height) .swiper-slide .product-card:not(.product-card--fit-height):not(.product-card__full-image):not(.product-card--minimal):not(.product-card--horizontal) {
    height: auto;
    max-height: 300px;
  }
}

/* =================================================
   FIX MOBILE PRODUCT SLIDER – HOME PAGE ONLY
   ================================================= */

/* 1) إزالة الارتفاع الثابت من سكشن السلايدر في الهوم فقط */
@media (max-width:768px){
.home-page .s-block--special-products-slider .min-h-\[600px\]{
    min-height:auto !important;
    height:auto !important;
}
}

/* 2) منع قص الكروت داخل سلايدر المنتجات (الهوم فقط) */
@media (max-width:768px){
.home-page .s-products-slider-wrapper,
.home-page .s-slider-wrapper,
.home-page .swiper,
.home-page .swiper-wrapper{
    overflow:visible !important;
    height:auto !important;
}
}

/* 3) تقليل الفراغ السفلي */
@media (max-width:768px){
.home-page .slider-wrap{
    padding-bottom:10px !important;
    padding-top:10px !important;
}
}

/* 4) إصلاح كارت المنتج داخل سلايدر الهوم فقط */
@media (max-width:768px){
.home-page .s-products-slider .product-card{
    height:auto !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:space-between !important;
}
}

/* 5) محتوى الكارت يتمدد طبيعي */
@media (max-width:768px){
.home-page .s-products-slider .product-card__content{
    height:auto !important;
    flex:1 !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:space-between !important;
}
}

/* 6) صورة المنتج مربعة بدون قص */
@media (max-width:768px){
.home-page .s-products-slider .product-card__image{
    height:auto !important;
    aspect-ratio:1/1 !important;
}
}

/* 7) زر إضافة للسلة يظهر طبيعي */
@media (max-width:768px){
.home-page .s-products-slider .product-card__enhanced-mini-cart,
.home-page .s-products-slider .product-card__normal-cart{
    position:relative !important;
    bottom:auto !important;
    margin-top:10px !important;
}
}

/* 8) عرض السلايد مناسب للموبايل */
@media (max-width:768px){
.home-page .s-products-slider-card{
    width:85% !important;
    margin:0 auto !important;
}
}

/* 9) Padding الكارت */
@media (max-width:768px){
.home-page .s-products-slider .product-card__content-wrapper{
    padding:10px !important;
}
}