/* =========================================
   1. VARIÁVEIS GLOBAIS (PALETA DA MARCA)
   ========================================= */
:root {
    /* Cores Principais */
    --primary-color: #2e3144;    /* Azul Escuro Profundo (Logo) */
    --secondary-color: #28a745;  /* Verde Esmeralda (Ação/Preço) */
    --accent-color: #ffc107;     /* Amarelo (Oferta/Destaque) */
    
    /* Cores de Texto e Fundo */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-body: #f4f7f6;
    --bg-white: #ffffff;
    
    /* Bordas e Sombras */
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    
    /* Medidas */
    --container-width: 1360px;
    --header-height: 80px;
    --sidebar-width: 260px;
}

/* Reset Básico */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }
body { background-color: var(--bg-body); color: var(--text-dark); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
button { cursor: pointer; font-family: 'Roboto', sans-serif; }

/* Utilitário de Container Centralizado */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER E TOPO (Global)
   ========================================= */
.top-bar {
    background-color: #1a1c29;
    color: var(--bg-white);
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar-content {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}
.top-bar-content span {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.main-header {
    background-color: var(--primary-color);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 40px;
}

.logo-img { height: 50px; }

/* Busca */
.search-area { flex: 1; max-width: 700px; }
.search-box {
    display: flex;
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
}
.search-box input {
    flex: 1;
    padding: 0 15px;
    border: none;
    outline: none;
    font-size: 1rem;
    height: 45px;
}
.btn-search {
    background: var(--secondary-color);
    border: none;
    width: 50px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-search:hover { background: #218838; }

/* Ações do Usuário */
.user-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--bg-white);
}
.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.action-item:hover { opacity: 0.8; }
.small-text { display: block; font-size: 0.75rem; font-weight: 300; }
.bold-text { display: block; font-size: 0.9rem; font-weight: 700; }

.cart-item { position: relative; }
.cart-badge {
    position: absolute;
    top: -5px;
    left: 18px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--primary-color);
}

/* =========================================
   3. LAYOUT HOME (Sidebar + Vitrine)
   ========================================= */
.main-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
    align-items: start;
}

/* Sidebar */
.sidebar {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 100px;
}
.sidebar-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 20px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.department-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}
.department-nav ul li a:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
    padding-left: 25px;
}
.department-nav ul li:last-child a { border-bottom: none; }
.oferta-dia a { color: #d63384 !important; font-weight: bold; }
.sidebar-banner { margin-top: 20px; border-radius: 8px; overflow: hidden; display: none; }
.sidebar-banner img { width: 100%; display: block; }

/* Conteúdo Principal */
.content-area { width: 100%; }

.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1c29 100%);
    color: white;
    border-radius: 12px;
    padding: 60px 40px;
    margin-bottom: 40px;
    background-image: url('https://images.unsplash.com/photo-1604719312566-b7e60e2e171b?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(46, 49, 68, 0.85);
    border-radius: 12px;
}
.banner-content { position: relative; z-index: 2; max-width: 500px; }
.hero-banner h1 { font-size: 3rem; font-weight: 700; margin-bottom: 15px; line-height: 1.1; }
.hero-banner p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

