.cart-drawer {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 31;
    pointer-events: none;
    transition: all .4s ease;
}

.cart-drawer--active {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer__container {
    width: 100%;
    max-width: 540px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    background: #FFFEF9;
    transform: translateX(100%);
    transition: all .4s ease;
}

.cart-drawer--active .cart-drawer__container {
    transform: translateX(0);
}

.cart-drawer__close {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
}

.cart-drawer__empty, .cart-drawer__full {
    height: 100%;
    display: grid;
}

.cart-drawer__empty-content, .cart-drawer__full-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-drawer__heading {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin: 60px 20px 50px;
}

.cart-drawer__full-content .cart-drawer__heading {
    margin-bottom: 30px;
}

.cart-drawer__heading h3 {
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
}

.cart-drawer__counter {
    color: #AAAAAA;
    font-size: 14px;
}

.cart-drawer__empty-text {
    font-size: 14px;
    padding: 0 20px;
}

.cart-drawer__products {
    overflow-y: auto;
    scrollbar-width: thin;
}

.cart-drawer__footer {
    align-self: flex-end;
    box-shadow: 4px -4px 30px rgba(0,0,0,0.1);
    padding: 30px;
}

.cart-drawer__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.cart-drawer__btn {
    width: 100%;
    height: 55px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFEF9;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    background: #281D18;
    border: 1px solid #281D18;
}

.cart-drawer__btn:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #FFFEF9;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.4s ease;
}

.cart-drawer__btn span {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.cart-drawer__btn:hover:after {
    transform: scaleX(1);
}

.cart-drawer__btn:hover span {
    color: #281D18;
}

.cart-drawer__overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Карточка с товаром в корзине */
.cart-product{
    min-height: 145px;
    display: flex;
    gap: 12px;
    padding: 14px 21px;
    border-bottom: 1px solid #E7E7E7;
}

.cart-product:first-child {
    border-top: 1px solid #E7E7E7;
}

.cart-product__photo {
    flex: 0 0 20%;
    aspect-ratio: 0.75;
}

.cart-product__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.cart-product__title {
    color: #281D18;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.cart-product__options {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #AAAAAA;
    line-height: 24px;
}

.cart-product__counter {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cart-product__counter-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.cart-product__delete {
    color: #AAAAAA;
    font-size: 14px;
    font-weight: 300;
    align-self: flex-end;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cart-drawer__close {
        top: 20px;
        right: 20px;
    }

    .cart-drawer__heading {
        margin: 60px 15px 50px;
    }

    .cart-drawer__full-content .cart-drawer__heading {
        margin-top: 50px;
    }

    .cart-drawer__heading h3 {
        font-size: 16px;
    }

    .cart-drawer__empty-text {
        padding: 0 15px;
    }

    .cart-drawer__footer {
        padding: 15px;
    }

    .cart-drawer__total {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .cart-drawer__btn {
        height: 50px;
        font-size: 12px;
    }

    /* Карточка с товаром в корзине */
    .cart-product{
        padding: 14px 15px;
    }

    .cart-product__photo {
        flex: 0 0 25%;
    }
}

.bx-basket-block{
    position: relative;
}
.bx-basket-block>span{
 left: 24px;
    position: absolute;
    font-size: 11px; 
    width: 15px;
    text-align: center;
    border-radius: 10px; 
}