: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-800: hsl(14, 45%, 36%);
  --Rose-900: hsl(14, 65%, 9%);
}

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

body {
  font-family: "Arial", sans-serif;
  background-color: var(--Rose-100);
  padding: 20px;
}

.product {
  flex: 2;
  min-width: 300px;
}

.product h2 {
  font-weight: 700;
  font-size: 48px;
  margin: 0 0 30px 0;
  color: var(--Rose-900);
}

.items {
  position: relative;
}

.image {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 40px;
  height: 200px;
  object-fit: cover;
}

.addToCart {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0%);
  top: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background-color: white;
  border: 2px solid var(--Rose-300);
  border-radius: 25px;
  padding: 5px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 70%;
  font-weight: 600;
  color: var(--Rose-900);
  -webkit-transform: translate(-50%, 0%);
  -moz-transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%);
  -o-transform: translate(-50%, 0%);
}

.addToCart:hover {
  border-color: var(--Red);
  color: var(--Red);
}

.addedToCart {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0%);
  top: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--Red);
  border-radius: 25px;
  padding: 12px 24px;
  width: 160px;
  color: white;
}

.decrement,
.increment {
  border: 2px solid white;
  background: transparent;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.decrement:hover,
.increment:hover {
  background: white;
  color: var(--Red);
}

.quantity {
  font-weight: bold;
  font-size: 14px;
}

.info {
  margin-top: 15px;
}

.info .category {
  color: var(--Rose-500);
  font-size: 14px;
  margin-bottom: 5px;
}

.info .name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--Rose-900);
}

.info .price {
  font-weight: 700;
  font-size: 18px;
  color: var(--Red);
}

.cart {
  flex: 1;
  min-width: 300px;
}

.carContainer {
  background-color: white;
  border-radius: 15px;
  padding: 25px;
}

.yourCart {
  color: var(--Red);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 25px;
}

.empty {
  display: block;
  width: 120px;
  margin: 20px auto;
}

.emptyP {
  text-align: center;
  color: var(--Rose-500);
  font-size: 14px;
}

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

.infoOrders {
  flex: 1;
}

.nameProductChoise {
  font-size: 14px;
  font-weight: 600;
  color: var(--Rose-900);
  margin-bottom: 5px;
}

.quantityOrders {
  font-size: 14px;
}

.quantityNumber {
  color: var(--Red);
  font-weight: 600;
  margin-right: 10px;
}

.priceOrder {
  color: var(--Rose-400);
  margin-right: 10px;
}

.totalPrice {
  color: var(--Rose-800);
  font-weight: 600;
}

.removeOrder {
  border: 2px solid var(--Rose-300);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--Rose-400);
  font-size: 12px;
}

.removeOrder:hover {
  border-color: var(--Red);
  color: var(--Red);
}

.orderTotal {
  margin: 25px 0;
}

.orderTotal div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  margin: 15px 0;
}

.totalNumber {
  font-size: 24px;
  font-weight: 700;
  color: var(--Rose-900);
}

.carbon {
  background-color: var(--Rose-50);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.confirmOrder {
  background-color: var(--Red);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 15px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.confirmOrder:hover {
  background-color: hsl(14, 86%, 35%);
}

.overly {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modalBox {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: pop 0.3s ease;
}

.modalBox .icon {
  width: 60px;
  margin-bottom: 20px;
}

.modalBox h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--Rose-900);
}

.modalBox .sub {
  color: var(--Rose-500);
  margin-bottom: 25px;
  font-size: 16px;
}

.summary {
  background: var(--Rose-50);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  text-align: left;
  max-height: 250px;
  overflow-y: auto;
}

.summary div {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 14px;
  width: 100%;
}

#closeModal {
  background-color: var(--Red);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  -webkit-transition: background-color 0.3s ease;
  -moz-transition: background-color 0.3s ease;
  -ms-transition: background-color 0.3s ease;
  -o-transition: background-color 0.3s ease;
}

#closeModal:hover {
  background-color: hsl(14, 86%, 35%);
}

@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .container.row {
    flex-direction: column;
  }

  .product h2 {
    font-size: 32px;
  }

  .product-items {
    grid-template-columns: 1fr;
  }
}

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

.org {
  display: flex;
  align-items: center;
  gap: 10px;
}
