:root {
  --green: #00843d;
  --green-dark: #063f2f;
  --yellow: #ffcc29;
  --blue: #002776;
  --white: #ffffff;
  --gray: #f5f7f4;
  --text: #1f2933;
  --muted: #6b7280;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #f7fff8 0%, #ffffff 45%, #f4f8ff 100%);
  padding-top: 88px;
  color: var(--text);
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 132, 61, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.logo {
  text-align: center;
  font-weight: 900;
  font-size: 22px;
  color: var(--green-dark);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.right-area {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* BUSCA */
.search-box {
  position: relative;
  width: 260px;
}

#search {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 132, 61, 0.16);
  outline: none;
  font-size: 14px;
  background: #f8fbf7;
  color: var(--text);
}

#search:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 132, 61, 0.08);
}

/* SUGESTÕES */
.suggestions {
  position: absolute;
  top: 52px;
  left: 0;
  width: 100%;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  z-index: 999;
  overflow: hidden;
  border: 1px solid rgba(0, 132, 61, 0.1);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
}

.suggestion-item:hover {
  background: #f0fff5;
}

.suggestion-item img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.no-result {
  justify-content: center;
  color: var(--muted);
}

/* CARRINHO */
.cart-icon {
  position: relative;
  font-size: 25px;
  cursor: pointer;
  user-select: none;
  background: var(--green-dark);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon span {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--yellow);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 12px;
  min-width: 19px;
  height: 19px;
  line-height: 19px;
  text-align: center;
  padding: 0 5px;
  border-radius: 999px;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 82px 20px 76px;
  background:
    radial-gradient(circle at top left, rgba(255, 204, 41, 0.35), transparent 32%),
    radial-gradient(circle at bottom right, rgba(0, 39, 118, 0.18), transparent 34%),
    linear-gradient(135deg, #00843d, #045c38 55%, #002776);
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 204, 41, 0.16);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero h1 {
  max-width: 780px;
  margin: 0 auto 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 12px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.86);
}

.timer {
  display: inline-block;
  margin-top: 10px !important;
  padding: 10px 16px;
  border-radius: 999px;
  background: white;
  color: var(--green-dark) !important;
  font-weight: 900;
}

/* BENEFÍCIOS */
.benefits {
  max-width: 1120px;
  margin: -28px auto 28px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
}

.benefit-card {
  background: var(--white);
  border: 1px solid rgba(0, 132, 61, 0.12);
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  font-weight: 800;
  box-shadow: var(--shadow);
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  padding: 24px 20px 6px;
}

.section-title span {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}

.section-title h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--green-dark);
}

.section-title p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
}

/* PRODUTOS */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 24px;
  padding: 34px 20px 50px;
}

.card {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 132, 61, 0.1);
  box-shadow: 0 10px 26px rgba(6, 63, 47, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(6, 63, 47, 0.14);
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #eef7ef;
}

.card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.badge {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 204, 41, 0.22);
  color: #8a6800;
  font-size: 12px;
  font-weight: 900;
}

.card-content h3,
.card-content p,
.card-content ul {
  margin: 0;
}

.card-content h3 {
  color: var(--green-dark);
  font-size: 19px;
  line-height: 1.2;
}

.card-content ul {
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 106px;
  color: #46515c;
}

.card-content li {
  margin-bottom: 5px;
}

/* PREÇOS */
.price-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 16px;
  background: #f7fbf6;
}

.old-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 14px;
}

.price {
  color: var(--green);
  font-weight: 950;
  font-size: 23px;
}

/* INPUT */
.card-content input[type="number"] {
  width: 92px;
  padding: 9px;
  border: 1px solid rgba(0, 132, 61, 0.16);
  border-radius: 12px;
  font-size: 14px;
  align-self: center;
  text-align: center;
  outline: none;
}

/* BOTÕES */
button {
  background: var(--green);
  color: white;
  padding: 12px 15px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, filter 0.2s ease;
}

button:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.card-content > button {
  width: 100%;
  background: var(--green-dark);
}

.buy-link {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--yellow), #ffe37a);
  color: var(--green-dark);
  padding: 13px;
  text-align: center;
  margin-top: auto;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 950;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.buy-link:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

/* CTA */
.cta-section {
  max-width: 1120px;
  margin: 20px auto 60px;
  padding: 56px 24px;
  border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(circle at left, rgba(255, 204, 41, 0.28), transparent 32%),
    linear-gradient(135deg, var(--green-dark), var(--blue));
  color: white;
}

.cta-section span {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}

.cta-section h2 {
  margin: 10px 0;
  font-size: clamp(28px, 5vw, 46px);
}

.cta-section p {
  max-width: 560px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-section button {
  background: var(--yellow);
  color: var(--green-dark);
}

/* CARRINHO LATERAL */
.cart-box {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  max-width: 88%;
  height: 100%;
  background: white;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.14);
  padding: 24px 18px;
  transition: right 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
}

.cart-box.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.cart-header h3 {
  margin: 0;
  color: var(--green-dark);
}

.close-cart {
  font-size: 22px;
  cursor: pointer;
}

.cart-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.cart-item-info {
  flex: 1;
  font-size: 14px;
}

.remove-item {
  background: transparent;
  color: #999;
  padding: 0;
  width: 25px;
  height: 25px;
  font-size: 20px;
}

.remove-item:hover {
  background: #f3f4f6;
  color: #dc2626;
  transform: none;
}

.cart-total {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 15px;
}

.cart-box > button {
  width: 100%;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  padding: 16px;
}

.modal-content {
  background: white;
  padding: 28px;
  border-radius: 24px;
  text-align: center;
  width: 340px;
  max-width: 100%;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-content h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
}

.modal-content p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 14px;
}

.modal-content button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
}

/* RODAPÉ */
footer {
  background: #052e22;
  color: rgba(255, 255, 255, 0.8);
  padding: 44px 20px 22px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-box h3 {
  margin: 0 0 8px;
  color: var(--yellow);
}

.footer-box p {
  margin: 0;
  font-size: 14px;
}

footer .copyright {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 136px;
  }

  .header {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
    padding: 12px 16px;
  }

  .right-area {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .search-box {
    width: 100%;
    max-width: 320px;
  }

  .hero {
    padding: 58px 18px 64px;
  }

  .hero::before {
    inset: 12px;
    border-radius: 24px;
  }

  .benefits {
    grid-template-columns: 1fr;
    margin-top: -22px;
  }

  .products {
    padding: 26px 16px 40px;
    gap: 20px;
  }

  .card-content ul {
    min-height: auto;
  }

  .cta-section {
    margin: 10px 16px 46px;
    padding: 42px 20px;
  }
}