/* Minimal, clean, mobile-first */
:root{
  --bg:#0b0b0f;
  --card:#11111a;
  --muted:#9aa0a6;
  --text:#f2f4f8;
  --line:#232334;
  --accent:#ffffff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:var(--bg);
  color:var(--text);
}

a{color:inherit}
.container{max-width:1100px;margin:0 auto;padding:16px}

.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px;
  border-bottom:1px solid var(--line);
  background:rgba(11,11,15,0.9);
  backdrop-filter: blur(10px);
}

.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:40px;height:40px;border:1px solid var(--line);
  border-radius:14px; display:grid; place-items:center;
  background:linear-gradient(180deg, #141424, #0b0b0f);
  font-weight:700; letter-spacing:1px;
}
.brand-title{font-weight:700}
.brand-sub{font-size:12px;color:var(--muted);margin-top:2px}

.top-actions{display:flex; gap:10px; align-items:center}

button{
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
}
button.primary{
  background:var(--accent);
  color:#0b0b0f;
  border-color:transparent;
  font-weight:700;
}
button.ghost{background:transparent}

.pill{
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.12);
  background:rgba(0,0,0,0.12);
}

.hero{
  padding:18px 0 10px 0;
}
.hero h1{margin:0 0 6px 0;font-size:28px}
.hero p{margin:0 0 12px 0;color:var(--muted)}
.hero-row{display:flex; gap:10px; flex-wrap:wrap}
.input,.select{
  border:1px solid var(--line);
  background:var(--card);
  color:var(--text);
  padding:12px 12px;
  border-radius:14px;
  outline:none;
}
.input{flex:1; min-width:220px}
.select{min-width:160px}

.note{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  color:var(--muted);
  background:rgba(17,17,26,0.6);
}

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

.card{
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--card);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.card-img{
  height:110px;
  background:linear-gradient(180deg, #1a1a2c, #11111a);
  display:grid; place-items:center;
  color:rgba(255,255,255,0.2);
  font-weight:800;
  letter-spacing:2px;
}
.card-body{padding:12px}
.card-name{font-weight:700; line-height:1.2}
.card-meta{display:flex; justify-content:space-between; margin-top:6px; color:var(--muted); font-size:12px}
.card-actions{display:flex; justify-content:space-between; align-items:center; margin-top:10px}
.qty{
  display:flex; gap:8px; align-items:center;
}
.qty button{padding:8px 10px; border-radius:12px}
.qty span{min-width:18px; text-align:center; display:inline-block}

.backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,0.55);
  z-index:19;
}
.drawer{
  position:fixed; right:0; top:0; height:100%;
  width:min(420px, 92vw);
  background:rgba(17,17,26,0.98);
  border-left:1px solid var(--line);
  z-index:20;
  display:flex;
  flex-direction:column;
}

.hidden{display:none}

.drawer-head{
  padding:16px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid var(--line);
}
.drawer-title{font-weight:800}
.drawer-sub{color:var(--muted); font-size:12px; margin-top:2px}
.drawer-body{padding:16px; overflow:auto}
.cart-items{display:flex; flex-direction:column; gap:10px}
.cart-item{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.cart-item .left{display:flex; flex-direction:column; gap:4px}
.cart-item .name{font-weight:700}
.cart-item .sub{color:var(--muted); font-size:12px}
.divider{height:1px;background:var(--line);margin:14px 0}

.delivery .form-title{font-weight:800;margin-bottom:10px}
.form-row{display:grid; gap:10px}
@media (min-width:520px){
  .form-row{grid-template-columns:1fr 1fr}
}
label{display:flex; flex-direction:column; gap:6px; font-size:12px; color:var(--muted)}
label .input{font-size:14px;color:var(--text)}
.total-row{margin-top:14px; display:flex; justify-content:space-between; align-items:center; gap:10px}
.total{font-size:20px;font-weight:900}
.small{font-size:12px;margin-top:10px}
.muted{color:var(--muted)}
.method{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:8px 0 4px 0;
}
.radio{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(17,17,26,0.6);
  color:var(--text);
}
label .select{
  width:100%;
  min-width:0;
}
