
:root {
    --primary: #b2592c;
    --primary-dark: #944522;
    --primary-light: #e8c8b0;
    --text: #333333;
    --text-light: #666666;
    --background: #fffaed; 
    --white: #ffffff;
    --gray-light: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(#151514);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container img {
    height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-link.active, 
.nav-link:hover {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Botões */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(178, 89, 44, 0.3);
}

/* Botão WhatsApp (segue a base do .btn-primary) */
.btn-whatsapp {
    background-color: #25D366; /* tom do WhatsApp, igual ao flutuante */
}
.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}


/* Títulos */
.page-title {
    color: var(--primary);
    font-size: 2.2rem;
    margin: 30px 0;
    position: relative;
    padding-bottom: 10px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-title {
    font-size: 1.8rem;
    margin: 30px 0 20px;
    color: var(--primary);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Efeito sticky com blur */
header.scrolled {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    padding: 10px 0;
}

.blog-list {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
}

.blog-post {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.blog-post p {
    color: var(--text-light);
    margin-bottom: 1rem;
}
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    margin-top: 1rem;
}

.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== ESTILOS ESPECÍFICOS PARA O MODAL DE PRODUTOS ===== */
#productModal .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#productModal .modal-content h3,
#productModal .modal-content p,
#productModal .modal-content img {
    width: 100%;
    margin-bottom: 0;
}

#productModal #modal-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    margin: 15px 0;
    display: block;
}

#productModal #modal-sku {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0;
    width: 100%;
    text-align: center;
}

#productModal #btnOrcarWpp {
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: center;
    order: 999; /* Garante que fique sempre por último */
}

/* ====== MELHORIAS PARA SELEÇÃO DE VARIAÇÕES ====== */
.product-card .variant-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 2px 12px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

/* Barra de rolagem personalizada */
.product-card .variant-list::-webkit-scrollbar {
    height: 4px;
}

.product-card .variant-list::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 2px;
}

.product-card .variant-list::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 2px;
}

.product-card .variant-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Botões de variação */
.product-card .variant-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--primary-light);
    background: var(--white);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: max-content;
}

.product-card .variant-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(178, 89, 44, 0.1);
}

.product-card .variant-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Estado selecionado */
.product-card .variant-btn.active,
.product-card .variant-btn[aria-pressed="true"] {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    padding-right: 32px;
    box-shadow: 0 4px 12px rgba(178, 89, 44, 0.2);
}

