/* Final catalog controls: a compact picker and clear, aligned filter rows. */
.storefront .catalog-toolbar .catalog-product-search {
  border-color: #d8e2ec;
  box-shadow: 0 5px 18px #19354d0b;
}
.storefront .catalog-toolbar .catalog-product-search:focus-within {
  border-color: #bf2143;
  box-shadow: 0 0 0 3px #bf21431a, 0 9px 22px #19354d11;
}
.storefront .catalog-search-submit { background: #fff7f9; }
.storefront .smart-filter-open { box-shadow: 0 7px 18px #a5093130; }
.storefront .smart-filter-open:hover { box-shadow: 0 10px 24px #a5093140; }

.storefront .smart-filter-dialog[open] { border-radius: 16px; }
.storefront .smart-dialog-head { padding: 19px 25px; }
.storefront .smart-dialog-head h2 { font-size: 22px; }
.storefront .smart-dialog-body {
  max-height: none;
  overflow: visible;
  scroll-behavior: auto;
  width: calc(100% - 42px);
  margin: 16px auto 17px;
  padding: 0 26px;
  border-radius: 17px;
  border-color: #dce5ed;
  background: #fff;
  box-shadow: 0 12px 32px #18354d0a;
}
.storefront .smart-filter-section,
.storefront #smartSourceSection { border-color: #e8eef4; }
.storefront .smart-filter-section:focus-within,
.storefront #smartSourceSection:focus-within { border-color: #e8eef4; box-shadow: none; }
.storefront #smartSourceSection {
  grid-template-columns: minmax(190px, 24%) minmax(0, 1fr);
  align-items: center;
  column-gap: 25px;
  row-gap: 0;
  padding: 21px 0;
}
.storefront #smartSourceSection .smart-filter-section-title { align-self: center; padding: 0; }
.storefront .smart-filter-section-title h3,
.storefront #smartStockSection .smart-switch-row strong { color: #1a304b; font-size: 14px; font-weight: 800; }
.storefront .smart-filter-section-title > span:not(.smart-section-icon),
.storefront #smartStockSection .smart-switch-row small { color: #8396ab; }
.storefront .smart-filter-section-title h3 .smart-section-icon,
.storefront .smart-switch-row strong .smart-section-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #f3dce3;
  border-radius: 9px;
  background: #fff5f7;
}
.storefront .smart-filter-section-title h3 .smart-section-icon svg,
.storefront .smart-switch-row strong .smart-section-icon svg { width: 17px; height: 17px; }
.storefront .smart-filter-section-title > span:not(.smart-section-icon),
.storefront #smartStockSection .smart-switch-row small { margin-left: 42px; }
.storefront #smartSourceSection .smart-source-picker {
  grid-column: 2;
  max-width: none;
}
.storefront .smart-source-trigger {
  min-height: 58px;
  padding: 8px 14px;
  border-color: #d6e1eb;
  border-radius: 12px;
  background: #fbfcfe;
  box-shadow: none;
}
.storefront .smart-source-trigger:hover,
.storefront .smart-source-trigger[aria-expanded="true"] {
  border-color: #d992a4;
  background: #fff;
  box-shadow: 0 0 0 3px #bf214312;
}
.storefront .smart-source-trigger img {
  width: 38px;
  height: 38px;
  padding: 5px;
  border: 1px solid #ebeff4;
  border-radius: 10px;
  background: #fff;
}
.storefront .smart-source-copy strong { font-size: 13px; }
.storefront .smart-source-copy small { font-size: 10px; }
.storefront #smartSourceSection > .smart-source-menu {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: none;
  margin: 11px 0 0;
  padding: 13px;
  border: 1px solid #dbe4ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 26px #19354d12;
}
.storefront .smart-source-search {
  height: 44px;
  border-color: #dbe4ee;
  border-radius: 9px;
  background: #f8fafc;
}
.storefront .smart-source-search:focus-within {
  border-color: #c43a5b;
  box-shadow: 0 0 0 3px #c43a5b12;
}
.storefront .smart-source-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 290px;
  margin-top: 9px;
  padding: 1px 3px 3px 1px;
  scrollbar-width: thin;
  scrollbar-color: #c8d4e0 transparent;
}
.storefront .smart-source-heading {
  margin: 10px 3px 0;
  padding-top: 4px;
  color: #778ca3;
  font-size: 10px;
  letter-spacing: .1em;
}
.storefront .smart-source-option {
  min-height: 58px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e3eaf2;
  border-radius: 10px;
  background: #fbfcfe;
  text-align: left;
  transform: none;
  box-shadow: none;
}
.storefront .smart-source-option:hover,
.storefront .smart-source-option:focus-visible {
  border-color: #d99aac;
  background: #fff7f9;
  transform: none;
  box-shadow: 0 3px 9px #bd214314;
}
.storefront .smart-source-option[aria-pressed="true"] {
  border-color: #ce738c;
  background: #fff0f4;
}
.storefront .smart-source-option img {
  width: 34px;
  height: 34px;
  padding: 4px;
  border: 1px solid #e8edf3;
  border-radius: 9px;
  background: #fff;
}
.storefront .smart-source-option-label { min-width: 0; }
.storefront .smart-source-option-label strong { font-size: 12px; line-height: 1.25; }
.storefront .smart-source-option-label small { margin-top: 3px; font-size: 10px; }
.storefront .smart-source-option[aria-pressed="true"] .smart-source-check {
  margin-left: auto;
  border-radius: 7px;
}
.storefront #smartSourceSearch:focus,
.storefront #smartSourceSearch:focus-visible { outline: 0 !important; box-shadow: none !important; }

