/* Animação dos botões de adicionar ao carrinho */
.addtocart {
    display: block;
    padding: 0.5em 1em 0.5em 1em;
    border-radius: 100px;
    border: none;
    font-size: 1.2em;
    position: relative;
    background: #D4AF37; /* Cor dourada */
    cursor: pointer;
    height: 2.5em;
    width: 100%;
    overflow: hidden;
    transition: transform 0.1s;
    z-index: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.addtocart:hover {
    transform: scale(1.05);
}

.pretext {
    color: #fff; /* Texto branco */
    background: #D4AF37; /* Fundo dourado */
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.done {
    background: #22c55e; /* Verde para "Adicionado" */
    color: #fff;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: transform 0.3s ease;
    transform: translate(-110%) skew(-40deg);
}

/* Estado quando o botão é clicado */
.addtocart.added .pretext {
    transform: translate(110%) skew(-40deg);
}

.addtocart.added .done {
    transform: translate(0) skew(0deg);
}

/* Estilos específicos para os botões no contexto do site */
.addtocart {
    margin-top: 1rem;
}

/* Garantir que o texto seja sempre branco */
.addtocart .pretext,
.addtocart .done {
    color: #ffffff !important;
}
