:root{
  --bg:#ffffff; --fg:#0b0b0b; --muted:#6b6b6b; --card:#ffffff;
  --line:#e9e9e9; --shadow:0 10px 30px rgba(0,0,0,.06);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg); color:var(--fg);
}
a{color:inherit; text-decoration:none}
button{font:inherit}
.hidden{display:none !important}
.container{max-width:980px; margin:0 auto; padding:0 14px}

/* Top bar */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:50;
  background:rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar .row{
  height:56px;
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  column-gap:10px;
}
.brand{
  justify-self:center;
  text-align:center;
  font-weight:900;
  letter-spacing:.6px;
  pointer-events:none;
}
.brand span{font-size:18px}
.spacer{width:40px; height:40px}

.storeBtn{
  width:40px; height:40px; padding:0;
  border:1px solid var(--line); border-radius:12px;
  background:#fff;
  display:flex; align-items:center; justify-content:center;
}
.storeBtn::before{
  content:"📍";
  font-size:18px;
  line-height:1;
}

.main{padding-top:68px; padding-bottom:84px;}
.h1{font-size:20px; font-weight:800; margin:10px 0 12px;}
.small{font-size:12px; color:var(--muted);}

.searchRow{display:flex; gap:10px; align-items:center; margin:10px 0 12px;}
.searchRow input{
  width:100%; padding:12px 14px; border:1px solid var(--line);
  border-radius:16px; outline:none;
}
.pills{display:flex; gap:10px; overflow:auto; padding-bottom:4px;}
.pill{
  padding:10px 12px; border:1px solid var(--line); border-radius:999px;
  background:#fff; font-size:13px; white-space:nowrap;
}
.pill.active{border-color:#cfcfcf; box-shadow: var(--shadow)}

.grid{
  display:grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px; margin-top:12px;
}
@media(min-width:720px){ .grid{grid-template-columns: repeat(4, minmax(0,1fr));} }

.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow: var(--shadow);
}
.card .img{height:130px; background:#f3f3f3; display:flex; align-items:center; justify-content:center;}
.card .img img{width:100%; height:100%; object-fit:cover; opacity:.95}
.card .body{padding:10px}
.card .title{font-size:13px; font-weight:650; line-height:1.25; min-height:32px}
.card .price{margin-top:8px; font-weight:900}
.badge{
  position:absolute; margin:10px; padding:6px 10px;
  background:#0b0b0b; color:#fff; border-radius:999px; font-size:11px; font-weight:800;
}
.cardWrap{position:relative}

.btn{
  width:100%; padding:12px 14px; border-radius:16px; border:1px solid var(--line);
  background:#fff; font-weight:800;
}
.btn.primary{background:#0b0b0b; color:#fff; border-color:#0b0b0b;}
.btn:active{transform:translateY(1px)}

.box{
  border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow: var(--shadow);
  padding:14px;
}
.row2{display:flex; gap:10px}
.row2 > *{flex:1}
.hr{height:1px; background:var(--line); margin:12px 0}

/* Bottom nav */
.bottomNav{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.95); backdrop-filter: blur(10px);
}
.bottomNav .row{
  height:66px; display:flex; align-items:center; justify-content:space-around;
}
.navBtn{
  width:25%; height:66px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:4px; background:transparent; border:0; color:#111;
}
.navBtn .i{font-size:18px}
.navBtn .t{font-size:11px; color:var(--muted); font-weight:700}
.navBtn.active .t{color:#111}

/* Sheets */
.sheetBackdrop{position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:90;}
.sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:100;
  background:#fff; border-radius:22px 22px 0 0;
  border-top:1px solid var(--line);
  box-shadow: 0 -18px 60px rgba(0,0,0,.12);
  max-width:980px; margin:0 auto;
}
.sheet .head{
  padding:14px 16px; display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid var(--line);
}
.sheet .head .ttl{font-weight:900}
.sheet .content{padding:12px 16px 16px}

.storeItem{
  padding:12px; border:1px solid var(--line); border-radius:16px; margin-bottom:10px;
  display:flex; gap:10px; align-items:flex-start;
}
.storeItem input{margin-top:3px}
.storeItem .addr{font-weight:900}
.storeItem .city{font-size:12px; color:var(--muted); margin-top:2px}

.section{display:none}
.section.active{display:block}

.toast{
  position:fixed; left:50%; transform:translateX(-50%); bottom:88px; z-index:200;
  background:#0b0b0b; color:#fff; padding:10px 14px; border-radius:999px;
  font-weight:800; font-size:13px;
}

.qrWrap{display:flex; align-items:center; justify-content:center; padding:12px 0}
.qrWrap img{width:220px; height:220px; border-radius:18px; border:1px solid var(--line); background:#fff}
