/* ===== Topbar / Search / Ações ===== */
.topbar {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: var(--gap);
  align-items: center;
  padding: 18px 0 10px;
}
.topbar__left .logo img {
  height: 38px;
}

.searchbar {
  display: grid;
  grid-template-columns: 44px 1fr 120px;
  gap: 0;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: var(--radius-pill);
  height: 44px;
  overflow: hidden;
}
.searchbar__input {
  border: 0;
  padding: 0 12px;
  outline: none;
}
.searchbar__btn {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.searchbar::before {
  display: grid;
  place-items: center;
  color: #9ca3af;
  background: #fff;
  border-right: 1px solid var(--ring);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar .link {
  color: var(--ink);
}
.topbar .icon-link span {
  color: var(--muted);
}
.cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ring);
  box-shadow: var(--shadow);
}
.cart__qty {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-weight: 700;
}

/* ===== Navegação ===== */
.mainnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--ring);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.mainnav__links {
  display: flex;
  gap: 20px;
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--ring);
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== Hero (banner 1280x465) ===== */
.hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #ddefd1;
  margin-bottom: var(--gap-lg);
}
.hero__track {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
}
.hero__slide {
  position: relative;
  flex: 0 0 100%;
  height: 465px;
  background-color: #b7df96;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* <- a imagem vai cobrir toda a área */
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(99, 181, 61, 0.82) 0%,
    rgba(99, 181, 61, 0.28) 55%,
    rgba(99, 181, 61, 0) 100%
  );
  mix-blend: multiply;
}
.hero__content {
  position: absolute;
  inset: 0;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 0 42px;
  color: #fff;
}
.topbar__left .logo img {
  width: 300px; /* aumenta a largura */
  height: auto; /* altura proporcional */
  object-fit: contain;
  display: block;
}

/* Logo no banner */
.hero__logo {
  max-height: 64px;
  width: auto;
}
.hero h1 {
  max-width: 720px;
  font-size: 28px;
  line-height: 1.28;
  margin: 0;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ring);
  background: #fff;
  color: #111;
  box-shadow: var(--shadow);
  z-index: 3;
}

/* ===== Seções ===== */
.section {
  margin: 32px 0;
}
.section h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

/* ===== 3 Passos ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 22px 0 var(--gap-xl);
}
.step-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid #4aae1a;
  border-radius: 14px;
  padding: 14px;
}

/* ===== Grades / Carrosséis ===== */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.deals-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.categories-track {
  display: flex;
  gap: 22px;
  overflow: auto;
  padding: 6px 2px;
  scroll-snap-type: x mandatory;
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.carousel-mini {
  border: 1px solid var(--ring);
  background: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

/* ===== Pills de categoria ===== */
.category-pill {
  scroll-snap-align: start;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.category-pill .circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #c7ee86;
  border: 6px solid var(--brand);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(116, 197, 44, 0.25);
}
.category-pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.category-pill span {
  font-size: 12px;
  color: #2b2b2b;
}

/* ===== Rodapé ===== */
.footer {
  margin: 48px 0 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ring);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

/* ===== Responsivo ===== */
@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 180px 1fr auto;
  }
  .cards-row,
  .deals-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__content {
    padding: 0 28px;
  }
  .hero h1 {
    font-size: 24px;
  }
}
@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .topbar__right {
    justify-content: space-between;
  }
  .mainnav {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .cards-row,
  .deals-track {
    grid-template-columns: 1fr;
  }
  .hero__slide {
    height: 360px;
  }
  .hero h1 {
    font-size: 20px;
  }
}
