.products-page {
  padding: 80px 40px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
  min-height: 100vh;
  box-sizing: border-box;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background: white;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  gap: 20px;
}

.filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.filters select,
.filter-group {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.filters select:hover,
.filters select:focus {
  border-color: #b30000;
  box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.1);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  padding: 0;
  background: transparent;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
  margin: 0;
  cursor: pointer;
}

.filter-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #b30000;
}

.filter-group input[type="range"] {
  width: 150px;
  cursor: pointer;
  accent-color: #b30000;
}

#priceDisplay {
  font-weight: 500;
  color: #b30000;
  min-width: 120px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(179, 0, 0, 0.2);
}

.product-image {
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-info {
  padding: 18px;
  text-align: center;
}

.product-info h3 {
  font-size: 1.05rem;
  color: #333;
  margin: 10px 0 8px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 32px;
}

.category {
  color: #b30000;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price {
  color: #b30000;
  font-weight: 700;
  margin: 10px 0;
  font-size: 1.2rem;
}

.description {
  color: #666;
  font-size: 0.85rem;
  margin: 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.add-to-cart {
  background: linear-gradient(135deg, #b30000 0%, #8b0000 100%);
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  width: 100%;
  margin-top: 10px;
}

.add-to-cart:hover {
  background: linear-gradient(135deg, #ff4d4d 0%, #b30000 100%);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(179, 0, 0, 0.3);
}

.add-to-cart:active {
  transform: scale(0.98);
}

/* 📱 Responsive Fixes */
@media (max-width: 992px) {
  .products-page {
    padding: 70px 30px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .filters {
    justify-content: center;
    gap: 10px;
  }

  .filters select {
    flex: 1;
    min-width: 120px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .product-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .products-page {
    padding: 70px 20px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    gap: 12px;
  }

  .filters {
    flex-direction: column;
    gap: 10px;
  }

  .filters select,
  .filter-group {
    width: 100%;
  }

  .filter-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  #priceDisplay {
    min-width: 100%;
    text-align: center;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
  }

  .product-image {
    height: 160px;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 0.95rem;
    margin: 8px 0 5px;
  }

  .price {
    font-size: 1rem;
  }

  .add-to-cart {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .products-page {
    padding: 60px 15px;
  }

  .filter-bar {
    padding: 12px;
  }

  .filters {
    gap: 8px;
  }

  .filters select {
    font-size: 0.9rem;
    padding: 8px 10px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .product-image {
    height: 140px;
  }

  .product-info h3 {
    font-size: 0.9rem;
  }

  .category {
    font-size: 0.75rem;
  }

  .price {
    font-size: 0.95rem;
  }
}
