/* Products / category listing filter toolbar + panel */

.luvare-products-toolbar {
  width: 100%;
}

.luvare-products-toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.luvare-products-toolbar__count {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #1f1f1f;
  line-height: 1.4;
}

.luvare-products-filter-open {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #0000004D;
  border-radius: 10px;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.luvare-products-filter-open:hover {
  border-color: #cfcfcf;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.luvare-products-filter-open svg {
  flex-shrink: 0;
}

.luvare-products-filter-panel {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.luvare-products-filter-panel.is-open {
  pointer-events: auto;
}

.luvare-products-filter-panel[aria-hidden="true"] .luvare-products-filter-panel__dialog {
  transform: translateY(100%);
}

.luvare-products-filter-panel[aria-hidden="true"] .luvare-products-filter-panel__backdrop {
  opacity: 0;
}

.luvare-products-filter-panel__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 1;
  transition: opacity 0.28s ease;
  cursor: pointer;
}

.luvare-products-filter-panel__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(92vh, 760px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.luvare-products-filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #ececec;
}

.luvare-products-filter-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.luvare-products-filter-panel__close {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #111;
  cursor: pointer;
  flex-shrink: 0;
}

.luvare-products-filter-panel__body {
  overflow-y: auto;
  padding: 8px 20px 28px;
}

.luvare-products-filter-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.luvare-filter-section {
  border-bottom: 1px solid #ececec;
  padding-block: 18px;
}

.luvare-filter-section--price {
  padding-bottom: 22px;
}

.luvare-filter-section__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.luvare-filter-section__summary::-webkit-details-marker {
  display: none;
}

.luvare-filter-section__title,
.luvare-filter-section__title--static {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.luvare-filter-section__title--static {
  margin-bottom: 16px;
}

.luvare-filter-section__chevron {
  display: inline-flex;
  color: #111;
  transition: transform 0.2s ease;
}

.luvare-filter-section:not([open]) .luvare-filter-section__chevron {
  transform: rotate(180deg);
}

.luvare-filter-sort-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.luvare-filter-sort-option {
  all: unset;
  box-sizing: border-box;
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
  cursor: pointer;
  text-align: start;
}

.luvare-filter-sort-option.is-active {
  font-weight: 700;
}

.luvare-filter-price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.luvare-filter-price-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
}

.luvare-filter-price-field__currency {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: #8e8e93;
  display: flex;
  align-items: center;
  justify-content: center;
}

.luvare-filter-price-field__input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: #111;
  outline: none;
  box-shadow: none;
}

.luvare-filter-price-field__input::-webkit-outer-spin-button,
.luvare-filter-price-field__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.luvare-filter-price-slider {
  position: relative;
  height: 4px;
  margin: 24px 8px 8px;
  border: none;
  background: #e5e5e5;
  border-radius: 999px;
  touch-action: none;
}

.luvare-filter-price-slider .ui-slider-range {
  background: #111;
  border-radius: 999px;
}

.luvare-filter-price-slider .ui-slider-handle {
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  margin-left: -9px;
  border: none;
  border-radius: 50%;
  background: #111 !important;
  cursor: grab;
  outline: none;
  touch-action: none;
  -ms-touch-action: none;
  z-index: 2;
}

.luvare-filter-price-slider .ui-slider-handle:active {
  cursor: grabbing;
}

@media (max-width: 991px) {
  .luvare-filter-price-slider {
    margin-top: 28px;
    margin-bottom: 12px;
  }

  .luvare-filter-price-slider .ui-slider-handle {
    width: 28px;
    height: 28px;
    margin-top: -14px;
    margin-left: -14px;
  }

  .luvare-filter-price-slider::before {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
    pointer-events: none;
  }
}

.luvare-filter-sale-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 22px;
  border-bottom: 1px solid #ececec;
  cursor: pointer;
}

.luvare-filter-sale-toggle__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.luvare-filter-sale-toggle__control {
  width: 22px;
  height: 22px;
  border: 1.5px solid #d1d1d6;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}

.luvare-filter-sale-toggle__input:checked+.luvare-filter-sale-toggle__control {
  border-color: #111;
  background: #111;
  box-shadow: inset 0 0 0 4px #fff;
}

.luvare-filter-sale-toggle__label {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
}

.luvare-filter-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
}

.luvare-filter-save-btn {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.luvare-filter-reset-btn {
  all: unset;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

html.luvare-products-filter-open {
  overflow: hidden;
}

html.luvare-products-filter-open body {
  overflow: hidden;
}

.luvare-vitrin-filters-host {
  display: none !important;
}

.products-container {
  padding-block: 16px 24px;
}

.luvare-products-empty {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px;
  margin-inline: auto;
}

.products-list .luvare-products-empty,
.row.products-list .luvare-products-empty {
  grid-column: 1 / -1;
  max-width: 100%;
}

.luvare-products-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #f3f3f3;
  color: #6b6b6b;
}

.luvare-products-empty__icon-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
}

.luvare-products-empty__icon-svg {
  display: block;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.luvare-products-empty__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

.luvare-products-empty__text {
  margin: 0;
  max-width: 360px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #6b6b6b;
}

@media (max-width: 767px) {
  .luvare-products-empty {
    padding: 56px 20px;
  }

  .luvare-products-empty__icon {
    width: 104px;
    height: 104px;
    margin-bottom: 16px;
  }

  .luvare-products-empty__title {
    font-size: 20px;
  }

  .luvare-products-empty__text {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .luvare-products-filter-panel {
    align-items: center;
    padding: 24px;
  }

  .luvare-products-filter-panel__dialog {
    width: min(480px, 100%);
    max-height: min(86vh, 760px);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  }

  .luvare-products-filter-panel[aria-hidden="true"] .luvare-products-filter-panel__dialog {
    transform: translateY(24px);
    opacity: 0;
  }

  .luvare-products-filter-panel__dialog {
    opacity: 1;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
}

@media (max-width: 575px) {
  .luvare-products-toolbar__count {
    font-size: 15px;
  }

  .luvare-products-filter-open {
    font-size: 14px;
    padding-inline: 14px;
  }
}