.shopping {
    margin: 10rem 0;
}

.shopping__container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#cart-items {
    margin-bottom: 10rem;

}


#cart-items::-webkit-scrollbar {
    width: 8px;
}

#cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#cart-items::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.shopping__container-box-title {
    font-size: 2.7rem;
    font-family: var(--Inter_28pt-SemiBold);
    margin-bottom: 4rem;
}

.shopping__container-box-cort {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0);
    background-color: #F5F5F5;
    border-radius: 1rem;
    padding: 2rem;

}

.shopping__container-box-cort:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0);

}

.shopping__container-box-cort-img {
    width: 35%;
    margin-bottom: 2rem;
}

.shopping__container-box-cort-img img {
    width: 100%;
    object-fit: cover;
    display: block;

}

.shopping__container-box-cort-name {
    max-width: 20rem;
    font-family: var(--Inter_28pt-Medium);
    margin: 2rem auto;
    text-align: center;
}

.shopping__container-box-cort-name span {
    color: rgba(0, 0, 0, 0.72);
}

.shopping__cart-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.shopping__cart-increase,
.shopping__cart-decrease {
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: relative;

}

.shopping__cart-decrease svg {
    border: 1px solid transparent;
    transition: all 0.3s ease;
    border-radius: 5rem;
}

.shopping__cart-increase svg {
    border: 1px solid transparent;
    transition: all 0.3s ease;
    border-radius: 5rem;

}

.shopping__cart-decrease svg:hover {
    border: 1px solid rgba(0, 0, 0, 0.24);
}

.shopping__cart-increase svg:hover {
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.shopping__cart-number {
    padding: .2rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: .5rem;
    margin: 0 1rem;
}

.shopping__cart-increase {

}

.shopping__container-box-cort-price {

}

.shopping__container-box-cort-delete {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 1rem;
}


.shopping__container-price {
    display: flex;
    flex-direction: column;
    width: auto;
    height: 60rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    padding: 3rem 4rem;
}

.shopping__container-price-title {
    font-size: 2rem;
    font-family: var(--Inter_28pt-SemiBold);
    margin-bottom: 3rem;
}

.shopping__container-price-form {
    display: flex;
    flex-direction: column;
}

.shopping__container-price-form label {
    color: #545454;
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.price-input {
    padding: 2rem 2rem 2rem 1rem;
    border: 2px solid #9F9F9F;
    border-radius: .7rem;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    margin-bottom: 2rem;
    font-family: var(--Inter_28pt-Regular);
    color: #262626;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.price-input:focus {
    border: 2px solid black;
}

.price-button {
    width: 7rem;
    border: 2px solid black;
    background-color: transparent;
    border-radius: .7rem;
    padding: .5rem 1rem;
    font-family: var(--Inter_28pt-Medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-button:active {
    background-color: var(--blak);
    color: var(--white);
}

.subtotal-text {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.shopping__container-price-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem auto 0 auto;
    border: 2px solid black;
    background-color: var(--blak);
    color: var(--white);
    border-radius: .7rem;
    padding: 1.5rem 1rem;
    font-family: var(--Inter_28pt-Medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.shopping__container-price-button:active {
    background-color: transparent;
    color: var(--blak);
}

.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.decrease-increase {
    display: flex;
    text-align: center;
    justify-content: space-evenly;
    align-items: center;
    border-radius: .7rem;
    background-color: var(--blak);
    border: 2px solid var(--blak);
    color: var(--white);
    width: 70%;
    height: 4rem;
    padding: 0.5rem 0;
    margin: 2rem 0 2rem 0;
    cursor: pointer;
    font-family: var(--Inter_28pt-Medium);
    transition: all 0.3s ease;
}

.decrease {
    background-color: transparent;
    color: #F5F5F5;
    font-size: 2rem;
    border: none;
    padding: 0;
    cursor: pointer;

}

.quantity {

}

.increase {
    text-align: center;
    background-color: transparent;
    color: #F5F5F5;
    font-size: 2rem;
    border: none;
    padding: 0;
    cursor: pointer;
}

.cart-icon {
    position: relative;

}

.cart-count {
    position: absolute;
    top: -.5rem;
    right: -.5rem;
    padding: .1rem;
    background: var(--blak);
    color: white;
    border-radius: 10rem;
    min-width: 18px;
    text-align: center;
    display: none;
    font-size: 1.2rem;
    font-family: var(--Inter_28pt-Medium);
}

/* انیمیشن فقط وقتی کلاس فعال بشه اجرا میشه */
.cart-count.animate {
    animation: cart-shop 1s ease-in-out;
}

@keyframes cart-shop {
    0% {
        box-shadow: 0 0 0 0px rgba(161, 0, 255, 0.71);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(161, 0, 255, 0.45);
    }
    75% {
        box-shadow: 0 0 0 5px rgba(161, 0, 255, 0.27);

    }
    100% {
        box-shadow: 0 0 0 5px rgba(161, 0, 255, 0);
    }
}
