:root{
  --bg:#0b0c10;
  --card:#13141a;
  --muted:#8f94a3;
  --text:#e7e9ee;
  --brand:#6e7aff;
  --accent:#ff6b3d;
  --success:#22c55e;
  --border:rgba(255,255,255,.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:14.5px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
}

.container{width:min(1120px, 92%); margin-inline:auto}
.hidden{display:none}

.site-header{
  position:sticky; top:0; z-index:10;
  backdrop-filter:saturate(1.1) blur(6px);
  background:linear-gradient(0deg, transparent, rgba(0,0,0,.35));
  border-bottom:1px solid var(--border);
}
.header-row{
  display:flex; align-items:center; gap:16px; padding:16px 0;
}
h1{font-size:20px; margin:0; letter-spacing:.3px}
.controls{margin-left:auto; display:flex; gap:10px; width:min(560px, 100%)}
.input,.select{
  width:100%;
  padding:10px 12px; border-radius:10px; border:1px solid var(--border);
  background:#0f1117; color:var(--text); outline:none;
}
.select{max-width:220px; cursor:pointer}

.grid{
  display:grid; gap:18px;
  grid-template-columns: repeat(4, 1fr);
  padding:22px 0 60px;
}
@media (max-width:1100px){ .grid{ grid-template-columns: repeat(3, 1fr);} }
@media (max-width:800px){ .grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width:520px){ .grid{ grid-template-columns: 1fr;} }

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  display:flex; flex-direction:column;
  box-shadow:0 2px 10px rgba(0,0,0,.25);
  position:relative;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s;
}
.card:hover{ transform:translateY(-2px); border-color:rgba(255,255,255,.16) }

.wish{
  position:absolute; top:10px; right:10px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border); color:#fff;
  width:34px; height:34px; border-radius:999px;
  display:grid; place-items:center; cursor:pointer;
}
.wish .icon{width:18px; height:18px}
.wish:hover{background:rgba(255,255,255,.12)}

.img-wrap {
  aspect-ratio: 1 / 1;          /* make the image box shorter */
  background: #0f1117;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
}
.img{max-width:88%; max-height:88%; object-fit:contain; filter:drop-shadow(0 2px 8px rgba(0,0,0,.35))}

.content{padding:14px}
.title{font-size:14px; margin:2px 0 6px; min-height:40px}
.meta{margin:0 0 10px; color:var(--muted); font-size:12.5px}

.rating-row{display:flex; align-items:center; gap:8px; margin:0 0 12px}
.stars{letter-spacing:1px; font-size:13.5px; color:#f6c445}
.count{color:var(--muted); font-size:12px}

.price-row{display:flex; align-items:baseline; gap:10px; margin:0 0 10px}
.price-now{font-size:18px; font-weight:700}
.price-was{color:var(--muted); text-decoration:line-through}

.cta-row{display:flex; gap:10px}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 12px; border-radius:12px;
  border:1px solid var(--border); background:#0f1117; color:var(--text);
  cursor:pointer;
}
.btn .icon{width:18px; height:18px}
.btn.add{background:var(--brand); border-color:transparent}
.btn.add:hover{filter:brightness(1.08)}

.badge-wrap{
  position:absolute; left:10px; top:10px; display:flex; gap:6px; flex-wrap:wrap;
}
.badge{
  padding:4px 8px; font-size:11.5px; border-radius:999px;
  background:var(--accent); color:white; border:1px solid rgba(0,0,0,.2);
  box-shadow:0 1px 6px rgba(0,0,0,.25);
}
.badge.green{ background:var(--success) }

.empty{ text-align:center; color:var(--muted); padding:40px 0 }
