/* Add custom CSS styles below */ 
@media (max-width: 767px) {

  /* المسافات بين أقسام الصفحة الرئيسية */
  .s-block {
    margin-top: 32px !important;
    margin-bottom: 0 !important;
  }

  .s-block > .container {
    padding-inline: 12px !important;
  }

  /* عناوين الأقسام */
  .s-block__title {
    margin-bottom: 18px !important;
  }

  .s-block__title h2 {
    font-size: 20px !important;
    line-height: 1.4 !important;
  }

  /* حجم البطاقات في سلايدر المنتجات */
  .s-products-slider-wrapper .swiper-slide {
    width: 54% !important;
  }

  /* عرض منتجين في الصف عند استخدام الشبكة */
  .s-products-list-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  /* بطاقة المنتج */
  .s-product-card-entry {
    border-radius: 14px !important;
    overflow: hidden !important;
    height: 100% !important;
  }

  /* صور المنتجات مربعة */
  .s-product-card-image {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .s-product-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* محتوى البطاقة */
  .s-product-card-content {
    padding: 14px 12px !important;
    gap: 10px !important;
  }

  /* اسم المنتج بحد أقصى ثلاثة أسطر */
  .s-product-card-content-title {
    margin: 0 !important;
    min-height: 63px !important;
  }

  .s-product-card-content-title a {
    font-size: 15px !important;
    line-height: 21px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
  }

  /* الأسعار */
  .s-product-card-price {
    font-size: 16px !important;
  }

  .s-product-card-sale-price {
    gap: 8px !important;
  }

  /* زر الإضافة للسلة */
  .s-product-card-content-footer {
    margin-top: 10px !important;
  }

  .s-product-card-content-footer .s-button-element {
    min-height: 42px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }

  /* البنرات العريضة مثل المرجع */
  .s-block--banners .banner-entry {
    aspect-ratio: 2.55 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  .s-block--banners .banner-entry img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}