/* ============================================================================
   Categorias Home — Carrossel (Circular)
   ============================================================================ */

.heq-cathome {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 0 52px;
}

/* ── Track ─────────────────────────────────────────────────────────────────── */

.heq-cathome-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  padding: 6px 0;
}

/* Esconder até o JS calcular as larguras */
.heq-cathome-track:not(.is-ready) {
  opacity: 0;
}
.heq-cathome-track.is-ready {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */

.heq-cathome-card {
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s ease;
}

.heq-cathome-card:hover {
  transform: translateY(-4px);
}

/* ── Image (circular) ─────────────────────────────────────────────────────── */

.heq-cathome-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: 70%;
  background: #ffffff;
}

.heq-cathome-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
  padding: 10%;
}

.heq-cathome-card:hover .heq-cathome-img-wrap img {
  transform: scale(1.08);
}

/* Ícone Lucide */
.heq-cathome-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #004F6B;
  padding: 20%;
  box-sizing: border-box;
  transition: transform 0.5s ease, color 0.3s ease;
}

.heq-cathome-icon svg,
.heq-cathome-icon i[data-lucide] {
  width: 100%;
  height: 100%;
  stroke-width: 1.6;
}

.heq-cathome-card:hover .heq-cathome-icon {
  transform: scale(1.08);
  color: #003d54;
}

.heq-cathome-card--icon .heq-cathome-img-wrap {
  background: #f5f9fb;
}

.heq-cathome-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.heq-cathome-card:hover .heq-cathome-overlay {
  opacity: 1;
}

/* ── Info ──────────────────────────────────────────────────────────────────── */

.heq-cathome-info {
  padding: 10px 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  position: relative;
  text-align: center;
  width: 100%;
}

.heq-cathome-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.heq-cathome-count {
  font-size: 12px;
  color: #888;
  font-weight: 400;
}

.heq-cathome-arrow {
  display: none;
}

/* ── Nav Buttons ──────────────────────────────────────────────────────────── */

.heq-cathome-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s ease;
  color: #333;
  padding: 0;
}

.heq-cathome-nav:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transform: translateY(-60%) scale(1.08);
}

.heq-cathome-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.heq-cathome-prev {
  left: 8px;
}

.heq-cathome-next {
  right: 8px;
}

.heq-cathome-footer-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  pointer-events: none;
}

.heq-cathome-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
}

.heq-cathome-dot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 999px;
  background: #d2d8dd;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.heq-cathome-dot:hover {
  background: #8c98a3;
}

.heq-cathome-dot.is-active {
  width: 24px;
  background: #004f6b;
}

/* ============================================================================
   Responsive — largura dos cards controlada via JS (heqCathomeConfig)
   ============================================================================ */

/* Tablet small */
@media (max-width: 768px) {
  .heq-cathome {
    padding-bottom: 0;
  }

  .heq-cathome-track {
    gap: 12px;
  }

  .heq-cathome-nav {
    width: 34px;
    height: 34px;
  }

  .heq-cathome-name {
    font-size: 13px;
  }

  .heq-cathome-count {
    font-size: 11px;
  }

  /* Esconder dots em tablet/mobile — usar apenas as setas ‹ › */
  .heq-cathome-footer-nav {
    display: none;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .heq-cathome {
    padding-bottom: 42px;
  }

  .heq-cathome-track {
    gap: 10px;
  }

  .heq-cathome-info {
    padding: 6px 2px 0;
  }

  .heq-cathome-name {
    font-size: 12px;
  }

  .heq-cathome-nav {
    width: 30px;
    height: 30px;
  }

  .heq-cathome-footer-nav {
    display: none;
  }
}
