* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background: #111;
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

/* Barra de Busca */
.busca {
    display: flex;
    align-items: center;
    width: 40%;
    max-width: 400px;
}

.busca input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}

.busca button {
    height: 38px;
    width: 45px;
    background: #333;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    margin-top: 0;
}

.busca button:hover {
    background: #555;
}

/* Botão de Modo Escuro / Claro */
.btn-theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    padding: 8px 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.btn-admin:hover {
    background: #27ae60;
    border-color: #27ae60;
}

.admin-header-acoes {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 5%;
}

.admin-login {
    max-width: 440px;
    margin: 30px auto;
    padding: 36px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.admin-kicker {
    color: #27ae60;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-login h1, .admin-titulo h1 {
    margin: 8px 0;
    color: #111;
}

.admin-login p, .admin-titulo p {
    color: #666;
    margin-bottom: 24px;
}

.admin-login form, .admin-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-login label, .admin-form label {
    font-size: 13px;
    font-weight: bold;
    margin-top: 8px;
}

.admin-login input, .admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font: inherit;
}

.admin-form textarea {
    resize: vertical;
}

.btn-admin-principal, .btn-admin-secundario, .btn-editar, .btn-excluir {
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    padding: 11px 15px;
}

.btn-admin-principal {
    background: #27ae60;
    color: #fff;
    margin-top: 12px;
}

