/*
 * Mobile layout shared by the public catalogue, filter, result and cart pages.
 * The body.mobile class is synchronized with the Bootstrap tablet breakpoint
 * in inc/header.php so the layout also reacts to viewport changes.
 */

body.mobile {
    overflow-x: hidden;
}

body.mobile .container {
    max-width: 100%;
}

body.mobile .logo_menu {
    padding: 12px 0 6px;
}

body.mobile .logo_menu > .container > .row {
    margin-left: -15px;
    margin-right: -15px;
}

body.mobile .logo_menu > .container > .row > div {
    padding-left: 15px;
    padding-right: 15px;
}

body.mobile .logo {
    margin: 0;
    text-align: left;
}

body.mobile .logo_menu .logo img {
    width: auto;
    max-width: 100%;
    max-height: 70px;
    margin: 0;
}

body.mobile .logo_menu .timework {
    display: none;
}

body.mobile .logo_menu .btn-group {
    display: block;
    position: relative;
    z-index: 2;
    float: none;
    margin: 14px 0 0;
    text-align: right;
}

body.mobile .logo_menu .dropdown-toggle {
    font-size: 15px;
    line-height: 18px;
}

body.mobile .site-group-menu {
    display: none;
}

body.mobile .navbar {
    position: relative;
    z-index: 1;
    clear: both;
    float: none;
    width: 100%;
    min-height: 46px;
    margin: 8px 0 0;
    border: 0;
    background: transparent;
}

body.mobile .navbar-header {
    float: none;
    width: 100%;
}

body.mobile .navbar-toggle {
    display: block;
    margin-right: 0;
}

body.mobile .navbar-brand {
    display: block;
    padding-left: 0;
}

body.mobile .mainmenu {
    float: none !important;
    width: 100%;
    margin: 0;
}

body.mobile .mainmenu .navbar-nav {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

body.mobile .mainmenu .navbar-nav > li {
    float: none;
    border-top: 1px solid #ddd;
}

body.mobile .mainmenu .navbar-nav > li > a {
    display: block;
    padding: 12px 15px !important;
    line-height: 20px !important;
}

body.mobile .navbar-collapse {
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .12);
}

body.mobile .navbar-collapse.collapse:not(.in) {
    display: none !important;
}

body.mobile .navbar-collapse.in {
    display: block !important;
    overflow-y: visible;
}

body.mobile .breadcrumb {
    padding: 10px 0;
}

