@font-face {
  font-family: 'myFont';
  src: url(./assets/fonts/RedHatText-VariableFont_wght.ttf);
}
body{
  font-family: 'myFont', sans-serif;
  background-color: hsl(20, 50%, 98%);
  margin: 0;
}
.all{
  display: flex;
  justify-content: center;
  justify-self: center;
  width: 90%;
  margin: 30px 0;
  gap: 20px;
}
h2, em, button{
  all: unset;
}
button{
  cursor: pointer;
}
h1{
  margin-top: 0;
}
main{
  flex: 2;
}
.products{
  display: flex;
  flex-wrap: wrap;
  row-gap: 30px;
  column-gap: 10px;
  /* justify-content: center; */
}
.product{
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.product img{
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
}
.product section{
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 4px;
  font-size: 0.8rem;
}
.product section:nth-child(1) button{
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  position: absolute;
  bottom: -15px;
  align-self: center;
  border: 1px solid hsl(7, 20%, 60%);
  background-color: white;
  border-radius: 30px;

}
.product section:nth-child(2) h2{
  font-weight: bold;
}
.product section:nth-child(2) em{
  color: hsl(7, 20%, 60%);
}
.product section:nth-child(2) span{
  font-weight: 650;
  color: hsl(14, 86%, 42%);
}
aside{
  flex: 1;
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  min-height: 300px;
  height: fit-content;
  border: 2px solid hsl(13, 31%, 94%);
}
aside h3{
  font-size: 1.5rem;
  color: hsl(14, 86%, 42%);
}
aside h4{
  margin: 0;
}
.order-details{
  display: flex;
  flex-direction: column;
}
.order-details .order{
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 30px 0;
}
.order-details .order article{
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.order-details .order::after{
  position: absolute;
  content: '';
  width: 100%;
  height: 2px;
  background-color:hsl(13, 31%, 94%);
  bottom: -30px;
}
.order-details .order article div{
  display: flex;
  gap: 10px;
}
.order-details .order span:nth-child(1){
  color: hsl(14, 86%, 42%);
  font-weight: bold;
}
.order-details .order span:nth-child(2){
  /* opacity: 0.6; */
  color: hsl(12, 20%, 44%);
}
.order-details .order span:nth-child(3) {
  color: hsl(12, 20%, 44%);
  font-weight: 600;
}
.delete-button img{
  border: 2px solid hsl(14, 25%, 72%);
  padding: 3px;
  border-radius: 50%;
  transition: 0.5s;
}
.delete-button:hover img{
  transform: rotate(90deg) scale(1.02);
  border-color: hsl(7, 20%, 60%);
}
aside :nth-child(3){
  display: flex;
  flex-direction: column;
  /* gap: 30px; */
}
.order-total, .carbon-neutral{
  margin-bottom: 35px;
}
.order-total{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 35px;
}
.order-total :nth-child(2) {
  font-size: 1.6rem;
  font-weight: bold;
}
.carbon-neutral{
  background-color: hsl(20, 50%, 98%);
  padding: 15px 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: center;
  border-radius: 15px;
}
.confirm-button{
  width: 100%;
  background-color: hsl(14, 86%, 42%);
  color: white;
  border-radius: 30px;
  padding: 15px 0;
  text-align: center;
}
.aside-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.empty-cart{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}
@media (max-width: 1100px){
  .all{
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  h1{
    text-align: center;
  }
  .products{
    justify-content: center;
  }
  .product img{
    width: 300px;
  } 
}