/* ============= MODERN FILTER PANEL ================ */

/* Modern Filter Column */
.filter-bar {
  background-color: #ffffff;
  padding: var(--spacing-lg, 2rem);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e5e5;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

/* Modern Filter Section */
.modern-filter-section {
  margin-bottom: var(--spacing-lg, 2rem);
  padding-bottom: var(--spacing-md, 1.5rem);
  border-bottom: 1px solid #f0f0f0;
}

.modern-filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Modern Filter Header */
.modern-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm, 1rem);
  cursor: pointer;
  user-select: none;
}

.modern-filter-header h6 {
  font-size: var(--font-size-base, 1rem);
  font-weight: var(--font-weight-semibold, 600);
  color: #333;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.modern-filter-header .collapse-icon {
  font-size: 0.875rem;
  color: #666;
  transition: transform 0.3s ease;
}

.modern-filter-header[aria-expanded="true"] .collapse-icon {
  transform: rotate(180deg);
}

/* Collapsible Content */
.modern-filter-content {
  padding-top: var(--spacing-sm, 1rem);
}

.modern-filter-content.collapse:not(.show) {
  display: none;
}

/* Modern Checkboxes */
.modern-checkboxes {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 0.5rem);
}

.modern-checkbox-wrapper {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.modern-checkbox-wrapper:hover {
  background-color: #f8f9fa;
}

.modern-checkbox-input {
  width: 18px;
  height: 18px;
  margin-right: 0.75rem;
  cursor: pointer;
  accent-color: #007bff;
  flex-shrink: 0;
}

.modern-checkbox-label {
  font-size: var(--font-size-sm, 0.875rem);
  color: #555;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  flex-grow: 1;
  margin: 0;
}

.modern-checkbox-input:checked + .modern-checkbox-label {
  color: #333;
  font-weight: var(--font-weight-medium, 500);
}

/* Modern Filter collapse / column — flex taşmasını önle */
.filter-bar .modern-filter-content,
.filter-bar .modern-filter-section,
.hoflayn-section-filter-panel,
.section-filter-column {
  min-width: 0;
  max-width: 100%;
}

/* Modern Selectpicker Styling */
.modern-select-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.modern-select-wrapper .selectpicker {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm, 0.875rem);
  transition: all 0.2s ease;
}

.modern-select-wrapper .selectpicker:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  outline: none;
}

/* selectpicker yüklenmezse ham <select> gizlenmesin — kaydırılabilir kutu */
.modern-select-wrapper select.selectpicker:not(.bs-select-hidden) {
  display: block;
  width: 100%;
  max-height: 12rem;
  overflow-y: auto;
  font-size: 0.875rem;
}

.filter-bar .bootstrap-select,
.modern-select-wrapper .bootstrap-select {
  width: 100% !important;
  max-width: 100%;
  position: relative;
}

.filter-bar .bootstrap-select > .dropdown-toggle,
.modern-select-wrapper .bootstrap-select > .dropdown-toggle {
  width: 100%;
  max-width: 100%;
}

/* Dış menü (arama kutusu + liste) */
.filter-bar .bootstrap-select > .dropdown-menu,
.modern-select-wrapper .bootstrap-select > .dropdown-menu,
.dropdown-menu.core-filter-bs-menu {
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: 14rem;
  box-sizing: border-box;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  float: none;
}

