body {
    overflow-x: hidden!important;
}

.cart_btn {
    font-size: 18px;
}

.banner {
    background-color: var(--bg);
}

.banner .inner,
.banner .inner * {
    color: var(--clr);
    white-space: nowrap;
}

.banner .inner > a {
    color: var(--clr);
    text-decoration: underline;
}

.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee > span {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(calc((100vw + (var(--w) * 1px)) / 2)); }
    100% { transform: translateX(calc((-100vw - (var(--w) * 1px)) / 2)); }
}

.banner .banner-countdown {
    display: inline-block;
}

.fancybox__content {
    background-color: #fff !important;
}

/* Select 2*/
select.select2free.form-control + span,
select.select2.form-control + span {
    display: block;
    width: 100%;
}

select.select2free.form-control + span .select2-selection,
select.select2.form-control + span .select2-selection {
    height: 38px;
    border-color: #ced4da;
    border-radius: 0.375rem;
}

select.select2free.form-control + span .select2-selection__rendered,
select.select2.form-control + span .select2-selection__rendered {
    line-height: 38px;
}

select.select2free.form-control + span  .select2-selection__arrow > b,
select.select2.form-control + span  .select2-selection__arrow > b {
    margin-top: 2px;
}

.form-control::placeholder {
    color: #ddd;
}

.header__near {
    display: none;
}

.checkout-button {
    min-width: 250px;
}

/* */
.homeslide .splide__list {
    aspect-ratio: 16/9;
}

.homeslide .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16/9;
}

.homeslide .splide__slide > a {
    display: flex;
    width: 100%;
    aspect-ratio: 16/9;
    align-items: center;
    justify-content: center;
}

.homeslide .splide__slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-details .excerpt {
    overflow: auto;
    max-height: 305px;
}

.tab-product__item .price,
.product-details .price strong {
    color: #ff8717;
    text-decoration: underline;
}

.stock-status {
    --main-width: 100px;
    position: relative;
    display: block;
    width: var(--main-width);
    aspect-ratio: 41/18;
    border-radius: 5px;
    background-color: #222;
    background-image: linear-gradient(90deg, transparent 2%, #111 2%, transparent 3%, #111 30%);
    border: solid 3px #333;
}

.stock-status.positioned {
    position: absolute;
    top: 5px;
    right: calc(var(--main-width) * -1 + 5px);
    transform-origin: 0 0;
    transform: rotate(90deg);
}

.stock-status > span {
    --width: calc(var(--main-width) / 4);
    background:  var(--clr);
    background-image: radial-gradient(var(--bg), transparent);
    background-size: 5px 5px;
    width: var(--width);
    aspect-ratio: 1/1;
    border-radius: 50%;
    position: absolute;
    top: calc(50% - (var(--width) / 2));
    left: var(--left);
    border: dotted 2px var(--clr);
    box-shadow: 0 0 20px #111 inset, 0 0 10px var(--clr);
}

.stock-status > span:nth-of-type(1) {
    --clr: red;
    --bg: brown;
    --left: calc(50% - (var(--width) / 2) - (var(--width) + 6px));
}

.stock-status > span:nth-of-type(2) {
    --clr: yellow;
    --bg: orange;
    --left: calc(50% - (var(--width) / 2));
}

.stock-status > span:nth-of-type(3) {
    --clr: green;
    --bg: lime;
    --left: calc(50% - (var(--width) / 2) + (var(--width) + 6px));
}

.stock-status.status-good > span:not(:nth-of-type(3)),
.stock-status.status-low > span:not(:nth-of-type(2)),
.stock-status.status-none > span:not(:nth-of-type(1)) {
    --clr: #333;
    --bg: #111;
}

.product__code {
    line-height: 1;
    min-height: 29px;
}

/**/
.ecommerce-checkout-review-order.loading {position: relative;}
.ecommerce-checkout-review-order.loading:before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, .6);
    z-index: 2;
}

.ecommerce-checkout-review-order.loading:after {
    content: '';
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    width: 50px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
    border-top-color: transparent;
    z-index: 3;
    animation: fa-spin 2s linear 0s infinite normal;
}

.mycat-slider .banner-product__item {
    position: relative;
}

.mycat-slider .cat-image {
    position: absolute;
    width: 150px;
    top: calc(50% - 75px);
    right: -90px;
    transition: .4s;
}

.mycat-slider .banner-product__item:hover .cat-image {
    transform: scale(1.1);
}

.ecommerce-content-wrap .products {
    display: flex;
    flex-wrap: wrap;
}

.query-filters {
    display: flex;
    gap: 0 10px;
    margin-bottom: 10px;
}

.query-filters > .param {
    background-color: var(--color-primary);
    border-radius: var(--bs-border-radius-pill);
    padding: 0 0.5rem;
}

.query-filters > .param > span {
    color: var(--bs-light);
}

.query-filters > .param b {
    text-transform: capitalize;
}

/* Chat */
.chat {
    position: fixed;
    right: 50px;
    bottom: 50px;
    z-index: 10;
}

