.web-advanced-search-page {
  --advanced-card-radius: 18px;
  --advanced-border: 1px solid var(--surface-border);
  display: grid;
  gap: 16px;
}

.web-advanced-search-page:not(.web-storefront-page) {
  padding: clamp(12px, 2vw, 20px);
}

.web-advanced-search-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: var(--advanced-border);
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(560px 260px at -6% -20%, color-mix(in srgb, var(--primary-300) 82%, #fff 18%), transparent 74%),
    linear-gradient(140deg, color-mix(in srgb, var(--bg-100) 88%, #fff 12%), var(--bg-100));
}

.web-advanced-search-hero h1 {
  margin: 0 0 6px;
  color: var(--text-100);
  font-size: clamp(1.25rem, 2.4vw, 1.78rem);
}

.web-advanced-search-hero p {
  margin: 0;
  color: var(--text-200);
  font-size: 14px;
  max-width: 720px;
}

.web-advanced-back-link {
  flex-shrink: 0;
  border: var(--advanced-border);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-100);
  background: var(--surface-card);
  text-decoration: none;
}

.web-advanced-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.web-advanced-mobile-filters-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--bg-100);
  background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.web-advanced-sidebar {
  border: var(--advanced-border);
  border-radius: 18px;
  background: var(--surface-card);
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 104px);
  display: flex;
  flex-direction: column;
}

.web-advanced-sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--surface-border);
}

.web-advanced-sidebar-head h2 {
  margin: 0;
  font-size: 16px;
  color: var(--text-100);
}

.web-advanced-sidebar-head p {
  margin: 4px 0 0;
  color: var(--text-200);
  font-size: 12px;
}

.web-advanced-sidebar-close {
  border: 0;
  background: transparent;
  color: var(--text-200);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: none;
}

.web-advanced-sidebar-content {
  padding: 12px;
  overflow-y: auto;
  min-height: 0;
  display: grid;
  gap: 11px;
}

.web-advanced-field {
  display: grid;
  gap: 6px;
}

.web-advanced-field.is-select-field {
  position: relative;
}

.web-advanced-field[hidden],
.web-advanced-field.is-hidden {
  display: none !important;
}

.web-advanced-field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-200);
}

.web-advanced-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.web-advanced-field input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  min-height: 40px;
  padding: 0 12px;
  background: var(--surface-card);
  color: var(--text-100);
  font-size: 14px;
}

.web-advanced-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  min-height: 44px;
  padding: 0 42px 0 12px;
  background-color: color-mix(in srgb, var(--surface-card) 94%, #fff 6%);
  background-image:
    linear-gradient(45deg, transparent 50%, color-mix(in srgb, var(--text-200) 84%, var(--text-100) 16%) 50%),
    linear-gradient(135deg, color-mix(in srgb, var(--text-200) 84%, var(--text-100) 16%) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--text-100);
  font-size: 14px;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--surface-border) 24%, transparent 76%) inset,
    0 8px 18px color-mix(in srgb, var(--text-100) 4%, transparent 96%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.web-advanced-field select:focus,
.web-advanced-field select:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--primary-200) 54%, var(--surface-border) 46%);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--primary-300) 20%, transparent 80%),
    0 1px 0 color-mix(in srgb, var(--surface-border) 24%, transparent 76%) inset;
  background-color: color-mix(in srgb, var(--surface-card) 98%, #fff 2%);
}

.web-advanced-field select:disabled {
  cursor: not-allowed;
  color: var(--text-200);
  background-color: color-mix(in srgb, var(--surface-muted) 96%, #fff 4%);
  box-shadow: none;
}

.web-advanced-select-shell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  z-index: 1;
}

.web-advanced-select-face {
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--surface-card) 94%, #fff 6%);
  color: var(--text-100);
  font-size: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--surface-border) 24%, transparent 76%) inset,
    0 8px 18px color-mix(in srgb, var(--text-100) 4%, transparent 96%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.web-advanced-select-leading {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--surface-muted) 86%, #fff 14%);
  color: color-mix(in srgb, var(--text-100) 78%, var(--primary-100) 22%);
  flex-shrink: 0;
}

.web-advanced-select-leading svg {
  width: 16px;
  height: 16px;
  display: block;
}

.web-advanced-select-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.web-advanced-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.25;
}

.web-advanced-select-shell.is-placeholder .web-advanced-select-value {
  color: var(--text-200);
  font-weight: 600;
}

.web-advanced-select-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--text-200) 86%, var(--text-100) 14%);
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.web-advanced-select-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.web-advanced-select-shell select {
  display: none !important;
}

