/* Wrapper Layout */
.woo-advanced-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

/* Sticky Filters (Desktop) */
.woo-filters-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
}

/* Accordion */
.filter-section {
  margin-bottom: 10px;
}
.filter-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}
.filter-content {
  display: none;
  padding: 10px;
  height: 150px;
  overflow: scroll;
}
.filter-title.open {
  background: #000;
  color: #fff;
}

/* Filter counts */
.woo-filters-sidebar label {
  align-items: center;
  margin: 5px 0;
  font-size: 14px;
}
.woo-filters-sidebar .count {
  color: #888;
  font-size: 13px;
}

/* Product Grid */
#products-section {
  position: relative;
}
#products-wrap {
  
  grid-template-columns: repeat(4, 1fr); /* 4 per row desktop */
  gap: 20px;
  min-height: 200px;
}
@media (max-width: 992px) {
  #products-wrap {
    grid-template-columns: repeat(2, 1fr); /* 2 per row tablet */
  }
}
@media (max-width: 576px) {
  #products-wrap {
    grid-template-columns: repeat(1, 1fr); /* 1 per row mobile */
  }
}

/* Preloader */
#products-preloader {
  display: none;
  position: absolute;
    bottom: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}
#products-preloader .spinner {
  border: 4px solid #eee;
  border-top: 4px solid #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}
#products-preloader span {
  font-size: 14px;
  color: #555;
}

/* No Products Message */
.no-products {
  grid-column: 1/-1;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  padding: 50px 0;
  color: #666;
}
.tax-product_cat #site-main-content{
  display: none;
}

/* Mobile Drawer */
@media (max-width: 768px) {
  .woo-advanced-wrapper {
    display: block;
  }
  .woo-filters-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    transition: left 0.3s ease-in-out;
    z-index: 9999;
    border-radius: 0;
  }
  .woo-filters-sidebar.active {
    left: 0;
  }
  #filter-toggle {
    
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
}

