/* Prevent Safari flicker: use margin-left instead of transform */
.off-canvas-nav-megamenu {
    margin-left: -234px !important;
    transition: margin 400ms ease 0s !important;
}
.off-canvas-nav-megamenu.active {
    margin-left: 0 !important;
}

/* Improves the logo display in the main navigation */
.header_logo .logo,
.footer_logo .logo_white {
    position: relative;
    z-index: 1;
    width: 200px;
    height: auto;
    filter: none;
}
.box__search .logo {
    filter: invert(1);
}
.header_logo {
    margin-right: 20px;
}
@media (max-width: 575px) {
    .header-top .col__logo {
        position: absolute;
        left: 35px;
    }
    .header_logo {
        margin-right: 0;
    }
    .header_logo .logo {
        width: 135px;
        height: auto;
        margin-top: -8px;
    }
}

@media (max-width: 410px) {
    .elementor-43 .elementor-widget-wrap .elementor-widget-container {
        margin: 0 0 0 5px !important;
    }
    .elementor-43 .elementor-widget-wrap .elementor-widget-container i,
    .elementor-43 .elementor-widget-wrap .elementor-widget-container span {
        font-size: 15px !important;
    }
}

/* Force correct display of product image gallery after reload */
.product-image-gallery .images-container img {
    width: 100%;
    height: auto;
}
.product__col--image .product-cover,
.product__col--image #thumb-gallery {
    display: none !important;
}

.product-image-gallery .images-container img {
    width: 100%;
    height: auto;
}

/* Stack product features vertically on mobile */
.product-features {
   overflow-x: scroll;
}
.product-features .data-sheet {
    min-width: 650px;
}
.product-features {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}
.product-features::-webkit-scrollbar {
    display: none; /* Chrome, Safari et Opera */
}
@media (max-width: 500px) {
    .product-features > dl.data-sheet dd.value,
    .product-features > dl.data-sheet dt.name {
        padding-left: 5px;
        padding-right: 5px;
        line-height: 1.2;
        word-break: break-all;
        margin-bottom: 1%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .product-features > dl.data-sheet dd.value {
        width: 73%;
    }
    .product-features > dl.data-sheet dt.name {
        width: 25%;
    }
}

.product-quantity .sizechart {
    display: none;
}
.product-actions {
    border-bottom: 0;
}

.box__slide .slide__sub--heading .caption-contain {
    padding: 10px 0 !important;
}

.navbar-fixed-top .header-top {
    background-color: #fff !important;
}

.bannercontainer .tp-caption {
    border-radius: 4px;
}

@media (min-width: 992px) {
    .leo-megamenu .dropdown-submenu:hover > .dropdown-menu,
    .leo-megamenu .dropdown-submenu:focus > .dropdown-menu {
        display: block !important;
        left: 50% !important;
        top: 10px !important;
        min-width: 220px;
        z-index: 1050;
        opacity: 1;
        visibility: visible;
    }
}

/* Improves Megamenu responsiveness on smaller screens */
.leo-megamenu .dropdown-menu li {
    line-height: 22px;
    padding: 0;
}
@media (max-width: 1210px) {
    .leo-megamenu .dropdown.aligned-fullwidth > .dropdown-menu {
        width: 100vw !important;
    }
}

#subcategories ul li .subcategory-image a,
#subcategories ul li .subcategory-image {
    border-color: transparent !important;
}
#subcategories ul li .subcategory-image a img {
    max-width: 150px;
}

.product-quantity .compare,
.product-quantity .w-full > div:not(:last-child)::before,
.popup-over.leo_block_top .popup-content li:nth-of-type(5) {
    display: none;
}

/* Simplifies UI by removing excessive animations for a lighter experience */
.box__slide .caption-contain {
    opacity: 1 !important;
}
.plist-2 .thumbnail-container .functional-buttons .btn-product,
.plist-2 .thumbnail-container .functional-buttons .quick-view {
    transform: translateX(0) rotate(0) !important;
}

.block-category .category-cover {
    display: none;
}

/* Small visual fixes for blog blocks */
.sidebar #search_filters,
.leo-block-sidebar .block_content,
.leo-block-sidebar .title_block,
#categories_blog_menu .title_block,
#categories_blog_menu .block_content,
#search-blog,
.block-categories .category-sub-menu,
.block-categories .title_block {
    padding: 5px 15px !important;
}
ul.lists > li .blog-image img {
    height: 85px;
}

.post-name {
    margin-bottom: 0;
}

.product-detail.product-image-gallery .product-thumb-images .thumb-container {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 15px;
}

.leo_free_price {
    padding: 0 18px;
}

#manufacturer #main ul {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

body#checkout section.checkout-step .forgot-password {
    margin-left: 0 !important;
}

.product-prices .price-ecotax {
    margin-bottom: 0;
}

#_desktop_cart .leo-dropdown-cart .leo-remove-from-cart i {
    font-size: 0 !important;
}

#subcategories ul {
    display: flex;
    justify-content: center;
}
