/* Price Slider Customization (Simple CSS replication) */
.price-slider-container {
  padding: 10px 0;
}

.price-slider-track {
  width: 100%;
  height: 5px;
  background: #dbe5e9;
  border-radius: 100px;
  position: relative;
}

.price-slider-active-track {
  height: 5px;
  background: #00a5f1;
  border-radius: 100px;
  position: absolute;
  left: 0;
  width: 50%; /* Dynamic */
}

.price-slider-thumb {
  width: 14px;
  height: 14px;
  background: #00a5f1;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  left: 50%; /* Dynamic */
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 10px;
  color: #303030;
  margin-top: 10px;
}

/* Active Filters Row */
.active-filters-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
  margin-bottom: 20px;
  padding: 0 15px;
}

#active-filter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Clear All Button Styling */
.clear-all-btn {
  background: #303030;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  width: auto;
  transition: background 0.2s;
}

.clear-all-btn:hover {
  background: #000;
}

/* Badge override for filter chips */
#active-filter-badges .badge {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 15px !important;
  background-color: #eaeef0 !important;
  border-radius: 50px !important;
  color: #333 !important;
}

#active-filter-badges .badge span {
  white-space: nowrap;
}

/* Product Card overrides for consistency if needed */
.product-card-price {
  font-size: 20px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  color: #303030;
}

.sort-button-wrapper {
  position: relative;
  display: inline-block;
}

.sort-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 25px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
}

.sort-button svg {
  width: 16px;
  height: 16px;
}

.sort-dropdown {
  display: none !important;
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  border: 1px solid #e7eef1;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 165, 241, 0.15);
  z-index: 1000;
  min-width: 200px;
  padding: 8px 0;
  display: none;
}

.sort-dropdown.show {
  display: block !important;
  position: absolute;
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 170px;
  padding: 25px 0;
}

.sort-option {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sort-option:hover {
  background: #e6f8ff;
  color: #303030;
  text-decoration: none;
}

.sort-option:active {
  background: #e6f8ff;
}

/* Pagination Styling */
.brand-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
  padding: 0;
}

.brand-pagination .page-item {
  list-style: none;
}

.brand-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e7eef1;
  background: #ffffff;
  color: #303030;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0;
}

.brand-pagination .page-link:hover {
  background: #f0f9ff;
  color: #00a5f1;
  border-color: #00a5f1;
  text-decoration: none;
}

.brand-pagination .page-item.active .page-link {
  background: #00a5f1;
  color: #ffffff;
  border-color: #00a5f1;
  box-shadow: 0 4px 10px rgba(0, 165, 241, 0.3);
}

.brand-pagination .page-item.disabled .page-link {
  color: #ccc;
  pointer-events: none;
  background: #f9f9f9;
  border-color: #eee;
}

.brand-pagination .page-link:focus {
  outline: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .pagination-container {
    width: 90%;
    overflow-x: scroll;
  }

  .brand-pagination {
    width: 80%;
  }

  .brand-pagination .page-link {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}
