:root{--yellow:#ffc52d;--green:#149653;--ink:#17211b;--muted:#6b7280;--bg:#f6f7f5;--card:#fff}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink)}
header{background:#fff;padding:18px max(18px,calc((100% - 1100px)/2));border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:5}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:20px;letter-spacing:-.6px}.logo{background:var(--yellow);width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:23px}
button{cursor:pointer;border:0;border-radius:12px;padding:11px 15px;font-weight:750;font-size:14px}.primary{background:var(--green);color:#fff}.secondary{background:#fff;border:1px solid #d1d5db;color:var(--ink)}
main{max-width:1100px;margin:auto;padding:24px 18px 60px}.hero{background:linear-gradient(115deg,#ffcf42,#ffe9a3);border-radius:24px;padding:28px;display:grid;grid-template-columns:1.4fr 1fr;align-items:center;gap:20px;overflow:hidden}.hero h1{font-size:clamp(28px,5vw,46px);line-height:1.04;margin:0 0 12px;letter-spacing:-1.6px}.hero p{max-width:480px;margin:0 0 18px;color:#493b14}.hero-art{font-size:100px;text-align:center;filter:drop-shadow(0 8px 8px #a8783140)}
.loc{display:inline-flex;gap:7px;align-items:center;background:#fff9;border-radius:99px;padding:7px 11px;font-size:13px;font-weight:700;margin-bottom:14px}
.search{width:100%;padding:15px 16px;border:1px solid #e0e4e1;border-radius:14px;font-size:15px;margin:22px 0 18px;background:#fff}
h2{font-size:22px;margin:18px 0 13px}.categories{display:flex;gap:10px;overflow-x:auto;padding-bottom:5px}.cat{min-width:100px;background:#fff;border:1px solid #e5e7eb;border-radius:15px;padding:13px 10px;text-align:center;font-size:13px;font-weight:750}.cat span{display:block;font-size:26px;margin-bottom:5px}.cat.active{border:2px solid var(--green);background:#effaf3}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.store{background:#fff;border:1px solid #e5e7eb;border-radius:18px;overflow:hidden}.store-img{height:125px;display:grid;place-items:center;font-size:54px;background:linear-gradient(135deg,#fce7c2,#f9f4e9)}.store-body{padding:14px}.store h3{margin:0 0 5px;font-size:17px}.sub{font-size:13px;color:var(--muted);margin:0 0 12px}.row{display:flex;justify-content:space-between;align-items:center;gap:8px}.pill{font-size:12px;background:#f3f4f6;border-radius:99px;padding:5px 8px}.products{display:none;margin-top:22px}.product-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px;display:flex;align-items:center;gap:10px}.product .emoji{font-size:32px}.product-info{flex:1}.product-info strong{display:block;font-size:14px}.product-info small{color:var(--muted)}.add{background:#e5f7ec;color:#08783d;font-size:20px;padding:4px 11px}
.cartbar{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);width:min(540px,calc(100% - 28px));background:#15251b;color:#fff;border-radius:17px;padding:12px 14px;display:none;align-items:center;justify-content:space-between;gap:10px;box-shadow:0 8px 28px #0003;z-index:10}.cartbar small{display:block;color:#c8d5cc}.cartbar button{background:var(--yellow);color:#191919}
.modal{display:none;position:fixed;inset:0;background:#0008;z-index:20;align-items:center;justify-content:center;padding:16px}.modal.show{display:flex}.dialog{width:min(520px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:22px;padding:22px}.dialog h2{margin-top:0}.field{display:block;width:100%;padding:13px;border:1px solid #d1d5db;border-radius:11px;margin:8px 0 13px;font:inherit}.line{display:flex;justify-content:space-between;margin:10px 0}.notice{background:#fff8df;border-radius:12px;padding:12px;font-size:13px;color:#614b0b;margin-top:14px}.success{text-align:center;padding:20px}.success .check{font-size:55px}.err{background:#fde8e8;color:#9b1c1c;border-radius:11px;padding:11px;font-size:14px;margin:6px 0 12px}.qty{display:inline-flex;align-items:center;gap:6px}.qty button{padding:3px 10px;background:#f3f4f6;font-size:16px}
footer{text-align:center;color:var(--muted);font-size:12px;padding:24px}
@media(max-width:700px){.hero{grid-template-columns:1fr;padding:23px}.hero-art{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-img{height:95px}.product-list{grid-template-columns:1fr}.brand{font-size:17px}header{padding:12px 15px}main{padding-top:16px}}
@media(max-width:390px){.grid{grid-template-columns:1fr}.store-img{height:100px}}
.checkout{max-width:620px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:22px;margin-bottom:16px}.card h2{margin-top:0}
.paybtn{width:100%;padding:15px;font-size:16px;display:flex;align-items:center;justify-content:center;gap:10px}.brands{display:inline-flex;gap:6px}.brands span{background:#fff;color:#1a1f71;border-radius:5px;padding:2px 6px;font-size:11px;font-weight:900}.brands span.mc{color:#eb001b}
.divider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;margin:14px 0}.divider:before,.divider:after{content:"";flex:1;height:1px;background:#e5e7eb}
.status{display:inline-block;border-radius:99px;padding:5px 10px;font-size:12px;font-weight:800}.status.paid{background:#dcfce7;color:#166534}.status.pending{background:#fef3c7;color:#92400e}
