/* Z+ responsive layout: esta hoja debe cargarse al final. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.categories-section {
  overflow: hidden;
}

.category-rail {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px 14px;
  overflow: visible;
  padding: 4px 0;
  scroll-snap-type: none;
}

.category-card {
  width: 100%;
  min-width: 0;
  min-height: 142px;
  padding: 12px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex: none;
  scroll-snap-align: none;
}

.category-card:hover {
  background: #f8fbf9;
  box-shadow: 0 12px 28px rgba(12, 71, 39, .08);
}

.category-card strong,
.category-card span {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .category-rail {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .category-rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .category-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .categories-section {
    padding: 22px 12px;
  }

  .category-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 6px;
  }

  .category-card {
    min-height: 108px;
    padding: 7px 3px;
    gap: 7px;
  }

  .category-card .cat-icon {
    width: 62px;
    height: 62px;
  }

  .category-card i {
    font-size: 30px;
  }

  .category-card strong {
    font-size: 11px;
  }

  .category-card span {
    display: none;
  }
}

@media (max-width: 360px) {
  .category-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
