/*
 * FoxStore — responsive layer.
 * Loaded after all app and plugin stylesheets (see index.html).
 * Breakpoints: 1199px (tablet), 900px (mobile, matches waTheme.mobile_media), 600px (phone).
 */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img,
video,
iframe {
  max-width: 100%;
}

/* ============================== TABLET ============================== */
@media (max-width: 1199px) {

  .s-main-wrapper .s-branding-wrapper {
    display: none;
  }

  .s-main-wrapper .s-main-block .s-sidebar-wrapper {
    width: 220px;
  }

  .top_menu .top_style {
    padding: 8px 16px;
  }

  .s-header-wrapper .s-header-bottom .s-search-wrapper {
    max-width: none;
    width: auto;
  }

  .s-dialog-wrapper .s-dialog-block {
    min-width: 0;
    width: auto;
    max-width: 760px;
    margin: 0 16px 50px;
  }

  .s-quick-view-dialog {
    margin: 20px 16px;
  }
}

/* ============================== MOBILE ============================== */
@media (max-width: 900px) {

  body {
    font-size: 15px;
  }

  /* iOS zooms into inputs with font-size < 16px */
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px;
  }

  .s-bottom-banner {
    display: none !important;
  }

  /* ---------- Top bar & navigation drawer ---------- */

  .top_menu .top_style {
    min-height: 48px;
    padding: 4px 16px;
    gap: 12px;
  }

  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 9px 8px;
    gap: 5px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: #fff !important;
  }
  .mobile-nav-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #121212;
  }

  .top-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1001;
    width: 85%;
    max-width: 320px;
    padding: 56px 0 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(-105%);
    transition: transform 220ms ease-out;
    visibility: hidden;
  }
  .top_menu.is-open {
    z-index: 1000;
  }
  .top_menu.is-open .top-nav-container {
    transform: none;
    visibility: visible;
  }

  .mobile-nav-close {
    display: block;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: #121212 !important;
    font-size: 24px;
    line-height: 40px;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
  }
  .top_menu.is-open .mobile-menu-overlay {
    display: block;
  }
  body.is-menu-open {
    overflow: hidden;
  }

  #page-list {
    display: block;
    float: none;
  }
  #page-list li {
    display: block;
    border-bottom: 1px solid #f0f0f0;
  }
  #page-list li a {
    display: block;
    padding: 14px 20px !important;
    color: #121212 !important;
    font-size: 16px;
  }
  #page-list ul {
    margin: 0;
    padding: 0 0 0 16px;
  }

  .top_menu .top_style .s-column.right {
    min-width: 0;
    font-size: 13px;
  }
  .top_menu .s-shop-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px 12px;
  }
  .top_menu .s-shop-address {
    display: none;
  }

  /* ---------- Header: logo, phones, account ---------- */

  .s-header-wrapper .s-header-section {
    margin: 0;
    border-radius: 0;
  }

  .s-header-wrapper .s-header-top {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 16px;
    gap: 8px 16px;
  }
  .s-header-wrapper .s-header-top > .s-column {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    text-align: left;
  }
  .s-header-wrapper .s-header-top .s-logo-column {
    flex: 1 1 auto;
    min-width: 0;
  }
  .s-header-wrapper .s-header-top .s-site-logo {
    max-width: 100%;
    margin: 0;
  }
  .s-header-wrapper .s-header-top .s-site-logo img {
    max-height: 36px;
    max-width: 100%;
  }
  .s-header-wrapper .s-header-top .s-phones-column {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px 16px;
    order: 3;
    flex: 1 1 100%;
  }
  .s-header-wrapper .s-header-top .s-phone-wrapper {
    margin: 0;
    padding-left: 0;
  }
  .s-header-wrapper .s-header-top .s-phone-wrapper .size-26 {
    position: static;
    margin: 0 4px 0 0;
    font-size: 18px;
    vertical-align: middle;
  }
  .s-header-wrapper .s-header-top .s-phone-wrapper .s-phone {
    font-size: 15px;
  }
  .s-header-wrapper .s-header-top .s-phone-wrapper .s-tip {
    display: none;
  }

  .s-header-wrapper .s-header-top .accaunt {
    position: relative;
    padding-left: 28px !important;
    font-size: 14px;
    white-space: nowrap;
  }
  .s-header-wrapper .s-header-top .accaunt .icofont-users-alt-4 {
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -11px;
    font-size: 22px;
  }
  .accaunt .icofont-users-alt-4:before {
    position: static;
    margin: 0;
    font-size: 22px;
  }
  .s-column.right.accaunt a {
    font-size: 14px;
  }

  /* centered logo variant: logo first, then both phones in one row */
  .s-header-section.is-logo-center .s-header-top {
    justify-content: center;
  }
  .s-header-section.is-logo-center .s-header-top .s-logo-column {
    order: 1;
    flex: 1 1 100%;
    text-align: center;
  }
  .s-header-section.is-logo-center .s-header-top .s-phones-column {
    order: 2;
    flex: 0 1 auto;
    justify-content: center;
  }

  /* ---------- Header: catalog, search, compare, cart ---------- */

  .s-header-wrapper .s-header-bottom {
    padding: 0;
  }
  .s-header-wrapper .s-header-bottom > .s-layout {
    position: relative;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    height: auto !important;
    padding: 8px 12px;
    gap: 8px;
    table-layout: auto;
  }
  .s-header-wrapper .s-header-bottom > .s-layout > .s-column {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
  }

  .s-header-wrapper .s-header-bottom .s-catalog-column {
    flex: 1 1 auto;
    min-width: 0;
  }
  .s-header-wrapper .s-header-bottom .s-compare-column,
  .s-header-wrapper .s-header-bottom .s-cart-column {
    flex: 0 0 auto;
  }
  .s-header-wrapper .s-header-bottom .s-search-column {
    order: 10;
    flex: 1 1 100%;
  }

  .s-header-wrapper .s-header-bottom .s-search-wrapper {
    width: 100%;
    max-width: none;
    height: 40px;
    margin: 0;
  }
  .s-header-wrapper .s-header-bottom .s-search-wrapper .s-text-input {
    height: 40px;
    padding: 0 84px 0 12px;
    border-radius: 4px;
  }
  .s-header-wrapper .s-header-bottom .s-search-wrapper .s-submit-input {
    height: 40px;
    padding: 0 14px;
    border-radius: 0 4px 4px 0;
  }
  .s-search-wrapper .search_result {
    max-height: 70vh;
    overflow-y: auto;
  }

  /* catalog as a dropdown accordion */
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper {
    position: static;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-button,
  .s-catalog-button {
    height: 40px;
    padding: 0 12px 0 44px;
    border-radius: 4px;
    text-align: left;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-button:before {
    left: 10px;
    top: 50%;
    margin-top: -12px;
  }

  .s-header-wrapper .s-header-bottom .s-catalog-wrapper.is-locked .s-catalog-list {
    display: none;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper.is-locked .s-catalog-button {
    cursor: pointer;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper.is-opened .s-catalog-list {
    display: block;
  }
  /* full screen panel between the panel header and the bottom bar */
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-list {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: var(--fx-bottom-offset, 0px);
    z-index: 1002;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 0 0 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .s-catalog-mobile-header {
    display: none;
  }
  .s-catalog-wrapper.is-opened .s-catalog-mobile-header {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1003;
    height: 56px;
    padding: 0 8px 0 16px;
    background: var(--fx-accent);
    color: var(--fx-accent-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  .s-catalog-mobile-header .s-title {
    flex: 1 1 auto;
    font-size: 18px;
    font-weight: 500;
  }
  .s-catalog-mobile-header .s-catalog-close {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: inherit !important;
    font-size: 24px;
  }
  body.is-catalog-open {
    overflow: hidden;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-list > li {
    border-bottom: 1px solid #f0f0f0;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-list > li > a {
    padding: 13px 56px 13px 16px;
    font-size: 15px;
    line-height: 20px;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-list > li > a:after {
    display: none;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-list > li.is-hover .s-sub-wrapper {
    display: none;
  }

  .s-catalog-list .s-sub-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 46px;
    cursor: pointer;
    border-left: 1px solid #f0f0f0;
  }
  .s-catalog-list .s-sub-toggle:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -6px 0 0 -4px;
    border: solid #888;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 150ms linear;
  }
  .s-catalog-list > li.is-opened > .s-sub-toggle:after {
    margin-top: -2px;
    transform: rotate(-135deg);
  }

  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-list > li .s-sub-wrapper {
    position: static;
    width: auto !important;
    min-height: 0;
    padding: 0 0 8px 16px;
    box-shadow: none;
    background: #fafafa;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-list > li.is-opened .s-sub-wrapper {
    display: block;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-list > li .s-sub-wrapper .s-sub-list .s-sub-item {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-list > li .s-sub-wrapper .s-sub-list .s-sub-item .s-sub-header {
    display: block;
    padding: 10px 16px 10px 0;
    font-size: 15px;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-list > li .s-sub-wrapper .s-sub-list .s-sub-item ul {
    margin: 0 0 6px;
    padding-left: 12px;
  }
  .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-list > li .s-sub-wrapper .s-sub-list .s-sub-item ul li a {
    padding: 7px 0;
    font-size: 14px;
  }

  /* compare & cart as icon buttons */
  .s-header-bottom .s-compare-wrapper,
  .s-header-bottom .s-cart-wrapper {
    position: relative;
    display: block;
    padding: 0 !important;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    white-space: nowrap;
  }
  .s-header-bottom .s-compare-wrapper > i,
  .s-header-bottom .s-cart-wrapper > i {
    font-size: 26px !important;
    line-height: 40px;
    vertical-align: top;
  }
  .s-header-bottom .cart_blok {
    float: none;
    display: inline-block;
    margin: 0;
    vertical-align: top;
  }
  .s-header-bottom .cart_blok .s-label {
    display: none;
  }
  .s-header-bottom .cart_blok .s-count,
  .s-header-bottom .js-cart-count {
    position: absolute;
    top: 0;
    right: -4px;
    min-width: 18px;
    height: 18px;
    margin: 0;
    padding: 0 5px !important;
    border-radius: 9px !important;
    font-size: 11px;
    line-height: 18px;
    box-sizing: border-box;
  }
  .s-header-bottom .cart_blok .s-price {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
  }

  /* ---------- Page layout ---------- */

  .s-main-wrapper .s-main-block {
    padding-bottom: 24px;
  }
  .s-main-wrapper .s-main-block > .s-layout {
    display: block;
    margin-top: 12px;
    padding: 0 12px;
  }
  .s-main-wrapper .s-main-block > .s-layout > .s-column {
    display: block;
    width: auto !important;
  }
  .s-main-wrapper .s-main-block .s-sidebar-wrapper + .s-content-wrapper {
    padding-left: 0;
  }

  .s-main-wrapper .s-main-block .s-sidebar-wrapper {
    width: auto;
    margin: 0 0 16px;
  }
  .s-main-wrapper .s-main-block .s-sidebar-wrapper .s-sidebar-block {
    display: none;
    position: static !important;
    padding-top: 0 !important;
  }
  .s-main-wrapper .s-main-block .s-sidebar-wrapper.is-opened .s-sidebar-block {
    display: block;
    margin-top: 8px;
  }
  .s-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff !important;
    color: #121212 !important;
    font-size: 15px;
  }
  .s-sidebar-toggle i {
    font-size: 18px;
  }

  .s-breadcrumbs-wrapper {
    margin: 12px 0 0;
    padding: 0 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .s-breadcrumbs-wrapper::-webkit-scrollbar {
    display: none;
  }

  .s-global-header {
    margin: 0 12px;
    font-size: 22px;
    line-height: 1.25;
  }

  .s-wide-slider-wrapper {
    margin-top: 12px;
    padding: 0 12px;
  }

  .s-user-content {
    overflow-wrap: break-word;
  }
  .s-user-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .s-layout.is-adaptive,
  .s-layout.is-adaptive > .s-column {
    display: block;
    width: auto;
  }

  .o_kompanii,
  .otzivi {
    margin: 0 12px;
    padding: 12px 0;
  }

  .info_blok .blok {
    width: 50%;
    box-sizing: border-box;
  }
  section.info_blok {
    flex-wrap: wrap;
  }

  /* ---------- Product lists ---------- */

  .s-products-wrapper .s-section-header {
    margin: 0 0 12px;
    padding: 6px 0 12px;
    font-size: 19px;
    line-height: 24px;
  }
  .s-products-wrapper .s-sorting-wrapper {
    margin: 8px 0 12px;
  }
  .s-products-wrapper .s-sorting-wrapper > .s-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .s-products-wrapper .s-sorting-wrapper > .s-layout > .s-column {
    display: block;
    width: auto;
  }
  .s-products-wrapper .s-sorting-wrapper > .s-layout > .s-column.right {
    margin-left: auto;
  }
  /* desktop pulls the lists up with a negative margin, which overlaps the filters button here */
  .s-products-wrapper .s-sorting-wrapper .s-sorting-list {
    display: flex;
    align-items: center;
    margin: 0;
  }
  .s-products-wrapper .s-sorting-wrapper .s-sorting-list.sort-filters .s-dropdown-wrapper > .s-sort-active {
    line-height: 36px;
    font-size: 14px;
  }

  /* view switch: two 40px tap targets */
  .s-products-wrapper .s-sorting-wrapper .s-sorting-list.view-filters a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 0 0 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
  }
  .s-products-wrapper .s-sorting-wrapper .s-sorting-list.view-filters a.is-active {
    border: 2px solid var(--fx-accent);
  }
  .s-products-wrapper .s-sorting-wrapper .s-sorting-list.view-filters a .icon {
    width: 20px;
    height: 20px;
  }
  .s-products-wrapper .s-sorting-wrapper .s-sorting-list.view-filters a:not(.is-active) .icon {
    opacity: 0.55;
  }

  .s-products-wrapper .s-products-list.thumbs-view .s-product-wrapper,
  .s-products-wrapper .s-products-list.is-short .s-product-wrapper,
  html.is-home-wide .s-products-wrapper .s-products-list.thumbs-view .s-product-wrapper,
  html.is-home-wide .s-products-wrapper .s-products-list.is-short .s-product-wrapper {
    width: 33.3333%;
    margin-bottom: 0;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper:hover {
    box-shadow: none;
  }
  .s-products-wrapper .s-products-list.thumbs-view .s-product-wrapper,
  .s-products-wrapper .s-products-list.is-short .s-product-wrapper,
  .s-products-wrapper .s-products-list .s-product-wrapper:nth-child(4n),
  html.is-home-wide .s-products-list .s-product-wrapper:nth-child(5n) {
    border-right: 1px solid #f0f0f0;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper:nth-child(3n) {
    border-right: none;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .s-product-block {
    padding: 12px;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .s-image-wrapper {
    height: 140px;
    line-height: 140px;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .s-product-header {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    height: 42px;
    max-height: none;
    font-size: 13px;
    line-height: 14px;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .s-buttons-wrapper .s-layout {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .s-buttons-wrapper .s-layout > .s-column {
    display: block;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .s-buttons-wrapper .s-layout > .s-column:first-child {
    flex: 1 1 auto;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .js-add-button {
    width: 100%;
    height: 38px;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .s-buttons-wrapper .s-compare-button {
    padding: 0 6px;
    line-height: 38px;
  }

  /* table view: image on the left, info and actions stacked */
  .s-products-wrapper .s-products-list.table-view .s-product-wrapper .s-product-block {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 8px 12px;
    padding: 12px;
  }
  .s-products-wrapper .s-products-list.table-view .s-product-wrapper .s-product-block > * {
    display: block;
    width: auto !important;
    padding: 0;
  }
  .s-products-wrapper .s-products-list.table-view .s-product-wrapper .s-product-block .s-image-wrapper {
    grid-row: span 3;
    width: 96px;
    height: 96px;
    line-height: 96px;
  }
  .s-products-wrapper .s-products-list.table-view .s-product-wrapper .s-product-description {
    height: auto;
    max-height: 42px;
    overflow: hidden;
  }
  .s-products-wrapper .s-products-list.table-view .s-product-wrapper .s-buttons-wrapper .s-layout {
    display: flex;
  }
  .s-products-wrapper .s-products-list.table-view .s-product-wrapper .s-buttons-wrapper .s-compare-button {
    margin: 0;
  }
  .s-products-wrapper .s-products-list.table-view .s-product-wrapper .s-buttons-wrapper .s-compare-button .s-name {
    display: none;
  }

  /* sliders: native swipe instead of arrows */
  .s-products-wrapper .s-slider-wrapper .s-arrow {
    display: none !important;
  }
  /* the strip bleeds to the screen edges, the first card stays aligned with the page content */
  .s-products-wrapper .s-slider-wrapper .s-slider-block {
    margin: 0 -12px;
    padding: 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 12px;
    scrollbar-width: none;
  }
  .s-products-wrapper .s-slider-wrapper .s-slider-block::-webkit-scrollbar {
    display: none;
  }
  .s-products-wrapper .s-slider-wrapper .s-slider-block .s-products-list {
    display: flex;
    align-items: stretch;
    padding: 0;
    white-space: normal;
    transform: none !important;
  }
  /* trailing space so the last card doesn't stick to the screen edge */
  .s-products-wrapper .s-slider-wrapper .s-slider-block .s-products-list:after {
    content: "";
    flex: 0 0 12px;
  }
  .s-products-wrapper .s-slider-wrapper .s-slider-block .s-products-list .s-product-wrapper,
  .s-products-wrapper .s-slider-wrapper .s-slider-block .s-products-list .s-product-wrapper:nth-child(n) {
    flex: 0 0 30%;
    width: auto !important;
    margin: 0 !important;
    border: 0;
    border-right: 1px solid #f0f0f0;
    scroll-snap-align: start;
  }
  .s-products-wrapper .s-slider-wrapper .s-slider-block .s-products-list .s-product-wrapper .s-product-block {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border: 0;
  }
  .s-products-wrapper .s-slider-wrapper .s-slider-block .s-products-list .s-product-wrapper .s-actions-wrapper {
    margin-top: auto;
  }

  .s-paging-wrapper .s-paging-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .s-paging-wrapper .s-paging-list li a {
    min-width: 36px;
    min-height: 36px;
    line-height: 36px;
  }

  /* ---------- Category filters ---------- */

  .s-category-filters .s-buttons-wrapper {
    display: flex;
    gap: 8px;
  }
  .s-category-filters .s-buttons-wrapper .s-button {
    flex: 1 1 50%;
    height: 40px;
  }

  /* ---------- Product page ---------- */

  .s-product-page > .s-layout,
  .s-product-page > .s-layout.fixed,
  .s-product-page .s-product-header > .s-layout {
    display: block;
    height: auto;
  }
  .s-product-page > .s-layout > .s-column,
  .s-product-page > .s-layout > div,
  .s-product-page .w3 {
    display: block;
    width: auto !important;
  }
  .s-pr,
  .s-product-page .s-pr {
    margin-left: 0 !important;
  }
  .s-pr .info_blok {
    float: none;
    width: auto;
    padding: 12px 0;
  }
  .info_blok .s-stocks-wrapper {
    width: auto;
  }
  .s-product-page .s-product-header .s-header {
    font-size: 22px;
    line-height: 1.25;
  }

  .s-product-page .s-product-photos > .s-layout {
    display: block;
    height: auto;
  }
  .s-product-page .s-product-photos > .s-layout > div {
    display: block;
    width: auto;
  }
  .s-product-page .s-product-photos .s-photo-main a {
    height: 280px;
    line-height: 280px;
  }
  .s-product-page .s-product-photos .s-photo-main a img {
    max-height: 280px;
  }
  .s-product-page .s-product-photos .s-photo-main .s-video-wrapper {
    height: 0;
    padding-bottom: 56.25%;
  }
  .s-product-page .s-product-photos .s-photos-list {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .s-product-page .s-product-photos .s-photos-list .s-photo-thumb {
    flex: 0 0 64px;
    width: 64px;
    margin: 0;
  }

  .s-product-cart {
    float: none;
    width: auto;
  }
  .s-product-page .s-product-cart-area {
    margin: 16px 0 0;
  }
  .s-product-cart .s-quantity-wrapper input {
    height: 40px;
  }
  .s-product-cart .js-add-button,
  .s-product-cart .s-cart-footer .s-submit-button,
  .s-product-cart input[type="submit"] {
    min-height: 44px;
  }

  .tabs-container {
    padding: 12px 0;
  }
  .tabs {
    flex-direction: row !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs li {
    flex: 0 0 auto;
    width: auto !important;
  }
  .tabs li a {
    padding: 12px 16px;
    white-space: nowrap;
  }
  .tabs-content {
    padding: 16px 12px;
  }

  .s-product-page .s-features-wrapper .s-features-table td {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .s-product-page .s-reviews-section .s-reviews-list .s-review .s-layout,
  .s-product-page .s-reviews-section .s-section-footer .s-layout {
    display: block;
  }
  .s-product-page .s-reviews-section .s-reviews-list .s-review .s-layout > .s-column,
  .s-product-page .s-reviews-section .s-section-footer .s-layout > .s-column {
    display: block;
    text-align: left;
    padding: 4px 0;
  }

  #swipebox-overlay {
    width: 100% !important;
    margin: 0 !important;
  }

  /* ---------- Cart ---------- */

  .s-cart-page .s-cart-products .s-cart-product {
    padding: 16px 12px;
  }
  .s-cart-page .s-cart-products .s-cart-product > .s-layout {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    grid-template-areas:
      "image info    delete"
      "image amount  total";
    gap: 10px 12px;
    align-items: center;
  }
  .s-cart-page .s-cart-products .s-cart-product > .s-layout > .s-column {
    display: block;
    width: auto !important;
    padding: 0 !important;
  }
  .s-cart-page .s-cart-products .s-cart-product .s-image-column { grid-area: image; align-self: start; }
  .s-cart-page .s-cart-products .s-cart-product .s-texs-column { grid-area: info; }
  .s-cart-page .s-cart-products .s-cart-product .s-amount-column { grid-area: amount; max-width: 130px; }
  .s-cart-page .s-cart-products .s-cart-product .s-total-column { grid-area: total; }
  .s-cart-page .s-cart-products .s-cart-product .s-actions-column { grid-area: delete; align-self: start; }
  .s-cart-page .s-cart-products .s-cart-product .s-product-name {
    line-height: 18px;
  }
  .s-cart-page .s-cart-products .s-cart-product .s-product-total {
    font-size: 17px;
    white-space: nowrap;
  }
  .s-cart-page .s-cart-products .s-cart-product .s-delete-button {
    padding: 6px;
    margin: -6px;
  }
  .s-cart-page .s-quantity-wrapper input {
    height: 36px;
  }
  .s-cart-page .s-totals-table,
  .s-cart-page .s-totals-table tbody,
  .s-cart-page .s-totals-table tr,
  .s-cart-page .s-totals-table td {
    display: block;
    width: auto !important;
    text-align: left;
  }
  .s-cart-page .s-cart-total .s-submit-button,
  .s-cart-footer .s-submit-button {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  /* ---------- Compare, checkout, account ---------- */

  .s-compare-page {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .s-compare-page .s-compare-table {
    min-width: 560px;
  }

  .s-checkout-order-page,
  .wa-order-form-wrapper {
    max-width: 100%;
  }
  .wa-order-form-wrapper input[type="text"],
  .wa-order-form-wrapper input[type="email"],
  .wa-order-form-wrapper input[type="tel"],
  .wa-order-form-wrapper textarea,
  .wa-order-form-wrapper select {
    max-width: 100%;
  }

  .s-my-orders-page table,
  .s-order-page table {
    display: block;
    overflow-x: auto;
  }

  /* ---------- Footer ---------- */

  .s-footer-wrapper .s-footer-block .s-footer-top .s-layout,
  .s-footer-wrapper .s-footer-block .s-footer-top .s-layout > .s-column,
  .s-footer-wrapper .s-footer-block .s-footer-middle .s-layout,
  .s-footer-wrapper .s-footer-block .s-footer-middle .s-layout > .s-column {
    display: block;
    width: auto;
    text-align: left;
  }
  .s-footer-wrapper .s-footer-block {
    padding: 12px 16px 0;
  }
  footer .navbar-nav {
    float: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
  }
  footer .navbar-nav li {
    float: none;
    margin: 0;
  }
  footer .navbar-nav li a {
    display: block;
    padding: 8px 0;
  }
  footer .s-phone-section {
    margin-top: 12px;
    padding: 12px 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
  .s-footer-wrapper .s-footer-block .s-footer-top .s-phone-section > .s-layout > .s-column {
    padding: 4px 0;
  }
  .s-footer-wrapper .s-footer-block .s-footer-middle .s-payments-wrapper .s-payments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .s-footer-wrapper .s-footer-block .s-footer-middle .s-socials-list {
    margin-top: 12px;
  }

  /* ---------- Quick view & dialogs ---------- */

  .s-quick-view {
    display: none !important;
  }
  .s-dialog-wrapper .s-dialog-block {
    margin: 0 0 32px;
    max-width: none;
  }
}

/* ========================= MOBILE: APP-LIKE UI ========================= */
@media (max-width: 900px) {

  /* ---------- Bottom navigation bar ---------- */

  /* the theme sets body { height: 100% }, which would put this padding at the bottom of the first screen */
  body.with-bottom-bar,
  body.with-sticky-buy {
    height: auto;
    min-height: 100%;
  }
  body.with-bottom-bar {
    --fx-bottom-offset: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: var(--fx-bottom-offset);
  }
  body.with-bottom-bar.with-sticky-buy {
    padding-bottom: calc(var(--fx-bottom-offset) + 64px);
  }
  body.with-sticky-buy:not(.with-bottom-bar) {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .s-bottom-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: content-box;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  }
  .s-bottom-bar-item {
    position: relative;
    flex: 1 1 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    color: #6b6b6b !important;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  /* the theme's a:hover colour sticks after a tap on touch screens */
  .s-bottom-bar-item:hover {
    color: #6b6b6b !important;
  }
  .s-bottom-bar-item i {
    font-size: 22px;
    line-height: 1;
  }
  .s-bottom-bar-item .s-name {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    line-height: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .s-bottom-bar-item.is-active,
  body.is-catalog-open .s-bottom-bar-item.js-bottom-catalog,
  .s-bottom-bar-item:active {
    color: #121212 !important;
  }
  .s-bottom-bar-item.is-active:before {
    content: "";
    position: absolute;
    top: -1px;
    left: 25%;
    right: 25%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--fx-accent);
  }
  .s-bottom-bar-item .s-badge {
    position: absolute;
    top: 5px;
    left: 50%;
    min-width: 18px;
    height: 18px;
    margin-left: 4px;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 9px;
    background: var(--fx-accent);
    color: var(--fx-accent-text);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
  }
  .s-bottom-bar-item .s-badge.is-empty {
    display: none;
  }
  body.is-menu-open .s-bottom-bar,
  body.is-filters-open .s-bottom-bar {
    visibility: hidden;
  }

  /* compare and cart live in the bottom bar, the header keeps catalog + search */
  body.with-bottom-bar .s-header-wrapper .s-header-bottom .s-compare-column,
  body.with-bottom-bar .s-header-wrapper .s-header-bottom .s-cart-column {
    display: none !important;
  }

  /* ---------- Sticky "buy" bar on the product page ---------- */

  .s-sticky-buy {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--fx-bottom-offset, 0px);
    z-index: 899;
    min-height: 64px;
    padding: 8px 12px;
    box-sizing: border-box;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(120%);
    visibility: hidden;
    transition: transform 200ms ease-out, visibility 0s linear 200ms;
  }
  body:not(.with-bottom-bar) .s-sticky-buy {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .s-sticky-buy.is-visible {
    transform: none;
    visibility: visible;
    transition: transform 200ms ease-out, visibility 0s;
  }
  .s-sticky-buy-info {
    flex: 1 1 auto;
    min-width: 0;
  }
  .s-sticky-buy-name {
    overflow: hidden;
    color: #6b6b6b;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .s-sticky-buy-price {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    white-space: nowrap;
  }
  .s-sticky-buy-price .s-compare-price {
    display: none;
  }
  .s-sticky-buy-button {
    flex: 0 0 auto;
    height: 44px;
    min-width: 128px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: var(--fx-accent) !important;
    color: var(--fx-accent-text) !important;
    font-size: 16px;
    font-weight: 500;
  }
  .s-sticky-buy-button:disabled {
    opacity: 0.5;
  }

  /* ---------- Filters bottom sheet ---------- */

  .s-filters-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    margin: 0 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff !important;
    color: #121212 !important;
    font-size: 15px;
  }
  .s-filters-open i {
    font-size: 18px;
  }
  .s-filters-open .s-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 10px;
    background: var(--fx-accent);
    color: var(--fx-accent-text);
    font-size: 12px;
    line-height: 20px;
  }
  .s-filters-open .s-count.is-empty {
    display: none;
  }

  .s-filters-sheet {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    visibility: hidden;
    transition: visibility 0s linear 250ms;
  }
  .s-filters-sheet.is-opened {
    visibility: visible;
    transition: none;
  }
  .s-filters-sheet-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 250ms linear;
  }
  .s-filters-sheet.is-opened .s-filters-sheet-overlay {
    opacity: 1;
  }
  .s-filters-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: 88vh;
    border-radius: 14px 14px 0 0;
    background: #fff;
    transform: translateY(100%);
    transition: transform 250ms ease-out;
  }
  .s-filters-sheet.is-opened .s-filters-sheet-panel {
    transform: none;
  }
  .s-filters-sheet-header {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 52px;
    padding: 0 8px 0 16px;
    border-bottom: 1px solid #eee;
  }
  .s-filters-sheet-header .s-title {
    flex: 1 1 auto;
    font-size: 18px;
    font-weight: 500;
  }
  .s-filters-sheet-close {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: #121212 !important;
    font-size: 24px;
  }
  .s-filters-sheet-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .s-filters-sheet .s-category-filters {
    margin: 0;
    border: 0;
  }
  .s-filters-sheet .s-category-filters .s-filters-header {
    display: none;
  }
  .s-filters-sheet .s-category-filters {
    font-size: 15px;
  }
  .s-filters-sheet .s-category-filters .s-filter-group {
    padding: 0 16px;
    border-bottom: 1px solid #f0f0f0;
  }
  .s-filters-sheet .s-category-filters .s-filter-group .s-filter-header {
    padding: 15px 0 15px 22px;
    font-size: 15px;
    font-weight: 500;
  }
  .s-filters-sheet .s-category-filters .s-filter-group .s-filter-header:before {
    top: 50%;
    left: 0;
    right: auto;
    margin: -6px 0 0;
    width: 12px;
    height: 12px;
  }
  .s-filters-sheet .s-category-filters .s-filter-group .s-filter-wrapper {
    margin: 0 0 12px;
    font-size: 15px;
  }
  .s-filters-sheet .s-category-filters .s-filter-group .s-filter-wrapper .s-filter-item {
    margin: 0;
  }
  .s-filters-sheet .s-category-filters .s-filter-item label {
    display: block;
    padding: 10px 0;
  }
  .s-filters-sheet .s-category-filters .s-filter-item input[type="checkbox"],
  .s-filters-sheet .s-category-filters .s-filter-item input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    vertical-align: -3px;
  }
  .s-filters-sheet .s-category-filters .s-filter-item.s-range-item {
    text-align: left;
  }
  .s-filters-sheet .s-category-filters .s-filter-item.s-range-item input[type="text"] {
    width: 90px;
    height: 40px;
  }
  .s-filters-sheet .s-category-filters .s-buttons-wrapper {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #eee;
  }
  .s-filters-sheet .s-category-filters .s-buttons-wrapper .s-button {
    height: 46px;
    font-size: 16px;
  }
  body.is-filters-open {
    overflow: hidden;
  }

  .s-main-wrapper .s-main-block .s-sidebar-wrapper.is-empty-on-mobile {
    display: none;
  }

  /* ---------- Forms: auth, profile, checkout, reviews ---------- */

  input[type="text"],
  input[type="search"],
  input[type="password"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  input[type="phone"],
  input[type="number"],
  textarea,
  select {
    max-width: 100%;
  }
  .wa-form .wa-field > .wa-name,
  .wa-form .wa-field > .wa-value,
  .wa-form .wa-field .wa-value {
    display: block;
    float: none;
    width: auto !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left;
  }
  .wa-form .wa-field > .wa-name {
    padding-bottom: 4px;
  }
  .wa-form .wa-field .wa-value input[type="text"],
  .wa-form .wa-field .wa-value input[type="email"],
  .wa-form .wa-field .wa-value input[type="password"],
  .wa-form .wa-field .wa-value input[type="tel"],
  .wa-form .wa-field .wa-value select {
    width: 100% !important;
    height: 42px;
  }
  .wa-form .wa-field .wa-value textarea {
    width: 100% !important;
    min-height: 120px;
  }
  .wa-form .wa-field .wa-value input[type="submit"],
  .wa-form .wa-field .wa-value.wa-submit input[type="submit"] {
    width: 100%;
    height: 46px;
  }
  .s-auth-page .wa-form-wrapper,
  .s-profile-page .wa-form-wrapper {
    max-width: 100%;
  }
  .s-profile-page .s-view-block .s-layout,
  .s-profile-page .s-view-block .s-layout .s-column {
    display: block;
    width: auto !important;
  }

  /* step-by-step checkout */
  .s-checkout-page .s-steps-wrapper .s-step-wrapper .s-step-header .s-layout,
  .s-checkout-page .s-steps-wrapper .s-step-wrapper .s-step-header .s-layout > .s-column,
  .s-checkout-page .s-step-content .s-layout,
  .s-checkout-page .s-step-content .s-layout > .s-column {
    display: block;
    width: auto !important;
    text-align: left;
  }
  .s-checkout-page .s-steps-wrapper .s-step-wrapper .s-step-content-wrapper .s-step-content .s-contact-form .s-column-info,
  .s-checkout-page .s-steps-wrapper .wa-form .wa-field.wa-field-address > .wa-name {
    width: auto;
  }
  .s-checkout-page .s-steps-wrapper .s-step-wrapper .s-step-footer .s-step-submit {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  /* cart totals */
  .s-cart-page .s-cart-total .s-coupon-section,
  .s-cart-page .s-cart-total .s-table-section .s-totals-table .s-cart-checkout .s-submit-button {
    width: 100%;
  }
  .s-cart-page .s-cart-total .s-table-section .s-totals-table td.s-column-price .s-price {
    min-width: 0;
  }
  .s-cart-page .s-cart-total .s-table-section .s-totals-table .s-cart-checkout td {
    padding-top: 16px;
  }

  /* sorting dropdown */
  .s-products-wrapper .s-sorting-wrapper .s-sorting-list.sort-filters .s-dropdown-wrapper > ul {
    width: auto;
    min-width: 200px;
    max-width: calc(100vw - 24px);
  }

  /* compare */
  .s-compare-page .s-table-wrapper .s-compare-table tr th,
  .s-compare-page .s-table-wrapper .s-compare-table tr td {
    width: 150px;
  }
  .s-compare-page .s-table-wrapper .s-compare-table thead tr th.s-actions-column {
    width: 120px;
  }

  /* reviews */
  .s-reviews-page .s-review-images-section .s-attached-files-section .s-file-wrapper {
    margin: 16px 16px 0 0;
  }
  .s-reviews-page .s-review-images-section .s-attached-files-section .s-file-wrapper .s-image-wrapper {
    width: 120px;
  }
  .s-reviews-page .s-layout,
  .s-reviews-page .s-layout > .s-column {
    display: block;
    width: auto;
    text-align: left;
  }
  .s-reviews-page textarea {
    width: 100%;
  }

  /* blog */
  .sidebar {
    width: auto;
  }
  .comments textarea,
  .comment-form textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .comment-form-fields label {
    width: auto;
    float: none;
  }
  .comment-form-fields input {
    width: 100%;
  }

  /* schedule and subscribe popups */
  .s-schedule-wrapper .s-hidden,
  .s-footer-wrapper .s-footer-block .s-subscribe-section .s-hidden {
    width: auto;
    max-width: calc(100vw - 24px);
  }

  .s-share-wrapper {
    text-align: center;
  }
}

/* ===================== MOBILE: HOME PAGE BLOCKS ===================== */
@media (max-width: 900px) {

  /* latest reviews: swipeable row, like the product sliders */
  .s-home-reviews-list {
    display: flex;
    gap: 0;
    margin: 0 -12px;
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 12px;
    scrollbar-width: none;
  }
  .s-home-reviews-list::-webkit-scrollbar {
    display: none;
  }
  .s-home-reviews-list:after {
    content: "";
    flex: 0 0 12px;
  }
  .s-home-reviews-list .s-home-review {
    flex: 0 0 45%;
    box-sizing: border-box;
    padding: 0 12px 0 0;
    scroll-snap-align: start;
  }
}

/* ===================== MOBILE: AUTH PAGES (login, signup, forgot password) ===================== */
@media (max-width: 900px) {
  /* the simplified layout resets the header paddings with a more specific selector */
  html.is-simplified .s-main-wrapper .s-main-block .s-header-wrapper .s-header-top {
    padding: 12px;
  }
  html.is-simplified .s-global-header {
    margin: 16px 12px 12px;
  }
  .s-auth-page .s-auth-header,
  .s-auth-page .s-auth-body {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .wa-form-wrapper .wa-field .wa-value input[type="text"],
  .wa-form-wrapper .wa-field .wa-value input[type="email"],
  .wa-form-wrapper .wa-field .wa-value input[type="password"],
  .wa-form-wrapper .wa-field .wa-value input[type="tel"],
  .wa-form-wrapper .wa-field .wa-value select {
    width: 100% !important;
    height: 42px;
    box-sizing: border-box;
  }
  .wa-form-wrapper .wa-field .wa-value textarea {
    width: 100% !important;
    box-sizing: border-box;
  }
  .wa-form-wrapper input[type="submit"],
  .wa-form-wrapper .wa-buttons-wrapper input[type="button"] {
    width: 100%;
    height: 46px;
    font-size: 16px;
  }
}

/* ===================== MOBILE: BLOG ===================== */
@media (max-width: 900px) {
  .post {
    margin-bottom: 40px;
  }
  .post h3 {
    font-size: 20px !important;
    line-height: 1.3;
  }
  .post h1 {
    font-size: 24px !important;
    line-height: 1.25;
  }
  .post img {
    height: auto !important;
  }
}

/* ============================== PHONE ============================== */
@media (max-width: 600px) {

  .top_menu .s-column.right .s-schedule-wrapper .s-label-wrapper {
    font-size: 0;
  }
  .top_menu .s-column.right .s-schedule-wrapper .s-label-wrapper .clock {
    font-size: 15px;
  }
  .top_menu .s-time-wrapper .s-text {
    font-size: 12px;
  }

  .s-header-wrapper .s-header-top {
    padding: 10px 12px;
  }
  .s-header-wrapper .s-header-top .accaunt {
    font-size: 13px;
  }
  .s-header-wrapper .s-header-top .s-logo-column {
    flex: 1 1 0;
  }
  .s-header-wrapper .s-header-top .s-phones-column {
    gap: 2px 12px;
  }
  .s-header-wrapper .s-header-top .s-phone-wrapper .s-phone {
    font-size: 14px;
  }
  .s-header-wrapper .s-header-top .s-phone-wrapper .size-26 {
    display: none;
  }
  .s-column.right.accaunt a {
    font-size: 13px;
  }

  .s-header-bottom .cart_blok .s-price {
    display: none;
  }

  .s-products-wrapper .s-products-list.thumbs-view .s-product-wrapper,
  .s-products-wrapper .s-products-list.is-short .s-product-wrapper,
  html.is-home-wide .s-products-wrapper .s-products-list.thumbs-view .s-product-wrapper,
  html.is-home-wide .s-products-wrapper .s-products-list.is-short .s-product-wrapper {
    width: 50%;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper:nth-child(3n),
  .s-products-wrapper .s-products-list .s-product-wrapper:nth-child(4n),
  html.is-home-wide .s-products-list .s-product-wrapper:nth-child(5n) {
    border-right: 1px solid #f0f0f0;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper:nth-child(2n) {
    border-right: none;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .s-product-block {
    padding: 10px 8px;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .s-image-wrapper {
    height: 120px;
    line-height: 120px;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .s-price-wrapper .s-price {
    font-size: 16px;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .s-sku-wrapper {
    display: none;
  }
  .s-badge-wrapper.is-corner {
    transform: scale(0.8);
    transform-origin: 0 0;
  }

  /* two full cards and a peek of the third hint that the strip scrolls */
  .s-products-wrapper .s-slider-wrapper .s-slider-block .s-products-list .s-product-wrapper,
  .s-products-wrapper .s-slider-wrapper .s-slider-block .s-products-list .s-product-wrapper:nth-child(n) {
    flex-basis: 44%;
  }

  .s-products-wrapper .s-sorting-wrapper > .s-layout {
    flex-wrap: nowrap;
  }
  .s-products-wrapper .s-sorting-wrapper > .s-layout > .s-column:not(.right) {
    flex: 1 1 auto;
    min-width: 0;
  }
  .s-products-wrapper .s-sorting-wrapper .s-sorting-list.sort-filters .s-label {
    display: none;
  }
  .s-products-wrapper .s-sorting-wrapper .s-sorting-list.sort-filters .s-dropdown-wrapper {
    max-width: 100%;
    margin: 0;
  }
  .s-products-wrapper .s-sorting-wrapper .s-sorting-list.sort-filters .s-dropdown-wrapper > .s-sort-active {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .s-products-wrapper .s-sorting-wrapper .s-sorting-list.view-filters .s-label {
    display: none;
  }

  /* info blocks: compact 2x2 grid instead of four full-width rows */
  .info_blok .blok {
    width: 50%;
    padding: 12px 6px;
    border-left: 0;
  }
  .info_blok .blok img,
  .info_blok .blok .s-icon {
    height: 36px;
  }
  .info_blok .blok strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 18px;
  }
  .info_blok .blok .s-info-content {
    font-size: 12px;
    line-height: 16px;
  }

  .s-product-page .s-product-photos .s-photo-main a {
    height: 240px;
    line-height: 240px;
  }
  .s-product-page .s-product-photos .s-photo-main a img {
    max-height: 240px;
  }

  .s-cart-page .s-cart-products .s-cart-product > .s-layout {
    grid-template-columns: 56px 1fr auto;
  }

  .s-quick-view-content article.s-product-page {
    padding: 10px 12px;
  }
  .s-home-reviews-list .s-home-review {
    flex-basis: 80%;
  }
}

@media (max-width: 360px) {
  .s-header-bottom .s-compare-column {
    display: none !important;
  }
  .s-products-wrapper .s-products-list .s-product-wrapper .s-buttons-wrapper .s-compare-button {
    display: none;
  }
}

/* With the bottom bar the header row is just catalog + search */
@media (max-width: 900px) {
  body.with-bottom-bar .s-header-wrapper .s-header-bottom .s-catalog-column {
    flex: 0 0 auto;
  }
  body.with-bottom-bar .s-header-wrapper .s-header-bottom .s-search-column {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  body.with-bottom-bar .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-button {
    width: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }
  body.with-bottom-bar .s-header-wrapper .s-header-bottom .s-catalog-wrapper .s-catalog-button:before {
    left: 50%;
    margin-left: -14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-nav-container,
  .s-catalog-list .s-sub-toggle:after,
  .s-sticky-buy,
  .s-filters-sheet-panel,
  .s-filters-sheet-overlay {
    transition: none;
  }
}
