/* ===== HERO ===== */
.produtos-hero {
    position: relative;
    width: calc(100% - 40px);
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
}
.produtos-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.60) 0%, rgba(15,50,25,0.50) 100%);
    z-index: 1;
}
.produtos-hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px;
}
.produtos-hero-content h1 {
    color: #ffffff;
    font-size: 52px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* ===== LOGOS BAR ===== */
.fornecedores-logos-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 40px 0 20px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fornecedores-logos-lista {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}
.logo-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 11px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}
.logo-btn img {
    height: 90px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(40%);
    transition: filter 0.3s;
}
.logo-btn:hover img,
.logo-btn.active img {
    filter: grayscale(0%);
}
.logo-btn:hover,
.logo-btn.active {
    border-color: var(--ast-global-color-0);
    background: #f0f7f1;
}
.fornecedores-label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 14px 0 0;
}

/* ===== INSTRUÇÃO ===== */
.produtos-instrucao {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.produtos-instrucao p {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== LAYOUT SIDEBAR + GRID ===== */
.produtos-section {
    padding: 80px 0 60px;
    background: var(--ast-global-color-4);
}
.produtos-layout {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 32px;
    align-items: start;
}

/* ===== SIDEBAR ===== */
.produtos-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 20px;
}
.sidebar-btn {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 10px;
    padding: 7px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}
.sidebar-btn img {
    width: 100%;
    max-width: 110px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(40%);
    transition: filter 0.3s;
}
.sidebar-btn span {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sidebar-btn:hover,
.sidebar-btn.active {
    border: 1px solid var(--ast-global-color-0);
    background: #f0f7f1;
    box-shadow: 0 2px 6px rgba(6,67,25,0.08);
}
.sidebar-btn:hover img,
.sidebar-btn.active img {
    filter: grayscale(0%);
}

/* ===== GRID ===== */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== CARD ===== */
.produto-card {
    background: transparent;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.produto-card:hover {
    border-color: var(--ast-global-color-0);
    box-shadow: 0 6px 20px rgba(6,67,25,0.15);
    transform: translateY(-4px);
}
.produto-imagem {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f0 0%, #e8f0e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.produto-card:hover .produto-imagem img {
    transform: scale(1.06);
}
.produto-imagem .placeholder {
    font-size: 12px;
    color: #aaa;
}
.produto-info {
    padding: 14px;
    background: transparent;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.produto-titulo {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ast-global-color-2);
    line-height: 1.4;
    text-transform: uppercase;
    flex: 1;
}
.produto-codigo {
    margin: 0 0 10px;
    font-size: 11px;
    font-family: monospace;
    color: #666;
}
.produto-codigo span {
    color: var(--ast-global-color-0);
    font-weight: 700;
}
/* Visual dos botões (cor, raio, padding, tipografia, hover) vem do Astra: .ast-button */
.btn-detalhes {
    width: 100%;
    cursor: pointer;
}

/* ===== BOTÃO CATÁLOGO ===== */
.catalogo-btn-wrap {
    text-align: center;
    margin-top: 40px;
}
.btn-catalogo {
    display: inline-block;
    text-decoration: none !important;
}
.btn-catalogo:hover {
    text-decoration: none !important;
}
.catalogo-contato-btn {
    display: none !important;
}

/* ===== NOSSOS NÚMEROS ===== */
.nossos-numeros {
    background: #fff;
    padding: 80px 0;
    border-top: 1px solid #eee;
}
.numeros-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}
.numeros-titulo {
    flex: 0 0 220px;
}
.numeros-titulo h2 {
    font-size: 60px;
    font-weight: 700;
    color: var(--ast-global-color-2);
    line-height: 1.1;
    margin: 0;
    font-family: 'Rubik', sans-serif;
}
.numeros-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.numero-item {
    text-align: center;
}
.numero-linha {
    width: 40px;
    height: 4px;
    background: var(--ast-global-color-0);
    margin: 0 auto 14px;
    border-radius: 2px;
}
.numero-valor {
    font-size: 52px;
    font-weight: 800;
    color: var(--ast-global-color-0);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
    font-family: 'Rubik', sans-serif;
}
.numero-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
}
.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border: none;
    background: rgba(0,0,0,0.06);
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ast-global-color-0);
    font-weight: 700;
}
.modal-close:hover {
    background: rgba(0,0,0,0.10);
    color: #000;
}