.web-advanced-select-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max(100%, 270px);
  max-width: min(92vw, 360px);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 10px;
  background: color-mix(in srgb, var(--surface-card) 98%, #fff 2%);
  box-shadow:
    0 20px 40px color-mix(in srgb, var(--text-100) 9%, transparent 91%),
    0 1px 0 color-mix(in srgb, var(--surface-border) 24%, transparent 76%) inset;
  display: none;
  gap: 8px;
  z-index: 40;
}

.web-advanced-select-shell.is-end-aligned .web-advanced-select-panel {
  left: auto;
  right: 0;
}

.web-advanced-select-shell.is-open {
  z-index: 45;
}

.web-advanced-select-shell.is-open .web-advanced-select-panel {
  display: grid;
}

.web-advanced-select-shell.is-open .web-advanced-select-icon {
  transform: rotate(180deg);
}

.web-advanced-select-shell.is-drop-up .web-advanced-select-panel {
  top: auto;
  bottom: calc(100% + 8px);
}

.web-advanced-select-search-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px 0 10px;
  background: color-mix(in srgb, var(--surface-muted) 88%, #fff 12%);
  transition: background 0.2s ease;
}

.web-advanced-select-search-wrap:focus-within {
  border-color: transparent;
  box-shadow: none;
  background: color-mix(in srgb, var(--surface-muted) 78%, #fff 22%);
}

.web-advanced-select-search-icon {
  position: static;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-200);
  pointer-events: none;
  z-index: auto;
}

.web-advanced-select-search-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.web-advanced-select-search {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 0 !important;
  outline: 0 !important;
  border-color: transparent !important;
  border-radius: 0;
  padding: 0 0 0 10px;
  background: transparent !important;
  color: var(--text-100);
  font-size: 13px;
  line-height: 1.2;
  text-indent: 0;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
}

.web-advanced-select-search:focus,
.web-advanced-select-search:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  background: transparent !important;
}

.web-advanced-select-search::placeholder {
  color: var(--text-200);
}

.web-advanced-select-search::-webkit-search-decoration,
.web-advanced-select-search::-webkit-search-cancel-button,
.web-advanced-select-search::-webkit-search-results-button,
.web-advanced-select-search::-webkit-search-results-decoration {
  display: none;
}

.web-advanced-select-options {
  display: grid;
  gap: 4px;
  max-height: min(260px, 48vh);
  overflow-y: auto;
  padding-right: 2px;
}

