/* The filter shares the storefront's navy/red visual language without adding controls. */
.storefront .smart-filter-dialog[open] {
  border: 1px solid #cbd8e7;
  border-top: 0;
  border-radius: 22px;
  background: #f4f7fb;
  box-shadow: 0 22px 60px #0f294330, 0 2px 9px #0f29431a;
}
.storefront .smart-dialog-head {
  position: relative;
  isolation: isolate;
  min-height: 92px;
  padding: 18px 28px;
  overflow: hidden;
  border: 0;
  background: linear-gradient(115deg, #122944 0%, #1a3958 65%, #452339 100%);
  color: #fff;
}
.storefront .smart-dialog-head::before {
  position: absolute;
  z-index: -1;
  top: -85px;
  right: 8%;
  width: 330px;
  height: 190px;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  box-shadow: 0 0 0 44px #ffffff06, 0 0 0 90px #ffffff05;
  content: '';
  transform: rotate(-22deg);
}
.storefront .smart-dialog-head::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #e9a362, #ec395b 49%, #728bdd);
  content: '';
}
.storefront .smart-dialog-head small {
  display: block;
  margin-bottom: 4px;
  color: #ffb97e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}
.storefront .smart-dialog-head h2 {
  color: #fff;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.storefront #smartFilterClose {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff50;
  border-radius: 11px;
  background: #ffffff14;
  color: #fff;
  transition: transform .24s ease, background .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.storefront #smartFilterClose:hover {
  transform: rotate(90deg);
  border-color: #fff;
  background: #ffffff2c;
  box-shadow: 0 7px 17px #080f2840;
}
.storefront #smartFilterClose:focus-visible,
.storefront #smartFilterReset:focus-visible,
.storefront #smartFilterApply:focus-visible,
.storefront .smart-source-trigger:focus-visible {
  outline: 3px solid #ed9eab;
  outline-offset: 3px;
}

.storefront .smart-filter-dialog[open] .smart-dialog-body,
.storefront .smart-filter-dialog.is-supplier .smart-dialog-body {
  gap: 13px;
  margin-block: 18px;
}
.storefront .smart-dialog-body > .smart-filter-section,
.storefront #smartSourceSection,
.storefront #smartPriceSection,
.storefront #smartStockSection,
.storefront .smart-filter-dialog.is-supplier .smart-dialog-body > .smart-filter-section:last-child {
  position: relative;
  isolation: isolate;
  border: 1px solid #d9e4ef;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 60%, #f9fbfe);
  box-shadow: 0 5px 16px #1b35500b;
  transition: transform .24s cubic-bezier(.2,.8,.2,1), border-color .24s ease, box-shadow .24s ease;
}
.storefront .smart-dialog-body > .smart-filter-section:hover,
.storefront .smart-dialog-body > .smart-filter-section:focus-within {
  transform: translateY(-2px);
  border-color: #b8cde0;
  box-shadow: 0 12px 28px #18344f16;
}
.storefront .smart-dialog-body > .smart-filter-section::before {
  position: absolute;
  top: 0;
  left: 17px;
  width: 42px;
  height: 3px;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(90deg, #e6395c, #f6a46b);
  content: '';
  transition: width .3s cubic-bezier(.2,.8,.2,1);
}
.storefront .smart-dialog-body > .smart-filter-section:hover::before,
.storefront .smart-dialog-body > .smart-filter-section:focus-within::before { width: 85px; }
.storefront #smartSourceSection {
  background: linear-gradient(100deg, #fff 0%, #f8fbff 74%, #fff5f7 100%);
}
.storefront #smartPriceSection {
  background: linear-gradient(150deg, #fff 55%, #fff7f8);
}
.storefront #smartStockSection {
  background: linear-gradient(150deg, #fff 55%, #f4f9ff);
}
.storefront .smart-filter-section-title h3,
.storefront #smartStockSection .smart-switch-row strong {
  color: #142c49;
  font-size: 14px;
}

.storefront .smart-source-trigger {
  position: relative;
  min-height: 51px;
  border: 1px solid #cfdeec;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 10px #132b440c;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.storefront .smart-source-trigger:hover,
.storefront .smart-source-trigger[aria-expanded="true"] {
  transform: translateY(-2px);
  border-color: #d74260;
  background: #fffafd;
  box-shadow: 0 9px 22px #c6113623, 0 0 0 3px #c6113610;
}
.storefront .smart-source-trigger > svg { transition: transform .22s ease; }
.storefront .smart-source-trigger[aria-expanded="true"] > svg { transform: rotate(180deg); }
.storefront .smart-source-option {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.storefront .smart-source-option:hover,
.storefront .smart-source-option:focus-visible {
  transform: translateY(-2px);
  border-color: #d16a83;
  background: #fff8fa;
  box-shadow: 0 7px 16px #c611361c;
}

.storefront #smartPriceSection .smart-price-fields input {
  border: 1px solid #d7e2ed;
  border-bottom: 2px solid #d7e2ed;
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.storefront #smartPriceSection .smart-price-fields input:hover { border-color: #bdcadb; }
.storefront #smartPriceSection .smart-price-fields input:focus {
  transform: translateY(-1px);
  outline: 0;
  border-color: #c61136;
  box-shadow: 0 0 0 4px #c6113614, 0 8px 16px #172f4810;
}
.storefront #smartStockSection:has(#smartInStock:checked) {
  border-color: #e0a0ae;
  background: linear-gradient(145deg, #fff, #fff4f7);
  box-shadow: 0 7px 23px #c6113614;
}
.storefront #smartStockSection .smart-switch-row { cursor: pointer; }
.storefront #smartStockSection .smart-switch-row input {
  border-color: #c8d7e6;
  box-shadow: inset 0 1px 3px #18344f12;
  transition: background .23s ease, border-color .23s ease, box-shadow .23s ease, transform .23s ease;
}
.storefront #smartStockSection .smart-switch-row:hover input { transform: scale(1.06); }
.storefront #smartStockSection .smart-switch-row input:checked {
  border-color: #b20b31;
  background: linear-gradient(120deg, #e42e50, #aa0d32);
  box-shadow: 0 5px 13px #c6113650;
}

.storefront .smart-filter-section > #smartSortSelect {
  min-height: 48px;
  border-color: #cfdeec;
  background-color: #fff;
  box-shadow: 0 3px 10px #132b440c;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.storefront .smart-filter-section > #smartSortSelect:hover,
.storefront .smart-filter-section > #smartSortSelect:focus {
  transform: translateY(-2px);
  outline: 0;
  border-color: #d74260;
  box-shadow: 0 9px 22px #c6113623, 0 0 0 3px #c6113610;
}

