/* Mobile overrides: loaded after responsive.css */

@media (max-width: 767px) {
  html, body { overflow-x: hidden; }

  /* ── Mobile header: stacked brand + always-visible search ── */
  body { padding: 0 !important; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #000 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    overflow: visible;
  }

  .float-block {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    z-index: auto !important;
    background: #000 !important;
  }

  .top-icon-menu { display: none !important; }

  .site-header__top {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 6px !important;
    background: #000 !important;
  }

  .site-header__top > .clear,
  .site-header__top > .user-data {
    display: none !important;
  }

  .site-header__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-right: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06) !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .site-header__menu-btn.active {
    background: rgba(255, 102, 0, 0.15) !important;
    border-color: rgba(255, 102, 0, 0.45) !important;
  }

  .site-header__menu-icon,
  .site-header__menu-icon::before,
  .site-header__menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    content: '';
  }

  .site-header__menu-icon {
    position: relative;
    background: #fff;
  }

  .site-header__menu-icon::before { position: absolute; top: -6px; left: 0; }
  .site-header__menu-icon::after { position: absolute; top: 6px; left: 0; }

  .site-header__menu-btn.active .site-header__menu-icon { background: transparent; }
  .site-header__menu-btn.active .site-header__menu-icon::before { top: 0; transform: rotate(45deg); }
  .site-header__menu-btn.active .site-header__menu-icon::after { top: 0; transform: rotate(-45deg); }

  .header-border {
    padding: 0 !important;
    border-bottom: 0 !important;
    background: #000 !important;
    overflow: visible;
  }

  .header-border > .container {
    display: block;
    padding: 0 !important;
    overflow: visible;
  }

  .logo-block {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    overflow: visible;
  }

  .site-header__logo {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.15;
    width: 100%;
    overflow: visible;
  }

  .logo-tagline {
    display: block;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85) !important;
    white-space: normal;
    overflow: visible;
    max-width: 100%;
  }

  .logo-brand {
    display: block;
    font-size: 28px !important;
    line-height: 1;
    letter-spacing: -0.5px !important;
    color: #fff !important;
  }

  .user-data,
  .social-data { display: none !important; }

  .header {
    margin: 0 !important;
    padding: 8px 12px 12px !important;
    background: #000 !important;
  }

  .header > .container { padding: 0 !important; }

  .search-form {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #search_mini_form {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    z-index: auto !important;
  }

  .header .form-search {
    display: flex !important;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 !important;
    position: relative;
  }

  .header .form-search::after { display: none !important; }

  .header .form-search label { display: none; }

  .header .form-search .p-reletive {
    flex: 1 1 auto;
    display: block;
    min-width: 0;
    float: none !important;
    position: relative;
  }

  .header .form-search .input-text {
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 44px 0 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 16px !important;
    box-shadow: none !important;
    float: none !important;
  }

  .header .form-search .clear-bt,
  .header .form-search .loading {
    right: 14px !important;
    top: 50% !important;
    margin-top: -8px;
  }

  .header .form-search button.button {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: 50px !important;
    min-width: 50px;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ff6600 !important;
    flex: 0 0 50px;
    float: none !important;
  }

  .header .form-search button.button span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 46px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
  }

  .header .form-search button.button span span {
    display: none !important;
  }

  .header .form-search button.button span::before {
    font-family: FontAwesome;
    content: "\f002" !important;
    font-size: 17px !important;
    line-height: 1 !important;
    color: #fff !important;
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
  }

  /* Side swipe menu position under sticky header */
  .swipe {
    top: 0 !important;
    padding-top: 118px;
    box-sizing: border-box;
  }

  /* Catalog accordion button */
  .nav-container {
    padding: 10px 12px 0 !important;
    margin-top: 0 !important;
  }

  .sf-menu-block {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .site-header__catalog-btn,
  #menu-icon.site-header__catalog-btn {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    height: auto !important;
    min-height: 50px;
    line-height: 1.2 !important;
    margin: 0;
    padding: 13px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px !important;
    background: #1a1a1a !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.01em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    box-sizing: border-box;
  }

  .site-header__catalog-btn:active,
  #menu-icon.site-header__catalog-btn:active {
    background: #252525 !important;
  }

  #menu-icon::before,
  #menu-icon.active::before {
    content: '' !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    visibility: hidden !important;
  }

  .site-header__catalog-label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 4px;
  }

  .site-header__catalog-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin-left: auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
  }

  .site-header__catalog-icon::before {
    content: '\f078';
    font-family: FontAwesome;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    display: block;
    transition: transform 0.2s ease;
  }

  .site-header__catalog-icon::after {
    display: none !important;
    content: none !important;
  }

  #menu-icon.active .site-header__catalog-icon::before {
    content: '\f077';
    transform: none;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .sf-menu-phone {
    border-radius: 0 0 12px 12px !important;
    border-top: 0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  /* Base readability */
  body { font-size: 14px; line-height: 20px; }

  /* Restore context on mobile (responsive.css hides these) */
  .page-title,
  .category-title { display: block !important; }

  /* Breadcrumbs: show but keep it compact/scrollable */
  .breadcrumbs { display: block !important; margin: 10px 0 14px !important; padding: 8px 10px !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .breadcrumbs ul { white-space: nowrap; }
  .breadcrumbs li { float: none !important; display: inline; }
  .breadcrumbs li span { margin: 0 6px 0 4px !important; }

  /* Sidebar duplicates menu; hide it on phone */
  .col-left.sidebar { display: none !important; }

  /* Callback FAB: keep small and inside viewport */
  #popup__toggle { right: 12px !important; bottom: 12px !important; }

  /* Layout overflow fixes (responsive.css uses negative margins) */
  .page { margin: 0 !important; }
  .container { margin-left: auto !important; margin-right: auto !important; }
  .main-container,
  .footer-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Fluid media for CMS/product content */
  img, iframe, video { max-width: 100% !important; height: auto; }
  table { max-width: 100% !important; }
  .std table, .short-description table { width: 100% !important; }

  /* Forms: usable without iOS zoom (except header search, styled above) */
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    box-sizing: border-box;
  }

  /* Make primary content breathe */
  .padding-s { padding-left: 10px !important; padding-right: 10px !important; }

  .main-container { padding-top: 16px !important; }

  /* ── Phase 2: category & search listings ── */
  .category-title h1,
  .page-title.category-title h1 {
    font-size: 20px !important;
    line-height: 1.25 !important;
    margin: 0 0 14px !important;
    word-break: break-word;
  }

  .category-products .toolbar {
    margin-bottom: 16px !important;
    padding: 12px !important;
    background: #f5f5f5;
    border-radius: 12px;
    border: 1px solid #ebebeb;
  }

  .category-products .toolbar .pager {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 0 10px !important;
    margin-bottom: 10px !important;
  }

  .category-products .toolbar .pager .amount {
    margin: 0 !important;
    font-size: 14px;
  }

  .category-products .toolbar .pager .limiter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  .category-products .toolbar .pager .limiter label {
    margin: 0;
    white-space: nowrap;
  }

  .category-products .toolbar .pager .limiter select {
    width: auto !important;
    min-width: 72px;
    min-height: 40px;
    padding: 6px 10px !important;
  }

  .category-products .sorter {
    display: block !important;
    padding: 0 !important;
  }

  .category-products .sorter .view-mode {
    display: none !important;
  }

  .category-products .sorter .sort-by {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .category-products .sorter .sort-by label {
    float: none !important;
    margin: 0;
    white-space: nowrap;
  }

  .category-products .sorter .sort-by .right {
    order: 3;
    margin-left: auto;
  }

  .category-products .sorter .sort-by .right a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
  }

  .category-products .sorter .sort-by select {
    flex: 1 1 auto;
    min-width: 0 !important;
    width: auto !important;
    min-height: 40px;
    padding: 6px 10px !important;
  }

  /* Top toolbar: no pager (bottom only) */
  .category-products > .toolbar .sorter > ul.yiiPager {
    display: none !important;
  }

  .category-products .toolbar-bottom {
    margin-top: 20px !important;
  }

  .category-products .toolbar-bottom .toolbar {
    padding: 12px !important;
  }

  .category-products .toolbar-bottom .toolbar .pager .amount,
  .category-products .toolbar-bottom .toolbar .pager .limiter,
  .category-products .toolbar-bottom .toolbar .sorter .sort-by,
  .category-products .toolbar-bottom .toolbar .sorter .view-mode {
    display: none !important;
  }

  .category-products .toolbar-bottom .toolbar .sorter {
    display: block !important;
  }

  .category-products ul.yiiPager {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 0 !important;
    padding: 4px 0 0 !important;
    list-style: none;
  }

  .category-products ul.yiiPager li {
    display: block !important;
    margin: 0 !important;
  }

  .category-products ul.yiiPager a:link,
  .category-products ul.yiiPager a:visited {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    border-color: #ccc !important;
    background: #fff;
  }

  .category-products ul.yiiPager .selected a {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
  }

  /* Product grid cards */
  .category-products .products-grid.row {
    display: flex !important;
    flex-wrap: wrap;
    margin: 0 -6px 8px !important;
    padding: 0;
  }

  .category-products .products-grid li.item {
    float: none !important;
    width: 50% !important;
    max-width: 50% !important;
    padding: 0 6px 12px !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .category-products .products-grid .wrapper-hover {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
  }

  .category-products .products-grid .wrapper-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .category-products .products-grid .product-image {
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: auto !important;
    min-height: 120px;
    max-height: 160px;
    margin: 0 0 8px !important;
    padding: 8px !important;
    border: 0 !important;
    border-bottom: 0 !important;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
  }

  .category-products .products-grid .product-image img {
    max-width: 100% !important;
    max-height: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
  }

  .category-products .products-grid .product-shop {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: visible !important;
    padding: 0 2px 4px !important;
  }

  .category-products .products-grid .product-name {
    margin: 0 0 4px !important;
    line-height: 1.3;
  }

  .category-products .products-grid .product-name a {
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #222 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .category-products .product-sku {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .category-products .product-meta {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    display: none;
  }

  .category-products .products-grid .price-box {
    margin: auto 0 8px !important;
    font-size: 14px;
    font-weight: 700;
    color: #ff6600;
  }

  .category-products .products-grid .price-box .price-label {
    display: none;
  }

  .category-products .products-grid .old-price {
    font-size: 12px;
    color: #999;
    margin: 0;
  }

  .category-products .products-grid .special-price {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ff6600;
  }

  .category-products .products-grid .prepay_price {
    display: none;
  }

  .category-products .products-grid .actions {
    margin: 0 !important;
    clear: both;
  }

  .category-products .products-grid .actions .button.btn-details {
    width: 100%;
    margin: 0;
  }

  .category-products .products-grid .actions .button.btn-details > span {
    width: 100% !important;
    display: block !important;
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 8px !important;
    background: #ff6600 !important;
    border: 0 !important;
    color: #fff !important;
  }

  .category-products .products-grid .actions .button.btn-details > span span {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600;
    padding: 0 !important;
  }

  /* List view → same card grid on mobile */
  .category-products .products-list {
    display: flex !important;
    flex-wrap: wrap;
    margin: 0 -6px !important;
    padding: 0 !important;
    list-style: none;
  }

  .category-products .products-list li.item {
    float: none !important;
    width: 50% !important;
    padding: 0 6px 12px !important;
    margin: 0 !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 8px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
  }

  .category-products .products-list .product-image {
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: auto !important;
    min-height: 120px;
    margin: 0 0 8px !important;
    padding: 8px !important;
    border: 0 !important;
    background: #fafafa;
    border-radius: 8px;
  }

  .category-products .products-list .product-image img {
    max-width: 100% !important;
    max-height: 140px !important;
    object-fit: contain;
  }

  .category-products .products-list .product-shop {
    overflow: visible !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .category-products .products-list .f-fix,
  .category-products .products-list .list-left,
  .category-products .products-list .list-right {
    float: none !important;
    width: 100% !important;
  }

  .category-products .products-list .desc.std {
    display: none;
  }

  .category-products .products-list .link-learn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    background: #ff6600;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
  }

  /* ── Phase 2: product page ── */
  .padding-s:has(.product-sticky-cta) {
    padding-bottom: 88px !important;
  }

  .product-view .product-img-box {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
  }

  .product-view .product-img-box .product-box-customs,
  .product-view .product-img-box .product-image {
    width: 100% !important;
    overflow: visible !important;
  }

  .product-gallery__main {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
  }

  .product-gallery__open {
    display: block !important;
    position: relative !important;
    text-align: center;
    padding: 12px;
  }

  .product-gallery__main-img {
    display: block !important;
    max-width: 100% !important;
    max-height: 320px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto;
    object-fit: contain;
  }

  .product-gallery__thumbs .more-views h2,
  .product-view .more-views > h2 {
    display: none;
  }

  .product-gallery__thumbs-scroll {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 2px 4px;
    margin: 0;
    scroll-snap-type: x proximity;
  }

  .product-gallery__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    scroll-snap-align: start;
  }

  .product-gallery__thumb.is-active {
    border-color: #ff6600;
  }

  .product-gallery__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  #cloud-zoom-big,
  .cloud-zoom-lens {
    display: none !important;
  }

  .product-view .product-shop {
    float: none !important;
    width: 100% !important;
  }

  .product-view .product-name h1 {
    font-size: 18px !important;
    line-height: 1.3 !important;
    padding-right: 0 !important;
  }

  .product-view .product-name .viewed {
    display: none;
  }

  .product-view .product-shop .price-box {
    font-size: 22px;
    font-weight: 700;
    color: #ff6600;
    margin-bottom: 14px !important;
  }

  .product-view .product-shop > h2 {
    font-size: 15px !important;
    padding: 12px 0 8px !important;
  }

  .product-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .product-sticky-cta__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
  }

  .product-sticky-cta__price {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
  }

  .product-sticky-cta__amount {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #ff6600;
  }

  .product-sticky-cta__old {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
  }

  .product-sticky-cta__btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #ff6600;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
  }

  /* Shop availability cards */
  #cart-block #toggle-btn {
    width: 100%;
    margin-bottom: 10px;
  }

  #cart-block #toggle-btn > span {
    width: 100% !important;
    display: block !important;
    min-height: 44px;
    line-height: 44px !important;
    border-radius: 10px !important;
  }

  #cart-block #shops-content table.table_blur {
    display: block;
    width: 100% !important;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }

  #cart-block #shops-content table.table_blur thead,
  #cart-block #shops-content table.table_blur tbody,
  #cart-block #shops-content table.table_blur tr {
    display: block;
    width: 100%;
  }

  #cart-block #shops-content table.table_blur th {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    border: 0 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    background: #f5f5f5 !important;
    color: #222 !important;
    font-size: 15px !important;
    font-weight: 600;
    padding: 12px 14px !important;
    box-shadow: none !important;
  }

  #cart-block #shops-content table.table_blur th.hover {
    display: none;
  }

  #cart-block #shops-content table.table_blur th:not(.hover) {
    display: block;
  }

  #cart-block #shops-content table.table_blur td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    border: 0 !important;
    padding: 8px 14px !important;
    font-size: 14px;
  }

  #cart-block #shops-content table.table_blur td .button {
    width: 100%;
    margin-top: 6px;
  }

  #cart-block #shops-content table.table_blur td .button > span {
    width: 100% !important;
    display: block !important;
    min-height: 44px;
    line-height: 44px !important;
    border-radius: 10px !important;
  }

  #cart-block #prepay-table th,
  #cart-block #transit-table th {
    background: #fff8f2 !important;
  }

  /* Related products horizontal scroll */
  .padding-s > .widget.widget-catalogsale-products .products-grid.owl-products {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin: 0 -10px 0 0 !important;
    padding: 4px 10px 12px 0 !important;
    scroll-snap-type: x mandatory;
  }

  .padding-s > .widget.widget-catalogsale-products .products-grid.owl-products li.item {
    float: none !important;
    flex: 0 0 78%;
    max-width: 280px;
    width: 78% !important;
    padding: 0 !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }

  .padding-s > .widget.widget-catalogsale-products .wrapper-hover {
    height: 100%;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    padding: 8px !important;
  }

  .padding-s > .widget.widget-catalogsale-products .product-image {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 120px;
    margin: 0 0 8px !important;
    padding: 8px !important;
    border: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 8px;
  }

  .padding-s > .widget.widget-catalogsale-products .product-image img {
    max-height: 130px;
    object-fit: contain;
  }

  .padding-s > .widget.widget-catalogsale-products .actions .button {
    width: 100%;
  }

  .padding-s > .widget.widget-catalogsale-products .actions .button > span {
    width: 100% !important;
    display: block !important;
    min-height: 40px;
    line-height: 40px !important;
    border-radius: 8px !important;
    background: #ff6600 !important;
    border: 0 !important;
  }

  .padding-s > .widget.widget-catalogsale-products .actions .button > span span {
    color: #fff !important;
    font-size: 13px;
  }

  /* ── Catalog hub (home /catalog) ── */
  .catalog-hub-cats {
    display: block;
    margin: 0 0 20px;
  }

  .catalog-hub-cats__title {
    font-size: 18px;
    line-height: 1.25;
    margin: 0 0 12px;
    font-weight: 700;
  }

  .catalog-hub-cats__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .catalog-hub-cats__list a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 12px;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
  }

  .catalog-hub-cats__list a:active {
    background: #ff6600;
  }

  .catalog-hub .page-title.category-title .h1,
  .catalog-hub .page-title.category-title h1,
  .catalog-hub .page-title.category-title h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin: 0 0 12px !important;
  }

  .catalog-hub .products-grid.row {
    display: flex !important;
    flex-wrap: wrap;
    margin: 0 -6px 16px !important;
    padding: 0;
  }

  .catalog-hub .products-grid li.item {
    float: none !important;
    width: 50% !important;
    max-width: 50% !important;
    padding: 0 6px 12px !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .catalog-hub .products-grid .wrapper-hover {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }

  .catalog-hub .products-grid .product-image {
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: auto !important;
    min-height: 110px;
    margin: 0 0 8px !important;
    padding: 8px !important;
    border: 0 !important;
    background: #fafafa;
    border-radius: 8px;
  }

  .catalog-hub .products-grid .product-image img {
    max-width: 100% !important;
    max-height: 120px !important;
    object-fit: contain;
  }

  .catalog-hub .products-grid .product-shop {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: visible !important;
    padding: 0 2px 4px !important;
  }

  .catalog-hub .products-grid .product-name,
  .catalog-hub .products-grid .product-name a {
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #222 !important;
  }

  .catalog-hub .products-grid .price-box {
    margin: auto 0 8px !important;
    font-size: 14px;
    font-weight: 700;
    color: #ff6600;
  }

  .catalog-hub .products-grid .prepay_price {
    display: none;
  }

  .catalog-hub .products-grid .actions .button.btn-details {
    width: 100%;
  }

  .catalog-hub .products-grid .actions .button.btn-details > span {
    width: 100% !important;
    display: block !important;
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 8px !important;
    background: #ff6600 !important;
    border: 0 !important;
  }

  .catalog-hub .products-grid .actions .button.btn-details > span span {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600;
  }

  .category-children {
    margin: 0 0 14px !important;
  }

  .category-children__header {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.3;
  }

  .category-children__list {
    gap: 8px !important;
  }

  .category-children__link {
    font-size: 12px;
    line-height: 1.35;
    padding: 8px 10px;
    width: 100%;
    border-radius: 10px;
  }

  .category-children__item {
    width: 100%;
  }

  .category-children__toggle {
    font-size: 11px;
    line-height: 1.4;
  }

  /* ── Phase 3: cart & checkout ── */
  #shopping-cart-table {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
  }

  #shopping-cart-table thead {
    display: none !important;
  }

  #cartForm2 #shopping-cart-table thead:last-of-type {
    display: block !important;
  }

  #shopping-cart-table tbody {
    display: block !important;
    width: 100% !important;
  }

  #shopping-cart-table tr {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 12px !important;
    padding: 12px !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
  }

  #shopping-cart-table td {
    display: block !important;
    min-height: 0 !important;
    width: 100% !important;
    border: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  #shopping-cart-table td:first-child {
    float: left;
    width: 72px !important;
    margin: 0 12px 8px 0;
  }

  #shopping-cart-table td:first-child img {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain;
    border-radius: 8px;
    background: #fafafa;
  }

  #shopping-cart-table td:nth-child(2) {
    overflow: hidden;
    margin-bottom: 8px;
  }

  #shopping-cart-table td:nth-child(2) .product-name {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
  }

  #shopping-cart-table td:nth-child(2) .product-name a {
    color: #222 !important;
    text-decoration: none;
  }

  #shopping-cart-table tbody tr td:nth-child(3),
  #shopping-cart-table tbody tr td:nth-child(4),
  #shopping-cart-table tbody tr td:nth-child(5),
  #shopping-cart-table tbody tr td:nth-child(6),
  #shopping-cart-table tbody tr td:nth-child(7) {
    clear: both;
    padding: 6px 0 !important;
    font-size: 14px;
  }

  #shopping-cart-table tbody tr td::before {
    color: #888;
    margin-right: 4px;
  }

  #cartForm #shopping-cart-table tbody tr td:nth-child(3)::before { content: 'Цена: '; }
  #cartForm #shopping-cart-table tbody tr td:nth-child(4)::before { content: 'Кол-во: '; }
  #cartForm #shopping-cart-table tbody tr td:nth-child(5)::before { content: 'Сумма: '; }

  #cartForm2 #shopping-cart-table tbody tr td:nth-child(3)::before { content: 'Вес: '; }
  #cartForm2 #shopping-cart-table tbody tr td:nth-child(4)::before { content: 'Цена: '; }
  #cartForm2 #shopping-cart-table tbody tr td:nth-child(5)::before { content: 'Кол-во: '; }
  #cartForm2 #shopping-cart-table tbody tr td:nth-child(6)::before { content: 'Сумма: '; }

  #shopping-cart-table tbody tr td.a-center {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  #shopping-cart-table .input-text.qty {
    width: 72px !important;
    min-height: 44px !important;
    text-align: center;
    font-size: 16px !important;
    margin: 0 !important;
  }

  #shopping-cart-table tbody tr td .price {
    font-weight: 700;
    color: #ff6600;
  }

  #cartForm #shopping-cart-table tbody tr td:last-child,
  #cartForm2 #shopping-cart-table tbody tr td:last-child {
    margin-top: 8px;
    padding-top: 8px !important;
    border-top: 1px solid #eee !important;
  }

  #shopping-cart-table thead:first-of-type {
    display: none !important;
  }

  #cartForm2 #shopping-cart-table thead:last-of-type tr {
    display: block !important;
    margin-top: 16px !important;
    padding: 14px !important;
    background: #111 !important;
    color: #fff !important;
    border-radius: 12px !important;
    border: 0 !important;
  }

  #cartForm2 #shopping-cart-table thead:last-of-type th,
  #cartForm2 #shopping-cart-table thead:last-of-type td {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    color: #fff !important;
    padding: 4px 0 !important;
    font-size: 15px !important;
    text-align: left !important;
  }

  #shopping-cart-table .payment-method {
    width: 20px;
    height: 20px;
    min-height: 20px;
  }

  #cartForm2 .clearfix.form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px !important;
    padding: 12px !important;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
  }

  #cartForm2 .clearfix.form-group .col-sm-1,
  #cartForm2 .clearfix.form-group .col-sm-2,
  #cartForm2 .clearfix.form-group .col-sm-9 {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
  }

  #cartForm2 .clearfix.form-group .col-sm-9 {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  #cartForm2 .step1 > .clearfix.form-group[style] {
    background: #111 !important;
    color: #fff !important;
    border: 0 !important;
  }

  #cartForm2 .step1 > .clearfix.form-group[style] .col-sm-9 {
    color: #fff !important;
    font-weight: 600;
  }

  #cartForm2 #step1-next-button .btn,
  #cartForm2 .step2 .btn {
    width: 100%;
    min-height: 48px;
    margin-bottom: 8px;
    font-size: 16px;
    border-radius: 10px;
  }

  #cartForm2 .step2 .form-group .col-sm-8 {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #shopping-cart-table .btn-remove2 {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    background: #f5f5f5;
    color: #c00 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
  }

  /* ── Checkout result pages ── */
  .checkout-result-page .padding-s {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .order-result {
    max-width: none;
    margin: 0 0 20px;
    padding: 22px 16px;
    border-radius: 12px;
  }

  .order-result__icon {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .order-result__message {
    font-size: 15px;
    line-height: 1.45;
  }

  .order-result__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .order-result__btn {
    width: 100%;
  }

  /* ── Phase 4: content lists (news / articles / sales) ── */
  .col-main.col-xs-12.col-sm-9 {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .blog-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
  }

  .blog-list .item {
    margin: 0 0 14px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .blog-list .postWrapper.row {
    margin: 0 !important;
  }

  .blog-list .postImage {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
  }

  .blog-list .postImage img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 200px;
    object-fit: cover;
  }

  .blog-list .col-xs-12.col-sm-8,
  .blog-list .col-xs-12.col-sm-4 {
    padding: 12px !important;
  }

  .blog-list .postTitle h2 {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin: 0 0 6px !important;
  }

  .blog-list .postTitle a {
    color: #111 !important;
    text-decoration: none !important;
  }

  .blog-list .postDate {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
  }

  .blog-list .postContent p {
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 10px;
    color: #444;
  }

  .blog-list .aw-blog-read-more {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    box-sizing: border-box;
    font-size: 14px !important;
  }

  /* ── Phase 4: CMS article / news content ── */
  .page-title.category-title {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .page-title .viewed {
    float: none !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .postDate {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px;
  }

  .postContent.cms-content {
    font-size: 15px;
    line-height: 1.55;
    color: #333;
    overflow-wrap: anywhere;
  }

  .postContent.cms-content img {
    max-width: 100% !important;
    height: auto !important;
  }

  .postContent.cms-content iframe,
  .postContent.cms-content embed,
  .postContent.cms-content object {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 220px;
    border: 0;
    border-radius: 12px;
    margin: 12px 0;
  }

  .postContent.cms-content table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .postContent.cms-content a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: #111 !important;
    text-decoration: none !important;
  }

  .postContent.cms-content input[type="button"],
  .postContent.cms-content input[type="submit"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    margin: 8px 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #ff6600;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
    white-space: normal;
  }

  /* Shops / contacts CMS lists */
  .postContent.cms-content--nashy-magaziny ul,
  .postContent.cms-content--kontaktnaya-informaciya ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .postContent.cms-content--nashy-magaziny ul > li,
  .postContent.cms-content--kontaktnaya-informaciya ul > li {
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fafafa;
    line-height: 1.45;
  }

  .postContent.cms-content--nashy-magaziny ul > li img,
  .postContent.cms-content--kontaktnaya-informaciya ul > li img {
    vertical-align: middle;
  }

  .postContent.cms-content--nashy-magaziny a[href*="whatsapp"],
  .postContent.cms-content--nashy-magaziny a[href*="viber"],
  .postContent.cms-content--nashy-magaziny a[href*="t.me"],
  .postContent.cms-content--kontaktnaya-informaciya a[href*="whatsapp"],
  .postContent.cms-content--kontaktnaya-informaciya a[href*="viber"],
  .postContent.cms-content--kontaktnaya-informaciya a[href*="t.me"] {
    display: inline-block;
    margin: 4px 6px 4px 0;
    vertical-align: middle;
  }

  /* ── Phase 4: login / registration / profile ── */
  .account-wrapper {
    flex-direction: column-reverse !important;
    gap: 16px;
  }

  .account-menu ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .account-menu ul li {
    flex: 1;
    padding: 0 !important;
  }

  .account-menu ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #f7f7f7;
    color: #111 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
  }

  .account-menu .active a {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
  }

  .account-form .form-group,
  .account-page .form-group,
  #login-form .form-group {
    margin-bottom: 14px !important;
  }

  .account-form .control-label,
  .account-form .col-sm-3,
  .account-form .col-sm-7,
  .account-form .col-sm-8,
  .account-form .input-box,
  .account-page .control-label,
  .account-page .col-sm-3,
  .account-page .col-sm-4,
  .account-page .col-sm-7,
  .account-page .col-sm-8,
  #login-form .control-label,
  #login-form .col-sm-4 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .account-form .control-label,
  .account-page .control-label,
  #login-form .control-label {
    display: block;
    margin: 0 0 6px !important;
    font-size: 14px;
    font-weight: 600;
  }

  .account-form .col-sm-offset-3,
  .account-page .col-sm-offset-4,
  #login-form .col-sm-offset-4 {
    margin-left: 0 !important;
  }

  .account-form .btn-primary,
  .account-page .btn-primary,
  #login-form .btn-primary {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    background: #ff6600 !important;
    border-color: #ff6600 !important;
  }

  .account-page small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
  }

  .success_reg {
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 10px;
    background: #e8f6ee;
    color: #1a7f4b;
    font-size: 14px;
    line-height: 1.4;
  }

  #login-form #uLogin {
    max-width: 100%;
    overflow: hidden;
  }

  /* ── Phase 5: overflow guard + back-to-top on phone ── */
  .std,
  .category-products,
  .postContent,
  .blog-list,
  .col-main {
    max-width: 100%;
    overflow-x: hidden;
  }

  .pluso {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #back-top {
    display: block !important;
    position: fixed;
    right: 12px;
    bottom: 72px;
    z-index: 900;
    margin: 0 !important;
  }

  #back-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  }

  #back-top span:before {
    color: #fff !important;
    font-size: 28px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 479px) {
  .category-products .products-grid li.item,
  .category-products .products-list li.item,
  .catalog-hub .products-grid li.item {
    width: 100% !important;
    max-width: 100% !important;
  }

  .category-products .products-list li.item {
    padding: 8px !important;
  }
}

@media (max-width: 644px) {
  .sf-menu-block { margin-top: 0 !important; }
  #search_mini_form {
    top: auto !important;
    position: static !important;
    width: 100% !important;
  }
  .user-data { margin-top: 0 !important; }
}

@media (max-width: 490px) {
  .sf-menu-block { margin-top: 0 !important; }
}

@media (max-width: 460px) {
  .sf-menu-block { margin-top: 0 !important; }
  #search_mini_form {
    top: auto !important;
    position: static !important;
    width: 100% !important;
  }
  .top-icon-menu { margin-top: 0 !important; }
}

@media (max-width: 400px) {
  .logo-tagline { font-size: 10px !important; }
  .logo-brand { font-size: 24px !important; }
  .site-header__menu-btn {
    width: 40px;
    height: 40px;
  }
}
