.wc-custom-filters-widget {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wc-custom-filters-widget.no-border {
  border: none;
  box-shadow: none;
}

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

.filters-header h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
  color: #333;
}

.clear-all-filters, .wc-reset-filter-btn {
  background: none;
  border: none;
  color: #ff6b35;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
}

.clear-all-filters:hover, .wc-reset-filter-btn:hover {
  color: #e55a2b;
}

.filter-group {
  margin-bottom: 25px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
}

.filter-group.no-border {
  border: none;
}

.filter-title {
  background: #f8f9fa;
  padding: 15px 20px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.filter-group.no-border .filter-title {
  border-bottom: none;
}

.filter-title-static {
  background: #f8f9fa;
  padding: 15px 20px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
}

.filter-toggle {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.filter-options {
  padding: 20px;
  overflow-y: auto;
  display: none;
}

.filter-group.expanded .filter-options {
  display: block;
}

.filter-option {
  margin-bottom: 12px;
}

.filter-option label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  position: relative;
  padding-left: 0;
}

.filter-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 3px;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.filter-option input:checked ~ .checkmark {
  background-color: #2c5aa0;
  border-color: #2c5aa0;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-option input:checked ~ .checkmark:after {
  display: block;
}

.subcategories {
  margin-left: 30px;
  margin-top: 8px;
  display: block !important; /* Always show subcategories */
}

.sub-option {
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}

.filter-actions {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.apply-filters, .wc-apply-filter-btn {
  background: #2c5aa0;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.apply-filters:hover, .wc-apply-filter-btn:hover {
  background: #1e3d6f;
}

.wc-filters-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2c5aa0;
  border-radius: 50%;
  animation: wc-filter-spin 1s linear infinite;
}

@keyframes wc-filter-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Oxygen Builder Specific Styles */
.wc-filter-standalone {
  margin-bottom: 20px;
}

.wc-filter-standalone .filter-group {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .filters-header {
      flex-direction: column;
      gap: 10px;
      text-align: center;
  }

  .wc-custom-filters-widget {
      padding: 15px;
  }
}

/* Simple Search Filter Styles */
.wc-product-search-filter {
  width: 100%;
  max-width: 400px;
}

.wc-search-form {
  width: 100%;
}

.wc-search-input-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.3s ease;
  position: relative;
}

.wc-search-input-wrapper:focus-within {
  border-color: #2c5aa0;
}

.wc-search-input {
  border: 2px solid #ddd;
  border-radius: 3px;
  margin-right: 10px;
  flex: 1;
  padding: 12px 40px 12px 16px; /* Add right padding for clear button */
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  -webkit-appearance: none; /* Remove default search input styling */
  -moz-appearance: none;
  appearance: none;
}

.wc-search-input::-webkit-search-cancel-button,
.wc-search-input::-webkit-search-decoration {
  display: none; /* Hide default clear button */
}

.wc-search-input::placeholder {
  color: #999;
}

.wc-search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.wc-search-clear:hover {
  color: #333;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .wc-product-search-filter {
      max-width: 100%;
  }

  .wc-search-input {
      font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Active Filters Status Display */
.wc-active-filters-status {
    background: #f7f7f7;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.wc-search-status,
.wc-filter-status {
    margin-bottom: 10px;
}

.wc-search-status:last-child,
.wc-filter-status:last-child {
    margin-bottom: 0;
}

.status-label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.search-term {
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    color: #2c5aa0;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

.filter-tag {
    display: inline-block;
    background: #fff;
    padding: 4px 10px;
    margin: 0 5px 5px 0;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.remove-search,
.remove-filter {
    display: inline-block;
    margin-left: 8px;
    color: #999;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
}

.remove-search:hover,
.remove-filter:hover {
    color: #dc3232;
}

.clear-all-status {
    display: inline-block;
    margin-left: 15px;
    color: #dc3232;
    text-decoration: underline;
    font-size: 14px;
}

.clear-all-status:hover {
    text-decoration: none;
}

/* No results message */
.woocommerce-info.no-products-found {
    background: #f7f7f7;
    border-color: #e0e0e0;
    color: #333;
}

/* Product Image Slider Styles */
.wc-product-image-slider {
    width: 100%;
    position: relative;
}

/* Ensure thumbnails are visible */
.wc-product-thumbs-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Notice styling */
.wc-product-slider-notice {
    padding: 20px;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    font-style: italic;
}

/* Inherit Oxygen's unslider styles */
.wc-product-image-slider.lighter-arrows .unslider-arrow {
    background-color: rgba(255,255,255,0.2);
}

/* Lightbox link */
.wc-slider-lightbox-link {
    cursor: zoom-in;
    display: block;
}

/* Additional thumbnail navigation styles */
.wc-product-thumbs-nav {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.wc-product-thumbs-nav::-webkit-scrollbar {
    height: 6px;
}

.wc-product-thumbs-nav::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.wc-product-thumbs-nav::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.wc-product-thumbs-nav::-webkit-scrollbar-thumb:hover {
    background: #999;
}