/* ============================================================
   NAWES — Estilos de Componentes
   Extraído de: layout_topo.php, layout_rodape.php, index.php
   Requer: Font Awesome 6 Free (carregado via CDN no layout_topo.php)
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 520px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1; /* sem filtro — imagem na cor original */
}
.hero-overlay {
    display: none; /* overlay removido — imagem sem filtro */
}
.hero-conteudo {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
}
.hero-inner {
    display: block !important; /* sobrescreve display:grid do estilo.css */
    max-width: 560px;
    margin-left: 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(0,51,153,.25);
    color: #7ba7ff;
    border: 1px solid rgba(0,51,153,.4);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    padding: 4px 14px;
    letter-spacing: .5px;
    margin-bottom: 18px;
}
.hero-titulo {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    font-family: 'Zebulon', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hero-titulo-destaque { color: #4d94ff; }
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    margin-bottom: 32px;
}
.hero-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-btn-primario {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #003399;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s;
}
.hero-btn-primario:hover { background: #002280; color: #fff; }
.hero-btn-secundario {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.3);
    transition: background .2s;
}
.hero-btn-secundario:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ── FEATURES STRIP ───────────────────────────────────────── */
.features-strip {
    background: #003399;
    padding: 24px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-right: 1px solid rgba(255,255,255,.2);
}
.feature-item:last-child { border-right: none; }
.feature-icone {
    font-size: 1.8rem;
    color: rgba(255,255,255,.85);
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}
.feature-titulo {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
}
.feature-desc {
    font-size: .75rem;
    color: rgba(255,255,255,.7);
    margin: 0;
    line-height: 1.4;
}

/* ── NOSSAS LINHAS ────────────────────────────────────────── */
.secao-linhas {
    padding: 64px 0;
    background: #f8f9fa;
}
.secao-titulo-centro {
    text-align: center;
    margin-bottom: 40px;
}
.secao-titulo-centro h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.secao-titulo-centro p {
    color: #6b7280;
    font-size: .95rem;
}
.linhas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.linha-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 4/3;

    transition: transform .25s, box-shadow .25s;
}
.linha-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
}
.linha-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.linha-card-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #003399, #002280);
}
.linha-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
}
.linha-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 16px;
}
.linha-card-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
}
.linha-card-info span {
    font-size: .78rem;
    color: rgba(255,255,255,.8);
}

