.sidebar-control {
  position: fixed;
  left: 0;
  top: 50%;
  background: #000;
  color: #fff;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 10000;
  font-size: 18px;
}
.sidebar-filter.open {
  left: 0;
}
.active-filters-block {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.active-filters-block strong {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}
.active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.active-tag {
  background: #f0f0f0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}
.active-tag i {
  margin-left: 8px;
}
.reset-all {
  color: #000;
  font-weight: bold;
  text-decoration: underline;
}
.filter-block {
  border-bottom: 1px solid #ddd;
}
.category-block {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 20px;
}
.filter-heading {
  font-size: 16px;
  font-weight: bold;
  padding: 12px 0;
}
.cat-item-wrapper{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.category-block .filter-heading {
  cursor: default;
  border-bottom: none;
}
.filter-content {
  padding: 15px 0;
}
a.has-active-child{
  color: #ffb700 !important;
}
.cat-name.active {
  color: #ffb700 !important;
}
.cat-toggle{
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-toggle.rotated > .cat-arrow {
  transform: rotate(90deg);
}
.category-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-list li {
  margin-bottom: 12px;
}
.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000;
  text-decoration: none;
  font-size: 15px;
}
.category-list a:hover {
  color: #ffb700;
}
/* Giữ nguyên style cũ, thêm cho category accordion */
.category-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-list > ul > li {
  margin-bottom: 8px;
}
.category-list li ul {
  display: none;
  padding-left: 20px;
  margin-top: 8px;
}
.category-list li ul.show {
  display: block;
}
.cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 0;
}
.cat-link:hover {
  color: #ffb700;
}
.cat-arrow {
  font-size: 12px;
  transition: transform 0.2s;
}
.cat-link.active .cat-arrow {
  transform: rotate(90deg);
}
.price-slider-container {
  position: relative;
}
.price-slider {
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  position: relative;
  margin: 30px 0;
}
.price-slider::before {
  content: "";
  position: absolute;
  height: 100%;
  background: #ffb700;
  left: 0;
  top: 0;
  border-radius: 3px;
}
.price-slider::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ffb700;
  border-radius: 50%;
  top: -7px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.price-values {
  width: 100%;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-values span {
  width: 45%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.checkbox-list li {
  margin-bottom: 10px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}
.checkbox-list input {
  accent-color: #ffb700;
}
.rating-list li {
  margin-bottom: 12px;
}
.rating-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.rating-list .star {
  color: #ffb700;
  font-size: 18px;
}
.rating-list .and-up {
  margin-left: 5px;
  color: #999;
  font-size: 14px;
}
@media (min-width: 1024px) {
  .sidebar-filter {
    position: static;
    height: auto;
    box-shadow: none;
    padding: 0;
    background: none;
    overflow: visible;
  }
  .sidebar-control {
    display: none;
  }
  .filter-content,
  .category-list {
    display: block;
  }
}
/* MOBILE: max-width <= 900px - Sidebar ẩn, chỉ hiện khi ấn nút */
@media (max-width: 900px) {
  .sidebar-filter {
    position: fixed;
    left: -100%; /* Ẩn hoàn toàn bên trái */
    top: 0;
    width: 100%; /* Chiều rộng sidebar mobile */ /* Không vượt quá 90% màn hình */
    height: 100vh;
    background: #fff;
    transition: left 0.35s ease;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
  }

  .sidebar-control {
    display: block;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #ffb700;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    z-index: 999999;
    font-size: 18px;
    border-radius: 0 8px 8px 0;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
  }

  .sidebar-filter.open {
    left: 0; /* Hiện sidebar khi có class .open */
  }

  /* Optional: Thêm overlay mờ khi sidebar mở */
}

/* Sidebar phải */
/* Sidebar phải - Equipo style */
.sidebar-two {
  background: #fff;
  z-index: 999;
  transition: right 0.35s ease;
  height: 100%;
}
.sidebar-two .latest-pr-item {
  min-height: unset !important;
}
.sidebar-two .woocommerce .star-rating {
  float: unset !important;
}
.sidebar-two .control-sidebar {
  position: absolute;
  left: -50px;
  top: 20px;
  width: 50px;
  height: 50px;
  background: #ff6b00;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar-two .control-sidebar.active {
  border-radius: 0 8px 8px 0;
}

/* Các block bên trong */
.block-sidebar {
  padding: 25px;
  margin-bottom: 20px;
}

.block-sidebar:last-child {
  border-bottom: none;
}
.guarantee-block {
  background-color: #fdf5e0;
  border-radius: 3px;
}
.guarantee-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #ddd;
}

.guarantee-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 15px;
}

.guarantee-list .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.guarantee-list .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-block .heading {
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.payment-logos img {
  height: 40px;
  margin: 8px;
}

.security-block {
  background-color: #e0f1fb;
  border-radius: 3px;
  text-align: center;
}
.security-block .security-img {
  max-width: 100%;
  margin-bottom: 15px;
}

.security-block .heading {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
  color: #66bbf2;
}

.security-block .discover-more {
  display: block;
  margin-top: 15px;
  border: none;
  outline: none;
  background-color: #fff;
  color: #66bbf2;
  font-weight: bold;
  text-decoration: none;
  padding: 10px;
}
.special-pr {
  padding: 25px 0;
}
.special-pr .product-item {
  border: 1px solid #ddd;
}
.special-pr .product-item .star-rating {
  float: unset !important;
}
.special-pr .special-title {
  margin-bottom: 20px;
}
/* Desktop: luôn hiện sidebar */
@media (min-width: 1200px) {
  .sidebar-two {
    right: 0; /* Luôn hiện trên desktop */
  }
  .sidebar-two .control-sidebar {
    display: none; /* Ẩn nút kéo trên desktop */
  }
}

/* Tablet & Mobile: ẩn sidebar, chỉ hiện nút kéo */
