/* Estilos compartilhados para botões de adicionar ao carrinho */
.action-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.button-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Animação do checkmark sendo desenhado */
@keyframes drawCheck {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Animação do círculo expandindo */
@keyframes circleExpand {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.action-btn.success .button-content {
    opacity: 0;
}

.action-btn.success .button-success {
    background: #4CAF50;
    opacity: 1;
}

/* Substituindo o ícone font-awesome por um SVG personalizado */
.button-success svg {
    width: 24px;
    height: 24px;
    opacity: 0;
}

.button-success .checkmark {
    fill: none;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.action-btn.success .button-success svg {
    opacity: 1;
}

.action-btn.success .button-success .checkmark {
    animation: drawCheck 0.5s ease forwards 0.3s;
}

/* Estilo específico para o botão */
#botaoComprar {
    text-align: center;
    justify-content: center;
    display: flex;
    width: 100% !important;
    /*padding: 6px 0px 6px 0px !important;*/
    background: #4CAF50;
    /*margin-top: 10px;*/
    line-height: unset;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#botaoComprar:hover {
    background: #45a049;
} 