* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 :root {
    --Red: hsl(14, 86%, 42%);
    --Green: hsl(159, 69%, 38%);
    --Rose-50: hsl(20, 50%, 98%);
    --Rose-100: hsl(13, 31%, 94%);
    --Rose-300: hsl(14, 25%, 72%);
    --Rose-400: hsl(7, 20%, 60%);
    --Rose-500: hsl(12, 20%, 44%);
    --Rose-900: hsl(14, 65%, 9%);
}

body {
    width: 100%;
    font-family: "Red Hat Text", sans-serif;
    background-color: var(--Rose-50);
}

.Dessert {
    max-width: 75rem;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.Dessert__container {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .Dessert__container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
};

.container__dessert-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.options-cart__position {
    display: grid;
    grid-template-columns: repeat(3, 1fr);    
    gap: 1.2rem;
}

@media (max-width:768px) {
    .options-cart__position {
        display: grid;
        grid-template-columns: repeat(2, 1fr);    
        gap: 1.2rem;
    }
}

@media (max-width:480px) {
    .options-cart__position {
        display: flex;
        flex-direction: column;   
        gap: 2rem;
    }
}

.cards-card__img {
    position: relative;
}

.cards-card-img__image {
    max-width: 100%;
    border-radius: 0.5rem;
}

.cards-card-img__button {
    max-width: 10rem;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 30%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--Rose-400);
    background-color: white;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.cards-card-img__button:hover {
    color: var(--Red);
    border-color: var(--Red);
}

.activ {
    background-color: var(--Red);
    cursor: default;
}

.dessert-options__cards-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cards-card__description {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.card-description__category {
    color: var(--Rose-400);
}

.card-description__price {
    color: var(--Red);
    font-weight: bold;
}

.container__desserts-result {
    max-width: 25rem;
    width: 100%;
    min-height: 15rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem 1.5rem 2rem;
}

.desserts-result__your-cart {
    color: var(--Red);
}

.desserts-result__cart-added {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--Rose-500);
}

.cart-added__order {
    display: none;
    flex-direction: column;
}

.cart-order__list {
    max-height: 16rem;
    height: 100%;
    overflow: auto;
}

.cart-order__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--Rose-100);
}

.cart-order__info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-order__info-items {
    display: flex;
    gap: 1rem;
}

.count-style {
    font-weight: bolder;
    color: var(--Red);
}

.price-style {
    color: var(--Rose-500);
}

.full-price-style {
    font-weight: 600;
    color: var(--Rose-500);
}

.cart-order__remove {
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
    border-radius: 1.5rem;
    border: 1px solid var(--Rose-400);
    background-color: white;
    cursor: pointer;
}

.cart-order__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.order-total__text {
    font-weight: 500;
    color: var(--Rose-900);
}

.order-total__sum {
    font-size: 1.6rem;
    font-weight: bold;
}

.cart-order__info-delivery {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--Rose-50);
    border-radius: 0.3rem;
    padding: 0.8rem;
    font-size: small;
    margin-bottom: 1.5rem;
}

.order-delivery__button-span {
    font-weight: bold;
}

.order-modal__button {
    width: 100%;
    padding: 1rem;
    background-color: var(--Red);
    color: white;
    border-radius: 1.5rem;
    border: none;
    letter-spacing: 0.8px;
    cursor: pointer;
}

.block {
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: white;
}

.block__activButton {
    width: 1rem;
    height: 1rem;
    border: 1px solid white;
    border-radius: 50%;
    cursor: pointer;
    padding: 0.2rem;
}

.modal {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__container {
    max-width: 35rem;
    width: 100%;
    max-height: 100%;
    background-color: white;
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-container__img {
    width: 3rem;
}

.modal-container__paragraph {
    color: var(--Rose-400);
}

.modal-container__order-price {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    background-color: var(--Rose-50);
    padding: 1rem;
}

.modal-container__full-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 0;
}

.modal-full-price__text {
    font-weight: 500;
    color: var(--Rose-900);
}

.modal-full-price__sum {
    font-size: 1.6rem;
    font-weight: bold;  
}

.modal--hidden {
    display: none;
}

.noscroll {
    overflow: hidden;
}

.modal-info__image {
    width: 2rem;
}

.modal-container__order-list {
    max-height: 15rem;
    height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.modal-items__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-items-info__box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.modal-items__info {
    padding: 1rem;
    border-bottom: 1px solid var(--Rose-100);
}

.modal-info__image {
    max-width: 5rem;
    width: 100%;
    border-radius: 0.5rem;
}

.modal-info__items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-info-items__count-price {
    display: flex;
    gap: 1.5rem;
}