.chat .togglechat > i {
    --w: 3;
    --b: 5px;
    position: relative;
    display: block;
    color: #01b903;
    text-shadow: calc(var(--w) * 1px) calc(var(--w) * 1px)  var(--b) #fff, calc(var(--w) * -1px) calc(var(--w) * 1px) var(--b) #fff, calc(var(--w) * 1px) calc(var(--w) * -1px)  var(--b) #fff, calc(var(--w) * -1px) calc(var(--w) * -1px)  var(--b) #fff;
    isolation: isolate;
}

.chat .togglechat > i:after {
    content: '';
    display: block;
    aspect-ratio: 1/1;
    position: absolute;
    top: 5px;
    left: 3px;
    right: 2px;
    background-color: #fff;
    border-radius: 50%;
    z-index: -1;
}

.chat-inner {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 280px;
    border-radius: 10px;
    background-image: var(--bg);
    overflow: hidden;
    box-shadow: 1px 1px 2px rgba(0,0,0,.1);
}

.chat-inner > .top {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 0 10px;
    padding: 3px 5px;
    background-color: #245b52;
}

.chat-inner > .top img {
    width: 40px;
    aspect-ratio: 1/1;
    object-fit: contain;
    background-color: #23305d;
    border-radius: 50%;
    padding: 5px;
}

.chat-inner > .top > div {
    display: flex;
    flex-wrap: wrap;
    line-height: 1.2;
    color: #fff;
}

.chat-inner > .top > div > span {
    color: #fff;
}

.chat-inner > .center {
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
}

.chat-inner > .center > .msg {
    position: relative;
    top: 30px;
    background-color: #fff;
    display: block;
    width: 90%;
    margin: auto;
    border-radius: 0 15px 15px 15px;
    padding: 10px;
    line-height: 1;
    color: #555;
    filter: drop-shadow(0 0 5px rgba(0,0,0,.5));
}

.chat-inner > .center > .msg:before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 20px solid #fff;
    border-left: 20px solid transparent;
}

.chat-inner > .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    left: 0;
    bottom: 5px;
    right: 0;
    padding: 3px 10px;
    gap: 0 5px;
}

.chat-inner > .bottom .text {
    width: 100%;
    height: 30px;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0px 0px 4px rgba(0,0,0,.3);
    padding: 0 5px;
    font-size: 12px;
}

.chat-inner > .bottom .text:empty:before {
    content: attr(title);
    color: #ccc;
}

.chat-inner > .bottom .send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    aspect-ratio: 1/1;
    background-color: #01b903;
    border-radius: 50%;
    color: #fff;
}


/* Contact form */
.contact-from button[disabled] {
    opacity: .5;
    user-select: none;
    cursor: no-drop;
}

.cat-menu li:has(a[href*="promozioni"]) {
    display: none!important;
}

.cat-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-menu,
.cat-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.cat-menu li {
    position: relative;
    line-height: 1;
}

.cat-menu li > span {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-menu > li > span > a {
    display: block;
    color: #f8f9fa;
    padding: 10px;
    text-align: center;
    white-space: nowrap;
}

.cat-menu > li.menu-item-has-children .submenu  {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: #f8f9fa;
    box-shadow: 2px 2px 10px 0 rgba(0, 0, 0, .1);
}

.cat-menu li.menu-item-has-children:not(:hover) > .submenu {
    z-index: -1;
    visibility: hidden;
    left: -200vw;
}

.cat-menu > li.menu-item-has-children > .submenu > li.menu-item-has-children > .submenu {
    top: 0;
    left: 100%;
}

/* .cat-menu li.menu-item-has-children > a:after {
    content: '•';
} */

.cat-menu .submenu > li > span > a {
    display: block;
    padding: 10px 15px;
    color: #1c2c34;
}

.cat-menu a:hover {
    color: var(--color-primary)!important;
}

.realted-porduct .products {
    display: flex;
    flex-wrap: wrap;
}

.realted-porduct .products > li {
    width: 25%;
}

.related-porduct .products .product-description {
    line-height: 1.2;
    height: 85px;
    overflow: hidden;
}

.privacy_cookie_banner {
    position: fixed;
    bottom: 0;
    left: 50px;
    padding: 2px 15px;
    z-index: 10;
    color: #000;
    background-color: #fff;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 0 5px 1px rgba(0,0,0,.2);
}

#checkout .shop_table .order-delivery,
#checkout .shop_table .order-payment,
#checkout .store_selects {
    display: none;
}

#checkout:has(.price_delivery:checked) .shop_table .order-delivery,
#checkout:has(#payment_method_cheque:checked) .shop_table .order-payment {
    display: table-row;
}

#checkout:has(.store_delivery:checked) .store_selects {
    display: block;
}

.comment_gallery {
    display: flex;
    gap: 5px;
}

.comment_gallery > .comment_image {
    display: block;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    border: 1px solid rgba(0, 0, 0, .2);
    padding: 5px;
}

@media(max-width: 1300px) {
    .cat-menu > li > span > a {
        font-size: 11px;
        padding: 7px;
    }
}

@media(max-width: 1220px) {
    .mycat-slider {
        scale: .9;
    }

    .mycat-slider .cat-image {
        width: 100px;
        top: calc(50% - 50px);
    }

    .mycat-slider h2 {
        font-size: 13px;
    }

    .mycat-slider a {
        white-space: nowrap;
    }
}

