/*
 * Header / menu layout fix for svitlofor.store
 * - desktop search moved to the lower menu panel
 * - top pseudo-banner removed
 * - header links moved into the old search slot
 */

@media (min-width: 992px) {
    .up-header .box-search {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .up-header .header-links-desktop {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        overflow: visible;
        position: relative;
        z-index: 12;
    }

    .up-header .header-links-desktop .box-nav-links {
        width: 100%;
        position: relative;
        overflow: visible;
    }

    .up-header .header-links-desktop .header-nav-links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        min-width: 0;
        position: relative;
    }

    .up-header .header-links-desktop .header-nav-links > li {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        position: relative;
    }

    .up-header .header-links-desktop .btn.btn-link {
        padding: 0 !important;
        height: auto !important;
        border: 0 !important;
        background: transparent !important;
        color: var(--up-text-color) !important;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.2;
        text-decoration: none !important;
        white-space: nowrap;
        box-shadow: none !important;
        cursor: pointer;
    }

    .up-header .header-links-desktop .btn.btn-link:hover,
    .up-header .header-links-desktop .btn.btn-link:focus,
    .up-header .header-links-desktop .btn.btn-link:active {
        background: transparent !important;
        color: var(--up-text-color) !important;
        text-decoration: underline !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .up-header .header-links-desktop .btn.btn-link i {
        margin-right: 6px;
    }

    .up-header .header-links-desktop .header-nav-links__more {
        position: relative;
        z-index: 3;
    }

    .up-header .header-links-desktop .header-nav-links__more[hidden] {
        display: none !important;
    }

    .up-header .header-links-desktop .header-nav-links__more::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        width: 180px;
        height: 18px;
        transform: translateX(-50%);
    }

    .up-header .header-links-desktop .header-nav-links__more-toggle {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px;
        padding: 8px 12px !important;
        border-radius: 999px !important;
        transition: background-color .2s ease, color .2s ease;
    }

    .light-theme .up-header .header-links-desktop .header-nav-links__more:hover .header-nav-links__more-toggle,
    .light-theme .up-header .header-links-desktop .header-nav-links__more.is-open .header-nav-links__more-toggle,
    .light-theme .up-header .header-links-desktop .header-nav-links__more:focus-within .header-nav-links__more-toggle,
    .up-header .header-links-desktop .header-nav-links__more:hover .header-nav-links__more-toggle,
    .up-header .header-links-desktop .header-nav-links__more.is-open .header-nav-links__more-toggle,
    .up-header .header-links-desktop .header-nav-links__more:focus-within .header-nav-links__more-toggle {
        background: rgba(0, 0, 0, .06) !important;
        text-decoration: none !important;
    }

    .dark-theme .up-header .header-links-desktop .header-nav-links__more:hover .header-nav-links__more-toggle,
    .dark-theme .up-header .header-links-desktop .header-nav-links__more.is-open .header-nav-links__more-toggle,
    .dark-theme .up-header .header-links-desktop .header-nav-links__more:focus-within .header-nav-links__more-toggle {
        background: rgba(255, 255, 255, .08) !important;
    }

    .up-header .header-links-desktop .header-nav-links__more-arrow {
        width: 8px;
        height: 8px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg) translateY(-1px);
        transform-origin: center;
        transition: transform .2s ease;
        flex: 0 0 auto;
    }

    .up-header .header-links-desktop .header-nav-links__more:hover .header-nav-links__more-arrow,
    .up-header .header-links-desktop .header-nav-links__more.is-open .header-nav-links__more-arrow,
    .up-header .header-links-desktop .header-nav-links__more:focus-within .header-nav-links__more-arrow {
        transform: rotate(-135deg) translateY(-1px);
    }

    .up-header .header-links-desktop .header-nav-links__overflow-menu {
        position: absolute;
        top: calc(100% + 12px);
        left: 50%;
        right: auto;
        display: none;
        min-width: 280px;
        max-width: min(420px, calc(100vw - 40px));
        margin: 0;
        padding: 14px 0;
        list-style: none;
        border-radius: 24px;
        z-index: 1005;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    .up-header .header-links-desktop .header-nav-links__overflow-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 16px;
        height: 16px;
        transform: translate(-50%, -50%) rotate(45deg);
        border-radius: 4px 0 0 0;
        z-index: -1;
    }

    .up-header .header-links-desktop .header-nav-links__more.is-open .header-nav-links__overflow-menu,
    .up-header .header-links-desktop .header-nav-links__more:hover .header-nav-links__overflow-menu,
    .up-header .header-links-desktop .header-nav-links__more:focus-within .header-nav-links__overflow-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .up-header .header-links-desktop .header-nav-links__overflow-menu li {
        display: block;
        width: 100%;
    }

    .up-header .header-links-desktop .header-nav-links__overflow-menu .btn.btn-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 12px 22px !important;
        text-align: left;
        text-decoration: none !important;
        white-space: normal;
        line-height: 1.35;
    }

    .light-theme .up-header .header-links-desktop .header-nav-links__overflow-menu,
    .up-header .header-links-desktop .header-nav-links__overflow-menu {
        background: #F5F5F7;
        border: 1px solid rgba(0, 0, 0, .06);
        box-shadow: 0 20px 42px rgba(0, 0, 0, .10);
    }

    .light-theme .up-header .header-links-desktop .header-nav-links__overflow-menu::before,
    .up-header .header-links-desktop .header-nav-links__overflow-menu::before {
        background: #F5F5F7;
        border-top: 1px solid rgba(0, 0, 0, .06);
        border-left: 1px solid rgba(0, 0, 0, .06);
    }

    .dark-theme .up-header .header-links-desktop .header-nav-links__overflow-menu {
        background: #1C1C1E;
        border: 1px solid #313131;
        box-shadow: 0 20px 42px rgba(0, 0, 0, .45);
    }

    .dark-theme .up-header .header-links-desktop .header-nav-links__overflow-menu::before {
        background: #1C1C1E;
        border-top: 1px solid #313131;
        border-left: 1px solid #313131;
    }

    .light-theme .up-header .header-links-desktop .header-nav-links__overflow-menu .btn.btn-link:hover,
    .light-theme .up-header .header-links-desktop .header-nav-links__overflow-menu .btn.btn-link:focus,
    .light-theme .up-header .header-links-desktop .header-nav-links__overflow-menu .btn.btn-link:active,
    .up-header .header-links-desktop .header-nav-links__overflow-menu .btn.btn-link:hover,
    .up-header .header-links-desktop .header-nav-links__overflow-menu .btn.btn-link:focus,
    .up-header .header-links-desktop .header-nav-links__overflow-menu .btn.btn-link:active {
        background: rgba(0, 0, 0, .05) !important;
        color: var(--up-text-color) !important;
        text-decoration: none !important;
    }

    .dark-theme .up-header .header-links-desktop .header-nav-links__overflow-menu .btn.btn-link:hover,
    .dark-theme .up-header .header-links-desktop .header-nav-links__overflow-menu .btn.btn-link:focus,
    .dark-theme .up-header .header-links-desktop .header-nav-links__overflow-menu .btn.btn-link:active {
        background: rgba(255, 255, 255, .06) !important;
    }
}