.web-advanced-select-option {
  width: 100%;
  border: 0;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 10px;
  background: transparent;
  color: var(--text-100);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.web-advanced-select-option:hover:not(:disabled),
.web-advanced-select-option:focus-visible {
  background: color-mix(in srgb, var(--surface-muted) 88%, #fff 12%);
  outline: 0;
}

.web-advanced-select-option.is-active {
  background: color-mix(in srgb, var(--primary-300) 16%, var(--surface-card) 84%);
  color: var(--text-100);
}

.web-advanced-select-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.web-advanced-select-option-indicator,
.web-advanced-select-option-check {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.web-advanced-select-option-indicator {
  color: color-mix(in srgb, var(--text-200) 72%, var(--surface-border) 28%);
}

.web-advanced-select-option-check {
  color: color-mix(in srgb, var(--primary-100) 70%, var(--text-100) 30%);
}

.web-advanced-select-option-indicator svg,
.web-advanced-select-option-check svg {
  width: 15px;
  height: 15px;
  display: block;
}

.web-advanced-select-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.web-advanced-select-empty {
  min-height: 56px;
  border: 1px dashed color-mix(in srgb, var(--surface-border) 82%, #fff 18%);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  place-items: center;
  color: var(--text-200);
  font-size: 12px;
  text-align: center;
  background: color-mix(in srgb, var(--surface-muted) 78%, #fff 22%);
}

.web-advanced-select-shell:focus-within .web-advanced-select-face,
.web-advanced-select-shell.is-open .web-advanced-select-face {
  border-color: color-mix(in srgb, var(--primary-200) 54%, var(--surface-border) 46%);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--primary-300) 20%, transparent 80%),
    0 1px 0 color-mix(in srgb, var(--surface-border) 24%, transparent 76%) inset;
  background: color-mix(in srgb, var(--surface-card) 98%, #fff 2%);
}

.web-advanced-select-shell:focus-within .web-advanced-select-icon {
  color: color-mix(in srgb, var(--primary-100) 72%, var(--text-100) 28%);
}

.web-advanced-select-shell.is-disabled .web-advanced-select-face {
  background: color-mix(in srgb, var(--surface-muted) 96%, #fff 4%);
  color: var(--text-200);
  box-shadow: none;
  cursor: not-allowed;
}

.web-advanced-select-shell.is-disabled .web-advanced-select-icon {
  color: color-mix(in srgb, var(--text-200) 72%, transparent 28%);
}

.web-advanced-field.is-disabled > span {
  color: var(--text-200);
}

.web-advanced-field-switch {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface-muted);
}

.web-advanced-field-switch input {
  width: 18px;
  height: 18px;
  margin: 0;
  min-height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.web-advanced-field-switch span {
  margin: 0;
  font-size: 13px;
  color: var(--text-100);
}

.web-advanced-price-panel,
.web-advanced-attributes-panel {
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 10px;
  background: var(--surface-muted);
}

.web-advanced-price-panel h3,
.web-advanced-attributes-panel h3 {
  margin: 0;
  font-size: 13px;
  color: var(--text-100);
}

.web-advanced-price-panel p,
.web-advanced-attributes-panel p {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--text-200);
}

.web-advanced-price-values {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.web-advanced-price-values strong {
  font-size: 12px;
  color: var(--text-100);
}

.web-advanced-price-sliders {
  --price-from: 0%;
  --price-to: 100%;
  position: relative;
  margin-top: 11px;
  height: 48px;
  cursor: pointer;
}

.web-advanced-price-click-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.web-advanced-price-sliders::before,
.web-advanced-price-sliders::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 999px;
}

.web-advanced-price-sliders::before {
  background: color-mix(in srgb, var(--bg-300) 82%, #fff 18%);
}

.web-advanced-price-sliders::after {
  left: var(--price-from);
  right: calc(100% - var(--price-to));
  background: linear-gradient(90deg, var(--primary-100), var(--accent-100));
}

.web-advanced-price-sliders input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  top: 25%;
  width: 100%;
  height: 0;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  z-index: 3;
}

.web-advanced-price-sliders input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--primary-100);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .24);
}

.web-advanced-price-sliders input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--primary-100);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .24);
}

.web-advanced-price-sliders input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border: 0;
}

.web-advanced-price-sliders input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
  border: 0;
}

#advanced-price-range-min::-webkit-slider-thumb {
  background: var(--primary-100);
}

#advanced-price-range-max::-webkit-slider-thumb {
  background: var(--accent-100);
}

#advanced-price-range-min::-moz-range-thumb {
  background: var(--primary-100);
}

#advanced-price-range-max::-moz-range-thumb {
  background: var(--accent-100);
}

#advanced-price-range-min {
  z-index: 4;
}

#advanced-price-range-max {
  z-index: 5;
}

.web-advanced-price-sliders input[type="range"]:disabled::-webkit-slider-thumb,
.web-advanced-price-sliders input[type="range"]:disabled::-moz-range-thumb {
  opacity: .45;
}

.web-advanced-attribute-groups {
  margin-top: 9px;
  display: grid;
  gap: 8px;
}

.web-advanced-attribute-group {
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 9px;
  background: var(--surface-card);
}

.web-advanced-attribute-group h4 {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-100);
}

.web-advanced-attribute-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.web-advanced-attribute-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-100);
  cursor: pointer;
  background: var(--surface-muted);
}

.web-advanced-attribute-option input {
  width: 13px;
  height: 13px;
  margin: 0;
}

.web-advanced-attribute-empty {
  color: var(--text-200);
  font-size: 12px;
  padding: 7px 0;
}

.web-advanced-actions {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--surface-border);
  display: flex;
  gap: 8px;
}

