
/* ===== Scoped ONLY to All Categories section ===== */
.all-categories-productstyle { text-align: center; }

/* Center section header */
.all-categories-productstyle .featured-categories-header{
  display:flex !important;
  justify-content:center !important;
  text-align:center !important;
}

/* Subtitles */
.all-categories-productstyle .all-categories-subtitle{
  width:100%;
  text-align:center !important;
  font-weight:800;
  margin: 0 0 22px !important;
  font-size: 22px;
}

/* ===== GRID ===== */
.all-categories-productstyle ul.tabs.featured-categories-tabs.all-categories-grid{
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;

  display:grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

/* Responsive grid */
@media (max-width: 1199px){
  .all-categories-productstyle ul.tabs.featured-categories-tabs.all-categories-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 991px){
  .all-categories-productstyle ul.tabs.featured-categories-tabs.all-categories-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 575px){
  .all-categories-productstyle ul.tabs.featured-categories-tabs.all-categories-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ===== CARD ===== */
.all-categories-productstyle ul.all-categories-grid > li.tab-item{
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: 100% !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;

  justify-self: stretch !important;
  align-self: stretch !important;

  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
   
}

.all-categories-productstyle ul.all-categories-grid > li.tab-item:hover{
 
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

/* Full card clickable */
.all-categories-productstyle ul.all-categories-grid > li.tab-item > a.all-categories-link{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;

  width:100% !important;
  height:100% !important;

  color:#111 !important;
  text-decoration:none !important;
}

.all-categories-productstyle a.all-categories-link *{
  color:inherit !important;
  text-decoration:none !important;
}

/* ===== IMAGE AREA (bigger) ===== */
.all-categories-productstyle .featured-category-image{
  width: 100% !important;
  height: 280px !important;
  padding: 8px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  background:#fff !important;
}

.all-categories-productstyle .featured-category-image img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display:block !important;
   transition: none !important; 
}


/* ===== TITLE ===== */
.all-categories-productstyle .featured-category-name{
  width:100% !important;
  text-align:center !important;

  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;

  padding: 8px 10px 12px !important;

  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;

  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* Responsive image height */
@media (max-width: 1199px){
  .all-categories-productstyle .featured-category-image{
    height: 240px !important;
  }
}
@media (max-width: 991px){
  .all-categories-productstyle .featured-category-image{
    height: 210px !important;
  }
}
@media (max-width: 575px){
  .all-categories-productstyle .featured-category-image{
    height: 180px !important;
  }
}
