/**
 * Cart Improvements CSS
 * Progress indicator, urgency timer, savings calculator, add-ons
 */

/* ============================================
   Progress Indicator
   ============================================ */
.checkout-progress {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
}

.progress-step.completed .step-circle {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    animation: pulse-glow 2s infinite;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.progress-step.completed .step-label,
.progress-step.active .step-label {
    color: #1f2937;
}

.progress-line {
    width: 80px;
    height: 3px;
    background: #e5e7eb;
    margin: 0 10px;
    margin-bottom: 30px;
}

.progress-message {
    text-align: center;
    font-size: 16px;
    color: #1f2937;
    margin: 0;
}

.progress-message strong {
    color: #6366f1;
}

/* ============================================
   Cart Urgency Timer
   ============================================ */
.cart-urgency-timer {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.urgency-icon {
    font-size: 36px;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.urgency-content {
    flex: 1;
}

.urgency-content strong {
    display: block;
    color: #92400e;
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-countdown {
    margin: 8px 0;
}

.countdown-time {
    font-size: 28px;
    font-weight: 700;
    color: #b45309;
    letter-spacing: 1px;
}

.urgency-subtext {
    font-size: 12px;
    color: #92400e;
    margin: 5px 0 0 0;
}

/* ============================================
   Savings Calculator
   ============================================ */
.savings-calculator {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.savings-icon {
    font-size: 28px;
}

.savings-content {
    flex: 1;
}

.savings-content strong {
    display: block;
    color: #065f46;
    font-size: 16px;
    margin-bottom: 3px;
}

.savings-content p {
    font-size: 13px;
    color: #047857;
    margin: 0;
}

/* ============================================
   Cart Trust Badges
   ============================================ */
.cart-trust-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.trust-badge-small {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    flex: 1;
}

.trust-badge-small i {
    color: #10b981;
    font-size: 16px;
}

/* ============================================
   Recommended Add-Ons
   ============================================ */
.recommended-addons {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recommended-addons h3 {
    color: #1f2937;
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommended-addons h3 i {
    color: #f59e0b;
    animation: flicker 1.5s ease-in-out infinite;
}

.addons-subtitle {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 30px;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.addon-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
}

.addon-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.addon-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
}

.addon-details {
    flex: 1;
}

.addon-details h4 {
    color: #1f2937;
    font-size: 16px;
    margin-bottom: 8px;
}

.addon-platform {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.addon-platform i {
    color: #6366f1;
}

.addon-price {
    font-size: 18px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 10px;
}

.addon-card .btn {
    width: 100%;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .progress-steps {
        flex-direction: row;
        gap: 0;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-label {
        font-size: 11px;
        white-space: nowrap;
    }

    .progress-line {
        width: 30px;
        margin: 0 5px;
        margin-bottom: 25px;
    }

    .checkout-progress {
        padding: 15px 12px;
        margin-top: 15px;
    }

    .progress-message {
        font-size: 13px;
        line-height: 1.4;
    }

    .progress-message strong {
        display: block;
        margin-bottom: 5px;
    }

    .cart-urgency-timer {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .urgency-icon {
        font-size: 32px;
    }

    .countdown-time {
        font-size: 22px;
    }

    .urgency-content strong {
        font-size: 13px;
    }

    .urgency-subtext {
        font-size: 11px;
    }

    /* Recommended Add-ons Mobile */
    .recommended-addons {
        margin-top: 30px;
        padding: 20px 15px;
    }

    .recommended-addons h3 {
        font-size: 18px;
    }

    .addons-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .addons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .addon-card {
        padding: 15px;
    }

    .addon-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .addon-details h4 {
        font-size: 14px;
    }

    .addon-platform {
        font-size: 12px;
    }

    .addon-price {
        font-size: 16px;
    }

    /* Cart trust badges */
    .cart-trust-badges {
        flex-direction: column;
        gap: 8px;
    }

    .trust-badge-small {
        font-size: 11px;
        justify-content: center;
    }

    .trust-badge-small i {
        font-size: 14px;
    }

    /* Savings calculator mobile */
    .savings-calculator {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }

    .savings-icon {
        font-size: 24px;
    }

    .savings-content strong {
        font-size: 14px;
    }

    .savings-content p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .progress-steps {
        scale: 0.9;
    }

    .checkout-progress {
        padding: 12px 10px;
    }

    .progress-message {
        font-size: 12px;
    }

    .cart-urgency-timer {
        padding: 12px;
    }

    .countdown-time {
        font-size: 20px;
    }

    .recommended-addons {
        padding: 15px 10px;
    }

    .recommended-addons h3 {
        font-size: 16px;
    }

    .addons-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .progress-steps {
        scale: 0.8;
    }
}
