/* Mobile-only search experience overrides. Desktop behavior lives in the base stylesheet. */

.search-modal{
  inset:0 !important;
  width:100dvw !important;
  height:100dvh !important;
  padding:0 !important;
  margin:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  align-items:flex-start !important;
  overscroll-behavior-y:contain !important;
  -webkit-overflow-scrolling:touch !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  background:rgba(15,23,42,.24) !important;
}

.modal-panel{
  flex:0 0 auto !important;
  width:100dvw !important;
  min-width:0 !important;
  max-width:100dvw !important;
  min-height:100dvh !important;
  max-height:none !important;
  height:auto !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  overflow:visible !important;
  padding:10px 10px calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  transform:none !important;
  transition:none !important;
  will-change:auto !important;
}

.modal-panel.initial-mode .initial-track .recommended-list,
.modal-panel.search-mode .search-results-view .result-list.result-list-grid{
  max-height:none !important;
  height:auto !important;
  overflow-y:visible !important;
  overflow-x:hidden !important;
  padding-right:0 !important;
}

.modal-panel.search-mode .mobile-mode-tabs{
  display:none !important;
}

.mobile-filter-fab{
  position:fixed !important;
  top:auto !important;
  left:50% !important;
  right:auto !important;
  bottom:max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px)) !important;
  transform:translateX(-50%) !important;
  z-index:2147483001 !important;
}

.mobile-filter-fab.show{
  display:inline-flex !important;
}

body.mobile-search-filters-open{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}

body.mobile-search-filters-open .mobile-filter-fab{
  display:none !important;
}

body.mobile-search-filters-open #mobileFilterBackdrop{
  display:block !important;
  opacity:1 !important;
  pointer-events:auto !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

body.mobile-search-filters-open #mobileFiltersPanel{
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  position:fixed !important;
  left:max(0px, env(safe-area-inset-left)) !important;
  right:max(0px, env(safe-area-inset-right)) !important;
  top:auto !important;
  bottom:0 !important;
  z-index:2147483002 !important;
  width:auto !important;
  height:var(--mobile-filter-panel-height, min(94dvh, 880px)) !important;
  max-height:var(--mobile-filter-panel-height, min(94dvh, 880px)) !important;
  transform:none !important;
  transition:none !important;
  contain:none !important;
  will-change:auto !important;
  background:#fff !important;
  border-radius:24px 24px 0 0 !important;
  box-shadow:0 -8px 24px rgba(15,23,42,.18) !important;
}

.modal-panel.initial-mode .initial-track .results-more-btn,
.modal-panel.search-mode .search-results-view .results-more-btn{
  position:static !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  width:100% !important;
  min-width:100% !important;
  max-width:100% !important;
  margin:14px 0 18px !important;
  z-index:auto !important;
  min-height:52px !important;
  border-radius:14px !important;
  background:#fff !important;
  box-shadow:none !important;
}

/* On mobile, variants get their own row below the price so none are clipped. */
.modal-panel.initial-mode .initial-track .recommended-card .recommended-card-info,
.modal-panel.search-mode .search-results-view .result-card-grid .recommended-card-info{
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-areas:
    "name"
    "price"
    "variants"
    "discount" !important;
  gap:4px !important;
}

.modal-panel.initial-mode .initial-track .recommended-card .recommended-card-price,
.modal-panel.search-mode .search-results-view .result-card-grid .recommended-card-price,
.modal-panel.initial-mode .initial-track .recommended-card .result-row-variants,
.modal-panel.search-mode .search-results-view .result-card-grid .result-row-variants,
.modal-panel.initial-mode .initial-track .recommended-card .card-discount-under-price,
.modal-panel.search-mode .search-results-view .result-card-grid .card-discount-under-price{
  justify-self:end !important;
  max-width:100% !important;
}

.modal-panel.initial-mode .initial-track .recommended-card .result-row-variants,
.modal-panel.search-mode .search-results-view .result-card-grid .result-row-variants{
  flex-wrap:wrap !important;
  overflow:visible !important;
  gap:5px !important;
}

.modal-panel.initial-mode .initial-track .recommended-card .result-color-variant,
.modal-panel.search-mode .search-results-view .result-card-grid .result-color-variant{
  flex:0 0 11px !important;
}

/* Banners occupy the complete mobile row and keep the full image visible. */
.modal-panel.initial-mode .initial-track .recommended-list .recommended-card.recommended-card-keyword-banner,
.modal-panel.search-mode .search-results-view .result-list .result-card-grid.result-card-keyword-banner{
  grid-column:1 / -1 !important;
  width:100% !important;
  min-height:0 !important;
  height:auto !important;
  aspect-ratio:auto !important;
  background:#fff !important;
}

