/* ================= Base / Tokens ================= */
:root {
  --accent-yellow: #ffc107;
  --accent-yellow-strong: #e0aa00;
  --accent-blue: #5361ff;
  --brand: #b6ff6e;
  --ring: #e5e7eb;
  --muted: #6b7280;
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

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

/* ================= Layout da Home (seções) ================= */
.section {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 16px;
}
h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

/* ================= HERO (banner + logo) ================= */
.hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.hero__track {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}
.hero__slide {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 36.3%; /* 1280x465 */
  background-size: cover;
  background-position: center;
  border-radius: 14px;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0)
  );
  border-radius: 14px;
}
.hero__content {
  position: absolute;
  left: 32px;
  top: 32px;
  right: 32px;
  color: #fff;
}
.hero__content h1 {
  margin: 14px 0 0;
  font-size: 24px;
  line-height: 1.25;
}
.hero__logo {
  height: 94px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Setas do hero/carrossel */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 1px solid var(--ring);
  background: #fff;
  color: #111;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}
.carousel-arrow.left {
  left: 22px;
}
.carousel-arrow.right {
  right: 22px;
}
.carousel-arrow:hover {
  background: #f7f7f7;
}

/* ================= STEPS ================= */
.steps {
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow);
}
.step-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  font-size: 18px;
  border: 1px dashed #d1d5db;
}

/* ===== Botões ===== */
.btn-primary,
.btn-outline {
  padding: 12px 16px;
  border-radius: 30px;
  border: 0;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.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-outline {
  background: #fff;
  border: 1px solid var(--ring);
  color: #111;
}
.btn-outline:hover {
  background: #f8fafc;
}

/* ===== 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);
}
.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 h3 {
  margin: 8px 0 2px;
  font-size: 14px;
  line-height: 1.35;
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
}
.product-card .btn-primary {
  width: 100%;
  text-align: center;
}

/* ===== Cards destaque da semana (brancos) ===== */
.deal-card {
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
}
.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;
}

/* ===== Links ===== */
.link {
  color: #1f2937;
}
.link:hover {
  opacity: 0.9;
}

/* ===== Grid “tipo de negócio” (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;
}
@media (max-width: 1100px) {
  .business-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Micro interações ===== */
.mainnav .link,
.topbar .link {
  transition: opacity 0.15s ease;
}
.product-card,
.deal-card,
.category-pill .circle {
  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);
}
.deal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.12);
}
.category-pill:hover .circle {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(116, 197, 44, 0.28);
}

/* ==== Trilhos horizontais (uma linha, com snap) ==== */
.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;
}
.carousel-mini:hover,
.carousel-arrow:hover {
  background: #f7f7f7;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar {
  height: 8px;
}
.carousel-track::-webkit-scrollbar-thumb {
  background: #e1e1e1;
  border-radius: 8px;
}
.carousel-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* cartões de produto no carrossel: largura fixa p/ “uma linha” */
.product-card.carousel-item,
.deal-card.carousel-item {
  width: 216px; /* ajuste fino conforme seu layout */
}

/* imagens dos cartões em carrossel (mantém 1:1 quando necessário) */
.product-card__image,
.deal-card__image {
  width: 100%;
  aspect-ratio: 1/1;
  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;
}

/* ===== Categorias (pílulas) ===== */
.categories-track {
  /* herda de .carousel-track */
}
.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;
}
.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;
}
.category-pill .circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* responsivo: em telas pequenas, cartões um pouco menores */
@media (max-width: 720px) {
  .product-card.carousel-item,
  .deal-card.carousel-item {
    width: 180px;
  }
  .category-pill .circle {
    width: 80px;
    height: 80px;
  }
  .hero__content h1 {
    font-size: 18px;
  }
  .hero__logo {
    height: 80px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ==== Força carrossel em 1 linha ==== */
.cards-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.cards-row .product-card {
  flex: 0 0 auto;
  width: 216px; /* deixe igual ao resto do layout */
  scroll-snap-align: start;
}

/* Destaques da semana (mesma lógica) */
.deals-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.deals-track .deal-card {
  flex: 0 0 auto;
  width: 216px;
  scroll-snap-align: start;
}

/* Ajuste opcional para mobile */
@media (max-width: 720px) {
  .cards-row .product-card,
  .deals-track .deal-card {
    width: 180px;
  }
}

/* ==== Carrossel de produtos em 1 linha ==== */
.cards-row,
.deals-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}

.cards-row .product-card,
.deals-track .deal-card {
  flex: 0 0 auto;
  width: 220px; /* ajuste conforme seu layout */
  scroll-snap-align: start;
}

.cards-row.carousel-track,
.deals-track.carousel-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.cards-row .product-card.carousel-item,
.deals-track .deal-card.carousel-item {
  flex: 0 0 auto !important;
  width: 216px !important; /* ajuste fino */
}

/* ===== Carrossel em 1 linha (força e ignora grids antigos) ===== */
.cards-row,
.deals-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important; /* impede quebrar 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 */
}

.cards-row > .product-card,
.deals-track > .deal-card {
  flex: 0 0 240px !important; /* largura fixa de cada card */
  max-width: 240px !important;
  scroll-snap-align: start;
  display: inline-flex; /* evita “esticar” por regras herdadas */
  flex-direction: column;
}

/* garante altura/ratio das imagens do card pra não “estourar” */
.product-card__image,
.deal-card__image {
  width: 100%;
  height: 180px !important;
  min-height: 180px !important;
}

/* setas (já existem, só mantendo) */
.carousel-mini,
.carousel-arrow {
  cursor: pointer;
}