.storefront .smart-dialog-foot {
  gap: 14px;
  border-top: 1px solid #dce5ef;
  background: linear-gradient(90deg, #fff, #f7f9fd);
}
.storefront #smartFilterReset {
  border: 1px solid #cfdce9;
  border-radius: 10px;
  background: #fff;
  color: #435f7d;
  transition: transform .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.storefront #smartFilterReset:hover {
  transform: translateY(-2px);
  border-color: #c61136;
  color: #b40d32;
  box-shadow: 0 6px 16px #c6113618;
}
.storefront #smartFilterApply {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(112deg, #e12448, #b50b35 70%, #870b36);
  box-shadow: 0 7px 18px #ac123747;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.storefront #smartFilterApply::before {
  position: absolute;
  top: -45%;
  left: -60%;
  width: 55%;
  height: 200%;
  background: linear-gradient(90deg, transparent, #ffffff48, transparent);
  content: '';
  transform: rotate(20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.storefront #smartFilterApply:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 27px #ac12375a;
  filter: saturate(1.1);
}
.storefront #smartFilterApply:hover::before { left: 125%; }
.storefront #smartFilterApply:active,
.storefront #smartFilterReset:active,
.storefront .smart-source-trigger:active { transform: translateY(0) scale(.98); }
.storefront #smartFilterPreview { color: #3c5876; }

@media (max-width: 620px) {
  .storefront .smart-filter-dialog[open] { border-radius: 16px; }
  .storefront .smart-dialog-head { min-height: 76px; padding: 12px 16px; }
  .storefront .smart-dialog-head small { font-size: 8px; }
  .storefront .smart-dialog-head h2 { font-size: 20px; }
  .storefront .smart-filter-dialog[open] .smart-dialog-body,
  .storefront .smart-filter-dialog.is-supplier .smart-dialog-body { gap: 9px; margin-block: 10px; }
  .storefront .smart-dialog-body > .smart-filter-section:hover,
  .storefront .smart-dialog-body > .smart-filter-section:focus-within { transform: none; }
  .storefront .smart-dialog-foot { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront .smart-filter-dialog *,
  .storefront .smart-filter-dialog *::before,
  .storefront .smart-filter-dialog *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
