/**
 * ============================================================================
 * INTERFACE DE USUÁRIO: style.css (Vitrine Gamer V6.4 - Smart Header & Admin)
 * RESPONSABILIDADE: Estilos Globais, Variáveis CSS, Reset e Background
 * ============================================================================
 */

/* ============================================================================
 * 1. VARIÁVEIS DE COR E RESET GLOBAL
 * ============================================================================
 * Aqui definimos a paleta cyberpunk e resetamos as margens padrão dos browsers 
 * para garantir que o layout seja renderizado de forma igual em todos eles.
 */
:root { 
    --bg-matrix: #040408; 
    --bg-card: rgba(10, 10, 18, 0.4); 
    --bg-card-solid: rgba(10, 10, 18, 0.85); 
    --neon-ciano: #00f3ff; 
    --neon-magenta: #ff00a0; 
    --neon-verde: #00ff64;
    --text-main: #f0f0f5; 
    --text-muted: #8b8b9e; 
}

*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Rajdhani', sans-serif; 
}

body { 
    background-color: var(--bg-matrix); 
    /* Padrão de grelha cyberpunk ao fundo */
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 243, 255, 0.03) 0%, transparent 50%),
        linear-gradient(rgba(0, 243, 255, 0.015) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(0, 243, 255, 0.015) 1px, transparent 1px); 
    background-size: 100% 100%, 40px 40px, 40px 40px; 
    color: var(--text-main); 
    min-height: 100vh; 
    overflow-x: hidden; /* Evita scroll horizontal indesejado */
}

/* ============================================================================
 * 2. NAVBAR SUPERIOR E SMART HEADER
 * ============================================================================
 * Barra de navegação com transição suave (transform) para se ocultar durante o 
 * scroll para baixo e libertar espaço no ecrã (Smart Header).
 */
.navbar { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 15px 5%; background: rgba(4, 4, 8, 0.85); 
    border-bottom: 1px solid rgba(0, 243, 255, 0.3); 
    backdrop-filter: blur(20px); 
    position: sticky; top: 0; z-index: 100; 
    box-shadow: 0 4px 30px rgba(0, 243, 255, 0.1); 
    transition: transform 0.4s cubic-bezier(0.3, 0, 0.2, 1);
}

/* Classe ativada via JavaScript para esconder a Navbar */
.navbar.nav-hidden {
    transform: translateY(-100%);
}

