.csf-filter-wrap {
    /*background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;*/
    margin-bottom: 30px;
    max-width: 400px;
/*    box-shadow: 0 2px 6px rgba(0,0,0,0.05);*/
}

.csf-filter-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.csf-filter-item label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.csf-select {
    width: 100%;
    padding: 8px 12px;
   /* border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;*/
    font-size: 14px;
    color: #333;
    transition: 0.2s;
}

.csf-select:hover {
    background: #fff;
}

.csf-select:focus {
    outline: none;
    border-color: #007cba;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.1);
}
.woocommerce-pagination{ margin-bottom:30px }
.woocommerce-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.woocommerce-pagination li {
    display: inline-block;
}

.woocommerce-pagination a,
.woocommerce-pagination span.current {
    display: block;
    padding: 6px 12px;
    border: 1px solid #ddd;
 /*   border-radius: 4px;*/
    text-decoration: none;
   /* color: #007cba;
    background: #fff;*/
    transition: 0.2s;
}

.woocommerce-pagination a:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.woocommerce-pagination span.current {
    background: #007cba;
    color: #fff;
    /*border-color: #007cba;*/
    pointer-events: none;
}

/*ul.products.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}*/

.wilcox-custom-search li:nth-child(3n+1) {clear: both !important;}
.wilcox-custom-search li, .wilcox-custom-search li.last {width: 30.75%; margin: 0px 3.8% 2.992em 0px !important;}
.wilcox-custom-search li:nth-child(3), .wilcox-custom-search li:nth-child(6), .wilcox-custom-search li:nth-child(9) {margin-right: 0px !important;}
.wilcox-custom-search li.first {clear: none !important;}

@media screen and (max-width: 980px) {
.wilcox-custom-search li:nth-child(3n+1) {clear: none !important;}
.wilcox-custom-search li:nth-child(3), .wilcox-custom-search li:nth-child(6), .wilcox-custom-search li:nth-child(9) {margin-right: 3.8% !important;}
.wilcox-custom-search li:nth-child(2n+1) {clear: both !important;}
.wilcox-custom-search li:nth-child(2), .wilcox-custom-search li:nth-child(4), .wilcox-custom-search li:nth-child(6) {margin-right: 0px !important;}
}

@media screen and (max-width: 480px) {
.wilcox-custom-search li:nth-child(3n+1), .wilcox-custom-search li:nth-child(2n+1) {clear: none !important;}
.wilcox-custom-search li:nth-child(3), .wilcox-custom-search li:nth-child(6), .wilcox-custom-search li:nth-child(9), .wilcox-custom-search li:nth-child(2), .wilcox-custom-search li:nth-child(4), .wilcox-custom-search li:nth-child(6) {margin-right: 0px !important;}
}


.filter-sidebar {
  width: 100%;
  max-width: 300px;
  background: #fff;
  /*border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);*/
  overflow: hidden;
}

.filter-sidebar h4{ font-size:16px !important; font-weight:600 }

.filter-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-header h3 {
  font-size: 17px;
  margin: 0;
  font-weight: 600;
  color: #222;
}

.reset-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #555;
  font-size: 13px;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  background: #ff5722;
  color: #fff;
  border-color: #ff5722;
}

.filter-section {
  border-bottom: 1px solid #eaeaea;
  padding: 14px 2px;
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.3s ease;
}

.filter-title:hover {
  color: #ff5722;
}

.arrow {
  transition: transform 0.3s ease;
  font-size: 16px;
  color: #555;
}

.filter-section.active .arrow {
  transform: rotate(180deg);
}

.filter-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 0;
  padding-left: 2px;
}

.filter-section.active .filter-options {
/*  max-height: 300px; /* Adjust as needed */
   max-height: 1600px; /* Adjust as needed */
  margin-top: 10px;
}

.filter-options label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.filter-options input[type="checkbox"],
.filter-options input[type="radio"] {
  margin-right: 8px;
  accent-color: #ff5722;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .filter-sidebar {
    max-width: 100%;
    border-radius: 0;
  }

  .filter-header h3 {
    font-size: 16px;
  }

  .filter-title {
    font-size: 15px;
  }

  .filter-options label {
    font-size: 13px;
  }
}

.csf-search-field-wrapper {
    position: relative;
    width: 100%;
    margin-top: 5px;
}

.csf-search-field {
    width: 100%;
    padding: 9px 40px 9px 12px !important;
    border: 1px solid #ccc;
    font-size: 15px;
}

.csf-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23999' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 20l-5.6-5.6a7 7 0 10-1.4 1.4L20 21l1-1zM10 16a6 6 0 110-12 6 6 0 010 12z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: 0.7;
}

.csf-search-icon:hover {
    opacity: 1;
}

.csf-search-clear {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    cursor: pointer;
    color: #aaa;
    display: none;
}

.csf-search-clear:hover {
    color: #000;
}

/* Full page overlay */
.csf-global-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.85);
  z-index: 99999; /* very high to appear above everything */
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

/* spinner box (subtle circle) */
.csf-overlay-spinner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 5px solid rgba(0,0,0,0.08);
  border-top-color: rgba(34,34,34,0.7);
  animation: csf-spin 1s linear infinite;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* optional small text under spinner */
.csf-overlay-text {
  margin-top: 12px;
  color: #333;
  font-size: 14px;
  text-align: center;
}

/* vertical stack */
.csf-overlay-inner {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

/* spin animation */
@keyframes csf-spin {
  to { transform: rotate(360deg); }
}

/* ensure overlay doesn't inherit container widths on small devices */
html, body { height: auto; }

/* Simple styling for the category select */
.csf-category-filter { /*margin-bottom: 1rem;*/ }
.csf-category-filter .filter-title { display:block; font-weight:600; margin-bottom:6px; }
.csf-select {
    width:100%;
    max-width:100%;
    padding:8px 10px;
    border:1px solid #ddd;
    border-radius:4px;
    background:#fff;
    font-size:14px;
}