@media (min-width: 1200px) {
    .up-header .header-links-desktop .header-nav-links {
        gap: 24px;
    }

    .up-header .header-links-desktop .btn.btn-link {
        font-size: 15px;
    }
}

#additional-menu .dop-menu-show-more,
#additional-menu .menu-viewed-product {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -99999px !important;
    top: auto !important;
}

#additional-menu .nav-dopmenu > li {
    align-items: center !important;
}

#additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    background: #EBC848 !important;
    color: #FFFFFF !important;
    height: auto !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
}

#additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link *,
#additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link:hover *,
#additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link:focus * {
    color: #FFFFFF !important;
}

#additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link img.nsmenu-thumb {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0;
    margin: 0;
}

#additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link .item-name {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

#additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link svg.arrow-t path {
    fill: #FFFFFF !important;
}

#additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link:hover,
#additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link:focus {
    background: #D9B73D !important;
}

#additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"],
#additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    background: #D8402D !important;
    color: #FFFFFF !important;
    height: auto !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
}

#additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"] *,
#additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"] *,
#additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"]:hover *,
#additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"]:hover *,
#additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"]:focus *,
#additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"]:focus * {
    color: #FFFFFF !important;
}

#additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"] img.nsmenu-thumb,
#additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"] img.nsmenu-thumb {
    width: 17px !important;
    height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    flex-shrink: 0;
    margin: 0;
}

#additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"] .item-name,
#additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"] .item-name {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

#additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"] svg.arrow-t path,
#additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"] svg.arrow-t path {
    fill: #FFFFFF !important;
}

#additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"]:hover,
#additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"]:focus,
#additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"]:hover,
#additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"]:focus {
    background: #D32F2F !important;
}

@media (min-width: 992px) {
    #additional-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 16px;
        width: 100%;
        overflow: visible !important;
    }

    #additional-menu .left-dopmenu {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
    }

    #additional-menu .nav-dopmenu {
        display: flex !important;
        align-items: center !important;
        gap: 12px;
        min-height: 56px !important;
        width: auto !important;
        max-height: none !important;
        max-width: none !important;
        flex-wrap: nowrap !important;
    }

    #additional-menu .nav-dopmenu > li {
        width: auto !important;
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
    }

    #additional-menu .additional-menu-search {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
    }

    #additional-menu .additional-menu-search .search-top {
        position: relative;
        width: 100%;
    }

    #additional-menu .additional-menu-search .header-search {
        width: 100%;
    }

    #additional-menu .additional-menu-search .search_autocomplete {
        z-index: 1005;
    }
}

header.up-header .box-wishlist .btn-wishlist-top {
    color: inherit !important;
    text-decoration: none !important;
}

header.up-header .box-wishlist .btn-wishlist-top i {
    color: currentColor !important;
}

header.up-header .box-wishlist .btn-wishlist-top:hover,
header.up-header .box-wishlist .btn-wishlist-top:focus,
header.up-header .box-wishlist .btn-wishlist-top:active {
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

header.up-header .box-wishlist .btn-wishlist-top:hover::before,
header.up-header .box-wishlist .btn-wishlist-top:hover::after,
header.up-header .box-wishlist .btn-wishlist-top:focus::before,
header.up-header .box-wishlist .btn-wishlist-top:focus::after {
    opacity: 0 !important;
}

#additional-menu-lc {
    display: none !important;
}

#additional-menu-lc.lc-ready {
    display: flex !important;
}

#additional-menu #additional-menu-lc {
    margin-left: 0;
    display: flex;
    align-items: center;
    height: 56px;
    flex: 0 0 auto;
}

#additional-menu #additional-menu-lc .dropdown-box {
    position: relative;
    display: flex;
    align-items: center;
}

#additional-menu #additional-menu-lc .btn-language-top {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

#additional-menu #additional-menu-lc .btn-language-top.dropdown-toggle::after {
    content: '' !important;
    width: 7px !important;
    height: 7px !important;
    border-right: 1.5px solid currentColor !important;
    border-bottom: 1.5px solid currentColor !important;
    transform: rotate(45deg) !important;
    margin-left: 10px !important;
    flex: 0 0 auto !important;
}

#additional-menu #additional-menu-lc .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    min-width: 100% !important;
    width: max-content !important;
    margin-top: 8px !important;
    padding: 6px !important;
    border-radius: 999px !important;
}

#additional-menu #additional-menu-lc .dropdown-menu .btn-lang-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
}

.light-theme #additional-menu #additional-menu-lc .btn-language-top,
#additional-menu #additional-menu-lc .btn-language-top {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 1.5px solid rgba(0, 0, 0, .85) !important;
}