.web-advanced-reset,
.web-advanced-submit,
.web-advanced-query-submit,
.web-advanced-load-more {
  border: 0;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.web-advanced-reset {
  flex: 1;
  color: var(--text-100);
  background: var(--surface-muted);
}

.web-advanced-submit {
  flex: 1;
  color: var(--bg-100);
  background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.web-advanced-results-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
}

.web-advanced-results-head {
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: var(--surface-card);
  padding: 12px;
}

.web-advanced-query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.web-advanced-field-query {
  gap: 6px;
}

.web-advanced-query-submit {
  color: var(--bg-100);
  background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
  align-self: end;
}

.web-storefront-search-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.web-storefront-query-tool {
  border: 1px solid var(--surface-border);
  background: var(--surface-muted);
  color: var(--text-100);
  min-height: 44px;
  border-radius: 12px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.web-storefront-query-tool svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.web-storefront-query-tool:hover:not(:disabled) {
  transform: none;
  border-color: color-mix(in srgb, var(--primary-200) 42%, var(--surface-border) 58%);
  box-shadow: none;
}

.web-storefront-query-tool.is-active {
  border-color: color-mix(in srgb, var(--primary-200) 48%, var(--surface-border) 52%);
  color: var(--text-100);
  background: color-mix(in srgb, var(--primary-300) 18%, var(--surface-card) 82%);
}

.web-storefront-query-tool.is-busy {
  opacity: .66;
}

.web-storefront-query-tool:disabled {
  cursor: wait;
}

.web-storefront-image-search-state {
  margin-top: 10px;
  border: 1px solid var(--surface-border);
  background: var(--surface-muted);
  border-radius: 14px;
  min-height: 68px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.web-storefront-image-search-state[hidden] {
  display: none !important;
}

.web-storefront-image-search-thumb-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bg-300) 72%, #fff 28%);
  background: var(--bg-200);
}

.web-storefront-image-search-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.web-storefront-image-search-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.web-storefront-image-search-copy strong {
  margin: 0;
  color: var(--text-100);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-storefront-image-search-copy small {
  margin: 0;
  color: var(--text-200);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-storefront-image-search-clear {
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  color: var(--text-100);
  min-height: 34px;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.web-advanced-toolbar {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.web-advanced-toolbar p {
  margin: 0;
  color: var(--text-200);
  font-size: 12px;
  line-height: 1.5;
}

.web-advanced-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.web-advanced-field-sort {
  min-width: 196px;
}

.web-advanced-view-switch {
  display: inline-flex;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow: hidden;
}

.web-advanced-view-switch button {
  border: 0;
  min-height: 40px;
  min-width: 62px;
  background: var(--surface-card);
  color: var(--text-200);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.web-advanced-view-switch button.is-active {
  color: var(--bg-100);
  background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.web-advanced-results-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  justify-content: stretch;
  align-items: stretch;
  gap: clamp(8px, .72vw, 12px);
}

.web-advanced-results-grid.is-list-view {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
}

.web-advanced-results-grid.is-query-loading {
  cursor: progress;
}

.web-advanced-placeholder-card {
  pointer-events: none;
}

.web-advanced-placeholder-card:hover {
  transform: none;
  border-color: var(--surface-border);
  box-shadow: var(--surface-elev-1);
}

.web-advanced-result-card {
  position: relative;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-card);
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-rows: auto minmax(116px, 1fr) auto;
  gap: .46rem;
  isolation: isolate;
  height: 100%;
  min-width: 0;
  padding: .55rem;
  cursor: pointer;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text-100) 5%, transparent);
  transition: box-shadow .2s ease, background-color .2s ease;
}

.web-advanced-result-card:hover {
  background: color-mix(in srgb, var(--surface-card) 96%, var(--primary-300) 4%);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--text-100) 7%, transparent);
}

.web-advanced-result-card.is-live-unavailable {
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text-100) 5%, transparent);
}

.web-advanced-result-card.is-live-low-stock {
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text-100) 5%, transparent);
}

.web-advanced-result-card.is-media-loading .web-advanced-main-link,
.web-advanced-result-card.is-media-loading .web-storefront-similar-btn,
.web-advanced-result-card.is-media-loading .web-advanced-color-swatch {
  pointer-events: none;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-thumb-wrap::before {
  opacity: 1;
  animation: advancedSkeleton 1.15s ease-in-out infinite;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-thumb,
.web-advanced-result-card.is-media-loading .web-advanced-result-thumb-backdrop {
  opacity: 0;
}

.web-advanced-result-card.is-media-loading .web-storefront-similar-btn {
  opacity: 0;
}

.web-advanced-result-status-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.web-advanced-result-status-badge.is-offer {
  background: #a83333;
}

.web-advanced-result-status-badge.is-stockout {
  background: #7a4a00;
  color: #fff7df;
}

.web-advanced-result-match-badge + .web-advanced-result-status-badge {
  top: 36px;
}

.web-advanced-result-thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: color-mix(in srgb, var(--surface-muted) 68%, var(--surface-card) 32%);
  border-radius: 12px;
  margin: 0;
  overflow: hidden;
}

.web-advanced-result-thumb-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface-card) 22%);
  opacity: 0;
  transition: opacity .2s ease;
}