.modal-panel.initial-mode .initial-track .recommended-card.recommended-card-keyword-banner .recommended-card-media,
.modal-panel.search-mode .search-results-view .result-card-grid.result-card-keyword-banner .recommended-card-media{
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  height:auto !important;
  background:#fff !important;
}

.modal-panel.initial-mode .initial-track .recommended-card.recommended-card-keyword-banner .recommended-card-media img,
.modal-panel.search-mode .search-results-view .result-card-grid.result-card-keyword-banner .recommended-card-media img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  object-fit:contain !important;
  object-position:center !important;
}

/* Mobile catalog cards keep product info below the photo, like the home carousel. */
.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner),
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner){
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  height:auto !important;
  overflow:hidden !important;
  border:1px solid #e5e7eb !important;
  border-radius:6px !important;
  background:#fff !important;
  box-shadow:none !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-media,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .recommended-card-media{
  position:relative !important;
  inset:auto !important;
  display:block !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:4 / 5 !important;
  overflow:hidden !important;
  background:#dfe5f4 !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-media::after,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .recommended-card-media::after{
  display:none !important;
  content:none !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-media img,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .recommended-card-media img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center top !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-info,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .recommended-card-info{
  position:static !important;
  inset:auto !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-areas:
    "badge"
    "name"
    "variants"
    "price"
    "discount" !important;
  gap:4px !important;
  min-height:104px !important;
  padding:6px 7px 8px !important;
  background:#fff !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-badge-stack,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .recommended-card-badge-stack{
  position:static !important;
  grid-area:badge !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  max-width:100% !important;
  margin:0 !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-badge-stack .tag-new,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .recommended-card-badge-stack .tag-new{
  padding:3px 6px !important;
  border-radius:0 !important;
  background:#006b4f !important;
  color:#fff !important;
  font-size:9px !important;
  line-height:1 !important;
  letter-spacing:0 !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-name,
.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-name-static,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .recommended-card-name,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .recommended-card-name-static{
  grid-area:name !important;
  min-height:28px !important;
  color:#111827 !important;
  font-size:11px !important;
  line-height:1.12 !important;
  font-weight:500 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  text-shadow:none !important;
  -webkit-line-clamp:2 !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .result-row-variants,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .result-row-variants{
  grid-area:variants !important;
  justify-self:start !important;
  gap:5px !important;
  min-height:12px !important;
  margin:0 !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .result-color-variant,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .result-color-variant{
  flex:0 0 11px !important;
  width:11px !important;
  height:11px !important;
  border-radius:0 !important;
  border:1px solid rgba(15,23,42,.16) !important;
  box-shadow:none !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-price,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .recommended-card-price{
  grid-area:price !important;
  justify-self:start !important;
  display:flex !important;
  align-items:baseline !important;
  gap:7px !important;
  margin:5px 0 0 !important;
  color:#111827 !important;
  font-size:13px !important;
  line-height:1 !important;
  font-weight:800 !important;
  text-shadow:none !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-price .new,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .recommended-card-price .new{
  color:#ff0000 !important;
  font-size:13px !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-price .old,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .recommended-card-price .old{
  color:#7b8494 !important;
  font-size:10px !important;
  text-decoration:line-through !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .card-discount-under-price,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .card-discount-under-price{
  grid-area:discount !important;
  justify-self:start !important;
  margin:1px 0 0 !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .card-discount-under-price .disc-auto,
.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .card-discount-under-price .disc,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .card-discount-under-price .disc-auto,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .card-discount-under-price .disc{
  padding:3px 5px !important;
  border-radius:0 !important;
  background:#b21f24 !important;
  color:#fff !important;
  font-size:8px !important;
  line-height:1.05 !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-actions,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .recommended-card-actions{
  position:absolute !important;
  top:10px !important;
  left:10px !important;
  right:auto !important;
  bottom:auto !important;
  z-index:5 !important;
}

.modal-panel.initial-mode .initial-track .recommended-card:not(.recommended-card-keyword-banner) .result-add-btn,
.modal-panel.search-mode .search-results-view .result-card-grid:not(.result-card-keyword-banner) .result-add-btn{
  width:34px !important;
  height:34px !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#111827 !important;
  font-size:20px !important;
  box-shadow:0 8px 18px rgba(15,23,42,.14) !important;
}

/* Mobile filter colors: compact round swatches like the reference sheet. */
body.mobile-search-filters-open #mobileFiltersPanel .facet-list.colors-list,
.modal-panel.search-mode.mobile-show-filters .facet-list.colors-list{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:12px 13px !important;
  max-height:none !important;
  overflow:visible !important;
  padding:10px 0 6px !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-color-item,
.modal-panel.search-mode.mobile-show-filters .facet-color-item{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 22px !important;
  width:22px !important;
  min-width:22px !important;
  height:22px !important;
  padding:0 !important;
  gap:0 !important;
  border:0 !important;
  border-radius:999px !important;
  background:transparent !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-color-dot,
.modal-panel.search-mode.mobile-show-filters .facet-color-dot{
  display:block !important;
  width:20px !important;
  height:20px !important;
  border-radius:999px !important;
  border:1px solid rgba(15,23,42,.16) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.28) !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-color-dot.is-white,
.modal-panel.search-mode.mobile-show-filters .facet-color-dot.is-white{
  border-color:#cbd5e1 !important;
  box-shadow:inset 0 0 0 1px #fff, 0 0 0 1px rgba(15,23,42,.06) !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-color-item.active .facet-color-dot,
.modal-panel.search-mode.mobile-show-filters .facet-color-item.active .facet-color-dot{
  outline:2px solid #071225 !important;
  outline-offset:3px !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-color-name,
.modal-panel.search-mode.mobile-show-filters .facet-color-name{
  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;
  white-space:nowrap !important;
  border:0 !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-item input[type="checkbox"]:checked,
.modal-panel.search-mode.mobile-show-filters .facet-item input[type="checkbox"]:checked,
body.mobile-search-filters-open #mobileFiltersPanel .size-chip.active,
.modal-panel.search-mode.mobile-show-filters .size-chip.active{
  border-color:#071225 !important;
  background:#071225 !important;
  color:#fff !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .mobile-filter-apply-btn,
.modal-panel.search-mode.mobile-show-filters .mobile-filter-apply-btn{
  background:#071225 !important;
  color:#fff !important;
  box-shadow:0 10px 20px rgba(7,18,37,.22) !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .mobile-filter-clear-btn,
.modal-panel.search-mode.mobile-show-filters .mobile-filter-clear-btn{
  color:#071225 !important;
}

/* Final mobile product layout: two cards by default, compact single-card mode. */
.search-modal.show,
.search-modal.show .modal-panel{
  scroll-behavior:auto !important;
}

.search-modal.show .modal-panel.search-mode .search-results-view,
.search-modal.show .modal-panel.search-mode #resultGrid,
.search-modal.show .modal-panel.search-mode .search-results-view .result-list.result-list-grid{
  overflow:visible !important;
  height:auto !important;
  max-height:none !important;
  -webkit-overflow-scrolling:touch !important;
}

.search-modal.show .mobile-filter-fab{
  min-width:128px !important;
  height:52px !important;
  padding:0 22px !important;
  border:0 !important;
  border-radius:999px !important;
  background:#071225 !important;
  color:#fff !important;
  box-shadow:0 12px 26px rgba(7,18,37,.28) !important;
}

.search-modal.show .mobile-filter-fab svg,
.search-modal.show .mobile-filter-fab i,
.search-modal.show .mobile-filter-fab span{
  color:inherit !important;
  stroke:currentColor !important;
}

.search-modal.show .modal-panel.search-mode .search-results-view .result-list.result-list-grid:not(.result-list-grouped){
  display:grid !important;
  grid-auto-rows:auto !important;
  align-items:start !important;
  align-content:start !important;
  padding:0 2px 86px !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view .result-list.result-list-grid:not(.result-list-grouped){
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  column-gap:10px !important;
  row-gap:14px !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view .result-list.result-list-grid.result-list-short:not(.result-list-grouped){
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  justify-content:stretch !important;
}

.search-modal.show .modal-panel.search-mode .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner){
  min-width:0 !important;
  width:100% !important;
  min-height:0 !important;
  height:auto !important;
  border:1px solid #e5e7eb !important;
  border-radius:10px !important;
  background:#fff !important;
  box-shadow:0 1px 2px rgba(15,23,42,.05) !important;
  transform:none !important;
  transition:none !important;
  will-change:auto !important;
  contain:layout paint !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner){
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-media{
  position:relative !important;
  inset:auto !important;
  flex:0 0 auto !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:1 / 1.08 !important;
  overflow:hidden !important;
  background:#dfe5f4 !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-media img,
.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-media .img-fallback{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center top !important;
  transform:none !important;
  transition:none !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-info{
  position:static !important;
  display:flex !important;
  flex-direction:column !important;
  min-height:118px !important;
  padding:8px 8px 9px !important;
  gap:5px !important;
  background:#fff !important;
  overflow:visible !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-name,
.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-name-static{
  min-height:28px !important;
  font-size:11px !important;
  line-height:1.18 !important;
  font-weight:600 !important;
  -webkit-line-clamp:2 !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .result-row-variants{
  min-height:13px !important;
  gap:5px !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .result-color-variant{
  width:11px !important;
  height:11px !important;
  flex-basis:11px !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-price{
  gap:7px !important;
  margin:2px 0 0 !important;
  min-height:18px !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-price .new{
  font-size:14px !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-price .old{
  font-size:10px !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .card-discount-under-price{
  min-height:15px !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .card-discount-under-price .disc-auto,
.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .card-discount-under-price .disc{
  font-size:7px !important;
  padding:3px 5px !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-actions{
  top:9px !important;
  left:9px !important;
}

.search-modal.show .modal-panel.search-mode .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .result-add-btn{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#071225 !important;
  box-shadow:0 7px 15px rgba(15,23,42,.14) !important;
}

.search-modal.show .modal-panel.search-mode:not([data-mobile-result-columns="2"]) .search-results-view .result-list.result-list-grid:not(.result-list-grouped){
  grid-template-columns:minmax(0, 1fr) !important;
  gap:12px !important;
  padding:0 2px 88px !important;
}

.search-modal.show .modal-panel.search-mode:not([data-mobile-result-columns="2"]) .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner){
  display:grid !important;
  grid-template-columns:minmax(112px, 38%) minmax(0, 1fr) !important;
  min-height:142px !important;
  overflow:hidden !important;
}

.search-modal.show .modal-panel.search-mode:not([data-mobile-result-columns="2"]) .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-media{
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  height:100% !important;
  min-height:142px !important;
  aspect-ratio:auto !important;
  overflow:hidden !important;
  background:#dfe5f4 !important;
}

.search-modal.show .modal-panel.search-mode:not([data-mobile-result-columns="2"]) .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-media img,
.search-modal.show .modal-panel.search-mode:not([data-mobile-result-columns="2"]) .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-media .img-fallback{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center top !important;
  transform:none !important;
  transition:none !important;
}

.search-modal.show .modal-panel.search-mode:not([data-mobile-result-columns="2"]) .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-info{
  position:static !important;
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  padding:11px 12px !important;
  gap:6px !important;
  background:#fff !important;
  overflow:hidden !important;
}

.search-modal.show .modal-panel.search-mode:not([data-mobile-result-columns="2"]) .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-name,
.search-modal.show .modal-panel.search-mode:not([data-mobile-result-columns="2"]) .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-name-static{
  min-height:0 !important;
  font-size:13px !important;
  line-height:1.22 !important;
  font-weight:600 !important;
  -webkit-line-clamp:2 !important;
}

.search-modal.show .modal-panel.search-mode:not([data-mobile-result-columns="2"]) .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .result-row-variants{
  min-height:13px !important;
  gap:5px !important;
}

.search-modal.show .modal-panel.search-mode:not([data-mobile-result-columns="2"]) .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-price{
  margin:2px 0 0 !important;
  gap:8px !important;
}

.search-modal.show .modal-panel.search-mode:not([data-mobile-result-columns="2"]) .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-price .new{
  font-size:15px !important;
}

.search-modal.show .modal-panel.search-mode:not([data-mobile-result-columns="2"]) .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-actions{
  top:9px !important;
  left:9px !important;
}

.search-modal.show .modal-panel.search-mode .search-results-view .results-more-btn{
  grid-column:1 / -1 !important;
  position:static !important;
  margin:8px 0 0 !important;
}

.search-modal.show .modal-panel.initial-mode .initial-discovery{
  display:block !important;
  margin:14px 0 24px !important;
  padding:14px !important;
  border-top:1px solid #edf0f5 !important;
  border-radius:8px !important;
  background:#f8fafc !important;
}

.search-modal.show .modal-panel.initial-mode .initial-discovery-head{
  align-items:flex-start !important;
  flex-direction:column !important;
  gap:4px !important;
  margin-bottom:12px !important;
  min-height:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}

.search-modal.show .modal-panel.initial-mode .initial-discovery-kicker{
  gap:5px !important;
}

.search-modal.show .modal-panel.initial-mode .initial-discovery-head h5{
  font-size:16px !important;
}

.search-modal.show .modal-panel.initial-mode .initial-discovery-head span{
  font-size:11px !important;
}

.search-modal.show .modal-panel.initial-mode .initial-discovery-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:8px !important;
}

.search-modal.show .modal-panel.initial-mode .initial-discovery-card{
  min-height:68px !important;
  padding:11px 12px !important;
  border-radius:8px !important;
  box-shadow:none !important;
  transform:none !important;
}

.search-modal.show .modal-panel.initial-mode .initial-discovery-card span{
  margin-bottom:6px !important;
  font-size:9px !important;
}

.search-modal.show .modal-panel.initial-mode .initial-discovery-card strong{
  font-size:12px !important;
  line-height:1.18 !important;
}

/* Mobile home order: search, popular searches, latest searches, recommendations. */
.search-modal.show .modal-panel.initial-mode .quick-strip,
.search-modal.show .modal-panel.initial-mode .mobile-mode-tabs,
.search-modal.show .modal-panel.initial-mode #mobileFilterBackdrop,
.search-modal.show .modal-panel.initial-mode .mobile-filter-sheet-head,
.search-modal.show .modal-panel.initial-mode .mobile-filter-sort-wrap,
.search-modal.show .modal-panel.initial-mode .mobile-filter-actions,
.search-modal.show .modal-panel.initial-mode .filters-top,
.search-modal.show .modal-panel.initial-mode .filter-block,
.search-modal.show .modal-panel.initial-mode .initial-discovery{
  display:none !important;
}

.search-modal.show .modal-panel.initial-mode .result-area{
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  margin-top:10px !important;
}

.search-modal.show .modal-panel.initial-mode #mobileFiltersPanel{
  order:1 !important;
  display:block !important;
  position:static !important;
  width:100% !important;
  min-width:0 !important;
  height:auto !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 0 12px !important;
  border:0 !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
  overflow:visible !important;
  transform:none !important;
  pointer-events:auto !important;
  visibility:visible !important;
  opacity:1 !important;
}

.search-modal.show .modal-panel.initial-mode #mobileFiltersPanel .mobile-filter-scroll-body{
  display:flex !important;
  flex-direction:column !important;
  gap:16px !important;
  height:auto !important;
  max-height:none !important;
  padding:0 !important;
  overflow:visible !important;
}

.search-modal.show .modal-panel.initial-mode .popular-block,
.search-modal.show .modal-panel.initial-mode .recent-block{
  display:block !important;
  margin:0 !important;
  padding:0 0 2px !important;
  border:0 !important;
  background:#fff !important;
  box-shadow:none !important;
}

.search-modal.show .modal-panel.initial-mode .popular-block{
  order:1 !important;
}

.search-modal.show .modal-panel.initial-mode .recent-block{
  order:2 !important;
}

.search-modal.show .modal-panel.initial-mode .sidebar-section-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  min-height:0 !important;
  margin:0 0 10px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}

.search-modal.show .modal-panel.initial-mode .sidebar-section-icon{
  display:none !important;
}

.search-modal.show .modal-panel.initial-mode .sidebar-section-head h5{
  margin:0 !important;
  font-size:14px !important;
  line-height:1.2 !important;
  font-weight:600 !important;
  color:#0f172a !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

.search-modal.show .modal-panel.initial-mode .recent-clear{
  flex:0 0 auto !important;
  align-items:center !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#ef4444 !important;
  font-size:12px !important;
  font-weight:500 !important;
  box-shadow:none !important;
}

.search-modal.show .modal-panel.initial-mode .popular-list,
.search-modal.show .modal-panel.initial-mode .recent-list{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  margin:0 !important;
  padding:0 0 4px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  list-style:none !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:none !important;
}

.search-modal.show .modal-panel.initial-mode .popular-list::-webkit-scrollbar,
.search-modal.show .modal-panel.initial-mode .recent-list::-webkit-scrollbar{
  display:none !important;
}

.search-modal.show .modal-panel.initial-mode .popular-list li,
.search-modal.show .modal-panel.initial-mode .recent-list li{
  flex:0 0 auto !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  list-style:none !important;
}

.search-modal.show .modal-panel.initial-mode .popular-list li::before,
.search-modal.show .modal-panel.initial-mode .recent-list li::before{
  display:none !important;
}

.search-modal.show .modal-panel.initial-mode .popular-list li,
.search-modal.show .modal-panel.initial-mode .recent-item{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:32px !important;
  max-width:170px !important;
  padding:7px 12px !important;
  border:1px solid #e5e7eb !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#111827 !important;
  font-size:13px !important;
  font-weight:500 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  box-shadow:none !important;
}

.search-modal.show .modal-panel.initial-mode .recent-item{
  gap:8px !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .result-area{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .results,
.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .search-results-view,
.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) #resultGrid,
.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .result-list{
  position:relative !important;
  z-index:2 !important;
  pointer-events:auto !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) #mobileFiltersPanel{
  order:1 !important;
  display:block !important;
  position:static !important;
  width:100% !important;
  min-width:0 !important;
  height:auto !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
  overflow:visible !important;
  transform:none !important;
  pointer-events:none !important;
  visibility:visible !important;
  opacity:1 !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) #mobileFiltersPanel .popular-block,
.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) #mobileFiltersPanel .popular-block *,
.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) #mobileFiltersPanel .mobile-filter-sort-wrap,
.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) #mobileFiltersPanel .mobile-filter-sort-wrap *{
  pointer-events:auto !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) #mobileFiltersPanel .mobile-filter-scroll-body{
  display:block !important;
  height:auto !important;
  max-height:none !important;
  padding:0 !important;
  overflow:visible !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .mobile-filter-sheet-head,
.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .mobile-filter-sort-wrap,
.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .mobile-filter-actions,
.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .filters-top,
.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .filter-block,
.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .recent-block{
  display:none !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .popular-block{
  display:block !important;
  margin:0 !important;
  padding:2px 0 8px !important;
  border:0 !important;
  background:#fff !important;
  box-shadow:none !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .sidebar-section-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  min-height:0 !important;
  margin:0 0 8px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .sidebar-section-icon{
  display:none !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .sidebar-section-head h5{
  margin:0 !important;
  font-size:14px !important;
  line-height:1.2 !important;
  font-weight:600 !important;
  color:#0f172a !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .popular-list{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  margin:0 !important;
  padding:0 0 4px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  list-style:none !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:none !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .popular-list::-webkit-scrollbar{
  display:none !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .popular-list li{
  flex:0 0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  min-width:0 !important;
  max-width:190px !important;
  min-height:32px !important;
  margin:0 !important;
  padding:7px 12px !important;
  border:1px solid #e5e7eb !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#111827 !important;
  font-size:13px !important;
  font-weight:500 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  box-shadow:none !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .popular-list li::before{
  display:none !important;
}

.search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) .results{
  order:2 !important;
  width:100% !important;
}

.search-modal.show .modal-panel.initial-mode .recent-item-icon{
  display:none !important;
}

.search-modal.show .modal-panel.initial-mode .recent-empty{
  display:block !important;
  padding:0 !important;
  color:#94a3b8 !important;
  font-size:13px !important;
}

.search-modal.show .modal-panel.initial-mode .results{
  order:2 !important;
  width:100% !important;
}

.search-modal.show .modal-panel.initial-mode .initial-results-view{
  padding-top:0 !important;
}

.search-modal.show .modal-panel.initial-mode .initial-track .results-more-btn,
.search-modal.show .modal-panel.initial-mode .initial-results-view .results-more-btn,
.search-modal.show .modal-panel.search-mode .search-results-view .results-more-btn{
  display:none !important;
}

/* Final mobile filter polish. */
body.mobile-search-filters-open #mobileFiltersPanel #facetColors.facet-list.colors-list,
body.mobile-search-filters-open #mobileFiltersPanel .facet-list.colors-list,
.search-modal.show .modal-panel.search-mode.mobile-show-filters #facetColors.facet-list.colors-list,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-list.colors-list{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  justify-content:flex-start !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
  max-width:100% !important;
  max-height:none !important;
  padding:10px 2px 14px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  white-space:nowrap !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:thin !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-list.colors-list::-webkit-scrollbar,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-list.colors-list::-webkit-scrollbar{
  height:4px !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-list.colors-list::-webkit-scrollbar-thumb,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-list.colors-list::-webkit-scrollbar-thumb{
  border-radius:999px !important;
  background:#cbd5e1 !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-color-item,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-color-item{
  flex:0 0 24px !important;
  width:24px !important;
  min-width:24px !important;
  height:24px !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-color-dot,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-color-dot{
  width:22px !important;
  height:22px !important;
}

.mobile-filter-fab,
.mobile-filter-fab.show,
.search-modal.show .mobile-filter-fab,
.search-modal.show .mobile-filter-fab.show,
.search-modal.show .modal-panel.search-mode .mobile-filter-fab{
  border:0 !important;
  background:#071225 !important;
  color:#fff !important;
  box-shadow:0 12px 26px rgba(7,18,37,.28) !important;
}

.search-modal.show .mobile-filter-fab svg,
.search-modal.show .mobile-filter-fab i,
.search-modal.show .mobile-filter-fab span{
  color:#fff !important;
  stroke:#fff !important;
}

.search-modal.show .modal-panel.initial-mode .initial-results-view .recommended-card:not(.recommended-card-keyword-banner):hover,
.search-modal.show .modal-panel.search-mode .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner):hover,
.search-modal.show .modal-panel .initial-discovery-card:hover,
.search-modal.show .modal-panel .initial-discovery-card:focus-visible{
  border-color:#e5e7eb !important;
  box-shadow:0 1px 2px rgba(15,23,42,.05) !important;
  outline:none !important;
  transform:none !important;
}

/* Long product names on mobile must fit instead of disappearing behind the price. */
.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-info{
  min-height:132px !important;
  gap:4px !important;
}

.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-name,
.search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-name-static,
.search-modal.show .modal-panel.initial-mode .initial-results-view .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-name,
.search-modal.show .modal-panel.initial-mode .initial-results-view .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-name-static{
  display:-webkit-box !important;
  min-height:0 !important;
  max-height:43px !important;
  overflow:hidden !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:4 !important;
  font-size:10px !important;
  line-height:1.08 !important;
  letter-spacing:0 !important;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
}

@media (max-width: 380px){
  .search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-name,
  .search-modal.show .modal-panel.search-mode[data-mobile-result-columns="2"] .search-results-view article.result-row.result-card-grid:not(.result-card-keyword-banner) .recommended-card-name-static,
  .search-modal.show .modal-panel.initial-mode .initial-results-view .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-name,
  .search-modal.show .modal-panel.initial-mode .initial-results-view .recommended-card:not(.recommended-card-keyword-banner) .recommended-card-name-static{
    max-height:42px !important;
    font-size:9.5px !important;
    line-height:1.06 !important;
  }
}

/* Full mobile results must scroll as one page, not as a trapped inner grid. */
.search-modal.show,
.search-modal.show .modal-panel.search-mode,
.search-modal.show .modal-panel.search-mode .result-area,
.search-modal.show .modal-panel.search-mode .results,
.search-modal.show .modal-panel.search-mode .search-results-view,
.search-modal.show .modal-panel.search-mode .result-grid,
.search-modal.show .modal-panel.search-mode .search-results-view .result-list.result-list-grid{
  height:auto !important;
  max-height:none !important;
  overflow-y:visible !important;
  touch-action:pan-y !important;
  -webkit-overflow-scrolling:touch !important;
}

.search-modal.show{
  height:100dvh !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
}

body:not(.mobile-search-filters-open) .search-modal.show .modal-panel.search-mode.mobile-show-filters .results,
body:not(.mobile-search-filters-open) .search-modal.show .modal-panel.search-mode.mobile-show-filters .search-results-view,
body:not(.mobile-search-filters-open) .search-modal.show .modal-panel.search-mode.mobile-show-filters .result-list{
  pointer-events:auto !important;
  user-select:auto !important;
}

.search-modal.show.ai-disabled .assist-btn,
.search-modal.show .modal-panel.ai-disabled .assist-btn,
.search-modal.show .assist-btn[hidden],
.search-modal.show .assistant-drawer[hidden]{
  display:none !important;
}

.search-modal.show .modal-panel.ai-disabled .modal-head{
  grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr) !important;
  grid-template-areas:
    "back logo actions"
    "search search search" !important;
}

.search-modal.show .modal-panel.ai-disabled .modal-logo{
  display:contents !important;
}

.search-modal.show .modal-panel.ai-disabled .mobile-back-btn{
  grid-area:back !important;
  justify-self:start !important;
  align-self:center !important;
}

.search-modal.show .modal-panel.ai-disabled .modal-logo img{
  grid-area:logo !important;
  justify-self:center !important;
  align-self:center !important;
  width:138px !important;
  margin:0 auto !important;
  padding-top:0 !important;
}

.search-modal.show .modal-panel.ai-disabled .head-actions{
  grid-area:actions !important;
  justify-self:end !important;
}

.search-modal.show .modal-panel.ai-disabled .search-wrap{
  grid-area:search !important;
  width:100% !important;
  max-width:none !important;
}

html.dev-menu-scroll-lock,
body.dev-menu-scroll-lock{
  height:auto !important;
  overflow:hidden !important;
}

body.dev-menu-scroll-lock{
  position:static !important;
  left:auto !important;
  top:auto !important;
  width:100% !important;
}

.search-modal.show{
  height:100dvh !important;
  max-height:100dvh !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior-y:contain !important;
  -webkit-overflow-scrolling:touch !important;
  touch-action:pan-y !important;
}

.search-modal.show .modal-panel{
  display:block !important;
  height:auto !important;
  min-height:100dvh !important;
  max-height:none !important;
  overflow:visible !important;
  touch-action:auto !important;
  padding-bottom:calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}

.search-modal.show .modal-panel.initial-mode .result-area,
.search-modal.show .modal-panel.initial-mode .results,
.search-modal.show .modal-panel.initial-mode .initial-results-view,
.search-modal.show .modal-panel.initial-mode .initial-track,
.search-modal.show .modal-panel.search-mode .result-area,
.search-modal.show .modal-panel.search-mode .results,
.search-modal.show .modal-panel.search-mode .search-results-view,
.search-modal.show .modal-panel.search-mode .result-grid{
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  overflow:visible !important;
}

.search-modal.show .modal-panel.initial-mode .initial-track .recommended-list,
.search-modal.show .modal-panel.search-mode .search-results-view .result-list.result-list-grid{
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  overflow:visible !important;
  touch-action:auto !important;
}

.search-modal.show #resultGrid,
.search-modal.show #initialTrack,
.search-modal.show .result-list,
.search-modal.show .result-row.result-card-grid,
.search-modal.show .recommended-card,
.search-modal.show .recommended-card-media,
.search-modal.show .recommended-card-info{
  touch-action:pan-y !important;
}

.search-modal.show .result-add-btn,
.search-modal.show .result-size-picker,
.search-modal.show .result-size-picker button{
  touch-action:manipulation !important;
}

/* Native mobile scrolling, like catalog pages: the document scrolls, not a trapped inner panel. */
@media (max-width:760px){
  html.dev-menu-mobile-open,
  body.dev-menu-mobile-open{
    height:auto !important;
    min-height:100% !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior-y:auto !important;
    touch-action:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }

  body.dev-menu-mobile-open{
    position:static !important;
    left:auto !important;
    top:auto !important;
    width:100% !important;
  }

  body.dev-menu-mobile-open .search-modal.show{
    position:absolute !important;
    inset:0 auto auto 0 !important;
    width:100% !important;
    min-height:100dvh !important;
    height:auto !important;
    max-height:none !important;
    padding:0 !important;
    overflow:visible !important;
    overscroll-behavior-y:auto !important;
    touch-action:auto !important;
    background:#fff !important;
  }

  body.dev-menu-mobile-open .search-modal.show .modal-panel{
    width:100% !important;
    min-height:100dvh !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    touch-action:auto !important;
    -webkit-overflow-scrolling:auto !important;
  }

  body.dev-menu-mobile-open .search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) #mobileFiltersPanel{
    pointer-events:none !important;
  }

  body.dev-menu-mobile-open .search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) #mobileFiltersPanel .popular-block,
  body.dev-menu-mobile-open .search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) #mobileFiltersPanel .popular-block *,
  body.dev-menu-mobile-open .search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) #mobileFiltersPanel .mobile-filter-sort-wrap,
  body.dev-menu-mobile-open .search-modal.show .modal-panel.search-mode:not(.mobile-show-filters) #mobileFiltersPanel .mobile-filter-sort-wrap *{
    pointer-events:auto !important;
  }

  body.dev-menu-mobile-open .search-modal.show .result-area,
  body.dev-menu-mobile-open .search-modal.show .results,
  body.dev-menu-mobile-open .search-modal.show .initial-results-view,
  body.dev-menu-mobile-open .search-modal.show .search-results-view,
  body.dev-menu-mobile-open .search-modal.show #resultGrid,
  body.dev-menu-mobile-open .search-modal.show #initialTrack,
  body.dev-menu-mobile-open .search-modal.show .result-list{
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    overscroll-behavior:initial !important;
    touch-action:auto !important;
    -webkit-overflow-scrolling:auto !important;
  }

  body.mobile-search-filters-open{
    overflow:hidden !important;
    overscroll-behavior:none !important;
  }
}

/* Mobile color filters: large swatches with readable labels and internal scroll. */
body.mobile-search-filters-open #mobileFiltersPanel .filter-block.collapsed .facet-list.colors-list,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .filter-block.collapsed .facet-list.colors-list{
  display:none !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-list.colors-list,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-list.colors-list{
  display:grid !important;
  grid-template-columns:repeat(5, minmax(44px, 1fr)) !important;
  justify-items:center !important;
  align-items:start !important;
  gap:12px 12px !important;
  width:100% !important;
  max-width:100% !important;
  max-height:170px !important;
  padding:12px 2px 10px !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  white-space:normal !important;
  scrollbar-width:thin !important;
  -webkit-overflow-scrolling:touch !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-list.colors-list::-webkit-scrollbar,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-list.colors-list::-webkit-scrollbar{
  width:6px !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-list.colors-list::-webkit-scrollbar-thumb,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-list.colors-list::-webkit-scrollbar-thumb{
  background:#cbd5e1 !important;
  border-radius:999px !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-color-item,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-color-item{
  flex:0 0 50px !important;
  width:50px !important;
  min-width:50px !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:7px !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-color-dot,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-color-dot{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  border-radius:999px !important;
  border:1px solid #cbd5e1 !important;
  box-shadow:0 1px 2px rgba(15,23,42,.08) !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-color-item.active .facet-color-dot,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-color-item.active .facet-color-dot{
  outline:2px solid #071225 !important;
  outline-offset:2px !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-color-name,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-color-name{
  display:block !important;
  max-width:62px !important;
  color:#000 !important;
  font-size:13px !important;
  font-weight:500 !important;
  line-height:1.05 !important;
  text-align:center !important;
  text-transform:lowercase !important;
  letter-spacing:0 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

body.mobile-search-filters-open #mobileFiltersPanel .facet-color-more,
.search-modal.show .modal-panel.search-mode.mobile-show-filters .facet-color-more{
  display:none !important;
}
