/* ============================================
Estilos Principais - Fina Flor Uniformes
Fonte: Poppins | Cores adaptadas da Logomarca
============================================ */
/* === VARIÁVEIS (Atualizadas com as cores da Logo) === / :root { / Paleta Fina Flor / --azul-finaflor: #3b3a7a; / Azul marinho/roxo da tipografia / --azul-claro: #4390b7; / Azul ciano da saia / --verde-agua: #8ecdb2; / Verde suave da saia / --bege-detalhe: #c2b59b; / Detalhe bege do corpo */
/* Variáveis do Sistema */
--verde: var(--azul-claro); 
--verde-dark: #2a698a;
--verde-light: var(--verde-agua);
--verde-bg: #f0f7fa;

--azul: var(--azul-finaflor);
--azul-dark: #292857;
--azul-light: #52509e;

--cinza-50: #f9fafb;
--cinza-100: #f3f4f6;
--cinza-200: #e5e7eb;
--cinza-300: #d1d5db;
--cinza-400: #9ca3af;
--cinza-500: #6b7280;
--cinza-600: #4b5563;
--cinza-700: #374151;
--cinza-900: #111827;

--branco: #ffffff;
--danger: #dc2626;
--warning: #d97706;
--success: var(--azul-claro);

--shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
--shadow: 0 4px 12px rgba(0,0,0,0.05);
--shadow-lg: 0 8px 30px rgba(0,0,0,0.10);

--radius: 10px;
--radius-lg: 16px;

--sidebar-w: 280px;
--topbar-h: 110px; /* Altura do novo cabeçalho (util + nav) */