/* Ícone de checkmark para opção selecionada */
.product-card .variant-btn.active::after,
.product-card .variant-btn[aria-pressed="true"]::after {
    content: "✓";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Efeito de pressão ao clicar */
.product-card .variant-btn:active {
    transform: translateY(0);
}

/* Indicador visual quando há muitas opções (scroll necessário) */
.product-card .variant-list.scrollable::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent 0%, var(--background) 100%);
    pointer-events: none;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .product-card .variant-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .product-card .variant-btn.active,
    .product-card .variant-btn[aria-pressed="true"] {
        padding-right: 28px;
    }
    
    .product-card .variant-btn.active::after,
    .product-card .variant-btn[aria-pressed="true"]::after {
        right: 10px;
        font-size: 0.8rem;
    }
    
    /* Ajustes para o modal em mobile */
    #productModal .modal-content {
        padding: 1.5rem;
    }
    
    #productModal #modal-image {
        max-height: 250px;
    }
}
/* ===== SOBRE (somente layout do <main>) ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  margin-top: 10px;
}
.about-hero-text p { color: var(--text); line-height: 1.6; }
.about-cta-inline { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.about-hero-media img { width: 100%; height: auto; border-radius: 12px; display: block; object-fit: cover; }

/* Números rápidos */
.about-stats-wrap { margin: 30px 0; }
.about-stats { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.about-stats li {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.about-stats li strong { display: block; font-size: 2rem; color: var(--primary); line-height: 1.2; }
.about-stats li span { display: block; margin-top: 6px; color: var(--text-light); }

/* Cards de diferenciais */
.about-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-top: 4px solid var(--primary);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.about-card h3 { margin-bottom: 8px; color: var(--primary); font-size: 1.1rem; }
.about-card p { color: var(--text); }

/* Timeline (História) */
.about-timeline { list-style: none; margin-left: 0; padding-left: 22px; border-left: 2px solid var(--primary-light); }
.about-timeline li { position: relative; padding: 10px 0 10px 8px; }
.about-timeline li::before {
  content: '';
  position: absolute; left: -10px; top: 16px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px rgba(178,89,44,.15);
}
.about-timeline time { display: inline-block; font-weight: 700; color: var(--primary); margin-right: 8px; }
.about-timeline p { display: inline; color: var(--text); }

/* MVV */
.about-mvv { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mvv-item {
  background: linear-gradient(180deg, var(--primary-light), #fff);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 18px;
}
.mvv-item h3 { color: var(--primary); margin-bottom: 8px; }
.mvv-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mvv-tags li {
  padding: 6px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--primary-light); color: var(--text);
  font-size: .9rem;
}

/* Parceiros (lista simples por enquanto) */
.about-partners { list-style: disc; padding-left: 20px; color: var(--text); }

/* Faixa de CTA final */
.about-cta-band {
  margin: 40px 0 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
}
.about-cta-band__content h2 { color: var(--white); margin-bottom: 6px; }
.about-cta-band__content p { opacity: .9; margin-bottom: 12px; }

/* Melhor ancoragem com header sticky */
#quem-somos, #diferenciais, #historia, #mvv, #parceiros { scroll-margin-top: 90px; }

/* ===== CORREÇÃO ESPECÍFICA PARA O BOTÃO NO MODAL ===== */
/* Remove regras genéricas que podem estar causando conflito */
.modal-content {
    display: block !important; /* Força layout de bloco tradicional */
    text-align: center;
}

#btnOrcarWpp {
    display: block !important;
    width: 100% !important;
    margin-top: 25px !important;
    clear: both !important; /* Garante que fique abaixo de elementos flutuantes */
    float: none !important; /* Remove qualquer flutuação */
}

/* Estilos específicos para garantir a ordem correta no modal de produtos */
#productModal .modal-content > * {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

#productModal .modal-content #btnOrcarWpp {
    margin-top: 25px;
    margin-bottom: 0;
    order: 9999 !important;
}

/* Garante que a imagem ocupe toda a largura e fique acima do botão */
#productModal #modal-image {
    display: block;
    max-width: 100%;
    margin: 15px auto;
    clear: both;
}

/* Remove qualquer estilo de flexbox que possa estar causando problemas */
#productModal .modal-content {
    display: block !important;
}

/* Força a quebra de linha após a imagem */
#productModal #modal-image::after {
    content: "";
    display: table;
    clear: both;
}
/* ===== HOME – Carrossel de Produtos (escopado) ===== */
.home-products { margin: 30px 0 20px; }
.home-products .carousel-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.home-products .carousel-nav .carousel-btn {
  border: 1px solid var(--primary-light);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-products .carousel-nav .carousel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.08);
}
.home-products .carousel { position: relative; }
.home-products .carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) transparent;
  padding: 6px 2px 12px;
  scroll-snap-type: x mandatory;
}
@media (min-width: 768px) {
  .home-products .carousel-track { grid-auto-columns: calc((100% - 32px) / 3); }
}
@media (min-width: 1024px) {
  .home-products .carousel-track { grid-auto-columns: calc((100% - 48px) / 4); }
}
.home-products .carousel-track::-webkit-scrollbar { height: 6px; }
.home-products .carousel-track::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
.home-products .carousel-track::-webkit-scrollbar-track { background: var(--gray-light); border-radius: 4px; }

/* Cartão dentro do carrossel – isolado para não afetar outras páginas */
.home-products .product-card {
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}
.home-products .product-image {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: var(--#fdfdfd);
  padding: 10px;
}
.home-products .product-image img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.home-products .product-info { padding: 14px; }
.home-products .product-title { color: var(--primary); font-size: 1rem; margin-bottom: 6px; }
.home-products .product-description { color: var(--text-light); margin-bottom: 10px; font-size: .95rem; }
