body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

.title {
  text-align: center;
  font-size: 52px;
  margin: 45px 0 20px;
  color: #111;
  letter-spacing: 2px;
}

/* FILTER */
.filter-bar {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto 40px;
  background: white;
  padding: 22px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.filter-bar input,
.filter-bar select {
  border: 1px solid #e5e5e5;
  padding: 15px;
  border-radius: 14px;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
  background: #fafafa;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: orange;
  background: white;
}

.filter-bar button {
  border: none;
  background: #111;
  color: white;
  border-radius: 14px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.filter-bar button:hover {
  background: orange;
  color: black;
}

/* PRODUCTS */

.products-container {
  width: 92%;
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0 70px;
}

.product-card {
  background: white;
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.35s;
  border: 1px solid #eee;
  position: relative;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.image-box {
  position: relative;
  overflow: hidden;
  background: #fafafa;
}

.product-card img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  padding: 12px;
  transition: 0.4s;
}

.product-card:hover img {
  transform: scale(1.04);
}

.discount-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: crimson;
  color: white;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  z-index: 2;
}

.stock-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
}

.stock-badge.out {
  background: crimson;
  color: white;
}

.stock-badge.low {
  background: orange;
  color: black;
}

.product-name {
  font-size: 20px;
  font-weight: bold;
  padding: 18px 18px 8px;
  color: #111;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: 58px;
}

.price-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  flex-wrap: wrap;
}

.old-price {
  color: #999;
  text-decoration: line-through;
  font-size: 14px;
}

.product-price {
  color: #111;
  font-size: 22px;
  font-weight: bold;
}

.product-category {
  color: #777;
  padding: 12px 18px 20px;
  font-size: 14px;
}

.no-products {
  grid-column: 1 / -1;
  background: white;
  padding: 60px 20px;
  border-radius: 26px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #666;
}

/* MOBILE */

@media (max-width: 700px) {
  .title {
    font-size: 34px;
    margin: 28px 0 18px;
  }

  .products-container {
    width: 94%;
    gap: 18px;
    padding-bottom: 50px;

    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    border-radius: 24px;
    overflow: hidden;
    border: none;
    background: white;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  }

  .product-card:hover {
    transform: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  }

  .image-box {
    height: 260px;
    background: #f7f7f7;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-card img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    padding: 8px;

    transform: none !important;
  }

  .product-card:hover img {
    transform: none;
  }

  .discount-badge,
  .stock-badge {
    top: 10px;
    font-size: 10px;
    padding: 6px 10px;
  }

  .product-name {
    font-size: 15px;
    min-height: 42px;
    padding: 14px 12px 8px;
  }

  .price-box {
    padding: 0 12px;
  }

  .product-price {
    font-size: 18px;
  }

  .old-price {
    font-size: 12px;
  }

  .product-category {
    padding: 8px 12px 14px;
    font-size: 12px;
  }

  .filter-bar {
    padding: 16px;
    border-radius: 22px;
  }

  .filter-bar input,
  .filter-bar select {
    padding: 14px;
    font-size: 14px;
    border-radius: 14px;
  }

  .filter-bar button {
    padding: 14px;
    border-radius: 14px;
  }
}
