/* إظهار أيقونة البحث في الجوال (كانت hidden md:block) */
@media (max-width: 767px){
  header button.header-btn.hidden.md\:block{
    display: inline-flex !important;  /* أو block */
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 767px){

  /* حصر التعديل داخل قائمة الهامبرغر فقط */
  .mm-ocd--open nav#mobile-menu{
    font-size: 12px !important;
  }

  /* تصغير text-sm داخل القائمة */
  .mm-ocd--open nav#mobile-menu .text-sm{
    font-size: 12px !important;
  }

  /* تقليل الـ padding العمودي (py-3) داخل القائمة */
  .mm-ocd--open nav#mobile-menu .py-3{
    padding-top: .35rem !important;
    padding-bottom: .35rem !important;
  }

  /* تقليل مسافات عناصر القائمة نفسها */
  .mm-ocd--open nav#mobile-menu li{
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  /* احتياط: لو mmenu يضع padding على الروابط/السبان */
  .mm-ocd--open nav#mobile-menu a,
  .mm-ocd--open nav#mobile-menu span{
    padding-top: .35rem !important;
    padding-bottom: .35rem !important;
  }
}
/* إخفاء أزرار الكارد */
.card__overlay {
    display: none !important;
}
/* مسافه بين السطور */
.s-product-card-content-title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    line-height: 1.35 !important;
}
@media (max-width: 768px) {
    
    /* --- 1. أكواد جديدة لحل مشكلة المساحة الفارغة الكبيرة بين السلايدرات --- */
    .t-catsec {
        padding-top: 15px !important;
        padding-bottom: 5px !important; /* تقليل المساحة السفلية للقسم الأساسي */
        margin-bottom: 0 !important;
    }
    
    .t-catsec .tcat, 
    .t-catsec .tcat-inner {
        height: auto !important; /* إلغاء الارتفاع الثابت (200px) ليتقلص القسم على حجم الصورة */
        min-height: auto !important;
    }

    .t-catsec salla-slider {
        margin-bottom: 0 !important;
    }

    /* --- 2. الأكواد السابقة الخاصة بالصور والنصوص (التي نجحت معك) --- */
    .t-catsec .tcat-image {
        width: 70px !important;
        height: 70px !important;
        position: relative !important;
        margin: 0 auto !important;
    }

    .t-catsec .tcat-image svg {
        width: 95px !important;   
        height: 95px !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important; 
        z-index: 0 !important;
    }

    .t-catsec .tcat-image img {
        width: 80% !important; 
        height: 80% !important;
        object-fit: contain !important;
        right: auto !important; 
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important; 
        z-index: 10 !important;
        position: absolute !important;
    }

    .t-catsec .content {
        margin-right: 0 !important; 
        margin-top: 15px !important;
        text-align: center !important;
    }

    .t-catsec .tcat-name {
        font-size: 11px !important; 
        font-weight: bold !important;
        white-space: normal !important; 
        line-height: 1.4 !important;
        margin: 0 auto !important;
    }
}