.a-cart {
    position: relative
}

.a-cart__small {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center
}

.a-cart__small:hover .a-cart__small--text {
    text-decoration: underline
}

.a-cart__small--icon {
    font-size: 28px;
    display: flex;
    color: #5b3f97;
    align-items: center;
    justify-content: center
}

.cart-qty {
    margin-left: 5px;
}

.header__cart {
    flex-shrink: 0;
}
.cart {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    top: 2px;
}
.minicart__dropdown-shadow {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
}
.minicart__dropdown-shadow_active {
    display: block;
}

.cart {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.cart:hover .c-cart__small {
    color: var(--main-color);
}

.c-cart__small:hover {
    cursor: pointer;
}

.cart__image {
    width: 23px;
    height: 23px;
    background-color: unset;
}

.cart__count {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 2px 1px;
    font-size: 11px;
    font-weight: 500;
    max-height: 16px;
    min-width: 16px;
    color: var(--secondary-text-color);
}

.cart__title {
    position: relative;
    display: block;
    margin-left: 10px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
}

.table {
    letter-spacing: 0;
    border-spacing: 0px;
    border-collapse: collapse;
    width: 100%;
}

.table td,
.table th {
    font-size: 12px;
    
    line-height: 16px;
    padding: 0.744rem;
    vertical-align: middle;
    text-align: left;

}

.c-table__name {
    min-width: 0;
}

.c-table__remove {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 104px;
    min-width: 158px;
}

.c-table__remove svg {
    width: 20px;
    height: 20px;
}

.table tbody tr {
    border-top: 1px solid var(--border-color);
}

.table tbody tr:last-child {
    border-bottom: 1px solid var(--border-color);
}
.a-cart__dropdown .table tbody tr,
.popup .table tbody tr {
    transition: all 0.4s ease-in-out;
}
.a-cart__dropdown .table tbody tr:hover,
.popup .table tbody tr:hover {
    box-shadow: inset 0 0 10px 0 rgb(0 0 0 / 20%);
}

.c-table__remove-icon {
    fill: #777;
}

.c-table__remove:hover .c-table__remove-icon {
    fill: #f8353e;
}

.c-table__link:hover {
    color: var(--accent-color);
}

.a-cart__empty {
    min-width: 400px;
}

.a-cart__empty div {
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 15px 10px;
    font-size: 14px;
    line-height: 1.5;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    background: var(--main-backgroun-color);
}
.btn-outline-secondary {
    cursor: pointer;
    background: none;
    border: none;
    display: inline-block;
    position: relative;
    transition: all 0.3s cubic-bezier(0.42, 0, 0.58, 1);
    z-index: 3;
    padding: 8px 10px;
    background: var(--main-backgroun-color);
    color: var(--main-text-color);
    border: 1px solid var(--border-color);
    margin: 10px 10px 10px 0;
    border-radius: 21px;
}

.btn-outline-secondary:hover {
    color: var(--secondary-text-color);
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary {
    color: var(--secondary-text-color);
    cursor: pointer;
    background: none;
    border: none;
    display: inline-block;
    position: relative;
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    padding: 8px 10px;
    background: var(--accent-color);
    border-radius: 21px;
    margin: 10px;
}
.a-cart__dropdown .btn-outline-secondary,
.a-cart__dropdown .btn-primary {
    padding: 2px 10px;
}

.btn-primary:hover {
    opacity: 0.8;
}

.minicart__quantity-container {
    display: none;
}

.total__icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}


@media (max-width:1024px) {
    .a-cart__small--icon {
        font-size: 24px
    }
}

@media (max-width:767px) {
    .a-cart__small--icon {
        font-size: 22px
    }
    .btn-outline-secondary::before {
        width: 100%;
    }
}

.a-cart__small--text {
    font-size: 12px;
    margin-top: 4px;
    color: #666
}

@media (max-width:767px) {
    .a-cart__small--text {
        font-size: 11px
    }
    .c-table__remove {
        min-width: 0;
    }
}

.a-cart__small--price {
    display: none
}

.a-cart__dropdown {
    position: fixed;
    height: 100vh;
    z-index: 90;
    top: 0;
    right: -100%;
    transition: all .4s ease-in-out;
    background: var(--main-background-color);
    width: auto;
    width: 420px;
    max-width: 420px;
}




.a-cart__dropdown_active {
    right: 0;
}

.a-cart__dropdown-title {
    color: var(--main-text-color);
    font-size: 20px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 30px;
}

.a-cart__dropdown-close {
    position: absolute;
    right: 10px;
    top: 33px;
    width: 25px;
    height: 25px;
    padding: 0;
    transition: all 0.4s ease-in-out;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}
.a-cart__dropdown-close:hover {
    transform: rotate(180deg);
}
.minicart-item {
    display: flex;
    align-items: flex-start;
}
.minicart-item__image {
    width: 120px;
    height: 155px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.minicart-item__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.a-cart__dropdown .minicart__old-price,
.a-cart__dropdown .minicart__sale {
    display: none;
}
.minicart-item__content {
    padding: 0 10px;
}
.minicart__dropdown-content {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 50vh;
    padding-bottom: 20px;
    display: none;
    margin: 0 30px;
}

.minicart__dropdown-content:last-of-type {
    border-bottom: none;
}

.minicart__dropdown-content_active {
    display: block;
}
.minicart__total {
    margin-bottom: 20px;
    justify-content: space-between;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--main-text-color);
    
}
.a-cart__dropdown .minicart__footer {
    flex-direction: column;
    display: none;
}
.a-cart__dropdown .minicart__footer_active {
    display: flex;
    background: var(--accent-background-color);
}
.a-cart__dropdown .alert-primary{
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    font-weight: 400;
    color: var(--third-text-color);
    display: none;
}
.a-cart__dropdown .alert-primary_active {
    display: block;
}
.minicart__total-container {
    width: 100%;
    padding: 0 15px;
    border-bottom: 1px solid var(--border-color);
}
.minicart__checkout-buttons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}
.minicart__checkout-buttons .default-btn {
    line-height: 1;
    display: flex;
    align-items: center;
}
.minicart__footer .minicart__total-price,
.minicart__dropdown-content .js-cartPrice {
    color: var(--main-text-color);
    font-size: 15px;
    font-weight: 700;
}
.minicart__checkout-buttons .btn-primary,
.minicart__checkout-buttons .btn-outline-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}
.minicart__checkout-buttons .mdi {
    font-size: 20px;
    margin-right: 5px;
}


