:root {
  --verde: #1b493b;        /* verde escuro da marca */
  --verde-2: #143a2e;
  --lima: #8fd14f;         /* verde-limão da peça de marca [PALPITE do tom exato] */
  --lima-claro: #eef8e4;
  --branco: #ffffff;
  --cinza: #e0e2e1;
  --texto: #10241d;
  --muted: #5d6f68;
  --borda: #dfe5e2;
  --raio: 14px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--texto); background: var(--branco); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; color: var(--muted); }

/* topo */
.topbar { background: var(--lima); color: var(--verde); font-size: 12.5px; font-weight: 600; text-align: center; padding: 7px 16px; }
.header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--verde); color: var(--branco); }
.logo img { height: 38px; width: auto; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { background: transparent; border: 1px solid rgba(255,255,255,.25); color: var(--branco); width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; }
.cart-btn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 14px; border-radius: 10px; border: 0; background: var(--branco); color: var(--verde); font-weight: 600; }
.cart-count { background: var(--lima); color: var(--verde); min-width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; }
.cart-btn.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.08); } }

.search-bar { position: sticky; top: 66px; z-index: 29; background: var(--verde); padding: 0 16px 12px; }
.search-bar input { width: 100%; height: 46px; border-radius: 10px; border: 0; padding: 0 14px; font: inherit; font-size: 16px; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--lima); color: var(--verde); padding: 40px 16px 44px; }
.hero h1 { font-size: clamp(34px, 9vw, 64px); line-height: 1; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.hero .eyebrow { color: var(--verde); }
.hero-sub { max-width: 30ch; font-size: 17px; margin: 0 0 24px; }
.hero-text { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.hero-ampola { position: absolute; right: -40px; bottom: -60px; width: 200px; opacity: .9; filter: brightness(0) saturate(100%) invert(22%) sepia(17%) saturate(1300%) hue-rotate(110deg) brightness(.95); opacity: .14; }

.btn-arrow { display: inline-flex; align-items: center; gap: 0; background: var(--verde); color: var(--branco); text-decoration: none; border-radius: 10px; font-weight: 600; overflow: hidden; }
.btn-arrow span { padding: 14px 18px; }
.btn-arrow i { font-style: normal; background: var(--branco); color: var(--verde); width: 40px; height: 40px; margin: 4px; border-radius: 7px; display: grid; place-items: center; font-size: 18px; }
.btn-arrow.light { background: var(--branco); color: var(--verde); }
.btn-arrow.light i { background: var(--verde); color: var(--branco); }

/* banners (carrossel) */
.banners { position: relative; background: var(--lima); }
.banners-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / 1; }
.banners.sem-mobile .banners-track { aspect-ratio: 3 / 1; }
.banners-track::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.banner picture, .banner img { width: 100%; height: 100%; }
.banner img { object-fit: cover; user-select: none; }
.banners-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.banners-dots button { pointer-events: auto; width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(27,73,59,.25); transition: width .25s, background .25s; }
.banners-dots button.ativo { width: 24px; background: var(--branco); }
.banners-seta { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 10px; border: 0; background: rgba(255,255,255,.9); color: var(--verde); font-size: 26px; line-height: 1; }
.banners-seta.ant { left: 16px; } .banners-seta.prox { right: 16px; }
.banners.unico .banners-seta { display: none !important; }

/* atalhos de categorias */
.atalhos { background: var(--verde); color: var(--branco); padding: 20px 16px 22px; }
.atalhos .eyebrow { color: var(--lima); max-width: 1120px; margin-left: auto; margin-right: auto; }
.atalhos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 1120px; margin: 0 auto; }
.atalho { position: relative; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--branco); transition: background .2s, border-color .2s; }
.atalho:hover { background: rgba(255,255,255,.12); border-color: var(--lima); }
.atalho-img { flex: 0 0 52px; height: 52px; border-radius: 9px; background: var(--branco); overflow: hidden; display: grid; place-items: center; }
.atalho-img img { width: 100%; height: 100%; object-fit: contain; }
.atalho-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.atalho-txt b { font-size: 15px; font-weight: 600; }
.atalho-txt small { font-family: var(--mono); font-size: 11px; color: var(--lima); }
.atalho i { display: none; }

