/* ========== GLOBAL ========== */
.checkout-wrapper {
  max-width: 1200px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== LEFT PANEL ========== */
.checkout-left {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Checkout Title */
.checkout-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111;
  text-align: center;
  position: relative;
  margin-bottom: 2rem;
}

.checkout-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #6610f2);
  margin: 10px auto 0;
  border-radius: 3px;
}

/* Section titles */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
  margin-top: 2rem;
}

/* Labels */
.form-label {
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  text-align: left;
}

/* Inputs */
.form-control {
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #dcdcdc;
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

/* ========== PAYMENT / SHIPPING BOXES ========== */
.payment-options,
.shipping-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.payment-box {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fafafa;
}

.payment-box input {
  display: none;
}

.payment-box span {
  font-weight: 600;
  color: #111;
}

.payment-box:hover {
  border-color: #0d6efd;
  background: #f4f8ff;
}

.payment-box input:checked + span {
  color: #0d6efd;
}

/* ========== PAYMENT INFO BLOCKS ========== */
.payment-info {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  animation: fadeIn 0.3s ease;
}

.payment-info p {
  margin-bottom: 0.4rem;
  color: #111;
  font-size: 0.9rem;
}

/* ========== BUTTON ========== */
.place-order {
  font-weight: 600;
  padding: 0.8rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  border: none;
}

.place-order:hover {
  opacity: 0.92;
}

/* ========== RIGHT SUMMARY ========== */
.cart-summary {
  padding: 2rem;
  border-radius: 14px;
  position: sticky;
  top: 100px;
}


.checkout-summary h4 {
  font-weight: 700;
  color: #111;
  margin-bottom: 1.5rem;
}

/* Items */
.summary-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.summary-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.summary-item p {
  font-weight: 600;
  color: white;
}

.summary-item small {
  color: white;
}

/* Lines */
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: white;
}

/* Total */
.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 1.05rem;
}

.summary-total strong {
  font-size: 1.2rem;
  color: white;
}

/* ========== ANIMATION ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
