:root{
  --bg:#f6f7f9;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;
  --accent:#0a7a3c;
  --shadow: 0 12px 30px rgba(15,23,42,.08);
  --radius:18px;
}

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

.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:flex-start;
  gap:12px;
  padding:12px 14px;
  background:rgba(246,247,249,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.iconBtn{
  width:44px; height:44px;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:14px;
  font-size:20px;
  cursor:pointer;
  box-shadow: var(--shadow);
}

.brand{display:flex; align-items:center; gap:12px; min-width:0}
.titles{min-width:0}
.title{font-weight:800; font-size:16px; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.subtitle{font-size:12px; color:var(--muted)}

.container{max-width:1200px; margin:16px auto; padding:0 14px 24px}

.grid{
  display:grid;
  grid-template-columns: repeat( auto-fill, minmax(220px, 1fr) );
  gap:14px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  cursor:pointer;
  transition: transform .08s ease;
}
.card:active{transform: scale(.99)}
.cardBody{padding:14px}
.cardTitle{font-weight:850; font-size:18px}
.cardSub{color:var(--muted); margin-top:6px; font-size:13px; min-height:28px}
.cardImgWrap{padding:16px; display:flex; align-items:center; justify-content:center; background:#fff}
.cardImg{width:100%; max-height:140px; object-fit:contain}

.card.disabled{
  cursor: default;
  opacity: .92;
}

.cardImgWrap.placeholder{
  border: 2px dashed var(--line);
  border-radius: 16px;
  margin: 16px;
  height: 140px;
  background: transparent;
}

.phText{
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  width: 100%;
}

.detail{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:14px;
}
@media (max-width: 900px){
  .detail{grid-template-columns:1fr}
}

.panel{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
}

.h1{font-size:22px; font-weight:900; margin:0}
.muted{color:var(--muted)}
.bigImg{width:100%; max-height:320px; object-fit:contain; background:#fff; border:1px solid var(--line); border-radius:16px; padding:10px}

.row{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
select, .btn{
  height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  padding:0 12px;
  background:#fff;
  font-weight:700;
}
.btn{
  cursor:pointer;
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
  text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
}

.list a{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  text-decoration:none;
  color:var(--text);
  background:#fff;
  margin-top:10px;
}

.tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}
.tabBtn{
  border:1px solid var(--line);
  background:var(--card);
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
  font-weight:850;
  color:var(--text);
}
.tabBtn.active{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.tabPanel{
  margin-top:12px;
}

.drawer{
  position:fixed; inset:0;
  background:rgba(15,23,42,.35);
  display:none;
}
.drawer.open{display:block}
.drawerInner{
  position:absolute; left:14px; top:14px;
  width:min(360px, calc(100% - 28px));
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:14px;
}
.drawerTitle{font-weight:900; margin-bottom:8px}
.drawerLink{display:block; padding:10px 6px; color:var(--text); text-decoration:none}
.drawerClose{margin-top:8px; width:100%; height:44px; border-radius:14px; border:1px solid var(--line); background:#fff; cursor:pointer}
