/* ============================================================
 *  style-section.css — Páginas de seção (floreiras, prateleiras...)
 *  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;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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;
}

.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,
.nav-links a.active {
    color: #2F5E4C;
}

/* ── CABEÇALHO DA PÁGINA ── */
.page-header {
    background: linear-gradient(115deg, #fff6ea 0%, #f3ece2 100%);
    padding: 40px 0 36px;
    border-bottom: 1px solid #eee2d4;
    text-align: center;
}

.page-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c2418;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.page-header p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #4e3e2e;
    max-width: 580px;
    margin: 0 auto 6px auto;
    line-height: 1.65;
}

/* ── GRID DE PRODUTOS ── */
.products-section {
    padding: 50px 0 70px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

/* ── Card ── */
.product-card {
    background: #fefaf2;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    border: 1px solid #eee2d4;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
    border-color: #e1cfbc;
}

/* ── Área da imagem ── */
.card-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    object-fit: contain;
    position: absolute;
    opacity: 0;
    transition: opacity 1.2s ease;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    top: 8px;
    left: 8px;
    border-radius: 6px;
    background: white;
}

.card-img img.active {
    opacity: 1;
}

.product-card:hover .card-img img.active {
    transform: scale(1.05);
    transition: opacity 0.9s ease, transform 0.5s ease;
}

/* ── Conteúdo de texto ── */
.card-content {
    padding: 22px 18px 24px;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c2418;
    margin-bottom: 10px;
}

.card-content p {
    font-family: 'Montserrat', sans-serif;
    color: #6b5a4a;
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.55;
}

/* ── Link "ver mais" ── */
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #2F5E4C;
    letter-spacing: 0.3px;
    border-bottom: 1.5px solid #eee2d4;
    padding-bottom: 4px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
}

.card-tag i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.product-card:hover .card-tag i {
    transform: translateX(5px);
}

/* ── 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;
}

/* ── UTILITÁRIOS ── */
#categorias, #destaques, #contato {
scroll-margin-top: 80px;
}

/* ── RESPONSIVIDADE — TABLET (max 900px) ── */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        padding-bottom: 28px;
    }
    .container { padding: 0 16px; }
    body, .footer, .container {
        overflow-x: hidden;
        max-width: 100%;
    }
    .page-header h2 { font-size: 1.8rem; }
    .products-section { padding: 30px 0 50px; }
    .product-grid { gap: 20px; }
    .logo h1 { font-size: 1.6rem; margin-top: 10px; }
    .logo p { padding-bottom: 0; }
    .nav-links {
        padding-bottom: 10px;
    }
}

/* ── RESPONSIVIDADE — MOBILE (max 640px) ── */
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .page-header h2 { font-size: 1.6rem; }
    .page-header p { font-size: 0.9rem; }
    .product-grid { gap: 16px; }
    .card-content h3 { font-size: 1rem; }
    .nav-links { gap: 16px; }
    button, input, textarea, select { font-size: 16px; }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        gap: 24px;
    }
    .social { text-align: center; }
}
