
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Arial,Helvetica,sans-serif;color:#222;background:#fff}
button,input,select{font:inherit}

header{height:72px;border-bottom:1px solid #ddd;display:flex;align-items:center;gap:18px;padding:0 5%;position:sticky;top:0;background:#fff;z-index:50}
header a{color:#222;text-decoration:none;font-weight:bold;white-space:nowrap}
header a:first-child{font-size:22px;margin-right:10px}
header input{flex:1;min-width:180px;padding:12px;border:1px solid #ccc;border-radius:6px;outline:none}
header input:focus{border-color:#159447}
header button{background:#20bd66;color:#fff;border:0;padding:12px 17px;border-radius:6px;font-weight:bold;cursor:pointer;white-space:nowrap}

main{display:flex;min-height:calc(100vh - 72px)}
aside{width:315px;flex:0 0 315px;padding:28px 18px 30px 55px;border-right:1px solid #eee}
aside>input{width:100%;padding:10px;border:1px solid #ccc;border-radius:6px;margin-bottom:10px;outline:none}

.cat button,.sub button,.prod{width:100%;border:0;background:#fff;text-align:left;cursor:pointer;color:#222}
.cat>button{padding:10px 7px;display:flex;justify-content:space-between;align-items:center}
.sub>button{padding:9px 12px 9px 20px;display:flex;justify-content:space-between;align-items:center}
.prod{padding:8px 10px 8px 32px;font-size:12px}
.sub.active>button{background:#00a92a;color:#fff;font-weight:bold;border-radius:2px}
.children{display:none}
.open>.children{display:block}

section{flex:1;min-width:0;padding:38px 30px}
.hero{background:#f1f7f2;padding:28px;border-radius:8px;margin-bottom:24px}
.hero small{font-size:12px}
.hero h1{margin:7px 0;font-size:32px}
.hero p{margin:0}

#grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.card{border:1px solid #ccc;border-radius:7px;padding:10px;cursor:pointer;background:#fff;min-width:0}
.thumb{height:180px;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:60px;background:#fafafa;border-radius:4px}
.thumb img{width:100%;height:100%;object-fit:contain}
.card h3{font-size:15px;margin:12px 0 8px}
.card p{margin:0;line-height:1.35}
.card .cardPrices{margin-top:12px}
.cardDe{font-size:14px;color:#777;margin-bottom:4px}
.cardPor{font-size:14px}
.cardPor strong{font-size:24px}

#page{max-width:1100px;width:100%;margin:0 auto}
#crumb{font-size:13px;color:#666;margin-bottom:18px}
.product{display:grid;grid-template-columns:minmax(320px,46%) minmax(360px,54%);gap:32px;align-items:start}
.product>div:first-child{min-width:0}
.photo{width:100%;height:320px;max-height:320px;border:1px solid #ddd;border-radius:7px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fafafa;font-size:100px}
.photo img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.product>div:last-child{min-width:0}
.product h1{margin:0 0 12px;font-size:28px}
.product p{line-height:1.5}
.ficha{background:#f3f3f3;padding:15px;line-height:1.6;border-radius:6px;font-size:14px;white-space:pre-wrap}
.product h3{margin:20px 0 9px}

.var{min-width:125px;padding:11px 14px;background:#fff;border:1px solid #bbb;border-radius:6px;margin:4px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:14px}
.var strong{display:inline-block;min-width:55px;text-align:center}
.var small{display:inline-block;padding-left:14px;border-left:1px solid #d9dee2;font-size:13px;white-space:nowrap}
.var.active{border:2px solid #18a34a;background:#f0fff4}

.prices{border-top:1px solid #ddd;margin-top:20px;padding-top:12px}
.prices div{margin:5px 0}
.prices strong{font-size:30px}
.buy{width:100%;padding:14px;background:#28c76f;color:#fff;border:0;border-radius:6px;font-weight:bold;cursor:pointer}
.buy:hover{background:#1eae5d}
.gray{margin-top:10px;padding:10px 15px;border:0;background:#eee;border-radius:5px;cursor:pointer}

.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.53);align-items:center;justify-content:center;padding:20px;z-index:100}
.modal.open{display:flex}
.box{position:relative;background:#fff;border-radius:9px;padding:28px;width:min(700px,100%);max-height:92vh;overflow:auto}
.box.small{width:min(560px,100%)}
.x{position:absolute;right:12px;top:6px;border:0;background:none;font-size:30px;line-height:1;cursor:pointer}
.steps{display:flex;gap:4px;margin-bottom:18px;border-bottom:1px solid #ddd}
.steps b{flex:1;text-align:center;padding:7px 2px;font-size:11px;color:#888;border-bottom:3px solid #ddd}
.steps b.current,.steps b:nth-child(-n+3){color:#16803a;border-bottom-color:#28c76f}
.box label{display:block;margin:10px 0}
.muted{color:#666;font-size:13px}
.total{border-top:1px solid #ddd;margin:15px 0;padding-top:8px}
.total div{display:flex;justify-content:space-between;padding:6px}
.payTotal{font-size:22px;font-weight:bold;padding:14px;background:#f4f4f4;margin:15px 0}
.notice{background:#fff8df;padding:12px}
.center{text-align:center}
.ok{width:55px;height:55px;border-radius:50%;background:#dff5e5;color:#16803a;font-size:32px;display:flex;align-items:center;justify-content:center;margin:auto}
.timeline{text-align:left;margin-top:15px}
.timeline div{padding:9px 12px;border-left:3px solid #ddd}
.timeline .current{border-color:#28c76f;font-weight:bold}
.status{position:relative}
#closeStatus{position:absolute;right:18px;top:12px;background:transparent;border:0;font-size:28px;line-height:1;cursor:pointer;z-index:3}
.statusHome{margin-top:22px;width:100%;border:0;border-radius:7px;padding:13px 16px;background:#128c4b;color:#fff;font-weight:700;cursor:pointer}
.statusHome:hover{background:#0d753d}

.clienteAviso{background:#f4f8f5;border:1px solid #d7e9dc;padding:15px;border-radius:6px;margin:12px 0}
.clienteAviso p{margin:7px 0 12px;color:#666;font-size:13px}
.clienteResumo{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:center;background:#f4f8f5;border:1px solid #d7e9dc;padding:15px;border-radius:6px;margin:12px 0;font-size:13px}

.selecione-produto{grid-column:1/-1;background:#f1f7f2;border:1px dashed #9fcdb1;border-radius:8px;padding:28px;text-align:center}
.selecione-produto strong{display:block;font-size:18px;margin-bottom:7px;color:#128c4b}
.selecione-produto span{font-size:14px;color:#687078}

@media(max-width:1000px){
  aside{width:250px;flex-basis:250px;padding-left:18px}
  #grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .product{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  header{padding:0 18px}
  header input,header a:nth-of-type(2){display:none}
  main{display:block}
  aside{width:100%;min-height:auto;border-right:0;border-bottom:1px solid #eee}
  section{padding:20px 15px}
  #grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product{grid-template-columns:1fr}
  .photo{height:280px}
}
@media(max-width:500px){
  #grid{grid-template-columns:1fr}
  .clienteResumo{grid-template-columns:1fr}
}

/* V23 — módulo separado de pequenas tiragens */
.module-btn{width:100%;display:flex;justify-content:space-between;align-items:center;margin:8px 0 12px;padding:12px 10px;border:1px solid #d6e2d9;border-radius:5px;background:#edf7f0;color:#173d25;font-weight:700;text-align:left;cursor:pointer}
.module-btn.ativo{background:#16a34a;color:#fff;border-color:#16a34a}

/* Ações da página do produto */
.product-actions{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.product-actions .buy{width:100%}
.whatsapp{width:100%;border:0;border-radius:8px;background:#128c55;color:#fff;padding:13px 16px;font:inherit;font-weight:600;cursor:pointer}
.whatsapp:hover{background:#0d7546}
.whatsapp:focus-visible{outline:3px solid #7acba5;outline-offset:2px}


/* V29 — ajustes responsivos para computador e Android */
html{ -webkit-text-size-adjust:100%; }
button,a,input,select,textarea{touch-action:manipulation}
button,a{ -webkit-tap-highlight-color:transparent }
img{max-width:100%}
@media(min-width:1200px){
  #grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  section{padding-left:32px;padding-right:32px}
}
@media(max-width:900px){
  header{gap:12px;padding:0 16px}
  header a:first-child{font-size:19px;margin-right:0}
  header input{min-width:0}
  aside{padding:20px 16px}
  section{padding:24px 20px}
  #grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
  .product h1{font-size:25px}
  .var{max-width:100%;margin:4px 2px;padding:11px 9px;gap:8px}
}
@media(max-width:700px){
  header{height:auto;min-height:64px;flex-wrap:wrap;padding:10px 12px;gap:8px}
  header a:first-child{font-size:18px}
  header input{display:block;order:3;flex:1 1 100%;width:100%;min-height:42px}
  header a:nth-of-type(2){display:inline-block;font-size:13px}
  header button{padding:10px 12px;font-size:14px}
  main{display:block;min-height:calc(100vh - 64px)}
  aside{width:100%;padding:12px;border-right:0;border-bottom:1px solid #eee}
  aside>input{min-height:42px;margin-bottom:8px}
  .module-btn{min-height:44px}
  #menu{display:block}
  section{padding:16px 12px}
  .hero{padding:20px 16px}
  .hero h1{font-size:26px;line-height:1.2}
  #grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .thumb{height:150px}
  .card{padding:8px}
  .card h3{font-size:14px;overflow-wrap:anywhere}
  .card p{font-size:14px;overflow-wrap:anywhere}
  .product{grid-template-columns:minmax(0,1fr);gap:18px}
  .product h1{font-size:24px;line-height:1.25}
  .photo{height:260px;max-height:60vw}
  .var{min-height:44px}
  .product-actions button,.buy,.whatsapp{min-height:46px}
  .clienteResumo{grid-template-columns:minmax(0,1fr)}
  .modal{padding:8px;align-items:flex-start;overflow:auto}
  .modal .box{width:100%;max-width:100%;max-height:none;margin:8px 0;padding:20px 14px}
  .steps{flex-wrap:wrap;gap:8px}
  #closeStatus{right:10px;top:8px}
}
@media(max-width:380px){
  #grid{grid-template-columns:minmax(0,1fr)}
  header a:nth-of-type(2){font-size:12px}
  header button{font-size:13px;padding:9px}
  .photo{height:230px;max-height:none}
}
