/* ========================================
   UNIFIED FILTERS STYLES
   ======================================== */

/* ========================================
   1. BASE STYLES & SHARED COMPONENTS
   ======================================== */
/* Common Variables */
:root {
  --filter-primary-color: black;
  --filter-primary-hover: black;
  --filter-border-color: #d1d5db;
  --filter-border-hover: black;
  --filter-bg-color: #ffffff;
  --filter-bg-hover: #f3f4f6;
  --filter-text-color: black;
  --filter-text-muted: black;
  --filter-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --filter-radius: 6px;
  --filter-transition: all 0.2s ease;
}

/* Loading State */
#gridLayout {
  transition: opacity 0.3s ease;
}

#gridLayout.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* No Products Message */
.no-products {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
  grid-column: 1 / -1;
}

/* Range Slider - Shared Component */
.range-slider {
  position: relative;
  width: 100%;
  height: 6px;
  margin-bottom: 16px;
}

.range-slider__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  transform: translateY(-50%);
}

.range-slider__range {
  position: absolute;
  top: 50%;
  height: 6px;
  background: var(--filter-primary-color);
  border-radius: 3px;
  transform: translateY(-50%);
}

.range-slider__thumb {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--filter-primary-color);
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.range-slider__thumb--left {
  z-index: 3;
}

.range-slider__thumb--right {
  z-index: 3;
}

.range-slider__input {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 6px;
  background: transparent;
  outline: none;
  border: none;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.range-slider__input:focus {
  outline: none;
  box-shadow: none;
}

.range-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 2;
}

/* iOS specific fix for white squares */
.range-slider__input::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
}

.range-slider__input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 2;
}

.range-slider__input::-moz-range-track {
  background: transparent;
  border: none;
}

.range-slider__input--left {
  z-index: 2;
}

.range-slider__input--right {
  z-index: 1;
}

/* ========================================
   1.5. MOBILE APPLIED FILTERS
   ======================================== */

.mobile-applied-filters {
  display: none;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid #eee;
}

@media (max-width: 1149px) {
  .mobile-applied-filters {
    display: block;
  }
}

.applied-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.applied-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
}

.applied-filter-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

.applied-filter-label {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.applied-filter-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #111;
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
  font-size: 20px;
  padding-left: 10px;
  padding-right: 5px;
}

.applied-filter-remove:hover {
  color: #333;
}

.applied-filter-remove .icon {
  font-size: 12px;
}

.applied-filters-clear-all {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #dc2626;
  color: #dc2626;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.applied-filters-clear-all:hover {
  background: #dc2626;
  color: #fff;
}

/* ========================================
   2. DESKTOP FILTERS
   ======================================== */

/* Desktop Filters Wrapper */
.desktop-filters-wrapper {
  display: none;
}

@media (min-width: 1150px) and (pointer: fine) {
  .desktop-filters-wrapper {
    display: block !important;
  }
}

.desktop-filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 20px;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 10px;
  position: relative;
}

/* Filters are controlled via inline style.display */

/* Control buttons inside container - styled as links */
.desktop-filter-toggle-btn,
.desktop-filter-clear-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: var(--filter-transition);
  font-weight: 400;
  height: 36px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #374151;
  text-decoration: underline;
}

.desktop-filter-toggle-btn:hover {
  color: #111827;
  text-decoration: none;
}

.desktop-filter-clear-btn {
  color: #dc2626;
}

.desktop-filter-clear-btn:hover {
  color: #b91c1c;
  text-decoration: none;
}

/* Desktop Filter Container (Wrapper) */
.desktop-filter-wrapper {
  position: relative;
  z-index: 50;
}

.desktop-filter-wrapper.active {
  z-index: 501;
}

/* Desktop Filter Button */
.desktop-filter-button {
  font-weight: 500;
  padding: 10px 16px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: inherit;
  color: #333;
  white-space: nowrap;
  position: relative;
  width: 100%;
  justify-content: space-between;
  height: 36px; /* Fixed height to prevent jumping */
  box-sizing: border-box;
}

.desktop-filter-button:hover {
  border-color: #333;
  background: #fafafa;
}

.desktop-filter-button.active {
  border-color: #000;
  background: #000;
  color: white;
}

.desktop-filter-button .arrow {
  font-size: 10px;
  transition: transform 0.2s;
  display: inline-block;
}

.desktop-filter-button.open .arrow {
  transform: rotate(180deg);
}

.filter-button-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.filter-button-label {
  white-space: nowrap;
}

.filter-badge {
  background: #000;
  color: white;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.desktop-filter-button.active .filter-badge {
  background: white;
  color: #000;
}

/* Desktop Filter Popup */
.desktop-filter-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  max-width: 400px;
  max-height: 500px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 500;
  display: flex;
  flex-direction: column;
}

