/* CSS عام (مشترك) - الثيم الحقيقي راح ينحقن من /themes/{id}/style.css */
:root{
  --bg:#0b0f14;
  --fg:#e7eef7;
  --muted:#9fb0c3;
  --card:#121923;
  --border:rgba(255,255,255,.08);
  --accent:#4ea1ff;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --max: 1100px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Kufi Arabic", "Cairo", sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--fg);
}

.topbar{
  position:sticky; top:0; z-index:20;
  background:linear-gradient(to bottom, rgba(11,15,20,.98), rgba(11,15,20,.75));
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
  padding:14px 16px;
}

.brand{display:flex; flex-direction:column; gap:4px; max-width:var(--max); margin:0 auto;}
.brand__title{font-size:18px; font-weight:800}
.brand__sub{font-size:12px; color:var(--muted)}

.actions{
  max-width:var(--max); margin:10px auto 0;
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}

.search, .select{
  background:rgba(255,255,255,.04);
  color:var(--fg);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}
.search{flex:1; min-width:240px}
.select{min-width:160px}

.container{max-width:var(--max); margin:0 auto; padding:16px}
.status{color:var(--muted); margin:8px 0 14px; min-height:20px}
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:14px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}

.card__imgwrap{height:160px; background:rgba(255,255,255,.03); display:flex; align-items:center; justify-content:center}
.card__img{width:100%; height:100%; object-fit:cover}
.card__body{padding:12px}
.card__row{display:flex; gap:10px; align-items:flex-start; justify-content:space-between}
.card__title{margin:0; font-size:15px}
.card__price{font-weight:800; color:var(--accent); white-space:nowrap}
.card__desc{margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.6; min-height:38px}
.card__tags{margin-top:10px; display:flex; flex-wrap:wrap; gap:6px}
.tag{
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--muted);
}

.footer{
  max-width:var(--max); margin:20px auto 28px; padding:0 16px;
  color:var(--muted); text-align:center;
}