.storefront #smartPriceSection { padding-top: 24px; padding-bottom: 24px; }
.storefront .smart-price-slider-caption { align-items: center; }
.storefront #smartPriceRangeLabel { max-width: 57%; text-align: right; }
.storefront .smart-price-fields input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
  min-height: 47px;
  border-color: #d5e0eb;
  background: #fbfcfe;
}
.storefront .smart-price-fields input[type="number"]::-webkit-inner-spin-button,
.storefront .smart-price-fields input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.storefront .smart-price-fields input[type="number"]:focus { background: #fff; }
.storefront #smartStockSection .smart-switch-row { min-height: 88px; }
.storefront #smartStockSection .smart-switch-row > span { padding-left: 0; }
.storefront #smartStockSection .smart-switch-row small { margin-left: 42px; }
.storefront .smart-sort-choices { gap: 8px; }
.storefront .smart-sort-choice { min-height: 43px; border-radius: 9px; background: #fbfcfe; }
.storefront .smart-dialog-foot { min-height: 72px; padding: 12px 25px; }
.storefront #smartFilterApply { min-height: 46px; border-radius: 10px; }

@media (max-width: 760px) {
  .storefront .smart-dialog-body { width: calc(100% - 28px); padding: 0 18px; }
  .storefront #smartSourceSection { grid-template-columns: minmax(160px, 30%) minmax(0, 1fr); column-gap: 15px; }
  .storefront #smartSourceSection > .smart-source-menu { grid-column: 2; }
}
@media (max-width: 620px) {
  .storefront .smart-dialog-body {
    width: calc(100% - 18px);
    max-height: min(68dvh, 690px);
    overflow-y: auto;
    margin: 9px auto;
    padding: 0 15px;
  }
  .storefront #smartSourceSection { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 17px 0; }
  .storefront #smartSourceSection .smart-source-picker { width: 100%; }
  .storefront #smartSourceSection > .smart-source-menu { width: 100%; margin: 0; padding: 9px; }
  .storefront .smart-source-options { grid-template-columns: minmax(0, 1fr); max-height: min(280px, 42dvh); }
  .storefront .smart-source-option { min-height: 52px; }
  .storefront .smart-filter-section-title > span:not(.smart-section-icon),
  .storefront #smartStockSection .smart-switch-row small { margin-left: 42px; }
  .storefront #smartStockSection .smart-switch-row { min-height: 0; }
  .storefront .smart-dialog-foot { min-height: 76px; padding: 10px 13px; }
  .storefront #smartFilterPreview { flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront .smart-source-option,
  .storefront .smart-source-trigger { transition: none; }
}