/* Wider popup for colors filter with two columns */
.desktop-filter-wrapper[data-filter-id="colors"] .desktop-filter-popup {
  min-width: 380px;
  max-width: 480px;
}

.desktop-filter-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Desktop Search Container */
.desktop-filter-search {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.desktop-filter-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.desktop-filter-search input:focus {
  outline: none;
  border-color: #000;
}

/* Desktop Filter Options */
.desktop-filter-options {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  max-height: 300px;
}

.desktop-filter-options.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 12px 8px;
}

.desktop-filter-option {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.desktop-filter-option:hover {
  background: #f5f5f5;
}

.desktop-filter-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.desktop-filter-option.selected .desktop-filter-checkbox {
  background: #000;
  border-color: #000;
}

.desktop-filter-checkbox::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
  display: none;
}

.desktop-filter-option.selected .desktop-filter-checkbox::after {
  display: block;
}

/* Color checkbox styling */
.desktop-filter-checkbox.has-color {
  width: 20px;
  height: 20px;
  border-radius: 3px; /* Square instead of circle */
  background: var(--color-bg, #f0f0f0);
  border: 2px solid #ddd;
}

/* Special styling for mixed color */
.desktop-filter-checkbox.has-color.mixed-color {
  background-image:
          linear-gradient(#ffff00, #ffff00),
          linear-gradient(#00ff00, #00ff00),
          linear-gradient(#ff0000, #ff0000),
          linear-gradient(#0000ff, #0000ff);
  background-size: 50% 50%;
  background-position:
          top left,
          top right,
          bottom left,
          bottom right;
  background-repeat: no-repeat;
}
.applied-filter-chip[data-option="mixed"] .applied-filter-color {
  background:
          linear-gradient(#ffff00, #ffff00) top left,
          linear-gradient(#00ff00, #00ff00) top right,
          linear-gradient(#ff0000, #ff0000) bottom left,
          linear-gradient(#0000ff, #0000ff) bottom right !important;
  background-size: 50% 50% !important;
  background-repeat: no-repeat !important;
}

.desktop-filter-option.selected .desktop-filter-checkbox.has-color {
  border-color: #000;
  background: var(--color-bg, #f0f0f0);
}

/* Keep gradient for selected mixed color */
.desktop-filter-option.selected .desktop-filter-checkbox.has-color.mixed-color {
  background-image:
          linear-gradient(#ffff00, #ffff00),
          linear-gradient(#00ff00, #00ff00),
          linear-gradient(#ff0000, #ff0000),
          linear-gradient(#0000ff, #0000ff);
  background-size: 50% 50%;
  background-position:
          top left,
          top right,
          bottom left,
          bottom right;
  background-repeat: no-repeat;
}

.desktop-filter-checkbox.has-color::after {
  content: "✓";
  color: var(--checkmark-color, white);
  font-size: 18px;
  font-weight: bold;
  display: none;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.desktop-filter-option.selected .desktop-filter-checkbox.has-color::after {
  display: block;
}

.desktop-filter-option-label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.desktop-filter-option-count {
  color: #999;
  font-size: 13px;
  font-weight: 500;
}

/* Desktop Filter Footer */
.desktop-filter-popup-footer {
  padding: 12px 16px;
  border-top: 1px solid #eee;
}

.desktop-btn-clear {
  width: 100%;
  padding: 10px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #333;
}

.desktop-btn-clear:hover {
  background: #f5f5f5;
}

/* Desktop Price Slider */
.desktop-price-slider-container {
  padding: 24px 16px 16px;
}

.desktop-price-slider-wrapper {
  position: relative;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin: 20px 0;
  cursor: pointer;
}

.desktop-price-slider-track {
  position: absolute;
  height: 100%;
  background: #000;
  border-radius: 3px;
  pointer-events: none;
}

.desktop-price-slider-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #000;
  border: 2px solid white;
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.desktop-price-slider-thumb:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.desktop-price-slider-thumb.active {
  z-index: 3;
}

.desktop-price-inputs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.desktop-price-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.desktop-price-input-label {
  font-size: 12px;
  color: #000;
}

.desktop-price-input-value {
  display: none; /* Hide static display, use input instead */
}

.desktop-price-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-price-input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  -moz-appearance: textfield;
}

.desktop-price-input::-webkit-outer-spin-button,
.desktop-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.desktop-price-input:focus {
  outline: none;
  border-color: #000;
}

.desktop-price-currency {
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

/* Desktop Toggle Switch (for Sale/Promo) */
.desktop-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-toggle-label {
  font-size: 14px;
  font-weight: 500;
}

.desktop-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.desktop-toggle-switch.active {
  background: #000;
}

.desktop-toggle-switch-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.desktop-toggle-switch.active .desktop-toggle-switch-slider {
  transform: translateX(20px);
}

/* Overlay */
.desktop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 49;
  pointer-events: none;
}

.desktop-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ========================================
   3. MOBILE FILTERS
   ======================================== */

/* Mobile Filters Button */
.btn-sidebar-mobile {
  position: fixed;
  bottom: 90px;
  left: 1px !important;
  z-index: 1000;
}

.btn-sidebar-mobile button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.btn-sidebar-mobile button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Mobile Filters Wrapper */
.mobile-filters-wrapper {
  width: 100%;
}

.mobile-filters-container {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* Mobile Offcanvas Fixes */
.offcanvas.show {
  overflow-y: auto !important;
}

.offcanvas .canvas-body {
  overflow-y: auto !important;
  max-height: calc(100vh - 60px);
  -webkit-overflow-scrolling: touch;
}

.canvas-body .mobile-filters-wrapper {
  padding: 0;
}

.sidebar-mobile-append .mobile-filters-wrapper {
  padding: 0;
}

/* Mobile Search Container */
.mobile-search-container {
  margin-bottom: 15px;
}

.mobile-search-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: #f9f9f9;
}

.mobile-search-input:focus {
  outline: none;
  border-color: #000;
  background-color: white;
}

/* Mobile Price Filter */
.mobile-price-container {
  padding: 15px 0;
}

.mobile-price-slider-container {
  margin-bottom: 20px;
}

.mobile-price-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding: 0 5px;
}

.mobile-price-value {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.mobile-price-separator {
  color: #999;
}

.mobile-price-inputs {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.mobile-price-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-price-input-group label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.mobile-price-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* Horizontal layout for Price inputs (50% each, side by side) */
.mobile-price-inputs-horizontal {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.mobile-price-inputs-horizontal .mobile-price-input-group {
  flex: 1;
  width: 50%;
}

/* Price & Sale Group Container */
.mobile-price-sale-group {
  border-bottom: 1px solid #e5e5e5;
}

.mobile-price-section {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-sale-section {
  padding: 10px 0 0 0;
}

.mobile-price-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 15px;
}

.mobile-price-actions .mobile-price-apply,
.mobile-price-actions .mobile-clear-button {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-price-actions .mobile-price-apply {
  background-color: #000;
  color: white;
  border-color: #000;
}

.mobile-price-actions .mobile-price-apply:hover {
  background-color: #333;
  border-color: #333;
}

.mobile-price-actions .mobile-clear-button {
  background-color: #f5f5f5;
  color: #666;
  border-color: #ddd;
}

.mobile-price-actions .mobile-clear-button:hover {
  background-color: #e5e5e5;
}

/* Mobile Sale Filter */
.mobile-sale-toggle-wrapper {
  padding: 15px 0;
}

.mobile-sale-checkbox {
  display: none;
}

.mobile-sale-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0;
}

.mobile-sale-text {
  font-size: 14px;
  font-weight: 500;
}

.mobile-sale-switch {
  position: relative;
  width: 50px;
  height: 24px;
  background-color: #ddd;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.mobile-sale-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.mobile-sale-checkbox:checked + .mobile-sale-label .mobile-sale-switch {
  background-color: #000;
}

.mobile-sale-checkbox:checked + .mobile-sale-label .mobile-sale-switch::before {
  transform: translateX(26px);
}

/* Mobile Filter Options */
.mobile-brand-option,
.mobile-color-option {
  margin: 0;
}

.mobile-brand-option:checked + .label,
.mobile-color-option:checked + .label {
  color: #000;
  font-weight: 600;
}

.mobile-brand-option:checked + .label span:first-child,
.mobile-color-option:checked + .label span:first-child {
  position: relative;
}

.mobile-brand-option:checked + .label span:first-child::after,
.mobile-color-option:checked + .label span:first-child::after {
  content: "✓";
  margin-left: 5px;
  color: #000;
  font-weight: bold;
}

/* Mobile Color Options */
.mobile-color-option {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: var(--color-bg, #f0f0f0);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.mobile-color-option:checked {
  border-color: #000;
  background-image: var(--checkmark-svg);
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.mobile-color-option:checked + .label {
  color: #000;
  font-weight: 600;
}

/* Mobile Brand Letter Headers */
.mobile-brand-letter-header {
  font-weight: bold;
  font-size: 16px;
  color: #000;
  margin: 15px 0 10px 0;
  padding: 10px 0 5px 0;
  border-bottom: 1px solid #eee;
}

/* ========================================
   4. THEME INTEGRATION STYLES
   ======================================== */

/* Widget Facet Integration */
.widget-facet .facet-title {
  cursor: pointer;
  user-select: none;
}

.widget-facet .facet-title .icon {
  transition: transform 0.3s ease;
}

.widget-facet .facet-title[aria-expanded="false"] .icon {
  transform: rotate(180deg);
}

/* Bootstrap Collapse Integration */
.collapse.show {
  display: block !important;
}

/* Filter Group Styling */
.tf-filter-group .list-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.tf-filter-group .list-item.disabled {
  display: none !important;
}

/* Checkbox Styling */
.tf-check:checked + .label,
.tf-check-color:checked + .label {
  color: #000;
  font-weight: 600;
}

.tf-check {
  width: 16px;
  height: 16px;
  accent-color: #000;
}

.tf-check-color {
  width: 20px;
  height: 20px;
  border-radius: 0;
  border: 2px solid #ddd;
  background: var(--color-bg, #f0f0f0);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tf-check-color:checked {
  border-color: #000;
  background-image: var(--checkmark-svg);
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ========================================
   5. RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .mobile-price-inputs {
    flex-direction: column;
    gap: 10px;
  }

  .mobile-price-actions {
    flex-direction: column;
  }

  .mobile-filters-container {
    gap: 0px;
  }
}

/* ========================================
   6. UTILITY CLASSES
   ======================================== */



/* Clear Button Utility */
.mobile-clear-button {
  width: 100%;
  padding: 8px 15px;
  background-color: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-clear-button:hover {
  background-color: #e5e5e5;
  color: #333;
}

/* Apply Button at Bottom of Mobile Filters */
.mobile-filters-apply-btn {
  width: 100%;
  padding: 15px 20px;
  margin-top: 20px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-filters-apply-btn:hover {
  background-color: #333;
}

.mobile-filters-apply-btn:active {
  transform: scale(0.98);
}

@media (min-width: 1150px) and (pointer: fine) {
  #sticky-sidebar {
    display: block;
  }
}
@media (min-width: 1150px) and (pointer: fine) {
  #sticky-sidebar {
    display: block;
  }
  #mobile-categories {
    display: none;
  }
}
@media (max-width: 1149px) or (pointer: coarse) {
  #sticky-sidebar {
    display: none;
  }
  #mobile-categories {
    display: block;
  }
}
div.widget-facet div.collapse {
  margin-top: 20px;
}
div.widget-facet div.collapse ul.mb_36 {
  margin-bottom: 10px;
}
#mobile-colors-mixed{
  background-image:
          linear-gradient(#ffff00, #ffff00),
          linear-gradient(#00ff00, #00ff00),
          linear-gradient(#ff0000, #ff0000),
          linear-gradient(#0000ff, #0000ff);
  background-size: 50% 50%;
  background-position:
          top left,
          top right,
          bottom left,
          bottom right;
  background-repeat: no-repeat;
}
#mobile-colors-mixed:checked {
  background-image:
          var(--checkmark-svg),           /* ⭐ checkmark зверху */
          linear-gradient(#ffff00, #ffff00),
          linear-gradient(#00ff00, #00ff00),
          linear-gradient(#ff0000, #ff0000),
          linear-gradient(#0000ff, #0000ff) !important;
  background-size:
          80% 80%,                        /* ⭐ розмір checkmark */
          50% 50%,
          50% 50%,
          50% 50%,
          50% 50% !important;
  background-position:
          center,                         /* ⭐ checkmark по центру */
          top left,
          top right,
          bottom left,
          bottom right !important;
  background-repeat: no-repeat !important;
}



/* ========================================
   7. MOBILE SORT OPTIONS
   ======================================== */

.mobile-sort-widget {
  border-bottom: 1px solid #e5e5e5;
}

.mobile-sort-options {
  padding: 0;
}

.mobile-sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.mobile-sort-option:last-child {
  border-bottom: none;
}

.mobile-sort-option:hover {
  background-color: #f9f9f9;
}

.mobile-sort-option:active {
  background-color: #f0f0f0;
}

.mobile-sort-label {
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.mobile-sort-check {
  display: none;
  color: #000;
  font-size: 14px;
  font-weight: bold;
}

.mobile-sort-option.active .mobile-sort-label {
  font-weight: 600;
  color: #000;
}

.mobile-sort-option.active .mobile-sort-check {
  display: block;
}

.mobile-sort-option.active .mobile-sort-check::before {
  content: "✓";
}

/* Hidden class for search filtering (overrides Bootstrap d-flex) */
.list-item.search-hidden {
  display: none !important;
}