.web-advanced-result-thumb-backdrop {
  display: none;
}

.web-advanced-result-thumb-wrap::after {
  display: none;
}

.web-advanced-result-thumb {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0;
  transition: opacity .2s ease;
}

.web-advanced-result-card:hover .web-advanced-result-thumb {
  transform: none;
}

.web-advanced-result-thumb-wrap.is-fallback {
  background: color-mix(in srgb, var(--bg-200) 82%, #fff 18%);
}

.web-advanced-result-thumb.is-fallback {
  object-fit: contain;
  padding: 14px;
  transform: none;
}

.web-advanced-result-low-stock {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
  max-width: calc(100% - 16px);
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff1bf;
  color: #664000;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(102, 64, 0, .12);
}

.web-advanced-result-low-stock svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: currentColor;
}

.web-advanced-result-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 .08rem .05rem;
  min-width: 0;
}

.web-advanced-result-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 760;
  color: var(--text-100);
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.56em;
  text-decoration: none;
}

.web-advanced-result-title:hover {
  color: var(--primary-100);
}

.web-advanced-result-meta {
  margin: 0;
  color: var(--text-200);
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  min-height: 1.35em;
}

.web-advanced-result-condition-stack {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 21px;
}

.web-advanced-result-condition-stack.is-empty {
  display: none;
}

.web-advanced-result-condition-pill,
.web-advanced-result-stock-pill,
.web-advanced-result-warranty-pill {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 780;
  letter-spacing: .01em;
}

