:root{
  --bg:#f8fafc;
  --card:#ffffff;
  --muted:#6b7280;
  --text:#0f172a;
  --primary:#7aa7ff;      /* pastel blue */
  --primary-2:#7be0c3;    /* pastel mint */
  --accent:#f7b2d9;       /* pastel pink */
  --warn:#ffd98e;         /* pastel orange */
  --border:#e5e7eb;
  --shadow: 0 8px 24px rgba(15,23,42,.08);
  --radius:16px;
  --radius-sm:12px;
  --container: 980px;
}

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

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block;border-radius:12px}
button,input,select,textarea{font-family:inherit}

.container{
  max-width: var(--container);
  margin:0 auto;
  padding:16px;
}

.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
}

.brand{
  font-weight:800;
  letter-spacing:.2px;
  font-size:18px;
  display:flex; align-items:center; gap:10px;
}

.brand-badge{
  width:34px; height:34px; border-radius:12px;
  background: var(--primary-2);
  display:grid; place-items:center;
  box-shadow: var(--shadow);
  border:1px solid rgba(15,23,42,.06);
}

.icon-btn{
  border:1px solid var(--border);
  background: var(--card);
  border-radius:14px;
  padding:10px 12px;
  display:flex; align-items:center; gap:8px;
  box-shadow: 0 2px 10px rgba(15,23,42,.05);
}

.icon{width:18px;height:18px;display:inline-block}
.badge{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:20px; height:20px; padding:0 6px;
  border-radius:999px;
  background: var(--accent);
  font-weight:700;
  font-size:12px;
}

.drawer{
  position:fixed;
  inset:0;
  background: rgba(15,23,42,.35);
  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease;
  z-index:100;
}

.drawer.open{opacity:1; pointer-events:auto}
.drawer-panel{
  position:absolute;
  top:0; right:0; height:100%;
  width:min(86vw, 340px);
  background: var(--card);
  border-left:1px solid var(--border);
  transform: translateX(100%);
  transition: transform .22s ease;
  padding:16px;
}
.drawer.open .drawer-panel{transform: translateX(0)}
.drawer h3{margin:4px 0 12px 0}
.navlink{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: #fff;
  margin:10px 0;
}
.navlink small{color:var(--muted)}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

@media(min-width:720px){
  .grid{grid-template-columns: repeat(3, minmax(0,1fr));}
}
@media(min-width:980px){
  .grid{grid-template-columns: repeat(4, minmax(0,1fr));}
}

.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(15,23,42,.06);
  overflow:hidden;
}

.card-body{padding:12px}
.card-title{font-weight:800;margin:6px 0 6px 0; font-size:15px}
.card-meta{color:var(--muted);font-size:13px;margin:0}
.price-row{display:flex; align-items:baseline; gap:8px; margin-top:10px}
.price{font-weight:900}
.price-old{color:var(--muted); text-decoration: line-through; font-size:13px}
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: #fff;
  font-weight:700;
  font-size:12px;
}

.hero{
  margin-top:14px;
  padding:14px;
  border-radius: var(--radius);
  border:1px solid rgba(15,23,42,.06);
  background: #fff;
  box-shadow: var(--shadow);
}
.hero h1{margin:0 0 6px 0; font-size:20px}
.hero p{margin:0; color:var(--muted)}

.section-title{
  display:flex; align-items:center; justify-content:space-between;
  margin:18px 0 10px 0;
}
.section-title h2{margin:0; font-size:16px}
.section-title a{color:var(--primary); font-weight:800; font-size:13px}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background: var(--primary);
  border:1px solid rgba(15,23,42,.06);
  color:#0b1220;
  padding:12px 14px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
  width:100%;
}
.btn.secondary{background:#fff; border:1px solid var(--border)}
.btn.danger{background: var(--accent)}
.btn.small{padding:10px 12px; width:auto}
.btn:disabled{opacity:.6; cursor:not-allowed}

.form{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: 0 4px 18px rgba(15,23,42,.06);
}
.form label{display:block; font-weight:800; font-size:13px; margin:12px 0 6px}
.form input,.form select,.form textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  outline:none;
}
.form .row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.form .row-1{display:grid; grid-template-columns: 1fr; gap:12px}
.form .help{color:var(--muted); font-size:12px; margin-top:6px}
.alert{
  border:1px solid var(--border);
  background:#fff;
  border-radius:14px;
  padding:12px;
  margin:12px 0;
}
.alert.ok{border-color: rgba(123,224,195,.9)}
.alert.err{border-color: rgba(247,178,217,.9)}
.muted{color:var(--muted)}
.footer{
  margin:24px 0 10px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.table th{
  text-align:left;
  color:var(--muted);
  font-size:12px;
  padding:0 10px;
}
.table td{
  background:#fff;
  border:1px solid var(--border);
  padding:10px;
}
.table td:first-child{border-top-left-radius:14px;border-bottom-left-radius:14px}
.table td:last-child{border-top-right-radius:14px;border-bottom-right-radius:14px}
