/* ============================================================
 *  style-main.css — Página principal (index.html)
 *  TIPOGRAFIA: Poppins (títulos) + Montserrat (textos)
 *  ============================================================ */

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

html {
    scrollbar-gutter: stable;
}

/* ── 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-left: 0; padding-right: 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: 2e2517ff;
    /*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;
    align-items: stretch;
}

.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: flex;
    flex-direction: column;
    height: 100%;   /* ← ADICIONE ESTA LINHA */

}

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

.card-img {
    height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.card-img img {
    object-fit: contain;
    position: absolute;
    opacity: 0;
    transition: opacity 3.0s 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 {
    transition: opacity 3.0s ease;
}

.card-content {
    padding: 22px 18px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

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

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

/* ── HERO ── */
.hero {
    background: linear-gradient(115deg, #fff6ea 0%, #f3ece2 100%);
    padding: 30px 0 60px;
    border-bottom: 1px solid #eee2d4;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-image {
    flex: 1;
    position: relative;
    height: auto;
    max-width: 45%;
    aspect-ratio: 1 / 1;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;  /* ← colocar aqui */
}
.hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 2.0s ease;
    transform: scale(1.10); /* todas as imagens ficam no zoom máximo */

}

.hero-image img.active {
    opacity: 1;
    animation: heroZoom 9s ease-in-out forwards; /* forwards mantém o scale(1.06) */
}

@keyframes heroZoom {
    0%   { transform: scale(1); }
    100%  { transform: scale(1.10); }  /* zoom máximo em 80% do tempo */
}

.hero-text {
    flex: 1;
}

.hero-text .badge {
    display: inline-block;
    background: rgba(47, 94, 76, 0.12);
    padding: 6px 16px;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1E4033;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.hero-text h1 {
    font-size: 2.0rem;
    font-weight: 550;
    color: #2c2418;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #4e3e2e;
    max-width: 500px;
    margin-bottom: 28px;
    line-height: 1.65;
}

.hero-text .hero-taglines { margin-bottom: 28px; }
.hero-text .hero-taglines p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #4e3e2e;
    max-width: 500px;
    line-height: 1.65;
    margin-bottom: 4px;
}

.btn-primary {
    background: #2F5E4C;
    border: none;
    padding: 14px 40px;
    border-radius: 60px;
    font-weight: 600;
    color: white;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    margin-top: 24px;
}

.btn-primary:hover {
    background: #1E4033;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -8px rgba(0,0,0,0.2);
}

/* ── SEÇÃO NOSSOS PRODUTOS ── */
.categories-section {
    padding: 50px 0 70px;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c2418;
}

.section-sub {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: #6b5a4a;
    max-width: 580px;
    margin: 0 auto 48px auto;
    font-size: 1rem;
    line-height: 1.65;
}

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

/* ── LINK WRAPPER DO CATEGORY CARD ── */
.category-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card {
    background: #fefaf2;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.6s 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;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.category-card .card-img {
    height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

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

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

.category-card:hover .card-img img.active {
    transition: opacity 3.0s ease;
}

.category-card .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 18px 24px;
}

.category-card .card-content p {
    flex: 1;
    margin-bottom: 20px;
}

/* ── SEÇÃO PEÇAS EM DESTAQUE ── */
.featured-section {
    background: #fefaf2;
    padding: 10px 0 70px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 20px;
    align-items: stretch;
}

.featured-grid .product-card {
    display: flex;
    flex-direction: column;
}

.product-img {
    height: 210px;
    background: #fefaf2;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.product-img img {
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: contain;
    border-radius: 6px;
    background: white;
}

.product-info {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c2418;
}

.product-info p {
    flex: 1;
    margin-bottom: 12px;
}

.price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2F5E4C;
    margin-bottom: 16px;
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.footer-logo h3 {
    font-size: 1.6rem;
    color: #ede0d0;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-family: 'Montserrat', sans-serif;
    color: #c7b5a2;
    text-decoration: none;
    font-size: 0.875rem;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #C5A059;
}

.social i {
    font-size: 1.4rem;
    margin-right: 18px;
    color: #c7b5a2;
    transition: 0.2s;
    cursor: pointer;
}

.social i:hover {
    color: #C5A059;
}

.copyright {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #2e2820;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

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

.toast-notify {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2c2418ee;
    color: #fcead8;
    padding: 12px 28px;
    border-radius: 60px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, opacity 0.2s;
    opacity: 0;
    pointer-events: none;
    font-size: 0.875rem;
    backdrop-filter: blur(8px);
}

.toast-notify.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.hero-below-mobile {
    display: none;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── 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%;
    }
    .hero-image {
        position: relative;
        width: 100%;
        max-width: 500px;
        min-height: 400px;
        text-align: center;
    }
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 28px;
    }
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .btn-desktop { display: none; }
    .badge-desktop { display: none !important; }
    .hero-text p { margin-bottom: 5px; }
    .hero-below-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }
    .hero-text h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .cards-grid, .featured-grid { gap: 20px; }
    .btn-primary { margin-top: 0; }
    .logo h1 { font-size: 1.6rem; margin-top: 10px; }
    .logo p { padding-bottom: 0; }
    .nav-links { padding-bottom: 10px; }
    .page-header h2 { font-size: 1.8rem; }
    .products-section { padding: 30px 0 50px; }
    .product-grid { gap: 20px; }
}

/* ── RESPONSIVIDADE — MOBILE (max 640px) ── */
@media (max-width: 640px) {
    .nav-links { gap: 16px; }  /* ← adicionar esta linha */

    .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: 1.1rem; }
    .hero-image {
        position: relative;
        width: 100%;
        max-width: 320px;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 1 !important;
        flex-shrink: 0;
        margin: -2.0rem auto;
        overflow: hidden;
        border-radius: 10px;
        display: block;
    }

    .hero-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: transparent;
        opacity: 0;
        transition: opacity 2.0s ease;
        transform: scale(1.10);
    }

    .hero-image img.active {
        opacity: 1;
        animation: heroZoom 9s ease-in-out forwards;
    }
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-below-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        margin-top: 2.0rem;
    }
    .badge-desktop { display: none; }
    .hero-text h1 { font-size: 1.8rem; }
    .btn-primary {
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
    .section-title { font-size: 1.6rem; }
    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; }
}
