/* ===================== BASE ===================== */
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #fafafa;
  margin: 0;
  overflow-x: hidden;
}

/* ===================== BANNERS ===================== */
.banner-img {
  width: 95%;
  max-height: 400px;
  border-radius: 30px;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* ===================== CATEGORIAS (AGORA HORIZONTAL) ===================== */
.cats-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 10px 1rem 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.cat-item {
  flex: 0 0 auto;
  text-align: center;
  width: 90px;
  scroll-snap-align: start;
}

/* círculo + imagem */
.cat-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-circle:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.cat-circle img.cat-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* fallback se a imagem não existir */
.cat-circle img[src*="categoria-default"] {
  padding: 20px;
  object-fit: contain;
  background: #f1f1f1;
}
.cat-item small {
  font-size: .85rem;
  font-weight: 600;
  text-transform: capitalize;
  display: block;
}

/* ===================== PRODUTOS ===================== */
.produtos-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .produtos-list { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 992px) {
  .produtos-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .produtos-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
  .produtos-list { grid-template-columns: repeat(2, 1fr); }
}

.produto-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 6px #fff;
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  min-width: 0;
}
.produto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 6px #fff, 0 6px 20px rgba(0, 0, 0, .06);
}
.produto-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.card-body {
  padding: .75rem;
  background: #fff;
}
.titulo-produto {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.25em;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.preco-produto {
  font-size: .9rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: 2px;
}

/* ===================== BOTÃO COMPRAR (LARANJA) ===================== */
.btn-orange {
  background: #ee4d2d;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: .45rem 1.4rem;
  width: 100%;
  text-align: center;
  transition: background .2s;
}
.btn-orange:hover,
.btn-orange:focus {
  background: #d94422;
  color: #fff;
}
.btn-orange:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ===================== BOTÃO WISHLIST ===================== */
.btn-wishlist {
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.2rem;
  box-shadow: 0 0 4px rgba(0, 0, 0, .2);
  cursor: pointer;
  transition: transform .15s ease-in;
}
.btn-wishlist:hover {
  transform: scale(1.05);
}
.btn-wishlist i {
  pointer-events: none;
  transition: color .15s ease-in;
}
.btn-wishlist.ativo i {
  color: #e63946;
}

/* ===================== RESPONSIVO EXTRA ===================== */
@media (max-width: 768px) {
  .cat-circle {
    width: 72px;
    height: 72px;
  }
}
@media (max-width: 480px) {
  .cat-circle {
    width: 66px;
    height: 66px;
  }
}