.dark-theme #additional-menu #additional-menu-lc .btn-language-top {
    background: #0F0F0F !important;
    color: #B1B1B1 !important;
    border: 1.5px solid #313131 !important;
}

#additional-menu #additional-menu-lc .btn-language-top:hover,
#additional-menu #additional-menu-lc .btn-language-top:focus,
#additional-menu #additional-menu-lc .btn-language-top:active {
    box-shadow: none !important;
    outline: none !important;
}

.light-theme #additional-menu #additional-menu-lc .dropdown-menu,
#additional-menu #additional-menu-lc .dropdown-menu {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, .10) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12) !important;
}

.dark-theme #additional-menu #additional-menu-lc .dropdown-menu {
    background: #0F0F0F !important;
    border: 1px solid #313131 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45) !important;
}

.light-theme #additional-menu #additional-menu-lc .dropdown-menu li.active .btn-lang-select,
#additional-menu #additional-menu-lc .dropdown-menu li.active .btn-lang-select {
    background: rgba(0, 0, 0, .06) !important;
    color: #000000 !important;
}

.dark-theme #additional-menu #additional-menu-lc .dropdown-menu li.active .btn-lang-select {
    background: #1D1D1D !important;
    color: #FFFFFF !important;
}

.light-theme #additional-menu #additional-menu-lc .dropdown-menu li:not(.active) .btn-lang-select,
#additional-menu #additional-menu-lc .dropdown-menu li:not(.active) .btn-lang-select {
    color: rgba(0, 0, 0, .45) !important;
}

.dark-theme #additional-menu #additional-menu-lc .dropdown-menu li:not(.active) .btn-lang-select {
    color: #B1B1B1 !important;
}

@media (max-width: 991px) {
    header.up-header > .container .up-header__btn-mobile-menu {
        display: none !important;
    }

    header.up-header > .container .up-header__right .up-theme-mode {
        display: none !important;
    }

    li.js-mob-catalog-entry,
    li.js-mob-paint-entry {
        display: none !important;
    }

    .up-topbar-mobile {
        display: block !important;
        width: 100%;
        padding: 10px 0 !important;
    }

    .up-topbar-mobile__text {
        font-size: 12px !important;
        line-height: 1.35 !important;
        text-align: center !important;
        font-weight: 400 !important;
        white-space: normal !important;
    }

    .up-topbar-mobile__sep {
        opacity: .65;
        padding: 0 6px;
    }

    .light-theme .up-topbar-mobile {
        background: #F9F9F9 !important;
        color: #000000 !important;
        border: 0 !important;
    }

    .dark-theme .up-topbar-mobile {
        background: #0F0F0F !important;
        color: #B1B1B1 !important;
        border: 0 !important;
    }

    header.up-header.fix-header,
    header.up-header.h-sticky {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
    }

    body {
        padding-top: 0 !important;
    }

    main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .light-theme header.up-header,
    .light-theme header.up-header > .container {
        background: #FFFFFF !important;
    }

    .dark-theme header.up-header,
    .dark-theme header.up-header > .container {
        background: #0F0F0F !important;
    }

    header.up-header {
        border: 0 !important;
        box-shadow: none !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        margin-bottom: 64px !important;
    }

    header.up-header > .container {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    header.up-header .box-dopmenu {
        display: block !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        margin-top: -1px !important;
    }

    .light-theme header.up-header .box-dopmenu {
        background: #F9F9F9 !important;
        border: 0 !important;
    }

    .dark-theme header.up-header .box-dopmenu {
        background: #0F0F0F !important;
        border: 0 !important;
    }

    header.up-header .box-dopmenu .container {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    #additional-menu-lc,
    #additional-menu-lc.lc-ready,
    #additional-menu #additional-menu-lc {
        display: none !important;
    }

    #additional-menu {
        display: block !important;
        width: 100% !important;
    }

    #additional-menu .left-dopmenu {
        width: 100% !important;
        display: block !important;
    }

    #additional-menu .nav-dopmenu {
        display: flex !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: 100% !important;
    }

    #additional-menu .nav-dopmenu > li {
        flex: 1 1 0 !important;
        display: flex !important;
        align-items: stretch !important;
        height: auto !important;
        width: auto !important;
    }

    #additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link,
    #additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"],
    #additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"] {
        width: 100% !important;
        padding: 12px 16px !important;
    }

    #additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link svg.arrow-t {
        margin-left: auto !important;
    }

    #additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"],
    #additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"] {
        justify-content: center !important;
    }

    #additional-menu .nav-dopmenu > li.dropdown.section_1 > *:not(a.parent-link) {
        display: none !important;
    }

    @media (max-width: 360px) {
        #additional-menu .nav-dopmenu {
            gap: 10px !important;
        }

        #additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link,
        #additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"],
        #additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"] {
            padding: 11px 12px !important;
        }

        #additional-menu .nav-dopmenu .item-name {
            font-size: 15px !important;
        }
    }
}

