:root {
  --focus: #f06846;
  --focus-light: #e68c70;
  --white: #ffffff;
  --background: #e8501e;
  --grey: #c9bab6;
}

.red-hat-text-font {
  font-family: "Red Hat Text", sans-serif;
  font-optical-sizing: auto;
  /* font-weight: <weight>; */
  font-style: normal;
}
body {
  font-family: "Red Hat Text", sans-serif;
  background-color: var(--white);
}
main {
  background-color: var(--background);
  max-width: 95%;
  border-radius: 10px;
  margin: 0 auto;
}

@media (min-width: 886px) {
  body {
    max-width: 100dvw;
    /* background-color: #0056b3; */
    /* overflow-x: hidden; */
  }
  main {
    width: 91%;
    margin: 0 auto;
    padding: 4%;
  }
  .head {
    font-size: 1.5rem;
    color: var(--focus);
  }
  .content {
    display: grid;
    gap: 50px;
    /* margin-block:3rem; */
    grid-template-columns: 1.5fr 0.5fr;
  }
  .desserts {
    display: grid;
    /* padding: 0%; */
    border-radius: 8px;
    margin-block: 2rem;
    gap: 30px;
    /* padding: 4%; */
    /* grid-template-rows: 85dvh; */
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
  .item {
    background-color: var(--black);
    display: flex;
    padding: 0;
    flex-direction: column;
    margin: 0;
    border-radius: 8px 8px 8px 8px;
    min-height: 100%;
    object-fit: contain;
    justify-content: center;
  }
  .item_image {
    display: flex;
    width: 100%;
    /* max-height: 60%; */
    overflow-y: visible;
    /* border: 2px solid var(--focus); */
    /* min-height: 60%; */
    max-width: 100%;
    border-radius: 8px 8px 8px 8px;
    overflow: hidden;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* margin-block-end: 2rem; */
    box-sizing: border-box;
    position: relative;
    padding-bottom: ? 4rem;
  }
  /* .item_image picture {
    padding: 0;
    border: 4px solid var(--focus);

    margin: 2rem 0;
    border-radius: 8px 8px 8px 8px;
    /* height: 70%; 
    /* object-fit: cover; 
    z-index: 10;
    box-sizing: border-box;
    /* position: relative; 
    /* transition: transform 0.5s ease; 
  }
  .item_image picture source {
    border-radius: 8px 8px 8px 8px;
    object-fit: cover;
  } */
  .item_image img {
    border-radius: 30px;
    object-fit: cover;
    width: 100%;
    box-sizing: border-box;
    margin-block-end: 2rem;
  }
  /* .add_to_cart {
    width: auto;
    margin: 0;
  } */
  .add_to_cart {
    background-color: transparent;
    width: 60%;
    z-index: 100;
    position: absolute;
    top: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    left: auto;
    display: flex;
    border-radius: 30px;
    font-size: 0.9rem;
    box-sizing: border-box;
  }
  .add_to_cart button {
    padding: 1rem 1.4rem;
    margin: 0 auto;
    color: var(--black);
    border-radius: 30px;
    background-color: var(--white);
    z-index: 100;
    /* top: 67.5%; */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    /* display: flex; */
    gap: 10px;
    max-width: 100%;
    font-weight: 600;
    box-sizing: border-box;
    border: 1px solid var(--grey);
    /* display: none; */
  }
  .active {
    display: flex;
  }
  .add_to_cart button:hover {
    background-color: var(--focus);
    cursor: pointer;
    color: var(--white);
  }
  .add_to_cart button i {
    color: var(--focus);
  }
  .add_to_cart button:hover i {
    color: var(--white);
  }
  .selected {
    padding: 0 2rem;
    margin: 0 auto;
    border-radius: 30px;
    background-color: var(--focus);
    z-index: 100;
    color: var(--white);
    /* top: 67.5%; */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    display: flex;
    gap: 20px;
    font-weight: 600;
    box-sizing: border-box;
    display: none;
  }
  .active {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .item_description {
    /* margin-block-start: 1.5rem; */
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .item_description h2 {
    font-size: 1rem;
    margin: 0;
    font-weight: normal;
    color: var(--grey);
    padding: 0;
  }
  .item_description p {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    color: var(--black);
    padding: 0;
  }
  .item_border {
    border: 5px solid var(--focus);
  }
  #item_price {
    font-size: 1.2rem;
    color: var(--focus);
  }
  .cart {
    display: flex;
    flex-direction: column;
    min-height: fit-content;
    height: 50dvh;
    max-width: 100%;
    gap: 1rem;
    padding: 1rem;
    justify-content: center;
    /* margin-block-start: 2rem; */
    border-radius: 8px;
    margin: 0;
    background-color: var(--white);
  }
  .cart h2 {
    font-size: 1.5rem;
    color: var(--focus);
    margin: 0;
    /* display: inline; */
  }
  .cart h2 p {
    display: inline;
  }
  .empty_cart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    justify-content: center;
    align-items: center;
    /* display: none; */
  }
  .empty_cart img {
    width: 80%;

    /* height: 100%; */
    object-fit: contain;
  }
  .empty_cart p {
    font-size: 0.8rem;
    color: var(--focus-light);
    font-weight: 700;
  }
  .cart_with_items {
    display: flex;
    flex-direction: column;

    /* display: none; */
  }
  .cart_with_items ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
  }
  /* .cart_items::-webkit-scrollbar {
  display: none;
} */
  /* .cart_items {
  max-height: 30dvh;
  overflow-y: scroll;
} */

  .cart_with_items ul li {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* justify-content: space-between; */
    /* align-items: center; */
    /* gap: 1rem; */
    /* padding: 1rem; */
    /* border-radius: 8px; */
    /* background-color: var(--background); */
  }
  .cart_with_items ul li h2 {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    color: var(--black);
  }
  .product_price {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .calc {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
  }
  .quantity {
    font-weight: 700;
    color: var(--focus);
  }
  .selling_price,
  .final_price {
    color: var(--grey);
  }
  .final_price {
    font-weight: 700;
  }
  .bi-x-circle {
    color: var(--grey);
    font-weight: 700;
  }
  .divider {
    background-color: var(--focus);
    height: 0.2px;
    margin: 0;
  }
  .total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* gap: 1rem; */
  }
  .to_be_paid {
    font-size: 1.5rem;
    font-weight: 700;
    /* color: var(--focus); */
  }
  .confirmed_item_to_be_paid {
    font-size: 1.5rem;
    font-weight: 700;
    /* color: var(--focus); */
  }
  .note {
    display: flex;
    align-items: center;
    gap: 10px;
    /* max-width: 100%; */
    padding: 0.5rem 0.5rem;
    font-size: small;
    background-color: var(--background);
    border-radius: 15px;
    margin-block-end: 1rem;
    /* justify-content: space-around; */
  }
  .bi-tree {
    color: green;
  }
  .confirm_order {
    background-color: var(--focus);
    border: 0;
    font-size: 1rem;
    color: var(--white);
    font-weight: 700;
    padding-block: 1rem;
    border-radius: 30px;
  }
  .confirm_order:hover {
    background-color: var(--focus-light);
  }
  .main_contents {
    width: 100%;
    justify-content: stretch;
  }
  aside {
    display: flex;
    flex-direction: column;
    min-height: 80dvh;
    /* align-content: stretch; */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-grow: 1;
    margin: 0 auto;
    padding-inline: 2%;
    padding-block: 1rem;
    max-width: 100dvh;

    z-index: 1000;
    background-color: var(--white);
  }

  /* aside {
    display: flex;
    flex-direction: column;
    min-height: 80dvh;
    position: fixed;
    bottom: 0;
    margin: 0;
    padding-inline: 4%;
    padding-block: 1rem;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    flex-shrink: 0;
} */
  .bi-check-circle {
    color: green;
    font-size: 4rem;
  }
  .confirm_head {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    margin-block: 2rem;
  }
  .confirm_head h1 {
    font-size: 2rem;
    max-width: 50%;
    margin: 0;
    padding: 0;
  }
  .confirm_head p {
    font-size: 1rem;
    color: var(--grey);
    margin: 0;
    padding: 0;
  }
  .new_order {
    width: 100%;
    background-color: var(--focus);
    border: 0;
    color: var(--black);
    color: var(--black);
    padding-block: 1rem;
    border-radius: 30px;
    font-weight: 700;
    align-self: flex-end;
    bottom: auto;
    height: auto;
  }
  .new_order:hover {
    background-color: var(--focus-light);
  }
  /* aside {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
} */

  #confirmedOrderList {
    list-style: none;
    padding: 0;
  }

  #confirmedOrderList li {
    padding: 5px 0;
  }

  /* #clearCartButton,
  #confirmOrderButton,
  #startNewOrderButton {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  } */

  /* #clearCartButton:hover,
  #confirmOrderButton:hover,
  #startNewOrderButton:hover {
    background-color: #0056b3;
  } */
  #clearCartButton {
    max-width: max-content;
    padding: 00.3rem 0.3rem;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--white);
    border: 0;
    border-radius: 5px;

    margin-inline-start: auto;
    background-color: var(--focus);
  }
  #clearCartButton:hover {
    background-color: var(--focus-light);
  }
  .confirmed_order::-webkit-scrollbar {
    display: none;
  }
  .confirmed_order {
    max-height: 25dvh;
    overflow-y: scroll;
  }
  .confirmed_order li h2 {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    color: var(--black);
  }

  /* .confirmedOrderItem h2 {
    font-size: 0.8rem;
    margin: 0;
    padding: 0;
    color: var(--black);
  } */
  .confirmed_item_product_price {
    margin: 0;
    padding: 0;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .confirmed_item_calc {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
  }
  .confirmed_item_quantity {
    font-weight: 700;
    color: var(--focus);
  }
  .confirmed_item_selling_price,
  .confirmed_item_final_price {
    color: var(--grey);
  }
  .confirmed_item_final_price {
    font-weight: 700;
  }
}