/* catálogo */
.catalogo, .faq { max-width: 1120px; margin: 0 auto; padding: 36px 16px; }
.section-head h2 { font-size: 28px; margin: 0 0 16px; letter-spacing: -.01em; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px 18px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--borda); background: var(--branco); color: var(--verde); padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: 14px; }
.chip.ativo { background: var(--verde); border-color: var(--verde); color: var(--branco); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card { display: flex; flex-direction: column; border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; background: var(--branco); }
.card-img { position: relative; aspect-ratio: 1; background: var(--lima-claro); display: grid; place-items: center; border: 0; padding: 0; width: 100%; }
.card-img { overflow: hidden; }
.card-img img.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ph { width: 34%; filter: brightness(0) saturate(100%) invert(22%) sepia(17%) saturate(1300%) hue-rotate(110deg) brightness(.95); opacity: .85; }
.ph-wrap { width: 100%; height: 100%; display: grid; place-items: center; }
.ph-wrap.c2 { background: #e3f1ea; } .ph-wrap.c3 { background: #f1f4ef; } .ph-wrap.c4 { background: #e8efe0; }
.selo { position: absolute; top: 8px; left: 8px; background: var(--verde); color: var(--lima); font-family: var(--mono); font-size: 11px; padding: 4px 7px; border-radius: 6px; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card-nome { font-weight: 600; font-size: 15px; line-height: 1.25; margin: 0; }
.card-det { font-size: 13px; color: var(--muted); }
.precos { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.preco { font-weight: 800; font-size: 18px; color: var(--verde); }
.preco-antigo { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.btn-add { margin: 0 12px 12px; height: 42px; border-radius: 10px; border: 0; background: var(--verde); color: var(--branco); font-weight: 600; font-size: 14px; }
.btn-add:active { transform: scale(.98); }
.btn-add.no-carrinho { background: var(--lima); color: var(--verde); }

.vazio { color: var(--muted); text-align: center; padding: 24px 0; }

/* faq */
.faq details { border-top: 1px solid var(--borda); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--borda); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* rodapé */
.footer { background: var(--verde); color: var(--branco); padding: 36px 16px 110px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-logo { height: 52px; width: auto; }
.footer p { margin: 0; opacity: .8; }
.footer small { opacity: .6; font-size: 12px; }
@media (min-width: 720px) { .footer { padding-bottom: 36px; } }

/* barra fixa do carrinho (celular) */
.sticky-cart { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--verde); color: var(--branco); box-shadow: 0 10px 30px rgba(16,36,29,.3); font-size: 15px; }
.sticky-cart b { color: var(--lima); }
@media (min-width: 720px) { .sticky-cart { display: none !important; } }

/* overlay, modal, drawer */
.overlay { position: fixed; inset: 0; background: rgba(10,25,20,.5); z-index: 50; }
.sheet { position: fixed; z-index: 60; margin: 0; padding: 0; border: 0; inset: auto 0 0 0; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; background: var(--branco); color: var(--texto); }
.sheet::backdrop { background: rgba(10,25,20,.5); }
@media (min-width: 720px) { .sheet { inset: 0; margin: auto; border-radius: 18px; } }
.sheet .card-img { aspect-ratio: 4/3; }
.sheet-body { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.sheet-body h3 { margin: 0; font-size: 22px; }
.sheet-body p { margin: 0; color: var(--muted); }
.qtd-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.sheet .close { position: absolute; top: 10px; right: 10px; z-index: 2; }

.close { background: var(--branco); border: 1px solid var(--borda); color: var(--verde); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; }

.qtd { display: inline-flex; align-items: center; border: 1px solid var(--borda); border-radius: 10px; overflow: hidden; }
.qtd button { width: 38px; height: 38px; border: 0; background: var(--branco); color: var(--verde); font-size: 18px; }
.qtd span { min-width: 30px; text-align: center; font-family: var(--mono); }

.drawer { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--branco); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s ease; }
.drawer.aberto { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--borda); }
.drawer-head h3 { margin: 0; font-size: 20px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 16px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--borda); }
.cart-thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--lima-claro); display: grid; place-items: center; overflow: hidden; }
.cart-thumb img.foto { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph { width: 40%; }
.cart-item h4 { margin: 0 0 4px; font-size: 14px; }
.cart-item .sub { font-size: 13px; color: var(--muted); }
.cart-item .dir { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item .qtd button { width: 32px; height: 32px; }
.remover { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }

#passoCheckout { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
#passoCheckout label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
#passoCheckout small { font-weight: 400; color: var(--muted); }
#passoCheckout input, #passoCheckout textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 12px; border: 1px solid var(--borda); border-radius: 10px; }
#passoCheckout input:focus, #passoCheckout textarea:focus { outline: 2px solid var(--lima); border-color: var(--verde); }
#passoCheckout input.invalido { border-color: #c0392b; }
.form-erro { color: #c0392b; font-size: 14px; margin: 0; }

.drawer-foot { border-top: 1px solid var(--borda); padding: 14px 16px max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total b { font-size: 22px; color: var(--verde); }
.btn-primary { height: 52px; border-radius: 12px; border: 0; background: var(--verde); color: var(--branco); font-weight: 700; font-size: 16px; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary.wa { background: #1fa855; }
.btn-link { background: none; border: 0; color: var(--verde); font-weight: 600; }
.nota { color: var(--muted); text-align: center; font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--texto); color: var(--branco); padding: 10px 16px; border-radius: 10px; font-size: 14px; transition: .25s; z-index: 80; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 720px) {
  .header, .search-bar { padding-left: 32px; padding-right: 32px; }
  .hero { padding: 72px 32px; }
  .hero-ampola { width: 340px; right: 4%; bottom: -80px; }
  .banners-track, .banners.sem-mobile .banners-track { aspect-ratio: 3 / 1; }
  .banners.sem-desktop .banners-track { aspect-ratio: 1 / 1; max-height: 640px; }
  .banners-seta { display: grid; place-items: center; }
  .atalhos { padding: 28px 32px 32px; }
  .atalhos-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .atalho { padding: 10px 14px 10px 10px; }
  .atalho-img { flex-basis: 64px; height: 64px; }
  .atalho-txt b { font-size: 17px; }
  .atalho i { display: grid; place-items: center; margin-left: auto; font-style: normal; width: 32px; height: 32px; border-radius: 8px; background: var(--lima); color: var(--verde); }
  .catalogo, .faq { padding: 56px 32px; }
  .chips { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
  .footer { padding-left: 32px; padding-right: 32px; }
}

.mais-wrap { display: flex; justify-content: center; margin: 24px 0 8px; }
.btn-mais { border: 1.5px solid var(--verde, #1b493b); background: transparent; color: var(--verde, #1b493b); font: inherit; font-weight: 600; padding: 12px 22px; border-radius: 999px; cursor: pointer; }
.btn-mais[hidden] { display: none; }

/* aviso enquanto a planilha de produtos carrega */
.carregando { grid-column: 1 / -1; text-align: center; padding: 48px 0; opacity: .7; }
