.cart {
  display: flex;
  gap: 40px;
  max-width: 1150px;
  margin: 3rem auto 0;
  padding: 1rem;
  box-sizing: border-box;
}

/* Left and Right Halves */
.cart-item-list,
.cart-info {
  flex: 1 1 50%;
  box-sizing: border-box;
}

.cart-item-list {
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 50%;
  min-width: 500px;
}

.cart-item {
  display: flex;
  gap: 15px;
  height: 120px;
  /* margin: 10px auto 0; */
  padding: 1rem;
  box-sizing: border-box;
  align-items: stretch;
  background: #f4f4f4;
  border-radius: 12px;
}

.item-image {
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: block;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.title-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.product-price {
  font-size: 1.2em; 
  color: #444;
  gap: 15px;
}

.total-product-price {
  font-size: 1.5em; 
  color: #444;
  font-weight: bold;
  margin-left: auto;
}

.remove-button:hover {
  background-color: #333;
}

.back-link {
  text-decoration: none;
  color: #666;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

.remove-form {
  height: 100%;
}

.remove-button {
  background-color: #111;
  color: white;
  border: none;
  padding: 0 0.7rem;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  height: 100%;
}


.quantity-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  height: 32px;
}

.quantity-form {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.qty-btn {
  background-color: #f0f0f0;
  border: none;
  padding: 0 0.75rem;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: bold;
  height: 100%;
}

.qty-btn:hover {
  background-color: #ddd;
}

.qty-display {
  display: inline-block;
  width: 2rem;
  text-align: center;
  font-weight: bold;
  padding: 0.5rem 0.25rem;
  background-color: white;
  height: 100%;
  align-content: center;
}

/* .cart-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
} */
.receipt {
  font-weight: bold;
  margin-top: 10px;
}

.cart-info p {
  margin: 10px 0 0 0;
}

.checkout-button {
  display: inline-block;
  background-color: #111;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-bottom: 15px;
  box-sizing: border-box;
  width: 100%;
}

.checkout-button:hover {
  background-color: #333;
}

.back-link {
  text-decoration: none;
  color: #666;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .cart {
    flex-direction: column;
    margin-top: 0;
    gap: 20px;
  }

  .cart-item-list,
  .cart-info {
    flex: 1 1 100%;
  }

  .cart-item-list {
    max-width: 100%;
    min-width: 0;
  }

  .remove-form {
      display: none;
  }
}