/* =========================================================
   MODULE ZI CATEGORY CARDS
========================================================= */

.zi-category-cards-module {
  width: 90% !important;
  max-width: 95vw !important;
  margin: 45px auto !important;
}

.zi-category-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

.zi-category-card-module-item {
  position: relative !important;
  height: 150px !important;
  border-radius: 5px !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #222 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 22px 18px !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, filter 0.2s ease !important;
}

.zi-category-card-module-item:hover {
  transform: translateY(-3px) !important;
  filter: brightness(1.08) !important;
}

.zi-category-card-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.48) !important;
  z-index: 1 !important;
}

.zi-category-card-title {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.85) !important;
}

.zi-category-card-button {
  position: absolute !important;
  left: 18px !important;
  bottom: 16px !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0 16px !important;
  background: #ff1010 !important;
  color: #fff !important;
  border-radius: 3px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

@media (max-width: 1200px) {
  .zi-category-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .zi-category-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .zi-category-card-title {
    font-size: 18px !important;
  }
}

@media (max-width: 520px) {
  .zi-category-cards-grid {
    grid-template-columns: 1fr !important;
  }
}