#product .action-group .cart {
    flex: 0.7 1 auto;
}

#product .action-group .cart #button-cart {
    width: 100%;
}


/*
 * Hotfix v2:
 * keep desktop menu buttons content-width so the red button does not slide under search
 */
@media (min-width: 992px) {
    header.up-header .box-dopmenu #additional-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        overflow: visible !important;
    }

    header.up-header .box-dopmenu #additional-menu .left-dopmenu {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
    }

    header.up-header .box-dopmenu #additional-menu .nav-dopmenu {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex-wrap: nowrap !important;
    }

    header.up-header .box-dopmenu #additional-menu .nav-dopmenu > li {
        width: auto !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
    }

    header.up-header .box-dopmenu #additional-menu .nav-dopmenu > li > a.parent-link,
    header.up-header .box-dopmenu #additional-menu .nav-dopmenu > li.dropdown.section_1 > a.parent-link,
    header.up-header .box-dopmenu #additional-menu .nav-dopmenu > li > a.parent-link[href*="pidbir-avtofarby"],
    header.up-header .box-dopmenu #additional-menu .nav-dopmenu > li > a.parent-link[href*="podbor-avtokraski"] {
        width: auto !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
    }

    header.up-header .box-dopmenu #additional-menu .additional-menu-search {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
}

/* Checkout/cart free shipping progress */
.free-shipping-left {
    margin-bottom: 16px;
}

.free-shipping-left .free-ship-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 10px;
}

.free-shipping-left .free-ship-progress-bar {
    background: rgba(35, 105, 195, 0.12);
    margin-bottom: 10px;
    height: 16px;
    border-radius: 8px;
}

.free-shipping-left .free-ship-bar-fill {
    background: #3572E1;
    height: 16px;
    border-radius: 8px;
    width: 0;
    transition: width .3s ease-in-out;
}

.free-shipping-left .free-ship-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.free-shipping-left .text-free-shipping {
    flex: 1;
    margin-right: 0;
}

.free-shipping-left .sum-free-shipping-left {
    font-weight: 600;
    color: #3572E1;
    padding: 5px 8px;
    background: rgba(35, 105, 195, 0.12);
    align-self: center;
    border-radius: 5px;
    line-height: 20px;
    white-space: nowrap;
}

.free-ship-info.active-free-ship {
    color: #3572E1;
    font-weight: 600;
    border: 2px dashed #3572E1;
    border-radius: 5px;
    padding: 5px 8px;
    text-align: center;
    justify-content: center;
    line-height: 22px;
    margin-bottom: 6px;
}

@media (max-width: 575px) {
    .free-shipping-left .free-ship-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .free-shipping-left .sum-free-shipping-left {
        align-self: flex-start;
    }
}


/* Header compare icon hotfix */
header.up-header .box-compare .btn-compare-top {
    color: inherit !important;
    text-decoration: none !important;
}

header.up-header .box-compare .btn-compare-top i {
    color: currentColor !important;
}

