/* The inline filter workspace reads as one ordered list, not a grid of cards. */
.storefront .smart-filter-dialog[open] {
  border-color: #dce5ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 17px 42px #19355013;
}
.storefront .catalog-toolbar.is-filter-open { overflow-anchor: none; }
.storefront .smart-dialog-head { padding: 19px 25px 16px; border-bottom: 1px solid #e7edf3; }
.storefront .smart-dialog-head h2 { font-size: 22px; }
.storefront .smart-dialog-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-height: none;
  overflow: visible;
  padding: 0 25px;
  background: #fff;
}
.storefront .smart-filter-section {
  display: grid;
  grid-template-columns: minmax(190px, 26%) minmax(0, 1fr);
  align-items: start;
  gap: 11px 25px;
  min-width: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid #e7edf3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.storefront .smart-filter-section:last-child { border-bottom: 0; }
.storefront .smart-filter-section-title { grid-column: 1; grid-row: 1 / span 2; display: block; margin: 0; }
.storefront .smart-filter-section-title h3 { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35; }
.storefront .smart-filter-section-title span { display: block; margin: 6px 0 0 34px; color: #8496a9; font-size: 11px; line-height: 1.45; text-align: left; }
.storefront .smart-section-icon { display: grid; place-items: center; flex: none; width: 25px; height: 25px; margin: 0; border-radius: 7px; background: #fff0f3; color: #c1143a; }
.storefront .smart-section-icon svg { width: 16px; height: 16px; }
.storefront .smart-source-picker,
.storefront .smart-filter-section > select,
.storefront .smart-attribute-options { grid-column: 2; min-width: 0; }
.storefront .smart-source-picker { max-width: 560px; }
.storefront .smart-filter-section > select { max-width: 360px; }
.storefront .smart-source-trigger { min-height: 48px; border-color: #d8e2ec; border-radius: 11px; box-shadow: 0 3px 9px #1a355009; }
.storefront #smartCategorySearch,
.storefront #smartCountrySearch { grid-column: 2; grid-row: 1; height: 45px; padding: 0 14px; border-color: #d8e2ec; border-radius: 11px; background: #f9fbfd; font-size: 13px; }
.storefront #smartCategoryOptions,
.storefront #smartCountryOptions { grid-column: 2; grid-row: 2; margin: 0; }
.storefront .smart-option-list { display: grid; gap: 6px; max-height: 278px; overflow-y: auto; padding: 2px 4px 2px 0; scrollbar-color: #c9d4e0 transparent; scrollbar-width: thin; }
.storefront .smart-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 47px;
  padding: 8px 12px;
  border: 1px solid #e2e9f1;
  border-radius: 11px;
  background: #fff;
  color: #213b57;
  font-size: 12px;
  font-weight: 750;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.storefront .smart-option:hover { transform: translateX(2px); border-color: #d39aaa; background: #fff9fa; }
.storefront .smart-option.is-selected { border-color: #dc839b; background: #fff1f5; box-shadow: inset 3px 0 #c61139; }
.storefront .smart-option input { display: grid; place-items: center; flex: none; width: 18px; height: 18px; margin: 0; appearance: none; border: 1.5px solid #adbfce; border-radius: 5px; background: #fff; cursor: pointer; }
.storefront .smart-option input::after { width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; content: ''; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .15s ease; }
.storefront .smart-option input:checked { border-color: #c61139; background: #c61139; }
.storefront .smart-option input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.storefront .smart-option input:focus-visible { outline: 3px solid #c6113950; outline-offset: 2px; }
.storefront #smartCategoryOptions .smart-option img { flex: none; width: 30px; height: 30px; padding: 4px; border: 1px solid #e7edf4; border-radius: 8px; background: #f5f8fb; }
.storefront .smart-option span { min-width: 0; flex: 1; line-height: 1.35; }
.storefront .smart-option small { flex: none; padding: 4px 7px; border-radius: 6px; background: #f4f7fa; color: #697f97; font-size: 10px; font-weight: 800; }
.storefront .smart-option.is-selected small { background: #fff; color: #b9183c; }
.storefront #smartPriceSection .smart-price-slider { grid-column: 2; grid-row: 1; min-width: 0; }
.storefront .smart-price-slider-caption { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #63778e; font-size: 11px; }
.storefront .smart-price-slider-caption strong { color: #1c3551; font-size: 12px; }
.storefront .smart-price-slider-caption span { color: #b7163b; font-weight: 800; text-align: right; }
.storefront .smart-price-track { position: relative; height: 32px; margin: 9px 4px 0; }
.storefront .smart-price-track::before,
.storefront .smart-price-track-fill { position: absolute; top: 13px; height: 6px; border-radius: 9px; content: ''; }
.storefront .smart-price-track::before { right: 0; left: 0; background: #e7edf3; }
.storefront .smart-price-track-fill { left: 0; right: 0; background: linear-gradient(90deg, #df3156, #a90f32); }
.storefront .smart-price-track input[type="range"] { position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; padding: 0; appearance: none; background: transparent; pointer-events: none; }
.storefront .smart-price-track #smartPriceMinRange { z-index: 2; }
.storefront .smart-price-track #smartPriceMaxRange { z-index: 3; }
.storefront .smart-price-track input[type="range"]::-webkit-slider-thumb { width: 21px; height: 21px; appearance: none; border: 4px solid #fff; border-radius: 50%; background: #bd1439; box-shadow: 0 0 0 1px #bd1439, 0 3px 9px #bd14394d; cursor: grab; pointer-events: auto; }
.storefront .smart-price-track input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 4px solid #fff; border-radius: 50%; background: #bd1439; box-shadow: 0 0 0 1px #bd1439, 0 3px 9px #bd14394d; cursor: grab; pointer-events: auto; }
.storefront .smart-price-track input[type="range"]:focus-visible { outline: none; }
.storefront .smart-price-track input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px #c6113952; }
.storefront .smart-price-scale { position: relative; height: 18px; margin: 0 1px 12px; color: #8b9bae; font-size: 10px; font-weight: 700; }
.storefront .smart-price-scale span { position: absolute; top: 0; white-space: nowrap; }
.storefront .smart-price-scale span:nth-child(1) { left: 0; }
.storefront .smart-price-scale span:nth-child(2) { left: 32%; transform: translateX(-50%); }
.storefront .smart-price-scale span:nth-child(3) { left: 64%; transform: translateX(-50%); }
.storefront .smart-price-scale span:nth-child(4) { right: 0; }
.storefront .smart-price-fields { grid-column: 2; grid-row: 2; gap: 10px; }
.storefront .smart-price-fields { max-width: 560px; }
.storefront .smart-price-fields label { color: #596f88; font-size: 11px; font-weight: 800; }
.storefront .smart-price-fields input { height: 45px; border-color: #d8e2ec; border-radius: 10px; background: #fff; font-size: 13px; }
.storefront #smartStockSection { padding: 17px 0; }
.storefront .smart-switch-row { grid-column: 1 / -1; width: 100%; padding: 0; }
.storefront .smart-switch-row > span { gap: 5px; }
.storefront .smart-switch-row strong { color: #203a56; font-size: 14px; }
.storefront .smart-switch-row small { color: #8496a9; font-size: 11px; }
.storefront .smart-switch-row input { position: relative; flex: none; width: 42px; height: 24px; margin: 0; appearance: none; border: 1px solid #cbd7e3; border-radius: 20px; background: #e8eef4; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.storefront .smart-switch-row input::before { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px #132c4829; content: ''; transition: transform .2s ease; }
.storefront .smart-switch-row input:checked { border-color: #bd1439; background: #bd1439; }
.storefront .smart-switch-row input:checked::before { transform: translateX(18px); }
.storefront .smart-switch-row input:focus-visible { outline: 3px solid #c6113950; outline-offset: 2px; }
.storefront .smart-dialog-foot { padding: 14px 25px; border-top-color: #e7edf3; background: #fbfcfe; }
@media (max-width: 760px) {
  .storefront .smart-dialog-body { padding: 0 17px; }
  .storefront .smart-filter-section { grid-template-columns: minmax(145px, 30%) minmax(0, 1fr); gap: 10px 15px; }
  .storefront .smart-dialog-foot { padding: 12px 17px; }
}
@media (max-width: 620px) {
  .storefront .smart-filter-dialog[open] { border-radius: 14px; }
  .storefront .smart-dialog-head { padding: 15px 16px 12px; }
  .storefront .smart-dialog-body { max-height: min(580px, 62dvh); overflow-y: auto; padding: 0 15px; }
  .storefront .smart-filter-section { display: block; padding: 17px 0; }
  .storefront .smart-filter-section-title { margin-bottom: 11px; }
  .storefront .smart-filter-section-title span { margin-left: 35px; }
  .storefront #smartCategoryOptions,
  .storefront #smartCountryOptions { margin-top: 9px; }
  .storefront .smart-option-list { max-height: 240px; }
  .storefront .smart-option { min-height: 45px; padding: 7px 9px; font-size: 11px; }
  .storefront .smart-price-slider-caption { font-size: 10px; }
  .storefront .smart-price-scale { font-size: 9px; }
  .storefront .smart-dialog-foot { padding: 11px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront .smart-option, .storefront .smart-option input::after,
  .storefront .smart-switch-row input, .storefront .smart-switch-row input::before { transition: none; }
}

/* A single quiet search field and one shared alignment line for filter controls. */
.storefront .catalog-toolbar .catalog-product-search {
  height: 56px;
  min-height: 56px;
  gap: 0;
  padding: 0 62px 0 19px;
  border: 1px solid #d5e0e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.storefront .catalog-toolbar .catalog-product-search:hover { border-color: #b7c8d8; box-shadow: none; }
.storefront .catalog-toolbar .catalog-product-search:focus-within { border-color: #c71940; box-shadow: 0 0 0 3px #c7194017; }
.storefront .catalog-toolbar .catalog-product-search input { height: 40px; font-size: 15px; font-weight: 600; }
.storefront .catalog-toolbar .catalog-product-search input::placeholder { color: #899aae; font-weight: 550; }
.storefront .catalog-search-submit {
  top: 6px;
  right: 7px;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: transparent;
  color: #bd163d;
  box-shadow: none;
}
.storefront .catalog-search-submit svg { width: 22px; height: 22px; }
.storefront .catalog-search-submit:hover { transform: none; background: #fff1f4; color: #aa1236; box-shadow: none; }
.storefront .catalog-search-submit:hover svg { transform: none; }
.storefront .smart-filter-open { min-height: 56px; border-radius: 12px; }
.storefront .smart-filter-section { max-width: 1010px; grid-template-columns: minmax(190px, 26%) minmax(0, 1fr); gap: 11px 24px; }
.storefront .smart-source-picker,
.storefront .smart-filter-section > select,
.storefront #smartCategorySearch,
.storefront #smartCountrySearch,
.storefront #smartCategoryOptions,
.storefront #smartCountryOptions,
.storefront .smart-attribute-options,
.storefront #smartPriceSection .smart-price-slider,
.storefront .smart-price-fields { width: 100%; max-width: 670px; }
.storefront .smart-option-list { max-height: 263px; }
.storefront .smart-option { font-size: 13px; }
.storefront #smartStockSection .smart-switch-row {
  display: grid;
  grid-template-columns: minmax(190px, 26%) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.storefront #smartStockSection .smart-switch-row > span { padding-left: 34px; }
.storefront #smartStockSection .smart-switch-row small { margin-left: 34px; }
.storefront #smartStockSection .smart-switch-row input { justify-self: start; }
@media (max-width: 760px) {
  .storefront .smart-filter-section,
  .storefront #smartStockSection .smart-switch-row { grid-template-columns: minmax(145px, 30%) minmax(0, 1fr); gap: 15px; }
}
@media (max-width: 620px) {
  .storefront .catalog-toolbar .catalog-product-search { height: 54px; min-height: 54px; padding: 0 57px 0 15px; }
  .storefront .catalog-toolbar .catalog-product-search input { height: 38px; font-size: 14px; }
  .storefront .catalog-search-submit { top: 5px; right: 6px; width: 44px; height: 44px; }
  .storefront .smart-filter-section { display: block; }
  .storefront #smartStockSection .smart-switch-row { display: flex; justify-content: space-between; gap: 14px; }
  .storefront .smart-option-list { max-height: 202px; }
  .storefront .smart-option { font-size: 12px; }
}

/* The icon and helper line share the same text edge in every filter row. */
.storefront .smart-filter-section-title h3 .smart-section-icon,
.storefront .smart-switch-row strong .smart-section-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid #f3dce3;
  border-radius: 11px;
  background: linear-gradient(145deg,#fff5f7,#ffe8ee);
  color: #c3113b;
}
.storefront .smart-filter-section-title .smart-section-icon svg,
.storefront .smart-switch-row .smart-section-icon svg { width: 23px; height: 23px; }
.storefront .smart-filter-section-title h3,
.storefront .smart-switch-row strong { gap: 10px; }
.storefront .smart-filter-section-title > span:not(.smart-section-icon) { margin-left: 48px; }
.storefront #smartStockSection .smart-switch-row > span { padding-left: 0; }
.storefront #smartStockSection .smart-switch-row small { margin-left: 48px; }

/* The search icon is the one clear action inside the field. */
.storefront .catalog-toolbar .catalog-product-search {
  padding: 0 16px 0 64px;
  border-color: #d9e3ec;
  background: #f9fbfd;
}
.storefront .catalog-toolbar .catalog-product-search:focus-within { background: #fff; }
.storefront .catalog-search-submit {
  right: auto;
  left: 7px;
  border: 1px solid #f3dde4;
  background: #fff;
}
.storefront .catalog-search-submit:hover { border-color: #eeb9c8; background: #fff1f5; }
.storefront .smart-filter-open svg { width: 21px; height: 21px; }
.storefront .smart-filter-open[aria-expanded="true"] svg { transform: none; }

/* Keep each label with its control instead of leaving an empty desktop rail. */
.storefront .smart-dialog-body { max-width: 840px; margin-inline: auto; }
.storefront .smart-filter-section { display: block; max-width: none; padding: 22px 0; }
.storefront .smart-filter-section-title { margin-bottom: 14px; }
.storefront .smart-filter-section-title h3 { font-size: 16px; }
.storefront .smart-filter-section-title > span:not(.smart-section-icon) { margin-top: 4px; }
.storefront .smart-source-picker,
.storefront .smart-filter-section > select,
.storefront #smartCategorySearch,
.storefront #smartCountrySearch,
.storefront #smartCategoryOptions,
.storefront #smartCountryOptions,
.storefront .smart-attribute-options,
.storefront #smartPriceSection .smart-price-slider,
.storefront .smart-price-fields { max-width: none; }
.storefront #smartCategoryOptions,
.storefront #smartCountryOptions { margin-top: 10px; }
.storefront #smartStockSection .smart-switch-row { display: flex; justify-content: space-between; gap: 20px; }
.storefront .smart-switch-row > span { min-width: 0; }
.storefront .smart-switch-row input { margin-left: auto; }
@media(max-width:620px) {
  .storefront .smart-filter-section { padding: 18px 0; }
  .storefront .smart-filter-section-title h3 { font-size: 14px; }
}

/* One compact entry point replaces the duplicate category list. */
.storefront #smartCategorySection { display: none !important; }
.storefront #smartSourceSection {
  display: grid;
  grid-template-columns: minmax(210px, 34%) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}
.storefront #smartSourceSection .smart-filter-section-title { margin: 0; }
.storefront #smartSourceSection .smart-source-picker { grid-column: 2; }
.storefront #smartSourceSection .smart-source-options { max-height: 290px; }
@media(max-width:620px) {
  .storefront #smartSourceSection { display: block; }
  .storefront #smartSourceSection .smart-filter-section-title { margin-bottom: 12px; }
  .storefront #smartSourceSection .smart-source-options { max-height: 240px; }
}

/* A clear route to the support page, matching the finder rather than a messenger ad. */
.storefront .catalog-support-desktop {
  width: 318px;
  min-height: 64px;
  padding: 8px 10px 8px 9px;
  border-color: #dce5ee;
  background: #fff;
  box-shadow: 0 7px 20px #17334d0b;
}
.storefront .catalog-support-desktop:hover { border-color: #c8d8e7; box-shadow: 0 12px 26px #17334d17; }
.storefront .catalog-support-desktop-icon {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, #d31a43, #ab0c32);
  color: #fff;
}
.storefront .catalog-support-desktop-icon svg { width: 23px; height: 23px; }
.storefront .catalog-support-desktop-copy strong { font-size: 14px; }
.storefront .catalog-support-desktop-copy small { color: #74889d; font-size: 10px; }
.storefront .catalog-support-desktop > svg {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 9px;
  background: #f5f7fa;
  color: #bd153c;
}
@media (max-width: 620px) {
  .storefront .catalog-toolbar .catalog-product-search { padding: 0 12px 0 59px; }
  .storefront .catalog-search-submit { left: 5px; }
}
@media (max-width: 800px) {
  .storefront .catalog-support-banner { border-color: #dce5ee; background: #fff; box-shadow: 0 7px 20px #17334d0b; }
  .storefront .catalog-support-icon { border: 0; background: linear-gradient(145deg, #d31a43, #ab0c32); color: #fff; }
  .storefront .catalog-support-icon svg { width: 23px; height: 23px; }
  .storefront .catalog-support-arrow { font-size: 23px; }
}
