/* Progress Bar Styles - Figma Design Match */

.cart-progress-container {
    margin-top: 10px;
    margin-bottom: 20px;

}
.checkout-progress-container {
    padding: 0px;
    margin-bottom: 4px;
}

.checkout-progress-header {
    text-align: center;
    margin-bottom: 20px;
}
.cart-progress-bar {
    margin-left: -14px;
}
.checkout-progress-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    margin-bottom: 4px;
}

.checkout-progress-subtitle {
    font-size: 12px;
    color: #95a5a6;
    margin: 0;
}

.checkout-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 0 auto;
    max-width: 400px;
}

/* Background line kaldırıldı - ayrı line'lar kullanıyoruz */

.checkout-progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.checkout-progress-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #53565a;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkout-progress-step-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.checkout-progress-step-text {
    font-size: 12px;
    font-weight: 500;
    color: #95a5a6;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Active/Completed Step */
.checkout-progress-step.active .checkout-progress-step-icon,
.checkout-progress-step.completed .checkout-progress-step-icon {
    border-color: #88beaf;
    background: #a3d7c9;
}

.checkout-progress-step.active .checkout-progress-step-text,
.checkout-progress-step.completed .checkout-progress-step-text {
    color: #53565a;
    font-weight: 600;
}

/* Progress Lines - Icon'ların tam arasında */
.checkout-progress-line-1 {
    position: absolute;
    top: 33%;
    left: 23.5%;
    width: 80px; /* Sabit genişlik */
    height: 2px;
    background: #e9ecef; /* Varsayılan gri */
    transform: translateY(-50%);
    z-index: 1;
    transition: all 0.4s ease;
}

.checkout-progress-line-2 {
    position: absolute;
    top: 33%;
    left: 57%;
    width: 80px; /* Sabit genişlik */
    height: 2px;
    background: #e9ecef; /* Varsayılan gri */
    transform: translateY(-50%);
    z-index: 1;
    transition: all 0.4s ease;
}

/* Page-specific progress line states */
.cart-progress-bar .checkout-progress-line-1 {
    background: #a3d7c9 !important;
}

.order-progress-bar .checkout-progress-line-1,
.order-progress-bar .checkout-progress-line-2 {
    background: #a3d7c9 !important; /* Ödeme: Line 1 ve Line 2 yeşil */
}

.thankyou-progress-bar .checkout-progress-line-1,
.thankyou-progress-bar .checkout-progress-line-2 {
    background: #27ae60 !important; /* Teşekkürler: Hepsi yeşil */
}

/* Error State */
.checkout-progress-step.error .checkout-progress-step-icon {
    border-color: #e74c3c;
    background: #e74c3c;
}

.checkout-progress-step.error .checkout-progress-step-text {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-progress-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    .checkout-progress-header{
        display:none;
    }
    .cart-progress-bar {
        margin-left: 0px;
    }
    .checkout-progress-steps {
        max-width: 100%;
    }
    .cart-progress-container {
        margin-top: 0px;
        margin-bottom: 0px;
    }
    .checkout-progress-step-icon {
        width: 32px;
        height: 32px;
    }
    .checkout-progress-container {
        background: none;
        border-radius: 8px;
        padding: 0px !important;
        margin-bottom: 0px !important;
        border: none;
        margin-top: 10px;
    }
    .checkout-progress-step-icon img {
        width: 20px;
        height: 20px;
    }
    
    .checkout-progress-step-text {
        font-size: 11px;
    }
    
    .checkout-progress-title {
        font-size: 16px;
    }
    
    .checkout-progress-subtitle {
        font-size: 11px;
    }
}
