/* progress-bar.css - Add to your existing CSS files */

/* Progress Bar Component Styling - Uses global CSS variables */
.order-progress {
    /* Progress bar specific variables that don't override global theme */
    --success-color: #10B981;
    --inactive-color: #9CA3AF;
    --text-secondary: #4B5563;
    --border-light: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --radius-md: 0.5rem;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress Tracker */
.order-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem auto;
    padding: 1.5rem 1rem;
    background-color: transparent;
    border-radius: var(--radius-md);
    max-width: 700px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 100px;
}

.progress-step i {
    width: 40px;
    height: 40px;
    background: var(--inactive-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 0.75rem;
    transition: var(--transition);
    font-size: 1rem;
}

.progress-step span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.progress-step.completed i {
    background: var(--success-color);
    color: var(--white);
}

.progress-step.active i {
    background: var(--success-color);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--inactive-color);
    margin: 0 0.25rem;
    position: relative;
    top: -20px;
    z-index: 1;
}

.progress-line.completed {
    background: var(--success-color);
}

.progress-line.active {
    background: linear-gradient(to right, var(--success-color) 50%, var(--inactive-color) 50%);
}

/* Responsive adjustments for progress bar */
@media (max-width: 768px) {
    .progress-step i {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .progress-step span {
        font-size: 0.7rem;
    }
    
    .progress-line {
        margin: 0 0.125rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .order-progress {
        background-color: transparent;
    }
    
    .progress-step span {
        color: #E5E7EB;
    }
    
    .progress-step i {
        background: var(--inactive-color);
    }
    
    .progress-line {
        background: var(--inactive-color);
    }
}

/* Progress Bar Container */
.checkout-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
  position: relative;
}

/* Progress Bar Line */
.checkout-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-color);
  transform: translateY(-50%);
  z-index: 1;
}

/* Active Progress Line */
.checkout-progress::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  background: var(--primary-color);
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.5s ease;
}

/* Progress Step Item */
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  color: var(--grey);
  text-align: center;
  width: 24%;
}

/* Step Circle */
.step-circle {
  width: 35px;
  height: 35px;
  background-color: var(--white);
  border: 3px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

/* Step Text */
.step-text {
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Active Step */
.progress-step.active .step-circle {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.progress-step.active .step-text {
  color: var(--primary-color);
  font-weight: 600;
}

/* Completed Step */
.progress-step.completed .step-circle {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.progress-step.completed .step-circle::after {
  content: '✓';
  font-weight: bold;
}

.progress-step.completed .step-text {
  color: var(--secondary-color);
}

/* Set progress bar width based on active step */
.progress-cart::after {
  width: 0%;
}

.progress-checkout::after {
  width: 33.33%;
}

.progress-payment::after {
  width: 66.66%;
}

.progress-confirmation::after {
  width: 100%;
}

/* Update layout styles for consistency */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-title {
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center;
}

.page-subtitle {
  color: var(--grey);
  margin-bottom: 30px;
  text-align: center;
  font-size: 1rem;
}

.page-divider {
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  margin: 0 auto 40px;
  border: none;
}

/* Content Wrapper - for all pages */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

/* Main Content Area */
.main-content {
  flex: 1;
  min-width: 300px;
}

/* Standardized Card Styling */
.card-container {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 25px;
  margin-bottom: 25px;
}

.card-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin: 0;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .content-wrapper {
      flex-direction: column;
  }
  
  .checkout-progress {
      max-width: 100%;
      padding: 0 10px;
  }
  
  .step-text {
      font-size: 0.75rem;
  }
  
  .step-circle {
      width: 30px;
      height: 30px;
  }
}

@media (max-width: 576px) {
  .checkout-progress {
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
  }
  
  .checkout-progress::before,
  .checkout-progress::after {
      display: none;
  }
  
  .progress-step {
      width: 40%;
  }
}

/* Luxury Progress Bar Container Styling - High specificity for FOUC compatibility */
body .luxury-progress-container {
    background: white !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Special styling for success page - High specificity for FOUC compatibility */
body .luxury-progress-section .luxury-progress-container {
    max-width: 800px !important;
    margin: 3rem auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

body .luxury-progress-section {
    padding: 0 1rem !important;
}