.storefront .smart-mobile-tabs{display:none}
@media(max-width:620px){
  .storefront .smart-filter-dialog[open]{display:flex;flex-direction:column;inset:0;width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;overflow:hidden;background:#f2f5f9}
  .storefront .smart-dialog-head{flex:none;min-height:64px;padding:12px 16px;border-radius:0}
  .storefront .smart-dialog-head h2{font-size:21px}
  .storefront .smart-mobile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:none;gap:4px;width:calc(100% - 28px);min-height:0;margin:10px 14px 13px;padding:4px;overflow:visible;border:1px solid #dce5ed;border-radius:15px;background:#fff;box-shadow:0 8px 20px #1935500b}
  .storefront .smart-mobile-tabs.has-country{grid-template-columns:repeat(4,minmax(0,1fr))}
  .storefront .smart-mobile-tab{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:48px;height:48px;padding:5px 3px;border:1px solid transparent;border-radius:11px;background:transparent;box-shadow:none;color:#61748a;font:800 11px Montserrat,Arial,sans-serif;line-height:1.12;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .22s ease,background .22s ease,border-color .22s ease,box-shadow .28s cubic-bezier(.22,1,.36,1),transform .28s cubic-bezier(.22,1,.36,1)}
  .storefront .smart-mobile-tab strong{max-width:100%;font-size:0;font-weight:800;line-height:1.12;letter-spacing:-.025em;white-space:nowrap}
  .storefront .smart-mobile-tab strong::after{content:attr(data-short-label);font-size:11px}
  .storefront .smart-mobile-tab-icon{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:7px;background:#edf2f7;color:#60788f;transition:background .25s ease,color .25s ease,box-shadow .25s ease}
  .storefront .smart-mobile-tab-icon::before{display:block;width:17px;height:17px;background:currentColor;content:'';-webkit-mask:var(--filter-tab-icon) center/contain no-repeat;mask:var(--filter-tab-icon) center/contain no-repeat}
  .storefront .smart-mobile-tab[data-step="source"]{--filter-tab-icon:url('/assets/filter-icons/category.svg')}
  .storefront .smart-mobile-tab[data-step="country"]{--filter-tab-icon:url('/assets/filter-icons/world.svg')}
  .storefront .smart-mobile-tab[data-step="details"]{--filter-tab-icon:url('/assets/filter-icons/adjustments.svg')}
  .storefront .smart-mobile-tab[data-step="sort"]{--filter-tab-icon:url('/assets/filter-icons/sort.svg')}
  .storefront .smart-mobile-tab[hidden]{display:none}
  .storefront .smart-mobile-tab[aria-selected="true"]{border-color:#a5bed7;background:#f6faff;color:#183653;box-shadow:0 6px 16px rgba(30,64,100,.11)}
  .storefront .smart-mobile-tab[aria-selected="true"] .smart-mobile-tab-icon{background:#24476d;color:#fff;box-shadow:none}
  .storefront .smart-mobile-tab.has-value::after{position:absolute;top:7px;right:8px;width:6px;height:6px;border-radius:50%;background:#d11943;box-shadow:0 0 0 3px #fff;content:""}
  .storefront .smart-mobile-tab:focus-visible{outline:3px solid #be3657;outline-offset:3px}
  .storefront .smart-mobile-tabs.has-country .smart-mobile-tab{flex-direction:column;gap:3px;min-height:60px;height:60px;padding:4px 2px}
  .storefront .smart-mobile-tabs.has-country .smart-mobile-tab strong::after{font-size:9.5px}
  .storefront .smart-mobile-tabs.has-country .smart-mobile-tab[data-step="sort"] strong::after{content:'Порядок'}
  .storefront .smart-filter-dialog[open] .smart-dialog-body,
  .storefront .smart-filter-dialog.is-supplier .smart-dialog-body{display:block!important;flex:1 1 auto;min-height:0;height:auto;max-height:none!important;width:100%!important;margin:0!important;padding:14px 14px 22px!important;overflow-x:hidden;overflow-y:auto!important;border:0;border-radius:0;background:#f2f5f9;box-shadow:none;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
  .storefront .smart-filter-dialog[open] .smart-dialog-body>.smart-filter-section{display:none!important}
  .storefront .smart-filter-dialog[open][data-mobile-step="source"] #smartSourceSection:not([hidden]),
  .storefront .smart-filter-dialog[open][data-mobile-step="country"] #smartCountrySection:not([hidden]),
  .storefront .smart-filter-dialog[open][data-mobile-step="details"] :is(#smartAttributeSection,#smartPriceSection,#smartStockSection):not([hidden]),
  .storefront .smart-filter-dialog[open][data-mobile-step="sort"] #smartSortSection:not([hidden]){display:flex!important;flex-direction:column;align-items:stretch;gap:14px;width:100%;margin:0 0 10px;padding:19px!important;border:1px solid #dbe5ef;border-radius:17px;background:#fff;box-shadow:0 8px 20px #1936500b;transform:none}
  .storefront .smart-filter-section-title{width:100%;margin:0}
  .storefront .smart-filter-section-title h3{font-size:15px}
  .storefront #smartSourceSection .smart-source-picker{width:100%}
  .storefront #smartSourceSection>.smart-source-menu{position:static;width:100%;max-width:none;margin:0;padding:10px;border:1px solid #e0e8f0;border-radius:12px;background:#f9fbfe;box-shadow:none;animation:none}
  .storefront .smart-source-options{max-height:none!important;overflow:visible!important}
  .storefront .smart-source-more{width:100%;min-height:42px;margin-top:7px;border:1px solid #d9e3ee;border-radius:10px;background:#fff;color:#b6153c;font:800 11px Montserrat,Arial,sans-serif;cursor:pointer}
  .storefront .smart-source-search{position:sticky;top:0;z-index:2;background:#f9fbfe}
  .storefront #smartCountryOptions{max-height:none!important;overflow:visible!important}
  .storefront #smartPriceSection .smart-price-slider,.storefront #smartPriceSection .smart-price-fields{width:100%}
  .storefront .smart-dialog-foot{position:relative;inset:auto;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:8px!important;flex:none;width:100%;min-height:0;margin:0;padding:9px 14px max(11px,env(safe-area-inset-bottom));border-top:1px solid #dfe6ee;background:#fff;box-shadow:0 -8px 22px #172d4910}
  .storefront #smartFilterPreview{grid-column:1/-1;grid-row:1;min-height:15px;text-align:left;font-size:10px}
  .storefront #smartFilterReset{grid-column:1;grid-row:2}
  .storefront #smartFilterApply{grid-column:2;grid-row:2;min-height:46px}
}
@media(max-width:360px){
  .storefront .smart-mobile-tabs{gap:3px}
  .storefront .smart-mobile-tab{gap:3px;padding:5px 1px}
  .storefront .smart-mobile-tab strong::after{font-size:10px}
  .storefront .smart-mobile-tabs.has-country .smart-mobile-tab strong::after{font-size:9px}
}
@media(hover:hover) and (pointer:fine){
  .storefront .smart-mobile-tab:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(30,46,68,.11)}
}
.storefront .smart-mobile-tab:active{transform:scale(.985)}
@media(hover:none) and (pointer:coarse){.storefront .smart-mobile-tab:hover{transform:none}}
@media(prefers-reduced-motion:reduce){
  .storefront .smart-mobile-tab,.storefront .smart-mobile-tab-icon{transition:none}
  .storefront .smart-mobile-tab:is(:hover,:active){transform:none}
}
/* Center the close mark geometrically instead of relying on the × glyph metrics. */
.storefront #smartFilterClose,.storefront #smmFilterClose{position:relative;flex:none;padding:0;font-size:0;line-height:0}
.storefront #smartFilterClose::before,.storefront #smartFilterClose::after,
.storefront #smmFilterClose::before,.storefront #smmFilterClose::after{position:absolute;top:50%;left:50%;width:15px;height:2px;margin:-1px 0 0 -7.5px;border-radius:2px;background:currentColor;content:'';pointer-events:none}
.storefront #smartFilterClose::before,.storefront #smmFilterClose::before{transform:rotate(45deg)}
.storefront #smartFilterClose::after,.storefront #smmFilterClose::after{transform:rotate(-45deg)}
