@media (max-width:767px) {
    /* Keep navigation in one place when the theme's fixed bottom menu exists. */
    body:has(.c-header__menu-bottom--screen) .c-header__outer--mobile { min-height:53px!important; }
    body:has(.c-header__menu-bottom--screen) .c-header__outer--mobile .c-header__row {
        height:52px; grid-template-columns:56px minmax(0,1fr) 56px!important;
    }
    body:has(.c-header__menu-bottom--screen) .c-header__outer--mobile .c-header__menu-button { width:56px; height:52px; }
    body:has(.c-header__menu-bottom--screen) .c-header__logo--mobile { grid-column:2; justify-self:center; justify-content:center; margin:0; }
    body:has(.c-header__menu-bottom--screen) .c-header__col-mobile-buttons { display:none!important; }
    .c-header__menu-bottom-wrap {
        padding:4px 0 calc(4px + env(safe-area-inset-bottom,0px))!important;
        height:auto; min-height:58px!important; box-sizing:border-box;
    }
    .c-header__menu-bottom--screen.c-header__menu-bottom--4 {
        display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
        height:48px; padding:0 8px; align-items:center;
    }
    .c-header__menu-bottom--screen > * { min-width:0; width:auto; }
    .c-header__menu-bottom--screen .c-header__button-link {
        display:flex; flex-direction:column; align-items:center; justify-content:center;
        gap:3px; min-width:44px; height:48px; position:relative; line-height:1;
    }
    .c-header__menu-bottom--screen .c-header__button-link i { font-size:22px!important; line-height:22px; }
    .c-header__menu-bottom--screen .c-header__button-link::after { content:attr(title); font:10px/1.1 Arial,sans-serif; letter-spacing:0; text-transform:none; }
    .c-header__menu-bottom--screen .c-header__button-link--account::after { content:'Профиль'; }
    /* Remove stacked theme margins between SKU, size selection and purchase. */
    body.single-product.sm-mobile-card-active .sm-mobile-heading { margin-bottom:12px; }
    body.single-product.sm-mobile-card-active .c-product__sku .sku_wrapper { padding-bottom:0; }
    body.single-product.sm-mobile-card-active .c-product__summary > .c-product__atc-wrap { padding-top:12px; border-top:0; }
    body.single-product.sm-mobile-card-active form.cart .variations_button { margin-top:12px; }
    body.single-product.sm-mobile-card-active form.cart:not(:has(.variations tr)) .variations_button { margin-top:0; }
    body.single-product.sm-mobile-card-active form.cart:has(select[name^="attribute_"] option:checked:not([value=""])) .variations_button { margin-top:36px; }
}