body.mobile .breadcrumb .container {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

body.mobile .breadcrumb .bcrumb,
body.mobile .breadcrumb .breadcrumb-link {
    float: none !important;
    margin: 0;
}

body.mobile .breadcrumb .bcrumb {
    order: 1;
}

body.mobile .breadcrumb .breadcrumb-link {
    order: 2;
    align-self: flex-start;
    font-size: 12px;
    line-height: 17px;
    white-space: normal;
}

body.mobile .home-hero {
    min-height: 200px !important;
    padding: 24px 0;
    margin-bottom: 25px;
    background-attachment: scroll;
    background-size: cover;
}

body.mobile .podborShiniDiski.filter {
    min-height: 0;
    margin: 0;
    padding: 28px 0;
    background-attachment: scroll;
    background-size: cover;
}

body.mobile .podborShiniDiski .filterH1 {
    width: 100%;
    font-size: 19px;
    line-height: 44px;
}

body.mobile .podborShiniDiski .filterBox {
    padding: 16px 14px;
}

body.mobile .podborShiniDiski .rowpad6 {
    margin-left: 0;
    margin-right: 0;
}

body.mobile .podborShiniDiski .rowpad6 > [class*="col-"],
body.mobile .podborShiniDiski .filterBox > form [class*="col-sm-"] {
    float: none;
    width: 100%;
    padding: 5px 0;
}

body.mobile .podborShiniDiski select.form-control {
    height: 42px;
    margin-bottom: 7px;
    font-size: 16px;
}

body.mobile .podborShiniDiski .btn {
    width: 100%;
    min-height: 44px;
    margin-top: 7px;
    padding-left: 15px;
    padding-right: 15px;
}

body.mobile .bordAdm {
    min-width: 0;
}

body.mobile .blockRawHtml h2 {
    margin-top: 10px;
    font-size: 22px;
    line-height: 1.25;
}

body.mobile .mobile-filter-form > .row,
body.mobile .mobile-filter-form .pins-select {
    margin-left: 0;
    margin-right: 0;
}

body.mobile .mobile-filter-form > .row > [class*="col-sm-"],
body.mobile .mobile-filter-form .pins-select > [class*="col-sm-"] {
    float: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

body.mobile .mobile-filter-form > br {
    display: none;
}

body.mobile .mobile-filter-form .control-group {
    margin-bottom: 12px;
}

body.mobile .mobile-filter-form .form-control {
    height: 42px;
    font-size: 16px;
}

body.mobile .mobile-filter-form .text-right {
    padding-top: 4px !important;
    text-align: left;
}

body.mobile .mobile-filter-form .js-filters-clear {
    display: block;
    margin: 0 0 12px !important;
}

body.mobile .mobile-filter-form .btn {
    width: 100%;
    min-height: 44px;
}

body.mobile .price-info {
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

body.mobile .product-results {
    display: block;
    width: 100%;
    margin: 20px 0;
    border: 0;
}

body.mobile .product-results thead {
    display: none;
}

body.mobile .product-results tbody {
    display: block;
    width: 100%;
}

body.mobile .product-results tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin: 0 0 12px;
    padding: 12px 64px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

body.mobile .product-results tr.tg-hidden {
    display: none;
}

body.mobile .product-results td {
    display: flex;
    min-width: 0;
    padding: 4px 0 !important;
    border: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    justify-content: space-between;
    gap: 14px;
    text-align: right;
}

body.mobile .product-results td::before {
    flex: 0 0 auto;
    content: attr(data-label);
    color: #666;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

body.mobile .product-results .result-name {
    display: block;
    padding-bottom: 8px !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

body.mobile .product-results .result-name::before,
body.mobile .product-results .result-actions::before,
body.mobile .product-results .tg-art::before {
    display: none;
}

body.mobile .product-results .result-code,
body.mobile .product-results .result-price {
    font-weight: 700;
}

body.mobile .product-results .result-actions {
    position: absolute;
    top: 50%;
    right: 10px;
    display: flex;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
}

body.mobile .product-results .cart-btn {
    display: inline-flex !important;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

body.mobile .product-results .cart-btn i {
    font-size: 18px;
}

body.mobile .product-results .tg-group {
    grid-template-columns: 36px minmax(0, 1fr);
    padding-right: 12px;
    border-width: 2px;
    background: #f7f7f7;
}

body.mobile .product-results .tg-group .tg-art {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    padding: 0 !important;
    align-items: center;
    justify-content: flex-start;
}

body.mobile .product-results .tg-group .tg-name {
    grid-column: 2;
    grid-row: 1;
    padding: 2px 0 8px !important;
}

body.mobile .product-results .tg-group td:not(.tg-art):not(.tg-name) {
    grid-column: 1 / -1;
}

body.mobile .product-results .tg-item {
    margin-left: 10px;
    width: calc(100% - 10px);
    border-left: 3px solid #aaa;
}

body.mobile .product-results .tg-item td:first-child {
    padding-left: 0 !important;
}

body.mobile .product-results .tg-toggle {
    width: 32px !important;
    height: 32px !important;
    font-size: 18px;
}

body.mobile .cart .visible-xs {
    display: block !important;
}

body.mobile .cart .hidden-xs {
    display: none !important;
}

body.mobile.cart-open {
    position: relative;
}

body.mobile.cart-open .cart {
    top: 0;
    height: auto;
    max-height: none;
    padding-bottom: env(safe-area-inset-bottom);
}

body.mobile.cart-open .bakhov-lk-return {
    display: none;
}

body.mobile .cart .container {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

body.mobile .cart {
    max-width: 100vw;
    overflow-x: hidden;
}

body.mobile .cart .js-cart-toggle {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

body.mobile .cart-controls {
    position: sticky;
    top: 0;
    z-index: 3;
    float: none;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 0;
    background: #fff;
}

body.mobile .cart-form .form-group {
    margin-bottom: 12px;
}

body.mobile .cart-form .form-control {
    min-height: 42px;
    font-size: 16px;
}

body.mobile .cart-options {
    float: none;
    width: auto;
    margin: 4px 15px 15px;
    padding: 9px 10px;
}

body.mobile .cart-options > .row {
    margin-left: 0;
    margin-right: 0;
}

body.mobile .cart-options .column {
    padding: 5px;
    border-left: 0 !important;
}

body.mobile .cart-total {
    text-align: right;
}

body.mobile .cart-mob {
    overflow-wrap: anywhere;
}

body:not(.mobile) .scroll-top-btn {
    display: none;
}

body.mobile .scroll-top-btn {
    position: fixed;
    right: 12px;
    bottom: calc(48px + env(safe-area-inset-bottom));
    z-index: 9998;
    display: flex;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .22);
    color: rgba(0, 0, 0, .8);
    font-size: 20px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

body.mobile .scroll-top-btn[hidden],
body.mobile.cart-open .scroll-top-btn {
    display: none;
}

body.mobile .bottomcontent {
    padding-top: 20px;
    padding-bottom: 20px;
}

body.mobile .bottomcontent .container > div {
    padding-left: 0;
    padding-right: 0;
}

body.mobile .bottommenu {
    margin-top: 14px;
}

body.mobile .btgrid .row {
    margin-left: 0;
    margin-right: 0;
}

body.mobile .btgrid .col {
    float: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

body.mobile .btgrid .content {
    margin-bottom: 14px;
}

@media (max-width: 420px) {
    body.mobile .logo_menu .logo img {
        max-height: 58px;
    }

    body.mobile .logo_menu .dropdown-toggle {
        font-size: 13px;
    }

    body.mobile .product-results tr {
        padding-left: 10px;
    }
}
