/* Checkout page specific styles */
.checkout-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  margin: 2rem 0;
}

/* Steps */
.checkout-steps {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
}

.step {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

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

/* Step content */
.step-content {
  display: none;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

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

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.form-checkbox input {
  width: auto;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Order Summary */
.order-summary {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.order-summary h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.cart-items {
  margin-bottom: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.cart-item-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: bold;
  color: var(--primary);
}

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

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

/* Review items */
#review-items {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg);
  border-radius: 4px;
}

.review-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}