/* İç liste — bootstrap-select ikinci .dropdown-menu */
.filter-bar .bootstrap-select .dropdown-menu.inner,
.modern-select-wrapper .bootstrap-select .dropdown-menu.inner,
.dropdown-menu.core-filter-bs-menu .dropdown-menu.inner {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  float: none !important;
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: 11rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.filter-bar .bootstrap-select .bs-searchbox,
.modern-select-wrapper .bootstrap-select .bs-searchbox,
.dropdown-menu.core-filter-bs-menu .bs-searchbox {
  padding: 0.35rem 0.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-bar .bootstrap-select .bs-searchbox .form-control,
.filter-bar .bootstrap-select .bs-searchbox input,
.modern-select-wrapper .bootstrap-select .bs-searchbox .form-control,
.modern-select-wrapper .bootstrap-select .bs-searchbox input,
.dropdown-menu.core-filter-bs-menu .bs-searchbox input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
  font-size: 0.875rem;
}

/* Modern Price Range — kompakt etiket + ₺ suffix, input'a daha çok alan */
.modern-price-range {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modern-price-input-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  flex-wrap: nowrap;
}

.modern-price-input-group label {
  font-size: 0.7rem;
  color: #6b7280;
  width: 2rem;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}

.modern-price-field {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modern-price-field:focus-within {
  border-color: #45b8ac;
  box-shadow: 0 0 0 3px rgba(69, 184, 172, 0.15);
}

.modern-price-input {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 0.55rem 0.55rem 0.55rem 0.65rem;
  border: 0;
  border-radius: 0;
  font-size: 0.875rem;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
  background: transparent;
}

.modern-price-input:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}

.modern-price-currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
  background-color: #f3f4f6;
  border: 0;
  border-left: 1px solid #e5e7eb;
  border-radius: 0;
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
  width: auto;
  min-width: 1.75rem;
  flex-shrink: 0;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Modern Range Slider */
.modern-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin: var(--spacing-sm, 1rem) 0;
}

.modern-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modern-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modern-range-values {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-xs, 0.75rem);
  color: #666;
  margin-top: 0.5rem;
}

/* Modern Submit Button */
.modern-filter-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: var(--font-size-base, 1rem);
  font-weight: var(--font-weight-semibold, 600);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
  font-family: 'Montserrat', sans-serif;
  margin-top: var(--spacing-md, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-filter-submit i {
  margin-right: 0.5rem;
}

.modern-filter-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
  background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
}

.modern-filter-submit:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .filter-bar {
    padding: var(--spacing-md, 1.5rem);
  }
  
  .modern-filter-section {
    margin-bottom: var(--spacing-md, 1.5rem);
  }
  
  .modern-price-input-group {
    flex-wrap: nowrap;
  }

  .modern-price-input-group label {
    width: 2rem;
    margin-bottom: 0;
  }

  .modern-price-input {
    flex: 1;
    min-width: 0;
  }

  .modern-price-currency {
    width: auto;
    min-width: 1.75rem;
  }
}

@media (max-width: 576px) {
  .modern-price-input-group {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
  }

  .modern-price-input-group label {
    width: 2rem;
  }

  .modern-price-field {
    width: auto;
    flex: 1;
  }

  .modern-price-input {
    width: auto;
    max-width: 100%;
  }

  .modern-price-currency {
    width: auto;
    text-align: center;
  }
}

.checkboxColumnInput { display: none; }

/* ========= Mobil: kategori satırında filtre paneli kapalı; masaüstünde her zaman açık ========= */
@media (max-width: 767.98px) {
  .section-category-row--filter-dom-first {
    display: flex;
    flex-direction: column;
  }

  .section-category-row--products-dom-first {
    display: flex;
    flex-direction: column;
  }

  .hoflayn-filter-mobile-toggle {
    font-weight: 600;
  }
}

@media (min-width: 768px) {
  .hoflayn-section-filter-panel.collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.checkboxColumnInput + label {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 20px;
  font: 14px/20px 'Open Sans', Arial, sans-serif;
  color: #9999b2;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 0.8em;
}

.checkboxColumnInput + label:last-child { margin-bottom: 0; }

.checkboxColumnInput + label:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid #6cc0e5;
  position: absolute;
  left: 0;
  top: 0;
  opacity: .6;
  -webkit-transition: all .12s, border-color .08s;
  transition: all .12s, border-color .08s;
}

.checkboxColumnInput:checked + label:before {
  width: 10px;
  top: -5px;
  left: 5px;
  border-radius: 0;
  opacity: 1;
  border-top-color: transparent;
  border-left-color: transparent;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.minmaxlistesi{
  font-size: 12px;
}

.search-header{
  display:flex;
  height:1.5em;
  align-items: center;
}