.web-advanced-result-condition-pill {
  color: color-mix(in srgb, var(--primary-100) 82%, #0f172a 18%);
  background: color-mix(in srgb, var(--primary-200) 18%, #fff 82%);
  border: 1px solid color-mix(in srgb, var(--primary-200) 34%, transparent);
}

.web-advanced-result-stock-pill {
  color: var(--text-100);
  background: var(--surface-muted);
  border: 1px solid var(--surface-border);
}

.web-advanced-result-condition-pill.is-low-stock {
  color: #664000;
  background: #fff1bf;
  border-color: color-mix(in srgb, #9a6a00 22%, transparent);
}

.web-advanced-result-warranty-pill {
  color: color-mix(in srgb, var(--success, #16a34a) 82%, #0f172a 18%);
  background: color-mix(in srgb, var(--success, #16a34a) 10%, #fff 90%);
  border: 1px solid color-mix(in srgb, var(--success, #16a34a) 24%, transparent);
}

.web-advanced-result-condition-note {
  margin: 0;
  color: var(--text-200);
  font-size: 11px;
  line-height: 1.4;
  min-height: 1.4em;
}

.web-advanced-result-condition-note.is-empty {
  display: none;
}

.web-advanced-result-price {
  margin: 0;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 25px;
  margin-top: 0;
}

.web-advanced-result-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  order: 40;
}

.web-advanced-result-price-current {
  color: var(--primary-100);
  font-size: 15.5px;
  font-weight: 840;
  line-height: 1.15;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.web-advanced-result-price.is-unavailable {
  align-items: center;
}

.web-advanced-result-price-current.is-unavailable {
  color: #a06400;
  font-size: 15px;
  font-weight: 840;
}

.web-advanced-result-price-before {
  color: var(--text-200);
  text-decoration: line-through;
  font-size: 12px;
  line-height: 1.15;
}

.web-advanced-result-live {
  margin: 0;
  color: var(--text-200);
  font-size: 11px;
  min-height: 1.35em;
  order: 20;
}

.web-advanced-result-live.is-empty {
  display: none;
}

.web-advanced-result-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 21px;
}

.web-advanced-result-badges.is-empty {
  display: none;
}

.web-advanced-result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 760;
  color: var(--text-100);
  background: var(--surface-muted);
  border: 1px solid var(--surface-border);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-advanced-result-swatches {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-height: 33px;
  overflow-x: auto;
  padding: 2px 1px 3px;
  order: 25;
  scrollbar-width: thin;
}

.web-advanced-result-swatches.is-empty {
  display: none;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-title,
.web-advanced-result-card.is-media-loading .web-advanced-result-meta,
.web-advanced-result-card.is-media-loading .web-advanced-result-condition-stack,
.web-advanced-result-card.is-media-loading .web-advanced-result-condition-note,
.web-advanced-result-card.is-media-loading .web-advanced-result-badges,
.web-advanced-result-card.is-media-loading .web-advanced-result-price,
.web-advanced-result-card.is-media-loading .web-advanced-result-live,
.web-advanced-result-card.is-media-loading .web-advanced-result-swatches {
  position: relative;
  color: transparent;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-price-current,
.web-advanced-result-card.is-media-loading .web-advanced-result-price-before {
  color: transparent;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-condition-pill,
.web-advanced-result-card.is-media-loading .web-advanced-result-stock-pill,
.web-advanced-result-card.is-media-loading .web-advanced-result-warranty-pill,
.web-advanced-result-card.is-media-loading .web-advanced-result-badge,
.web-advanced-result-card.is-media-loading .web-advanced-color-swatch {
  opacity: 0;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-condition-stack.is-empty,
.web-advanced-result-card.is-media-loading .web-advanced-result-condition-note.is-empty,
.web-advanced-result-card.is-media-loading .web-advanced-result-badges.is-empty,
.web-advanced-result-card.is-media-loading .web-advanced-result-swatches.is-empty {
  visibility: visible;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-title::after,
.web-advanced-result-card.is-media-loading .web-advanced-result-meta::after,
.web-advanced-result-card.is-media-loading .web-advanced-result-condition-stack::after,
.web-advanced-result-card.is-media-loading .web-advanced-result-condition-note::after,
.web-advanced-result-card.is-media-loading .web-advanced-result-badges::after,
.web-advanced-result-card.is-media-loading .web-advanced-result-price::after,
.web-advanced-result-card.is-media-loading .web-advanced-result-live::after,
.web-advanced-result-card.is-media-loading .web-advanced-result-swatches::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface-card) 22%);
  animation: advancedSkeleton 1.15s ease-in-out infinite;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-title::after {
  width: 92%;
  height: 100%;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-meta::after {
  width: 58%;
  height: 100%;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-condition-stack::after {
  width: 72%;
  height: 24px;
  border-radius: 999px;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-condition-note::after {
  width: 78%;
  height: 100%;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-badges::after {
  width: 66%;
  height: 22px;
  border-radius: 999px;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-price::after {
  width: 44%;
  height: 22px;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-live::after {
  width: 52%;
  height: 100%;
}

.web-advanced-result-card.is-media-loading .web-advanced-result-swatches::after {
  width: 82%;
  height: 34px;
  border-radius: 999px;
}

.web-advanced-color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  border: 0;
  padding: 2px;
  background: var(--surface-card);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--surface-border-strong) 88%, transparent),
    0 1px 2px color-mix(in srgb, var(--text-100) 5%, transparent);
  transition: background-color .18s ease, box-shadow .18s ease;
}

.web-advanced-color-swatch::before,
.web-advanced-color-swatch::after {
  display: none;
}

.web-advanced-color-swatch:hover,
.web-advanced-color-swatch:focus-visible {
  background: color-mix(in srgb, var(--primary-300) 7%, var(--surface-card) 93%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--primary-100) 32%, var(--surface-border-strong) 68%),
    0 1px 3px color-mix(in srgb, var(--primary-100) 7%, transparent);
  outline: none;
}

.web-advanced-color-swatch picture,
.web-advanced-color-swatch img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.web-advanced-color-swatch img {
  object-fit: cover;
  background: var(--surface-muted);
}

.web-advanced-color-swatch.is-active {
  background: color-mix(in srgb, var(--primary-300) 10%, var(--surface-card) 90%);
  box-shadow:
    inset 0 0 0 2px var(--primary-100),
    0 2px 6px color-mix(in srgb, var(--primary-100) 10%, transparent);
}

.web-advanced-results-grid.is-list-view .web-advanced-result-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 0;
}

.web-advanced-results-grid.is-list-view .web-advanced-skeleton-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 0;
}

.web-advanced-results-grid.is-list-view .web-advanced-result-thumb-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.web-advanced-results-grid.is-list-view .web-advanced-result-body {
  padding: 12px;
  align-content: start;
}

.web-advanced-results-grid.is-list-view .web-advanced-skeleton-thumb {
  height: 100%;
  aspect-ratio: auto;
}

.web-advanced-results-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--surface-border);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  color: var(--text-200);
  font-size: 13px;
}

.web-advanced-results-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.web-advanced-load-more {
  color: var(--bg-100);
  background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
  min-width: 220px;
}

.web-advanced-skeleton-card {
  border-color: var(--surface-border);
  border-radius: var(--advanced-card-radius);
  background: var(--surface-card);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.web-advanced-skeleton-card.is-list-skeleton {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}

.web-advanced-skeleton-block {
  display: block;
  background: linear-gradient(90deg, var(--surface-muted) 25%, var(--surface-card) 40%, var(--surface-muted) 60%);
  background-size: 240% 100%;
  animation: advancedSkeleton 1.15s linear infinite;
}

.web-advanced-skeleton-thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.web-advanced-skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  flex: 1;
}

.web-advanced-skeleton-line {
  border-radius: 7px;
  height: 11px;
}

.web-advanced-skeleton-line.w-92 { width: 92%; }
.web-advanced-skeleton-line.w-56 { width: 56%; }
.web-advanced-skeleton-line.w-64 { width: 64%; }
.web-advanced-skeleton-line.w-48 { width: 48%; }

.web-advanced-skeleton-price {
  min-height: 22px;
  width: 44%;
  border-radius: 7px;
  margin-top: 0;
}

.web-advanced-skeleton-title {
  min-height: 36px;
  width: 92%;
  border-radius: 8px;
}

.web-advanced-skeleton-meta {
  min-height: 15px;
  width: 58%;
  border-radius: 6px;
}

.web-advanced-skeleton-badges {
  min-height: 22px;
  width: 66%;
  border-radius: 999px;
}

.web-advanced-skeleton-live {
  min-height: 15px;
  width: 52%;
  border-radius: 6px;
}

.web-advanced-skeleton-swatches {
  min-height: 34px;
  width: 82%;
  border-radius: 999px;
  margin-top: auto;
}

.web-advanced-drawer-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--text-100) 18%, transparent 82%);
  z-index: 1290;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  backdrop-filter: blur(12px);
}

.web-advanced-search-page.is-filters-open .web-advanced-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

@keyframes advancedSkeleton {
  0%,
  100% {
    background-color: color-mix(in srgb, var(--surface-muted) 82%, var(--surface-card) 18%);
  }
  50% {
    background-color: color-mix(in srgb, var(--surface-muted) 58%, var(--surface-card) 42%);
  }
}

@media (min-width: 1041px) {
  .web-advanced-shell.is-filters-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .web-advanced-shell.is-filters-collapsed #advanced-filters-sidebar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .web-advanced-result-card.is-media-loading .web-advanced-result-thumb-wrap::before,
  .web-advanced-result-card.is-media-loading .web-advanced-result-title::after,
  .web-advanced-result-card.is-media-loading .web-advanced-result-meta::after,
  .web-advanced-result-card.is-media-loading .web-advanced-result-condition-stack::after,
  .web-advanced-result-card.is-media-loading .web-advanced-result-condition-note::after,
  .web-advanced-result-card.is-media-loading .web-advanced-result-badges::after,
  .web-advanced-result-card.is-media-loading .web-advanced-result-price::after,
  .web-advanced-result-card.is-media-loading .web-advanced-result-live::after,
  .web-advanced-result-card.is-media-loading .web-advanced-result-swatches::after,
  .web-advanced-skeleton-block {
    animation: none;
  }
}

@media (max-width: 1240px) {
  .web-advanced-results-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .web-advanced-search-page:not(.web-storefront-page) {
    padding: 10px 12px;
  }

  .web-advanced-shell {
    grid-template-columns: 1fr;
  }

  .web-advanced-mobile-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
  }

  .web-advanced-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(90vw, 360px);
    max-height: none;
    z-index: 1300;
    border-radius: 0 18px 18px 0;
    transform: translateX(-104%);
    transition: transform .22s ease;
  }

  .web-advanced-search-page.is-filters-open .web-advanced-sidebar {
    transform: translateX(0);
  }

  .web-advanced-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .web-advanced-results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .web-advanced-search-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .web-advanced-query-row {
    grid-template-columns: 1fr;
  }

  .web-storefront-search-tools {
    width: 100%;
  }

  .web-storefront-query-tool {
    flex: 1;
  }

  .web-advanced-query-submit {
    width: 100%;
  }

  .web-storefront-image-search-state {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    padding: 7px 8px;
  }

  .web-storefront-image-search-thumb-wrap {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .web-advanced-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .web-advanced-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .web-advanced-field-sort {
    min-width: 0;
    flex: 1;
  }

  .web-advanced-select-panel {
    width: 100%;
    max-width: none;
  }

  .web-advanced-select-face {
    min-height: 42px;
    border-radius: 13px;
  }

  .web-advanced-select-leading {
    width: 26px;
    height: 26px;
    border-radius: 9px;
  }

  .web-advanced-select-search {
    min-height: 36px;
  }

  .web-advanced-select-option {
    min-height: 38px;
  }

  .web-advanced-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .web-advanced-results-grid.is-list-view .web-advanced-result-card {
    grid-template-columns: 1fr;
  }

  .web-advanced-results-grid.is-list-view .web-advanced-skeleton-card {
    grid-template-columns: 1fr;
  }

  .web-advanced-results-grid.is-list-view .web-advanced-result-thumb-wrap {
    aspect-ratio: 1 / 1;
  }

  .web-advanced-results-grid.is-list-view .web-advanced-skeleton-thumb {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

@media (max-width: 540px) {
  .web-advanced-search-page {
    gap: 12px;
  }

  .web-advanced-search-page:not(.web-storefront-page) {
    padding: 8px 10px;
  }

  .web-advanced-search-hero {
    padding: 12px;
    border-radius: 16px;
  }

  .web-advanced-search-hero h1 {
    font-size: clamp(1.15rem, 5.8vw, 1.38rem);
  }

  .web-advanced-search-hero p {
    font-size: 12px;
  }

  .web-advanced-sidebar {
    width: min(96vw, 330px);
  }

  .web-advanced-results-head {
    border-radius: 12px;
    padding: 9px;
  }

  .web-advanced-result-body {
    padding: 0 .08rem .05rem;
    gap: 7px;
  }

  .web-advanced-result-title {
    font-size: 13px;
  }

  .web-advanced-result-price-current {
    font-size: 14px;
  }

  .web-advanced-toolbar p {
    font-size: 12px;
  }

  .web-advanced-select-panel {
    border-radius: 16px;
    padding: 8px;
  }

  .web-advanced-select-option-label {
    font-size: 12px;
  }

  .web-advanced-view-switch button {
    min-height: 36px;
    min-width: 56px;
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .web-advanced-results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .web-advanced-sidebar {
    width: 100vw;
    border-radius: 0;
  }

  .web-advanced-sidebar-content {
    padding: 10px;
  }

  .web-advanced-field input:not([type="checkbox"]):not([type="radio"]),
  .web-advanced-field select,
  .web-advanced-select-face {
    min-height: 38px;
    font-size: 13px;
  }

  .web-advanced-field select {
    padding-left: 10px;
    padding-right: 38px;
    background-position:
      calc(100% - 16px) calc(50% - 2px),
      calc(100% - 10px) calc(50% - 2px);
  }

  .web-advanced-select-face {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 10px;
  }

  .web-advanced-query-submit,
  .web-advanced-reset,
  .web-advanced-submit,
  .web-advanced-load-more {
    min-height: 38px;
    font-size: 12px;
  }

  .web-storefront-image-search-state {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px;
  }

  .web-storefront-image-search-thumb-wrap {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }
}

@media (max-width: 260px) {
  .web-advanced-search-hero {
    padding: 9px;
  }

  .web-advanced-results-head {
    padding: 7px;
  }

  .web-advanced-result-body {
    padding: 0 .08rem .05rem;
    gap: 6px;
  }

  .web-advanced-result-title {
    font-size: 12px;
  }
}

@media (max-width: 220px) {
  .web-advanced-search-page,
  .web-advanced-search-page:not(.web-storefront-page) {
    padding: 6px;
    gap: 8px;
  }

  .web-advanced-search-hero,
  .web-advanced-results-head {
    border-radius: 10px;
    padding: 8px;
  }

  .web-advanced-result-body {
    border-radius: 10px;
    padding: 0 .08rem .05rem;
  }

  .web-advanced-toolbar-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .web-advanced-field-sort,
  .web-advanced-view-switch,
  .web-advanced-view-switch button {
    width: 100%;
    min-width: 0;
  }

  .web-advanced-view-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .web-advanced-result-card,
  .web-advanced-skeleton-card {
    min-width: 0;
    width: 100%;
  }

  .web-advanced-result-title,
  .web-advanced-result-meta,
  .web-advanced-result-badges,
  .web-advanced-result-live {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 170px) {
  .web-advanced-search-hero h1 {
    font-size: 1rem;
  }

  .web-advanced-field input:not([type="checkbox"]):not([type="radio"]),
  .web-advanced-field select,
  .web-advanced-select-face,
  .web-advanced-query-submit,
  .web-advanced-reset,
  .web-advanced-submit,
  .web-advanced-load-more {
    min-height: 34px;
    font-size: 11px;
    padding-inline: 8px;
  }

  .web-storefront-image-search-state {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .web-storefront-image-search-clear {
    grid-column: 1 / -1;
    width: 100%;
  }
}
