.cart-wrapper {
    background-color: #F5F33B;
    background-image: linear-gradient(to right, #F5F33B 50%, var(--btn-bg-color-hover) 50%);
    background-size: 200% 100%;
    background-position: left bottom;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: background-position 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.cart-wrapper span,
.cart-wrapper .cart-text {
    position: relative;
    z-index: 3;
    transition: color 0.3s ease;
}

.cart-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 0 0 var(--btn-bg-color-hover);
    transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.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: #000000;
    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-position: right bottom;
    border-color: var(--btn-border-color-hover);
    color: var(--btn-color-hover);
}

.cart-wrapper:hover span,
.cart-wrapper:hover .cart-text {
    color: var(--btn-color-hover) !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;
    }

    .cart-mobile .cart-text {
        max-width: none !important;
        opacity: 1 !important;
        margin-left: 12px;
        font-size: 16px;
        font-weight: 500;
    }

    .cart-mobile::after {
        position: static !important;
        margin-left: auto;
        background-color: #000000;
        color: #ffffff;
    }

    .nav__actions__buttons {
        gap: 0.5rem !important;
    }
}
@media (min-width: 768px) {
    .cart-mobile {
        width: 72.4%;
    }
}