/* assets/css/site.css */

:root{
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2b6cb0;
  --primary-2: #3b82f6;
  --primary-soft: #dbeafe;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{color:var(--primary); text-decoration:none}
a:hover{text-decoration:underline}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:999;
  background:#fff;
  border-bottom:1px solid var(--border);
}

.topbar-inner{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}

.brand{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand strong{font-size:18px}
.brand span{font-size:12px;color:var(--muted)}

.filters{
  margin:18px 0;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  box-shadow:0 10px 30px rgba(15, 23, 42, .05);
}

.filters .row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.input, select{
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  font-size:14px;
  min-width: 220px;
}

.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  cursor:pointer;
  font-size:14px;
}

.btn.primary{
  background: var(--primary);
  border-color: var(--primary);
  color:#fff;
}

.btn:hover{filter:brightness(0.98)}

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
  padding-bottom:30px;
}

.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(15, 23, 42, .05);
  display:flex;
  flex-direction:column;
}

.card-img{
  width:100%;
  aspect-ratio: 1/1;
  background:#eef2ff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.card-body{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}

.title{
  font-size:15px;
  font-weight:800;
  margin:0;
}

.meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
}

.price{
  font-size:18px;
  font-weight:900;
  color: var(--text);
}

.badge{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size:12px;
  font-weight:700;
}

.footer{
  border-top:1px solid var(--border);
  background:#fff;
  padding:16px 0;
  color:var(--muted);
  font-size:13px;
}

@media(max-width:1100px){
  .grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:850px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .input, select{min-width: 100%}
}
@media(max-width:520px){
  .grid{grid-template-columns:1fr}
}
