/* =========================================
   VARIÁVEIS GLOBAIS (Padrão Profissional)
   ========================================= */
:root {
    --primary-color: #0f62fe;
    --secondary-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #6c757d;
    --bg-color: #f4f7f6;
    --success-color: #25d366; 
    --danger-color: #dc3545;
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset Básico */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
html, body { overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; background: var(--bg-color); color: var(--text-color); line-height: 1.6; }

/* Fundo Especial para Telas de Login/Cadastro */
body.bg-auth {
    background: linear-gradient(rgba(15, 98, 254, 0.65), rgba(22, 22, 22, 0.9)), url('https://images.unsplash.com/photo-1597733336794-12d05021d510?q=80&w=1920&auto=format&fit=crop') no-repeat center center fixed;
    background-size: cover; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px;
}

/* Animações */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.anim-fade-in { animation: fadeIn 0.8s ease forwards; }
.anim-slide-up { animation: slideUp 0.6s ease forwards; }

/* =========================================
   CABEÇALHO E MENUS PADRONIZADOS
   ========================================= */
.header-vitrine-flex { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #fff; border-bottom: 1px solid #eee; flex-wrap: wrap; gap: 15px; position: sticky; top: 0; z-index: 100;}
.header-vitrine-flex h1 { font-size: 20px; margin: 0; color: #161616; display: flex; align-items: center; gap: 8px; }
.botoes-topo { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }

/* Estilo Base dos Botões do Topo */
.botoes-topo a, .btn-install-app { font-size: 12px; padding: 0 15px; border-radius: 6px; font-weight: bold; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; height: 34px; box-sizing: border-box; margin: 0; transition: var(--transition); border: 1px solid transparent; }

/* NOVA REGRA DE CORES DO MENU */
.botoes-topo a { background: #f0f0f0; color: #555; }
.botoes-topo a:hover { background: #e4e4e4; color: #111; }
.botoes-topo a.ativo { background: #161616; color: white; border-color: #161616; box-shadow: var(--shadow-sm); }
.botoes-topo a.btn-sair { background: #fff; color: var(--danger-color); border-color: #f5c6cb; }
.botoes-topo a.btn-sair:hover { background: var(--danger-color); color: white; border-color: var(--danger-color); }
.btn-install-app { background: var(--primary-color); color: white; border: none; cursor: pointer; display: none; }

/* Submenu Lojista (Estoque) */
.submenu-loja { background: #fff; padding: 12px; text-align: center; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 600; border-bottom: 1px solid #eaeaea; box-shadow: inset 0 -2px 5px rgba(0,0,0,0.02);}
.nav-link { text-decoration:none; color:#666; transition: var(--transition); padding: 8px 15px; border-radius: 6px; font-weight: 600;}
.nav-link:hover { color: var(--primary-color); background: #f0f7ff;}
.nav-link.ativo { color: var(--primary-color); background: #e3f2fd; font-weight: 800; }

/* =========================================
   COMPONENTE: MENSAGENS E ALERTAS
   ========================================= */
.msg { background: #d4edda; color: #155724; padding: 15px; border-radius: 8px; margin-bottom: 15px; font-weight: bold; text-align: center; border: 1px solid #c3e6cb; font-size: 13px;}
.erro { background: #f8d7da; color: #721c24; padding: 15px; border-radius: 8px; margin-bottom: 15px; text-align: center; border: 1px solid #f5c6cb; font-size: 13px;}
@keyframes piscarAlertaUrgente { 0% { background: #dc3545; color: white; box-shadow: 0 0 10px #dc3545; } 50% { background: #ffc107; color: black; box-shadow: 0 0 20px #ffc107; } 100% { background: #dc3545; color: white; box-shadow: 0 0 10px #dc3545; } }
.alerta-urgente-flutuante { position: fixed; bottom: 20px; right: 20px; z-index: 9999; padding: 12px 20px; border-radius: 8px; font-weight: bold; font-size: 14px; text-decoration: none; border: 2px solid white; cursor: pointer; display: flex; align-items: center; gap: 8px; animation: piscarAlertaUrgente 1s infinite; }

/* =========================================
   COMPONENTE: LOGIN E CADASTRO
   ========================================= */
.auth-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); padding: 35px 30px; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.3); width: 100%; max-width: 450px; animation: slideUp 0.5s ease-out forwards; position: relative;}
.btn-back-inside, .btn-back-vitrine { display: inline-flex; align-items: center; gap: 6px; color: var(--text-light); text-decoration: none; font-size: 13px; font-weight: 600; margin-bottom: 20px; transition: var(--transition); }
.btn-back-inside:hover, .btn-back-vitrine:hover { color: var(--primary-color); transform: translateX(-3px); }
.auth-header { text-align: center; margin-bottom: 20px; }
.auth-header h1 { color: var(--primary-color); font-size: 24px; margin-bottom: 5px; font-weight: 800; letter-spacing: -1px; }
.auth-header p { color: var(--text-light); font-size: 13px; }
.btn-submit-premium { width: 100%; padding: 14px; background: var(--primary-color); color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: bold; cursor: pointer; transition: var(--transition); display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px;}
.btn-submit-premium:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); opacity: 0.9; }
.auth-links { text-align: center; margin-top: 20px; font-size: 13px; line-height: 1.8; }
.auth-links a { color: var(--text-light); text-decoration: none; transition: var(--transition); font-weight: bold;}
.auth-links a:hover { color: var(--primary-color); }
.copyright-auth { margin-top: 25px; color: rgba(255,255,255,0.7); font-size: 11px; text-align: center; width: 100%; }

/* =========================================
   COMPONENTE: INPUTS E FORMULÁRIOS
   ========================================= */
.input-icon-group { position: relative; margin-bottom: 15px; text-align: left; }
.input-icon-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #999; font-size: 16px; transition: var(--transition); z-index: 10; }
.input-icon-group i.fa-align-left { top: 22px; transform: none; }
.input-icon-group input, .input-icon-group select, .input-icon-group textarea { width: 100%; padding: 12px 12px 12px 42px !important; border: 2px solid #eaeaea !important; background: #fcfcfc !important; margin: 0 !important; font-size: 14px !important; border-radius: 8px; box-sizing: border-box; transition: var(--transition);}
.input-icon-group textarea { padding-top: 18px !important; resize: vertical; }
.input-icon-group select:disabled { background: #e9ecef !important; cursor: not-allowed; }
.input-icon-group:focus-within i { color: var(--primary-color); }
.input-icon-group:focus-within input, .input-icon-group:focus-within select, .input-icon-group:focus-within textarea { border-color: var(--primary-color) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.1) !important; outline: none; }

.form-label { display: block; font-size: 12px; font-weight: 800; color: #444; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;}
.form-input { width: 100%; padding: 14px; border-radius: 8px; border: 1px solid #ddd; font-size: 15px; margin-bottom: 20px; box-sizing: border-box; background: #fafafa; transition: var(--transition);}
.form-input:focus { border-color: var(--primary-color); background: #fff; box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1); outline: none; }
.grid-form { display:grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.col-span-2 { grid-column: span 2; }
.upload-box { background: #fff; padding: 20px; border-radius: 10px; border: 2px dashed #d1d5db; text-align: center; transition: var(--transition);}
.upload-box:hover { border-color: var(--primary-color); background: #f0f7ff; }

/* =========================================
   VITRINE E CARDS DE PRODUTO
   ========================================= */
.vitrine-container, .mural-wrapper, .painel-wrapper, .detalhes-container { max-width: 1200px; margin: 30px auto; padding: 0 15px; }
.mural-wrapper { max-width: 900px; }
.painel-wrapper { max-width: 1000px; }

.faixa-info-selo { background: #161616; color: white; padding: 20px; border-radius: 8px; margin-bottom: 25px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; box-shadow: var(--shadow-sm); }
.faixa-info-selo h4 { margin: 0 0 5px 0; color: #f5c518; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.faixa-info-selo p { margin: 0; font-size: 13px; color: #ccc; line-height: 1.4; }
.btn-quero-selo { color: #161616; background: #f5c518; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: bold; transition: var(--transition); white-space: nowrap; }
.btn-quero-selo:hover { background: #ffeb3b; transform: translateY(-2px); }

.busca-wrapper { background: white; padding: 15px; border-radius: 8px; box-shadow: var(--shadow-sm); margin-bottom: 25px; border: 1px solid #eaeaea; }
.busca-container { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.busca-container input { flex: 2; min-width: 200px; padding: 12px 15px; margin: 0; font-size: 14px; border: 1px solid #ddd; border-radius: 6px; background: #fff;}
.busca-container select { flex: 1; min-width: 150px; padding: 12px 10px; margin: 0; font-size: 14px; border: 1px solid #ddd; border-radius: 6px; background: #fafafa; }
.btn-buscar-fixo { flex: none; width: max-content; padding: 12px 25px; margin: 0; background: #0f62fe; color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition);}
.btn-buscar-fixo:hover { background: #0353e9; }
.btn-limpar { background: #e0e0e0; color: #333; padding: 12px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; white-space: nowrap; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;}

.grid-produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.card-produto { padding: 12px; text-decoration: none; color: inherit; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #eaeaea; background: white; border-radius: 8px; box-shadow: var(--shadow-sm); transition: var(--transition); position: relative;}
.card-produto:hover { border-color: var(--primary-color); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-verificado { border: 2px solid #f5c518; }
.fita-premium { position: absolute; top: -8px; right: -8px; background: linear-gradient(135deg, #f5c518, #f59f00); color: #000; padding: 4px 10px; font-size: 10px; font-weight: 800; border-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 10; display: flex; align-items: center; gap: 4px; text-transform: uppercase; }
.foto-vitrine { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; border: 1px solid #f0f0f0;}
.foto-placeholder { width: 100%; height: 140px; background: #f4f4f9; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #999; }
.tags-container { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.tag-categoria { padding: 3px 6px; font-size: 10px; background: #f0f0f0; color: #555; border-radius: 4px; font-weight: 600; display: inline-block; }
.tag-estoque { padding: 3px 6px; font-size: 10px; background: #e3f2fd; color: #0d47a1; border-radius: 4px; font-weight: bold; display: inline-flex; align-items: center; gap: 4px; }
.titulo-produto { font-size: 14px; margin: 4px 0 8px 0; line-height: 1.3; font-weight: bold; color: #333; }
.loja-info { display: flex; align-items: center; gap: 10px; border-top: 1px solid #f0f0f0; padding-top: 10px; margin-bottom: 5px; }
.loja-logo-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid #eee; }
.loja-logo-texto { width: 30px; height: 30px; border-radius: 50%; background: #ddd; color: #555; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; flex-shrink: 0; }
.loja-dados { display: flex; flex-direction: column; overflow: hidden; line-height: 1.2; }
.loja-nome-txt { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #444; }
.loja-cidade-txt { font-size: 10px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.btn-whatsapp-sm { display:flex; align-items:center; justify-content:center; gap:8px; background:var(--success-color); color:white; font-weight:bold; padding: 12px; font-size: 13px; border-radius: 6px; text-decoration: none; margin-top: 10px; transition: var(--transition);}
.btn-whatsapp-sm i { font-size: 16px; }
.btn-whatsapp-sm:hover { background: #1ebe57; transform: translateY(-2px);}
.paginacao { display: flex; justify-content: center; gap: 8px; margin-top: 35px; flex-wrap: wrap; }
.paginacao a { padding: 8px 14px; background: white; border: 1px solid #ddd; border-radius: 6px; text-decoration: none; color: #333; font-weight: bold; font-size: 14px; transition: var(--transition); }
.paginacao a:hover { background: #f4f4f4; }
.paginacao a.ativo { background: #0f62fe; color: white; border-color: #0f62fe; box-shadow: 0 4px 10px rgba(15, 98, 254, 0.3); }

/* =========================================
   COMPONENTE: MURAL DE PEDIDOS
   ========================================= */
.header-titulo { text-align: center; margin-bottom: 25px; }
.header-titulo h2 { color: var(--text-color); font-size: 28px; margin-bottom: 5px; font-weight: 800; letter-spacing: -1px; }
.mural-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 35px; flex-wrap: wrap; }
.tab-btn { padding: 12px 25px; border-radius: 30px; font-weight: bold; font-size: 14px; text-decoration: none; color: #666; background: #eaeaea; transition: var(--transition); display: flex; align-items: center; gap: 8px;}
.tab-btn:hover { background: #d4d4d4; }
.tab-btn.ativo { background: var(--primary-color); color: white; box-shadow: 0 4px 15px rgba(15, 98, 254, 0.3); }
.tab-btn.ativo-hist { background: var(--success-color); color: white; box-shadow: 0 4px 15px rgba(36, 161, 72, 0.3); }
.card-pedido { background: white; padding: 25px; border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 20px; border-left: 6px solid #ccc; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.card-pedido:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-pedido.urgente { border-left-color: var(--danger-color); background: linear-gradient(to right, #fff5f5, #ffffff); }
.card-pedido.normal { border-left-color: var(--primary-color); }
.card-pedido.encontrado { border-left-color: var(--success-color); background: #fdfdfd; }
.loja-nome { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--text-color);}
.loja-nome img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.loja-nome .iniciais { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-color); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; }
.badge-status { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; margin-bottom: 10px; margin-right: 5px; white-space: normal; line-height: 1.4;}
.badge-urgencia { border: 1px solid #ffc2c2; background: #ffeaea; color: var(--danger-color); }
.badge-negociando { border: 1px solid #ffeeba; background: #fff8e1; color: #b8860b; }
.badge-resolvido { border: 1px solid #c3e6cb; background: #d4edda; color: #155724; }
.btn-acao-mural { padding: 10px 15px; border-radius: 6px; font-weight: bold; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer; transition: var(--transition);}
.btn-tenho { background: var(--success-color); color: white; }
.btn-tenho:hover { background: #1a7a36; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(36, 161, 72, 0.3);}
.btn-bloqueado { background: #f5f5f5; color: #888; cursor: not-allowed; }

/* =========================================
   COMPONENTE: PAINEL LOJISTA (BOXES, TABELAS)
   ========================================= */
.box-painel { background: white; padding: 30px; border-radius: 12px; box-shadow: var(--shadow-md); margin-bottom: 25px; }
.table-responsive { overflow-x: auto; margin-top: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 700px;}
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #f0f0f0; }
th { background-color: #f8f9fa; color: #333; font-weight: 600; text-transform: uppercase; font-size: 12px; border-radius: 6px 6px 0 0;}
.btn-acao-tabela { padding: 6px 10px; border-radius: 6px; color: white; border: none; font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-excluir { background: var(--danger-color); } .btn-excluir:hover { background: #ba1b23; }
.btn-sucesso { background: var(--success-color); } .btn-sucesso:hover { background: #1a7a36; }

.lista-estoque { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.item-estoque { display: flex; justify-content: space-between; align-items: center; padding: 15px; border: 1px solid #eaeaea; border-radius: 10px; transition: all 0.3s; background: #fff; }
.item-estoque:hover { border-color: var(--primary-color); box-shadow: 0 4px 15px rgba(15, 98, 254, 0.1); transform: translateY(-2px); }
.item-info-wrapper { display: flex; align-items: center; gap: 15px; }
.item-foto { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; flex-shrink: 0; }
.item-foto-placeholder { width: 70px; height: 70px; background: #f4f4f4; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 20px; flex-shrink: 0; border: 1px dashed #ccc; }
.item-titulo { font-size: 16px; font-weight: 800; color: #333; margin: 0 0 5px 0; }
.item-detalhes { font-size: 12px; color: #777; margin: 0 0 8px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;}
.badge-estoque { padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.badge-disponivel { background: #e3f2fd; color: #0d47a1; border: 1px solid #bbdefb; }
.badge-esgotado { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.item-acoes { display:flex; gap:8px; justify-content: flex-end; align-items: center; }
.btn-edit { width: 35px; height: 35px; border-radius: 8px; font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; transition: var(--transition); background: #f8f9fa; color: var(--primary-color); border: 1px solid #ddd; text-decoration:none;} 
.btn-edit:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.btn-excluir-item { width: 35px; height: 35px; border-radius: 8px; font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; transition: var(--transition); background: #f8f9fa; color: var(--danger-color); border: 1px solid #ddd;} 
.btn-excluir-item:hover { background: var(--danger-color); color: white; border-color: var(--danger-color); }

/* Modais */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-box { background: white; padding: 30px; border-radius: 12px; max-width: 400px; width: 90%; text-align: center; box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.modal-icon { font-size: 55px; margin-bottom: 15px; }
.modal-box h3 { margin: 0 0 10px 0; color: var(--text-color); font-size: 22px; font-weight: 800; }
.modal-botoes { display: flex; gap: 10px; justify-content: center; margin-top:20px;}
.btn-modal-cancelar { background: #f0f0f0; color: #333; border: none; padding: 12px 20px; border-radius: 8px; font-weight: bold; font-size: 14px; cursor: pointer; transition: var(--transition); flex: 1; }
.btn-modal-confirmar { background: var(--danger-color); color: white; border: none; padding: 12px 20px; border-radius: 8px; font-weight: bold; font-size: 14px; cursor: pointer; transition: var(--transition); flex: 1; }

/* Dashboard Master */
.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-box { background: white; padding: 25px 20px; border-radius: 12px; box-shadow: var(--shadow-sm); text-align: center; border-bottom: 4px solid var(--danger-color); transition: transform 0.2s; }
.stat-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-box h3 { font-size: 12px; color: var(--text-light); text-transform: uppercase; margin-bottom: 10px; font-weight: 600; letter-spacing: 0.5px; }
.stat-box p { font-size: 32px; font-weight: 800; color: var(--danger-color); margin: 0; }

.footer-sistema { text-align: center; padding: 30px 20px; color: #888; font-size: 13px; margin-top: 40px; border-top: 1px solid #eaeaea; width: 100%; clear: both;}

/* =========================================
   COMPRESSÃO MOBILE - 3 PRODUTOS POR LINHA
   ========================================= */
@media (max-width: 600px) {
    /* Vitrine Mobile: 3 Produtos lado a lado */
    .grid-produtos { grid-template-columns: repeat(3, 1fr); gap: 6px; } 
    .card-produto { padding: 5px; border-radius: 6px; }
    .fita-premium { top: -4px; right: -4px; padding: 2px 4px; font-size: 7px; border-radius: 8px; }
    .foto-vitrine, .foto-placeholder { height: 75px; border-radius: 4px; }
    .foto-placeholder { font-size: 8px; }
    .tags-container { gap: 2px; margin-bottom: 4px; flex-direction: column; align-items: stretch; }
    .tag-categoria, .tag-estoque { padding: 2px; font-size: 7px; text-align: center; }
    .titulo-produto { font-size: 9px; margin: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .loja-info { padding-top: 4px; margin-bottom: 3px; flex-direction: column; align-items: flex-start; gap: 2px; border-top: 1px solid #f0f0f0; }
    .loja-logo-img, .loja-logo-texto { display: none; }
    .loja-dados { width: 100%; }
    .loja-nome-txt { font-size: 8px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .loja-cidade-txt { font-size: 7px; display: block; margin-top: 1px; }
    .btn-whatsapp-sm { padding: 6px; margin-top: 4px; border-radius: 4px; }
    .btn-whatsapp-sm i { font-size: 14px; margin: 0; }
    .txt-btn-zap { display: none; }

    /* Estrutura Geral Mobile */
    .header-vitrine-flex { flex-direction: column; text-align: center; }
    .botoes-topo { justify-content: center; width: 100%; overflow-x: auto; padding-bottom: 5px; }
    .busca-container { flex-direction: column; align-items: stretch; }
    .busca-container input, .busca-container select, .btn-buscar-fixo, .btn-limpar { width: 100% !important; flex: none; }
    .faixa-info-selo { flex-direction: column; text-align: center; }
    .grid-form, .grid-2 { grid-template-columns: 1fr !important; gap: 0;} 
    .col-span-2 { grid-column: span 1 !important; }
    .auth-card { padding: 25px 20px; } 
    .grid-2-mobile { grid-template-columns: 1fr; }
    .item-estoque { flex-direction: column; align-items: stretch; gap: 15px; }
    .item-acoes { justify-content: space-between; border-top: 1px solid #eee; padding-top: 10px;}
    .btn-edit, .btn-excluir-item { width: 48%; }
    .card-pedido { flex-direction: column; align-items: stretch; gap: 20px; } 
    .acoes-container { display: flex; flex-direction: column; gap: 10px; } 
    .btn-acao-mural { justify-content: center; width: 100%;} 
}

/* Para telas muito pequenas (abaixo de 400px) - 2 produtos por linha */
@media (max-width: 400px) {
    .grid-produtos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Classes adicionais para compatibilidade */
.btn-vitrine, .btn-mural, .btn-painel, .btn-sair {
    background: #f0f0f0;
    color: #555;
}

.btn-vitrine:hover, .btn-mural:hover, .btn-painel:hover {
    background: #e4e4e4;
    color: #111;
}

.btn-sair {
    background: #fff;
    color: var(--danger-color);
    border-color: #f5c6cb;
}

.btn-sair:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

/* Badges de status */
.bg-aberto {
    background: #e3f2fd;
    color: var(--primary-color);
    border: 1px solid #bbdefb;
}

.bg-negociando {
    background: #fff8e1;
    color: #b8860b;
    border: 1px solid #ffeeba;
}

.bg-encontrado {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Botão voltar */
.btn-back-inside {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--transition);
}

.btn-back-inside:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

/* =========================================
   ESTILOS ESPECÍFICOS DO PERFIL
   ========================================= */

/* Container do perfil */
.painel-wrapper {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Título do perfil */
.perfil-titulo {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 22px;
}

/* Header do perfil com foto */
.perfil-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

/* Preview da logo */
.logo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eaeaea;
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}

/* Placeholder quando não tem logo */
.logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

/* Label do upload */
.upload-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

/* Box de upload */
.upload-box {
    background: var(--secondary-color);
    padding: 12px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    margin-bottom: 25px;
}

.upload-box input {
    width: 100%;
    font-size: 13px;
    color: var(--text-light);
}

/* Labels de seção */
.section-label {
    font-size: 12px;
    font-weight: bold;
    color: gray;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

/* Texto informativo */
.info-text {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Botão salvar perfil */
.btn-salvar-perfil {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-salvar-perfil:hover {
    background: #0353e9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Divisória */
.divisoria {
    height: 1px;
    background: #eaeaea;
    margin: 30px 0;
    border: none;
}

/* Botão Master */
.btn-master {
    background: var(--danger-color);
    color: white;
    font-size: 12px;
    padding: 0 15px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    transition: var(--transition);
}

.btn-master:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Footer */
.footer-sistema {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 13px;
    margin-top: 30px;
    border-top: 1px solid #eaeaea;
}

/* Responsividade do perfil */
@media (max-width: 768px) { 
    .box-painel { 
        padding: 25px 20px; 
    }
}

/* =========================================
   BOTÕES DE AÇÃO DO MASTER
   ========================================= */

.btn-acao {
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-acao:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);
}

/* Stats Master */
.stat-box {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    transition: transform 0.2s;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-box h3 {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-box p {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* =========================================
   ESTILOS ESPECÍFICOS DA VITRINE
   ========================================= */

/* Container principal da vitrine */
.vitrine-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Alerta de cidade filtrada */
.alerta-cidade {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Link do card */
.card-link {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

/* Container da foto */
.foto-container {
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 6px;
}

/* Ícone da coroa */
.crown-icon {
    color: #f5c518;
    margin-left: 5px;
}

/* Mensagem de nenhum resultado */
.nenhum-resultado {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #888;
    background: white;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.nenhum-resultado i {
    color: #ddd;
    margin-bottom: 15px;
}

/* Botão instalar app */
.btn-install-app {
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 10px rgba(15, 98, 254, 0.3);
}

.btn-install-app:hover {
    background: #0353e9;
    transform: translateY(-2px);
}

/* Botão ativo no menu */
.botoes-topo a.ativo {
    background: #161616;
    color: white;
    border-color: #161616;
}

/* Botão limpar busca */
.btn-limpar {
    background: #e0e0e0;
    color: #333;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-limpar:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

/* =========================================
   ESTILOS DO SELO PREMIUM
   ========================================= */

.selo-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 15px;
    text-align: center;
}

.selo-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid #f5c518;
}

.selo-icon {
    font-size: 60px;
    color: #f5c518;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(245, 197, 24, 0.3);
}

.selo-titulo {
    color: #333;
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 800;
}

.selo-descricao {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}

.beneficios-lista {
    text-align: left;
    margin: 30px 0;
    font-size: 15px;
    color: #555;
    list-style: none;
    padding: 0;
}

.beneficios-lista li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.beneficios-lista i {
    color: #f5c518;
    font-size: 20px;
    margin-top: 2px;
}

.btn-whatsapp-selo {
    background: #25D366;
    color: white;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-selo:hover {
    background: #1ebe57;
    transform: translateY(-3px);
}

.btn-voltar-selo {
    background: #161616;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-voltar-selo:hover {
    transform: translateY(-2px);
    background: #333;
}

/* =========================================
   ESTILOS DA PÁGINA DE DETALHES
   ========================================= */

.detalhes-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.galeria {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.foto-grande {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    object-fit: cover;
    background: white;
}

.miniaturas {
    display: flex;
    gap: 15px;
}

.miniaturas img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
    background: white;
}

.miniaturas img:hover,
.miniaturas img.ativa {
    border-color: var(--primary-color);
    opacity: 1;
}

.sem-foto {
    width: 100%;
    height: 450px;
    background: white;
    border: 1px dashed #ccc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.sem-foto i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #ddd;
}

.info-box {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.categoria-condicao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.badge-categoria {
    background: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: var(--text-light);
}

.badge-condicao {
    color: #666;
    font-size: 13px;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.produto-titulo {
    margin: 0 0 10px 0;
    font-size: 26px;
    line-height: 1.3;
    color: #333;
    font-weight: 800;
}

.preco-destaque {
    font-size: 32px;
    font-weight: 800;
    color: #2e7d32;
    margin-bottom: 25px;
    margin-top: 5px;
}

.preco-combinar {
    font-size: 24px;
    font-weight: bold;
    color: #777;
    margin-bottom: 25px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.descricao-titulo {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.descricao-texto {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    min-height: 80px;
}

.loja-box-detalhes {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.loja-box-detalhes.verificada {
    border-color: #f5c518;
    background: linear-gradient(to right, #fffdf2, #ffffff);
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.1);
}

.loja-logo-detalhes {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    flex-shrink: 0;
    background: white;
}

.loja-iniciais-detalhes {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    flex-shrink: 0;
}

.loja-nome-detalhes {
    font-size: 18px;
    color: #333;
}

.selo-icone {
    color: #f5c518;
    margin-left: 4px;
}

.loja-cidade-detalhes {
    font-size: 13px;
    color: gray;
}

.selo-compra-segura {
    font-size: 11px;
    background: #e3fcef;
    color: #1a7a36;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-whatsapp-detalhes {
    background: #25d366;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp-detalhes:hover {
    background: #1ebe57;
    transform: translateY(-3px);
}

.btn-voltar-detalhes {
    background: #161616;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-voltar-detalhes:hover {
    background: #333;
    transform: translateX(-2px);
}

/* =========================================
   ESTILOS DO MURAL
   ========================================= */

.mural-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
    min-height: 60vh;
}

.header-titulo {
    text-align: center;
    margin-bottom: 25px;
}

.header-titulo h2 {
    color: var(--text-color);
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 800;
    letter-spacing: -1px;
}

.mural-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    color: #666;
    background: #eaeaea;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #d4d4d4;
}

.tab-btn.ativo {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(15, 98, 254, 0.3);
}

.tab-btn.ativo-hist {
    background: var(--success-color);
    color: white;
    box-shadow: 0 4px 15px rgba(36, 161, 72, 0.3);
}

.btn-fazer-pedido {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-fazer-pedido:hover {
    background: #1ebe57;
}

.card-pedido {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border-left: 6px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.card-pedido:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-pedido.urgente {
    border-left-color: var(--danger-color);
    background: linear-gradient(to right, #fff5f5, #ffffff);
}

.card-pedido.normal {
    border-left-color: var(--primary-color);
}

.card-pedido.encontrado {
    border-left-color: var(--success-color);
    background: #fdfdfd;
}

.loja-nome-mural {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.loja-nome-mural img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.iniciais-loja {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.verificado-icon {
    color: #f5c518;
    margin-left: -2px;
}

.cidade-loja {
    font-weight: normal;
    color: gray;
    font-size: 12px;
    margin-left: 5px;
}

.badges-container {
    margin-bottom: 10px;
}

.pedido-titulo {
    margin: 0 0 8px 0;
    color: var(--text-color);
    font-size: 18px;
}

.peca-nome {
    color: var(--primary-color);
}

.pedido-detalhes {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 10px 0;
    line-height: 1.5;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    border: 1px dashed #eaeaea;
}

.pedido-data {
    font-size: 11px;
    color: #999;
    margin: 0;
}

.btn-acao-mural {
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-tenho {
    background: var(--success-color);
    color: white;
}

.btn-tenho:hover {
    background: #1a7a36;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 161, 72, 0.3);
}

.btn-ja-ofereci {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    cursor: not-allowed;
}

.btn-bloqueado {
    background: #f5f5f5;
    color: #888;
    cursor: not-allowed;
}

.btn-gerenciar {
    background: #161616;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-gerenciar:hover {
    background: #333;
}

.btn-login-negociar {
    background: #161616;
    color: white;
}

.btn-login-negociar:hover {
    background: #333;
}

.mural-vazio {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px dashed #ccc;
}

.mural-vazio i {
    font-size: 40px;
    color: #ccc;
    margin-bottom: 15px;
}

.mural-vazio h3 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.mural-vazio p {
    color: var(--text-light);
    font-size: 14px;
}

/* Responsividade para detalhes e mural */
@media (max-width: 768px) {
    .detalhes-container {
        grid-template-columns: 1fr;
    }
    
    .foto-grande {
        height: 350px;
    }
    
    .card-pedido {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .acoes-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-acao-mural {
        justify-content: center;
        width: 100%;
    }
    
    .categoria-condicao {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}