.cta-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    display: inline-block;
}
.cta-button:hover { background-color: #218838; transform: translateY(-2px); }

/* Vitrine */
.showcase { width: 100%; }
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.section-title h2 { font-size: 1.5rem; color: var(--primary-color); display: flex; align-items: center; gap: 10px; }
.view-all { color: var(--secondary-color); font-weight: 600; display: flex; align-items: center; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover { border-color: var(--secondary-color); box-shadow: var(--shadow-md); transform: translateY(-5px); }

.product-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 1;
}

.product-img {
    height: 180px; width: 100%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px;
}
.product-img img { max-height: 100%; max-width: 100%; object-fit: contain; }

.product-info h3 {
    font-size: 0.95rem; color: var(--text-dark);
    margin-bottom: 10px; line-height: 1.4;
    height: 40px; overflow: hidden;
}

.prices { margin-top: auto; }
.price-label { display: block; font-size: 0.8rem; color: var(--text-light); }
.retail { text-decoration: line-through; color: #999; }
.wholesale { display: block; font-size: 1.4rem; color: var(--primary-color); font-weight: 800; margin-top: 5px; }

.btn-add-cart {
    margin-top: 15px; width: 100%; padding: 10px;
    border: 1px solid var(--secondary-color);
    background: transparent; color: var(--secondary-color);
    font-weight: bold; border-radius: 4px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: 0.2s;
}
.btn-add-cart:hover { background: var(--secondary-color); color: white; }


/* =========================================
   4. PÁGINA DE DETALHES DO PRODUTO (produto.html)
   ========================================= */
.breadcrumb-bar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}
.breadcrumb-bar .container { display: flex; align-items: center; gap: 8px; }
.breadcrumb-bar a:hover { color: var(--secondary-color); text-decoration: underline; }
.breadcrumb-bar .current { font-weight: bold; color: var(--primary-color); }

.product-detail-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Galeria */
.product-gallery { display: flex; flex-direction: column; gap: 20px; }
.main-image-frame {
    background: #fff; border: 1px solid #eee; border-radius: 8px;
    height: 500px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.main-image-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumbnail-list { display: flex; gap: 15px; justify-content: center; }
.thumbnail-list img {
    width: 80px; height: 80px; border: 1px solid #ddd; border-radius: 4px;
    cursor: pointer; opacity: 0.6; transition: 0.2s;
}
.thumbnail-list img:hover, .thumbnail-list img.active { opacity: 1; border-color: var(--secondary-color); }

/* Info do Produto */
.product-info-col { padding: 10px; }
.sku-code { font-size: 0.8rem; color: #999; display: block; margin-bottom: 10px; }
#prod-nome { font-size: 2rem; color: var(--primary-color); line-height: 1.2; margin-bottom: 15px; }
.rating-box { display: flex; align-items: center; gap: 5px; font-size: 0.9rem; color: #777; margin-bottom: 30px; }

/* Preços Detalhados */
.price-box {
    background: #f8f9fa; border-radius: 8px; padding: 20px;
    margin-bottom: 30px; border: 1px solid #eee;
}
.price-retail {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; color: #666; font-size: 0.9rem;
}
.price-retail strong { text-decoration: line-through; color: #999; font-size: 1.1rem; }

.price-wholesale-highlight {
    background: #e8f5e9; border: 1px solid #c8e6c9; border-radius: 6px;
    padding: 15px; text-align: center; position: relative;
}
.tag-atacado {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--secondary-color); color: white;
    font-size: 0.75rem; font-weight: bold; padding: 4px 12px; border-radius: 20px;
}
.big-price { font-size: 2.5rem; color: var(--secondary-color); font-weight: 900; display: block; margin: 5px 0; }
.unit-info { font-size: 0.9rem; color: #666; }

/* Botões de Compra */
.purchase-actions { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.quantity-selector { display: flex; border: 1px solid #ddd; border-radius: 4px; }
.quantity-selector button { background: #eee; border: none; width: 40px; height: 45px; font-size: 1.2rem; cursor: pointer; }
.quantity-selector input { width: 60px; text-align: center; border: none; font-size: 1.1rem; font-weight: bold; }

.buttons-grid { display: grid; gap: 15px; margin-bottom: 30px; }
.btn-buy-now {
    background: var(--secondary-color); color: white; border: none; padding: 18px;
    font-size: 1.2rem; font-weight: bold; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: 0.3s; box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}
.btn-buy-now:hover { background: #218838; transform: translateY(-2px); }

.btn-add-cart-large {
    background: white; color: var(--primary-color); border: 2px solid var(--primary-color);
    padding: 15px; font-weight: bold; border-radius: 6px; transition: 0.3s;
}
.btn-add-cart-large:hover { background: #f0f0f0; }

/* Simulador Frete */
.shipping-calc { border-top: 1px solid #eee; padding-top: 20px; }
.shipping-calc h3 { font-size: 1rem; color: var(--primary-color); display: flex; gap: 10px; margin-bottom: 15px; }
.input-cep-row { display: flex; gap: 10px; margin-bottom: 10px; }
.input-cep-row input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.input-cep-row button { padding: 0 20px; background: var(--primary-color); color: white; border: none; border-radius: 4px; font-weight: bold; }
.cep-link { font-size: 0.8rem; color: #777; text-decoration: underline; }

/* Tabs Descrição */
.tabs-header { display: flex; gap: 20px; border-bottom: 2px solid #eee; margin-bottom: 20px; }
.tab-btn { background: none; border: none; padding: 15px 0; font-size: 1.1rem; color: #777; position: relative; }
.tab-btn.active { color: var(--primary-color); font-weight: bold; }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background: var(--secondary-color); }


/* =========================================
   5. CARRINHO E CHECKOUT (carrinho.html / checkout.html)
   ========================================= */

/* Header Simplificado */
.checkout-header {
    background: white; padding: 20px 0; border-bottom: 1px solid #eee; margin-bottom: 40px;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }

/* Steps (1 - 2 - 3) */
.checkout-steps { display: flex; align-items: center; gap: 10px; }
.step { display: flex; align-items: center; gap: 8px; color: #ccc; font-weight: bold; font-size: 0.9rem; }
.step.active { color: var(--primary-color); }
.step.completed .step-num { background: var(--secondary-color); border-color: var(--secondary-color); color: white; }
.step-num {
    width: 28px; height: 28px; border: 2px solid #ccc; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.step.active .step-num { border-color: var(--primary-color); color: var(--primary-color); }
.line { width: 40px; height: 2px; background: #eee; }
.line.active { background: var(--primary-color); }
.secure-badge {
    color: #28a745; font-size: 0.85rem; display: flex; align-items: center; gap: 5px;
    font-weight: bold; background: #e8f5e9; padding: 5px 12px; border-radius: 20px;
}

/* Layout Carrinho */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }

/* Item do Carrinho */
.cart-item {
    display: grid; grid-template-columns: 80px 2fr 1fr 1fr 40px;
    align-items: center; gap: 20px; background: white; padding: 20px;
    border-radius: 8px; border: 1px solid #eee; margin-bottom: 15px;
}
.item-img img { width: 100%; border-radius: 4px; }
.item-info h3 { font-size: 1rem; color: var(--primary-color); margin-bottom: 5px; }
.item-sku { font-size: 0.75rem; color: #999; }
.qty-control { display: flex; border: 1px solid #ddd; border-radius: 4px; width: fit-content; }
.qty-control button { width: 30px; border: none; background: #f5f5f5; }
.qty-control input { width: 40px; text-align: center; border: none; }
.item-price { text-align: right; }
.unit-price { display: block; font-size: 0.8rem; color: #777; }
.total-price { display: block; color: var(--primary-color); font-size: 1.1rem; }
.btn-remove { border: none; background: none; color: #dc3545; }

/* Resumo (Sidebar Carrinho) */
.summary-box {
    background: white; padding: 30px; border-radius: 8px; border: 1px solid #eee; box-shadow: var(--shadow-sm);
}
.summary-box h2 { font-size: 1.2rem; margin-bottom: 20px; color: var(--primary-color); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.95rem; color: #555; }
.summary-row.discount { color: #28a745; }
.summary-row.total { font-size: 1.4rem; font-weight: bold; color: var(--text-dark); margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.installment-info { text-align: right; font-size: 0.85rem; color: #777; margin-bottom: 20px; }
.btn-checkout-finish {
    width: 100%; background: var(--secondary-color); color: white; padding: 18px;
    border: none; border-radius: 8px; font-size: 1.1rem; font-weight: bold;
    display: flex; justify-content: center; gap: 10px; transition: 0.3s;
}
.btn-checkout-finish:hover { background: #218838; transform: translateY(-2px); }

/* Estados Vazios */
.empty-cart-state { text-align: center; padding: 60px 0; color: #999; }
.empty-cart-state i { margin-bottom: 20px; color: #ddd; }

/* CHECKOUT GRID */
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.card-box { background: white; border: 1px solid #eee; border-radius: 8px; margin-bottom: 20px; overflow: hidden; }
.card-header {
    background: #f8f9fa; padding: 15px 20px; border-bottom: 1px solid #eee;
    font-weight: bold; color: var(--primary-color); display: flex; align-items: center; gap: 10px;
}
.form-grid { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.input-full { grid-column: span 2; }
.input-half { grid-column: span 1; }
input, select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.95rem; }

/* Abas de Pagamento */
.payment-tabs { display: flex; border-bottom: 1px solid #eee; }
.tab-btn {
    flex: 1; padding: 15px; background: #fdfdfd; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border-bottom: 3px solid transparent; font-weight: 500;
}
.tab-btn.active { background: white; border-bottom-color: var(--secondary-color); color: var(--secondary-color); font-weight: bold; }
.tab-carne i { color: #d63384; } 

.payment-content { display: none; padding: 30px; }
.payment-content.active { display: block; animation: fadeIn 0.3s; }

/* Estilos Carnê */
.carne-alert { background: #fff3cd; color: #856404; padding: 15px; border-radius: 6px; margin-bottom: 20px; font-size: 0.9rem; }
.upload-area { border: 2px dashed #ccc; padding: 30px; text-align: center; border-radius: 8px; margin-bottom: 20px; cursor: pointer; }
.upload-area:hover { border-color: var(--primary-color); background: #f4f7f6; }
.btn-finalizar {
    width: 100%; background: var(--primary-color); color: white;
    padding: 18px; border: none; border-radius: 6px; font-weight: bold; font-size: 1.1rem;
}
.btn-finalizar:hover { background: #1a1c29; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   6. RODAPÉ GLOBAL
   ========================================= */
.main-footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    margin-top: 80px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 20px; font-weight: 700; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-light); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--secondary-color); text-decoration: underline; }

.payment-methods .icons span {
    display: inline-block; border: 1px solid #ddd; padding: 5px 10px;
    border-radius: 4px; margin: 0 5px 5px 0; font-size: 0.8rem; color: #555;
}
.copyright { text-align: center; border-top: 1px solid #eee; padding-top: 20px; font-size: 0.8rem; color: #999; }
.simple-footer { padding: 20px; text-align: center; border-top: 1px solid #eee; margin-top: 40px; color: #888; }

/* =========================================
   7. RESPONSIVIDADE GLOBAL
   ========================================= */
@media (max-width: 992px) {
    :root { --container-width: 100%; --sidebar-width: 0px; }
    
    .top-bar { display: none; }
    .main-header { height: auto; position: relative; padding: 15px 0; }
    .header-grid { flex-direction: column; gap: 15px; }
    .search-area { width: 100%; }
    
    .main-layout { display: block; }
    .sidebar { display: none; }
    
    .hero-banner h1 { font-size: 2rem; }
    .hero-banner { padding: 40px 20px; text-align: center; }
    .banner-content { margin: 0 auto; }

    /* Produto Mobile */
    .product-detail-container { grid-template-columns: 1fr; gap: 30px; }
    .main-image-frame { height: 350px; }
    #prod-nome { font-size: 1.5rem; }
    .big-price { font-size: 2rem; }

    /* Carrinho/Checkout Mobile */
    .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 60px 1fr; gap: 10px; }
    .item-qty, .item-price, .btn-remove { grid-column: span 2; }
    .checkout-steps { display: none; }
}
/* =========================================
   ESTILOS DA PÁGINA CARNÊ (Produção)
   ========================================= */

.carne-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    margin-bottom: 50px;
    align-items: center;
}

/* Coluna Benefícios */
.benefits-column h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}
.subtitle { font-size: 1.1rem; color: #666; margin-bottom: 40px; }

.benefit-list { display: flex; flex-direction: column; gap: 30px; }
.benefit-item { display: flex; gap: 20px; align-items: flex-start; }
.icon-box {
    background: #e8f5e9;
    color: var(--secondary-color);
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.benefit-item h3 { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 5px; }
.benefit-item p { font-size: 0.9rem; color: #777; margin: 0; }

/* Coluna Formulário */
.form-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
.form-card h2 { color: var(--primary-color); margin-bottom: 5px; }
.form-card > p { color: #666; margin-bottom: 25px; font-size: 0.9rem; }

/* Inputs Modernos */
.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-size: 0.85rem; font-weight: bold; color: #555; margin-bottom: 8px; }
.input-icon { position: relative; }
.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    width: 18px;
}
.input-icon input {
    width: 100%;
    padding: 12px 12px 12px 45px; /* Espaço para o ícone */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: 0.3s;
}
.input-icon input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.row-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Upload Moderno */
.upload-section { margin-bottom: 20px; }
.upload-box {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}
.upload-box:hover { background-color: #f9f9f9; border-color: var(--primary-color); }
.upload-box input {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer;
}
.upload-box p { color: #777; font-size: 0.9rem; margin-top: 10px; }
.upload-box i { color: var(--secondary-color); }

.checkbox-terms { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: 0.85rem; color: #666; }
.checkbox-terms input { margin-top: 3px; }

.btn-submit-carne {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: 0.3s;
}
.btn-submit-carne:hover { background: #1a1c29; transform: translateY(-2px); }

/* Responsivo */
@media (max-width: 900px) {
    .carne-layout { grid-template-columns: 1fr; gap: 30px; }
    .benefits-column { text-align: center; padding: 0 20px; }
    .benefit-item { align-items: center; text-align: left; }
    .benefits-column h1 { font-size: 1.8rem; }
}
/* =========================================
   ESTILOS LOGIN & MINHA CONTA (Produção)
   ========================================= */

/* --- Login Split Screen --- */
.login-body { height: 100vh; overflow: hidden; background: white; }
.login-split-container { display: flex; height: 100%; }

.login-banner {
    flex: 1;
    background-image: url('https://images.unsplash.com/photo-1567401893414-76b7b1e5a7a5?q=80&w=1000');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.banner-overlay {
    background: rgba(46, 49, 68, 0.9);
    padding: 60px;
    color: white;
    max-width: 500px;
    text-align: center;
    border-radius: 12px;
}
.login-logo-img { height: 60px; margin-bottom: 20px; }
.banner-overlay h1 { font-size: 2.5rem; margin-bottom: 15px; }

.login-form-area {
    flex: 0 0 500px;
    background: white;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    overflow-y: auto;
}
.form-wrapper { width: 100%; max-width: 380px; }
.mobile-logo { display: none; text-align: center; margin-bottom: 30px; }
.mobile-logo img { height: 40px; }

.login-form-area h2 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 5px; }
.login-sub { color: #666; margin-bottom: 30px; }

.btn-google-login {
    width: 100%;
    background: white; border: 1px solid #ddd;
    padding: 12px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-weight: 500; color: #555; cursor: pointer; transition: 0.2s;
}
.btn-google-login:hover { background: #f5f5f5; border-color: #ccc; }
.btn-google-login img { height: 20px; }

.divider-text { text-align: center; margin: 20px 0; color: #999; font-size: 0.85rem; position: relative; }
.divider-text::before, .divider-text::after {
    content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #eee;
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.form-actions { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 20px; }
.forgot-pass { color: var(--secondary-color); font-weight: bold; }

.btn-login-submit {
    width: 100%; background: var(--primary-color); color: white;
    padding: 15px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer;
}
.btn-login-submit:hover { background: #1a1c29; }
.register-link { text-align: center; margin-top: 20px; font-size: 0.9rem; }
.register-link a { color: var(--secondary-color); font-weight: bold; }

/* --- Minha Conta (Dashboard) --- */
.account-layout {
    display: grid; grid-template-columns: 280px 1fr; gap: 40px;
    margin-top: 40px; margin-bottom: 60px;
}
.account-sidebar {
    background: white; border-radius: 12px; border: 1px solid #eee; overflow: hidden; height: fit-content;
}
.user-brief {
    padding: 30px; text-align: center; background: #f8f9fa; border-bottom: 1px solid #eee;
}
.avatar-circle {
    width: 80px; height: 80px; background: var(--primary-color); color: white;
    border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center;
}
.brief-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.member-badge {
    background: var(--accent-color); color: black; font-size: 0.7rem; font-weight: bold;
    padding: 3px 8px; border-radius: 10px;
}

.account-nav a {
    display: flex; align-items: center; gap: 12px; padding: 15px 25px;
    color: #555; border-bottom: 1px solid #f9f9f9; transition: 0.2s;
}
.account-nav a:hover, .account-nav a.active {
    background: #f0fdf4; color: var(--secondary-color); border-left: 4px solid var(--secondary-color);
}

.status-card { margin-bottom: 30px; }
.status-box {
    background: white; padding: 25px; border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; gap: 20px; align-items: center;
}

.orders-list { display: flex; flex-direction: column; gap: 20px; }
.order-card {
    background: white; border: 1px solid #eee; border-radius: 8px; overflow: hidden;
}
.order-header {
    background: #f8f9fa; padding: 15px 20px; display: flex; justify-content: space-between;
    font-size: 0.9rem; border-bottom: 1px solid #eee;
}
.order-body { padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.badge-status { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; }
.badge-status.aprovado { background: #d4edda; color: #155724; }
.badge-status.em_analise_4h { background: #fff3cd; color: #856404; }

.btn-nfe-download {
    background: var(--primary-color); color: white; padding: 10px 15px; border-radius: 6px;
    font-size: 0.9rem; display: flex; gap: 8px; align-items: center;
}
.btn-nfe-download:hover { background: #1a1c29; }
.nfe-waiting { color: #999; font-style: italic; font-size: 0.9rem; display: flex; gap: 5px; }

/* Responsivo Login/Conta */
@media (max-width: 900px) {
    .login-banner { display: none; }
    .login-form-area { flex: 1; padding: 20px; }
    .mobile-logo { display: block; }
    
    .account-layout { grid-template-columns: 1fr; }
    .order-body { flex-direction: column; gap: 15px; align-items: flex-start; }
    .btn-nfe-download { width: 100%; justify-content: center; }
}
/* =========================================
   ESTILOS DO ADMIN DASHBOARD (Produção)
   ========================================= */

.admin-body { background: #f0f2f5; height: 100vh; overflow: hidden; }
.admin-layout { display: grid; grid-template-columns: 250px 1fr; height: 100%; }

/* Sidebar Escura */
.admin-sidebar {
    background: #1a1c29; color: white; display: flex; flex-direction: column;
    justify-content: space-between;
}
.admin-logo {
    padding: 20px; display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-logo img { height: 30px; }
.admin-logo span { font-weight: bold; letter-spacing: 1px; }

.admin-nav { padding: 20px 0; flex: 1; }
.admin-nav a {
    display: flex; align-items: center; gap: 12px; padding: 15px 20px;
    color: #a0a0a0; transition: 0.2s; position: relative;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.05); color: white; }
.admin-nav i { width: 20px; }

.badge-count {
    margin-left: auto; background: rgba(255,255,255,0.2); padding: 2px 8px;
    border-radius: 10px; font-size: 0.75rem;
}
.badge-count.alert { background: #ffc107; color: black; font-weight: bold; }

.admin-logout { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.admin-logout button {
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: white; width: 100%; padding: 10px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; transition: 0.2s;
}
.admin-logout button:hover { background: rgba(255,255,255,0.1); }

/* Conteúdo Principal */
.admin-content { overflow-y: auto; padding: 30px; }

.admin-topbar {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
}
.admin-user-info { display: flex; align-items: center; gap: 15px; }
.avatar-admin {
    width: 40px; height: 40px; background: var(--secondary-color); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold;
}

/* KPIs Cards */
.kpi-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; margin-bottom: 30px;
}
.kpi-card {
    background: white; padding: 20px; border-radius: 12px;
    box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 20px;
}
.kpi-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: white;
}
.kpi-icon.blue { background: #4e73df; }
.kpi-icon.yellow { background: #f6c23e; }
.kpi-icon.green { background: #1cc88a; }
.kpi-icon.red { background: #e74a3b; }
.kpi-info h3 { font-size: 1.5rem; margin-top: 5px; color: #333; }
.kpi-info span { font-size: 0.85rem; color: #888; }

/* Tabela Admin */
.admin-panel { background: white; border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-header {
    padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center;
}
.panel-actions { display: flex; gap: 10px; }
.panel-actions input { padding: 8px 15px; border: 1px solid #ddd; border-radius: 6px; }
.btn-refresh {
    background: white; border: 1px solid #ddd; padding: 8px 15px; border-radius: 6px;
    display: flex; align-items: center; gap: 5px; cursor: pointer;
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #f8f9fa; padding: 15px; text-align: left; font-size: 0.85rem; color: #666; font-weight: bold; }
.admin-table td { padding: 15px; border-bottom: 1px solid #eee; font-size: 0.9rem; vertical-align: middle; }

.status-dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.status-dot.aprovado { background: #1cc88a; }
.status-dot.em_analise_4h { background: #f6c23e; }
.status-dot.reprovado { background: #e74a3b; }

.btn-upload-nfe {
    background: var(--primary-color); color: white; border: none; padding: 6px 12px;
    border-radius: 4px; cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 0.8rem;
}
.btn-link-nfe { color: var(--primary-color); font-weight: bold; font-size: 0.85rem; }
.btn-analise {
    background: #f6c23e; color: black; border: none; padding: 6px 12px;
    border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 0.8rem;
}

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 2000;
}
.modal-content {
    background: white; width: 500px; padding: 30px; border-radius: 12px; position: relative;
}
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; }
.doc-preview {
    height: 250px; background: #eee; margin: 20px 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px;
}
.doc-preview img { max-width: 100%; max-height: 100%; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-approve { flex: 1; background: #1cc88a; color: white; border: none; padding: 12px; border-radius: 6px; cursor: pointer; font-weight: bold; }
.btn-reject { flex: 1; background: #e74a3b; color: white; border: none; padding: 12px; border-radius: 6px; cursor: pointer; font-weight: bold; }

/* Responsivo Admin */
@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; } /* Em produção usaria menu hamburger */
    .table-responsive { overflow-x: auto; }
}
/* Configuração Geral da Logo */
.logo-img, .login-logo-img {
    max-height: 60px; /* Ajuste conforme preferir */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Na barra de navegação (index.html) */
.navbar-brand img {
    max-height: 50px;
}

/* Na tela de Login e Cadastro */
.mobile-logo img {
    max-height: 80px;
    margin-bottom: 20px;
}