:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --third-color: #6c757d;
  --background-color: #f8f9fa;
  --text-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.1);
}
body {
  margin: 0;
}
.my-container {
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-color);
}
h1 {
  text-align: center;
  color: var(--primary-color);
  font-weight: 400;
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: all 0.3s ease;
}
.cart-item:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 6px 12px var(--shadow-color);
}
.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 10px;
}
.item-details {
  flex-grow: 1;
  margin-bottom: 10px;
  margin-right: 10px;
}
.item-name {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.1em;
  margin-bottom: 5px;
}
.item-price {
  color: var(--third-color);
  font-weight: bold;
}
.item-quantity {
  display: flex;
  align-items: center;
  margin-right: 15px;
}
.item-quantity input {
  width: 45px;
  text-align: center;
  margin: 0 10px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.quantity-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: 14px;
  width: 100%;
}
.quantity-btn:hover {
  background-color: #2980b9;
}
.trash-btn {
  background-color: #e74c3c;
}
.trash-btn:hover {
  background-color: #c0392b;
}
.checkout-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.coupon-input {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  margin-bottom: 20px;
}
.coupon-input input {
  flex-grow: 1;
  padding: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 200px;
}
.coupon-input button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.coupon-input button:hover {
  background-color: #27ae60;
}
.total-section {
  text-align: right;
  font-size: 1.1em;
}
.total-section p {
  margin: 10px 0;
}
.total-section .net-total {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  /* .container {
          padding: 15px;
        } */
  .cart-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .item-details {
    flex-grow: 1;
    margin-bottom: 0;
  }
  .item-name {
    font-size: 0.9em;
  }
  .item-price {
    font-size: 0.9em;
  }
  .item-quantity {
    flex-direction: column;
    align-items: center;
    /* margin-left: 10px; */
  }
  .item-quantity input {
    margin: 5px 0;
    width: 40px;
  }
  .quantity-btn {
    padding: 5px 8px;
    font-size: 12px;
  }
  .coupon-input {
    flex-direction: column;
  }
  .coupon-input input {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .total-section {
    text-align: left;
  }
}
