﻿/* ==============================================
   VER AMOSTRA Button - Base Styles
   ============================================== */
.preview-temp-button {
    position: relative;
    overflow: hidden;
    padding: 0.5em 1em;
    transition: all 0.3s ease;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Texto do botao */
.preview-temp-button span.button-text {
    display: inline-block;
    transition: opacity 0.3s ease;
}

/* Icone de olho (hover) */
.preview-temp-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1em;
    height: 1em;
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-eye' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover - mostra icone de olho */
.preview-temp-button:hover span.button-text {
    opacity: 0;
}

.preview-temp-button:hover::after {
    opacity: 1;
}

/* Estado de loading - mostra spinner */
.preview-temp-button.loading span.button-text {
    opacity: 0 !important;
}

.preview-temp-button.loading::after {
    opacity: 1;
    width: 1em;
    height: 1em;
    background: none !important;
    border: 2px solid #ccc;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==============================================
   Loop / Archive - Button inside image overlay
   (dentro da div .wd-add-btn junto ao botao comprar)
   ============================================== */

/* O botao no loop fica com largura total, empilhado abaixo do botao de comprar */
.wd-add-btn .preview-temp-button.preview-temp-loop {
    display: flex;
    width: 100%;
    padding: 0.6em 1em;
    margin-top: 5px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    text-align: center;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.wd-add-btn .preview-temp-button.preview-temp-loop:hover {
    background-color: rgba(51, 51, 51, 0.95);
}

/* ==============================================
   Single Product Page - Normal button styling
   ============================================== */
.preview-temp-button.preview-temp-single {
    display: inline-flex;
    padding: 0.7em 1.5em;
    font-size: 1em;
    font-weight: 600;
    border-radius: 5px;
    margin-top: 10px;
}
