:root{
  --green:#2f7d32; --green-dark:#1f5d24; --green-soft:#edf7ed;
  --cream:#fbf8f0; --ink:#20261f; --muted:#6d746d; --line:#e6e8e2;
  --orange:#f28c28; --white:#fff; --shadow:0 14px 40px rgba(28,44,28,.10);
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select,textarea{font:inherit} button{cursor:pointer}
.topbar{height:72px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,5vw,72px);position:sticky;top:0;z-index:20}
.brand{display:flex;gap:10px;align-items:center}.brand-mark{width:42px;height:42px;border-radius:13px;background:var(--green-soft);display:grid;place-items:center;font-size:23px}.brand strong{display:block;font-size:13px;letter-spacing:.08em}.brand span{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.cart-button{border:0;background:var(--green);color:#fff;border-radius:999px;padding:10px 15px;font-weight:800}.cart-button span{background:#fff;color:var(--green);border-radius:50%;padding:1px 6px;margin-left:3px}
.hero{max-width:1200px;margin:auto;padding:70px clamp(18px,5vw,72px) 45px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:40px}
.eyebrow{font-size:11px;font-weight:900;letter-spacing:.14em;color:var(--green)}
.hero h1{font-size:clamp(44px,7vw,82px);line-height:.92;letter-spacing:-.06em;margin:14px 0 22px}.hero h1 em{font-style:normal;color:var(--green)}.hero p{font-size:18px;line-height:1.6;color:var(--muted);max-width:520px}
.primary-btn,.checkout-btn{border:0;background:var(--green);color:#fff;padding:15px 19px;border-radius:13px;font-weight:900;letter-spacing:.02em;box-shadow:0 10px 24px rgba(47,125,50,.22)}.primary-btn span,.checkout-btn span{margin-left:15px}
.hero-art{height:330px;border-radius:36px;background:linear-gradient(145deg,#dfeeda,#f6e8c9);position:relative;overflow:hidden}.promo-slides{position:absolute;inset:0}.promo-slide{position:absolute;inset:0;opacity:0;transition:opacity .45s ease}.promo-slide.active{opacity:1}.promo-slide img{width:100%;height:100%;display:block;object-fit:cover}.promo-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#315d35;text-align:center;padding:24px}.promo-empty strong{font-size:18px}.promo-empty span{font-size:12px;color:#667066}.promo-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.88);color:#174a24;font-size:28px;line-height:30px;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.14);z-index:2}.promo-arrow.prev{left:12px}.promo-arrow.next{right:12px}.promo-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:6px;z-index:2}.promo-dots button{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.7);cursor:pointer}.promo-dots button.active{width:20px;border-radius:6px;background:#fff}
.trust-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:center;gap:clamp(18px,7vw,100px);padding:16px;color:#596259;font-size:12px;font-weight:700}
.shop{max-width:1200px;margin:auto;padding:70px clamp(18px,5vw,72px) 130px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.section-heading h2{font-size:38px;letter-spacing:-.04em;margin:8px 0 0}.search-wrap{position:relative;width:min(320px,100%)}.search-wrap input{width:100%;border:1px solid var(--line);border-radius:13px;padding:13px 40px 13px 15px;background:#fff;outline:none}.search-wrap span{position:absolute;right:15px;top:10px;font-size:23px;color:var(--muted)}
.categories{display:flex;gap:9px;overflow:auto;padding:25px 0 20px;scrollbar-width:none}.categories::-webkit-scrollbar{display:none}.category{border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 15px;white-space:nowrap;font-weight:800;font-size:13px}.category.active{background:var(--green);border-color:var(--green);color:#fff}
.offer-banner{background:var(--green-dark);color:#fff;border-radius:18px;padding:20px 24px;display:flex;justify-content:space-between;align-items:center;margin:8px 0 25px}.offer-banner span{display:block;font-size:10px;font-weight:900;letter-spacing:.12em;opacity:.75}.offer-banner strong{display:block;margin-top:5px}.offer-icon{font-size:38px}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.product{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 5px 20px rgba(0,0,0,.035);display:flex;flex-direction:column}.product-img{height:170px;background:#f0f2eb;display:grid;place-items:center;font-size:75px;position:relative}.tag{position:absolute;top:10px;left:10px;background:var(--orange);color:#fff;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:900}.product-body{padding:15px}.product-body h3{font-size:16px;margin:0 0 4px}.product-body p{font-size:11px;color:var(--muted);margin:0 0 12px}.price{font-size:19px;font-weight:900;color:var(--green)}.unit{font-size:11px;color:var(--muted);font-weight:600}.add-btn{width:100%;margin-top:12px;border:0;background:var(--green-soft);color:var(--green-dark);padding:10px;border-radius:10px;font-weight:900}.add-btn:hover{background:var(--green);color:#fff}.empty-state{text-align:center;color:var(--muted);padding:50px}

.overlay{position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:29}.drawer{position:fixed;z-index:30;right:0;top:0;height:100%;width:min(470px,100%);background:#fff;box-shadow:-20px 0 60px rgba(0,0,0,.18);transform:translateX(100%);transition:.28s ease;display:flex;flex-direction:column}.drawer.open{transform:translateX(0)}.drawer-head{padding:25px 22px 15px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.drawer-head h2{margin:6px 0 0}.icon-btn{border:0;background:#f1f3ef;border-radius:50%;width:38px;height:38px;font-size:25px}.drawer-content{padding:20px;overflow:auto}.cart-row{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0}.mini-img{width:48px;height:48px;border-radius:12px;background:#f1f3ec;display:grid;place-items:center;font-size:26px}.cart-row strong{display:block;font-size:13px}.cart-row small{color:var(--muted)}.qty{display:flex;align-items:center;gap:8px;margin-top:5px}.qty button{border:1px solid var(--line);background:#fff;border-radius:7px;width:25px;height:25px}.cart-summary{padding:16px 0;border-bottom:1px solid var(--line)}.cart-summary div{display:flex;justify-content:space-between;padding:6px 0;color:var(--muted);font-size:13px}.cart-summary .grand-total{color:var(--ink);font-size:18px;padding-top:13px}.drawer form h3{font-size:17px;margin:22px 0 12px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:15px}.choice{border:1px solid var(--line);border-radius:12px;padding:11px;cursor:pointer}.choice.active{border-color:var(--green);background:var(--green-soft)}.choice input{display:none}.choice span{display:grid;grid-template-columns:25px 1fr;column-gap:6px}.choice b{font-size:13px}.choice small{grid-column:2;color:var(--muted)}label{display:block;font-size:11px;font-weight:800;margin:11px 0;color:#4e564e}input:not([type=radio]),select,textarea{width:100%;margin-top:5px;border:1px solid var(--line);border-radius:10px;padding:11px;background:#fff;outline:none}textarea{resize:vertical}.checkout-btn{width:100%;margin-top:14px}.checkout-note{text-align:center;color:var(--muted);font-size:10px}
footer{background:#183c1b;color:#fff;padding:35px clamp(18px,5vw,72px);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}footer strong{letter-spacing:.1em;font-size:13px}footer span{opacity:.65;font-size:11px}
@media(max-width:850px){.hero{grid-template-columns:1fr;padding-top:48px}.hero-art{height:260px}.product-grid{grid-template-columns:repeat(2,1fr)}.product-img{height:145px}.trust-strip{overflow:auto;justify-content:flex-start;padding-left:18px;white-space:nowrap}.section-heading{align-items:stretch;flex-direction:column}.search-wrap{width:100%}}
@media(max-width:480px){.hero{gap:25px}.hero-art{height:230px}.hero h1{font-size:49px}.hero p{font-size:15px}.primary-btn{width:100%}.product-grid{gap:10px}.product-img{height:125px;font-size:60px}.product-body{padding:12px}.product-body h3{font-size:14px}.price{font-size:17px}.offer-banner{padding:17px}.drawer-content{padding:15px}}

.product-photo{width:100%;height:100%;object-fit:cover;display:block}
.mini-photo{width:100%;height:100%;object-fit:cover;display:block;border-radius:12px}
.how-edit{max-width:1200px;margin:-30px auto 0;padding:0 clamp(18px,5vw,72px) 70px;display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:stretch}
.how-edit h2{font-size:30px;letter-spacing:-.04em;margin:8px 0 10px}.how-edit p{color:var(--muted);line-height:1.6;font-size:14px}
.edit-example{background:#173c1a;color:#eaf4e9;border-radius:18px;padding:24px;display:flex;align-items:center;overflow:auto}
.edit-example code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.7;white-space:pre}
@media(max-width:700px){.how-edit{grid-template-columns:1fr;padding-bottom:45px}.how-edit h2{font-size:25px}}

clear-cart{width:100%;border:1px solid #f0d3d3;background:#fff7f7;color:#a63d3d;border-radius:10px;padding:10px;font-size:11px;font-weight:900;margin:14px 0 4px}.clear-cart:hover{background:#ffeaea}
@media(max-width:480px){.hero{gap:25px}.hero-art{height:230px}.hero h1{font-size:49px}.hero p{font-size:15px}.primary-btn{width:100%}.product-grid{gap:10px}.product-img{height:125px;font-size:60px}.product-body{padding:12px}.product-body h3{font-size:14px}.price{font-size:17px}.offer-banner{padding:17px}.drawer-content{padding:15px}}

.product-photo{width:100%;height:100%;object-fit:cover;display:block}
.mini-photo{width:100%;height:100%;object-fit:cover;display:block;border-radius:12px}
.how-edit{max-width:1200px;margin:-30px auto 0;padding:0 clamp(18px,5vw,72px) 70px;display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:stretch}
.how-edit h2{font-size:30px;letter-spacing:-.04em;margin:8px 0 10px}.how-edit p{color:var(--muted);line-height:1.6;font-size:14px}
.edit-example{background:#173c1a;color:#eaf4e9;border-radius:18px;padding:24px;display:flex;align-items:center;overflow:auto}
.edit-example code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.7;white-space:pre}
@media(max-width:700px){.how-edit{grid-template-columns:1fr;padding-bottom:45px}.how-edit h2{font-size:25px}}

clear-cart{width:100%;border:1px solid #f0d3d3;background:#fff7f7;color:#a63d3d;border-radius:10px;padding:10px;font-size:11px;font-weight:900;margin:14px 0 4px}.clear-cart:hover{background:#ffeaea}
.admin-overlay{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:39}.admin-panel{position:fixed;z-index:40;right:0;top:0;height:100%;width:min(620px,100%);background:#f8faf6;box-shadow:-20px 0 70px rgba(0,0,0,.2);transform:translateX(100%);transition:.28s ease;display:flex;flex-direction:column}.admin-panel.open{transform:translateX(0)}.admin-head{padding:24px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;gap:20px}.admin-head h2{margin:6px 0;font-size:27px;letter-spacing:-.04em}.admin-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.admin-body{padding:20px;overflow:auto}.admin-form,.admin-products{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:18px}.admin-form h3,.admin-products h3{margin:0 0 15px;font-size:17px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check-label{display:flex;align-items:center;gap:8px;padding-top:23px}.check-label input{width:18px;height:18px}.check-label span{font-size:12px}.upload-help{display:block;color:var(--muted);font-size:10px;margin-top:6px}.image-preview{height:170px;border-radius:14px;background:#f0f2eb;border:1px dashed #cfd5ca;display:grid;place-items:center;overflow:hidden;color:var(--muted);font-size:11px;margin-top:10px}.image-preview img{width:100%;height:100%;object-fit:cover}.admin-form-actions{display:flex;gap:10px;margin-top:14px}.save-btn,.secondary-btn{border:0;border-radius:10px;padding:12px 15px;font-weight:900}.save-btn{background:var(--green);color:#fff;flex:1}.secondary-btn{background:#eef1ec;color:var(--ink)}.admin-list-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}.admin-list-head h3{margin:5px 0 0}.admin-list-head strong{font-size:11px;color:var(--muted)}.admin-product-row{display:grid;grid-template-columns:52px 1fr auto;gap:10px;align-items:center;border-top:1px solid var(--line);padding:10px 0}.admin-thumb{width:52px;height:52px;border-radius:10px;overflow:hidden;background:#eef1ec}.admin-thumb img{width:100%;height:100%;object-fit:cover}.admin-product-row strong{display:block;font-size:12px}.admin-product-row small{color:var(--muted);font-size:10px}.admin-row-actions{display:flex;gap:5px}.admin-row-actions button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px;font-size:10px;font-weight:800}.admin-row-actions .delete{color:#a63d3d}.admin-empty{padding:20px;text-align:center;color:var(--muted);font-size:12px}
@media(max-width:480px){.admin-button{font-size:0;padding:10px 12px}.admin-button:first-letter{font-size:15px}.two-cols{grid-template-columns:1fr}.check-label{padding-top:5px}.admin-head{padding:18px}.admin-body{padding:12px}}

.admin-access{color:rgba(255,255,255,.6);font-size:11px;text-decoration:none}.admin-access:hover{color:#fff;text-decoration:underline}

/* v5.2 — imagens dos produtos em proporção 600×400 (3:2) */
.product-img{height:auto;aspect-ratio:3/2;overflow:hidden}
.product-photo{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:850px){.product-img{height:auto;aspect-ratio:3/2}}
@media(max-width:480px){.product-img{height:auto;aspect-ratio:3/2}}

/* 5.6 — valor do carrinho no topo */
.cart-button{display:inline-flex;align-items:center;gap:5px}
.top-cart-total{font-size:11px;font-weight:900;margin-left:3px;white-space:nowrap}

/* 5.7 — barra fixa inferior removida definitivamente */
.cart-bar,#cartBar{display:none!important}

/* 6.2 — carrossel de promoções */
@media (max-width:700px){
  .hero-art{
    height:auto;
    aspect-ratio:3/2;
  }
  .promo-slide img{
    width:100%;
    height:100%;
    object-fit:contain;
    background:#f3f1df;
  }
}

/* 6.4 — valor do carrinho no topo */
.cart-button .top-cart-total{
  background:transparent;
  color:#fff;
  border-radius:0;
  padding:0;
  margin-left:2px;
  font-size:14px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}

/* 6.5 — mobile: exibir o banner inteiro sem corte */
@media (max-width:700px){
  .promo-carousel{aspect-ratio:3/2;height:auto;min-height:0;}
  .promo-slide img{object-fit:contain;}
}

/* 6.6 — identidade visual no cabeçalho */
.brand-logo{
  width:48px;
  height:44px;
  object-fit:contain;
  object-position:center;
  display:block;
  flex:0 0 48px;
}

/* 6.7 — ajuste definitivo para telas móveis/tablets */
.brand-logo{
  width:44px !important;
  height:44px !important;
  max-width:44px !important;
  max-height:44px !important;
  object-fit:contain !important;
  flex:0 0 44px !important;
}
@media (max-width:850px){
  .hero-art.promo-carousel{
    width:100%;
    height:auto !important;
    aspect-ratio:3 / 2 !important;
    min-height:0 !important;
  }
  .hero-art.promo-carousel .promo-slide img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
  }
}
@media (max-width:480px){
  .brand-logo{
    width:40px !important;
    height:40px !important;
    max-width:40px !important;
    max-height:40px !important;
    flex-basis:40px !important;
  }
}

/* 6.8 — ações no rodapé */
.footer-actions{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
.footer-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 18px;
  border-radius:10px;
  text-decoration:none;
  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;
  transition:transform .15s ease,opacity .15s ease;
}
.footer-btn:hover{transform:translateY(-1px);opacity:.92}
.footer-whatsapp{
  background:#2f8a3a;
  color:#fff;
}
.footer-whatsapp span{
  margin-right:7px;
  font-size:12px;
}
.footer-admin{
  background:#e8eee5;
  color:#214b29;
  border:1px solid #d2ddd0;
}
@media (max-width:480px){
  .footer-actions{
    flex-direction:column;
    gap:8px;
  }
  .footer-btn{
    width:min(100%,280px);
  }
}

/* 6.9 — rodapé: botões com prioridade para evitar estilos/caches antigos */
footer .footer-actions{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:10px !important;
  margin-top:14px !important;
  flex-wrap:wrap !important;
}
footer a.footer-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  min-height:44px !important;
  width:auto !important;
  max-width:280px !important;
  padding:0 18px !important;
  border-radius:10px !important;
  text-decoration:none !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1 !important;
  letter-spacing:.2px !important;
  color:#fff !important;
}
footer a.footer-whatsapp{
  background:#2f8a3a !important;
  color:#fff !important;
}
footer a.footer-admin{
  background:#e8eee5 !important;
  color:#214b29 !important;
  border:1px solid #d2ddd0 !important;
}
footer a.footer-btn:hover{
  opacity:.92 !important;
  transform:translateY(-1px);
}
footer .footer-whatsapp span{
  margin-right:7px !important;
  opacity:1 !important;
  color:#fff !important;
  font-size:12px !important;
}
@media (max-width:480px){
  footer .footer-actions{
    flex-direction:column !important;
    gap:10px !important;
    align-items:center !important;
  }
  footer a.footer-btn{
    width:100% !important;
    max-width:280px !important;
  }
}

/* 7.0 — rodapé centralizado */
footer{
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
  gap:8px !important;
}
footer > strong{
  display:block;
  width:100%;
  text-align:center;
}
footer > span{
  display:block;
  width:100%;
  text-align:center;
}
footer .footer-actions{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin-top:8px !important;
}
footer .developer-credit{
  display:block !important;
  width:100% !important;
  margin-top:10px !important;
  color:rgba(255,255,255,.48) !important;
  font-size:10px !important;
  font-weight:400 !important;
  letter-spacing:.02em !important;
  text-align:center !important;
}
@media(max-width:480px){
  footer .footer-actions{
    flex-direction:column !important;
    gap:10px !important;
  }
  footer a.footer-btn{
    width:100% !important;
    max-width:280px !important;
  }
}

/* 7.1 — centralização total do rodapé no celular */
@media (max-width:850px){
  footer{
    width:100% !important;
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
  }
  footer > strong,
  footer > span,
  footer > .developer-credit{
    width:100% !important;
    display:block !important;
    text-align:center !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
  footer .footer-actions{
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
  }
  footer .footer-btn{
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* 7.2 — botão de carrinho abaixo dos produtos */
.products-cart-action{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:24px 16px 40px;
  box-sizing:border-box;
}
.products-cart-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:min(100%,340px);
  min-height:48px;
  padding:0 22px;
  border:0;
  border-radius:12px;
  background:#2f8a3a;
  color:#fff;
  font-family:inherit;
  font-size:14px;
  font-weight:900;
  letter-spacing:.2px;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(24,91,39,.14);
  transition:transform .15s ease, opacity .15s ease;
}
.products-cart-btn span{
  font-size:20px;
  line-height:1;
}
.products-cart-btn:hover{
  transform:translateY(-1px);
  opacity:.94;
}
.products-cart-btn:active{
  transform:translateY(0);
}
@media(max-width:480px){
  .products-cart-action{
    padding:18px 16px 36px;
  }
  .products-cart-btn{
    width:100%;
    max-width:320px;
  }
}