header.up-header .box-compare .btn-compare-top:hover,
header.up-header .box-compare .btn-compare-top:focus,
header.up-header .box-compare .btn-compare-top:active {
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

header.up-header .box-compare .btn-compare-top:hover::before,
header.up-header .box-compare .btn-compare-top:hover::after,
header.up-header .box-compare .btn-compare-top:focus::before,
header.up-header .box-compare .btn-compare-top:focus::after {
    opacity: 0 !important;
}

/* Header logo corrected hotfix
 * Enlarges the desktop logo by real CSS height, not by transform scale.
 * The logo is taken out of normal flow, so the header row keeps its original height.
 */
@media (min-width: 992px) {
    header.up-header > .container > .row.dflex {
        overflow: visible !important;
    }

    header.up-header .up-header__left {
        overflow: visible !important;
    }

    header.up-header #logo.up-header__logo-top {
        position: relative !important;
        z-index: 20 !important;
        display: block !important;
        width: 200px !important;
        min-width: 200px !important;
        flex: 0 0 200px !important;
        height: 66px !important;
        min-height: 66px !important;
        margin-right: 15px !important;
        overflow: visible !important;
        line-height: 0 !important;
    }

    header.up-header #logo .up-header__logo-desktop {
        position: absolute !important;
        left: 0 !important;
        top: -15px !important;
        bottom: -15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: auto !important;
        min-width: 0 !important;
        height: calc(100% + 30px) !important;
        overflow: visible !important;
        line-height: 0 !important;
    }

    header.up-header #logo .up-header__logo-desktop > a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: 100% !important;
        overflow: visible !important;
        line-height: 0 !important;
    }

    header.up-header #logo .up-header__logo-desktop > img,
    header.up-header #logo .up-header__logo-desktop > a > img {
        display: block !important;
        width: auto !important;
        height: 82px !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        object-fit: contain !important;
        object-position: left center !important;
        transform: none !important;
        will-change: auto !important;
    }
}

/* Blog page redesign for UpStore theme
 * Fixes default OpenCart blog templates that were falling back to raw Bootstrap/product-card markup.
 */
.blog-category-page .breadcrumbs-box {
    margin-bottom: 18px;
}

.blog-category-page .blog-layout-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.blog-category-page .blog-content {
    min-width: 0;
}

