/* =============================================
   DAMATHE — produto.css
   Harmonizado com admin.css
   ============================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: #000; color: #fff; font-family: 'Quicksand', sans-serif; }

/* ===== NAVBAR — idêntica ao Admin ===== */
.navbar {
    background-color: #b5386d;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo { font-weight: 700; font-size: 1.2rem; color: #fff; }
.navbar ul { display: flex; list-style: none; gap: 6px; }
.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 7px 14px;
    border-radius: 20px;
    transition: 0.25s;
}
.navbar ul li a:hover { background: rgba(0,0,0,0.22); }

/* ===== VITRINE ===== */
.vitrine-container {
    padding: 60px 5%;
    background: linear-gradient(180deg, #000 0%, #1a0811 100%);
    min-height: 100vh;
    text-align: center;
}

/* Título igual ao admin .aba-titulo mas maior */
.titulo-sessao {
    color: #ff8ab4;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 36px;
}

/* ===== FILTROS ===== */
.filtros {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-filtro {
    background-color: #111;
    color: #888;
    border: 1px solid #222;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    transition: 0.25s;
}
.btn-filtro.ativo,
.btn-filtro:hover {
    background-color: #b5386d;
    border-color: #b5386d;
    color: #fff;
}

/* ===== GRID DE CARDS ===== */
.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== CARD — alinhado com .form-card / .stat-card do Admin ===== */
.card {
    background-color: #0c0c0c;
    border: 1px solid #222;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}
.card:hover {
    border-color: #ff8ab4;
    transform: translateY(-5px);
    box-shadow: 0 0 24px rgba(255,138,180,0.1);
}

.img-placeholder {
    background-color: #1a1a1a;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.img-placeholder img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; top: 0; left: 0;
}
.img-fallback { font-size: 3.5rem; z-index: 1; }

.card-info { padding: 18px; text-align: left; }
.card-info h3 {
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
.card-qtd { color: #555; font-size: 0.78rem; margin-bottom: 10px; font-weight: 600; }
.card-preco { color: #ff8ab4; font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }

/* Botão — idêntico ao .btn-primario do Admin */
.btn-personalizar {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #ff8ab4, #b5386d);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
}
.btn-personalizar:hover { opacity: 0.85; transform: translateY(-2px); }

/* ===== VAZIO ===== */
.vazio-msg {
    color: #444;
    text-align: center;
    padding: 60px 20px;
    grid-column: 1/-1;
    font-size: 1rem;
    line-height: 1.8;
}
.vazio-msg a { color: #ff8ab4; text-decoration: none; }

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.88);
    display: none; justify-content: center; align-items: center;
    z-index: 9999; padding: 20px;
}

/* Modal — mesma linguagem do .login-box e .confirm-box do Admin */
.modal-content {
    background-color: #0c0c0c;
    border: 1px solid #b5386d;
    padding: 28px 28px 24px;
    border-radius: 18px;
    width: 100%; max-width: 480px;
    max-height: 90vh; overflow-y: auto;
    position: relative;
    box-shadow: 0 0 40px rgba(181,56,109,0.2);
    animation: surgirModal 0.3s ease-out;
}

.fechar {
    position: absolute; top: 14px; right: 18px;
    color: #555; font-size: 26px; font-weight: bold;
    cursor: pointer; transition: 0.3s; line-height: 1;
}
.fechar:hover { color: #ff8ab4; }

/* Título modal — igual ao .aba-titulo */
.modal-content h2 { color: #ff8ab4; margin-bottom: 6px; font-size: 1.3rem; font-weight: 700; }
.modal-hr { border: none; border-top: 1px solid #1e1e1e; margin: 14px 0; }
.modal-kit-resumo {
    color: #666; font-size: 0.9rem;
    background: #111;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 4px;
    border: 1px solid #1e1e1e;
}

/* ===== FORM — idêntico ao Admin .form-grupo ===== */
.form-grupo { margin-bottom: 16px; text-align: left; }
.form-grupo label {
    color: #ff8ab4;
    font-size: 0.75rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-grupo input[type="text"] {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    padding: 11px 14px;
    border-radius: 12px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    width: 100%;
    outline: none;
    transition: 0.3s;
}
.form-grupo input[type="text"]:focus { border-color: #ff8ab4; }

/* ===== BUSCA DE TEMA ===== */
.tema-busca-wrap { margin-bottom: 10px; }
.tema-busca-wrap input {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    width: 100%;
    outline: none;
    transition: 0.3s;
}
.tema-busca-wrap input:focus { border-color: #ff8ab4; }

/* ===== GRADE DE TEMAS ===== */
.temas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 10px;
}
.temas-grid::-webkit-scrollbar { width: 4px; }
.temas-grid::-webkit-scrollbar-track { background: #111; border-radius: 4px; }
.temas-grid::-webkit-scrollbar-thumb { background: #b5386d; border-radius: 4px; }

/* Tema card — alinhado com .tema-admin-card do Admin */
.tema-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 10px 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
    font-family: 'Quicksand', sans-serif;
}
.tema-card:hover { border-color: #ff8ab4; background: #1c0c14; }
.tema-card.selecionado {
    border-color: #ff8ab4;
    background: #2a0e1a;
    box-shadow: 0 0 8px rgba(255,138,180,0.25);
}
.tema-emoji { font-size: 1.4rem; }
.tema-nome { color: #888; font-size: 0.7rem; text-align: center; line-height: 1.2; }
.tema-card.selecionado .tema-nome { color: #ff8ab4; font-weight: 700; }

/* Label tema selecionado */
.tema-selecionado-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1c0c14;
    border: 1px solid #b5386d;
    border-radius: 10px;
    padding: 8px 12px;
    color: #ff8ab4;
    font-size: 0.82rem;
    margin-top: 6px;
}
.tema-selecionado-label span {
    cursor: pointer; color: #555; margin-left: auto;
    font-size: 0.8rem; transition: 0.2s;
}
.tema-selecionado-label span:hover { color: #ff8ab4; }

/* ===== BOTÕES MODAL — mesmos do Admin ===== */
.btn-proximo, .btn-whatsapp, .btn-voltar {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.25s;
    margin-top: 10px;
    display: block;
}
.btn-proximo {
    background: linear-gradient(135deg, #ff8ab4, #b5386d);
    color: #fff;
}
.btn-proximo:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1db954; transform: translateY(-2px); }

.btn-voltar {
    background: transparent;
    color: #555;
    border: 1px solid #222;
    font-size: 0.85rem;
}
.btn-voltar:hover { color: #ff8ab4; border-color: #ff8ab4; }

/* ===== RESUMO DO PEDIDO — mesmo tom do .resumo-pedido ===== */
.resumo-pedido {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}
.resumo-linha {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.9rem;
    color: #555;
}
.resumo-linha strong { color: #ccc; }
.resumo-total {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 4px;
    font-size: 1rem;
    color: #555;
    font-weight: 700;
}
.resumo-total strong { color: #ff8ab4; font-size: 1.2rem; }

/* ===== ANIMAÇÃO ===== */
@keyframes surgirModal {
    from { transform: translateY(-25px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 600px) {
    .navbar { flex-wrap: wrap; gap: 10px; }
    .temas-grid { grid-template-columns: repeat(3, 1fr); }
    .modal-content { padding: 20px 16px; }
}
