
/* Cart Container */
.cart-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Title */
.cart-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #444;
}

/* Cart Items Section */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

/* Individual Cart Item */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fafafa;
}

/* Product Image */
.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

/* Product Info */
.product-info {
  flex-grow: 1;
  padding-left: 15px;
}

.product-info h4 {
  margin-bottom: 5px;
  font-size: 18px;
}

.product-info p {
  margin-bottom: 10px;
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
}

.btn-quantity {
  background-color: #333;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.btn-quantity:hover {
  background-color: #555;
}

.quantity-input {
  width: 40px;
  text-align: center;
  border: 1px solid #ddd;
  margin: 0 10px;
  padding: 5px;
  border-radius: 4px;
}

/* Product Total */
.product-total {
  font-size: 18px;
  font-weight: bold;
}

/* Checkout Section */
.checkout-section {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.checkout-section h3 {
  margin-bottom: 15px;
}

.checkout-details p {
  margin: 10px 0;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  background-color: var(--bs-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.checkout-btn:hover {
  background-color: #218838;
}

/* Disabled Checkout Button */
.checkout-btn:disabled, .place-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* checkout */
.checkout-modal {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(128,128,128,0.47);
  z-index: 888888;
}

.checkout-container {
  width: 600px;
  font-size: 13px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.cart-heading {
  text-align: center;
  margin-bottom: 20px;
}

.progress-bar {
  display: flex;
  flex-direction: row;
  gap: 10px;
  text-align: center;
  margin-bottom: 30px;
  background: none;
}

.progress-bar span {
  font-weight: bold;
  color: #888;
  cursor: pointer;
}

.progress-bar span.active {
  color: var(--bs-primary);
}

.address-section, .delivery-section, .payment-methods, .card-details, .voucher-section, .summary-section, .order-details {
  margin-bottom: 20px;
}

.address-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.delivery-type {
  display: flex;
  gap: 10px;
  margin: 10px;
}

.payment-methods {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-details {
  display: flex;
  flex-direction: column;
}

.order-item, .order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: -5px;
}


.address-input, 
.address-section input[type="text"], 
.address-section input[type="email"], 
.address-section input[type="number"], 
.card-details input,
#voucher {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 5px;
}

.agree-terms {
  display: flex;
  gap: 10px;
}

.order-details

.summary-section h4 {
  margin-top: 10px;
}

.next-btn {
  width: 100%;
  padding: 15px;
  background-color: var(--bs-primary);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.next-btn:hover {
  background-color: #218838;
}

.next-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.close-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-btn {
  width: 50%;
  padding: 15px;
  background-color: #a72829;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px;
}

.bold {
  font-weight: bold;
}

.hidden {
  display: none;
}

.missing-notice {
  color: red;
  font-weight: bold;
  text-align: center;
  margin: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-total {
    margin-top: 10px;
    align-self: flex-end;
  }
  
  .checkout-container {
    width: 90%;
    height: 90%;
    overflow: scroll;
  }
  
}
