/* assets/css/product.css */
/* Hero Section */
.product-hero {
  background: linear-gradient(135deg, #00d2ff, #0099cc);
  color: #fff;
  padding: 120px 0;
}

/* Filter Sidebar */
.filter-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.filter-card h5 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.filter-card input[type=checkbox] {
  accent-color: #00d2ff;
  width: 1rem;
  height: 1rem;
  opacity: 1 !important;
  visibility: visible !important;
}

.filter-card .form-check-label {
  color: #fff;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-badge {
  display: block;
  width: fit-content;
  margin: 0.5rem 0 0 0.5rem; /* left aligned */
  background: rgba(0, 210, 255, 0.9);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  text-align: left;
}


/* Category badge colors */
.product-badge.equipment {
  background: rgba(255, 0, 0, 0.9);
}

.product-badge.chemicals {
  background: rgba(0, 128, 0, 0.9);
}

.product-badge.accessories {
  background: rgba(0, 0, 255, 0.9);
}

.product-badge.luxury {
  background: rgba(128, 128, 128, 0.9);
}

.product-card-body {
  padding: 1rem;
}

.product-card-body h5 {
  margin: 0 0 0.5rem;
}

.product-card-body p {
  font-size: 0.875rem;
  color: #555;
  height: 3rem;
  overflow: hidden;
}

.product-card-body .price {
  font-weight: 600;
  color: #00d2ff;
}

/* Pagination */
.pagination .page-link {
  color: #00d2ff;
  border: none;
}

.pagination .page-item.active .page-link {
  background: #00d2ff;
  color: #fff;
}

/* Custom input borders */
#searchInput,
#sortSelect {
  border: 2px solid #00d2ff;
  border-radius: .25rem;
}

/* Range slider track styling */
#priceRange {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.5rem;
  background: #e0e0e0;
  border-radius: .25rem;
  outline: none;
}

#priceRange::-webkit-slider-runnable-track {
  background: #e0e0e0;
  height: 0.5rem;
  border-radius: .25rem;
  border: 1px solid #c0c0c0;
}

#priceRange::-moz-range-track {
  background: #e0e0e0;
  height: 0.5rem;
  border-radius: .25rem;
  border: 1px solid #c0c0c0;
}

/* Ensure checkboxes remain visible */
.filter-card .form-check-input {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Image hover zoom within product card */
.product-card img {
  transition: transform 0.3s ease;
}
.product-card:hover img {
  transform: scale(1.1);
}
#priceRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  background: #00d2ff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

#priceRange::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  background: #00d2ff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Responsive */
@media (max-width: 992px) {
  .filter-card {
    position: static;
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 576px) {
  .product-card img {
    height: 150px;
  }
}