/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Body */
body {
  background: #f5f7fb;
  padding: 20px;
}

/* Title */
h1 {
  margin-bottom: 20px;
  color: #1f2937;
}

/* Controls (input + selects) */
input,
select {
  padding: 10px 12px;
  margin-right: 10px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s;
}

input:focus,
select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
}

/* Product Container Grid */
#productContainer {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
/* CARD */
.card {
  background: #fff;
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  overflow: hidden;
  position: relative;
}

/* Hover effect */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Image box */
.img-box {
  overflow: hidden;
  border-radius: 12px;
}

/* Image */
.img-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: 0.4s ease;
}

/* Image zoom */
.card:hover img {
  transform: scale(1.1);
}

/* TITLE */
.title {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0 6px;
  color: #111827;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* hover color */
.card:hover .title {
  color: #2563eb;
}

/* PRICE */
.price {
  font-size: 17px;
  font-weight: 700;
  color: #16a34a;
}

/* ₹ symbol */
.price::before {
  content: "$ ";
  color: #6b7280;
  font-weight: 500;
}

/* subtle top border gradient */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}
/* Responsive */
@media (max-width: 768px) {
  input,
  select {
    width: 100%;
    margin-right: 0;
  }

  h1 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  #productContainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .img-box img {
    height: 130px;
  }

  body {
    padding: 10px;
  }

  .card {
    padding: 10px;
  }

  .title {
    font-size: 14px;
  }

  .price {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  #productContainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  #productContainer {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Laptop */
@media (min-width: 769px) and (max-width: 1200px) {
  #productContainer {
    grid-template-columns: repeat(4, 1fr);
  }
}

/*  Large screens */
@media (min-width: 1201px) {
  #productContainer {
    grid-template-columns: repeat(5, 1fr);
  }
}
