/* ============================================================
 *  style-product.css — Páginas de produto individual (ex: p1.html)
 *  TIPOGRAFIA: Poppins (títulos) + Montserrat (textos)
 *  ============================================================ */

/* ── RESET GLOBAL ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── BODY / BASE ── */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fefaf5;
    color: #2c2418;
    scroll-behavior: smooth;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* ── ESCALA TIPOGRÁFICA ── */
h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 2.2rem; font-weight: 600; line-height: 1.25; }
h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }

/* ── CONTAINER ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

.header .container { padding: 0 28px; }

/* ── HEADER ── */
.header {
    background: #ffffffea;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border-bottom: 1px solid #eee2d4;
}

.header .container {padding: 0 28px;}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #2c2418;
    margin-top: 10px;
}

.logo p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #6b5a4a;
    font-weight: 500;
    padding-bottom: 10px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    padding-top: 0;
    padding-bottom: 0;
}

.nav-links a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #2c2418;
    transition: 0.2s;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: #2F5E4C;
}

/* ── CONTEÚDO DO PRODUTO ── */
.product-detail {
    padding: 50px 0 70px;
    text-align: center;
}

.product-detail h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c2418;
    margin-top: 40px;
    margin-bottom: 16px;
    display: inline-block;
    text-align: left;
}

.product-detail h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 24px 0 8px 0;
    color: #2F5E4C;
}

.product-detail p {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.product-detail hr {
    margin: 40px auto;
    width: 70%;
    height: 1px;
    background: #C5A059;
    border: none;
}

/* ── CARDS DE IMAGEM ── */
.image-card {
    background: white;
    width: 60%;
    max-width: 500px;
    margin: 24px auto;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee2d4;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.image-card img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 5px;
    margin: 0 auto;
    box-shadow: none;
}

/* ── IMAGEM DE CORES ── */
.cores-card {
    margin: 16px auto 0;
    text-align: center;
    width: 55%;          /* ← largura no PC */
    max-width: 420px;    /* ← largura máxima no PC */
}

.cores-card img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* ── TABELA CÓDIGO / PREÇO ── */
.info-table {
    width: auto;
    min-width: 260px;
    margin: 20px auto;
    background: #fefaf2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.info-table td {
    font-family: 'Montserrat', sans-serif;
    padding: 16px 24px;
    text-align: center;
    border: 1px solid #eee2d4;
    font-weight: 400;
    font-size: 0.750rem;
}

/* ── LABELS DA TABELA ── */
.info-table .codigo-label,
.info-table .preco-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0,85rem;
    color: #6b5a4a;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── VALORES DA TABELA ── */
.info-table .codigo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #2F5E4C;
    font-weight: 600;
}

.info-table .preco {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    color: #b90e0a;
    font-weight: 600;
}
.info-table .forma-pagamento {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #2c2418;
    font-weight: 600;
    text-align: left;
}

@media (max-width: 640px) {
    .info-table .forma-pagamento {
        font-size: 0.8rem;
    }
}

/* ── BOTÃO WHATSAPP ── */
.whatsapp-button {
    text-align: center;
    margin: 30px auto 20px;
}

.whatsapp-button img {
    display: inline-block;
    max-width: 220px;
    height: auto;
    transition: transform 0.2s;
    box-shadow: none;
    margin: 0 auto;
}

.whatsapp-button img:hover {
    transform: scale(1.02);
}

/* ── FOOTER ── */
.footer {
    background: #1f1a14;
    color: #c7b5a2;
    padding: 24px 0;
}

.copyright {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    padding-top: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

:root {
    --spacer: 32px; /* controla tudo de um lugar só */
}

.spacer {
    height: var(--spacer);
}

/* ── TABELA DE DIMENSÕES ── */
.dimensions-table {
    width: auto;
    min-width: 340px;
    margin: 20px auto;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    font-family: 'Montserrat', sans-serif;
}

.dimensions-table thead tr {
    background: #2F5E4C;
}

.dimensions-table th {
    padding: 10px 20px;
    text-align: center;
    color: #fefaf5;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid #26503f;
}

.dimensions-table td {
    padding: 13px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #2c2418;
    border: 1px solid #eee2d4;
    background: #fefaf2;
}

.dimensions-table tbody tr:nth-child(even) td {
    background: #f5efe6;
}

@media (max-width: 640px) {
    .dimensions-table { min-width: 0; width: 95%; }
    .dimensions-table th,
    .dimensions-table td { padding: 10px 12px; font-size: 0.82rem; }
}



/* ── RESPONSIVIDADE — TABLET (max 900px) ── */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        padding-bottom: 28px;
    }
    .container { padding: 0 16px; }
    body, .hero, .featured-section, .footer, .container {
        overflow-x: hidden;
        max-width: 100%;
    }

    .logo h1 { font-size: 1.6rem; margin-top: 10px; }
    .logo p { padding-bottom: 0; }
    .nav-links { padding-bottom: 10px; }

    .product-detail h3 { font-size: 1.4rem; }
    .image-card { width: 90%; max-width: 500px; }
    .image-card img { width: 100%; height: auto; }

    .cores-card { width: 80%; }    /* ← largura no tablet */
}

/* ── RESPONSIVIDADE — MOBILE (max 640px) ── */
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .image-card { width: 100%; max-width: 100%; padding: 12px; }
    .image-card img { width: 100%; height: auto; }
    .product-detail h3 { font-size: 1.3rem; padding-left: 0; }
    .product-detail h4 { font-size: 1rem; }
    .product-detail p { font-size: 0.9rem; }
    .info-table { min-width: 0; width: 90%; }
    .info-table .preco {
        font-size: 1.05rem;
    }
    .info-table .forma-pagamento {
        font-size: 0.90rem;
    }
    .whatsapp-button img { max-width: 180px; }
    .nav-links { gap: 16px; padding-bottom: 10px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; gap: 24px; }
    button, input, textarea, select { font-size: 16px; }

    .cores-card { width: 100%; max-width: 100%; }  /* ← largura no celular */
}
