/* ==== Global iPhone Fix for Footer + Categories ==== */
@supports (-webkit-touch-callout: none) {

  /* إصلاح طريقة حساب الارتفاع */
  html, body {
    min-height: -webkit-fill-available !important;
    height: auto !important;
    overflow-x: hidden !important;
  }

  /* تصحيح عرض صور الكاتيجوريز */
  .category-section img,
  .categories img,
  .collection-grid img,
  .product-grid img,
  .luxify_category img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* تأكيد إن سكشن الكاتيجوريز واخد ارتفاع طبيعي */
  .category-section,
  .categories,
  .collection-grid,
  .product-grid,
  .luxify_category {
    position: relative !important;
    z-index: 10 !important;
    min-height: auto !important;
    margin-bottom: 60px !important; /* علشان في مسافة آمنة قبل السكشن اللي بعده */
  }

  /* أي سكشن بعد الكاتيجوريز (footer, policy, contact...) */
  footer,
  .footer,
  .site-footer,
  .footer-links,
  .policy-section,
  .luxify_footer,
  .policies {
    position: relative !important;
    z-index: 5 !important;
    margin-top: 60px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    background-color: #fff !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* إصلاح خاص للـ iPhone Safe Area (في أسفل الشاشة) */
  body {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  /* تصحيح حجم الصور داخل السلايدر أو الجريد */
  .swiper-slide img,
  .image-card img {
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
  }
}
