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

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in-out forwards;
}

.faq-body > div {
    /* Ensure content is treated correctly for grid animation */
}

/* ── Botón agotado en detalle de producto ── */
.c-product-actions__add--sold-out {
    background: #C8C7C3 !important;
    color: #6B6A67 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    flex: 1;
}

/* ── Producto agotado (tarjetas) ── */
.is-out-of-stock .c-product-card__image {
    opacity: 0.8;
}

.is-out-of-stock .c-product-card__media-wrap {
    cursor: default;
    position: relative;
}

.c-product-card__sold-out {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    pointer-events: none;
}

.is-out-of-stock .c-product-card__name,
.is-out-of-stock .c-product-card__name a {
    color: #908F8D;
    cursor: default;
    pointer-events: none;
    text-decoration: none;
}

/* ── Flash / toast notification ── */
.c-flash {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: #1a1a1a;
    color: #fff;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}

.c-flash.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.c-flash--error {
    background: #c0392b;
}

.c-flash--success {
    background: #27ae60;
}

/* ── Quick-add siempre visible en móvil (sin hover) ── */
@media (max-width: 768px) {
    .c-product-card__overlay {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .c-product-card__quick-add {
        transform: translateY(0) !important;
    }
}
