/* ── Dual-range price slider ── */
.price-range-info {
  margin-bottom: 5px;
}

.price-range-info span {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: black;
  /* background: #e6f8ff; */
  border-radius: 20px;
  /* padding: 4px 12px; */
  display: inline-block;
}

.dual-range-wrapper {
  position: relative;
  height: 30px;
  margin: 4px 0 8px;
  cursor: pointer;
}

.dual-range-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  height: 5px;
  background: #dbe5e9;
  border-radius: 100px;
  pointer-events: none;
  cursor: pointer;
}

.dual-range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: #00a5f1;
  border-radius: 100px;
  cursor: pointer;
}

.dual-range-input {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  cursor: pointer;
}

.dual-range-input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #00a5f1;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 4px rgba(0,165,241,0.35);
}

.dual-range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #00a5f1;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 4px rgba(0,165,241,0.35);
}

.dual-range-input::-webkit-slider-runnable-track {
  background: transparent;
}

.dual-range-input::-moz-range-track {
  background: transparent;
}

#price-min { z-index: 3; }
#price-max { z-index: 4; }

/* ── Legacy single-range (kept for reference, not used) ── */
/* 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.
   Inline layout: Clear All sits to the left of a single scrollable badge
   strip. The badge container still horizontally scrolls when it overflows
   (flex-wrap: nowrap + overflow-x: auto) so the strip stays one row tall
   and doesn't push the cycle grid down. `min-width: 0` is what lets the
   flex child shrink past its content width and trigger overflow — without
   it the badges would stretch the row and shove Clear All off-screen. */
.active-filters-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 20px;
  padding: 0 15px;
}

#active-filter-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  /* Hide the visible scrollbar — horizontal scroll still works via touch
     swipe, drag, and shift+wheel. The chevron-bar would otherwise sit
     under the badges and look heavy; this keeps the strip clean. */
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* legacy Edge / IE */
  -webkit-overflow-scrolling: touch;
}

#active-filter-badges::-webkit-scrollbar {
  /* Chromium / Safari — must be `display: none` rather than `width: 0` so
     the scrollbar gutter doesn't reserve any space. */
  display: none;
}

#active-filter-badges > * {
  flex-shrink: 0;
}

/* 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;
  }
}