.minicart-item__title {
    max-width: 180px;
    width: 100%;
    margin: 5px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--main-text-color);
    transition: all 0.4s ease-in-out;
}

.minicart-item__title:hover {
    color: var(--accent-color);
}

.minicart-item__delete {
    margin-left: auto;
    margin-right: 8px;
}

.minicart-item__delete svg {
    width: 15px;
    height: 15px;
    fill: var(--main-text-color);
    transition: all 0.4s ease-in-out;
}

.minicart-item__delete:hover svg {
    fill: var(--accent-color);
}

.minicart-item {
    margin-bottom: 10px;
}

.minicart-item__price {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 1px;
    font-weight: 400;
    color: var(--main-text-color);
}

.minicart__total {
    font-size: 14px;
    line-height: 1.2;
    
    letter-spacing: 1px;
    color: var(--main-text-color);
}

.shadow {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15)!important;
}

.a-cart-total {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 20px
}

.a-cart-total__icon {
    width: 30px;
    height: 30px;
    margin-right: 10px
}

.small-cart-list {
    padding: 0;
    margin: 0;
    list-style: none
}

.a-table__footer {
    display: flex;
    list-style: none;
    margin: 0;
    justify-content: space-between;
    padding: 15px 0;
    align-items: center
}

.small-arange-button {
    background-color: var(--accent-color)!important;
    border: 1px solid var(--accent-color)!important
}

.small-arange-button:hover {
    background-color: var(--menu-items-hover-background)!important
}

.alert {
    min-width: 411px;
    font-size: 16px;
}

@media (max-width: 535px) {
    .a-cart__table thead {
        display: none;
    }
    .c-table__img a {
        height: auto!important;
        max-height: 150px;
    }
    .c-table__img img {
        max-height: 150px;
    }
    .a-cart__empty {
        min-width: auto;
    }
    .alert {
        min-width: auto;
    }
}

@media (min-width: 645px) {
    .c-table__name {
        min-width: 340px;
    }
}
@media (max-width: 600px) {
    .cart-qty {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .a-cart__dropdown {
        width: 320px;
        max-width: 320px;
    }
    .minicart-item__image {
        width: 80px;
        height: 103px;
    }
    .minicart-item__title {
        max-width: 130px;
    }
}
@media (max-width: 380px) {
    .minicart-item__image {
        width: 60px;
        height: 85px;
    }
}

@media (max-width: 400px) {
    .cart-qty {
        display: none;
    }
}

.c-table__quantity .qty__inner {
    margin-right: 10px;
}