/* ===========================
   Components.css (reutilizáveis)
   NÃO inclui estilos do dropdown de categorias.
   =========================== */

/* ===== Tokens básicos (caso o base.css não defina) ===== */
:root {
  --accent-yellow: #ffc107;
  --accent-yellow-strong: #e0aa00;
  --accent-blue: #5361ff;
  --brand: #8bd111;
  --ring: #8bd111;
  --muted: #6b7280;
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

/* ===== Resets mínimos do componente ===== */
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  display: block;
}

/* ================= Botões ================= */
.btn-primary,
.btn-outline,
.btn-ghost {
  padding: 12px 16px;
  border-radius: 30px;
  border: 0;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, opacity 0.15s ease, transform 0.06s ease,
    box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent-yellow);
  color: #111;
  box-shadow: 0 6px 12px rgba(255, 193, 7, 0.28);
}
.btn-primary:hover {
  background: var(--accent-yellow-strong);
}
.btn-primary:active {
  transform: translateY(1px);
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--ring);
  color: #111;
}
.btn-outline:hover {
  background: #f8fafc;
}
.btn-outline:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--ring);
  color: #111;
}
.btn-ghost:hover {
  background: #f8fafc;
}
.btn-ghost:active {
  transform: translateY(1px);
}

/* Ícone à esquerda (para botões e links) */
.icon-left {
  gap: 8px;
}

/* ================= Links ================= */
.link {
  color: #1f2937;
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.2s ease;
}
.link:hover {
  opacity: 0.9;
}

/* ================= Cards de Produto (azuis) ================= */
.product-card {
  background: var(--accent-blue);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  gap: 12px;
  color: #fff;
  box-shadow: 0 10px 22px rgba(83, 97, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(83, 97, 255, 0.28);
}
.product-card h3 {
  margin: 8px 0 2px;
  font-size: 14px;
  line-height: 1.35;
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
}
.product-card__image {
  height: 180px;
  display: grid;
  place-items: center;
  background: #93a0ff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.product-card__image img {
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}
.product-card .btn-primary {
  width: 100%;
  text-align: center;
}

/* ================= Cards de Destaque (brancos) ================= */
.deal-card {
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.deal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.12);
}
.deal-card__image {
  height: 180px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  border-radius: 12px;
  border: 1px dashed #d1d5db;
}
.deal-card h3 {
  margin: 4px 0 0;
  font-size: 14px;
}
.deal-card .meta {
  color: var(--muted);
  margin: 0;
}

/* ================= Category Pills ================= */
.category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  flex: 0 0 auto;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
}
.category-pill .circle {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.category-pill .circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-pill:hover .circle {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(116, 197, 44, 0.28);
}

/* ================= Steps (3 cards) ================= */
.steps {
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step-card {
  background: #8bd111;
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow);
}

/* ================= Business Grid (verde) ================= */
.business-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.business-card {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #0b2d05;
  border: 0;
  border-radius: 16px;
  padding: 18px;
  gap: 8px;
  box-shadow: 0 8px 16px rgba(116, 197, 44, 0.18);
}
.business-card .icon {
  font-size: 22px;
}

/* ===== Responsivo (components) ===== */
@media (max-width: 1100px) {
  .business-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ================= Carrosséis (padrão 1 linha) ================= */
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-mini,
.carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.06s ease;
}
.carousel-mini:hover,
.carousel-arrow:hover {
  background: #f7f7f7;
}
.carousel-mini:active,
.carousel-arrow:active {
  transform: translateY(1px);
}

.carousel-track,
.cards-row,
.deals-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important; /* impede quebra de linha */
  gap: 16px !important;
  overflow-x: auto !important; /* rolagem horizontal */
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 12px;
  white-space: nowrap; /* fallback extra */
}
.carousel-track::-webkit-scrollbar,
.cards-row::-webkit-scrollbar,
.deals-track::-webkit-scrollbar {
  height: 8px;
}
.carousel-track::-webkit-scrollbar-thumb,
.cards-row::-webkit-scrollbar-thumb,
.deals-track::-webkit-scrollbar-thumb {
  background: #e1e1e1;
  border-radius: 8px;
}

.carousel-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* Larguras padrão dos cartões em carrossel */
.product-card.carousel-item,
.deal-card.carousel-item {
  width: 216px;
}

/* Ajuste universal para imagens dos cartões em trilhos */
.product-card__image,
.deal-card__image {
  width: 100%;
  height: 180px;
  min-height: 180px;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__image img,
.deal-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsivo dos carrosséis */
@media (max-width: 720px) {
  .product-card.carousel-item,
  .deal-card.carousel-item {
    width: 180px;
  }
  .category-pill .circle {
    width: 80px;
    height: 80px;
  }
}

/* ================= Micro interações globais de componentes ================= */
.mainnav .link,
.topbar .link {
  transition: opacity 0.15s ease;
}