--font: 'Poppins', sans-serif;
--transition: .2s ease;


}
/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: var(--font);
font-size: 14px;
color: var(--cinza-700);
background: var(--cinza-50);
line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
/* === UTILITÁRIOS === */
.text-verde { color: var(--verde); }
.text-azul { color: var(--azul); }
.text-muted { color: var(--cinza-500); }
.text-danger { color: var(--danger); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.text-center { text-align: center; }
@media (min-width: 1025px) { .d-mobile { display: none !important; } }
@media (max-width: 1024px) { .d-desktop { display: none !important; } }
/* === LAYOUT === */
.layout-wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.main-content {
margin-left: 0;
padding: calc(var(--topbar-h) + 2rem) 2rem 2rem;
max-width: 1400px;
width: 100%;
margin: 0 auto;
flex: 1;
}
/* === NOVO CABEÇALHO HORIZONTAL === */
.header-moderno {
position: fixed;
top: 0; left: 0; right: 0;
background: var(--branco);
box-shadow: var(--shadow-sm);
z-index: 1000;
}
.top-bar-util {
background: var(--azul);
color: white;
font-size: 0.75rem;
padding: 0.4rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.top-bar-util a { color: white; text-decoration: none; display: flex; align-items: center; gap: 0.3rem; transition: color var(--transition); }
.top-bar-util a:hover { color: var(--verde-light); }
.navbar-principal {
display: flex; align-items: center; justify-content: space-between;
padding: 0.5rem 2rem; height: 80px;
}
.logo-center img { height: 60px; width: auto; object-fit: contain; transition: transform var(--transition); }
.logo-center:hover img { transform: scale(1.05); }
.nav-esquerda, .nav-direita { display: flex; align-items: center; gap: 1.5rem; flex: 1; }
.nav-esquerda { justify-content: flex-start; }
.nav-direita { justify-content: flex-end; }
.nav-esquerda a {
font-weight: 600; color: var(--cinza-700);
text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px;
transition: color var(--transition);
}
.nav-esquerda a:hover, .nav-esquerda a.active { color: var(--azul); }
/* Input de busca no cabeçalho */
.nav-direita .search-input-wrap input {
background: var(--cinza-100);
border: 1px solid transparent;
border-radius: 20px;
padding: 0.5rem 1rem 0.5rem 2.25rem;
width: 240px;
font-size: 0.85rem;
transition: all var(--transition);
}
.nav-direita .search-input-wrap input:focus {
background: white; border-color: var(--verde); width: 280px;
box-shadow: 0 0 0 3px rgba(67, 144, 183, 0.15);
outline: none;
}
.nav-direita .search-input-wrap i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--cinza-500); }
/* Dropdown Categorias Desktop */
.dropdown-cat { position: relative; display: inline-block; padding-bottom: 10px; margin-bottom: -10px; }
.dropdown-content {
display: none; position: absolute; background-color: var(--branco);
min-width: 220px; box-shadow: var(--shadow-lg); border-radius: 8px;
z-index: 100; top: 100%; left: 0; padding: 0.5rem 0; border: 1px solid var(--cinza-200);
}
.dropdown-content a {
color: var(--cinza-700); padding: 0.6rem 1.2rem; text-decoration: none;
display: block; text-transform: none; font-size: 0.85rem; font-weight: 500;
}
.dropdown-content a:hover { background-color: var(--verde-bg); color: var(--azul); }
.dropdown-cat:hover .dropdown-content { display: block; animation: slideUp .2s ease forwards; }
@keyframes slideUp {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* === SIDEBAR (Apenas Mobile Agora) === */
.sidebar {
width: var(--sidebar-w);
background: var(--branco);
display: flex;
flex-direction: column;
position: fixed;
top: 0; left: 0; bottom: 0;
overflow-y: auto; overflow-x: hidden;
z-index: 9000;
transform: translateX(-100%);
transition: transform .3s ease;
box-shadow: var(--shadow-lg);
}
.sidebar.open { transform: translateX(0); }
.sidebar-overlay {
display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
z-index: 8999; opacity: 0; transition: opacity .3s;
}
.sidebar-overlay.open { display: block; opacity: 1; }
.sidebar-logo { padding: 1.25rem; border-bottom: 1px solid var(--cinza-100); }
.sidebar-search { padding: 1rem; border-bottom: 1px solid var(--cinza-100); }
.sidebar-search input { width: 100%; padding: .5rem .75rem .5rem 2.25rem; background: var(--cinza-100); border: none; border-radius: 8px; }
.sidebar-nav { padding: 1rem 0; }
.sidebar-nav .nav-section-label { font-size: .65rem; font-weight: 600; text-transform: uppercase; color: var(--cinza-500); padding: 0 1.25rem .4rem; }
.sidebar-nav ul { padding: 0 .5rem; list-style: none; }
.sidebar-nav ul a {
display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem;
color: var(--cinza-700); text-decoration: none; font-size: .9rem; border-radius: 8px;
}
.sidebar-nav ul a:hover { background: var(--cinza-50); color: var(--azul); }
.sidebar-nav ul a i { color: var(--cinza-400); font-size: 1.1rem; }
/* === FLASH MESSAGE === */
.flash-message {
display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem;
border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .875rem; font-weight: 500;
animation: slideDown .3s ease;
}
.flash-message button { margin-left: auto; background: none; border: none; opacity: .6; font-size: 1rem; }
.flash-success { background: var(--verde-100); color: var(--verde-800); border: 1px solid var(--verde-200); }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
/* === BOTÕES === */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
padding: .625rem 1.25rem; border-radius: 8px;
font-family: var(--font); font-size: .875rem; font-weight: 600;
cursor: pointer; border: none; transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--azul); color: white; box-shadow: 0 1px 3px rgba(59, 58, 122, 0.3); }
.btn-primary:hover { background: var(--azul-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--branco); color: var(--cinza-700); border: 1.5px solid var(--cinza-200); }
.btn-secondary:hover { background: var(--cinza-50); border-color: var(--cinza-300); }
.btn-success { background: var(--verde); color: white; }
.btn-success:hover { background: var(--verde-dark); }
.btn-whatsapp { background: var(--bege-detalhe); color: white; }
.btn-whatsapp:hover { background: var(--azul); }
.btn-sm { padding: .4rem .875rem; font-size: .8rem; }
.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }
/* === CARDS DE PRODUTO (UI/UX Melhorada) === */
.produtos-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 1.5rem;
}
.produto-card {
background: var(--branco);
border-radius: var(--radius-lg);
border: none;
box-shadow: var(--shadow);
overflow: hidden;
transition: all var(--transition);
display: flex; flex-direction: column;
}
.produto-card:hover {
box-shadow: var(--shadow-lg);
transform: translateY(-5px);
}
.produto-card-img {
aspect-ratio: 1;
overflow: hidden;
background: #f8fafc;
position: relative;
border-bottom: 1px solid var(--cinza-100);
}
.produto-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.produto-card:hover .produto-card-img img { transform: scale(1.08); }
.badge-destaque {
position: absolute; top: .75rem; left: .75rem;
background: var(--azul); color: white;
font-size: .65rem; font-weight: 700; padding: .25rem .6rem; border-radius: 20px; text-transform: uppercase;
}
.badge-promo-tag {
position: absolute; top: .75rem; right: .75rem;
background: #ef4444; color: white;
font-size: .65rem; font-weight: 700; padding: .25rem .6rem; border-radius: 20px;
}
.btn-favorito {
position: absolute; bottom: .75rem; right: .75rem;
width: 36px; height: 36px;
background: rgba(255,255,255,0.9); border: none; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
color: var(--cinza-400); font-size: 1rem; cursor: pointer; transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.btn-favorito:hover, .btn-favorito.ativo { color: #ef4444; }
.produto-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.produto-categoria-tag { font-size: .7rem; color: var(--verde); font-weight: 700; text-transform: uppercase; margin-bottom: .4rem; }
.produto-titulo { font-size: .95rem; font-weight: 700; color: var(--cinza-900); margin-bottom: .5rem; line-height: 1.3; }
.produto-desc { font-size: .8rem; color: var(--cinza-500); line-height: 1.5; margin-bottom: 1rem; flex: 1; }
.produto-preco-antigo { font-size: .8rem; color: var(--cinza-400); text-decoration: line-through; }
.produto-preco { font-size: 1.35rem; font-weight: 800; color: var(--azul); line-height: 1.1; margin-bottom: 1rem; }
.produto-preco small { font-size: .75rem; font-weight: 500; color: var(--cinza-500); }
.produto-card-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.produto-card-actions .btn-wa {
background: var(--bege-detalhe); color: white; border-radius: 8px; border: none;
display: flex; align-items: center; justify-content: center; width: 40px; font-size: 1.2rem; cursor: pointer; transition: background .2s;
}
.produto-card-actions .btn-wa:hover { background: var(--azul); }
/* === FILTROS === */
.filtros-bar {
background: var(--branco); box-shadow: var(--shadow); border-radius: var(--radius-lg);
padding: 1rem 1.25rem; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end;
}
.filtro-group { display: flex; flex-direction: column; gap: .3rem; min-width: 140px; }
.filtro-group label { font-size: .75rem; font-weight: 600; color: var(--cinza-500); text-transform: uppercase; }
.filtro-group select, .filtro-group input { padding: .5rem .75rem; border: 1px solid var(--cinza-200); border-radius: 8px; font-size: .85rem; outline: none; }
.filtro-group select:focus, .filtro-group input:focus { border-color: var(--verde); }
/* === HERO BANNER (Full width estético) === */
.hero-slider {
position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2.5rem; min-height: 340px;
box-shadow: var(--shadow-lg);
}
.hero-slide {
display: none; padding: 4rem 3rem; min-height: 340px;
background: linear-gradient(135deg, var(--azul) 0%, var(--verde-dark) 100%);
position: relative; align-items: center;
}
.hero-slide.active { display: flex; }
.hero-content { position: relative; z-index: 1; max-width: 550px; color: white; }
.hero-content h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.hero-content p { font-size: 1.1rem; opacity: .9; margin-bottom: 1.5rem; }
.hero-nav {
position: absolute; top: 50%; transform: translateY(-50%);
background: rgba(255,255,255,.2); border: none; color: white;
width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
font-size: 1.2rem; z-index: 10; backdrop-filter: blur(4px); transition: background .2s;
}
.hero-nav:hover { background: rgba(255,255,255,.4); }
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }
/* === CATEGORIAS GRID === */
.categorias-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.categoria-card {
background: var(--branco); box-shadow: var(--shadow); border-radius: var(--radius-lg); padding: 1.5rem 1rem; text-align: center; cursor: pointer; transition: all var(--transition);
}
.categoria-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: var(--verde-bg); }
.categoria-card i { font-size: 2rem; color: var(--verde); margin-bottom: .75rem; display: block; }
.categoria-card .cat-nome { font-size: .85rem; font-weight: 700; color: var(--cinza-700); }
/* === SECTION TITLE === */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title { font-size: 1.4rem; font-weight: 800; color: var(--azul); }
.section-title span { color: var(--verde); }
/* === PRODUTO DETALHE === */
.produto-detalhe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.produto-galeria .main-img { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--cinza-200); margin-bottom: 1rem; }
.produto-galeria .main-img img { width: 100%; height: 100%; object-fit: cover; }
.produto-info h1 { font-size: 1.8rem; font-weight: 800; color: var(--azul); margin-bottom: .5rem; line-height: 1.2; }
.badge-verde { background: var(--verde-bg); color: var(--verde-dark); padding: .25rem .75rem; border-radius: 20px; font-weight: 700; font-size: .75rem; }
.produto-preco-bloco { background: var(--cinza-50); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--cinza-200); }
.preco-principal { font-size: 2.5rem; font-weight: 800; color: var(--verde-dark); line-height: 1; }
/* === FOOTER === */
.site-footer { background: var(--azul); color: var(--cinza-300); margin-top: auto; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 4rem 2rem 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { color: var(--cinza-300); font-size: .85rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--verde-light); }
.footer-social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.footer-social a {
width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); color: white;
display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all var(--transition);
}
.footer-social a:hover { background: var(--verde); transform: translateY(-2px); }
/* === CARRINHO & BUSCA === */
.orc-badge {
position: absolute; top: -5px; right: -5px; background: var(--danger); color: white;
font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px;
display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.btn-orc {
display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem;
background: var(--verde); color: white; border-radius: 8px; font-weight: 700; transition: all .2s; position: relative;
}
.btn-orc:hover { background: var(--verde-dark); }
.busca-sugestoes {
position: absolute; top: calc(100% + 10px); left: 0; right: 0;
background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
z-index: 9999; overflow: hidden; border: 1px solid var(--cinza-200);
}
/* === RESPONSIVIDADE E CORREÇÕES ESPECÍFICAS (MOBILE) === */
@media (max-width: 1024px) {
.main-content { padding-top: calc(var(--topbar-h) + 1rem); padding-left: 1rem; padding-right: 1rem; }
.top-bar-util { justify-content: center; padding: 0.4rem 1rem; }
.top-bar-util .util-left { display: none; }
.navbar-principal { padding: 0.5rem 1rem; height: 70px; }
.logo-center { position: absolute; left: 50%; transform: translateX(-50%); }
.logo-center img { height: 45px; }
.nav-esquerda, .nav-direita { flex: none; gap: 1rem; }
.footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
/* Regras Gerais p/ Evitar Quebra Horizontal */
body, .main-content, .layout-wrapper { overflow-x: hidden !important; max-width: 100vw !important; }
.hero-slide { padding: 2.5rem 1.5rem; min-height: 280px; }
.hero-content h1 { font-size: 1.8rem; }
.produtos-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
.categorias-grid { grid-template-columns: repeat(2, 1fr); }
.footer-grid { grid-template-columns: 1fr; }

/* Configurações de Detalhe de Produto e Tabelas Mobile */
.produto-detalhe-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 0.5rem !important;
}
.produto-galeria, .produto-galeria .main-img { width: 100% !important; max-width: 100% !important; }
.produto-info {
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    word-break: break-word !important; overflow-wrap: break-word !important;
}
.produto-info h1 { font-size: 1.35rem !important; line-height: 1.3 !important; }
.produto-preco-bloco, #configuradorUniforme {
    width: 100% !important; box-sizing: border-box !important; padding: 1rem !important;
}
.produto-info div[style*="display:flex"] { flex-wrap: wrap !important; }
.qty-selector { width: 100% !important; margin-bottom: 0.5rem !important; }
.btn-orc-detalhe, .produto-info .btn-whatsapp, .produto-info .btn-secondary {
    width: 100% !important; box-sizing: border-box !important;
}
.produto-specs-table {
    display: block !important; width: 100% !important;
    overflow-x: auto !important; -webkit-overflow-scrolling: touch !important;
}
.produto-specs-table tr { display: flex !important; justify-content: space-between !important; width: 100% !important; }
.produto-specs-table td { white-space: normal !important; word-break: break-word !important; }

/* Ajustes Painel Admin Responsivo */
.adm-page-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.adm-filters { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; margin-bottom: 1rem; }
.adm-filters select, .adm-filters button, .adm-filters a {
    max-width: 100% !important; width: 100% !important; box-sizing: border-box; text-align: center;
}
.adm-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
.adm-table { min-width: 750px; }
.adm-modal { width: 92% !important; margin: 10px auto; padding: 15px !important; max-height: 85vh !important; }

/* Ajustes Orçamento Mobile */
.orc-layout { grid-template-columns: 1fr; }
.orc-item { flex-wrap: wrap; }
.orc-item-subtotal { margin-left: auto; }
.btn-orc span { display: none; }


}
@media (max-width: 480px) {
.produtos-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
.produto-card-body { padding: .8rem; }
.produto-titulo { font-size: .85rem; }
.produto-preco { font-size: 1.1rem; }
}