.btn-admin-principal:hover { background: #219150; }

.btn-admin-secundario {
    background: #eee;
    color: #333;
}

.admin-erro { color: #c0392b !important; min-height: 18px; margin: 4px 0 0 !important; }
.admin-sucesso { color: #219150 !important; min-height: 20px; margin: 8px 0 0 !important; }
.admin-login small { color: #777; margin-top: 8px; }

.admin-painel[hidden], .admin-login[hidden], .admin-vazio[hidden], [hidden] { display: none !important; }

.admin-titulo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
}

.admin-seletor-areas {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}
.admin-seletor-botoes { display: flex; gap: 10px; margin-top: 10px; }
.admin-seletor-botoes button { margin-top: 0; }
.admin-seletor-botoes .ativo { outline: 2px solid #27ae60; outline-offset: 2px; }
.contador-conversas { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: #e74c3c; color: #fff; font-size: 11px; }

.admin-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

.admin-form, .admin-lista {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.admin-form h2, .admin-lista h2 { color: #111; font-size: 20px; margin-bottom: 8px; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-grid-2 > div { display: flex; flex-direction: column; gap: 8px; }
.admin-ajuda { color: #777; font-size: 11px; }
.admin-form-acoes { display: flex; gap: 10px; margin-top: 8px; }
.admin-form-acoes button { flex: 1; }

.admin-lista-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-lista-cabecalho h2 { margin: 0; }
.admin-lista-cabecalho span { color: #777; font-size: 13px; }
.admin-lista .admin-busca {
    width: 100%;
    max-width: none;
    margin-bottom: 10px;
}
.admin-vazio { color: #777; text-align: center; padding: 25px 0; }

.admin-item {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 12px;
    align-items: center;
    border-top: 1px solid #eee;
    padding: 13px 0;
}

.admin-item img { width: 58px; height: 58px; border-radius: 5px; object-fit: cover; background: #f1f1f1; }
.admin-item-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.admin-item-info strong { color: #222; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-item-info span { color: #777; font-size: 12px; text-transform: capitalize; }
.admin-item-acoes { display: flex; gap: 6px; }
.btn-editar { background: #e8f5ed; color: #19713c; }
.btn-excluir { background: #fcebea; color: #b7352c; }

.admin-estatisticas {
    margin-top: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.admin-estatisticas .admin-lista-cabecalho { align-items: flex-end; }
.admin-estatisticas h2 { margin: 8px 0 0; color: #111; font-size: 20px; }
.admin-periodo { display: flex; align-items: center; gap: 8px; color: #666; font-size: 13px; }
.admin-periodo select { padding: 8px; border: 1px solid #d8d8d8; border-radius: 5px; background: #fff; color: #333; font: inherit; }
.admin-resumo-estatisticas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-metrica { padding: 16px; border: 1px solid #eee; border-radius: 6px; }
.admin-metrica span { display: block; color: #777; font-size: 13px; }
.admin-metrica strong { display: block; margin-top: 6px; color: #27ae60; font-size: 26px; }
.admin-ranking { margin-top: 24px; }
.admin-ranking h2 { margin-bottom: 10px; color: #111; font-size: 20px; }
.admin-tabela-wrapper { overflow-x: auto; }
.admin-ranking table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-ranking th, .admin-ranking td { padding: 11px 8px; border-top: 1px solid #eee; text-align: left; }
.admin-ranking th { color: #666; font-size: 12px; }
.admin-ranking td:not(:first-child), .admin-ranking th:not(:first-child) { text-align: right; }
.btn-ordenar-ranking { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: bold; cursor: pointer; }
.btn-ordenar-ranking:hover { color: #27ae60; }
.btn-ordenar-ranking:focus-visible { outline: 2px solid #27ae60; outline-offset: 3px; }
.admin-ranking-rodape { padding: 24px; background: #fff; border-radius: 8px; box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08); }

body.dark-mode .admin-login, body.dark-mode .admin-form, body.dark-mode .admin-lista { background: #1e1e1e; }
body.dark-mode .admin-seletor-areas { background: #1e1e1e; }
body.dark-mode .admin-estatisticas { background: #1e1e1e; }
body.dark-mode .admin-login h1, body.dark-mode .admin-titulo h1, body.dark-mode .admin-form h2, body.dark-mode .admin-lista h2, body.dark-mode .admin-item-info strong { color: #fff; }
body.dark-mode .admin-estatisticas h2, body.dark-mode .admin-ranking h2 { color: #fff; }
body.dark-mode .admin-ranking-rodape { background: #1e1e1e; }
body.dark-mode .admin-login p, body.dark-mode .admin-titulo p { color: #bbb; }
body.dark-mode .admin-login input, body.dark-mode .admin-form input, body.dark-mode .admin-form select, body.dark-mode .admin-form textarea { background: #2a2a2a; border-color: #444; color: #fff; }
body.dark-mode .admin-periodo select { background: #2a2a2a; border-color: #444; color: #fff; }
body.dark-mode .admin-metrica, body.dark-mode .admin-ranking th, body.dark-mode .admin-ranking td { border-color: #333; }
body.dark-mode .admin-periodo, body.dark-mode .admin-metrica span, body.dark-mode .admin-ranking th { color: #aaa; }
body.dark-mode .btn-admin-secundario { background: #333; color: #fff; }
body.dark-mode .admin-item { border-color: #333; }
body.dark-mode .admin-vazio, body.dark-mode .admin-lista-cabecalho span, body.dark-mode .admin-item-info span { color: #aaa; }

.banner {
    background: #222;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

/* Botões de Categoria */
.categorias {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 25px 5% 5px 5%;
}

.btn-categoria {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.btn-categoria:hover {
    background: #e0e0e0;
}

.btn-categoria.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.produtos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 5% 30px 5%;
}

/* Card do Produto */
.produto {
    background: white;
    width: 230px;
    border-radius: 8px;
    box-shadow: 0 0 10px #ccc;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.produto:hover {
    transform: translateY(-4px);
}

.produto img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.badge-desconto {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    font-size: 12px;
}

/* Botão Favorito */
.btn-favorito {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    z-index: 5;
}

.btn-favorito:hover {
    transform: scale(1.15);
}

.info-produto {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-produto h3 {
    font-size: 15px;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avaliacao {
    font-size: 12px;
    color: #f39c12;
}

.preco-antigo {
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
}

.preco {
    font-size: 18px;
    font-weight: bold;
    color: #111;
}

/* Botão de Afiliado */
.btn-afiliado {
    display: block;
    background: #27ae60;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 10px;
    margin-top: 8px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-afiliado:hover {
    background: #219150;
}

.contato {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
}

.btn-grupo {
    display: inline-block;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 25px;
    margin-top: 15px;
    transition: background 0.2s;
}

.btn-grupo:hover {
    background-color: #128c7e;
}

footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.btn-admin-footer {
    margin-top: 12px;
}

/* Modo Escuro */
body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode header {
    background: #1e1e1e;
    border-bottom: 1px solid #2d2d2d;
}

body.dark-mode .busca input {
    background: #2a2a2a;
    color: #ffffff;
}

body.dark-mode .busca button {
    background: #444444;
}

body.dark-mode .busca button:hover {
    background: #555555;
}

body.dark-mode .banner {
    background: #181818;
}

body.dark-mode .btn-categoria {
    background: #242424;
    border-color: #383838;
    color: #d1d1d1;
}

body.dark-mode .btn-categoria:hover {
    background: #333333;
}

body.dark-mode .btn-categoria.active {
    background: #ffffff;
    color: #111111;
    border-color: #ffffff;
}

body.dark-mode .produto {
    background: #1e1e1e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .info-produto h3 {
    color: #ffffff;
}

body.dark-mode .preco {
    color: #2ecc71;
}

body.dark-mode .preco-antigo {
    color: #aaaaaa;
}

body.dark-mode .btn-favorito {
    background: rgba(30, 30, 30, 0.9);
}

body.dark-mode #sem-resultados {
    color: #aaaaaa !important;
}

body.dark-mode .contato {
    background: #181818;
    color: #ffffff;
}

body.dark-mode footer {
    background: #0a0a0a;
    border-top: 1px solid #222222;
}

body.dark-mode #btn-carregar-mais {
    background: #ffffff !important;
    color: #111111 !important;
}

/* --- DISPOSITIVOS MÓVEIS --- */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
    }

    .busca {
        width: 100%;
        max-width: 100%;
    }

    .banner {
        padding: 25px 15px;
    }

    .banner h2 {
        font-size: 20px;
    }

    .categorias {
        gap: 8px;
        padding: 15px 10px 5px 10px;
    }

    .btn-categoria {
        padding: 6px 12px;
        font-size: 13px;
    }

    .produtos {
        padding: 15px 10px;
        gap: 15px;
    }

    .produto {
        width: calc(50% - 8px);
        min-width: 0;
    }

    .produto img {
        height: 140px;
    }

    .info-produto {
        padding: 10px;
    }

    .info-produto h3 {
        font-size: 13px;
    }

    .preco {
        font-size: 16px;
    }

    .btn-afiliado {
        padding: 8px;
        font-size: 12px;
    }

    .detalhe-container {
        margin: 20px auto;
        padding: 15px;
        gap: 20px;
    }

    .detalhe-imagem,
    .detalhe-info {
        min-width: 0;
        flex-basis: 100%;
    }
}
/* Botão Flutuante de Contato */
.btn-flutuante-contato {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-flutuante-contato:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.contador-respostas-chat {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 20px;
    text-align: center;
}

/* --- MODAL / POP-UP --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    padding: 15px;
}

.modal-overlay.ativo {
    opacity: 1;
    visibility: visible;
}

.modal-conteudo {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.ativo .modal-conteudo {
    transform: translateY(0);
}

.fechar-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.modal-conteudo h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #111;
}

.modal-conteudo p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.btn-whatsapp-modal {
    display: block;
    text-align: center;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

#form-modal-contato .campo {
    margin-bottom: 12px;
    text-align: left;
}

#form-modal-contato label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
}

#form-modal-contato input,
#form-modal-contato textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.btn-enviar-modal {
    width: 100%;
    background-color: #111;
    color: white;
    border: none;
    padding: 10px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 5px;
}

/* Modo Escuro para o Modal */
body.dark-mode .modal-conteudo {
    background: #1e1e1e;
    color: #fff;
}

body.dark-mode .modal-conteudo h2 {
    color: #fff;
}

body.dark-mode .modal-conteudo p,
body.dark-mode .fechar-modal {
    color: #ccc;
}

body.dark-mode #form-modal-contato input,
body.dark-mode #form-modal-contato textarea {
    background: #2b2b2b;
    border-color: #444;
    color: #fff;
}

.area-chat[hidden], .form-responder-conversa[hidden], .cabecalho-conversa-admin[hidden] { display: none; }
.lista-mensagens-chat, .mensagens-conversa-admin {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
    margin-bottom: 12px;
}
.mensagem-chat, .mensagem-admin-painel {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 86%;
    padding: 9px 11px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #222;
    font-size: 13px;
}
.mensagem-chat strong, .mensagem-admin-painel strong { font-size: 11px; color: #555; }
.mensagem-chat small, .mensagem-admin-painel small { font-size: 10px; color: #777; }
.mensagem-admin { align-self: flex-start; }
.mensagem-cliente { align-self: flex-end; background: #dff5e7; }
.chat-vazio { color: #777; text-align: center; padding: 18px 0; }
.form-resposta-chat { display: flex; gap: 8px; align-items: flex-end; }
.form-resposta-chat textarea { flex: 1; }
.form-resposta-chat .btn-enviar-modal { width: auto; margin: 0; padding: 10px 16px; }
.chat-finalizado { text-align: center; border-top: 1px solid #ddd; padding-top: 12px; }
.chat-finalizado p { margin-bottom: 10px; }
.chat-finalizado .btn-enviar-modal { margin-top: 0; }
body.dark-mode .chat-finalizado { border-color: #444; }

.admin-atendimento {
    margin-top: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}
.atendimento-layout { display: grid; grid-template-columns: minmax(210px, 0.75fr) 1.25fr; gap: 18px; }
.lista-conversas { border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.item-conversa {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
    padding: 13px;
    border: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    color: #222;
    text-align: left;
    cursor: pointer;
}
.item-conversa:hover, .item-conversa.selecionada { background: #e8f5ed; }
.item-conversa strong { font-size: 14px; }
.item-conversa span, .item-conversa small { color: #777; font-size: 12px; }
.painel-conversa-admin { min-height: 280px; border: 1px solid #eee; border-radius: 6px; padding: 14px; }
.cabecalho-conversa-admin { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 10px; }
.cabecalho-conversa-admin span { color: #777; font-size: 12px; }
.mensagem-admin-painel { align-self: flex-start; }
.mensagem-admin-painel.mensagem-admin-enviada { align-self: flex-end; background: #dff5e7; }
.form-responder-conversa textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font: inherit; resize: vertical; }

body.dark-mode .admin-atendimento, body.dark-mode .item-conversa, body.dark-mode .painel-conversa-admin { background: #1e1e1e; }
body.dark-mode .lista-conversas, body.dark-mode .painel-conversa-admin, body.dark-mode .item-conversa, body.dark-mode .cabecalho-conversa-admin { border-color: #333; }
body.dark-mode .item-conversa { color: #fff; }
body.dark-mode .item-conversa:hover, body.dark-mode .item-conversa.selecionada { background: #263d2e; }
body.dark-mode .form-responder-conversa textarea { background: #2b2b2b; border-color: #444; color: #fff; }

@media (max-width: 700px) {
    .atendimento-layout { grid-template-columns: 1fr; }
    .form-resposta-chat { align-items: stretch; flex-direction: column; }
}

body.dark-mode .btn-enviar-modal {
    background-color: #27ae60;
}
.btn-flutuante-parceiro {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.btn-flutuante-parceiro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Efeito ao passar o mouse */
.btn-flutuante-parceiro:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* --- PALETA RMW STORE: GRAFITE, DOURADO E BRONZE --- */
:root {
    --rmw-preto: #101011;
    --rmw-grafite: #1D1D1F;
    --rmw-grafite-suave: #2A2927;
    --rmw-dourado: #C89A4B;
    --rmw-dourado-claro: #F1DEB8;
    --rmw-bronze: #8D622D;
    --rmw-creme: #F7F3EC;
    --rmw-papel: #FFFCF7;
    --rmw-texto: #252323;
}

body { background: var(--rmw-creme); color: var(--rmw-texto); }

header {
    background: linear-gradient(115deg, var(--rmw-preto), var(--rmw-grafite));
    border-bottom: 1px solid rgba(200, 154, 75, 0.45);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
}

.logo-marca {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.logo-marca img {
    width: 46px;
    height: 46px;
    border: 1px solid var(--rmw-dourado);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(200, 154, 75, 0.12);
}

.logo-marca span { display: flex; flex-direction: column; line-height: 1; }
.logo-marca strong { color: var(--rmw-dourado-claro); font-size: 19px; letter-spacing: 0.13em; }
.logo-marca small { margin-top: 4px; color: rgba(255, 255, 255, 0.72); font-size: 9px; font-weight: bold; letter-spacing: 0.32em; }

.busca input { background: var(--rmw-papel); color: var(--rmw-texto); }
.busca button { background: var(--rmw-dourado); color: var(--rmw-preto); }
.busca button:hover { background: var(--rmw-dourado-claro); }

.btn-theme-toggle { border-color: rgba(200, 154, 75, 0.8); color: var(--rmw-dourado-claro); }
.btn-theme-toggle:hover { background: rgba(200, 154, 75, 0.18); }

.banner {
    background: radial-gradient(circle at 70% -50%, rgba(200, 154, 75, 0.36), transparent 45%), linear-gradient(120deg, var(--rmw-preto), var(--rmw-grafite-suave));
    border-bottom: 3px solid var(--rmw-dourado);
    color: #fff;
}

.banner h2 { color: var(--rmw-dourado-claro); }

.btn-categoria { background: var(--rmw-papel); border-color: rgba(141, 98, 45, 0.25); color: var(--rmw-texto); }
.btn-categoria:hover { background: #EDE1CB; border-color: var(--rmw-dourado); }
.btn-categoria.active { background: var(--rmw-dourado); border-color: var(--rmw-dourado); color: var(--rmw-preto); box-shadow: 0 3px 8px rgba(141, 98, 45, 0.24); }

.produto {
    background: var(--rmw-papel);
    border: 1px solid rgba(141, 98, 45, 0.16);
    border-top: 3px solid var(--rmw-dourado);
    box-shadow: 0 6px 16px rgba(44, 35, 24, 0.12);
}
.produto:hover { box-shadow: 0 10px 20px rgba(141, 98, 45, 0.25); }
.badge-desconto { background: var(--rmw-bronze); color: #fff; }
.btn-favorito { color: var(--rmw-bronze); border: 1px solid rgba(200, 154, 75, 0.35); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16); }
.info-produto h3, .preco { color: var(--rmw-texto); }
.avaliacao { color: var(--rmw-dourado); }
.preco-antigo { color: #8A8177; }

.btn-afiliado { background: var(--rmw-dourado); color: var(--rmw-preto); border: 1px solid var(--rmw-bronze); }
.btn-afiliado:hover { background: var(--rmw-bronze); color: #fff; }

.contato { background: #EFE5D5; border-top: 1px solid rgba(141, 98, 45, 0.22); }
.contato h2 { color: var(--rmw-bronze); }
.btn-grupo { background-color: var(--rmw-grafite); border: 1px solid var(--rmw-dourado); color: var(--rmw-dourado-claro); }
.btn-grupo:hover { background-color: var(--rmw-bronze); color: #fff; }

footer { background: var(--rmw-preto); border-top: 2px solid var(--rmw-dourado); color: var(--rmw-dourado-claro); }
.btn-flutuante-contato { background-color: var(--rmw-dourado); color: var(--rmw-preto); border: 1px solid var(--rmw-bronze); }
.btn-flutuante-contato:hover { background-color: var(--rmw-bronze); color: #fff; }
.btn-flutuante-parceiro { background-color: var(--rmw-preto); border: 1px solid var(--rmw-dourado); }

.modal-conteudo { background: var(--rmw-papel); border: 1px solid rgba(200, 154, 75, 0.55); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32); }
.modal-conteudo h2, .btn-enviar-modal { color: var(--rmw-preto); }
.btn-enviar-modal { background-color: var(--rmw-dourado); border: 1px solid var(--rmw-bronze); }
#form-modal-contato input:focus, #form-modal-contato textarea:focus { border-color: var(--rmw-dourado); box-shadow: 0 0 0 3px rgba(200, 154, 75, 0.18); }

body.dark-mode { background: var(--rmw-preto); color: #EAE4DA; }
body.dark-mode header, body.dark-mode footer { background: #090909; border-color: rgba(200, 154, 75, 0.52); }
body.dark-mode .busca input { background: #211F1C; color: #fff; }
body.dark-mode .busca button { background: var(--rmw-dourado); color: var(--rmw-preto); }
body.dark-mode .banner { background: radial-gradient(circle at 70% -50%, rgba(200, 154, 75, 0.27), transparent 45%), #151412; }
body.dark-mode .btn-categoria { background: #211F1C; border-color: #4B4032; color: #EAE4DA; }
body.dark-mode .btn-categoria:hover { background: #302A23; }
body.dark-mode .btn-categoria.active { background: var(--rmw-dourado); border-color: var(--rmw-dourado); color: var(--rmw-preto); }
body.dark-mode .produto, body.dark-mode .modal-conteudo { background: #1C1A18; border-color: #50402A; }
body.dark-mode .info-produto h3, body.dark-mode .preco, body.dark-mode .modal-conteudo h2 { color: var(--rmw-dourado-claro); }
body.dark-mode .preco { color: var(--rmw-dourado); }
body.dark-mode .avaliacao { color: var(--rmw-dourado-claro); }
body.dark-mode .contato { background: #191715; color: #EAE4DA; }
body.dark-mode .btn-enviar-modal, body.dark-mode .btn-flutuante-contato { background: var(--rmw-dourado); color: var(--rmw-preto); }

@media (max-width: 600px) {
    .logo-marca img { width: 42px; height: 42px; }
    .logo-marca strong { font-size: 17px; }
}

/* Compactação dedicada para celulares, sem reduzir a legibilidade. */
@media (max-width: 600px) {
    header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 9px 12px;
    }

    .logo-marca { gap: 7px; }
    .logo-marca img { width: 34px; height: 34px; box-shadow: 0 0 0 2px rgba(200, 154, 75, 0.12); }
    .logo-marca strong { font-size: 15px; letter-spacing: 0.1em; }
    .logo-marca small { margin-top: 2px; font-size: 7px; letter-spacing: 0.24em; }

    .btn-theme-toggle {
        min-width: 36px;
        height: 36px;
        padding: 4px 8px;
        font-size: 16px;
    }

    .busca {
        order: 3;
        width: 100%;
    }

    .busca input,
    .busca button { height: 34px; }
    .busca input { padding: 0 10px; font-size: 13px; }
    .busca button { width: 40px; font-size: 14px; }

    .banner { padding: 18px 12px; }
    .banner h2 { font-size: 18px; }
    .banner p { margin-top: 5px; font-size: 12px; line-height: 1.35; }

    .categorias {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        padding: 12px 9px 4px;
    }

    .btn-categoria {
        min-height: 34px;
        padding: 7px 5px;
        border-radius: 9px;
        font-size: 11px;
        line-height: 1.15;
        white-space: nowrap;
    }

    .produtos {
        gap: 10px;
        padding: 12px 8px 22px;
    }

    .produto {
        width: calc(50% - 5px);
        border-radius: 7px;
        border-top-width: 2px;
    }

    .produto img { height: 116px; }
    .btn-favorito { top: 6px; left: 6px; width: 27px; height: 27px; font-size: 14px; }
    .badge-desconto { padding: 3px 5px; font-size: 10px; }
    .info-produto { padding: 8px; gap: 3px; }
    .info-produto h3 { font-size: 12px; }
    .avaliacao, .preco-antigo { font-size: 10px; }
    .preco { font-size: 15px; }
    .btn-afiliado { min-height: 34px; padding: 7px 4px; margin-top: 6px; font-size: 11px; }

    #btn-carregar-mais { min-height: 38px; padding: 8px 20px !important; font-size: 13px !important; }
    .contato { padding: 28px 15px; }
    .contato h2 { font-size: 20px; }
    .contato p { font-size: 13px; }
    .btn-grupo { padding: 10px 18px; font-size: 13px; }
    footer { margin-top: 22px; padding: 15px 12px; font-size: 12px; }

    .btn-flutuante-contato { bottom: 14px; right: 14px; width: 46px; height: 46px; font-size: 21px; }
    .btn-flutuante-parceiro { bottom: 14px; left: 14px; width: 48px; height: 48px; }
    .modal-conteudo { padding: 20px 16px; border-radius: 10px; }

    .admin-estatisticas { padding: 18px 14px; }
    .admin-seletor-botoes { flex-direction: column; }
    .admin-estatisticas .admin-lista-cabecalho { align-items: flex-start; flex-direction: column; }
    .admin-resumo-estatisticas { grid-template-columns: 1fr; }
}


/* Avaliação opcional no painel de contato */
.campo-avaliacao {
    text-align: left;
}

.label-campo {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
}

.estrelas-avaliacao {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 2px;
    margin-top: 2px;
}

.estrelas-avaliacao input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.estrelas-avaliacao label {
    color: #c9c0b5;
    cursor: pointer;
    font-size: 29px;
    line-height: 1;
    transition: color 0.18s ease, transform 0.18s ease;
}

.estrelas-avaliacao label.ativa,
.estrelas-avaliacao label:hover {
    color: var(--rmw-dourado);
}

.estrelas-avaliacao label:hover {
    transform: scale(1.08);
}

.estrelas-avaliacao input:focus-visible + label {
    outline: 2px solid var(--rmw-dourado);
    outline-offset: 2px;
    border-radius: 3px;
}

.campo-ajuda {
    display: block;
    margin-top: 3px;
    color: #8a8177;
    font-size: 11px;
}

body.dark-mode .estrelas-avaliacao label {
    color: #655e55;
}

body.dark-mode .estrelas-avaliacao label.ativa,
body.dark-mode .estrelas-avaliacao label:hover {
    color: var(--rmw-dourado-claro);
}

body.dark-mode .campo-ajuda {
    color: #b8aa96;
}

@media (max-width: 600px) {
    .estrelas-avaliacao label {
        font-size: 27px;
    }
}
