/* Custom CSS para elementos que Tailwind não cobre facilmente */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.cart-dropdown {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.cart-dropdown.open {
    max-height: 500px;
}

.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

html, body {
    overflow-x: hidden;
    height: 100%;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.pulse {
    animation: pulse 0.5s ease;
}

/* Estilos para os avisos modernos */
.custom-alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.custom-alert {
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInSlideDown 0.5s forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: all;
    width: 300px;
    max-width: calc(100vw - 40px);
}

.custom-alert.hide {
    animation: fadeOutSlideUp 0.5s forwards;
}

/* Cores para Alerta de Sucesso (verde claro) */
.custom-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Cores para Alerta de Erro (vermelho claro) */
.custom-alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.custom-alert-message {
    flex-grow: 1;
    margin-right: 15px;
}

.custom-alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.custom-alert-close:hover {
    opacity: 0.7;
}

/* Animações */
@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
        margin-bottom: -70px;
    }
}
