* {
    margin: 0;
    padding: 0;
    font-family: "Red Hat Text", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    margin: 5rem 3.5rem 1rem;
    background-color: hsl(20, 50%, 98%);
}

.title {
    margin: 0 0 2.5rem 0;
}

.desktop-img,
.mobile-img,
.tablet-img {
    border: 3px solid transparent;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.title h1 {
    text-transform: capitalize;
    font-size: 2.8rem;
}

.item-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.item-img {
    position: relative;
    margin: 0 0 1.6rem 0;
}

.item-img img {
    width: 20vw;
    border-radius: 0.6rem;
}

.add-to-cart {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    padding: 0.6rem 0;
    justify-content: center;
    align-items: center;
    background-color: white;
    text-transform: capitalize;
    font-weight: 600;
    width: 10rem;
    cursor: pointer;
    border: 1px solid hsl(14, 86%, 42%);
    gap: 0.5rem;
    border-radius: 2rem;
}

.cart-svg img {
    width: 1.25rem;
}

.increment-decrement-btn {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translate(-50%);
    width: 11.25rem;
    padding: 0.6rem 0 8px;
    border-radius: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: hsl(14, 86%, 42%);
}

.decrement-btn,
.increment-btn {
    padding: 0;
    width: 30%;
}

.increment-decrement-btn img {
    height: 0.75rem;
    width: 0.75rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    border: 0.25px solid white;
}

.value {
    color: white;
    text-align: center;
    width: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px
}

.item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.25rem;
}

.item-category,
span {
    text-transform: capitalize;
}

.item-name {
    font-weight: 600;
}

.item-price {
    color: hsl(14, 86%, 42%);
    font-weight: 600;
}

.tablet-img,
.mobile-img {
    display: none;
}

.cart {
    background-color: white;
    width: 22rem;
    min-height: 16rem;
    padding: 0.9rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 10px;
    gap: 1.6rem;
}

.cart-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: hsl(14, 86%, 42%);
    text-transform: capitalize;
    font-size: 1.25rem;
}

.total-order p {
    font-weight: bolder;
    font-size: 1.69rem;
}

.empty-cart {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
}

.added-to-cart {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    width: 100%;
}

.item-in-cart {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
}

.cart-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 0 0.5rem 0;
    border-bottom: 2px solid hsl(13, 31%, 94%);
}

.cart-item-name {
    text-transform: capitalize;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
}

.order-information {
    display: flex;
    width: 10rem;
    justify-content: space-between;
    align-items: center;
}

.item-quantity {
    color: hsl(14, 86%, 42%);
    font-weight: 600;
    width: 27px;
}

.items-total-price {
    color: hsl(12, 20%, 44%);
    font-weight: 600;
    width: 65px;
}

.close-btn {
    height: 1.15rem;
    width: 1.15rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    cursor: pointer;
    align-items: center;
    border: 2px solid hsl(14, 25%, 72%);
}

.close-btn img {
    width: 0.6rem;
}

.total-amount {
    width: 100%;
    display: flex;
    font-size: 1.15rem;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    text-transform: capitalize;
}

.amount {
    font-weight: 650;
}

.environmental-message {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
    background-color: hsl(20, 50%, 98%);
    padding: 0.85rem 0;
}

.bold {
    text-transform: none;
    font-weight: 600;
}

.new-order,
button {
    width: 100%;
    background-color: hsl(14, 86%, 42%);
    border: none;
    padding: 1rem 0;
    font-size: 1.2rem;
    border-radius: 2rem;
    color: white;
    font-weight: 500;
    cursor: pointer;
    text-transform: capitalize;
}

.confirmation-popup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    width: 28rem;
    padding: 1.7rem 1.3rem;
    border-radius: 20px;
    box-shadow: 0 0 0 425vmax rgba(0, 0, 0, 0.45);
}

.confirm-order-message h3 {
    text-transform: capitalize;
    font-size: 2.25rem;
}

.confirm-order-message p {
    font-size: 1.15rem;
}

.confirm-ordered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.25rem;
    background-color: hsl(13, 31%, 94%);
    width: 90%;
    padding: 1.1rem 1.25rem;
    border-radius: 10px;
}

.order-total-amount,
.confirm-item {
    width: 100%;
}

.confirm-item-list {
    display: flex;
    padding: 0 0 0.55rem 0;
    border-bottom: 1px solid hsl(14, 25%, 72%);
    justify-content: space-between;
    align-items: center;
}

.confirm-item-img img {
    width: 3.25rem;
    border-radius: 8px;
}

.confirm-item-name p:first-child {
    text-transform: capitalize;
    font-weight: 600;
}

.confirm-item-detail {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.85rem;
}

.confirm-item-info p {
    margin-bottom: 5px;
}

.item-quantity-per-price {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.confirm-item-quantity {
    font-weight: 550;
    color: hsl(14, 86%, 42%);
}

.confirm-item-total-price {
    font-weight: 650;
    font-size: 1.15rem;
}

.order-total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-amount p:first-child {
    text-transform: capitalize;
}

.confirm-order-total {
    font-size: 1.5rem;
    font-weight: bold;
}

.display-none {
    display: none;
}

@media only screen and (max-width:1024px) {
    body {
        margin: 5.5rem 1rem 1rem;
    }

    .add-to-cart {
        width: 8rem;
    }

    .cart-svg img {
        width: 1.05rem;
    }

    .cart {
        padding: 0.9rem 1.1rem;
    }

    .confirmation-popup {
        width: 25rem;
    }
}

@media only screen and (max-width:860px) {
    .container {
        flex-direction: column;
        gap: 3.5rem;
    }

    .menu {
        width: 100%;
    }

    .item-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .desktop-img,
    .mobile-img {
        display: none;
    }

    .tablet-img {
        display: block;
    }

    .item-img img:nth-child(2) {
        width: 100%;
    }
    .item-img img:nth-child(3) {
        width: 100%;
    }

    .add-to-cart {
        width: 10.5rem;
    }

    .cart {
        width: 94%;
        padding: 1.5rem 1.15rem;
    }
}

@media only screen and (max-width:595px) {
    .cart {
        width: 94%;
        padding: 1.5rem 0.8rem;
    }

    .confirmation-popup {
        width: 22rem;

    }
}

@media only screen and (max-width:425px) {
    .item-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .tablet-img,
    .desktop-img {
        display: none;
    }

    .mobile-img {
        display: block;
    }

    .add-to-cart {
        bottom: -18px;
    }
}

@media only screen and (max-width:375px) {
    .cart {
        width: 93%;
        padding: 1.5rem 0.8rem;
    }

    .confirmation-popup {
        width: 19rem;

    }
}