/* =========================================================
   BOTÃO "+ ADD À LISTA DE COMPRAS" (CATÁLOGO E PRODUTO)
   ========================================================= */
.wts-btn-add-lista {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #09a501;
    color: #fff;
    padding: 0.7em 1.3em;
    border-radius: 6px;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.25;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
}

/* Nos cards da grade do catálogo, mantém alinhado na largura do card */
.wts-acoes-card .wts-btn-add-lista {
    width: 100%;
    padding: 0.65em 0.9em;
    font-size: 17px;
}

.wts-btn-add-lista:hover {
    background: #078201;
}

.wts-btn-add-lista.adicionado {
    background: #0073aa;
}

/* =========================================================
   BOTÃO FLUTUANTE "MINHA LISTA"
   ========================================================= */
#wts-btn-flutuante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #09a501;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.75em 1.3em;
    font-size: 17px;
    line-height: 1.25;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 99999999;
    transition: transform 0.2s;
}

#wts-btn-flutuante:hover {
    transform: scale(1.05);
}
/* Animação de pulso e mudança de cor ao adicionar item */
@keyframes wtsPulsoCarrinho {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.18);
    }
    70% {
        transform: scale(0.96);
    }
    100% {
        transform: scale(1);
    }
}

#wts-btn-flutuante.wts-pulsando {
    background: #0073aa !important;
    box-shadow: 0 0 0 8px rgba(0, 115, 170, 0.28), 0 6px 20px rgba(0, 0, 0, 0.35) !important;
    animation: wtsPulsoCarrinho 0.55s ease-out;
}


/* =========================================================
   MODAL DA LISTA DE COMPRAS
   ========================================================= */
.wts-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    font-family: sans-serif;
}

.wts-modal-lista-box {
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    padding: 22px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.wts-modal-lista-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.wts-modal-lista-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

#wts-fechar-lista {
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: #333;
}

/* =========================================================
   ITENS SELECIONADOS DENTRO DO MODAL
   ========================================================= */
#wts-itens-selecionados-container {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.wts-item-selecionado {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.wts-item-selecionado-img {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    object-fit: contain !important;
    border-radius: 6px;
    border: 1px solid #eee;
    background: #f9f9f9;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.wts-item-selecionado-placeholder {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 6px;
    background: #f4f4f4;
    border: 1px solid #eee;
    flex-shrink: 0 !important;
}

.wts-item-selecionado-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: left !important;
}

.wts-item-selecionado-titulo {
    font-weight: bold !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    color: #333 !important;
    display: block !important;
    word-break: break-word;
}

.wts-qtd-controles {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333 !important;
    flex-shrink: 0 !important;
}

.wts-qtd-valor {
    min-width: 24px;
    text-align: center;
    color: #333 !important;
    font-weight: bold !important;
}

.wts-qtd-btn {
    background: #eee !important;
    color: #333 !important;
    border: none !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 6px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wts-qtd-btn:hover {
    background: #dcdcdc !important;
}

/* =========================================================
   RODAPÉ DO MODAL E BOTÃO WHATSAPP
   ========================================================= */
.wts-modal-lista-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.wts-btn-sec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 0.7em 1.2em;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.25;
    flex: 0 0 auto;
}

.wts-btn-whats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #fff !important;
    padding: 0.7em 1.2em;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.25;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
    flex: 1 1 auto;
}

.wts-btn-whats:hover {
    background: #1ebe5d;
}

.wts-icone-whats-img {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    margin: 0 !important;
}

/* =========================================================
   DESKTOP: LISTA ABERTA POR INTEIRO PARA REVISÃO
   ========================================================= */
@media (min-width: 900px) {
    .wts-modal-overlay {
        padding: 25px;
    }

    .wts-modal-lista-box {
        max-width: 860px;
        height: 92vh;
        max-height: 92vh;
        padding: 28px 32px;
    }

    .wts-modal-lista-header h3 {
        font-size: 24px;
    }

    .wts-item-selecionado {
        padding: 12px 8px;
        gap: 18px;
    }

    .wts-item-selecionado-img,
    .wts-item-selecionado-placeholder {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        max-height: 72px !important;
    }

    .wts-item-selecionado-titulo {
        font-size: 18px !important;
    }

    .wts-qtd-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 19px;
    }

    .wts-qtd-valor {
        font-size: 18px;
        min-width: 30px;
    }
}