/* Daily Mart customer pages */
body{background:#f7f8f5}
.wrap{max-width:620px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}
.head{padding:24px 18px 16px;background:linear-gradient(160deg,#e9f7ef,#f7f8f5 75%)}
.head .row{display:flex;align-items:center;gap:14px}
.logo{width:54px;height:54px;border-radius:16px;background:var(--storm);color:var(--volt);display:grid;place-items:center;font-weight:800;font-size:18px;flex:none}
.head h1{margin:0;font-size:22px;font-family:'Creato Display',Poppins,sans-serif;font-style:italic;font-weight:800}
.head .ar.name{display:block;text-align:left;font-weight:700;font-size:14px}
.head p{margin:8px 0 0;color:var(--mut);font-size:12.5px}
.offer{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.offer span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600}
.search{position:sticky;top:0;z-index:6;background:rgba(247,248,245,.95);backdrop-filter:blur(6px);padding:10px 14px 6px}
.search input{width:100%;border:1px solid var(--line);border-radius:14px;padding:11px 14px;background:#fff;font-size:15px}
.cats{display:flex;gap:6px;overflow-x:auto;padding:6px 0 4px;scrollbar-width:none}
.cats a{flex:none;text-decoration:none;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 12px;font-size:12.5px;font-weight:600;white-space:nowrap}
.cats a.on{background:var(--storm);color:#fff;border-color:var(--storm)}
main{flex:1;padding:4px 14px 10px}
section{scroll-margin-top:110px}
h2{margin:18px 2px 8px;font-size:16px;display:flex;justify-content:space-between;align-items:baseline}
h2 .ar{font-size:14px;color:var(--mut);font-weight:700}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (min-width:520px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.prod{background:#fff;border:1px solid #ecebe5;border-radius:16px;padding:10px;display:flex;flex-direction:column;gap:4px;position:relative}
.prod .ic{height:84px;border-radius:12px;background:#f1f3ec;display:grid;place-items:center;font-size:40px;overflow:hidden}
.prod .ic img{width:100%;height:100%;object-fit:cover}
.prod b{font-size:13.5px;line-height:1.25}
.prod .ar{font-size:12px;color:var(--mut);text-align:left}
.prod small{font-size:11.5px;color:var(--mut)}
.prod .bot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:4px}
.prod .pr{font-weight:800}
.prod.out{opacity:.5}
.prod .tag{position:absolute;top:8px;left:8px;background:#fff;color:var(--bad);font-size:10.5px;font-weight:700;border-radius:999px;padding:2px 8px}
.add{border:0;background:var(--volt);color:var(--storm);font-weight:800;border-radius:10px;width:32px;height:32px;font-size:18px;line-height:1}
.qty{display:flex;align-items:center;gap:5px}
.qty button{border:0;background:var(--storm);color:#fff;font-weight:700;border-radius:9px;width:28px;height:28px;font-size:15px;line-height:1}
.qty b{min-width:14px;text-align:center}
.track{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 14px 0;background:var(--volt);color:var(--storm);border-radius:14px;padding:12px 14px;text-decoration:none;font-weight:600}
.cartbar{position:fixed;left:50%;bottom:14px;transform:translate(-50%,140%);width:calc(100% - 24px);max-width:596px;background:var(--storm);color:#fff;border-radius:18px;padding:12px 12px 12px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;transition:transform .3s;z-index:20;box-shadow:0 14px 30px rgba(29,31,36,.3)}
.cartbar.show{transform:translate(-50%,0)}
.cartbar button{border:0;background:var(--volt);color:var(--storm);font-weight:700;border-radius:12px;padding:11px 16px}
.spacer{height:84px}
.sheetbg{position:fixed;inset:0;background:rgba(29,31,36,.45);display:none;align-items:flex-end;justify-content:center;z-index:30}
.sheetbg.show{display:flex}
.sheet{background:#fbfbf8;width:100%;max-width:620px;border-radius:22px 22px 0 0;padding:20px 18px 18px;max-height:90vh;overflow-y:auto}
.sheet h3{margin:0 0 4px;font-size:19px;display:flex;justify-content:space-between;align-items:center}
.sheet h3 button{border:0;background:none;font-size:22px;color:var(--mut)}
.line{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #eeeee8}
.line .n{flex:1;min-width:0}.line .n b{display:block;font-size:14px}.line .n small{color:var(--mut)}
.line .lp{font-weight:700;min-width:64px;text-align:right}
.seg2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 4px}
.seg2 button{border:1.5px solid var(--line);background:#fff;border-radius:14px;padding:11px;font-weight:700;text-align:left}
.seg2 button small{display:block;font-weight:500;color:var(--mut);font-size:11.5px}
.seg2 button.on{border-color:var(--storm);background:var(--storm);color:#fff}
.seg2 button.on small{color:#c9ccd3}
.f{margin-top:10px}
.f label{display:block;font-size:12px;color:var(--mut);margin-bottom:4px}
.f input,.f select,.f textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;font-size:15px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sum{display:flex;justify-content:space-between;font-size:14px;color:var(--mut);margin-top:6px}
.tot{display:flex;justify-content:space-between;font-weight:800;font-size:17px;margin:8px 0 4px}
.warnline{background:#fff7cc;color:#5b4a00;border-radius:12px;padding:8px 12px;font-size:13px;margin-top:10px}
.zap{width:100%;border:0;background:var(--volt);color:var(--storm);font-weight:800;font-size:16px;border-radius:14px;padding:15px;margin-top:12px}
.zap:disabled{opacity:.55}
.err{color:var(--bad);font-size:13px;margin-top:8px;text-align:center}
.rate{display:block;margin:20px 0 0;text-align:center;text-decoration:none;color:var(--storm);border:1.5px solid var(--storm);border-radius:14px;padding:12px;font-weight:700}
