/* Filters & Search */
.filters-section {
  margin: 3rem 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.filters-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.filters-controls {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-input,
.sort-select {
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 2px solid #ddd;
  font-size: 0.95rem;
  background: white;
  color: #333;
}

.search-input {
  min-width: 250px;
}

.sort-select {
  min-width: 180px;
  cursor: pointer;
}

/* Products Grid */
.products-section {
  margin: 2rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.product-card {
  background: white;
  border: 2px solid #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.product-price {
  margin-bottom: 1rem;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
}

.discounted-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #dc143c;
}

.original-price {
  text-decoration: line-through;
  color: #555;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.product-description {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.product-rating {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.star-rating {
  color: #f39c12;
  font-size: 1rem;
}

.rating-text {
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
}

.product-tags {
  margin: 1rem 0;
}

.tag {
  display: inline-block;
  background: #ecf0f1;
  color: #2c3e50;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-actions .btn {
  flex: 1;
  min-width: 100px;
  padding: 0.75rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .product-image {
    height: 200px;
  }

  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-controls {
    justify-content: center;
  }
}
