.ocbox-sidebar {
  --ocbox-primary: #23a1d1;
  --ocbox-primary-hover: #1a8bb8;
  --ocbox-price: #198754;
  --ocbox-special: #dc3545;
  --ocbox-text: #333333;
  --ocbox-sidebar-bg: #ffffff;
  --ocbox-border: #e5e5e5;
  accent-color: var(--ocbox-primary, #23a1d1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--ocbox-text, #333333);
  background: var(--ocbox-sidebar-bg, transparent);
}

.ocbox-section {
  background: var(--ocbox-sidebar-bg, #fff);
  border-bottom: 1px solid var(--ocbox-border, #eee);
  padding: 0 6px 6px 6px;
  margin-bottom: 6px;
}
.ocbox-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Section Header */
.ocbox-section-header {
  display: flex;
  align-items: center;
  padding: 4px 0;
  cursor: pointer;
  user-select: none;
}
.ocbox-section-header-simple {
  padding: 4px 0 6px;
}
.ocbox-section-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--ocbox-text, #333);
  flex: 1;
}
.ocbox-section-count {
  color: #888;
  font-weight: 400;
  font-size: 14px;
}
.ocbox-section-toggle {
  color: #999;
  font-size: 12px;
  transition: transform 0.2s;
}
.ocbox-section-header.collapsed .ocbox-section-toggle {
  transform: rotate(180deg);
}
.ocbox-section-body {
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ocbox-section-header.collapsed + .ocbox-section-body {
  max-height: 0 !important;
  padding: 0;
}

/* Categories - compact style */
.ocbox-categories-section {
  padding: 4px 6px;
}
.ocbox-cat-item {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 0;
  color: var(--ocbox-text, #333);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
  -webkit-tap-highlight-color: rgba(0,0,0,0.05);
  touch-action: manipulation;
  cursor: pointer;
}
.ocbox-cat-item:hover {
  color: var(--ocbox-primary, #23a1d1);
  text-decoration: none;
}
.ocbox-cat-item.active {
  color: var(--ocbox-primary, #23a1d1);
  font-weight: 600;
}
/* Parent category - bold */
.ocbox-cat-parent {
  font-weight: 600;
  font-size: 13px;
  color: var(--ocbox-text, #333);
  padding: 3px 0;
  margin-top: 4px;
}
.ocbox-cat-parent:first-child {
  margin-top: 0;
}
.ocbox-cat-parent:hover {
  color: var(--ocbox-primary, #23a1d1);
}
/* Child categories - normal weight, indented */
.ocbox-cat-child {
  font-weight: 400;
  font-size: 13px;
  color: #555;
  padding: 1px 0;
}
.ocbox-cat-child:hover {
  color: var(--ocbox-primary, #23a1d1);
}
.ocbox-cat-name {
  flex: 1;
}
.ocbox-cat-count {
  background: #f5f5f5;
  color: #888;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Search Input */
.ocbox-search-wrap {
  position: relative;
  margin-bottom: 8px;
}
.ocbox-search-input {
  width: 100%;
  padding: 7px 10px 7px 32px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}
.ocbox-search-input:focus {
  border-color: var(--ocbox-primary, #23a1d1);
}
.ocbox-search-input::placeholder {
  color: #999;
}
.ocbox-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
  pointer-events: none;
}

/* Brands List */
.ocbox-brands-list {
  max-height: 400px;
  overflow-y: auto;
}
.ocbox-brands-list::-webkit-scrollbar {
  width: 4px;
}
.ocbox-brands-list::-webkit-scrollbar-track {
  background: #f5f5f5;
}
.ocbox-brands-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

/* ========================================
   UNIFIED FILTER ITEM STYLES
   Used for brands, attributes (checkbox/radio)
   ======================================== */
.ocbox-filter-item {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 2px 0;
  cursor: pointer;
  font-weight: normal;
  transition: background 0.15s;
  border-radius: 4px;
  font-size: 13px;
  touch-action: manipulation;
}
.ocbox-filter-item:hover {
  background: #f5f8fa;
}
.ocbox-filter-item input[type="checkbox"],
.ocbox-filter-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ocbox-filter-item:hover .ocbox-checkbox {
  border-color: var(--ocbox-primary, #23a1d1);
}
.ocbox-filter-item input:checked + .ocbox-checkbox {
  background: var(--ocbox-primary, #23a1d1);
  border-color: var(--ocbox-primary, #23a1d1);
}
.ocbox-filter-item input:checked + .ocbox-checkbox::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ocbox-filter-name {
  flex: 1;
  color: var(--ocbox-text, #333);
  word-break: break-word;
}
.ocbox-filter-count {
  background: #f5f5f5;
  color: #888;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 8px;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-left: auto;
}

/* Disabled filter item */
.ocbox-filter-item.ocbox-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}
.ocbox-filter-item.ocbox-disabled .ocbox-checkbox {
  background: #f0f0f0;
  border-color: #ddd;
}

/* Custom Checkbox */
.ocbox-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-right: 8px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
  background: #fff;
}

/* Custom Radio */
.ocbox-radio {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.ocbox-filter-item:hover .ocbox-radio {
  border-color: var(--ocbox-primary, #23a1d1);
}
.ocbox-filter-item input[type="radio"]:checked + .ocbox-radio {
  border-color: var(--ocbox-primary, #23a1d1);
}
.ocbox-filter-item input[type="radio"]:checked + .ocbox-radio::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 6px;
  height: 6px;
  background: var(--ocbox-primary, #23a1d1);
  border-radius: 50%;
}

.ocbox-hidden {
  display: none !important;
}
.ocbox-hidden.ocbox-shown {
  display: flex !important;
}

/* Attribute List */
.ocbox-attr-list {
  max-height: 400px;
  overflow-y: auto;
}

/* Attribute Slider Style */
.ocbox-attr-slider {
  padding: 8px 0;
}
.ocbox-slider-input {
  width: 70px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}
.ocbox-slider-input:focus {
  border-color: var(--ocbox-primary, #23a1d1);
  outline: none;
}
.ocbox-attr-slider-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ocbox-slider-value {
  display: inline-block;
  padding: 4px 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.ocbox-slider-value:hover {
  border-color: var(--ocbox-primary, #23a1d1);
  background: #f0f7ff;
}
.ocbox-slider-value.active {
  background: var(--ocbox-primary, #23a1d1);
  border-color: var(--ocbox-primary, #23a1d1);
  color: #fff;
}

/* Show More Button */
/* Load More Button - AJAX lazy loading */
.ocbox-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 0;
  margin-top: 8px;
  border: 1px dashed #ddd;
  border-radius: 6px;
  background: #fafafa;
  color: var(--ocbox-primary, #23a1d1);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.ocbox-load-more:hover {
  background: #f0f7ff;
  border-color: var(--ocbox-primary, #23a1d1);
  color: #1a7fa8;
}
.ocbox-load-more:disabled {
  opacity: 0.6;
  cursor: wait;
}
.ocbox-load-more-spinner {
  margin-left: 8px;
}

/* Show More Button - client-side toggle (legacy) */
.ocbox-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 0;
  margin-top: 4px;
  border: none;
  background: none;
  color: var(--ocbox-primary, #23a1d1);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}
.ocbox-show-more:hover {
  color: #1a7fa8;
}
.ocbox-show-more i {
  margin-left: 6px;
  font-size: 10px;
  transition: transform 0.2s;
}
.ocbox-show-more.expanded i {
  transform: rotate(180deg);
}

/* Price Slider */
.ocbox-price-section {
  margin-bottom: 8px;
  overflow: visible;
}
.ocbox-price-section .ocbox-section-body {
  overflow: visible;
  padding: 0 4px;
}
.ocbox-price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.ocbox-price-input {
  flex: 1;
  min-width: 0;
  max-width: 100px;
  padding: 8px 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  -moz-appearance: textfield;
}
.ocbox-price-input::-webkit-outer-spin-button,
.ocbox-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ocbox-price-input:focus {
  border-color: var(--ocbox-primary, #23a1d1);
  outline: none;
}
.ocbox-price-dash {
  color: #999;
  flex-shrink: 0;
}
.ocbox-price-currency {
  color: #666;
  font-size: 12px;
  flex-shrink: 0;
}
.ocbox-range-wrap {
  position: relative;
  height: 20px;
  margin: 8px 4px;
  overflow: visible;
}
.ocbox-range {
  position: absolute;
  width: 100%;
  height: 20px;
  top: 0;
  left: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
  margin: 0;
  padding: 0;
}
/* Both thumbs are clickable */
.ocbox-range::-webkit-slider-thumb {
  pointer-events: auto;
  position: relative;
  z-index: 10;
}
.ocbox-range::-moz-range-thumb {
  pointer-events: auto;
}
.ocbox-range-min {
  z-index: 4;
}
.ocbox-range-max {
  z-index: 3;
}
.ocbox-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
}
.ocbox-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  background: var(--ocbox-primary, #23a1d1);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.ocbox-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 5px rgba(0,0,0,0.35);
}
.ocbox-range::-webkit-slider-thumb:active {
  transform: scale(1.05);
  background: var(--ocbox-primary-hover, #1a8bb8);
}
.ocbox-range::-moz-range-track {
  width: 100%;
  height: 4px;
  background: transparent;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}
.ocbox-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--ocbox-primary, #23a1d1);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.ocbox-range::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 5px rgba(0,0,0,0.35);
}
.ocbox-range::-moz-range-thumb:active {
  transform: scale(1.05);
  background: var(--ocbox-primary-hover, #1a8bb8);
}
.ocbox-range-track {
  position: absolute;
  width: 100%;
  height: 4px;
  top: 8px;
  left: 0;
  background: #e0e0e0;
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}
.ocbox-range-selected {
  position: absolute;
  height: 4px;
  top: 8px;
  left: 0;
  background: var(--ocbox-primary, #23a1d1);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}

/* Labels style for price slider */
.ocbox-range-with-labels {
  height: 44px;
  margin-top: 4px;
}
.ocbox-range-with-labels .ocbox-range {
  top: 24px;
}
.ocbox-range-with-labels .ocbox-range-track,
.ocbox-range-with-labels .ocbox-range-selected {
  top: 32px;
}
.ocbox-range-labels {
  position: absolute;
  width: 100%;
  top: 0;
  height: 20px;
  display: flex;
  justify-content: space-between;
}
.ocbox-range-label {
  white-space: nowrap;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ocbox-text, #333);
}

/* Attribute Range Slider - uses same .ocbox-range-with-labels as price slider */
.ocbox-attr-range {
  padding: 8px 0;
}
/* Attribute labels - static left/right like price slider */
.ocbox-attr-range .ocbox-range-labels {
  justify-content: space-between;
}
.ocbox-attr-range .ocbox-range-label {
  /* No absolute positioning - use flexbox space-between */
}
/* Fix z-index for attribute sliders - min slider on top (like price slider) */
.ocbox-attr-slider-min {
  z-index: 5 !important;
}
.ocbox-attr-slider-max {
  z-index: 4 !important;
}

/* Load More Products Button */
.ocbox-load-more-products {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.ocbox-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--ocbox-primary, #23a1d1) 0%, var(--ocbox-primary-hover, #1a8bb8) 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(35,161,209,0.3);
}
.ocbox-load-more-btn:hover {
  background: linear-gradient(135deg, var(--ocbox-primary-hover, #1a8bb8) 0%, #157a9e 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(35,161,209,0.4);
}
.ocbox-load-more-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.ocbox-load-more-btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ocbox-spin 0.8s linear infinite;
}
.ocbox-load-more-btn.loading .spinner {
  display: inline-block;
}
.ocbox-load-more-btn.loading .text {
  opacity: 0.7;
}
@keyframes ocbox-spin {
  to { transform: rotate(360deg); }
}

/* Mobile Filter Button - Inline (in search results area) */
.ocbox-mobile-filter-btn-inline,
.ocbox-mobile-filter-btn-js {
  display: none;
  width: 100%;
  padding: 12px 20px;
  margin: 10px 0;
  background: linear-gradient(135deg, var(--ocbox-primary, #23a1d1) 0%, var(--ocbox-primary-hover, #1a8bb8) 100%);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(35,161,209,0.3);
  transition: all 0.2s;
}
.ocbox-mobile-filter-btn-inline:hover,
.ocbox-mobile-filter-btn-js:hover {
  background: linear-gradient(135deg, var(--ocbox-primary-hover, #1a8bb8) 0%, #157a9e 100%);
  box-shadow: 0 4px 12px rgba(35,161,209,0.4);
}
.ocbox-mobile-filter-btn-inline .filter-count,
.ocbox-mobile-filter-btn-js .filter-count {
  background: rgba(255,255,255,0.25);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: 4px;
}
.ocbox-mobile-filter-btn-inline .filter-count:empty,
.ocbox-mobile-filter-btn-js .filter-count:empty {
  display: none;
}

/* Hide mobile drawer elements on desktop */
.ocbox-drawer-close-x,
.ocbox-drawer-header {
  display: none;
}

/* Mobile */
@media (max-width: 991px) {
  /* Hide column-left on mobile */
  #column-left {
    display: none !important;
  }

  /* Slide-in drawer from left - Rozetka style */
  .ocbox-sidebar {
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 9999;
    overflow: hidden;
    padding: 0;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
  }
  .ocbox-sidebar.ocbox-drawer-open {
    display: flex;
    transform: translateX(0);
  }

  /* Drawer Header - Rozetka style */
  .ocbox-drawer-header {
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
  }
  .ocbox-drawer-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: var(--ocbox-text, #333);
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
  }
  .ocbox-drawer-back:active {
    background: rgba(0,0,0,0.05);
  }
  .ocbox-drawer-back:focus {
    outline: 2px solid var(--ocbox-primary, #23a1d1);
    outline-offset: -2px;
  }
  .ocbox-drawer-back svg {
    width: 24px;
    height: 24px;
  }
  .ocbox-drawer-title-wrap {
    flex: 1;
    min-width: 0;
  }
  .ocbox-drawer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ocbox-text, #333);
    margin: 0;
    line-height: 1.3;
  }
  .ocbox-drawer-subtitle {
    font-size: 13px;
    color: #808080;
    margin: 2px 0 0 0;
  }
  .ocbox-drawer-clear {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    color: var(--ocbox-text, #333);
    cursor: pointer;
    transition: all 0.2s;
  }
  .ocbox-drawer-clear:hover {
    background: #f5f5f5;
    border-color: #ccc;
  }
  .ocbox-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: var(--ocbox-text, #333);
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
  }
  .ocbox-drawer-close:active {
    background: rgba(0,0,0,0.05);
  }
  .ocbox-drawer-close:focus {
    outline: 2px solid var(--ocbox-primary, #23a1d1);
    outline-offset: -2px;
  }
  .ocbox-drawer-close svg {
    width: 24px;
    height: 24px;
  }

  /* Scrollable filter content area */
  .ocbox-sidebar .ocbox-filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 16px 16px;
    -webkit-overflow-scrolling: touch;
  }

  /* Apply section fixed at bottom - Rozetka style */
  .ocbox-apply-section {
    flex-shrink: 0;
    display: flex !important;
    gap: 12px;
    position: relative;
    margin: 0;
    padding: 12px 16px !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    background: #fff;
    border-top: 1px solid #e8e8e8;
  }
  .ocbox-reset-btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 400;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    color: #888;
    cursor: pointer;
  }
  .ocbox-reset-btn:hover {
    color: #e53935;
    border-color: #e53935;
  }
  .ocbox-apply-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: #00a046;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
  }
  .ocbox-apply-btn:hover {
    background: #008a3b;
  }

  /* Hide old close button on mobile (replaced by header) */
  .ocbox-drawer-close-x {
    display: none !important;
  }

  /* Overlay */
  .ocbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
  }
  .ocbox-overlay.active {
    display: block;
  }

  /* Show inline button, hide compare */
  .ocbox-mobile-filter-btn-inline,
  .ocbox-mobile-filter-btn-js {
    display: flex !important;
  }
  #compare-total {
    display: none;
  }

  /* Section styling for mobile */
  .ocbox-sidebar .ocbox-section {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
  }
  .ocbox-sidebar .ocbox-section:first-child {
    padding-top: 16px;
  }
  .ocbox-sidebar .ocbox-section-header-simple {
    margin-bottom: 12px;
  }
  .ocbox-sidebar .ocbox-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ocbox-text, #333);
  }
}

/* ========================================
   SEARCH HEADER - OpenCart Style
   Pills and query text above content
   ======================================== */
.ocbox-search-info {
  background: transparent;
  padding: 15px 0;
  margin-bottom: 15px;
}
.ocbox-search-result-text {
  font-size: 14px;
  color: var(--ocbox-text, #333);
  margin-bottom: 10px;
}
.ocbox-search-result-text strong {
  color: var(--ocbox-primary, #23a1d1);
}
.ocbox-result-count {
  color: #999;
  font-size: 13px;
  margin-left: 5px;
}

/* "Showing results for" message */
.ocbox-did-you-mean {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.ocbox-did-you-mean strong {
  color: var(--ocbox-primary, #23a1d1);
  font-weight: 600;
}

/* Active Filters Pills - Compact OpenCart Style */
.ocbox-active-filters {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0;
  vertical-align: middle;
}
.ocbox-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #5bc0de;
  border-radius: 3px;
  font-size: 11px;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
  line-height: 1.4;
}
.ocbox-pill:hover {
  background: #46b8da;
  color: #fff;
  text-decoration: none;
}
.ocbox-pill-x {
  font-size: 13px;
  font-weight: bold;
  margin-left: 5px;
  opacity: 0.7;
  line-height: 1;
}
.ocbox-pill:hover .ocbox-pill-x {
  opacity: 1;
}
.ocbox-clear-filters {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #999;
  border-radius: 3px;
  font-size: 11px;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
  line-height: 1.4;
}
.ocbox-clear-filters:hover {
  background: #777;
  color: #fff;
  text-decoration: none;
}

/* Search Header Container */
.ocbox-search-header-container {
  padding: 10px 0;
  margin-bottom: 10px;
}
.ocbox-search-header-container .ocbox-did-you-mean {
  margin-bottom: 8px;
}

/* Mobile styles for search header */
@media (max-width: 767px) {
  .ocbox-search-info {
    padding: 12px;
    margin-bottom: 15px;
  }
  .ocbox-search-result-text {
    font-size: 13px;
  }
  .ocbox-did-you-mean {
    font-size: 11px;
  }
  .ocbox-active-filters {
    display: flex;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 8px;
  }
  .ocbox-pill {
    padding: 2px 6px;
    font-size: 10px;
  }
  .ocbox-pill-x {
    margin-left: 4px;
    font-size: 11px;
  }
}

/* Apply Section - Two buttons (Show + Reset) */
.ocbox-apply-section {
  display: flex;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 8px 6px;
  border-top: 1px solid #e0e0e0;
  margin-top: 12px;
}
.ocbox-reset-btn {
  flex: 0 0 auto;
  padding: 7px 14px;
  background: #fff;
  color: #888;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}
.ocbox-reset-btn:hover {
  color: #e53935;
  border-color: #e53935;
  background: #fef2f2;
}
.ocbox-apply-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 14px;
  background: #00a046;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.ocbox-apply-btn:hover {
  background: #008a3b;
}
.ocbox-apply-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.ocbox-apply-btn.ocbox-loading {
  pointer-events: none;
  opacity: 0.7;
}
.ocbox-apply-count {
  font-weight: 700;
}
.ocbox-apply-suffix {
  font-weight: 400;
}

/* Widget loading state for AJAX */
.ocbox-sidebar.ocbox-updating {
  opacity: 0.6;
  pointer-events: none;
}
.ocbox-sidebar.ocbox-updating::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid #23527c;
  border-top-color: transparent;
  border-radius: 50%;
  animation: ocbox-spin 0.8s linear infinite;
}
@keyframes ocbox-spin {
  to { transform: rotate(360deg); }
}

html.ocbox-hide-native-form #content select[name="category_id"],
html.ocbox-hide-native-form #content input[name="sub_category"],
html.ocbox-hide-native-form #content input[name="description"],
html.ocbox-hide-native-form #content input#input-search,
html.ocbox-hide-native-form #content #button-search,
html.ocbox-hide-native-form #content label.control-label[for="input-search"],
html.ocbox-hide-native-form #content label.control-label[for="input-category"],
html.ocbox-hide-native-form #content label.control-label[for="input-sub-category"],
html.ocbox-hide-native-form #content label.control-label[for="input-description"],
html.ocbox-hide-native-form #content label.checkbox-inline[for="input-sub-category"],
html.ocbox-hide-native-form #content label.checkbox-inline[for="input-description"] {
  display: none !important;
}
html.ocbox-hide-native-form #content .form-group:has(select[name="category_id"]),
html.ocbox-hide-native-form #content .form-group:has(input[name="sub_category"]),
html.ocbox-hide-native-form #content .form-group:has(input[name="description"]),
html.ocbox-hide-native-form #content .form-group:has(input#input-search),
html.ocbox-hide-native-form #content .form-group:has(#button-search),
html.ocbox-hide-native-form #content .row:has(> .col-sm-6 > .form-group > input#input-search),
html.ocbox-hide-native-form #content .row:has(> .col-sm-6 > .form-group > select[name="category_id"]),
html.ocbox-hide-native-form #content .row:has(#input-search),
html.ocbox-hide-native-form #content .row:has(select[name="category_id"]),
html.ocbox-hide-native-form #content .checkbox:has(input[name="sub_category"]),
html.ocbox-hide-native-form #content .checkbox:has(input[name="description"]),
html.ocbox-hide-native-form #content .well:has(#button-search),
html.ocbox-hide-native-form #content .well:has(#input-search) {
  display: none !important;
}
html.ocbox-hide-native-form #content label:has(> input[name="sub_category"]),
html.ocbox-hide-native-form #content label:has(> input[name="description"]) {
  display: none !important;
}
