/* --- Base & reset --- */
body {
  background: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  margin: 0;
  padding: 0;
}

.container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* horizontal padding */
}

/* Title */
h2.text-center {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1rem;
}

/* Flex container for columns */
.row.gx-5 {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap; /* prevent wrap on desktop */
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

/* Left side - 70% width */
.col-lg-8 {
  flex: 0 0 70%;
  max-width: 70%;
  box-sizing: border-box;
}

/* Right side - 30% width */
.col-lg-4 {
  flex: 0 0 30%;
  max-width: 30%;
  box-sizing: border-box;
}

/* Responsive: stack on smaller screens */
@media (max-width: 991px) {
  .row.gx-5 {
    flex-wrap: wrap;
  }
  .col-lg-8, .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Form label styling */
form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

/* Inputs styling */
form input[type="text"],
form input[type="email"],
form input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus {
  border-color: #007bff;
  outline: none;
}

/* Section headers */
h4 {
  font-weight: 700;
  font-size: 1.25rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: #111;
}

/* Cart items container */
#checkoutCartItems {
  margin-bottom: 1.5rem;
}

/* Cart item style */
.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid #eee;
}

.checkout-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 12px;
  border: 1px solid #ddd;
  border-radius: 0;
}

/* Left part of item: image + title + qty */
.checkout-item > div:first-child {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.checkout-item strong {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

.checkout-item .text-muted {
  font-size: 0.85rem;
  color: #666;
  margin-left: 6px;
}

/* Right part: price */
.checkout-item > div:last-child {
  min-width: 80px;
  text-align: right;
  font-weight: 600;
  color: #222;
}

/* Summary totals */
.summary-totals {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  margin-top: 1rem;
}

.summary-totals p {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1rem;
  margin: 0.25rem 0;
  color: #111;
}


/* Payment method */
.form-check-label {
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.form-check-input {
  margin-right: 0.5rem;
  cursor: pointer;
}

/* Submit button */
button[type="submit"] {
  margin-top: 1.5rem;
  width: 100%;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .checkout-item img {
    width: 40px;
    height: 40px;
  }
}
