/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIÁVEIS DA PALETA (vermelho suave + branco) */
:root {
    --bg: #faf6f5;            /* branco quente */
    --text: #2b2223;          /* grafite avermelhado */
    --muted: #7a6d6e;
    --card: #ffffff;
    --line: #eadfdd;          /* bordas suaves */
    --primary: #b8454b;       /* vermelho tijolo, sem saturar */
    --primary-dark: #983539;
    --primary-soft: #f7e9e8;  /* fundo rosado bem claro */
    --wine: #6e2a2f;          /* vinho para header/footer */
    --color-link: #a23b41;
    --shadow: 0 2px 10px rgba(110, 42, 47, 0.06);
    --radius: 10px;
}

/* BODY */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER: branco, com faixa vermelha no topo */
header {
    background: linear-gradient(180deg, #f2d4d0 0%, #fbefec 100%);
    color: var(--text);
    padding: 18px 15px 16px;
    text-align: center;
    border-top: 5px solid #c0555a;   /* vermelho suave */
    border-bottom: 1px solid var(--line);
}

header h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
    color: var(--wine);
}

header .small {
    color: var(--muted);
    font-size: 13px;
    margin-top: 0;
}

/* CONTAINER */
.container {
    max-width: 950px;
    margin: auto;
    padding: 25px 15px;
}

/* CARDS: borda fina, sem elevação exagerada */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
    border: 1px solid var(--line);
}

.imagem-produto {
    width: 360px;
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    display: block;
    margin: 0 auto 15px auto;
}

/* TOPO PRODUTO */
.produto-topo {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.produto-topo h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

.produto-topo p {
    margin-bottom: 12px;
    color: #3b2f30;
}

/* BOTÃO CTA */
.cta-btn {
    display: block;
    width: fit-content;
    background: var(--primary);
    color: #fff;
    padding: 13px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin: 15px auto 5px auto;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(184, 69, 75, 0.22);
}

.cta-btn:hover {
    background: var(--primary-dark);
}

/* ALERTA */
.alert {
    background: var(--primary-soft);
    border-left: 5px solid var(--primary);
    padding: 14px;
    border-radius: 8px;
    margin: 16px 0;
    color: #6b2a2e;
    font-weight: 600;
}

/* TÍTULOS: h2 com sublinhado curto vermelho */
h2 {
    font-size: 21px;
    margin-bottom: 14px;
    font-weight: 800;
    color: var(--wine);
}

h2::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
    margin-top: 6px;
}

h2[style*="center"]::after {
    margin-left: auto;
    margin-right: auto;
}

h3 {
    font-size: 17px;
    margin-top: 18px;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--wine);
}

/* PARÁGRAFOS */
p {
    margin-bottom: 12px;
}

/* LISTAS */
ul {
    padding-left: 20px;
    margin: 10px 0;
}

ul li {
    margin-bottom: 14px;
    color: #3b2f30;
}

ul li::marker {
    color: var(--primary);
}

/* PRÓS E CONTRAS */
.pros-cons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pros-cons div {
    flex: 1;
    min-width: 260px;
    border-radius: var(--radius);
    padding: 16px;
}

.pros {
    background: #f1f6f1;
    border: 1px solid #c5d9c5;
}

.cons {
    background: var(--primary-soft);
    border: 1px solid #e6c4c2;
}

.pros h3, .cons h3 {
    margin-top: 0;
}

/* FAQ */
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.faq details:hover,
.faq details[open] {
    background: var(--primary-soft);
}

.faq summary {
    font-weight: 700;
    font-size: 15px;
    color: var(--wine);
}

.faq details p {
    margin-top: 12px;
    color: #4a3d3e;
}

/* TABELA DO PRODUTO */
.tabela-produto {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.tabela-produto tr {
    border-bottom: 1px solid var(--line);
}

.tabela-produto td {
    padding: 14px 12px;
    font-size: 15px;
    color: var(--text);
}

.tabela-produto tr:nth-child(even) {
    background: #fdf9f8;
}

.tabela-produto td:first-child {
    width: 200px;
    color: var(--wine);
    font-weight: 700;
    background: var(--primary-soft);
}

/* SMALL TEXT */
.small {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* LINKS */
.link-a {
    color: var(--color-link);
    font-weight: 700;
    text-decoration: none;
}

.link-a:hover {
    text-decoration: underline;
}

/* FOOTER: vinho suave */
footer {
    background: var(--wine);
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    padding: 18px 12px;
    font-size: 14px;
    margin-top: 20px;
}

footer .small {
    color: rgba(255, 255, 255, 0.7);
}

footer .link-a {
    color: #f5c9c7;
}

/* FOCO VISÍVEL (acessibilidade) */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(184, 69, 75, 0.45);
    outline-offset: 2px;
}

/* RESPONSIVO */
@media (max-width: 650px) {
    header h1 {
        font-size: 21px;
    }

    .card {
        padding: 18px;
    }

    .produto-topo {
        flex-direction: column;
        text-align: center;
    }

    .produto-topo img {
        width: 220px;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .tabela-produto td:first-child {
        width: 140px;
    }
}

/* BOTÃO VOLTAR AO TOPO */
#btnTopo {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(110, 42, 47, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: 0.25s;
    z-index: 9999;
}

#btnTopo.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#btnTopo:hover {
    background: var(--primary-dark);
}

.title-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ícone ao lado do H1 */
.h1-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

/* Imagens de Antes e Depois */
.galeria-resultados {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.resultado-item img {
    width: 100%;
    height: auto;
    max-width: 320px;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.legenda-img {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 768px) {
    .galeria-resultados {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* SUMÁRIO */
.sumario ul {
    margin-top: 15px;
    padding-left: 20px;
}

.sumario li {
    margin: 10px 0;
}

.sumario a {
    color: var(--color-link);
    text-decoration: none;
    font-weight: 600;
}

.sumario a:hover {
    text-decoration: underline;
}