@import url('fonts.css');

.header__toolbar__cart-button {
    visibility: hidden;
}

.cart {
    max-width: 460px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

.cart__contents {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart__title {
    align-self: flex-start;
    font-size: 1.6rem;
    margin-block: 0;
    padding: 0 0 16px 0;
}

.cart__ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.cart__ul__li {
    display: flex;
    flex-direction: column;
    padding: 16px 16px 12px 16px;
    background-color: var(--light-grey-color);
}

.cart__item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.cart__item__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.cart__item__title {
    font-weight: 700;
    margin-block: 4px 0;
}

.cart__item__size,
.cart__item__price {
    margin-block: 0;
} 

.cart__item__controls {
    display: flex;
    justify-content: space-between;
}

.cart__item__controls p,
.cart__item__controls button {
    margin-block: 0;
}

.cart__item__controls__quantity__add,
.cart__item__controls__quantity__subtract {
    width: 20px;
    text-align: center;
}

.cart__item__controls__remove {
    text-decoration: underline;
}

.cart__item__controls__quantity {
    display: flex;
    column-gap: 16px;
}

.cart__subtotal {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 6px;
    padding: 20px 0 0 0;
}

.cart__information {
    width: 100%;
    text-align: center;
    padding: 0 0 20px 0;
}

.cart__empty {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
