
/* إبقاء التصميم نفسه لكن تكبير البطاقات حتى تكون أوضح وتغطي الفراغ */
#categoryGallery{
  gap:18px;
  align-items:stretch;
}
#categoryGallery .category-tile{
  min-height:340px;
  aspect-ratio:0.86;
  border-radius:28px;
  box-shadow:0 16px 34px rgba(59,20,24,.18);
  transform:translateZ(0);
}
#categoryGallery .category-media,
#categoryGallery .category-media img{
  height:100%;
}
#categoryGallery .category-copy{
  left:18px;
  right:18px;
  bottom:18px;
}
#categoryGallery .category-copy strong{
  font-size:clamp(1.2rem,1.9vw,1.55rem);
  line-height:1.22;
}
#categoryGallery .category-copy span{
  font-size:clamp(1rem,1.25vw,1.12rem);
}
#categoryGallery .category-icon{
  width:52px;
  height:52px;
}
#categoryGallery .category-count{
  font-size:.9rem;
  padding:7px 14px;
}
#categoryGallery .category-shade{
  background:linear-gradient(180deg,rgba(25,8,10,.02) 0%,rgba(25,8,10,.05) 42%,rgba(37,9,16,.36) 76%,rgba(34,8,14,.72) 100%);
}
/* تقليل الفراغ أسفل القسم */
.categories-section,
.menu-categories,
.category-wrap,
.section-categories{
  padding-bottom:12px !important;
  margin-bottom:0 !important;
}
@media (max-width: 900px){
  #categoryGallery .category-tile{
    min-height:320px;
    aspect-ratio:0.82;
  }
}
@media (max-width: 640px){
  #categoryGallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }
  #categoryGallery .category-tile{
    min-height:270px;
    aspect-ratio:0.72;
    border-radius:24px;
  }
  #categoryGallery .category-copy{
    left:12px;
    right:12px;
    bottom:14px;
  }
  #categoryGallery .category-copy strong{
    font-size:clamp(1rem,4.2vw,1.22rem);
  }
  #categoryGallery .category-copy span{
    font-size:.95rem;
  }
  #categoryGallery .category-icon{
    width:42px;
    height:42px;
  }
  #categoryGallery .category-count{
    font-size:.76rem;
    padding:6px 11px;
  }
}
