.checkout-page {
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 3rem;
  min-height: 100vh;
}

.checkout-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

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

@media (min-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
  }
}

.checkout-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.checkout-section-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 480px) {
  .form-row.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select {
  width: 100%;
  height: 44px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2rem;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition);
}

.payment-method:hover {
  border-color: var(--border-light);
}

.payment-method.selected {
  border-color: var(--accent);
  background: rgba(0, 102, 255, 0.04);
}

.payment-radio {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.payment-method.selected .payment-radio {
  border-color: var(--accent);
}

.payment-method.selected .payment-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

.payment-name {
  font-size: 14px;
  font-weight: 500;
}

.payment-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.coupon-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.coupon-input {
  flex: 1;
  height: 44px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
}

.coupon-input::placeholder {
  color: var(--text-muted);
  text-transform: none;
}

.coupon-btn {
  height: 44px;
  padding: 0 1rem;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.coupon-btn:hover {
  background: rgba(0, 102, 255, 0.15);
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.summary-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.summary-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.summary-item-img {
  width: 48px;
  height: 48px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.summary-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-item-name {
  font-size: 14px;
  font-weight: 500;
}

.summary-item-qty {
  font-size: 12px;
  color: var(--text-muted);
}

.summary-item-price {
  font-size: 14px;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 14px;
}

.summary-row span:first-child {
  color: var(--text-secondary);
}

.summary-row.total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1.125rem;
  font-weight: 700;
}

.summary-row.total span:last-child {
  color: var(--accent);
}

.summary-row.discount span:last-child {
  color: var(--btn-buy);
}

.btn-checkout {
  width: 100%;
  height: 52px;
  background: var(--btn-buy);
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background var(--transition);
}

.btn-checkout:hover {
  background: var(--btn-buy-hover);
}

.btn-checkout svg {
  width: 20px;
  height: 20px;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 13px;
  color: var(--text-secondary);
}

.trust-badges svg {
  width: 16px;
  height: 16px;
  color: var(--btn-buy);
}

.trust-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.trust-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.trust-icon span {
  font-size: 11px;
  color: var(--text-muted);
}

.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  opacity: 0.4;
  transition: opacity var(--transition);
}

.step.active {
  opacity: 1;
}

.step.completed {
  opacity: 0.7;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.step.completed .step-num {
  background: var(--btn-buy);
  border-color: var(--btn-buy);
  color: white;
}

.step span {
  font-size: 13px;
  font-weight: 500;
  display: none;
}

@media (min-width: 480px) {
  .step span {
    display: inline;
  }
}

.step-line {
  width: 32px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 0.5rem;
}

@media (min-width: 480px) {
  .step-line {
    width: 48px;
    margin: 0 0.75rem;
  }
}

.checkout-step {
  display: none;
}

.checkout-step.active {
  display: block;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.step-back {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.step-back:hover {
  color: var(--accent);
}

.step-back-btn {
  height: 44px;
  padding: 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition);
}

.step-back-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.step-next {
  height: 48px;
  padding: 0 2rem;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.step-next:hover {
  background: var(--accent-hover);
}

.confirm-info {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.confirm-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.confirm-info h3:first-child {
  margin-top: 0;
}

.confirm-info p {
  margin-bottom: 0.25rem;
}
