/* CHECKOUT PAGE STYLES */
.checkout-container {
  max-width: 1000px;
  margin: 100px auto 60px;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
}

/* SECTION TITLES */
.co-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.co-section-title span {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* FORM BOX */
.co-box {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-glass), var(--inner-glow);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 24px;
}
.co-form-group {
  margin-bottom: 16px;
}
.co-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.co-form-group input, .co-form-group textarea, .co-form-group select {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}
.co-form-group select option { background: var(--bg-color); color: var(--text); }
.co-form-group input:focus, .co-form-group textarea:focus, .co-form-group select:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}
.co-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* PAYMENT METHODS */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pay-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-glass);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.pay-method:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}
.pay-method input[type="radio"] {
  display: none;
}
.pay-method.active {
  border-color: var(--primary);
  background: rgba(255,255,255,0.1);
}
.pay-method.active::after {
  content: '✅';
  position: absolute;
  right: 16px;
  font-size: 1.1rem;
}
.pay-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 1.5rem;
}
.pay-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pay-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.pay-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.pay-details {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-glass);
}
.pay-method.active .pay-details {
  display: block;
}
.pay-details-inner {
  background: var(--bg-glass);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
  padding: 16px;
  border-radius: 8px;
}

/* ORDER SUMMARY */
.order-summary {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-glass), var(--inner-glow);
  border-radius: var(--radius);
  padding: 30px;
  position: sticky;
  top: 100px;
}
.os-product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.os-img {
  width: 64px;
  height: 64px;
  background: var(--bg-glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
  flex-shrink: 0;
}
.os-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.os-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.4;
}
.os-price {
  color: var(--primary);
  font-weight: 800;
}
.os-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
  width: max-content;
  box-shadow: var(--inner-glow);
}
.os-qty button {
  width: 32px;
  height: 32px;
  background: var(--bg-glass);
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.os-qty button:hover { background: var(--primary); color: #000; }
.os-qty input {
  width: 40px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: center;
  font-weight: 700;
  padding: 0;
  outline: none;
}
.os-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.os-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-light);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.os-total span:last-child {
  color: var(--text);
}
.btn-confirm {
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  background: var(--text);
  color: var(--bg-color);
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  transition: all 0.3s ease;
}
.btn-confirm:hover {
  transform: scale(1.02);
}
.input-error {
  border-color: var(--red) !important;
  box-shadow: 0 0 10px rgba(239,68,68,0.3) !important;
}

@media(max-width: 900px) {
  .checkout-container {
    grid-template-columns: 1fr;
    margin-top: 80px;
  }
  .order-summary {
    position: static;
    order: -1;
  }
  .co-row {
    grid-template-columns: 1fr;
  }
}
