.cart-wrapper {
    background-color: #4ac06c;
    background-image: none;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 1;
    color: #fff;
    transition: background-color 0.3s ease, width 0.3s ease, color 0.3s ease;
}

.cart-wrapper span,
.cart-wrapper .cart-text {
    position: relative;
    z-index: 3;
    color: #fff;
    transition: color 0.3s ease;
}

.cart-wrapper .icon-shop::after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='25' viewBox='0 0 24 25' fill='none'><g><path d='M8.45338 15.8103L14.8876 15.8103C18.8631 15.8103 19.4677 13.3128 20.2009 9.6704C20.4124 8.61979 20.5182 8.09448 20.2639 7.74451C20.0096 7.39453 19.5221 7.39453 18.5471 7.39453L6.68164 7.39453' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round'/><path d='M8.45627 15.8084L6.13416 4.74828C5.93699 3.95956 5.22832 3.40625 4.41533 3.40625H3.58398' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round'/><path d='M9.23295 15.8086H8.86847C7.66072 15.8086 6.68164 16.8285 6.68164 18.0865C6.68164 18.2962 6.84482 18.4662 7.04611 18.4662H16.8691' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/><path d='M10.6706 21.1225C11.4045 21.1225 11.9994 20.5275 11.9994 19.7936C11.9994 19.0598 11.4045 18.4648 10.6706 18.4648C9.93672 18.4648 9.3418 19.0598 9.3418 19.7936C9.3418 20.5275 9.93672 21.1225 10.6706 21.1225Z' stroke='%23ffffff' stroke-width='1.7'/><path d='M16.8698 21.1225C17.6037 21.1225 18.1986 20.5275 18.1986 19.7936C18.1986 19.0598 17.6037 18.4648 16.8698 18.4648C16.1359 18.4648 15.541 19.0598 15.541 19.7936C15.541 20.5275 16.1359 21.1225 16.8698 21.1225Z' stroke='%23ffffff' stroke-width='1.7'/></g></svg>") !important;
}

.cart-wrapper:hover .icon-shop::after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='25' viewBox='0 0 24 25' fill='none'><g><path d='M8.45338 15.8103L14.8876 15.8103C18.8631 15.8103 19.4677 13.3128 20.2009 9.6704C20.4124 8.61979 20.5182 8.09448 20.2639 7.74451C20.0096 7.39453 19.5221 7.39453 18.5471 7.39453L6.68164 7.39453' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round'/><path d='M8.45627 15.8084L6.13416 4.74828C5.93699 3.95956 5.22832 3.40625 4.41533 3.40625H3.58398' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round'/><path d='M9.23295 15.8086H8.86847C7.66072 15.8086 6.68164 16.8285 6.68164 18.0865C6.68164 18.2962 6.84482 18.4662 7.04611 18.4662H16.8691' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/><path d='M10.6706 21.1225C11.4045 21.1225 11.9994 20.5275 11.9994 19.7936C11.9994 19.0598 11.4045 18.4648 10.6706 18.4648C9.93672 18.4648 9.3418 19.0598 9.3418 19.7936C9.3418 20.5275 9.93672 21.1225 10.6706 21.1225Z' stroke='%23ffffff' stroke-width='1.7'/><path d='M16.8698 21.1225C17.6037 21.1225 18.1986 20.5275 18.1986 19.7936C18.1986 19.0598 17.6037 18.4648 16.8698 18.4648C16.1359 18.4648 15.541 19.0598 15.541 19.7936C15.541 20.5275 16.1359 21.1225 16.8698 21.1225Z' stroke='%23ffffff' stroke-width='1.7'/></g></svg>") !important;
}

.cart-wrapper::before {
    content: none;
}

.cart-wrapper.is-empty {
    display: none !important;
}

.cart-wrapper.has-items {
    display: inline-flex;
}

.cart-wrapper::after {
    content: attr(data-count);
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #2a8f4a;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    box-sizing: border-box;
    z-index: 4;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cart-wrapper .cart-text {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.3s ease, opacity 0.2s ease;
    font-weight: 600;
}

.cart-wrapper:hover {
    background-color: #3eab5e;
    color: #fff;
}

.cart-wrapper:hover span,
.cart-wrapper:hover .cart-text {
    color: #fff !important;
}

@media (min-width: 1600px) {
    .cart-wrapper:hover {
        width: 140px;
    }

    .cart-wrapper:hover .cart-text {
        max-width: 100px;
        opacity: 1;
        margin-left: 8px;
    }

    .cart-wrapper:hover::after {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1350px) {
    .nav__actions .btn-primary {
        white-space: normal !important;
        text-align: center;
    }
}

@media (min-width: 1200px) and (max-width: 1350px) {
    .nav__actions {
        right: 5px !important;
    }

    .nav__actions .btn-primary {
        max-width: 150px;
        line-height: 1.2 !important;
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .nav__actions {
        gap: 5px;
        right: 0 !important;
    }

    .nav__actions .btn-primary {
        max-width: 120px;
        padding: 6px 10px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
    }

    .cart-desktop {
        width: 40px;
        height: 40px;
    }

    .nav__brand img,
    .nav__brand svg,
    .nav__brand object {
        width: 135px !important;
        height: 20px !important;
    }
}

@media (max-width: 991px) {
    .cart-desktop {
        display: none !important;
    }

    .cart-mobile {
        display: flex !important;
        align-items: center;
        width: 80.35%;
        height: auto;
        padding: 12px 15px;
        text-decoration: none;
        color: #000000;
        background-image: none !important;
        background-color: transparent !important;
    }

    .cart-mobile .cart-text {
        max-width: none !important;
        opacity: 1 !important;
        margin-left: 12px;
        font-size: 16px;
        font-weight: 500;
        color: #000000 !important;
    }

    .cart-mobile::after {
        position: static !important;
        margin-left: auto;
        background-color: #2a8f4a;
        color: #ffffff;
    }

    .nav__actions__buttons {
        gap: 0.5rem !important;
    }
}

@media (min-width: 768px) {
    .cart-mobile {
        width: 72.4%;
    }
}