/* ── BANNER LINHAS ────────────────────────────────────────── */
.secao-banner-linhas { padding: 40px 0; background: #fff; }
.banner-linhas-box {
    background: linear-gradient(to right, #003399, #003a99);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.banner-linhas-box h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.banner-linhas-box p {
    color: rgba(255,255,255,.8);
    margin: 0 0 4px;
    font-size: .9rem;
}
.banner-linhas-box p:last-child { margin: 0; }
.banner-linhas-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.banner-linhas-btn {
    padding: 7px 18px;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    background: rgba(255,255,255,.1);
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.banner-linhas-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ── PRODUTOS EM DESTAQUE ─────────────────────────────────── */
.secao-destaques {
    padding: 64px 0;
    background: rgba(248,249,250,.6);
}
.destaques-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.destaques-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 4px;
}
.destaques-header p {
    color: #6b7280;
    margin: 0;
    font-size: .9rem;
}
.btn-ver-todos {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    background: #fff;
    transition: border-color .2s;
}
.btn-ver-todos:hover { border-color: #003399; color: #003399; }
.destaques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.produto-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #f0f0f0;
    transition: box-shadow .2s, transform .2s;
}
.produto-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.produto-card-img {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f4f5f7;
}
.produto-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.produto-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c8e0;
    font-size: 2rem;
}
.produto-card-info { padding: 14px; }
.produto-card-categoria {
    font-size: .72rem;
    color: #003399;
    font-weight: 600;
    margin: 0 0 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.produto-card-nome {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.3;
}
.produto-card-material {
    font-size: .78rem;
    color: #6b7280;
    margin: 0;
}
.produto-card-embalagem {
    font-size: .72rem;
    color: #9ca3af;
    margin: 4px 0 0;
}
.produto-vazio {
    text-align: center;
    padding: 64px 0;
    color: #9ca3af;
}
.produto-vazio p { margin: 0 0 4px; font-weight: 600; }
.produto-vazio small { font-size: .85rem; }

/* ── CTA FINAL ────────────────────────────────────────────── */
.secao-cta { padding: 64px 0; background: #fff; }
.cta-box { text-align: center; }
.cta-box h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.cta-box p {
    color: #6b7280;
    margin: 0 auto 32px;
    max-width: 480px;
    line-height: 1.6;
}
.cta-acoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.cta-btn-primario {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #003399;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s;
}
.cta-btn-primario:hover { background: #002280; color: #fff; }
.cta-btn-secundario {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #374151;
    font-weight: 700;
    font-size: .95rem;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #d1d5db;
    transition: border-color .2s, color .2s;
}
.cta-btn-secundario:hover { border-color: #003399; color: #003399; }

/* ── WHATSAPP FAB + MODAL ─────────────────────────────────── */
@keyframes waPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
    70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@keyframes waSlide {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.wa-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9000;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.5);
    cursor: pointer;
    border: none;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    animation: waPulse 2s infinite;
}
.wa-fab:hover { transform: scale(1.08); animation: none; box-shadow: 0 6px 28px rgba(37,211,102,.65); }
.wa-fab i { font-size: 1.7rem; color: #fff; }

.wa-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9001;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 28px 100px 0;
}
.wa-modal-overlay.aberto { display: flex; }
.wa-modal {
    background: #fff;
    border-radius: 16px;
    width: 340px;
    max-width: calc(100vw - 40px);
    box-shadow: 0 8px 40px rgba(0,0,0,.22);
    overflow: hidden;
    animation: waSlide .22s ease;
}
.wa-modal-header {
    background: #075E54;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.wa-modal-header-icon {
    width: 46px;
    height: 46px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    color: #fff;
}
.wa-modal-header-info h4 { color: #fff; font-size: .95rem; font-weight: 700; margin: 0 0 2px; }
.wa-modal-header-info p  { color: rgba(255,255,255,.75); font-size: .78rem; margin: 0; }
.wa-modal-fechar {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.wa-modal-fechar:hover { color: #fff; }
.wa-modal-body { padding: 20px 18px; }
.wa-modal-body > p { font-size: .85rem; color: #555; margin: 0 0 16px; }
.wa-campo { margin-bottom: 14px; }
.wa-campo label { display: block; font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.wa-campo input,
.wa-campo textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .88rem;
    font-family: inherit;
    color: #1a1a2e;
    box-sizing: border-box;
    transition: border-color .2s;
    resize: vertical;
}
.wa-campo input:focus,
.wa-campo textarea:focus { outline: none; border-color: #25D366; }
.wa-btn-enviar {
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s;
}
.wa-btn-enviar:hover { background: #1ebe5d; }
.wa-nota { text-align: center; font-size: .75rem; color: #9ca3af; margin-top: 10px; }

/* ── RESPONSIVO ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-conteudo { padding-left: 0; }
    .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
    .feature-item:last-child { border-bottom: none; }
    .banner-linhas-box { flex-direction: column; }
    .destaques-header { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════
   CATÁLOGO & PRODUTO — Estilos
   ══════════════════════════════════════════════════════════════ */

/* ── Cabeçalho de Página ──────────────────────────────────── */
.pagina-cabecalho {
    background: linear-gradient(135deg, #003399 0%, #001f66 100%);
    padding: 48px 0 40px;
    text-align: center;
}
.pagina-cabecalho h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}
.pagina-cabecalho p {
    color: rgba(255,255,255,.75);
    margin: 0;
    font-size: .95rem;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: .82rem;
    color: #6b7280;
}
.breadcrumb a { color: #003399; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #d1d5db; }

/* ── Seção genérica ───────────────────────────────────────── */
.secao { padding: 48px 0; }
.secao-titulo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 28px;
}
.secao-relacionados { background: #f8f9fa; }

/* ── Layout Catálogo (sidebar + grade) ───────────────────── */
.catalogo-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}
.catalogo-filtros {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 80px;
}
.filtros-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.filtros-cabecalho h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.filtros-limpar {
    font-size: .78rem;
    color: #003399;
    text-decoration: none;
}
.filtros-limpar:hover { text-decoration: underline; }
.filtro-grupo { margin-bottom: 20px; }
.filtro-grupo > label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.filtro-opcoes { display: flex; flex-direction: column; gap: 6px; }
.filtro-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: .88rem;
    color: #374151;
}
.filtro-radio input[type="radio"] { accent-color: #003399; }
.input-busca {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}
.input-busca input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: .88rem;
    color: #1a1a2e;
    outline: none;
    background: #fff;
}
.input-busca button {
    background: #003399;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
}
.input-busca button svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }

/* ── Info + Visualização ──────────────────────────────────── */
.catalogo-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.catalogo-info p { margin: 0; font-size: .88rem; color: #6b7280; }
.catalogo-visualizacao { display: flex; gap: 4px; }
.btn-visualizacao {
    width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all .15s;
}
.btn-visualizacao svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-visualizacao.ativo { background: #003399; border-color: #003399; color: #fff; }
.btn-visualizacao.ativo svg { stroke: #fff; }

/* ── Grade de Produtos ────────────────────────────────────── */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.produtos-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
/* Modo lista */
.produtos-grid.lista {
    grid-template-columns: 1fr;
}
.produtos-grid.lista .produto-card {
    display: grid;
    grid-template-columns: 120px 1fr;
}
.produtos-grid.lista .produto-card-imagem {
    aspect-ratio: 1;
    height: 120px;
}

/* ── Card de Produto ──────────────────────────────────────── */
.produto-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: box-shadow .2s, transform .2s;
    display: block;
    text-decoration: none;
}
.produto-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
    transform: translateY(-3px);
}
.produto-card-imagem-link { display: block; }
.produto-card-imagem {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f4f5f7;
    position: relative;
}
.produto-card-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.produto-card:hover .produto-card-imagem img { transform: scale(1.04); }
.produto-sem-imagem {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #c0c8e0;
}
.produto-sem-imagem svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.produto-sem-imagem.grande svg { width: 64px; height: 64px; }
.produto-sem-imagem span { font-size: .8rem; color: #b0b8d0; }
.produto-card-info { padding: 14px; }
.produto-referencia {
    font-size: .72rem;
    color: #003399;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
    margin-bottom: 4px;
}
.produto-card-nome {
    font-size: .92rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
    line-height: 1.3;
}
.produto-card-nome a { color: inherit; text-decoration: none; }
.produto-card-nome a:hover { color: #003399; }
.produto-card-meta {
    font-size: .78rem;
    color: #6b7280;
    margin: 0 0 12px;
}

/* ── Botão Adicionar ao Orçamento (card) ─────────────────── */
.btn-adicionar-orcamento {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 14px;
    background: #003399;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none;
}
.btn-adicionar-orcamento:hover { background: #002280; transform: translateY(-1px); }
.btn-adicionar-orcamento svg { stroke: currentColor; flex-shrink: 0; }

/* ── Estado Vazio ─────────────────────────────────────────── */
.estado-vazio {
    text-align: center;
    padding: 64px 0;
    color: #9ca3af;
}
.estado-vazio svg { width: 48px; height: 48px; stroke: currentColor; fill: none; stroke-width: 1.5; margin-bottom: 16px; }
.estado-vazio h3 { font-size: 1.1rem; font-weight: 700; color: #374151; margin: 0 0 8px; }
.estado-vazio p { margin: 0; font-size: .9rem; }
.estado-vazio a { color: #003399; }

/* ── Paginação ────────────────────────────────────────────── */
.paginacao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.paginacao-btn,
.paginacao-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    background: #fff;
    transition: all .15s;
}
.paginacao-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.paginacao-btn:hover,
.paginacao-num:hover { border-color: #003399; color: #003399; }
.paginacao-num.ativo { background: #003399; border-color: #003399; color: #fff; }

/* ── Modal Orçamento ──────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.ativo { display: flex; }
.modal-orcamento {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 16px 64px rgba(0,0,0,.25);
    overflow: hidden;
    animation: modalEntrar .22s ease;
}
@keyframes modalEntrar {
    from { opacity: 0; transform: scale(.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-orcamento-header {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.modal-orcamento-produto {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.modal-orcamento-thumb {
    width: 64px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f4f5f7;
}
.modal-orcamento-ref {
    font-size: .72rem;
    color: #003399;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
    margin-bottom: 3px;
}
.modal-orcamento-produto h3 {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 3px;
    line-height: 1.3;
}
.modal-orcamento-meta {
    font-size: .78rem;
    color: #6b7280;
}
.modal-fechar {
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
    flex-shrink: 0;
    margin-top: -2px;
}
.modal-fechar:hover { color: #374151; }
.modal-orcamento-body { padding: 20px; }
.modal-campo { margin-bottom: 18px; }
.modal-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
}
.obrigatorio { color: #ef4444; }
.modal-orcamento-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.btn-cancelar-modal {
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: .88rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: border-color .15s;
}
.btn-cancelar-modal:hover { border-color: #9ca3af; }
.btn-confirmar-modal {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: #003399;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.btn-confirmar-modal:hover { background: #002280; }
.btn-confirmar-modal svg { stroke: currentColor; }

/* ── Seletor de Tamanhos ──────────────────────────────────── */
.tamanhos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tamanho-btn {
    min-width: 44px;
    height: 40px;
    padding: 0 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: .85rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: all .15s;
}
.tamanho-btn:hover { border-color: #003399; color: #003399; }
.tamanho-btn.ativo { background: #003399; border-color: #003399; color: #fff; }
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%,60%  { transform: translateX(-6px); }
    40%,80%  { transform: translateX(6px); }
}
.tamanhos-grid.shake { animation: shake .4s ease; }

/* ── Controle de Quantidade ───────────────────────────────── */
.quantidade-controle {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}
.qtd-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    font-size: 1.2rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qtd-btn:hover { background: #e5e7eb; }
.quantidade-controle input[type="number"] {
    width: 56px;
    height: 40px;
    border: none;
    border-left: 1.5px solid #d1d5db;
    border-right: 1.5px solid #d1d5db;
    text-align: center;
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a2e;
    outline: none;
    -moz-appearance: textfield;
}
.quantidade-controle input[type="number"]::-webkit-inner-spin-button,
.quantidade-controle input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Toast de Feedback ────────────────────────────────────── */
.toast-orcamento {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a2e;
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    z-index: 9200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.toast-orcamento.visivel {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Sacola / Contador no Header ──────────────────────────── */
.nav-sacola {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
#contadorCarrinho {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid #fff;
}
#contadorCarrinho.visivel { display: flex; }

/* ── Lightbox de Zoom ─────────────────────────────────────── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9500;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.ativo { display: flex; }
.lightbox-fechar {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color .15s;
}
.lightbox-fechar:hover { color: #fff; }
.lightbox-controles {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,.5);
    border-radius: 999px;
    padding: 6px 14px;
    z-index: 10;
}
.lightbox-controles button {
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.lightbox-controles button:hover:not(:disabled) { background: rgba(255,255,255,.15); }
.lightbox-controles button:disabled { opacity: .35; cursor: default; }
.lightbox-escala { color: rgba(255,255,255,.8); font-size: .8rem; min-width: 40px; text-align: center; }
.lightbox-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    transition: transform .2s;
    cursor: zoom-in;
}
.lightbox-img.arrastando { transition: none; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    z-index: 10;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-nav--prev { left: 16px; }
.lightbox-nav--next { right: 16px; }
.lightbox-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: none;
    cursor: pointer;
    transition: background .15s;
    padding: 0;
}
.lightbox-dot.ativo { background: #fff; }
.lightbox-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .72rem;
    color: rgba(255,255,255,.4);
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   PÁGINA DE DETALHE DO PRODUTO
   ══════════════════════════════════════════════════════════════ */

.produto-detalhe-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ── Galeria ──────────────────────────────────────────────── */
.produto-galeria { position: sticky; top: 80px; }
.produto-galeria-principal {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f5f7;
    aspect-ratio: 3/4;
    cursor: zoom-in;
}
.produto-galeria-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.produto-galeria-principal:hover img { transform: scale(1.03); }
.galeria-zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: background .15s;
}
.galeria-zoom-btn:hover { background: #fff; }
.galeria-zoom-btn svg { stroke: currentColor; fill: none; }
.produto-galeria-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.galeria-thumb {
    width: 64px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f4f5f7;
    padding: 0;
    cursor: pointer;
    transition: border-color .15s;
    flex-shrink: 0;
}
.galeria-thumb img { width: 100%; height: 100%; object-fit: cover; }
.galeria-thumb.ativo { border-color: #003399; }
.galeria-thumb:hover { border-color: #6b9eff; }

/* ── Informações do Produto ───────────────────────────────── */
.produto-info-topo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.produto-categoria-badge {
    font-size: .72rem;
    font-weight: 700;
    color: #003399;
    background: #e8f0ff;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.produto-referencia-badge {
    font-size: .72rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 999px;
}
.produto-titulo {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 20px;
    line-height: 1.2;
}
.produto-atributos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.produto-atributo {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 100px;
}
.atributo-label {
    display: block;
    font-size: .72rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 3px;
}
.atributo-valor {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: #1a1a2e;
}
.produto-descricao {
    font-size: .92rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #003399;
}

/* ── Tamanho + Quantidade (detalhe) ──────────────────────── */
.produto-tamanho-section,
.produto-quantidade-section { margin-bottom: 20px; }
.produto-tamanho-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
}
.tamanho-erro {
    font-size: .8rem;
    color: #ef4444;
    margin-top: 8px;
}

/* ── Botões de Ação (detalhe) ─────────────────────────────── */
.btn-adicionar-grande {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #003399;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-bottom: 10px;
}
.btn-adicionar-grande:hover { background: #002280; transform: translateY(-1px); }
.btn-adicionar-grande svg { stroke: currentColor; flex-shrink: 0; }
.btn-ver-orcamento {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 24px;
    background: #fff;
    color: #003399;
    border: 1.5px solid #003399;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
    margin-bottom: 20px;
}
.btn-ver-orcamento:hover { background: #f0f4ff; }
.btn-ver-orcamento svg { stroke: currentColor; }
.produto-acoes-secundarias {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.btn-voltar-catalogo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    color: #6b7280;
    text-decoration: none;
    transition: color .15s;
}
.btn-voltar-catalogo:hover { color: #003399; }
.btn-voltar-catalogo svg { stroke: currentColor; fill: none; }
.btn-whatsapp-produto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: #16a34a;
    text-decoration: none;
    transition: color .15s;
}
.btn-whatsapp-produto:hover { color: #15803d; }

/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .catalogo-layout { grid-template-columns: 200px 1fr; gap: 20px; }
    .produto-detalhe-layout { grid-template-columns: 1fr; gap: 28px; }
    .produto-galeria { position: static; }
}
@media (max-width: 768px) {
    .catalogo-layout { grid-template-columns: 1fr; }
    .catalogo-filtros {
        position: static;
        display: none; /* escondido por padrão no mobile, toggle via JS */
    }
    .catalogo-filtros.aberto { display: block; }
    .produtos-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .produto-detalhe-layout { grid-template-columns: 1fr; }
    .lightbox-nav--prev { left: 8px; }
    .lightbox-nav--next { right: 8px; }
    .lightbox-hint { display: none; }
    .toast-orcamento { font-size: .8rem; padding: 10px 18px; }
}
