/* ARQUIVO: assets/css/style.css */
/* DESCRIÇÃO: Estilos globais (Loja, Landing Page e Painel Admin) */

/* =========================================
   1. ESTILOS GERAIS DA LOJA (CLIENTE)
   ========================================= */

body { 
    padding-bottom: 100px; 
    background-color: var(--cor-site-bg); 
    overflow-x: hidden;
    font-family: var(--font-main, sans-serif);
    color: var(--text-color);
}

/* HERO DA LOJA */
.hero { 
    padding: 40px 20px 60px; 
    border-radius: 0 0 30px 30px; 
    margin-bottom: -30px; 
    position: relative; 
    text-align: center !important; 
    display: flex; flex-direction: column; align-items: center;
    background-color: var(--cor-header-bg); /* Alterado para background-color */
    color: var(--cor-header-txt);
    box-shadow: var(--shadow);
    z-index: 1;
    background-size: cover !important; 
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: -1; border-radius: 0 0 30px 30px;
}
.hero-info-card {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    padding: 15px 25px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: inline-block; margin-top: 15px; max-width: 90%; text-align: center;
}
.hero-info-card h1 { color: var(--cor-principal) !important; text-shadow: none !important; font-size: 1.5rem; margin: 0; line-height: 1.2; }
.hero-slogan {
    margin-top: 15px; color: #fff; font-weight: 700; font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.5); padding: 6px 18px; border-radius: 20px;
    display: inline-block; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.2);
}
.btn-topo { 
    position: absolute; top: 20px; z-index: 10; 
    background: rgba(255,255,255,0.25); backdrop-filter: blur(5px); 
    padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; 
    text-decoration: none; font-weight: 600; 
    border: 1px solid rgba(255,255,255,0.4); color: #fff !important; 
}
.btn-right { right: 20px; }
.badge-status { 
    background: var(--cor-principal); color: var(--text-on-primary); 
    padding: 4px 12px; border-radius: 15px; font-weight: 700; font-size: 0.7rem; 
    display: inline-block; text-transform: uppercase;
}

