:root{
  --bg:#faf9fb;--page:#f4eff7;--card:#fff;--text:#241f26;--muted:#7d747e;--primary:#6f238d;--primary2:#9130b3;--primary-soft:#f3e9f7;--success:#2f9b57;--success-soft:#edf8f0;--border:rgba(111,35,141,.13);--danger:#d33b3b;--shadow:0 2px 14px rgba(111,35,141,.08);--float:0 10px 28px rgba(111,35,141,.22);--radius:16px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--page);color:var(--text);font-family:Inter,system-ui,sans-serif;letter-spacing:-.01em}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{max-width:680px;min-height:100vh;margin:0 auto;background:var(--bg);padding-bottom:108px}.hidden{display:none!important}.hero-grad{background:linear-gradient(135deg,#3f1452 0%,#70228e 55%,#9130b3 100%)}
.hero{position:relative;aspect-ratio:16/7;max-height:280px;min-height:160px;overflow:hidden}.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.open-badge{position:absolute;left:14px;top:14px;z-index:2;display:flex;align-items:center;gap:6px;border-radius:12px;background:rgba(47,155,87,.9);padding:7px 12px;color:white;font-size:11px;font-weight:800}.dot{width:6px;height:6px;border-radius:50%;background:#fff;animation:blink 1.4s infinite}@keyframes blink{50%{opacity:.3}}
.store{border-bottom:1px solid var(--border);background:#fff;padding:14px 16px 16px;text-align:center;box-shadow:var(--shadow)}.logo-circle{position:relative;z-index:2;margin:-44px auto 12px;width:86px;height:86px;border-radius:50%;border:4px solid #fff;background:#fff;overflow:hidden;box-shadow:var(--float)}.logo-circle img{width:100%;height:100%;object-fit:contain}.store h1{margin:0;display:flex;justify-content:center;align-items:center;gap:6px;font-size:22px;font-weight:900}.verified{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#1d9bf0;color:white;font-size:10px}.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700;color:var(--muted);background:#fff;margin-top:8px}.city-btn{appearance:none}
.search-wrap{padding:16px}.search{display:flex;height:48px;align-items:center;gap:10px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:0 16px;box-shadow:var(--shadow)}.search input{width:100%;border:0;outline:0;background:transparent;font-size:14px}.section{margin-top:20px;padding:0 16px}.section-title{margin:0 0 12px;border-bottom:1px solid var(--border);padding-bottom:8px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.14em;color:var(--muted)}.row-scroll{display:flex;gap:12px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.row-scroll::-webkit-scrollbar{display:none}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.card.compact{width:152px;flex:0 0 152px}.card-img{display:block;width:100%;border:0;padding:0;background:none}.card.compact .card-img img{height:104px}.card-img img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}.card-body{padding:12px}.compact .card-body{padding:10px}.card-name{min-height:34px;font-size:13px;font-weight:800;line-height:1.15}.compact .card-name{font-size:12px;min-height:32px}.card-bottom{display:flex;align-items:end;justify-content:space-between;margin-top:8px}.old-price{font-size:11px;color:var(--muted);text-decoration:line-through}.price{font-size:15px;font-weight:900;color:var(--primary)}.add-btn{width:36px;height:36px;flex:none;border:0;border-radius:50%;background:var(--primary);color:#fff;font-size:22px;font-weight:800;box-shadow:var(--float)}.hot{position:absolute;left:8px;top:8px;z-index:2;border-radius:999px;background:#d63f4b;color:white;padding:3px 8px;font-size:9px;font-weight:900}.reviews{margin-top:32px;padding:0 16px}.review-box{border:1px solid var(--border);border-radius:18px;background:#fff;padding:20px;box-shadow:var(--shadow)}.review-head{display:flex;align-items:center;gap:16px}.rating-big{font-size:30px;font-weight:900}.stars{color:#f59e0b;font-size:12px}.review-list{list-style:none;padding:0;margin:16px 0 0}.review{border-top:1px solid var(--border);padding-top:16px;margin-top:16px}.review-meta{display:flex;align-items:center;gap:10px}.avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--primary-soft);color:var(--primary);font-size:11px;font-weight:900}.review-text{font-size:13px;line-height:1.5;color:var(--muted)}
.cartbar{position:fixed;inset:auto 0 0;z-index:1500;margin:auto;max-width:680px;border-top:1px solid var(--border);background:#fff;padding:14px}.cartbar button{display:flex;width:100%;height:54px;align-items:center;justify-content:space-between;border:0;border-radius:12px;background:var(--primary);padding:0 20px;color:#fff;font-size:15px;font-weight:900;box-shadow:var(--float)}.cartcount{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.2);font-size:12px;margin-right:8px}
.overlay{position:fixed;inset:0;z-index:2500;display:flex;align-items:end;justify-content:center;background:rgba(35,28,38,.52);backdrop-filter:blur(2px)}.sheet{position:relative;width:100%;max-width:680px;max-height:86vh;overflow:auto;border-radius:24px 24px 0 0;background:#fff;animation:sheetup .25s ease-out}@keyframes sheetup{from{transform:translateY(100%)}to{transform:none}}.sheet-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:16px 20px}.sheet-head h2{margin:0;font-size:18px}.close{width:34px;height:34px;border:0;border-radius:50%;background:#f3f0f3;color:var(--muted);font-size:20px;font-weight:800}.sheet-content{padding:16px 20px}.product-hero{width:100%;max-height:260px;object-fit:cover;border-radius:16px}.qty{display:flex;align-items:center;gap:18px}.qty button{width:36px;height:36px;border:1.5px solid var(--border);border-radius:50%;background:#fff;color:var(--primary);font-size:20px;font-weight:900}.field-label{display:block;margin:16px 0 6px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.textarea,.input,.select{width:100%;border:1.5px solid rgba(111,35,141,.17);border-radius:12px;background:#fff;padding:12px 13px;outline:none}.input,.select{height:48px}.textarea{min-height:76px;resize:vertical}.primary-btn{width:100%;height:52px;border:0;border-radius:12px;background:var(--primary);color:#fff;font-size:15px;font-weight:900;box-shadow:var(--float)}.primary-btn:disabled{opacity:.45}.cart-item{display:flex;gap:12px;border:1px solid var(--border);border-radius:16px;padding:12px;margin-bottom:12px}.cart-item img{width:64px;height:64px;object-fit:cover;border-radius:12px}.cart-info{flex:1}.cart-info strong{font-size:14px}.cart-qty{display:flex;height:36px;align-items:center;gap:12px;border:1.5px solid rgba(111,35,141,.17);border-radius:999px;padding:0 12px;align-self:center}.cart-qty button{border:0;background:none;color:var(--primary);font-size:18px;font-weight:900}.summary-line{display:flex;justify-content:space-between;font-size:14px;color:var(--muted);margin-top:7px}.summary-total{border-top:1px solid var(--border);padding-top:10px;margin-top:10px;font-size:16px;font-weight:900;color:var(--text)}
.splash{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;padding:24px;color:white}.splash-inner{width:100%;max-width:420px;text-align:center}.splash-title{font-size:30px;line-height:1.15;font-weight:950}.splash-title span{color:#d9b8e5}.splash-card{background:#fff;color:var(--text);border-radius:18px;padding:24px;text-align:left;box-shadow:var(--float)}
.page{max-width:480px;min-height:100vh;margin:0 auto;background:var(--bg)}.topbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:#fff;padding:14px 16px}.brand{color:var(--primary);font-size:18px;font-weight:900;text-decoration:none}.secure{color:var(--success);font-size:11px;font-weight:800}.content{padding:16px}.steps{display:flex;align-items:center;gap:8px;padding:16px 16px 0;font-size:11px;font-weight:900;text-transform:uppercase}.step-line{height:1px;background:var(--border);flex:1}.active{color:var(--success)}.muted{color:var(--muted)}.panel{border:1px solid var(--border);border-radius:14px;background:#fff;padding:16px;box-shadow:var(--shadow);margin-bottom:14px}.delivery-banner{display:flex;align-items:center;gap:12px;border-radius:12px;padding:14px;color:white}.form-grid{display:grid;grid-template-columns:1fr 110px;gap:10px}.error{font-size:11px;color:var(--danger);margin-top:4px}.sec-title{margin:20px 0 10px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.pix-choice{display:flex;align-items:center;gap:12px;border:1.5px solid var(--success);background:var(--success-soft);border-radius:12px;padding:14px}.notice{margin-top:12px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:14px;font-size:12px;color:var(--muted);line-height:1.45}.qr{display:block;width:200px;height:200px;margin:16px auto 8px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:8px}.pix-code{word-break:break-all;border:1.5px dashed rgba(111,35,141,.17);background:#fff;border-radius:12px;padding:12px;font-size:11px;line-height:1.5;color:var(--muted)}.waiting{text-align:center;margin-top:18px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:16px}.spinner{display:inline-block;width:20px;height:20px;border-radius:50%;border:2px solid #ddd;border-top-color:var(--success);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.danger-box{border:1px solid rgba(211,59,59,.25);background:#fff0f0;color:var(--danger);border-radius:12px;padding:14px;text-align:center}
.fee-card{overflow:hidden;border:1px solid var(--border);border-radius:18px;background:#fff;padding:20px;box-shadow:var(--shadow)}.fee-icon{margin:auto;width:64px;height:64px;display:flex;align-items:center;justify-content:center;border-radius:16px;background:var(--primary-soft);font-size:30px}.center{text-align:center}.fee-price{font-size:28px;font-weight:950;color:var(--primary)}
.thanks-head{padding:48px 24px 40px;text-align:center;color:white}.check-circle{margin:auto;width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.2);font-size:30px}.order-code{display:inline-block;margin-top:14px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.14);border-radius:999px;padding:7px 16px;font-size:12px;font-weight:800}.timeline-row{display:flex;gap:12px}.timeline-dot{width:32px;height:32px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid var(--border);background:#f5f3f5}.timeline-dot.done{background:var(--success);border-color:var(--success);color:white}.timeline-dot.current{border-color:var(--success)}.timeline-body{padding:3px 0 18px}.timeline-body strong{font-size:13px}.timeline-body p{font-size:11px;color:var(--muted);margin:3px 0 0}.link-btn{display:flex;height:54px;align-items:center;justify-content:center;border-radius:12px;background:var(--success);color:#fff;text-decoration:none;font-size:15px;font-weight:900}
@media(max-width:420px){.grid{gap:10px}.section{padding:0 12px}.search-wrap{padding:14px 12px}.reviews{padding:0 12px}.splash-title{font-size:27px}}

/* Checkout form layout fixes */
.form-field{min-width:0}
.form-field .field-label{margin-top:16px}
.form-field .input{display:block;min-width:0;max-width:100%}
.form-grid{display:grid;align-items:end;gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.personal-grid{grid-template-columns:minmax(0,1.15fr) minmax(145px,.85fr)}
.address-grid{grid-template-columns:minmax(0,1fr) 88px}
.city-grid{grid-template-columns:minmax(0,1fr) 88px}
.form-field-cep{max-width:180px}
.form-field-uf .input{text-transform:uppercase}
.input:focus{border-color:rgba(111,35,141,.55);box-shadow:0 0 0 3px rgba(111,35,141,.08)}
.input::placeholder{color:#aaa1ab;opacity:1}
@media (max-width:390px){
  .personal-grid{grid-template-columns:1fr}
  .address-grid{grid-template-columns:minmax(0,1fr) 78px}
  .city-grid{grid-template-columns:minmax(0,1fr) 74px}
  .panel{padding:14px}
}
@media (max-width:330px){
  .address-grid,.city-grid{grid-template-columns:1fr}
  .form-field-uf,.form-field-numero{max-width:140px}
}

html[data-test-mode="1"] body::before{
  content:"MODO DE TESTE — nenhum PIX será gerado";
  display:block;
  position:sticky;
  top:0;
  z-index:9999;
  padding:8px 12px;
  text-align:center;
  background:#fff3cd;
  color:#664d03;
  border-bottom:1px solid #ffecb5;
  font-size:12px;
  font-weight:800;
}

/* Product customization */
.product-sheet{max-height:94vh}
.product-price-row{display:flex;align-items:center;justify-content:space-between;margin-top:16px}
.option-group{margin-top:22px;border-top:1px solid var(--border)}
.option-title{display:flex;align-items:center;gap:7px;padding:14px 2px 8px;font-size:13px}
.option-title strong{font-weight:900}.option-title span{border-radius:999px;background:var(--primary-soft);color:var(--primary);padding:3px 8px;font-size:10px;font-weight:800}
.option-row{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid rgba(111,35,141,.08);font-size:13px;color:#465166;cursor:pointer}
.option-side{display:flex;align-items:center;gap:9px;flex:none}.option-side em{font-style:normal;font-size:11px;color:var(--muted)}.option-group:last-of-type .option-side em{color:var(--primary);font-weight:900}
.option-row input{position:absolute;opacity:0;pointer-events:none}.option-row i{width:24px;height:24px;border:2px solid #d2d8e1;border-radius:50%;display:block;position:relative;background:#fff}
.option-row input:checked+i{border-color:var(--primary);background:var(--primary)}.option-row input:checked+i:after{content:"✓";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-style:normal;font-size:14px;font-weight:900}
.sticky-add{margin-top:16px;position:sticky;bottom:10px;z-index:3}
.cart-custom{margin-top:5px;font-size:10px;line-height:1.45;color:var(--muted)}


/* Compact recent-purchase popup — home only */
.purchase-popup{position:fixed;left:max(12px,calc((100vw - 680px)/2 + 12px));bottom:18px;z-index:1450;width:min(330px,calc(100vw - 24px));min-height:72px;display:flex;align-items:center;gap:10px;padding:9px 11px;background:rgba(255,255,255,.98);border:1px solid rgba(111,35,141,.12);border-radius:14px;box-shadow:0 8px 28px rgba(34,24,38,.16);opacity:0;visibility:hidden;transform:translateY(14px);transition:opacity .24s ease,transform .24s ease,visibility .24s;pointer-events:none}
.purchase-popup.show{opacity:1;visibility:visible;transform:translateY(0)}
.purchase-thumb{width:54px;height:54px;flex:0 0 54px;border-radius:11px;overflow:hidden;background:#f7f3f8}.purchase-thumb img{width:100%;height:100%;object-fit:cover}
.purchase-copy{min-width:0;line-height:1.18}.purchase-status{display:flex;align-items:center;gap:5px;margin-bottom:3px;color:var(--success);font-size:9px;font-weight:950}.purchase-status span{width:6px;height:6px;border-radius:50%;background:var(--success)}
.purchase-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.purchase-product{margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#4d4450;font-size:11px}.purchase-meta{margin-top:4px;color:var(--primary);font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.purchase-meta span{margin-left:4px;color:#a29aa4}
body:has(.cartbar:not(.hidden)) .purchase-popup{bottom:86px}
@media(max-width:420px){.purchase-popup{left:10px;bottom:12px;width:min(305px,calc(100vw - 20px));min-height:66px;padding:8px 9px}.purchase-thumb{width:49px;height:49px;flex-basis:49px}body:has(.cartbar:not(.hidden)) .purchase-popup{bottom:82px}}