/* Layout modal: coluna imagem ajustada ao tamanho real */
.modal-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto auto;
    gap: 20px 24px;
    padding: 28px;
}

/* Imagem proporcional */
.modal-imagem {
    width: 280px;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    grid-column: 1;
    grid-row: 1;
    line-height: 0;
}
.modal-imagem img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Campos lado direito */
.modal-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-column: 2;
    grid-row: 1;
}
.modal-info h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ast-global-color-2);
    text-transform: uppercase;
    line-height: 1.3;
}
.modal-campo {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.modal-campo label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}
.modal-campo p {
    margin: 0;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

/* Descrição full-width abaixo */
#modal-descricao-container {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
#modal-descricao-container label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    display: block;
    margin-bottom: 6px;
}
#modal-descricao {
    margin: 0;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

/* CTA WhatsApp full-width */
.modal-cta {
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid #eee;
    text-align: center;
}
.modal-cta p { margin: 0 0 10px; font-size: 12px; color: #999; }
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}
.btn-whatsapp:hover,
.btn-whatsapp:active,
.btn-whatsapp:focus,
.btn-whatsapp:visited {
    text-decoration: none !important;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
    .produtos-grid { grid-template-columns: repeat(2, 1fr); }
    .numeros-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .produtos-hero { width: calc(100% - 20px); height: 300px; border-radius: 12px; }
    .produtos-hero-content h1 { font-size: 30px; }
    .produtos-layout { grid-template-columns: 1fr; }
    .produtos-sidebar { flex-direction: row; flex-wrap: wrap; position: static; }
    .sidebar-btn { min-height: 44px; }
    .numeros-inner { grid-template-columns: 1fr; }
    .modal-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .produtos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .produto-imagem { height: 160px; }
}

/* ===== BOTÃO CATÁLOGO CONTATO ===== */
.catalogo-contato-btn {
    margin-left: 12px;
}

/* ===== SWIPER CARROSSEL ===== */
.fornecedores-swiper {
    padding: 8px 40px !important;
}
.swiper-slide {
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-slide .logo-btn img {
    height: 60px;
    max-width: 140px;
}
.swiper-button-next,
.swiper-button-prev {
    color: var(--ast-global-color-0) !important;
    transform: scale(0.7);
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: 700;
}

/* ===== COR DINÂMICA POR FORNECEDOR ===== */
.filtro-btn.active {
    border-color: var(--cor-ativa, var(--ast-global-color-0)) !important;
    background: color-mix(in srgb, var(--cor-ativa, var(--ast-global-color-0)) 8%, white) !important;
}
.sidebar-btn.active {
    border-color: var(--cor-ativa, var(--ast-global-color-0)) !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--cor-ativa, var(--ast-global-color-0)) 30%, transparent) !important;
}
.logo-btn:hover { border-color: var(--cor-ativa, var(--ast-global-color-0)) !important; }

/* ===== LOGO TEXTO (fallback sem logo) ===== */
.logo-texto {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.logo-texto-sm {
    font-size: 10px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.3;
}

/* HERO — mesmo padrão de Sobre e Contato: largura total, conteúdo no topo */
.page-template-page-produtos .hero-interno {
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	height: auto;
	min-height: 580px;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
}
.page-template-page-produtos .hero-interno-content {
	justify-content: flex-start;
	padding: 120px max(20px, calc((100% - 1160px) / 2)) 0;
}
@media (max-width: 768px) {
	.page-template-page-produtos .hero-interno { min-height: 340px; }
	.page-template-page-produtos .hero-interno-content { padding: 100px 20px 0; }
}
