/* Checkout Page Styles */
.checkout-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.checkout-header {
  text-align: center;
  margin-bottom: 30px;
}

.checkout-header h1 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.checkout-header p {
  color: #7f8c8d;
  font-size: 16px;
}

/* Progress Indicator */
.checkout-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  gap: 20px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.progress-step.active {
  opacity: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e74c3c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 8px;
}

.progress-step.active .step-number {
  background: #27ae60;
}

/* Checkout Container */
.checkout-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.checkout-section {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.checkout-section h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Form Styles */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  padding: 12px;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
}

.form-help {
  font-size: 12px;
  color: #7f8c8d;
  margin-top: 5px;
}

/* Shipping Options */
.shipping-options {
  margin-top: 20px;
}

.shipping-options h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shipping-option {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shipping-option:hover {
  border-color: #3498db;
}

.shipping-option.active {
  border-color: #27ae60;
  background: #f8fff9;
}

.option-radio {
  margin-right: 15px;
}

.option-info {
  flex: 1;
}

.option-info h5 {
  margin: 0 0 5px 0;
  color: #2c3e50;
}

.option-info p {
  margin: 0;
  color: #7f8c8d;
  font-size: 14px;
}

.option-price {
  font-weight: bold;
  color: #27ae60;
  font-size: 18px;
}

/* Order Summary */
.order-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.order-items {
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #ecf0f1;
}

.order-item:last-child {
  border-bottom: none;
}

.item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 15px;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  flex: 1;
}

.item-details h4 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 14px;
}

.item-category {
  color: #7f8c8d;
  font-size: 12px;
  margin: 0 0 5px 0;
}

.item-price {
  color: #e74c3c;
  font-weight: 600;
  margin: 0;
}

.item-total {
  font-weight: bold;
  color: #2c3e50;
  font-size: 16px;
}

/* Order Totals */
.order-totals {
  border-top: 2px solid #ecf0f1;
  padding-top: 20px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.total-row.total-final {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  border-top: 1px solid #ecf0f1;
  padding-top: 15px;
  margin-top: 15px;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method:hover {
  border-color: #3498db;
}

.payment-method.active {
  border-color: #27ae60;
  background: #f8fff9;
}

.method-icon {
  font-size: 24px;
  color: #0070ba;
  margin-right: 15px;
}

.method-info {
  flex: 1;
}

.method-info h4 {
  margin: 0 0 5px 0;
  color: #2c3e50;
}

.method-info p {
  margin: 0 0 10px 0;
  color: #7f8c8d;
  font-size: 14px;
}

.method-benefits {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.method-benefits span {
  font-size: 12px;
  color: #27ae60;
  display: flex;
  align-items: center;
  gap: 5px;
}

.method-radio {
  margin-left: 15px;
}

/* Checkout Actions */
.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-paypal {
  background: #0070ba;
  color: white;
}

.btn-paypal:hover {
  background: #005ea6;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ecf0f1;
  color: #2c3e50;
}

.btn-secondary:hover {
  background: #d5dbdb;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Security Info */
.security-info {
  margin-top: 30px;
  text-align: center;
}

.security-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #27ae60;
  font-size: 14px;
  font-weight: 600;
}

.security-info p {
  color: #7f8c8d;
  font-size: 14px;
  margin: 0;
}

/* Loading States */
.checkout-loading {
  text-align: center;
  padding: 50px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ecf0f1;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 50px;
}

.empty-cart-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.empty-cart h2 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.empty-cart p {
  color: #7f8c8d;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .checkout-progress {
    flex-direction: column;
    gap: 10px;
  }
  
  .security-badges {
    flex-direction: column;
    gap: 10px;
  }
}

/* Payment Success/Cancel Pages */
.payment-success,
.payment-cancel {
  text-align: center;
  padding: 50px;
  max-width: 600px;
  margin: 0 auto;
}

.success-icon,
.cancel-icon {
  font-size: 80px;
  margin-bottom: 30px;
}

.success-icon {
  color: #27ae60;
}

.cancel-icon {
  color: #e74c3c;
}

.payment-success h1,
.payment-cancel h1 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.payment-success p,
.payment-cancel p {
  color: #7f8c8d;
  margin-bottom: 10px;
}

.success-actions,
.cancel-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

@media (max-width: 480px) {
  .success-actions,
  .cancel-actions {
    flex-direction: column;
  }
}