@media (min-width: 992px) {
    .cat_burder {
        display: none!important;
    }
}

@media (max-width: 991px) {
    .page-home main {
        padding-top: 20px;
    }

    .header__icons {
        display: flex!important;
        width: 75px;
    }

    .user_menu_list {
        right: -50px!important;
    }

    .homeslide {
        padding-bottom: 30px;
    }

    .bannerfrst {
        max-height: 325px;
    }

    .mycat-slider .d-flex {
        flex-wrap: wrap;
    }

    .hamburger_menu i {
        color: #fff;
        margin-right: 10px;
    }

    .cat_burder,
    .cat_burder span {
        color: #fff;
    }

    .category-menu {
        display: none!important;
    }

    .side-mobile-menu .cat-menu {
        flex-wrap:wrap;
    }

    .side-mobile-menu ul li > a {
        font-size: 12px;
    }

    .main-menu.navbar {
        justify-content: end;
    }

    .hamburger_menu {
        min-width: 60px;
        text-align: center;
    }

    .side-mobile-menu .cat-menu li {
        width: 100%;
    }

    .side-mobile-menu .cat-menu li > span > a {
        display: block;
        width: 100%;
        padding: 15px 0;
        font-size: 12px;
        text-align: left;
        color: #1c2c34;
        border: none;
    }

    .side-mobile-menu .cat-menu li > span > a.openmenu {
        width: 30px;
    }

    .side-mobile-menu .header__search {
        display: block!important;
    }

    .side-mobile-menu .cat-menu .submenu {
        padding-left: 10px;
    }

    .side-mobile-menu .cat-menu li > span > a:before {
        display: none!important;
    }

    .side-mobile-menu .cat-menu li.menu-item-has-children:not(.open) > .submenu {
        display: none;
        z-index: -1;
        visibility: hidden;
        left: -200vw;
    }

    .side-mobile-menu .cat-menu li.menu-item-has-children.open > .submenu {
        z-index: 1;
        visibility: visible;
        position: static;
        width: 100%;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    .side-mobile-menu .cat-menu li.open > span > a.openmenu i {
        rotate: 90deg;
    }
}

@media(max-width: 767px) {
    .banner .inner {
        white-space: nowrap;
    }
    
    .page-contact main * {
        overflow-x: hidden;
    }

    ul.nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        padding: 15px 0;
    }

    .nav-tabs > li {
        margin-left: 0!important;
        padding: 0 10px;
    }

    .nav-tabs > li button {
        font-size: 13px!important;
    }

    .slick-arrow.slick-prev {
        left: -25px!important;
    }

    .slick-arrow.slick-next {
        right: -25px!important;
    }

    .footer__main > div > div:nth-of-type(1) { order: 2; text-align: center; }
    .footer__main > div > div:nth-of-type(2) { order: 1; }
    .footer__main > div > div:nth-of-type(3) { order: 3; text-align: center!important;  }

    .footer__copyright {
        padding-bottom: 50px;
    }

    .chat .togglechat i {
        font-size: 3em!important;
    }

    .chat {
        right: 20px;
        bottom: 20px;
    }
    
    .orderby.ecommerce-filter {
        font-size: 11px;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -270px;
        background-color: #f8f9fa;
        z-index: 10000;
        max-width: 270px;
        padding: 80px 5px 30px 5px;
        height: 100vh;
        box-shadow: 0 0 5px 0 rgba(0,0,0,.5);
        transition: .4s;
    }

    .shop-sidebar:after {
        content: "\f204";
        font-family: 'Font Awesome 5 Pro';
        font-weight: 900;
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        top: 100px;
        right: -35px;
        width: 35px;
        aspect-ratio: 1/1;
        background-color: #f8f9fa;
        border-radius: 0 2rem 2rem 0;
        box-shadow: 2px 1px 5px 0 rgba(0,0,0,.5);
    }

    .shop-sidebar:hover::after {
        content: "\f205";
    }

    .shop-sidebar:hover {
        left: 0;
    }

    .shop-sidebar > form {
        overflow-y: scroll;
        overflow-x: hidden;
        height: 100%;
    }

    .shop-sidebar :is(.filters, .list-unstyled) {
        max-width: calc(100% - 35px);
    }

    .shop-sidebar > form > :is(.widget_price_filter, .widget:first-of-type, .widget:last-of-type) {
        padding: 0 35px 0 0 ;
    }

    .product-option > .product-row .addtocart {
        padding: 10px 20px;
    }

    .product-option > .product-row .addtocart span {
        font-size: 12px;
    }

    .details-label {
        display: flex;
        flex-wrap: wrap;
    }

    .details-label > div {
        width: 100%;
    }

    .ecommerce-billing-fields h5 {
        font-size: 12px;
    }

    .billing_fields,
    .shipping_fields {
        max-width: 90vw;
    }

    .ecommerce-checkout-review-order-table td.product-name {
        font-size: 13px!important;
    }

    .table-orders :is(th, td) {
        min-width: 130px;
    }

}