@import url("general.css");

/* siderbar */
.filter-sidebar {
  background-color: #f5f3f1;
  padding: 14px;
  border-radius: 20px;
}
.filter-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}
.filter-section {
  margin-bottom: 14px;
  border-radius: 16px;
  background: #ffffff;
  padding: 20px;
}
.filter-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6e6e6;
}
.form-check {
  margin-bottom: 8px;
}

.form-check-label {
  font-size: 14px;
  color: #333333;
}

/* start */
.price-range-slider {
  position: relative;
  height: 40px;
  margin-bottom: 20px;
}

.slider-track {
  position: absolute;
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.slider-range {
  position: absolute;
  height: 4px;
  background: linear-gradient(90deg, #e84e1b 0%, #ff2424 50%, #e84e1b 100%);
  border-radius: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.slider-range::before,
.slider-range::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e84e1b 0%, #ff2424 50%, #e84e1b 100%);
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  top: 50%;
  transform: translateY(-50%);
}

.slider-range::before {
  left: -9px;
}

.slider-range::after {
  right: -9px;
}

.range-input {
  position: relative;
  width: 100%;
  height: 40px;
}

.range-input input {
  position: absolute;
  width: 100%;
  height: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.range-input input::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: pointer;
  border: none;
}

.range-input input::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
  -moz-appearance: none;
  cursor: pointer;
  border: none;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
}

.price-labels span {
  font-weight: 400;
}
/* end */

/* .color-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.color-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid #ddd;
}
.color-circle.american-stive {
  background-color: #c0c0c0;
}
.color-circle.brown-sugar {
  background-color: #8b6f47;
}
.color-circle.gray {
  background-color: #808080;
}
.color-circle.green {
  background-color: #28a745;
}
.color-circle.jet {
  background-color: #343a40;
}
.color-circle.marigold {
  background-color: #ffa500;
}
.color-circle.queen-blue {
  background-color: #4169a8;
}
.badge {
  color: #7f7f7f;
  border-radius: 80px;
  padding: 2px 8px;
  font-size: 11px;
  margin-left: auto;
  border: 1px solid #e6e6e6;
} */
.color-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 10px;
  transition: 0.3s;
  position: relative;
}

/* Hide default radio */
.color-radio {
  display: none;
}

/* Color circle */
.color-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid #ddd;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

/* Tick mark */
.color-circle::after {
  content: "✓";
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: none;
}

/* ✅ Show tick when selected (radio checked) */
.color-radio:checked + .color-circle::after {
  display: block;
}

/* Badge styling */
.badge {
  color: #7f7f7f;
  border-radius: 80px;
  padding: 2px 8px;
  font-size: 11px;
  margin-left: auto;
  border: 1px solid #e6e6e6;
  transition: 0.3s;
}

/* ✅ Active badge color when selected */
.color-radio:checked ~ .badge {
  background: radial-gradient(
    90.35% 90.35% at 23.94% 5.43%,
    #e84e1b 0%,
    #ff2424 47.6%,
    #e84e1b 100%
  );
  color: #fff;
  border: none;
}

/* Named colors */
.color-circle.american-stive {
  background-color: #c0c0c0;
}
.color-circle.brown-sugar {
  background-color: #8b6f47;
}
.color-circle.gray {
  background-color: #808080;
}
.color-circle.green {
  background-color: #28a745;
}
.color-circle.jet {
  background-color: #343a40;
}
.color-circle.marigold {
  background-color: #ffa500;
}
.color-circle.queen-blue {
  background-color: #4169a8;
}

/* filter */
/* Mobile Filter Overlay */
.filter-button {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.filter-overlay.active {
  display: block;
}

.filter-sidebar-mobile {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 350px;
  height: 100%;
  background: white;
  z-index: 1000;
  overflow-y: auto;
  transition: left 0.3s ease;
  border-radius: 20px;
}

.filter-sidebar-mobile.active {
  left: 0;
}

.filter-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  display: none;
}

/* Desktop: Show sidebar normally, hide mobile elements */
@media (min-width: 992px) {
  .filter-button {
    display: none;
  }

  .filter-sidebar-desktop {
    display: block !important;
  }
}

/* Mobile/Tablet: Hide desktop sidebar, show button */
@media (max-width: 991px) {
  .filter-sidebar-desktop {
    display: none !important;
  }

  .product-grid-row > div[class*="col-lg-3"]:first-child {
    display: none;
  }

  /* 2 cards per row on mobile and tablet */
  .product-grid-row > div[itemscope] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Extra small phones - stack if needed */
@media (max-width: 400px) {
  .product-name a {
    font-size: 12px;
  }

  .product-image {
    height: 150px;
  }
}
