:root{
  --bg:#f2f4f7;
  --card:#fff;
  --accent:green;
  --muted:#61646b;
  --radius:16px;
  --shadow:0 10px 36px rgba(0,0,0,0.08);
}
.container{max-width:1250px;margin:0 auto;padding:0 auto}
.header-box{
  background:var(--card);
  padding:16px;
  border-radius:16px;
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 0 10px 0;
}
.header-title{
  font-size:20px;
  font-weight:700;
  color:#111;
}
.header-form{
  display:flex;
  gap:10px;
  width:30%;
  justify-content:flex-end;
}
.header-input{
  flex:1;
  padding:10px;
  border:2px solid;
  border-radius:10px;
  font-size:15px;
  outline:none;
}
.header-btn{
  background:var(--accent);
  color:#fff;
  border:none;
  padding:12px 20px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
  font-size:15px;
}
@media(max-width:700px){
  .header-box{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .header-form{
    width:100%;
    padding:0;
    margin:0;
    gap:8px;
    background:var(--searchbg);
    border-radius:12px;
    display:flex;
  }
  .header-input{
    width:70%;
    margin-left:6px;
  }
  .header-btn{
    width:28%;
    padding:12px 10px;
  }
}
.grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(1,1fr);
}
@media(min-width:600px){
  .grid{grid-template-columns:repeat(2,1fr)}
}
@media(min-width:1000px){
  .grid{grid-template-columns:repeat(3,1fr)}
}
.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:.2s;
}
.card:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 48px rgba(0,0,0,0.12);
}
.card-media{
  width:100%;
  background:#eef1f5;
  display:flex;
  justify-content:center;
  align-items:center;
}
.card-media img{
  width:100%;
  height:auto;
  object-fit:contain;
}
@media(max-width:600px){
  .card-media img{max-height:280px}
}
.card-body{
  padding:18px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.title{
  font-size:17px;
  font-weight:700;
  margin:0 0 8px;
  color:#111;
}
.desc{
  font-size:14px;
  line-height:1.45;
  color:var(--muted);
  flex:1;
  margin-bottom:14px;
}
.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.price-wrap{display:flex;flex-direction:column}
.price{font-size:18px;font-weight:700;color:#111}
.post{font-size:13px;color:var(--muted)}
.buy{
  background:var(--accent);
  color:#fff;
  padding:11px 18px;
  border-radius:12px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  display:inline-block;
  transition:.2s;
}
.buy:hover{opacity:.92}
.empty{
  text-align:center;
  padding:45px;
  font-size:18px;
  color:var(--muted);
  background:#fff;
  border-radius:16px;
  box-shadow:var(--shadow);
}