.blog-category-page .blog-page-head h1 {
    margin: 0 0 20px;
    color: var(--up-text-wd-color, #000);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 600;
}

.blog-category-page .blog-category-description {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid var(--up-border-color, #f2f2f2);
    border-radius: var(--up-border-radius-large, 20px);
    background: var(--up-bg-wd, #fff);
    box-shadow: var(--up-box-shadow-small, 4px 4px 24px rgba(0, 0, 0, .04));
}

.blog-category-page .blog-category-description__image {
    flex: 0 0 160px;
}

.blog-category-page .blog-category-description__image img {
    width: 100%;
    border-radius: var(--up-border-radius-small, 12px);
}

.blog-category-page .blog-category-description__text {
    color: var(--up-text-color, #000);
    line-height: 1.6;
}

.blog-category-page .blog-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px;
    padding: 0;
}

.blog-category-page .blog-view-switcher {
    display: inline-flex;
    overflow: hidden;
    padding: 0;
    border-radius: 14px;
    background: var(--up-bg-gray, #f9f9f9);
}

.blog-category-page .blog-view-switcher .btn {
    width: 54px;
    min-width: 54px;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--up-text-wd-color, #000) !important;
    line-height: 44px;
    box-shadow: none !important;
}

.blog-category-page .blog-view-switcher .btn:hover,
.blog-category-page .blog-view-switcher .btn.active {
    background: var(--up-bg-wd, #fff) !important;
}

.blog-category-page .blog-toolbar__select {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-category-page .blog-toolbar__select--sort {
    margin-left: auto;
}

.blog-category-page .blog-toolbar__select label {
    margin: 0;
    color: var(--up-text-wd-color, #000);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

.blog-category-page .blog-toolbar__select .form-control {
    width: 260px;
    height: 44px;
    border: 1px solid var(--form-field-border, #e3e3e3);
    border-radius: 8px;
    background-color: var(--form-field-bg, #fff);
    color: var(--up-text-wd-color, #000);
    box-shadow: none;
}

.blog-category-page .blog-toolbar__select--limit .form-control {
    width: 170px;
}

.blog-category-page .blog-articles,
.blog-module .blog-module__row {
    display: flex;
    flex-wrap: wrap;
}

.blog-category-page .blog-article,
.blog-module .blog-article {
    display: flex;
    margin-bottom: 24px;
}

.blog-category-page .blog-article-card,
.blog-module .blog-article-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--up-border-color, #f2f2f2);
    border-radius: var(--up-border-radius-large, 20px);
    background: var(--up-bg-wd, #fff);
    box-shadow: var(--up-box-shadow-small, 4px 4px 24px rgba(0, 0, 0, .04));
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.blog-category-page .blog-article-card:hover,
.blog-module .blog-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
    border-color: var(--up-bg-gray-hover, #e3e3e3);
}

.dark-theme .blog-category-page .blog-article-card:hover,
.dark-theme .blog-module .blog-article-card:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}

.blog-category-page .blog-article-card__image,
.blog-module .blog-article-card__image {
    display: block;
    width: calc(100% - 28px);
    margin: 14px 14px 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.blog-category-page .blog-article-card__image img,
.blog-module .blog-article-card__image img {
    position: static;
    display: inline-block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    vertical-align: top;
}

.blog-category-page .blog-article-card:hover .blog-article-card__image img,
.blog-module .blog-article-card:hover .blog-article-card__image img {
    transform: none;
}

.blog-category-page .blog-article-card__body,
.blog-module .blog-article-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 16px 16px 0;
}

.blog-category-page .blog-article-card__title,
.blog-module .blog-article-card__title {
    min-height: 44px;
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
}

.blog-category-page .blog-article-card__title a,
.blog-module .blog-article-card__title a {
    color: var(--up-text-link, #4A71B1);
    text-decoration: none;
}

.blog-category-page .blog-article-card__title a:hover,
.blog-module .blog-article-card__title a:hover {
    color: #457DE3;
    text-decoration: underline;
}

.blog-category-page .blog-article-card__description,
.blog-module .blog-article-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 14px;
    color: var(--up-text-color, #000);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.blog-category-page .blog-article-card__rating,
.blog-module .blog-article-card__rating {
    margin-top: auto;
}

.blog-category-page .blog-article-card__footer,
.blog-module .blog-article-card__footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding: 14px 16px 16px;
}

.blog-category-page .blog-article-card__more,
.blog-module .blog-article-card__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--up-bg-btn-primary, #f4c430);
    color: var(--up-color-btn-primary, #000) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 40px;
    text-decoration: none !important;
    white-space: nowrap;
}

.blog-category-page .blog-article-card__more:hover,
.blog-module .blog-article-card__more:hover {
    background: var(--up-bg-btn-primary-hover, #e4b600);
    color: var(--up-color-btn-primary-hover, #000) !important;
}

.blog-category-page .blog-article-card__meta,
.blog-module .blog-article-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    width: 100%;
    padding-top: 2px;
    color: #777;
    font-size: 13px;
    line-height: 1.45;
}

.blog-category-page .blog-article-card__meta-item,
.blog-module .blog-article-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #777;
}

.blog-category-page .blog-article-card__meta-item i,
.blog-module .blog-article-card__meta-item i {
    color: #9b9b9b;
}

.blog-category-page .blog-article-card__meta-item span,
.blog-module .blog-article-card__meta-item span {
    overflow: visible;
    max-width: none;
    text-overflow: clip;
    white-space: normal;
}

.blog-category-page .blog-pagination {
    margin: 6px 0 22px;
}

.blog-category-page .product-list.col-xs-12 .blog-article-card {
    flex-direction: row;
}

.blog-category-page .product-list.col-xs-12 .blog-article-card__image {
    flex: 0 0 280px;
    width: 280px;
    height: auto;
    min-height: 0;
    padding-top: 0;
    margin: 14px 0 14px 14px;
}

.blog-category-page .product-list.col-xs-12 .blog-article-card__body {
    padding-top: 18px;
}

.blog-category-page .product-list.col-xs-12 .blog-article-card__footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 190px;
    padding-top: 18px;
}

.blog-category-menu.list-group.mod-category-news {
    overflow: hidden;
    margin-bottom: 22px;
    padding: 10px;
    border: 1px solid var(--up-border-color, #f2f2f2) !important;
    border-radius: var(--up-border-radius-large, 20px);
    background: var(--up-bg-wd, #fff);
    box-shadow: var(--up-box-shadow-small, 4px 4px 24px rgba(0, 0, 0, .04));
}

.blog-category-menu.list-group.mod-category-news .list-group-item {
    position: relative;
    margin: 0;
    padding: 13px 18px;
    border: 0 !important;
    border-radius: 12px;
    background: transparent !important;
    color: var(--up-text-wd-color, #000) !important;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease;
}

.blog-category-menu.list-group.mod-category-news .list-group-item + .list-group-item {
    border-top: 1px solid var(--up-border-color, #f2f2f2) !important;
    border-radius: 0;
}

.blog-category-menu.list-group.mod-category-news .list-group-item:hover,
.blog-category-menu.list-group.mod-category-news .list-group-item.active,
.blog-category-menu.list-group.mod-category-news .list-group-item.active:hover,
.blog-category-menu.list-group.mod-category-news .list-group-item.active:focus {
    background: var(--up-bg-gray, #f9f9f9) !important;
    color: var(--up-text-wd-color, #000) !important;
    text-shadow: none !important;
}

.blog-category-menu .blog-category-menu__child {
    padding-left: 34px !important;
    font-size: 13px !important;
}

.blog-module {
    margin-bottom: 28px;
}

.blog-module .blog-module__title {
    margin: 0 0 18px;
    color: var(--up-text-wd-color, #000);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
}

@media (max-width: 1199px) {
    .blog-category-page .blog-toolbar {
        flex-wrap: wrap;
    }
    .blog-category-page .blog-toolbar__select--sort {
        margin-left: 0;
    }
}

@media (max-width: 991px) {
    .blog-category-page .blog-layout-row {
        display: block;
    }
    .blog-category-page .blog-toolbar__select,
    .blog-category-page .blog-toolbar__select .form-control,
    .blog-category-page .blog-toolbar__select--limit .form-control {
        width: 100%;
    }
    .blog-category-page .blog-toolbar__select {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
    .blog-category-page .product-list.col-xs-12 .blog-article-card {
        flex-direction: column;
    }
    .blog-category-page .product-list.col-xs-12 .blog-article-card__image {
        flex: none;
        width: calc(100% - 28px);
        height: auto;
        min-height: 0;
        padding-top: 0;
        margin: 14px 14px 0;
    }
    .blog-category-page .product-list.col-xs-12 .blog-article-card__footer {
        flex-direction: row;
        align-items: center;
        width: auto;
        padding-top: 14px;
    }
}

@media (max-width: 767px) {
    .blog-category-page .blog-page-head h1 {
        font-size: 22px;
    }
    .blog-category-page .blog-category-description {
        flex-direction: column;
    }
    .blog-category-page .blog-category-description__image {
        flex: none;
    }
    .blog-category-page .blog-toolbar {
        display: block;
    }
    .blog-category-page .blog-view-switcher {
        margin-bottom: 12px;
    }
    .blog-category-page .blog-toolbar__select {
        margin-bottom: 12px;
    }
    .blog-category-page .blog-article-card__footer,
    .blog-module .blog-article-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .blog-category-page .blog-article-card__more,
    .blog-module .blog-article-card__more {
        width: 100%;
    }
    .blog-category-page .blog-article-card__meta,
    .blog-module .blog-article-card__meta {
        width: 100%;
        justify-content: flex-start;
    }
}
