:root {
  /* Identidade visual Sim — cores extraídas do logotipo */
  --lime: #A0C852;          /* verde-limão do cartão */
  --leaf: #79A33F;          /* verde-folha do logo */
  --leaf-dark: #668D3C;     /* verde escuro da estampa / tagline */
  --primary: #3B5A1E;       /* verde profundo p/ títulos e botões */
  --primary-2: #4D7328;
  --accent: #79A33F;
  --accent-light: #EFF6E2;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DAA52;
  --orange: #F59E0B;
  --bg: #F7FAF1;
  --surface: #FFFFFF;
  --text: #23301A;
  --text-muted: #5F6B55;
  --border: #E3EBD6;
  --danger: #EF4444;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(40,62,20,0.06);
  --shadow-md: 0 8px 24px rgba(40,62,20,0.10);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  padding-bottom: calc(76px + var(--safe-bottom));
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.ico-muted { color: var(--text-muted); }
.muted { color: var(--text-muted); }
.small { font-size: 0.75rem; }

/* ---------- Header ---------- */
.top-bar {
  background: var(--primary);
  color: #fff;
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  font-weight: 800; font-size: 1.6rem; letter-spacing: -1px; position: relative; line-height: 1;
}
.brand-logo .leaf {
  position: absolute; top: -6px; right: -9px; width: 10px; height: 10px;
  background: var(--accent); border-radius: 0 10px 0 10px; transform: rotate(-10deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; padding-left: 8px; }
.brand-text strong { font-size: 0.92rem; font-weight: 700; }
.brand-text small { font-size: 0.68rem; color: #94A3B8; font-weight: 500; white-space: nowrap; }
.main-nav { display: none; gap: 26px; font-size: 0.88rem; font-weight: 500; }
.main-nav a { color: #C9D6B8; transition: color .2s; }
.main-nav a:hover { color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.btn-wa-outline {
  display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 20px;
  border: 1px solid rgba(37,211,102,.6); color: #fff; font-size: 0.85rem; font-weight: 600;
}
.btn-wa-outline .ico { color: var(--whatsapp); }
.btn-wa-outline:hover { background: rgba(37,211,102,.12); }
.cart-indicator {
  position: relative; background: rgba(255,255,255,0.12); border: none; color: #fff;
  padding: 8px 12px; border-radius: 20px; display: flex; align-items: center; gap: 6px; font-weight: 700;
}
.badge-count {
  background: var(--accent); color: #fff; font-size: 0.72rem; min-width: 22px; padding: 2px 6px;
  border-radius: 10px; text-align: center;
}
.badge-count.bump { animation: bump .35s ease; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary) 55%, var(--bg) 55%);
  padding: 18px 0 8px;
}
.hero-inner { display: grid; gap: 18px; }
.hero-copy { color: #fff; }
.eyebrow { font-size: 0.7rem; font-weight: 600; color: #7DD3C8; text-transform: uppercase; letter-spacing: .6px; }
.hero h1 { font-size: 1.45rem; line-height: 1.2; font-weight: 800; margin: 6px 0 8px; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: #5EEAD4; }
.hero-copy p { color: #C9D6B8; font-size: 0.9rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero-badges li {
  display: flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 6px 10px; border-radius: 20px; color: #E2E8F0;
}
.hero-badges .ico { width: 16px; height: 16px; color: #5EEAD4; }

/* ---------- Assistente ---------- */
.search-card {
  background: var(--accent-light); border: 1px solid rgba(121,163,63,0.25);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-md);
}
.search-card-header span {
  font-size: 0.74rem; font-weight: 700; color: var(--leaf-dark); text-transform: uppercase; letter-spacing: 0.5px;
}
.search-box {
  display: flex; align-items: center; background: #fff; border-radius: 12px; border: 1px solid var(--border);
  padding: 5px 5px 5px 12px; gap: 8px; margin-top: 8px; transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(121,163,63,.15); }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; font-size: 16px; background: transparent; }
.mic-btn, .go-btn {
  border: none; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; flex-shrink: 0;
}
.mic-btn { background: #F1F5F9; color: var(--primary); }
.mic-btn.recording { background: var(--danger); color: #fff; animation: pulse 1.2s infinite; }
.go-btn { background: var(--accent); color: #fff; }
.voice-wave { display: none; justify-content: center; gap: 4px; height: 26px; align-items: center; margin-top: 8px; }
.voice-wave.on { display: flex; }
.voice-wave i { width: 4px; height: 8px; background: var(--accent); border-radius: 3px; animation: wave 0.9s ease-in-out infinite; }
.voice-wave i:nth-child(2) { animation-delay: .1s } .voice-wave i:nth-child(3) { animation-delay: .2s }
.voice-wave i:nth-child(4) { animation-delay: .3s } .voice-wave i:nth-child(5) { animation-delay: .4s }
.voice-wave i:nth-child(6) { animation-delay: .5s } .voice-wave i:nth-child(7) { animation-delay: .6s }
.search-tip { font-size: 0.76rem; color: var(--text-muted); margin-top: 8px; }
.search-tip b { color: var(--text); font-weight: 600; }
.examples { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; padding-bottom: 2px; scrollbar-width: none; }
.examples::-webkit-scrollbar { display: none; }
.chip {
  background: #fff; border: 1px solid rgba(121,163,63,.3); color: var(--primary); font-size: 0.76rem; font-weight: 600;
  padding: 6px 10px; border-radius: 16px; white-space: nowrap;
}
.chip:hover { background: var(--accent); color: #fff; }
.ai-result {
  margin-top: 12px; background: #fff; border-radius: 12px; padding: 12px; border: 1px solid var(--border);
  animation: fadeIn .25s ease;
}
.ai-result h5 { font-size: 0.82rem; color: var(--primary); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ai-result h5 .ico { color: var(--whatsapp-dark); width: 18px; height: 18px; }
.ai-result ul { list-style: none; font-size: 0.78rem; display: grid; gap: 3px; }
.ai-result li { display: flex; justify-content: space-between; gap: 8px; }
.ai-result li b { color: var(--accent); min-width: 28px; display: inline-block; }
.ai-result .ai-actions { display: flex; gap: 8px; margin-top: 10px; }
.ai-result .ai-actions button { flex: 1; padding: 9px; border-radius: 9px; font-size: 0.8rem; font-weight: 700; border: none; }
.btn-undo { background: #F1F5F9; color: var(--text-muted); }
.btn-see { background: var(--primary); color: #fff; }

/* ---------- Shop ---------- */
.shop { display: grid; gap: 20px; padding-top: 14px; padding-bottom: 30px; }
.shipping-bar-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.shipping-status-line { display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; font-weight: 700; margin-bottom: 6px; }
.shipping-status-line span:first-child { color: var(--primary); text-transform: uppercase; letter-spacing: .3px; }
#shippingDelta { color: var(--orange); white-space: nowrap; }
.shipping-bar-card.done #shippingDelta { color: var(--whatsapp-dark); }
.progress-track { width: 100%; height: 8px; background: #E2E8F0; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 4px; transition: width .4s ease, background-color .3s ease; }
.progress-fill.free-shipping { background: var(--whatsapp); }
.shipping-sub { display: block; font-size: 0.7rem; color: var(--text-muted); margin-top: 6px; }

.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.shop-head h2 { font-size: 1.15rem; color: var(--primary); }
.filter-box {
  display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 6px 10px; flex: 1; max-width: 260px;
}
.filter-box input { border: none; outline: none; width: 100%; font-size: 16px; background: transparent; }
.filter-box .ico { width: 16px; height: 16px; }

.category-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.category-pills::-webkit-scrollbar { display: none; }
.pill {
  background: #fff; border: 1px solid var(--border); padding: 8px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted); white-space: nowrap;
}
.pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Reserva o espaço do catálogo até o app.js desenhar os produtos (evita o "pulo" da página, CLS) */
.product-grid.is-loading { min-height: 120vh; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card.in-cart { border-color: var(--accent); }
.product-img {
  aspect-ratio: 1 / 1; background: #F8FAFC; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 8px;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-img .ico { width: 44px; height: 44px; color: #C9D6B8; }
.product-tag {
  font-size: 0.62rem; font-weight: 700; color: var(--leaf-dark); background: var(--accent-light);
  padding: 2px 6px; border-radius: 4px; align-self: flex-start; margin-bottom: 4px; text-transform: uppercase;
}
.product-title { font-size: 0.82rem; font-weight: 600; line-height: 1.25; margin-bottom: 2px; }
.product-pack { font-size: 0.7rem; color: var(--text-muted); }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; gap: 6px; }
.product-price { font-size: 0.92rem; font-weight: 800; color: var(--primary); }
.add-btn {
  background: var(--primary); color: #fff; border: none; width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 600; flex-shrink: 0;
}
.add-btn:active { transform: scale(.92); }
.card-qty { display: flex; align-items: center; gap: 4px; background: var(--accent-light); border-radius: 9px; padding: 2px; }
.card-qty button { width: 30px; height: 30px; border: none; border-radius: 7px; background: #fff; color: var(--primary); font-weight: 800; }
.card-qty span { min-width: 20px; text-align: center; font-weight: 800; font-size: 0.85rem; color: var(--primary); }
.empty-filter { text-align: center; padding: 30px 10px; color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Carrinho lateral ---------- */
.side-cart { display: none; }
.side-cart-card {
  position: sticky; top: 84px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-md);
}
.side-cart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.side-cart-head h3 { font-size: 1rem; color: var(--primary); }
.side-cart-head .muted { font-size: 0.78rem; }
.side-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--border); padding-top: 12px; margin: 12px 0; }
.side-total span { font-size: 0.8rem; color: var(--text-muted); }
.side-total strong { font-size: 1.25rem; color: var(--primary); }
.btn-primary {
  background: var(--whatsapp); color: #fff; border: none; padding: 12px 18px; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
}
.btn-primary:hover { background: var(--whatsapp-dark); }
.btn-primary.block { width: 100%; }
.btn-link { background: none; border: none; color: var(--text-muted); font-size: 0.75rem; width: 100%; margin-top: 8px; text-decoration: underline; }

.cart-items-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cart-items-list.compact { max-height: 46vh; overflow-y: auto; margin-bottom: 0; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--bg); border-radius: 10px; }
.cart-thumb { width: 42px; height: 42px; border-radius: 8px; background: #fff; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-thumb .ico { color: #C9D6B8; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 0.8rem; font-weight: 600; line-height: 1.2; }
.cart-item-sub { font-size: 0.7rem; color: var(--text-muted); }
.cart-item-sub b { color: var(--primary); }
.qty-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--border); background: #fff; border-radius: 7px; font-weight: 800; color: var(--primary); }
.qty-val { font-size: 0.85rem; font-weight: 800; min-width: 20px; text-align: center; }
.cart-empty { text-align: center; padding: 22px 10px; font-size: 0.83rem; color: var(--text-muted); }
.cart-empty .ico { width: 36px; height: 36px; color: #C9D6B8; margin: 0 auto 6px; display: block; }

/* ---------- Como funciona ---------- */
.how { background: #fff; padding: 40px 0; border-top: 1px solid var(--border); }
.section-title { font-size: 1.35rem; font-weight: 800; color: var(--primary); text-align: center; letter-spacing: -0.4px; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.section-title.left, .section-sub.left { text-align: left; }
.steps { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.steps li {
  position: relative; background: var(--bg); border-radius: var(--radius); padding: 16px 16px 16px 76px; min-height: 84px;
}
.step-n {
  position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; width: 22px; height: 22px; border-radius: 50%;
  font-size: 0.72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; z-index: 1; border: 2px solid #fff;
}
.step-ico {
  position: absolute; left: 16px; top: 16px; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
}
.step-ico .ico { width: 24px; height: 24px; }
.c-navy { background: var(--primary); } .c-aqua { background: var(--accent); }
.c-green { background: var(--whatsapp); } .c-orange { background: var(--orange); }
.steps h4 { font-size: 0.92rem; color: var(--primary); text-transform: uppercase; letter-spacing: .2px; }
.steps p { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* ---------- Entrega ---------- */
.delivery { padding: 40px 0; }
.delivery-inner { display: grid; gap: 22px; }
.city-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.city-list span {
  display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 12px; font-size: 0.8rem; font-weight: 600; color: var(--primary);
}
.city-list .ico { width: 14px; height: 14px; color: var(--accent); }
.conditions-card { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 20px; }
.conditions-card .legal-tag { color: #5EEAD4; }
.conditions-card ul { list-style: none; display: grid; gap: 14px; margin-top: 10px; }
.conditions-card li { display: flex; gap: 10px; font-size: 0.86rem; color: #C9D6B8; }
.conditions-card li b { color: #fff; }
.conditions-card .ico { color: #5EEAD4; margin-top: 1px; }

/* ---------- Footer ---------- */
.site-footer { background: #071A2E; color: #C9D6B8; padding: 32px 0 16px; }
.footer-inner { display: grid; gap: 22px; }
.brand-logo.light { color: #fff; font-size: 2rem; }
.footer-about { font-size: 0.84rem; margin-top: 10px; max-width: 380px; }
.footer-links { display: grid; gap: 10px; font-size: 0.88rem; }
.footer-links a { display: flex; align-items: center; gap: 10px; }
.footer-links a:hover { color: #fff; }
.footer-links .ico { color: #5EEAD4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 22px; padding-top: 14px; font-size: 0.72rem; color: #64748B; }

/* ---------- Bottom bar (mobile) ---------- */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + var(--safe-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06); z-index: 25;
}
.total-preview { display: flex; flex-direction: column; }
.total-preview span:first-child { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.total-preview span:last-child { font-size: 1.12rem; font-weight: 800; color: var(--primary); }
.review-quote-btn {
  background: var(--accent); color: #fff; border: none; padding: 12px 18px; border-radius: 10px; font-weight: 700; font-size: 0.88rem; white-space: nowrap;
}
.review-quote-btn.ready { background: var(--whatsapp); }

.wa-float {
  display: none; position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(37,211,102,.45); z-index: 26;
}
.wa-float .ico { width: 30px; height: 30px; }

/* ---------- Drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(10, 37, 64, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  z-index: 50; display: none; justify-content: center; align-items: flex-end;
}
.drawer-overlay.open { display: flex; }
.drawer {
  background: #fff; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0;
  padding: 10px 18px calc(18px + var(--safe-bottom)); overflow-y: auto; animation: slideUp 0.25s ease-out; overscroll-behavior: contain;
}
.drawer-grip { width: 42px; height: 5px; background: #C9D6B8; border-radius: 3px; margin: 0 auto 10px; }
.drawer-header {
  display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border);
  padding-bottom: 12px; margin-bottom: 14px;
}
.drawer-header h3 { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.close-btn { background: #F1F5F9; border: none; font-size: 1rem; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.drawer-totals { background: var(--bg); border-radius: 12px; padding: 12px; margin-bottom: 16px; font-size: 0.84rem; }
.drawer-totals .row { display: flex; justify-content: space-between; padding: 2px 0; }
.drawer-totals .row.total { font-weight: 800; font-size: 1.05rem; color: var(--primary); border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 8px; }
.freight-ok { color: var(--whatsapp-dark); font-weight: 700; }
.freight-pending { color: var(--orange); font-weight: 700; }
.form-row { display: grid; gap: 0 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.76rem; font-weight: 600; margin-bottom: 4px; }
.form-group input, .form-group select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 16px; outline: none; background: #fff;
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(121,163,63,.15); }
.form-group.invalid input { border-color: var(--danger); }
.city-warning { font-size: 0.76rem; color: #B45309; background: #FEF3C7; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.legal-notice-box {
  background: #F8FAFC; border: 2px solid var(--primary); padding: 10px 12px; border-radius: 10px; margin: 6px 0 14px;
  font-size: 0.74rem; color: var(--text-muted); line-height: 1.5;
}
.legal-tag { font-weight: 800; color: var(--primary); display: block; margin-bottom: 3px; text-transform: uppercase; font-size: 0.74rem; letter-spacing: .3px; }
.submit-whatsapp-btn {
  background: var(--whatsapp); color: #fff; border: none; width: 100%; padding: 15px; border-radius: 12px;
  font-weight: 800; font-size: 0.98rem; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 18px rgba(37,211,102,.35);
}
.submit-whatsapp-btn:hover { background: var(--whatsapp-dark); }
.submit-whatsapp-btn .ico { width: 22px; height: 22px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(86px + var(--safe-bottom)); transform: translate(-50%, 20px); opacity: 0;
  background: var(--primary); color: #fff; font-size: 0.82rem; font-weight: 600; padding: 10px 16px; border-radius: 10px;
  pointer-events: none; transition: all .25s ease; z-index: 60; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animações ---------- */
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes bump { 50% { transform: scale(1.35); } }
@keyframes wave { 0%,100% { height: 6px; } 50% { height: 24px; } }

/* ============ TABLET ============ */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.9rem; }
}

/* ============ DESKTOP ============ */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .top-bar-inner { height: 72px; }
  .main-nav, .btn-wa-outline { display: flex; }
  .hero { padding: 48px 0 30px; background: linear-gradient(180deg, var(--primary) 0%, var(--primary) 78%, var(--bg) 78%); }
  .hero-inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-copy p { font-size: 1.02rem; max-width: 480px; }
  .search-card { padding: 20px; }
  .shop { grid-template-columns: 1fr 340px; align-items: start; gap: 28px; padding-top: 26px; }
  .side-cart { display: block; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .bottom-bar { display: none; }
  .wa-float { display: flex; }
  .toast { bottom: 30px; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: 24px 16px 18px; text-align: center; }
  .step-ico { position: relative; left: auto; top: auto; margin: 0 auto 12px; width: 76px; height: 76px; }
  .step-ico .ico { width: 34px; height: 34px; }
  .step-n { top: 14px; left: calc(50% - 46px); width: 28px; height: 28px; font-size: .85rem; }
  .delivery-inner { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .drawer-overlay { align-items: center; }
  .drawer { border-radius: 20px; max-height: 88vh; }
  .drawer-grip { display: none; }
}
@media (min-width: 1200px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Ilustração dos produtos (emoji) */
.product-img { background: linear-gradient(160deg, #F1F5F9, #E6F6F4); }
.product-img .emoji { font-size: 3.4rem; line-height: 1; filter: drop-shadow(0 4px 6px rgba(40,62,20,.15)); }
.cart-thumb .emoji { font-size: 1.5rem; }

/* Evita estouro horizontal no mobile (itens de grid com conteúdo rolável) */
.hero-inner, .shop, .delivery-inner, .footer-inner { grid-template-columns: minmax(0, 1fr); }
.hero-inner > *, .shop > *, .delivery-inner > * { min-width: 0; }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .shop { grid-template-columns: minmax(0, 1fr) 340px; }
  .delivery-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-footer { flex-wrap: wrap; }
.product-footer .card-qty { margin-left: auto; }
@media (max-width: 639px) { .card-qty button { width: 28px; height: 28px; } }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .hero { background: var(--primary); padding-bottom: 18px; }
  .brand-text small { white-space: normal; max-width: 170px; }
}
@media (max-width: 380px) { .brand-text small { display: none; } }
.hero { background: var(--primary) !important; }
.main-nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) { .main-nav { display: none; } }


/* =========================================================
   IDENTIDADE VISUAL SIM (logo folha verde)
   ========================================================= */
.top-bar { background: #fff; color: var(--primary); box-shadow: 0 2px 12px rgba(40,62,20,.08); border-bottom: 3px solid var(--lime); }
.brand-img { height: 46px; width: auto; }
.brand-text { padding-left: 4px; }
.brand-text strong { color: var(--leaf-dark); font-size: 0.86rem; }
.brand-text small { color: var(--leaf); font-weight: 600; }
.main-nav a { color: var(--primary); font-weight: 600; }
.main-nav a:hover { color: var(--leaf); }
.btn-wa-outline { color: var(--primary); border-color: var(--whatsapp); }
.cart-indicator { background: var(--accent-light); color: var(--primary); }
.badge-count { background: var(--primary); }

.hero {
  background: var(--lime) !important;
  background-image:
    radial-gradient(circle at 92% 10%, rgba(255,255,255,.22) 0 120px, transparent 121px),
    radial-gradient(circle at 4% 95%, rgba(102,141,60,.25) 0 140px, transparent 141px) !important;
}
.hero-copy { color: var(--primary); }
.eyebrow { color: #fff; background: var(--leaf-dark); padding: 4px 10px; border-radius: 20px; display: inline-block; }
.hero h1 { color: #2C4415; }
.hero h1 em { color: #fff; background: var(--leaf-dark); padding: 0 .25em; border-radius: 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-copy p { color: #2F4719; font-weight: 500; }
.hero-badges li { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.8); color: var(--primary); }
.hero-badges .ico { color: var(--leaf-dark); }
.search-card { background: #fff; border: none; box-shadow: 0 12px 30px rgba(40,62,20,.18); }
.search-card-header span { color: var(--leaf-dark); }
.go-btn { background: var(--leaf); }
.chip { border-color: rgba(121,163,63,.4); }
.chip:hover { background: var(--leaf); }

.pill.active { background: var(--leaf-dark); border-color: var(--leaf-dark); }
.product-tag { color: var(--leaf-dark); }
.product-img { background: linear-gradient(160deg, #F4F8EC, #E6F0D3); }
.add-btn { background: var(--leaf); }
.add-btn:hover { background: var(--leaf-dark); }
.card-qty { background: var(--accent-light); }
.shipping-status-line span:first-child { color: var(--leaf-dark); }
.progress-fill { background: var(--lime); }
.review-quote-btn { background: var(--leaf-dark); }

.section-title { color: var(--leaf-dark); }
.how { background: #fff; }
.steps li { background: var(--accent-light); }
.step-n { background: var(--primary); }
.c-navy { background: var(--primary); }
.c-aqua { background: var(--leaf); }
.c-green { background: var(--lime); }

.conditions-card { background: var(--leaf-dark); background-image: linear-gradient(135deg, var(--leaf-dark), var(--primary)); }
.conditions-card .legal-tag, .conditions-card .ico { color: #D9EDB5; }
.conditions-card li { color: #EAF3DC; }
.city-list .ico { color: var(--leaf); }

.site-footer { background: #2C4415; color: #DCE8C9; }
.footer-logo { width: 130px; height: auto; display: block; }
.footer-tagline { margin-top: 10px; color: #fff; font-size: 0.9rem; }
.footer-tagline b { color: var(--lime); }
.footer-links .ico { color: var(--lime); }
.footer-bottom { color: #9DB283; border-color: rgba(255,255,255,.12); }

.drawer-header h3, .legal-tag { color: var(--primary); }
.legal-notice-box { border-color: var(--leaf); background: #FAFCF5; }
.toast { background: var(--primary); }
.drawer-overlay { background: rgba(44,68,21,.55); }

@media (max-width: 380px) { .brand-img { height: 40px; } }
@media (min-width: 1024px) { .brand-img { height: 54px; } }
.hero h1 em { white-space: nowrap; }

/* Botão "Orçamento" (lista de cotação, não é carrinho de compra) */
.cart-label { font-size: 0.82rem; font-weight: 700; }
@media (max-width: 340px) { .cart-label { display: none; } }
@media (max-width: 1023px) { .brand-text strong { font-size: 0.78rem; } .cart-indicator { padding: 8px 10px; } }

/* Slogan ao lado do logo (duas linhas alinhadas) */
.brand-tagline {
  display: flex; flex-direction: column; line-height: 1.2; padding-left: 10px;
  border-left: 2px solid var(--lime); margin-left: 2px;
  color: var(--leaf-dark); font-weight: 700; font-size: 0.82rem; white-space: nowrap;
}
@media (min-width: 1024px) { .brand-tagline { font-size: 0.95rem; } }
@media (max-width: 340px) { .brand-tagline { font-size: 0.72rem; } }
@media (max-width: 1023px) {
  .top-bar-inner { gap: 8px; }
  .brand { gap: 6px; flex-shrink: 1; }
  .brand-img { height: 38px; }
  .brand-tagline { font-size: 0.74rem; padding-left: 8px; }
  .cart-indicator { gap: 5px; padding: 7px 9px; flex-shrink: 0; }
  .cart-label { font-size: 0.76rem; }
}

/* Fotos reais dos produtos (img/produtos ou coluna "imagem" da planilha) */
.product-img img { padding: 10px; mix-blend-mode: normal; filter: drop-shadow(0 6px 8px rgba(40,62,20,.14)); }
.cart-thumb img { padding: 2px; }
[hidden] { display: none !important; }
