*{box-sizing:border-box}
:root{--yellow:#ffd400;--ink:#171717;--muted:#68707b;--line:#e4e6e9;--bg:#f5f6f8;--green:#16834d;--red:#b42318}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.topbar{position:sticky;top:0;z-index:30;height:70px;background:var(--yellow);display:flex;align-items:center;justify-content:space-between;padding:0 18px;box-shadow:0 2px 12px #0002}
.brand{display:flex;align-items:center;gap:10px;font-size:23px}.brand img{width:43px;height:43px}
.top-actions{display:flex;align-items:center;gap:8px}.icon-btn,.merchant-btn,.cart-btn,.small,.outline,.cat{border:1px solid #ddd;background:#fff;border-radius:14px;padding:10px 13px;font-size:14px}.icon-btn{width:44px;height:44px;border-radius:50%;padding:0;font-size:19px;position:relative}.merchant-btn{background:#111;color:#fff;border-color:#111;font-weight:800}.badge{position:absolute;right:-3px;top:-4px;min-width:18px;height:18px;padding:1px 5px;border-radius:99px;background:#e11;color:#fff;font-size:10px;line-height:16px}
.container{max-width:1050px;margin:auto;padding:18px}.hero{background:linear-gradient(135deg,#fff8cf,#fff);border:1px solid #eadf9c;border-radius:22px;padding:20px;display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.hero h1{margin:0 0 5px;font-size:30px}.hero p{margin:0;color:#666}.cart-btn{font-size:17px;font-weight:800;background:var(--yellow);border-color:var(--yellow)}
.search-row{display:flex;gap:8px;margin:14px 0}.search-row input{flex:1}
.search-row input,.dialog-card input,.dialog-card textarea,.dialog-card select{width:100%;padding:13px;border:1px solid #d7d9dd;border-radius:12px;font-size:16px;background:#fff;color:#171717}.dialog-card textarea{min-height:82px;resize:vertical}
.primary,.success{border:0;background:var(--yellow);color:#111;font-weight:850;border-radius:12px;padding:13px 17px}.success{background:#169454;color:#fff}.danger{border:0;background:#c92a2a;color:#fff;font-weight:800;border-radius:12px;padding:10px 13px}.full{width:100%}
.category-row{display:flex;gap:8px;overflow:auto;padding-bottom:5px;margin-bottom:18px}.cat{white-space:nowrap}.cat.active{background:#111;color:#fff;border-color:#111}
.section-title{display:flex;align-items:center;justify-content:space-between;margin:15px 0}.section-title h2{margin:0}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 2px 8px #00000009}.product-img{height:150px;border-radius:14px;background:#f1f2f3;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:40px}.product-img img{width:100%;height:100%;object-fit:cover}.product-card h3{margin:10px 0 5px;font-size:17px}.price{font-size:19px;font-weight:900}.muted,.hint{color:var(--muted);font-size:13px}.hint{margin:5px 0 10px;line-height:1.4}.product-meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.pill{display:inline-flex;align-items:center;padding:4px 7px;background:#f0f1f3;border-radius:8px;font-size:11px}.pill.yellow{background:#fff2a8}.product-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.product-actions button{font-size:12px}
.panel,.seller-banner{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px;margin-top:18px}.tabs2{display:flex;gap:5px;margin-bottom:10px;overflow:auto}.tab2{border:0;background:#f0f0f0;border-radius:10px;padding:10px 13px;white-space:nowrap}.tab2.active{background:#111;color:#fff}.mine-panel{min-height:45px}.item{padding:12px 0;border-bottom:1px solid #eee}.item:last-child{border-bottom:0}.status{display:inline-block;padding:4px 8px;background:#fff4b8;border-radius:8px;font-size:12px}.seller-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#111;color:#fff}.seller-banner span{display:block;color:#ccc;font-size:13px;margin-top:4px}.seller-banner .primary{white-space:nowrap}.hidden{display:none!important}
.dialog-card{position:relative;width:min(92vw,470px);max-height:calc(100dvh - 24px);overflow:auto;border:0;border-radius:22px;padding:22px;background:#fff!important;color:#171717!important;opacity:1!important;box-shadow:0 15px 60px #0004}.dialog-card.wide{width:min(94vw,620px)}dialog{border:0;padding:0;background:transparent;max-width:100vw;max-height:100dvh;overflow:hidden;z-index:200}dialog::backdrop{background:rgba(0,0,0,.64)!important}
.dialog-close{position:absolute;right:13px;top:8px;border:0;background:transparent;font-size:29px;line-height:1;z-index:2}.dialog-card h2{margin:0 0 15px}.dialog-card label{display:block;margin:11px 0;font-size:13px;font-weight:750}.dialog-card label input,.dialog-card label select,.dialog-card label textarea{margin-top:6px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:9px}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.three input{min-width:0}
.cart-line{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #eee}.qty{display:flex;align-items:center;gap:6px}.qty button{width:30px;height:30px;border:1px solid #ddd;background:#fff;border-radius:8px}.cart-total,.fee-line{display:flex;justify-content:space-between;font-size:17px;padding:13px 0;border-top:1px solid #eee}.fee-line{font-size:14px}
.message{min-height:20px;margin-top:10px;color:#555;font-size:13px}.error{color:var(--red)}.ok{color:var(--green)}
.step-title{display:flex;gap:10px;align-items:center;margin-bottom:10px}.step-title>span{width:36px;height:36px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;font-weight:900}.step-title h2{margin:0}.step-title p{margin:2px 0;color:#666}.step-progress{display:flex;gap:6px;margin:2px 0 8px}.step-progress i{height:4px;flex:1;background:#e5e7eb;border-radius:99px}.step-progress i.active{background:var(--yellow)}
.merchant-form{display:flex;flex-direction:column;padding:20px 18px 16px}.merchant-scroll{min-height:0;max-height:calc(100dvh - 205px);overflow-y:auto;overscroll-behavior:contain;padding:0 2px 2px;-webkit-overflow-scrolling:touch}.form-section-title{font-size:15px;font-weight:900;margin:5px 0 10px}.form-label{font-size:13px;font-weight:750;margin:12px 0 7px}.label-hint{font-size:11px;font-weight:600;color:#6b7280}.photo-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 12px}.photo-item{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:#f2f2f2;border:1px solid #ddd}.photo-item img{width:100%;height:100%;object-fit:cover}.photo-item button{position:absolute;right:5px;top:5px;width:27px;height:27px;border:0;border-radius:50%;background:#111;color:#fff;font-size:18px}.photo-item span{position:absolute;left:5px;bottom:5px;background:var(--yellow);border-radius:7px;padding:2px 6px;font-size:11px;font-weight:900}
.shipping-box{border:1px solid #e5e7eb;border-radius:13px;padding:10px 11px;margin:10px 0;background:#fafafa}.shipping-box>b{display:block;margin-bottom:5px}.check{display:flex!important;align-items:center;gap:8px;margin:7px 0!important;font-size:14px!important;font-weight:600!important}.check input{width:18px!important;height:18px;flex:0 0 auto}.review-box{border:1px solid #eadf9c;background:#fffbea;border-radius:13px;padding:11px;margin-top:10px}.button-row{display:flex;gap:8px;margin-top:10px}.button-row>*{flex:1}.merchant-actions button{min-height:48px}
.checkout-summary{background:#fafafa;border:1px solid var(--line);border-radius:12px;padding:11px;margin-bottom:10px}.shipping-quotes{display:flex;flex-direction:column;gap:9px}.shipping-group{border:1px solid var(--line);border-radius:14px;padding:11px;background:#fff;margin:9px 0}.shipping-rates{display:flex;flex-direction:column;gap:7px;margin-top:8px}.shipping-rate{display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:10px;border:1px solid #ddd;border-radius:11px;background:#fff;cursor:pointer}.shipping-rate.selected{border-color:#e0be00;background:#fffbe0}.shipping-rate input{width:18px!important;margin:0!important}.shipping-rate span{display:flex;flex-direction:column;font-weight:750}.shipping-rate small{font-weight:500;color:#6b7280;margin-top:2px}.checkout-summary~.shipping-quotes{}.cod-box{background:#fff9d9;border:1px solid #eadf9c;border-radius:14px;padding:11px;margin:10px 0}.qris-box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px;margin:10px 0;display:flex;flex-direction:column;align-items:center;gap:7px}.qris-box img{width:min(100%,340px);border-radius:8px}.qris-preview img{width:160px;max-height:180px;object-fit:contain;border:1px solid #ddd;border-radius:10px}.gps-btn{margin-top:6px}
.tracking-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.tracking-person{border:1px solid var(--line);border-radius:12px;padding:10px;background:#fafafa}.deal-price{font-weight:900;color:var(--green)}del.muted{font-size:12px}.cart-nego{padding:7px 10px;font-size:12px}.order-card{border:1px solid #e3e5e8;border-radius:14px;padding:12px;margin:8px 0;background:#fff}.order-card .order-head{display:flex;justify-content:space-between;gap:8px}.order-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.order-actions button{font-size:12px}.map-frame{width:100%;height:260px;border:0;border-radius:14px;background:#eef0f2}.map-link{display:inline-block;margin-top:7px}
.account-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.account-card{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}.account-card b{display:block;margin-bottom:4px}.account-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.toast{position:fixed;right:14px;top:82px;z-index:100;width:min(92vw,380px);background:#111;color:#fff;border-radius:15px;padding:12px 14px;display:flex;gap:10px;box-shadow:0 12px 35px #0005;animation:toastIn .22s ease}.toast b{font-size:14px}.toast div div{font-size:13px;color:#ddd;margin-top:2px}@keyframes toastIn{from{transform:translateY(-10px);opacity:0}to{transform:none;opacity:1}}
.qris-mini{width:95px;height:95px;object-fit:contain;border:1px solid #ddd;border-radius:8px}.merchant-order{border-left:4px solid var(--yellow)}
@media(max-width:600px){
 .tracking-grid{grid-template-columns:1fr}.cart-line{grid-template-columns:1fr auto}.cart-nego{grid-column:1/-1;width:100%}
 .container{padding:12px}.hero h1{font-size:25px}.topbar{padding:0 10px}.brand{font-size:20px}.merchant-btn{font-size:12px;padding:9px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-img{height:120px}.product-card{padding:10px}.product-card h3{font-size:15px}.price{font-size:16px}.seller-banner{display:block}.seller-banner .primary{margin-top:12px;width:100%}.merchant-form{width:calc(100vw - 18px);max-height:calc(100dvh - 12px);padding:17px 14px 12px}.merchant-scroll{max-height:calc(100dvh - 205px)}.merchant-form label{margin:9px 0;font-size:12px}.merchant-form input,.merchant-form textarea,.merchant-form select{font-size:15px;padding:11px}.step-title h2{font-size:21px}.account-grid{grid-template-columns:1fr}.two{gap:7px}.dialog-card{padding:19px}
}