.brand-wrapper { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo-container { width: 45px; height: 45px; border-radius: 8px; background: linear-gradient(135deg, var(--neon-ciano), var(--neon-magenta)); padding: 2px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); }
.brand-logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.nav-logo-text { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.6rem; color: #fff; letter-spacing: 2px; text-shadow: 0 0 10px rgba(255,255,255,0.2); }
.nav-logo-text span { color: var(--neon-ciano); text-shadow: 0 0 15px var(--neon-ciano); }

.search-form { display: flex; width: 100%; max-width: 400px; margin: 0 auto; }
.search-input { width: 100%; padding: 12px 15px; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(0, 243, 255, 0.3); color: #fff; border-radius: 4px; transition: all 0.3s; font-size: 1rem; }
.search-input:focus { border-color: var(--neon-ciano); outline: none; box-shadow: 0 0 15px rgba(0, 243, 255, 0.4); background: rgba(0, 0, 0, 0.9); }

/* Ações e Botões do Cabeçalho */
.nav-actions { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; justify-content: flex-end;}
.btn-nav { padding: 8px 16px; min-height: 40px; border-radius: 4px; font-weight: 700; text-transform: uppercase; text-decoration: none; font-size: 0.9rem; transition: all 0.3s; cursor: pointer; background: transparent; display: inline-flex; align-items: center; justify-content: center;}
.btn-login { border: 1px solid var(--neon-ciano); color: var(--neon-ciano); }
.btn-login:hover { background: var(--neon-ciano); color: #000; box-shadow: 0 0 20px var(--neon-ciano); }
.btn-admin { border: 1px solid var(--neon-magenta); color: var(--neon-magenta); }
.btn-admin:hover { background: var(--neon-magenta); color: #fff; box-shadow: 0 0 20px var(--neon-magenta); }
.btn-admin-pedidos { border: 1px solid #ffaa00; color: #ffaa00; }
.btn-admin-pedidos:hover { background: #ffaa00; color: #000; box-shadow: 0 0 20px #ffaa00; }
.btn-cart { border: 1px solid #ffaa00; color: #ffaa00; font-family: 'Orbitron'; display: flex; align-items: center; gap: 8px;}
.btn-cart:hover { background: #ffaa00; color: #000; box-shadow: 0 0 20px #ffaa00; }
.cart-badge { background: #fff; color: #000; padding: 2px 6px; border-radius: 12px; font-size: 0.8rem; font-weight: 900; }

.user-op-label { color: var(--text-muted); font-size: 0.9rem; }
.user-op-label a { color: #fff; text-decoration: none; transition: 0.3s; }
.user-op-label a:hover { color: var(--neon-ciano); }
.btn-nav-logout { color: #ff3366; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: 0.3s; }

/* Botões Genéricos de Voltar */
.btn-voltar, .btn-back, .btn-back-vitrine { padding: 8px 16px; min-height: 40px; border: 1px solid var(--neon-ciano); color: var(--neon-ciano); text-decoration: none; border-radius: 4px; font-weight: bold; transition: 0.3s; white-space: nowrap; font-family: 'Orbitron'; font-size: 0.9rem; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center;}
.btn-voltar:hover, .btn-back:hover, .btn-back-vitrine:hover { background: var(--neon-ciano); color: #000; box-shadow: 0 0 15px var(--neon-ciano); }

/* ============================================================================
 * 3. ESTRUTURA DE FORMULÁRIOS E ALERTAS GLOBAIS
 * ============================================================================
 */
.form-group { margin-bottom: 15px; }
.form-label, .form-group label { display: block; font-family: 'Orbitron'; font-size: 0.85rem; color: var(--neon-ciano); margin-bottom: 8px; text-transform: uppercase; font-weight: bold; }
.form-control { width: 100%; padding: 12px 15px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; color: #fff; font-size: 1rem; transition: 0.3s; }
.form-control:focus { outline: none; border-color: var(--neon-ciano); background: rgba(0,0,0,0.8); box-shadow: 0 0 10px rgba(0,243,255,0.2); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Botões de Ação Principais (Submit/Pagar/Atualizar) */
.btn-submit, .btn-update, .btn-auth, .btn-pay, .btn-retry { display: inline-block; width: 100%; padding: 15px; font-family: 'Orbitron'; font-size: 1.1rem; font-weight: 900; text-transform: uppercase; text-align: center; border: none; border-radius: 4px; cursor: pointer; transition: 0.3s; text-decoration: none; }
.btn-auth, .btn-pay { background: var(--neon-ciano); color: #000; }
.btn-auth:hover, .btn-pay:hover { box-shadow: 0 0 25px rgba(0, 243, 255, 0.6); transform: translateY(-2px); }
.btn-submit, .btn-update, .btn-retry { background: var(--neon-magenta); color: #fff; }

/* Mensagens do Sistema (Sucesso/Erro) */
.alert, .msg-sucesso, .msg-erro { padding: 12px; border-radius: 4px; font-family: 'Orbitron'; font-size: 0.85rem; font-weight: bold; text-align: center; margin-bottom: 20px; border: 1px solid transparent; }
.msg-sucesso, .alert-success { background: rgba(0,255,100,0.1); border-color: var(--neon-verde); color: var(--neon-verde); }
.msg-erro, .alert-error { background: rgba(255,0,160,0.1); border-color: var(--neon-magenta); color: var(--neon-magenta); }

/* ============================================================================
 * 4. PÁGINA INICIAL (VITRINE), BANNERS E GRID DE PRODUTOS
 * ============================================================================
 */
.mega-banner-container { padding: 50px 5% 30px; }
.smart-config-banner { background: var(--bg-card-solid); border: 1px solid rgba(0, 243, 255, 0.4); border-radius: 16px; padding: 50px 60px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 30px rgba(0, 243, 255, 0.1); position: relative; overflow: hidden; flex-wrap: wrap; gap: 30px; }
.banner-badge { background: rgba(0, 243, 255, 0.1); color: var(--neon-ciano); padding: 6px 14px; border-radius: 20px; font-family: 'Orbitron'; font-size: 0.85rem; font-weight: 900; letter-spacing: 1.5px; border: 1px solid var(--neon-ciano); display: inline-block; margin-bottom: 20px; }
.banner-title { font-family: 'Orbitron'; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; color: #fff; text-transform: uppercase; line-height: 1.1; margin-bottom: 15px; }
.banner-title span { color: var(--neon-ciano); font-style: italic; text-shadow: 0 0 20px rgba(0, 243, 255, 0.6);}
.banner-desc { color: #b4b4c7; font-size: clamp(0.95rem, 2vw, 1.15rem); line-height: 1.6; max-width: 700px; }
.btn-mega-setup { background: var(--neon-ciano); color: #000; padding: 20px 45px; font-family: 'Orbitron'; font-weight: 900; font-size: 1.3rem; text-transform: uppercase; text-decoration: none; border-radius: 8px; display: inline-block; white-space: nowrap; transition: all 0.3s; border: 2px solid transparent; }

.section-divider-box { padding: 0 5% 30px; }
.section-divider { font-family: 'Orbitron'; font-size: clamp(1.1rem, 2.5vw, 1.3rem); font-weight: 900; color: #fff; text-transform: uppercase; border-left: 4px solid var(--neon-magenta); padding-left: 15px; display: flex; align-items: center; gap: 15px;}
.main-container { padding: 0 5% 80px 5%; }
.layout-wrapper { display: flex; gap: 30px; align-items: flex-start; }

/* Sidebar com as categorias de hardware */
.sidebar-filters { width: 260px; flex-shrink: 0; background: var(--bg-card); border: 1px solid rgba(0, 243, 255, 0.2); border-radius: 12px; padding: 25px 20px; backdrop-filter: blur(10px); position: sticky; top: 90px; }
.sidebar-title { font-family: 'Orbitron'; color: var(--neon-ciano); font-size: 1.1rem; margin-bottom: 15px; border-bottom: 1px dashed rgba(0, 243, 255, 0.3); padding-bottom: 10px; text-transform: uppercase; }
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.sidebar-link { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: all 0.2s; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.sidebar-link:hover, .sidebar-link.active { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.4); }

/* Grelha Dinâmica de Produtos (Auto-Fill para responsividade base) */
.content-area { flex: 1; min-width: 0; }
.products-grid, .options-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

/* Estrutura do Card de Hardware */
.product-card, .option-card { background: var(--bg-card); border-radius: 12px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; position: relative; border: 1px solid rgba(255,255,255,0.08); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; overflow: hidden;}
.product-img-wrapper, .option-img { width: 100%; height: 160px; background: rgba(0,0,0,0.5); border-radius: 8px; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img-wrapper img, .option-img img { max-width: 90%; max-height: 90%; object-fit: contain; transition: transform 0.3s; }
.product-cat { font-family: 'Orbitron'; font-size: 0.75rem; color: var(--neon-ciano); text-transform: uppercase; margin-bottom: 8px; font-weight: 700; }
.product-title, .option-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 15px; height: 2.8rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.product-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: auto; }
.product-price, .option-price { font-family: 'Orbitron'; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 900; color: #fff; }
.btn-view { padding: 8px 14px; min-height: 38px; display: flex; align-items: center; background: rgba(0, 243, 255, 0.1); border: 1px solid var(--neon-ciano); color: var(--neon-ciano); border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; font-family: 'Orbitron'; transition: 0.3s;}
.btn-view:hover { background: var(--neon-ciano); color: #000; box-shadow: 0 0 15px var(--neon-ciano); }

/* ============================================================================
 * 5. OVERLAYS, MODAL DE DETALHES E CARRINHO LATERAL
 * ============================================================================
 */
.cyber-modal-overlay, .cart-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(2, 2, 5, 0.9); backdrop-filter: blur(10px); z-index: 999; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.cyber-modal-overlay.active, .cart-overlay.active { display: flex; opacity: 1; }
.cart-overlay.active { display: block; }
.cyber-modal-content { background: var(--bg-matrix); border: 1px solid rgba(0, 243, 255, 0.5); border-radius: 12px; width: 90%; max-width: 750px; padding: 40px; position: relative; box-shadow: 0 0 50px rgba(0, 243, 255, 0.2); max-height: 90vh; overflow-y: auto; }
.modal-close, .cart-close { position: absolute; top: 15px; right: 20px; color: var(--text-muted); font-size: 1.8rem; cursor: pointer; background: transparent; border: none; font-family: 'Orbitron'; transition: all 0.2s; }
.modal-header { border-bottom: 1px solid rgba(0, 243, 255, 0.2); padding-bottom: 15px; margin-bottom: 25px; }
.modal-title { font-family: 'Orbitron'; color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 5px;}
.modal-desc { color: #b4b4c7; font-size: 1.1rem; line-height: 1.7; white-space: pre-wrap; }
.modal-action-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed rgba(0,243,255,0.3); padding-top: 25px; margin-top: 30px; flex-wrap: wrap; gap: 15px; }
.btn-buy-primary { padding: 12px 25px; min-height: 48px; background: transparent; border: 2px solid var(--neon-ciano); color: var(--neon-ciano); font-weight: bold; text-transform: uppercase; cursor: pointer; border-radius: 4px; transition: all 0.3s; font-family: 'Orbitron'; font-size: 1rem; }

/* Carrinho Deslizante (Sidebar) */
.cyber-cart-sidebar { position: fixed; top: 0; right: -450px; width: 100%; max-width: 400px; height: 100%; background: rgba(10, 10, 15, 0.95); border-left: 2px solid #ffaa00; z-index: 1000; transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1); display: flex; flex-direction: column; backdrop-filter: blur(15px); }
.cyber-cart-sidebar.active { right: 0; }
.cart-header, .cart-footer { padding: 25px; background: rgba(0,0,0,0.5); }
.cart-header { border-bottom: 1px solid rgba(255, 170, 0, 0.3); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-family: 'Orbitron'; color: #ffaa00; font-size: 1.5rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.cart-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); padding: 15px; border-radius: 8px; }
.cart-item-title { font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 10px; }
.cart-item-controls { display: flex; justify-content: space-between; align-items: center; }
.qty-btn { background: rgba(255,170,0,0.1); border: 1px solid #ffaa00; color: #ffaa00; width: 34px; height: 34px; border-radius: 4px; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center;}
.qty-btn:hover { background: #ffaa00; color: #000; }
.cart-footer { border-top: 1px solid rgba(255, 170, 0, 0.3); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 1.3rem; font-weight: bold; font-family: 'Orbitron'; color: #fff; }
.btn-checkout { display: block; width: 100%; padding: 15px; background: #ffaa00; color: #000; text-align: center; font-family: 'Orbitron'; font-weight: 900; font-size: 1.1rem; text-transform: uppercase; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; transition: all 0.3s; }

/* ============================================================================
 * 6. CAIXAS CENTRALIZADAS (Login, Cadastro, Status MP e Recibos)
 * ============================================================================
 */
.center-wrapper { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 80px); padding: 20px; }
.center-box { background: var(--bg-card-solid); border: 1px solid var(--neon-ciano); border-radius: 12px; padding: 40px; width: 100%; max-width: 550px; box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(0, 243, 255, 0.05); backdrop-filter: blur(15px); position: relative; overflow: hidden; }
.center-box.error-box { border-color: var(--neon-magenta); }
.center-box.success-box { border-color: var(--neon-verde); }
.center-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--neon-ciano), var(--neon-magenta)); }
.error-box::before { background: var(--neon-magenta); }
.success-box::before { background: var(--neon-verde); }

/* Abas de Formulário (Login vs Registro) */
.brand-logo-large { text-align: center; margin-bottom: 30px; }
.brand-logo-large h1 { font-family: 'Orbitron'; font-size: 2.2rem; color: #fff; letter-spacing: 2px; }
.tabs { display: flex; border-bottom: 1px dashed rgba(255,255,255,0.1); margin-bottom: 30px; }
.tab-btn { flex: 1; background: transparent; border: none; color: var(--text-muted); font-family: 'Orbitron'; font-size: 1rem; font-weight: bold; padding: 12px; cursor: pointer; text-transform: uppercase; transition: 0.3s; position: relative; }
.tab-btn.active { color: var(--neon-ciano); text-shadow: 0 0 8px rgba(0,243,255,0.4); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--neon-ciano); box-shadow: 0 0 10px var(--neon-ciano); }
.auth-form { display: none; animation: fadeIn 0.4s ease; }
.auth-form.active { display: block; }

.center-box h1.box-title { font-family: 'Orbitron'; color: var(--neon-ciano); font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 10px; text-align: center; border: none; padding: 0;}
.cart-list-preview { text-align: left; background: rgba(0,0,0,0.5); padding: 15px; border-radius: 8px; margin-bottom: 20px; max-height: 200px; overflow-y: auto; font-size: 0.95rem; border: 1px dashed rgba(255,255,255,0.1); }
.total-display-large { font-family: 'Orbitron'; font-size: clamp(1.5rem, 4vw, 2rem); color: #fff; margin-bottom: 30px; text-shadow: 0 0 10px rgba(255,255,255,0.3); text-align: center;}
.icon-status { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; font-size: 40px; font-family: 'Orbitron'; font-weight: bold; }

/* ============================================================================
 * 7. ÁREA DE ADMINISTRAÇÃO, TABELAS E PERFIL DE OPERADOR
 * ============================================================================
 */
.admin-container { max-width: 1400px; margin: 0 auto; padding: 40px 5%; }
.header-admin { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--neon-magenta); padding-bottom: 20px; margin-bottom: 40px; }
.header-admin h1 { font-family: 'Orbitron'; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--neon-magenta); text-transform: uppercase; }

.grid-admin { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.panel { background: var(--bg-card-solid); border: 1px solid rgba(0, 243, 255, 0.2); border-radius: 8px; padding: 25px; box-shadow: 0 0 20px rgba(0,0,0,0.5); backdrop-filter: blur(10px); }
.panel h2, .box-title { font-family: 'Orbitron'; margin-bottom: 20px; color: var(--neon-ciano); font-size: 1.3rem; text-transform: uppercase; border-left: 4px solid var(--neon-ciano); padding-left: 12px; }

/* Tabelas Cyberpunk */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%;}
table { width: 100%; border-collapse: collapse; margin-top: 20px; min-width: 750px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #333; }
th { font-family: 'Orbitron'; color: var(--neon-ciano); font-size: 0.9rem; }
tr:hover { background: rgba(0, 243, 255, 0.05); }

/* Ações Administrativas (Botões Editar/Excluir Padronizados) */
.action-group { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-admin-action { padding: 6px 12px; min-height: 35px; display: inline-flex; align-items: center; justify-content: center; font-family: 'Orbitron', sans-serif; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; text-decoration: none; border-radius: 4px; transition: all 0.3s; border: 1px solid transparent; cursor: pointer; }
.btn-edit { background: rgba(0, 243, 255, 0.1); border-color: var(--neon-ciano); color: var(--neon-ciano); }
.btn-edit:hover { background: var(--neon-ciano); color: #000; box-shadow: 0 0 10px var(--neon-ciano); }
.btn-delete { background: rgba(255, 0, 160, 0.1); border-color: var(--neon-magenta); color: var(--neon-magenta); }
.btn-delete:hover { background: var(--neon-magenta); color: #fff; box-shadow: 0 0 10px var(--neon-magenta); }

/* Perfil e Histórico de Pedidos */
.filter-bar { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 20px;}
.order-card { background: var(--bg-card-solid); border: 1px solid rgba(255, 0, 160, 0.2); border-radius: 12px; padding: 30px; margin-bottom: 30px; border-left: 4px solid #ffaa00;}

.profile-grid { display: grid; grid-template-columns: 400px 1fr; gap: 40px; padding: 40px 5%; max-width: 1400px; margin: 0 auto; }
.avatar-wrapper { position: relative; width: 110px; height: 110px; margin: 0 auto 20px auto; border-radius: 50%; cursor: pointer; border: 3px solid var(--neon-ciano); overflow: hidden; box-shadow: 0 0 20px rgba(0, 243, 255, 0.3); }

.img-thumb { 
    width: 65px; 
    height: 65px; 
    object-fit: contain; /* Usamos 'contain' para não cortar as pontas do hardware */
    border-radius: 6px; 
    border: 1px solid rgba(0, 243, 255, 0.3); 
    background: rgba(0, 0, 0, 0.5);
    padding: 2px;
}

/* ============================================================================
 * 8. WIZARD SPA (CONFIGURADOR SMART)
 * ============================================================================
 */
.grid-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 40px 5%; max-width: 1400px; margin: 0 auto; align-items: start; }
.wizard-container { background: var(--bg-card-solid); border-radius: 12px; padding: 30px; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); }
.progress-indicator { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 35px; border-bottom: 1px dashed rgba(0,243,255,0.2); padding-bottom: 15px; gap: 15px; }
.step-badge { font-family: 'Orbitron'; font-size: 0.8rem; font-weight: bold; color: var(--text-muted); text-transform: uppercase; padding: 6px 14px; border-radius: 4px; transition: 0.3s; }
.step-badge.active { color: #000; background: var(--neon-ciano); box-shadow: 0 0 15px rgba(0,243,255,0.5); }
.setup-filter-container { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.btn-setup-filter { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); padding: 8px 25px; min-height: 40px; border-radius: 30px; font-family: 'Orbitron'; font-weight: 900; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
.wizard-actions { display: flex; justify-content: space-between; margin-top: 30px; border-top: 1px dashed rgba(0,243,255,0.2); padding-top: 25px; flex-wrap: wrap; gap: 15px; }

.add-overlay-btn { width: 100%; padding: 12px 10px; min-height: 44px; background: transparent; border: 1px solid var(--neon-ciano); color: var(--neon-ciano); font-family: 'Orbitron', sans-serif; font-weight: 700; text-transform: uppercase; border-radius: 4px; cursor: pointer; transition: 0.3s; margin-top: auto; }
.add-overlay-btn:hover { background: var(--neon-ciano); color: #000; box-shadow: 0 0 15px rgba(0, 243, 255, 0.4); }

.summary-sidebar { background: rgba(4, 4, 8, 0.85); border: 1px solid rgba(0,243,255,0.2); border-radius: 12px; padding: 30px; display: flex; flex-direction: column; align-self: start; position: sticky; top: 100px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); backdrop-filter: blur(10px); }
.total-value { font-family: 'Orbitron'; font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 900; color: var(--neon-verde); text-shadow: 0 0 15px rgba(0, 255, 100, 0.3); }
.btn-wiz { padding: 12px 30px; min-height: 48px; font-family: 'Orbitron'; font-weight: 900; text-transform: uppercase; font-size: 1rem; border-radius: 4px; cursor: pointer; transition: all 0.3s; }

/* ============================================================================
 * 9. UTILITÁRIOS E WIDGETS FLUTUANTES
 * ============================================================================
 */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; padding: 14px 22px; border-radius: 50px; font-family: 'Orbitron', sans-serif; font-weight: 900; text-decoration: none; display: flex; align-items: center; gap: 12px; z-index: 998; box-shadow: 0 5px 25px rgba(37, 211, 102, 0.3); border: 1px solid rgba(255,255,255,0.2); transition: all 0.3s; }

/* ============================================================================
 * 10. MEDIA QUERIES E UX PARA DISPOSITIVOS MÓVEIS (RESPONSIVIDADE)
 * ============================================================================
 */

/* TABLETS (Até 992px) */
@media (max-width: 992px) {
    .layout-wrapper, .grid-admin, .profile-grid { flex-direction: column; grid-template-columns: 1fr; }
    .sidebar-filters { width: 100%; position: relative; top: 0; margin-bottom: 20px; }
    
    /* UX Otimizado: Scroll horizontal nativo nas categorias para poupar espaço vertical */
    .sidebar-list { flex-direction: row; overflow-x: auto; gap: 15px; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
    .sidebar-link { white-space: nowrap; background: rgba(0,243,255,0.05); padding: 8px 15px; border-radius: 20px; border: 1px solid rgba(0,243,255,0.1); }
    
    .header-admin { flex-direction: column; text-align: center; gap: 15px; }
    .grid-layout { grid-template-columns: 1fr; display: flex; flex-direction: column; gap: 25px; padding: 25px 5%; } 
    .summary-sidebar { width: 100%; position: relative !important; top: 0 !important; margin-top: 10px; order: 2;}
}

/* SMARTPHONES (Até 768px) */
@media (max-width: 768px) {
    /* Navbar dividida em linhas e foco na barra de busca */
    .navbar { flex-direction: row; flex-wrap: wrap; gap: 15px; padding: 15px; }
    .brand-wrapper { flex: 1; border: none; padding: 0;}
    .nav-actions { width: auto; flex-direction: row; gap: 10px; }
    .search-form { width: 100%; order: 3; margin: 0; }
    
    .user-op-label { display: none; }
    .btn-nav span { display: none; } 
    
    .center-box { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    
    /* Prevenção de conflito com botões de navegação nativos do iOS/Android */
    .whatsapp-float { bottom: 25px; right: 15px; padding: 15px; border-radius: 50%; }
    .whatsapp-float span { display: none; }
    .whatsapp-float svg { margin: 0; }
    
    .wizard-container { padding: 20px 15px; }
    .progress-indicator { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding-bottom: 15px; }
    .progress-indicator::-webkit-scrollbar { height: 4px; }
    .progress-indicator::-webkit-scrollbar-thumb { background: var(--neon-ciano); border-radius: 4px; }

    .wizard-actions { flex-direction: column; gap: 15px; text-align: center; }
    .wizard-actions button { width: 100%; transform: none !important; }

    .cyber-modal-content { padding: 35px 20px 25px; width: 95%; max-height: 85vh; }
    .modal-action-bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .btn-buy-primary { width: 100%; text-align: center; }

    .summary-sidebar { padding: 20px 15px; }
    
    .mega-banner-container { padding: 20px 5%; }
    .smart-config-banner { padding: 30px 20px; text-align: center; justify-content: center; }
}

/* SMARTPHONES PEQUENOS (Até 480px) */
@media (max-width: 480px) {
    /* UX: Força visualização em grelha 2x2 tipo App para aproveitar melhor o ecrã */
    .products-grid, .options-list { 
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
    }
    
    .product-card, .option-card { padding: 12px; }
    .product-img-wrapper, .option-img { height: 120px; margin-bottom: 12px; }
    
    .product-title, .option-title { 
        font-size: 0.9rem; margin-bottom: 8px; height: 2.5rem; line-height: 1.25;
    }
    
    /* V6.2 PATCH: Ajuste do Botão "Detalhes" sob o preço para evitar quebras */
    .product-footer {
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px; 
        padding-top: 12px; 
    }
    
    .product-price, .option-price {
        font-size: 1.1rem; 
        line-height: 1; 
        width: 100%; 
        text-align: left;
    }

    /* Aumenta a área de toque (Touch Target) do botão no mobile */
    .btn-view { 
        width: 100%; 
        padding: 10px 8px; 
        font-size: 0.8rem; 
        justify-content: center; 
    }
    
    .add-overlay-btn { padding: 12px 5px; font-size: 0.8rem; }
    
    .qty-controls { padding: 6px; gap: 10px; flex-wrap: wrap; }
    .qty-btn { width: 32px; height: 32px; font-size: 1.1rem; }

    .center-box { padding: 25px 15px; }
    .icon-status { width: 60px; height: 60px; font-size: 30px; }

    /* Ajuste responsivo extra para garantir que os botões Admin quebrem bem em ecrãs mínimos */
    .action-group { flex-direction: column; align-items: stretch; }
}