/* COMPONENTES DA LOJA */
.search-bar-container {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 600px; margin: 0 auto;
}
.cat-scroll-container {
    position: sticky; top: 10px; z-index: 900;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px);
    border: 1px solid rgba(0,0,0,0.05); border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 95%; max-width: 850px; margin: 0 auto 20px auto; 
    padding: 10px 0; overflow: hidden; white-space: nowrap;
}
.cat-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-left: 20px; padding-right: 50px; align-items: center; }
.cat-scroll::-webkit-scrollbar { display: none; }
@media (max-width: 768px) {
    .cat-scroll-container { top: 0; width: 100%; max-width: 100%; border-radius: 0; border: none; border-bottom: 1px solid rgba(0,0,0,0.05); margin-bottom: 15px; background: var(--cor-site-bg); }
}
button.cat-btn { 
    flex: 0 0 auto; padding: 8px 20px; border-radius: 50px; 
    background-color: #ffffff !important; border: 1px solid #e0e0e0 !important; 
    color: #555 !important; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s; opacity: 1 !important;
}
button.cat-btn.active { 
    background-color: var(--cor-principal) !important; color: var(--text-on-primary) !important; 
    border-color: var(--cor-principal) !important; box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important; 
    transform: scale(1.05);
}
.scroll-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 100%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 910; pointer-events: auto; transition: opacity 0.3s; opacity: 0; }
.scroll-arrow.visible { opacity: 1; }
.scroll-arrow i { background: #fff; color: #333; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.15); font-size: 12px; }
.arrow-left { left: 0; background: linear-gradient(to right, rgba(255,255,255,1) 40%, transparent); justify-content: flex-start; padding-left: 10px; border-top-left-radius: 50px; border-bottom-left-radius: 50px; }
.arrow-right { right: 0; background: linear-gradient(to left, rgba(255,255,255,1) 40%, transparent); justify-content: flex-end; padding-right: 10px; border-top-right-radius: 50px; border-bottom-right-radius: 50px; }
@media (max-width: 768px) {
    .arrow-left { background: linear-gradient(to right, var(--cor-site-bg) 40%, transparent); }
    .arrow-right { background: linear-gradient(to left, var(--cor-site-bg) 40%, transparent); }
}

/* CARD PRODUTO */
.card-produto { 
    background-color: var(--card-bg) !important; border: var(--border) !important; 
    border-radius: var(--radius); padding: 0; height: 100%;
    box-shadow: var(--shadow) !important; transition: transform 0.2s; 
    display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
}
.prod-img-container { width: 100%; height: 160px; background-color: #f8f9fa; overflow: hidden; position: relative; }
.prod-img { width: 100%; height: 100%; object-fit: cover; }
.prod-info { padding: 20px 15px !important; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; background-color: var(--card-bg) !important; }
@media (max-width: 768px) {
    .card-produto { flex-direction: row; align-items: stretch; height: auto; min-height: 110px; }
    .prod-img-container { width: 110px; height: auto; margin: 0; border-radius: 0; }
    .prod-info { padding: 15px; width: 100%; }
    .prod-desc { display: none; }
}
.prod-nome { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; line-height: 1.3; color: var(--text-color); }
.prod-desc { font-size: 0.85rem; opacity: 0.7; margin-bottom: 12px; line-height: 1.4; color: var(--text-color); }
.prod-preco { font-weight: 800; font-size: 1.15rem; color: var(--cor-principal); }
.qtd-control { display: flex; align-items: center; background: #f8f9fa; border-radius: 50px; padding: 2px; border: 1px solid #e9ecef; width: fit-content; }
.btn-qtd { width: 30px; height: 30px; border: none; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.05); color: #212529; font-size: 0.9rem; cursor: pointer; }
.input-qtd { width: 25px; text-align: center; background: transparent; border: none; font-weight: 700; font-size: 0.9rem; color: #212529; padding: 0; }

/* MODAL E UI (COMPARTILHADO COM ADMIN) */
.modal-content { background-color: var(--card-bg) !important; color: var(--text-color); border-radius: 20px; }
@media (min-width: 769px) { .modal-dialog { max-width: 450px !important; margin-top: 40px; } }
.btn:active, .card-produto:active, .cat-btn:active { transform: scale(0.96); transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1); }
.skeleton-box { background: #f0f0f0; background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: 8px; display: block; }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.img-loading { opacity: 0; transition: opacity 0.3s ease-in; }
.img-loaded { opacity: 1; }

/* MENU INFERIOR */
.nav-bottom-fixed { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; border-top: 1px solid #eee; z-index: 1020; padding-bottom: env(safe-area-inset-bottom); height: 60px; }
.nav-item-fixo { color: #94a3b8; transition: 0.2s; padding: 10px 0; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; font-size: 10px; font-weight: 600; text-decoration: none; }
.nav-item-fixo i { display: block; font-size: 1.2rem; margin-bottom: 2px; }
.nav-item-fixo:hover, .nav-item-fixo.active { color: var(--cor-principal); }
.cart-box { position: relative; display: flex; justify-content: center; }
.fab-bar { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(200px); width: 90%; max-width: 600px; background: var(--cor-principal); color: var(--text-on-primary); padding: 12px 25px; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); display: flex; justify-content: space-between; align-items: center; z-index: 1030; cursor: pointer; font-weight: 700; transition: transform 0.3s, opacity 0.3s; opacity: 0; }
.fab-bar.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.fab-bar.escondido { transform: translateX(-50%) translateY(200px); opacity: 0; }

/* TOAST E AUX */
#app-toast { visibility: hidden; min-width: 280px; background-color: #333; color: #fff; text-align: center; border-radius: 12px; padding: 16px; position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 11000; box-shadow: 0 10px 30px rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s, top 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; }
#app-toast.show { visibility: visible; opacity: 1; top: 30px; }
#app-toast.error { background-color: #dc3545; }
#app-toast.success { background-color: #198754; }
.text-muted { color: #6c757d !important; }
.bg-primary, .btn-primary, .badge-primary { background-color: var(--cor-principal) !important; border-color: var(--cor-principal) !important; color: var(--text-on-primary) !important; }
.text-primary, .text-brand { color: var(--cor-principal) !important; }
.btn-outline-primary { color: var(--cor-principal) !important; border-color: var(--cor-principal) !important; }
.btn-outline-primary:hover { background-color: var(--cor-principal) !important; color: var(--text-on-primary) !important; }
.btn, .btn-topo { border-radius: 50px !important; }
.step-container { display: none; animation: fadeIn 0.3s; }
.step-container.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.login-card-checkout { background: #f8f9fa; border: 1px dashed #ccc; border-radius: 10px; padding: 15px; text-align: center; margin-bottom: 20px; }
.box-endereco-salvo { background: #f0f9ff; border: 1px solid #bde0fe; border-radius: 8px; padding: 10px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

/* PERFIL */
.nav-pills .nav-link.active { background-color: var(--cor-principal) !important; color: var(--text-on-primary) !important; }
.nav-pills .nav-link { color: #666; background-color: white; border: 1px solid #eee; margin: 0 5px; }
.btn-tema { background-color: var(--cor-principal) !important; color: var(--text-on-primary) !important; border: none; }
.text-tema { color: var(--cor-principal) !important; }
.avatar-circle { background-color: var(--cor-principal); color: var(--text-on-primary); width: 65px; height: 65px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; border-radius: 50%; }

/* RECUPERAR SENHA */
.card-reset { width: 100%; max-width: 420px; padding: 40px; border-radius: 20px; border: none; background: #ffffff; box-shadow: 0 15px 40px rgba(0,0,0,0.15); text-align: center; position: relative; z-index: 2; }
.logo-img-reset { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-bottom: 20px; margin-top: -60px; background: #fff; }
.bg-overlay-reset { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1; pointer-events: none; }

/* MESA E LOGIN */
.pull-up-container { position: relative; z-index: 5; margin-top: -60px; }
.card-login-hero { border: none; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); }
.card-hover { transition: transform 0.2s; cursor: pointer; border: 1px solid #f1f1f1 !important; }
.card-hover:hover { transform: translateY(-3px); border-color: var(--cor-principal) !important; }
.mesa-badge { background: #fff; color: #333; padding: 6px 20px; border-radius: 30px; font-weight: 800; font-size: 1.2rem; display: inline-block; margin-top: -25px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); position: relative; z-index: 5; border: 2px solid var(--cor-principal); }
.fab-conta { position: fixed; bottom: 90px; right: 20px; background: #198754; color: #fff; border-radius: 50px; padding: 12px 25px; font-weight: bold; box-shadow: 0 5px 20px rgba(0,0,0,0.3); cursor: pointer; z-index: 9999; display: flex; align-items: center; gap: 10px; }
.badge-count { background: #fff; color: #198754; padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; font-weight: 800; }


/* =========================================
   2. ESTILOS DA LANDING PAGE (INDEX)
   ========================================= */
:root { --lp-primary: #0d6efd; --lp-dark: #0f172a; --lp-light: #f8fafc; }
body.lp-body { font-family: 'Inter', sans-serif !important; color: var(--lp-dark) !important; background-color: #fff !important; padding-bottom: 0 !important; }
.lp-navbar { backdrop-filter: blur(10px); background: rgba(255,255,255,0.9); border-bottom: 1px solid #eee; }
.lp-navbar .nav-link { font-weight: 600; color: var(--lp-dark); }
.lp-navbar .nav-link:hover { color: var(--lp-primary); }
.lp-btn-cta { background: var(--lp-primary); color: white; border-radius: 50px; padding: 10px 25px; font-weight: 700; transition: 0.3s; border: none; }
.lp-btn-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3); color: white; }
.lp-hero-section { padding: 120px 0 80px; background: radial-gradient(circle at top right, #eef2ff, #ffffff); position: relative; overflow: hidden; }
.lp-hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; background: linear-gradient(45deg, #0d6efd, #00d4ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.lp-hero-subtitle { font-size: 1.2rem; color: #64748b; margin-bottom: 30px; max-width: 600px; }
.lp-mockup-container { position: relative; animation: lp-float 6s ease-in-out infinite; }
@keyframes lp-float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.lp-browser-mockup { border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); border: 1px solid #e2e8f0; background: white; overflow: hidden; }
.lp-browser-header { background: #f1f5f9; padding: 10px; display: flex; gap: 6px; border-bottom: 1px solid #e2e8f0; }
.lp-dot { width: 10px; height: 10px; border-radius: 50%; }
.lp-feature-card { padding: 30px; border-radius: 20px; border: 1px solid #f1f5f9; background: white; transition: 0.3s; height: 100%; }
.lp-feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: var(--lp-primary); }
.lp-icon-box { width: 60px; height: 60px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.lp-pricing-card { border: 2px solid #f1f5f9; border-radius: 20px; padding: 40px; background: white; position: relative; transition: 0.3s; }
.lp-pricing-card.popular { border-color: var(--lp-primary); background: #f8fbff; transform: scale(1.05); z-index: 2; box-shadow: 0 20px 40px rgba(13, 110, 253, 0.1); }
.lp-price-tag { font-size: 3rem; font-weight: 800; color: var(--lp-dark); }
.lp-price-period { color: #64748b; font-size: 1rem; font-weight: 500; }
.lp-addon-card { background: #1e293b; color: white; border-radius: 15px; padding: 20px; border: 1px solid #334155; }
footer.lp-footer { background: var(--lp-dark); color: #94a3b8; padding: 60px 0 20px; }
footer.lp-footer h5 { color: white; font-weight: 700; margin-bottom: 20px; }
footer.lp-footer a { color: #94a3b8; text-decoration: none; transition: 0.2s; }
footer.lp-footer a:hover { color: white; }
@media (max-width: 768px) { .lp-hero-title { font-size: 2.5rem; } .lp-pricing-card.popular { transform: scale(1); margin: 20px 0; } }


/* =========================================
   3. ESTILOS DO PAINEL ADMIN
   ========================================= */

/* Body Admin */
body.admin-body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9; 
    overflow-x: hidden;
    padding-bottom: 0;

    /* [FIX CRÍTICO] Variáveis de Fallback para o Admin (pois não carrega css_dinamico.php) */
    --card-bg: #ffffff;
    --text-color: #212529;
    --cor-principal: #0d6efd;
    --text-on-primary: #ffffff;
    --border: 1px solid #dee2e6;
    --radius: 0.5rem;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    
    /* Variáveis específicas do Admin */
    --admin-primary: #0d6efd; 
    --admin-dark: #1e293b; 
    --admin-light: #f8f9fa;
    --admin-sidebar: #0f172a; 
}

/* Sidebar */
.admin-sidebar {
    height: 100vh; width: 260px; position: fixed; top: 0; left: 0;
    background-color: var(--admin-sidebar); color: white;
    transition: all 0.3s; z-index: 1000; overflow-y: auto;
}
.admin-sidebar-header {
    padding: 20px; background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-nav-link {
    color: #94a3b8; padding: 12px 20px; font-size: 0.95rem; display: flex; align-items: center; transition: 0.2s; text-decoration: none;
}
.admin-nav-link:hover { color: white; background: rgba(255,255,255,0.05); }
.admin-nav-link.active { color: white; background: var(--admin-primary); border-right: 4px solid #60a5fa; }
.admin-nav-link i { width: 25px; font-size: 1.1rem; text-align: center; margin-right: 10px; }

/* Main Content */
.admin-main-content { margin-left: 260px; padding: 20px; transition: margin-left 0.3s; }

/* Topbar */
.admin-topbar {
    background: white; padding: 10px 20px; border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px;
}

/* Mobile Admin */
@media (max-width: 768px) {
    .admin-sidebar { margin-left: -260px; }
    .admin-sidebar.active { margin-left: 0; }
    .admin-main-content { margin-left: 0; }
}

/* Overrides para Admin */
.admin-body .card { border: none; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); background: white; }
.admin-body .form-control { border-radius: 6px; padding: 10px 15px; border: 1px solid #e2e8f0; }
.admin-body .form-control:focus { box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15); border-color: #86b7fe; }

/* [FIX] Scroll para Kanban de Vendas */
.scroll-y { overflow-y: auto; max-height: calc(100vh - 200px); }