body{
  font-family: 'Inter', Arial, sans-serif;
  margin:0;
  background:#f5f7f6;
}

.container{
  display:flex;
  gap:24px;
  padding:24px;
  max-width:1400px;
  margin:auto;
}

/* ================= LEFT FILTER ================= */

.filter{
  width:260px;
  background:#fff;
  border-radius:18px;
  padding:14px;
  box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

.filter h3{
  margin:8px 8px 14px;
  font-size:18px;
}

.filter-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  color:#222;
  margin-bottom:8px;
  transition:all .2s ease;
}

.filter-item img{
  width:46px;
  height:46px;
  border-radius:50%;
  background:#f1f1f1;
  object-fit:cover;
}

.filter-item:hover{
  background:#f0faf4;
}

.filter-item.active{
  background:#39b36b;
  color:#fff;
}

.filter-item.active img{
  background:#fff;
}

/* ================= RIGHT PRODUCTS ================= */

.products{
  flex:1;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(360px,1fr));
  gap:22px;
}

/* ================= PRODUCT CARD ================= */

.product-card{
  background:#fff;
  border-radius:18px;
  padding:18px;
  box-shadow:0 8px 22px rgba(0,0,0,0.08);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

/* PRODUCT LINK FIX */
.product-card-link{
  color:#000;
  text-decoration:none;
}
.product-card-link *{
  color:inherit;
  text-decoration:none;
}

.product-card-link:hover{
  color:#000;
  text-decoration:none;
}

/* IMAGE + TITLE ROW STYLE */
.product-card img{
  width:120px;
  height:120px;
  object-fit:contain;
  float:left;
  margin-right:16px;
}

/* PRODUCT NAME */
.product-card h3{
  font-size:18px;
  margin:0;
  font-weight:600;
  line-height:1.3;
}

/* QUANTITY */
.product-card small{
  display:block;
  margin:6px 0;
  font-size:14px;
  color:#666;
}

/* PRICE ROW */
.product-card div{
  margin-top:8px;
}

.price{
  font-weight:700;
  font-size:20px;
  color:#111;
  margin-right:10px;
}

.mrp{
  text-decoration:line-through;
  color:#999;
  font-size:15px;
}

/* STOCK */
.stock{
  color:#2ca45c;
  font-size:14px;
  margin-top:6px;
  font-weight:500;
}

/* ADD BUTTON */
.add-btn{
  align-self:flex-end;
  background:#39b36b;
  color:#fff;
  border:none;
  padding:8px 18px;
  border-radius:10px;
  cursor:pointer;
  font-size:15px;
  font-weight:500;
  transition:.2s;
}

.add-btn:hover{
  background:#2fa15e;
}

/* CLEAR FLOAT */
.product-card::after{
  content:"";
  display:block;
  clear:both;
}

/* ================= RESPONSIVE ================= */

@media(max-width:900px){
  .container{
    flex-direction:column;
  }
  .filter{
    width:100%;
    display:flex;
    overflow-x:auto;
    gap:10px;
  }
  .filter-item{
    min-width:180px;
  }
}
