/* ── Wizard transitions ────────────────────────────────── */
.wizard-fade-out {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.wizard-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Shake animation for errors ──────────────────────── */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.animate-shake {
    animation: shake 0.4s ease-in-out;
}

/* ── Progress bar ─────────────────────────────────────── */
#wizard-progress .progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
    min-width: 0;
}

#wizard-progress .progress-dot {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#wizard-progress .progress-label {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    #wizard-progress .progress-label {
        max-width: 100px;
        white-space: normal;
    }
}

/* ── Article cards ────────────────────────────────────── */
.article-card {
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.article-card:not(.disabled):hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-card:not(.disabled):active {
    transform: scale(0.99);
}

.article-card.disabled {
    background-color: #fafafa;
}

/* ── Radio cards ──────────────────────────────────────── */
.radio-card {
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.radio-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.radio-card:active {
    transform: scale(0.995);
}

/* ── Color swatches ───────────────────────────────────── */
.color-swatch {
    transition: all 0.2s ease;
    cursor: pointer;
}

.color-swatch:hover {
    transform: scale(1.15);
    border-color: #9ca3af;
}

/* ── Size buttons ─────────────────────────────────────── */
.size-btn {
    transition: all 0.15s ease;
    min-width: 48px;
    min-height: 48px;
}

.size-btn:not([disabled]):hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.size-btn:not([disabled]):active {
    transform: scale(0.95);
}

/* ── Form elements ────────────────────────────────────── */
input[type="text"],
input[type="email"],
select {
    min-height: 48px;
}

/* ── Item action cards ────────────────────────────────── */
.item-action-card {
    transition: all 0.2s ease;
}

/* ── Loading state ────────────────────────────────────── */
button[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}

/* ── Smooth scrollbar ─────────────────────────────────── */
#wizard-container {
    scroll-behavior: smooth;
}

/* ── Checkbox custom style ────────────────────────────── */
input[type="checkbox"]:checked {
    background-color: #111827;
    border-color: #111827;
}

/* ── Step 8 confirmation pulse ────────────────────────── */
@keyframes checkPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.bg-green-100 {
    animation: checkPulse 0.5s ease forwards;
}
