/* ========== TECNOVENDAS - GLOBAL STYLES (Tema Corporativo) ========== */
:root {
    /* Cores da Marca - Paleta Equilibrada */
    --primary: #333333;           /* Cinza escuro - elementos principais */
    --primary-blue: #004D99;      /* Azul corporativo - destaques */
    --secondary: #004D99;         /* Azul corporativo */
    --cta-primary: #E30613;       /* Vermelho - CTAs principais */
    --cta-primary-hover: #C5000B; /* Vermelho hover */
    --cta-attention: #FF6B00;     /* Laranja - badges de atenção */

    /* Fundos */
    --bg-light: #FAFAFA;          /* Background geral - quase branco */
    --bg-hover: #E2E8F0;          /* Retângulo azul-cinza de "passar o mouse" no menu */
    --azul-claro: #93C5FD;        /* Azul claro: contorno do item sob o mouse */
    --verde-claro: #B7E4C7;       /* Verde claro: barra dos subtítulos (letras pretas) */
    --surface: #FFFFFF;           /* Cards, modais, inputs */
    --bg-dark: #333333;           /* Rodapé e áreas dark */

    /* Texto */
    --text-primary: #222222;      /* Texto principal - cinza bem escuro */
    --text-secondary: #555555;    /* Subtítulos - cinza médio */
    --text-muted: #888888;        /* Placeholders, hints */
    --text-on-dark: #FFFFFF;      /* Texto em fundo escuro */

    /* UI/Feedback */
    --border-color: #E0E0E0;      /* Bordas - cinza claro */
    --success: #00704A;           /* Verde corporativo */
    --warning: #FF6B00;           /* Laranja warning */
    --error: #E30613;             /* Vermelho erro */
    --whatsapp: #25D366;          /* WhatsApp */

    /* Aliases de compatibilidade (para migração gradual) */
    --tecno-dark: var(--bg-light);
    --tecno-darker: var(--primary);
    --tecno-gold: var(--cta-primary);
    --tecno-gold-hover: var(--cta-primary-hover);
    --tecno-gray: var(--surface);
    --text-white: var(--text-primary);
    --text-light: var(--text-secondary);

    /* Tipografia */
    --font-main: 'Open Sans', sans-serif;

    /* Layout */
    --max-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Utility Classes */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-on-dark { color: var(--text-on-dark); }
.text-cta { color: var(--cta-primary); }
.bg-light { background-color: var(--bg-light); }
.bg-surface { background-color: var(--surface); }
.bg-dark { background-color: var(--bg-dark); }
.bg-primary { background-color: var(--primary); }
.bg-cta { background-color: var(--cta-primary); }


/* ===== lib/components/TopBar.svelte ===== */
.topbar {
        background-color: var(--primary);
        color: var(--text-on-dark);
        font-size: 12px;
        height: 40px;
        position: relative;
        z-index: 2000;
    }

    .topbar-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }

    .topbar-left, .topbar-right {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .utility-link {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        transition: 0.2s;
        white-space: nowrap;
        color: var(--text-on-dark);
    }

    .utility-link:hover {
        color: rgba(255, 255, 255, 0.7);
    }

    .highlight {
        color: white;
        font-weight: 600;
    }

    .highlight:hover {
        color: rgba(255, 255, 255, 0.7);
    }

    .flag {
        font-size: 14px;
    }

    .arrow {
        font-size: 9px;
        margin-left: 3px;
    }

    /* Dropdown */
    .dropdown-wrapper {
        position: relative;
        height: 40px;
        display: flex;
        align-items: center;
    }

    .dropdown-list {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: var(--surface);
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        border-top: 3px solid var(--primary);
        border-radius: 0 0 6px 6px;
        display: none;
        flex-direction: column;
        padding: 8px 0;
        z-index: 2001;
    }

    .dropdown-wrapper:hover .dropdown-list {
        display: flex;
    }

    .dropdown-list a,
    .dropdown-list button {
        padding: 10px 20px;
        color: var(--text-secondary);
        font-size: 13px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 10px;
        border: none;
        background: none;
        text-align: left;
        cursor: pointer;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        white-space: nowrap;
    }

    .dropdown-list a:hover,
    .dropdown-list button:hover {
        background: var(--bg-hover);
        color: var(--text-primary);
        padding-left: 25px;
        box-shadow: inset 0 0 0 1px var(--azul-claro);
    }

    .dropdown-list button.active {
        color: var(--text-primary);
        background: var(--bg-hover);
    }

    .dropdown-list a i,
    .dropdown-list button i {
        color: var(--text-primary);
        font-size: 12px;
        width: 18px;
        text-align: center;
    }

    .lang-name {
        color: var(--text-muted);
        font-size: 11px;
    }

    /* Store Button */
    .btn-store {
        background: var(--cta-primary);
        color: white;
        padding: 6px 15px;
        border-radius: 4px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .btn-store:hover {
        background: var(--cta-primary-hover);
        color: white;
    }

    @media (max-width: 1200px) {
        .topbar-left {
            gap: 15px;
        }
        .utility-link {
            font-size: 11px;
        }
    }

    @media (max-width: 768px) {
        .topbar {
            display: none;
        }
    }

/* ===== lib/components/Header.svelte ===== */
.header {
        background: var(--surface);
        padding: 15px 0;
        position: relative;
        z-index: 1500;
        border-bottom: 1px solid var(--border-color);
    }

    .header-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }

    /* Logo */
    .logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .logo img {
        height: 55px;
        width: auto;
        transition: opacity 0.2s;
    }

    .logo:hover img {
        opacity: 0.9;
    }

    /* Search */
    .search-wrapper {
        flex: 1;
        max-width: 600px;
        display: flex;
        align-items: center;
        background: var(--bg-light);
        border-radius: 6px;
        padding: 4px;
        border: 1px solid var(--border-color);
        transition: all 0.2s;
    }

    .search-wrapper.focused {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    }

    .search-icon {
        color: var(--text-muted);
        padding: 0 12px;
        font-size: 16px;
    }

    .search-wrapper input {
        flex: 1;
        border: none;
        outline: none;
        padding: 12px 10px;
        font-size: 15px;
        font-family: inherit;
        background: transparent;
        color: var(--text-primary);
    }

    .search-wrapper input::placeholder {
        color: var(--text-muted);
    }

    .search-btn {
        background: var(--cta-primary);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
    }

    .search-btn:hover {
        background: var(--cta-primary-hover);
    }

    /* Badge */
    .header-badge {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .badge-icon {
        width: 45px;
        height: 45px;
        background: white;
        border: 2px solid var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .badge-icon i {
        font-size: 22px;
        color: var(--text-primary);
    }

    .badge-text {
        display: flex;
        flex-direction: column;
    }

    .badge-title {
        color: var(--text-primary);
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .badge-subtitle {
        color: var(--text-secondary);
        font-size: 11px;
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .header-badge {
            display: none;
        }
        .search-wrapper {
            max-width: 500px;
        }
    }

    @media (max-width: 768px) {
        .header {
            padding: 12px 0;
        }
        .header-flex {
            flex-direction: column;
            gap: 15px;
        }
        .logo {
            font-size: 24px;
        }
        .search-wrapper {
            width: 100%;
            max-width: 100%;
        }
        .search-btn {
            padding: 12px 18px;
        }
    }

/* ===== lib/components/MainNav.svelte ===== */
.nav-wrapper {
    position: relative;
    z-index: 1000;
}

.main-nav {
        background: var(--primary);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .nav-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 18px 20px;
        font-size: 13px;
        font-weight: 700;
        color: var(--text-on-dark);
        text-decoration: none;
        cursor: pointer;
        transition: color 0.2s;
        border-bottom: 3px solid transparent;
        margin-bottom: -1px;
    }

    .nav-link:hover,
    .nav-item.active .nav-link {
        color: white;
    }

    .nav-item.active .nav-link {
        border-bottom-color: white;
    }

    .arrow {
        font-size: 9px;
        transition: transform 0.2s;
    }

    .nav-item.active .arrow {
        transform: rotate(180deg);
    }

    /* Quick Actions */
    .nav-actions {
        display: flex;
        gap: 10px;
    }

    .action-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 18px;
        font-size: 12px;
        font-weight: 600;
        border-radius: 4px;
        text-decoration: none;
        transition: all 0.2s;
    }

    .action-btn:first-child {
        background: var(--cta-primary);
        color: white;
    }

    .action-btn:first-child:hover {
        background: var(--cta-primary-hover);
    }

    .action-btn.whatsapp {
        background: var(--whatsapp);
        color: white;
    }

    .action-btn.whatsapp:hover {
        background: #1da851;
    }

    /* Responsive */
    @media (max-width: 1200px) {
        .nav-link {
            padding: 18px 15px;
            font-size: 12px;
        }
        .action-btn {
            padding: 8px 12px;
            font-size: 11px;
        }
    }

    @media (max-width: 992px) {
        .nav-actions {
            display: none;
        }
    }

    @media (max-width: 768px) {
        .main-nav {
            display: none;
        }
    }

/* ===== lib/components/MegaMenu.svelte ===== */
.mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-top: 3px solid var(--primary);
        z-index: 999;
        animation: slideDown 0.2s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mega-flex {
        display: flex;
        min-height: 350px;
    }

    /* Sidebar - modo padrão (coluna única) */
    .mega-sidebar {
        width: 280px;
        background: var(--bg-light);
        border-right: 1px solid var(--border-color);
        padding: 15px 0;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }

    /* Sidebar - modo grid (duas colunas para muitas categorias) */
    .mega-sidebar.sidebar-grid-mode {
        width: 480px;
        flex-shrink: 0;
        padding: 16px 12px;
    }

    .sidebar-inner {
        display: flex;
        flex-direction: column;
    }

    .sidebar-inner.sidebar-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    /* Item padrão (coluna única) */
    .sidebar-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        color: var(--text-secondary);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        border-left: 3px solid transparent;
        text-decoration: none;
    }

    /* Item no modo grid */
    .sidebar-grid .sidebar-item {
        gap: 8px;
        padding: 8px 10px;
        font-size: 12.5px;
        border-left: none;
        border-radius: 6px;
        border: 1px solid transparent;
        min-width: 0;
    }

    .sidebar-item i:first-child {
        width: 20px;
        text-align: center;
        color: var(--text-primary);
    }

    .sidebar-grid .sidebar-item i:first-child {
        width: 18px;
        font-size: 14px;
    }

    .sidebar-item span {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-grid .sidebar-item span {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.25;
        font-size: 12.5px;
    }

    .sidebar-icon {
        font-size: 14px;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }

    .sidebar-item .arrow {
        font-size: 10px;
        color: var(--text-muted);
        opacity: 0;
        transition: opacity 0.2s;
    }

    /* Categoria SELECIONADA (a que abre a coluna da direita): barra azul-escura
       com letras brancas.
       Uma regra só para "selecionada" e "sob o mouse" de propósito: passar o
       mouse já seleciona a categoria, então é sempre o mesmo item. Antes havia
       duas regras e a ordem entre elas decidia qual vencia. */
    .sidebar-item:hover,
    .sidebar-item.active {
        background: var(--primary-blue);
        border-left-color: var(--primary-blue);
        color: #ffffff;
        border-radius: 6px;
        /* contorno por dentro: não empurra o texto nem muda o tamanho da linha */
        box-shadow: inset 0 0 0 1px var(--azul-claro);
    }

    /* Ícone e seta em branco, para acompanhar a barra azul-escura */
    .sidebar-item:hover i:first-child,
    .sidebar-item.active i:first-child,
    .sidebar-item:hover .arrow,
    .sidebar-item.active .arrow {
        color: #ffffff;
    }

    .sidebar-item:hover .arrow,
    .sidebar-item.active .arrow {
        opacity: 1;
    }

    /* Modo grade: mesma barra azul-escura, com o contorno azul-claro na borda */
    .sidebar-grid .sidebar-item:hover,
    .sidebar-grid .sidebar-item.active {
        background: var(--primary-blue);
        border-left-color: transparent;
        border-color: var(--azul-claro);
        color: #ffffff;
    }

    /* Content */
    .mega-content {
        flex: 1;
        padding: 25px 30px;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }

    .content-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .content-header h3 {
        color: var(--primary);
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .content-header p {
        color: var(--text-secondary);
        font-size: 14px;
    }

    /* Título da categoria no painel da direita ("Monitoramento e CFTV"): barra
       VERDE-ESCURA com letras brancas (o Luiz pediu para trocar o azul-escuro
       por verde-escuro; a barra da coluna da esquerda continua azul). */
    .content-body h4 {
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--success);
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 20px;
        padding: 8px 12px;
        border-radius: 4px;
    }

    .content-body h4 i {
        color: #ffffff;
    }

    .items-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .item-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        color: var(--text-secondary);
        font-size: 13px;
        border-radius: 4px;
        transition: all 0.2s;
        text-decoration: none;
    }

    .item-link i {
        font-size: 10px;
        color: var(--text-primary);
        transition: transform 0.2s;
    }

    .item-link:hover {
        background: var(--bg-hover);
        color: var(--text-primary);
        box-shadow: inset 0 0 0 1px var(--azul-claro);
    }

    .item-link:hover i {
        transform: translateX(3px);
        color: var(--text-primary);
    }

    /* Menu de 3 níveis */
    .mega-content.three-level {
        padding: 20px 25px;
        overflow-y: auto;
        max-height: 450px;
    }

    .mega-content.three-level .content-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .mega-content.three-level .content-body h4 {
        margin-bottom: 15px;
        font-size: 15px;
    }

    .subcategories-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .subcategory-block {
        min-width: 0;
    }

    /* Barra verde-clara com letras pretas */
    .subcategory-title {
        display: block;
        background: var(--verde-claro);
        color: #000000;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        padding: 4px 10px;
        border-radius: 4px;
        text-decoration: none;
        transition: background 0.2s;
    }

    .subcategory-title:hover {
        background: #9BD5B0;
    }

    .subcategory-items {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .subcategory-items .item-link {
        padding: 6px 8px;
        font-size: 12.5px;
        display: block;
        line-height: 1.35;
        border-radius: 4px;
        transition: all 0.15s ease;
    }

    .subcategory-items .item-link:hover {
        background: var(--bg-hover);
        box-shadow: inset 0 0 0 1px var(--azul-claro);
        color: var(--text-primary);
    }

    /* Responsive */
    @media (max-width: 1200px) {
        .mega-sidebar.sidebar-grid-mode {
            width: 380px;
        }
        .sidebar-grid .sidebar-item {
            font-size: 12px;
            padding: 8px 10px;
        }
        .subcategories-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }
    }

    @media (max-width: 1024px) {
        .mega-sidebar {
            width: 240px;
        }
        .mega-sidebar.sidebar-grid-mode {
            width: 320px;
        }
        .sidebar-inner.sidebar-grid {
            grid-template-columns: 1fr;
        }
        .items-grid {
            grid-template-columns: 1fr;
        }
        .subcategories-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .mega-menu {
            display: none;
        }
    }

/* ===== lib/components/HeroSlider.svelte ===== */
.hero {
        position: relative;
        height: 70vh;
        min-height: 500px;
        max-height: 750px;
        overflow: hidden;
        background: #1a1a2e;
    }

    /* Slides */
    .slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.6s ease, visibility 0.6s ease;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .slide.active {
        opacity: 1;
        visibility: visible;
    }

    .slide-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
    }

    .slide-content {
        position: relative;
        z-index: 2;
        max-width: 650px;
        padding: 80px 0;
    }

    .tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 12px;
        font-weight: 600;
        padding: 8px 16px;
        border-radius: 30px;
        margin-bottom: 24px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .tag i {
        font-size: 14px;
        color: white;
    }

    h1 {
        color: white;
        font-size: 52px;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 24px;
    }

    .highlight {
        color: white;
        text-decoration: underline;
        text-decoration-thickness: 3px;
        text-underline-offset: 6px;
    }

    p {
        color: rgba(255, 255, 255, 0.85);
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 32px;
        max-width: 500px;
    }

    .cta-button {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: var(--cta-primary);
        color: white;
        font-size: 15px;
        font-weight: 700;
        padding: 16px 32px;
        border-radius: 6px;
        transition: all 0.3s;
    }

    .cta-button:hover {
        background: #c5050f;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
    }

    .cta-button i {
        font-size: 12px;
        transition: transform 0.3s;
    }

    .cta-button:hover i {
        transform: translateX(4px);
    }

    /* Hero Slider Arrows */
    .hero-slider .arrow,
    .hero .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 18px;
        cursor: pointer;
        transition: background 0.3s;
        z-index: 10;
    }

    .hero-slider .arrow:hover,
    .hero .arrow:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .hero-slider .arrow-left,
    .hero .arrow-left {
        left: 24px;
    }

    .hero-slider .arrow-right,
    .hero .arrow-right {
        right: 24px;
    }

    /* Bottom bar */
    .bottom-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
    }

    .tabs {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 16px;
    }

    .tab {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 24px;
        background: rgba(255, 255, 255, 0.08);
        border: none;
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }

    .tab i {
        font-size: 16px;
    }

    .tab:hover {
        background: rgba(255, 255, 255, 0.15);
        color: white;
    }

    .tab.active {
        background: white;
        color: #1a1a2e;
    }

    /* Progress bar */
    .progress-bar {
        height: 4px;
        background: rgba(255, 255, 255, 0.1);
    }

    .progress-fill {
        height: 100%;
        background: white;
        transition: width 0.1s linear;
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .hero {
            height: 60vh;
            min-height: 450px;
        }

        h1 {
            font-size: 40px;
        }

        p {
            font-size: 16px;
        }

        .tab-text {
            display: none;
        }

        .tab {
            padding: 14px 18px;
        }
    }

    @media (max-width: 768px) {
        .hero {
            height: 55vh;
            min-height: 400px;
        }

        .slide-content {
            padding: 60px 0;
        }

        h1 {
            font-size: 32px;
        }

        p {
            font-size: 15px;
            margin-bottom: 24px;
        }

        .cta-button {
            padding: 14px 24px;
            font-size: 14px;
        }

        .hero-slider .arrow,
        .hero .arrow {
            width: 40px;
            height: 40px;
            font-size: 14px;
        }

        .arrow-left {
            left: 12px;
        }

        .arrow-right {
            right: 12px;
        }

        .tabs {
            gap: 6px;
            padding: 12px;
        }

        .tab {
            padding: 12px 14px;
        }
    }

    @media (max-width: 480px) {
        .hero {
            height: 50vh;
            min-height: 350px;
        }

        h1 {
            font-size: 26px;
        }

        .tag {
            font-size: 11px;
            padding: 6px 12px;
        }

        p {
            font-size: 14px;
        }

        .hero-slider .arrow,
        .hero .arrow {
            display: none;
        }
    }

/* ===== lib/components/ProductSlider.svelte ===== */
.products-section {
        background: var(--bg-light);
        padding: 50px 0;
    }

    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 30px;
    }

    .products-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .products-header h2 {
        color: var(--text-primary);
        font-size: 24px;
        font-weight: 700;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        background: var(--surface);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        color: var(--text-secondary);
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .nav-btn:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
    }

    .view-all {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--text-primary);
        font-size: 14px;
        font-weight: 600;
        margin-left: 15px;
    }

    .view-all:hover {
        text-decoration: underline;
    }

    .view-all i {
        font-size: 11px;
    }

    /* Slider */
    .slider-viewport {
        overflow: hidden;
    }

    .slider-track {
        display: flex;
        transition: transform 0.4s ease;
    }

    /* Product Card */
    .product-card {
        flex: 0 0 20%;
        padding: 0 10px;
        text-decoration: none;
    }

    .badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background: var(--primary);
        color: white;
        font-size: 10px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 3px;
        z-index: 2;
    }

    .badge.promo {
        background: var(--error);
        color: white;
    }

    .badge.new {
        background: var(--success);
        color: white;
    }

    .product-img {
        position: relative;
        background: var(--surface);
        margin-bottom: 12px;
        overflow: hidden;
        border-radius: 4px;
        border: 1px solid var(--border-color);
    }

    .product-img img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        transition: transform 0.3s;
    }

    .product-card:hover .product-img img {
        transform: scale(1.05);
    }

    .product-info {
        padding: 0 5px;
    }

    .category {
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .product-info h3 {
        color: var(--text-primary);
        font-size: 14px;
        font-weight: 600;
        margin: 6px 0;
        line-height: 1.4;
    }

    .product-card:hover h3 {
        color: var(--text-secondary);
    }

    .price {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .old {
        color: var(--text-muted);
        font-size: 12px;
        text-decoration: line-through;
    }

    .current {
        color: var(--text-primary);
        font-size: 16px;
        font-weight: 700;
    }

    /* Responsive */
    @media (max-width: 1200px) {
        .product-card {
            flex: 0 0 25%;
        }
    }

    @media (max-width: 900px) {
        .product-card {
            flex: 0 0 33.333%;
        }
    }

    @media (max-width: 600px) {
        .products-section {
            padding: 30px 0;
        }

        .container {
            padding: 0 15px;
        }

        .products-header {
            flex-wrap: wrap;
            gap: 15px;
        }

        .products-header h2 {
            font-size: 20px;
        }

        .product-card {
            flex: 0 0 50%;
        }

        .nav-btn {
            width: 35px;
            height: 35px;
        }
    }

/* ===== lib/components/CategoryPage.svelte ===== */
.category-page {
        min-height: 100vh;
    }

    /* Hero Section */
    .page-hero {
        background: linear-gradient(135deg, var(--primary) 0%, #1a1a1a 100%);
        padding: 60px 0 80px;
        position: relative;
    }

    .page-hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: white;
    }

    .breadcrumb {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 25px;
        font-size: 13px;
    }

    .breadcrumb a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: color 0.2s;
    }

    .breadcrumb a:hover {
        color: white;
    }

    .breadcrumb i {
        color: rgba(255, 255, 255, 0.4);
        font-size: 10px;
    }

    .breadcrumb span {
        color: white;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.15);
        color: white;
        padding: 8px 16px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .hero-content h1 {
        color: white;
        font-size: 42px;
        font-weight: 800;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .hero-content p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 18px;
        line-height: 1.6;
    }

    /* Categories Section */
    .categories-section {
        padding: 80px 0;
        background: var(--bg-light);
    }

    .section-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .section-header h2 {
        color: var(--primary);
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .section-header p {
        color: var(--text-secondary);
        font-size: 16px;
    }

    .categories-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .category-card {
        background: white;
        border-radius: 12px;
        padding: 30px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        transition: all 0.3s;
        border: 1px solid var(--border-color);
    }

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        border-color: var(--primary);
    }

    .card-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .card-icon {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--primary) 0%, #1a1a1a 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .card-icon i {
        color: white;
        font-size: 22px;
    }

    .card-header h3 {
        color: var(--primary);
        font-size: 18px;
        font-weight: 700;
        margin: 0;
    }

    .category-items {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .category-items li {
        margin-bottom: 8px;
    }

    .category-items li:last-child {
        margin-bottom: 0;
    }

    .category-items a {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-secondary);
        font-size: 14px;
        text-decoration: none;
        padding: 8px 10px;
        border-radius: 6px;
        transition: all 0.2s;
    }

    .category-items a i {
        font-size: 10px;
        color: var(--text-muted);
        transition: transform 0.2s;
    }

    .category-items a:hover {
        background: var(--bg-light);
        color: var(--text-primary);
    }

    .category-items a:hover i {
        transform: translateX(3px);
    }

    .card-footer {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px dashed var(--border-color);
    }

    .more-items {
        color: var(--text-muted);
        font-size: 13px;
        font-style: italic;
    }

    /* CTA Section */
    .cta-section {
        background: var(--primary);
        padding: 60px 0;
    }

    .cta-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }

    .cta-text h3 {
        color: white;
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .cta-text p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 16px;
    }

    .cta-buttons {
        display: flex;
        gap: 15px;
    }

    .cta-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 28px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s;
    }

    .cta-btn.primary {
        background: var(--cta-primary);
        color: white;
    }

    .cta-btn.primary:hover {
        background: var(--cta-primary-hover);
        transform: translateY(-2px);
    }

    .cta-btn.whatsapp {
        background: var(--whatsapp);
        color: white;
    }

    .cta-btn.whatsapp:hover {
        background: #1da851;
        transform: translateY(-2px);
    }

    /* Responsive */
    @media (max-width: 1200px) {
        .categories-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 992px) {
        .hero-content h1 {
            font-size: 36px;
        }

        .cta-content {
            flex-direction: column;
            text-align: center;
        }

        .cta-buttons {
            justify-content: center;
        }
    }

    @media (max-width: 768px) {
        .page-hero {
            padding: 40px 0 60px;
        }

        .hero-content h1 {
            font-size: 28px;
        }

        .hero-content p {
            font-size: 16px;
        }

        .categories-section {
            padding: 50px 0;
        }

        .categories-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .section-header h2 {
            font-size: 26px;
        }

        .cta-section {
            padding: 40px 0;
        }

        .cta-text h3 {
            font-size: 22px;
        }

        .cta-buttons {
            flex-direction: column;
            width: 100%;
        }

        .cta-btn {
            justify-content: center;
        }
    }

/* ===== lib/components/Sidebar.svelte ===== */
.sidebar {
        width: 280px;
        flex-shrink: 0;
    }

    /* Televendas */
    .televendas {
        background: white;
        border: 2px solid var(--primary);
        border-radius: 8px;
        padding: 20px;
        text-align: center;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .televendas-header {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .televendas-header i {
        font-size: 28px;
        color: var(--text-primary);
    }

    .televendas-header span {
        font-size: 22px;
        font-weight: 700;
        color: var(--text-primary);
    }

    .phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    .phone a:first-child {
        font-size: 20px;
        font-weight: 700;
        color: var(--text-primary);
    }

    .phone a:first-child:hover {
        color: var(--text-secondary);
    }

    .whatsapp {
        width: 32px;
        height: 32px;
        background: var(--whatsapp);
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: transform 0.2s;
    }

    .whatsapp:hover {
        transform: scale(1.1);
    }

    .whatsapp i {
        font-size: 18px;
    }

    .email {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: var(--text-secondary);
        font-size: 13px;
        margin: 6px 0;
    }

    .email i {
        color: var(--text-primary);
        font-size: 12px;
    }

    .email:hover {
        color: var(--text-primary);
    }

    .horario {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        font-size: 13px;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .horario i {
        color: var(--text-primary);
    }

    /* Chat CTA */
    .chat-cta {
        background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
        border-radius: 8px;
        padding: 25px 20px;
        text-align: center;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        border: 1px solid var(--border-color);
    }

    .cta-icon {
        width: 50px;
        height: 50px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 15px;
    }

    .cta-icon i {
        font-size: 24px;
        color: var(--primary);
    }

    .chat-cta p {
        color: var(--text-on-dark);
        font-size: 15px;
        margin: 0 0 15px 0;
    }

    .chat-cta strong {
        color: white;
        font-weight: 700;
    }

    .chat-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--whatsapp);
        color: white;
        font-weight: 700;
        font-size: 14px;
        padding: 12px 25px;
        border-radius: 6px;
        transition: all 0.2s;
    }

    .chat-btn:hover {
        background: #1da851;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    /* Login */
    .login-box {
        background: var(--surface);
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid var(--border-color);
    }

    .login-header {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid var(--primary);
    }

    .login-header i {
        font-size: 24px;
        color: var(--text-primary);
    }

    .login-header span {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-primary);
    }

    .input-group {
        position: relative;
        margin-bottom: 12px;
    }

    .input-group i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 14px;
    }

    .login-form input[type="text"],
    .login-form input[type="password"] {
        width: 100%;
        padding: 12px 12px 12px 40px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        background: var(--bg-light);
        color: var(--text-primary);
        font-size: 14px;
        transition: border-color 0.2s;
    }

    .login-form input::placeholder {
        color: var(--text-muted);
    }

    .login-form input:focus {
        outline: none;
        border-color: var(--text-primary);
        background: white;
    }

    .login-remember {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 15px;
        color: var(--text-secondary);
        font-size: 13px;
    }

    .login-remember input {
        accent-color: var(--text-primary);
    }

    .login-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--cta-primary);
        color: white;
        font-weight: 700;
        padding: 12px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: background 0.2s;
    }

    .login-btn:hover {
        background: var(--cta-primary-hover);
    }

    .login-links {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        text-align: center;
    }

    .login-links a {
        display: block;
        color: var(--text-secondary);
        font-size: 13px;
        padding: 5px 0;
        transition: color 0.2s;
    }

    .login-links a:hover {
        color: var(--text-primary);
    }

    .login-links .create-account {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 10px;
        padding: 10px 20px;
        background: var(--bg-light);
        border-radius: 6px;
        color: var(--text-primary);
        font-weight: 600;
    }

    .login-links .create-account:hover {
        background: var(--primary);
        color: white;
    }

    /* Counter */
    .counter {
        background: var(--surface);
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid var(--border-color);
    }

    .counter-header {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .counter-header i {
        font-size: 20px;
        color: var(--primary);
    }

    .counter-header span {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-primary);
    }

    .counter-total {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-bottom: 8px;
    }

    .digit {
        background: var(--primary);
        color: white;
        font-size: 16px;
        font-weight: 700;
        width: 28px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
    }

    .counter-label-main {
        text-align: center;
        font-size: 12px;
        color: var(--text-secondary);
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .counter-row {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 13px;
    }

    .counter-row:last-child {
        border-bottom: none;
    }

    .counter-label {
        color: var(--text-secondary);
    }

    .counter-value {
        color: var(--text-primary);
        font-weight: 700;
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .sidebar {
            width: 100%;
            max-width: 100%;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
    }

    @media (max-width: 600px) {
        .sidebar {
            grid-template-columns: 1fr;
        }
    }

/* ===== lib/components/Footer.svelte ===== */
.footer {
        margin-top: auto;
    }

    /* Newsletter Bar */
    .newsletter-bar {
        background: #444444;
        padding: 25px 0;
    }

    .newsletter-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }

    .newsletter-text {
        display: flex;
        align-items: center;
        gap: 15px;
        color: white;
    }

    .newsletter-text i {
        font-size: 32px;
        opacity: 0.9;
    }

    .newsletter-text strong {
        display: block;
        font-size: 18px;
        font-weight: 700;
    }

    .newsletter-text span {
        font-size: 14px;
        opacity: 0.9;
    }

    .newsletter-form {
        display: flex;
        gap: 10px;
    }

    .newsletter-form input {
        padding: 14px 20px;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        width: 300px;
        outline: none;
        background: white;
        color: var(--text-primary);
    }

    .newsletter-form button {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 25px;
        background: var(--cta-primary);
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
    }

    .newsletter-form button:hover {
        background: var(--cta-primary-hover);
    }

    /* Main Footer */
    .footer-main {
        background: #333333;
        padding: 50px 0;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
    }

    .footer-col h3 {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-on-dark);
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid rgba(255,255,255,0.3);
    }

    .footer-col ul {
        list-style: none;
    }

    .footer-col li {
        margin-bottom: 12px;
    }

    .footer-col a {
        color: white;
        font-size: 15px;
        transition: all 0.2s;
    }

    .footer-col a:hover {
        text-decoration: underline;
    }

    /* Contact Column */
    .contact-info {
        margin-bottom: 20px;
    }

    .contact-info p {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
        font-size: 15px;
        color: white;
    }

    .contact-info i {
        width: 16px;
        text-align: center;
        color: white;
    }

    .contact-info a {
        color: white;
    }

    .contact-info a:hover {
        text-decoration: underline;
    }

    .contact-info .whatsapp-highlight {
        background: rgba(37, 211, 102, 0.15);
        padding: 8px 12px;
        border-radius: 6px;
        margin-left: -12px;
    }

    .contact-info .whatsapp-highlight a {
        color: #25D366;
        font-weight: 600;
    }

    /* Social Links */
    .social-links {
        display: flex;
        gap: 10px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
        border-radius: 4px;
        font-size: 16px;
        transition: all 0.2s;
    }

    .social-links a:hover {
        background: rgba(255, 255, 255, 0.25);
        color: white;
        transform: translateY(-2px);
    }

    /* Copyright Bar */
    .copyright-bar {
        background: #222222;
        padding: 18px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .copyright-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .copyright-bar p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
    }

    .legal-links {
        display: flex;
        gap: 20px;
    }

    .legal-links a {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
    }

    .legal-links a:hover {
        text-decoration: underline;
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .footer-grid {
            grid-template-columns: repeat(3, 1fr);
        }
        .contact-col {
            grid-column: span 3;
        }
    }

    @media (max-width: 768px) {
        .newsletter-flex {
            flex-direction: column;
            text-align: center;
        }
        .newsletter-text {
            flex-direction: column;
        }
        .newsletter-form {
            flex-direction: column;
            width: 100%;
        }
        .newsletter-form input {
            width: 100%;
        }
        .footer-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        .contact-col {
            grid-column: span 2;
        }
        .copyright-flex {
            flex-direction: column;
            gap: 10px;
            text-align: center;
        }
    }

    @media (max-width: 480px) {
        .footer-grid {
            grid-template-columns: 1fr;
        }
        .contact-col {
            grid-column: span 1;
        }
    }

/* ===== lib/pages/Produtos.svelte ===== */
.produtos-page {
        min-height: 100vh;
    }

    /* Hero Section — imagem de fundo (colagem KNX/automação) com véu escuro
       mais forte à esquerda (onde fica o texto) e leve à direita. */
    .page-hero {
        background: var(--hero-image) center 45% / cover no-repeat;
        padding: 80px 0 100px;
        position: relative;
        min-height: 420px;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            100deg,
            rgba(15, 23, 42, 0.94) 0%,
            rgba(15, 23, 42, 0.84) 42%,
            rgba(15, 23, 42, 0.34) 100%
        );
    }

    .page-hero .container {
        position: relative;
        z-index: 2;
    }

    .page-hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--cta-primary);
    }

    .breadcrumb {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 30px;
        font-size: 13px;
    }

    .breadcrumb a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: color 0.2s;
    }

    .breadcrumb a:hover {
        color: white;
    }

    .breadcrumb i {
        color: rgba(255, 255, 255, 0.4);
        font-size: 10px;
    }

    .breadcrumb span {
        color: white;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--cta-primary);
        color: white;
        padding: 10px 20px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 25px;
    }

    .hero-content h1 {
        color: white;
        font-size: 52px;
        font-weight: 800;
        margin-bottom: 20px;
        line-height: 1.1;
    }

    .hero-content > p {
        color: rgba(255, 255, 255, 0.85);
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 40px;
    }

    .hero-stats {
        display: flex;
        gap: 50px;
    }

    .stat {
        display: flex;
        flex-direction: column;
    }

    .stat-number {
        color: var(--cta-primary);
        font-size: 42px;
        font-weight: 800;
        line-height: 1;
    }

    .stat-label {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        margin-top: 5px;
    }

    /* Quick Nav */
    .quick-nav {
        background: white;
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 60px;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-scroll {
        display: flex;
        gap: 5px;
        padding: 15px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .nav-scroll::-webkit-scrollbar-thumb {
        background: var(--cta-primary);
        border-radius: 2px;
    }

    .nav-scroll .nav-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        background: var(--bg-light);
        border-radius: 25px;
        color: var(--text-secondary);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        transition: all 0.2s;
        border: 1px solid transparent;
    }

    .nav-scroll .nav-item:hover {
        background: white;
        color: var(--cta-primary);
        border-color: var(--cta-primary);
    }

    .nav-scroll .nav-item i {
        font-size: 14px;
    }

    /* Category Sections */
    .category-section {
        padding: 100px 0;
        background: white;
    }

    .category-section.alt {
        background: var(--bg-light);
    }

    .section-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }

    .section-grid.reverse {
        direction: rtl;
    }

    .section-grid.reverse > * {
        direction: ltr;
    }

    .section-header {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 25px;
    }

    .section-icon {
        width: 70px;
        height: 70px;
        background: linear-gradient(135deg, var(--cta-primary) 0%, #ff4444 100%);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .section-icon i {
        color: white;
        font-size: 30px;
    }

    .section-tag {
        display: inline-block;
        color: var(--cta-primary);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }

    .section-title h2 {
        color: var(--primary);
        font-size: 32px;
        font-weight: 800;
        margin: 0;
    }

    .section-description {
        color: var(--text-secondary);
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 25px;
    }

    .features-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }

    .feature {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text-primary);
        font-size: 15px;
    }

    .feature i {
        color: var(--cta-primary);
        font-size: 18px;
    }

    .section-cta {
        display: flex;
        gap: 15px;
    }

    .btn-whatsapp {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: var(--whatsapp);
        color: white;
        padding: 14px 28px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s;
    }

    .btn-whatsapp:hover {
        background: #1da851;
        transform: translateY(-2px);
    }

    /* Products Grid */
    .section-products {
        background: white;
        border-radius: 16px;
        padding: 30px;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--border-color);
    }

    .category-section.alt .section-products {
        background: white;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: var(--bg-light);
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.2s;
        border: 1px solid transparent;
    }

    .product-card:hover {
        background: white;
        border-color: var(--cta-primary);
        transform: translateX(5px);
    }

    .product-icon {
        width: 36px;
        height: 36px;
        background: white;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .product-card:hover .product-icon {
        background: var(--cta-primary);
    }

    .product-icon i {
        color: var(--cta-primary);
        font-size: 14px;
        transition: color 0.2s;
    }

    .product-card:hover .product-icon i {
        color: white;
    }

    .product-name {
        flex: 1;
        color: var(--text-primary);
        font-size: 13px;
        font-weight: 600;
    }

    .product-arrow {
        color: var(--text-muted);
        font-size: 11px;
        transition: all 0.2s;
    }

    .product-card:hover .product-arrow {
        color: var(--cta-primary);
        transform: translateX(3px);
    }

    /* Final CTA */
    .final-cta {
        background: linear-gradient(135deg, var(--primary) 0%, #1a1a1a 100%);
        padding: 80px 0;
    }

    .cta-content {
        display: flex;
        align-items: center;
        gap: 40px;
        background: rgba(255, 255, 255, 0.05);
        padding: 50px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .cta-icon {
        width: 100px;
        height: 100px;
        background: var(--cta-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .cta-icon i {
        color: white;
        font-size: 40px;
    }

    .cta-text {
        flex: 1;
    }

    .cta-text h3 {
        color: white;
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .cta-text p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 16px;
        line-height: 1.6;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: var(--cta-primary);
        color: white;
        padding: 16px 32px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s;
        white-space: nowrap;
    }

    .btn-primary:hover {
        background: var(--cta-primary-hover);
        transform: translateY(-2px);
    }

    .cta-buttons .btn-whatsapp {
        justify-content: center;
    }

    /* Responsive */
    @media (max-width: 1200px) {
        .section-grid {
            gap: 40px;
        }

        .products-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 992px) {
        .page-hero {
            padding: 60px 0 80px;
        }

        .hero-content h1 {
            font-size: 40px;
        }

        .hero-stats {
            gap: 30px;
        }

        .stat-number {
            font-size: 32px;
        }

        .section-grid {
            grid-template-columns: 1fr;
            gap: 40px;
        }

        .section-grid.reverse {
            direction: ltr;
        }

        .category-section {
            padding: 60px 0;
        }

        .cta-content {
            flex-direction: column;
            text-align: center;
            padding: 40px 30px;
        }

        .cta-buttons {
            flex-direction: row;
        }
    }

    @media (max-width: 768px) {
        .page-hero {
            padding: 40px 0 60px;
        }

        .hero-content h1 {
            font-size: 32px;
        }

        .hero-content > p {
            font-size: 16px;
        }

        .hero-stats {
            flex-wrap: wrap;
            gap: 25px;
        }

        .quick-nav {
            top: 0;
        }

        .section-header {
            flex-direction: column;
            gap: 15px;
        }

        .section-title h2 {
            font-size: 26px;
        }

        .category-section {
            padding: 50px 0;
        }

        .section-products {
            padding: 20px;
        }

        .final-cta {
            padding: 50px 0;
        }

        .cta-icon {
            width: 80px;
            height: 80px;
        }

        .cta-icon i {
            font-size: 32px;
        }

        .cta-text h3 {
            font-size: 22px;
        }

        .cta-buttons {
            flex-direction: column;
            width: 100%;
        }

        .btn-primary, .cta-buttons .btn-whatsapp {
            width: 100%;
        }
    }

/* ===== lib/pages/Suporte.svelte ===== */
.suporte-page {
        min-height: 100vh;
    }

    /* Hero Section — imagem de fundo (sala de controle) com véu escuro
       para o texto ficar legível, mais forte à esquerda e mais leve à direita. */
    .page-hero {
        background: var(--hero-image) center 35% / cover no-repeat;
        padding: 60px 0 80px;
        position: relative;
        min-height: 320px;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            100deg,
            rgba(15, 23, 42, 0.90) 0%,
            rgba(15, 23, 42, 0.70) 45%,
            rgba(15, 23, 42, 0.28) 100%
        );
    }

    .page-hero .container {
        position: relative;
        z-index: 2;
    }

    .page-hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--cta-primary);
    }

    .breadcrumb {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 25px;
        font-size: 13px;
    }

    .breadcrumb a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: color 0.2s;
    }

    .breadcrumb a:hover {
        color: white;
    }

    .breadcrumb i {
        color: rgba(255, 255, 255, 0.4);
        font-size: 10px;
    }

    .breadcrumb span {
        color: white;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--cta-primary);
        color: white;
        padding: 8px 16px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .hero-content h1 {
        color: white;
        font-size: 42px;
        font-weight: 800;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .hero-content p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 18px;
        line-height: 1.6;
    }

    /* Section Header */
    .section-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .section-header h2 {
        color: var(--primary);
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .section-header p {
        color: var(--text-secondary);
        font-size: 16px;
    }

    /* Channels Section */
    .channels-section {
        padding: 80px 0;
        background: var(--bg-light);
    }

    .channels-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .channel-card {
        background: white;
        border-radius: 12px;
        padding: 30px;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        transition: all 0.3s;
        border: 1px solid var(--border-color);
    }

    .channel-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

    .channel-icon {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
    }

    .channel-icon i {
        font-size: 28px;
        color: white;
    }

    .channel-icon.phone {
        background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    }

    .channel-icon.whatsapp {
        background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    }

    .channel-icon.email {
        background: linear-gradient(135deg, var(--cta-primary) 0%, #C5000B 100%);
    }

    .channel-icon.chat {
        background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    }

    .channel-card h3 {
        color: var(--primary);
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .channel-card p {
        color: var(--text-secondary);
        font-size: 14px;
        margin-bottom: 15px;
    }

    .channel-link {
        display: inline-block;
        color: var(--cta-primary);
        font-weight: 600;
        font-size: 15px;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        transition: color 0.2s;
    }

    .channel-link:hover {
        color: var(--cta-primary-hover);
    }

    /* Hours Section */
    .hours-section {
        padding: 60px 0;
        background: white;
    }

    .hours-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hours-info, .emergency-info {
        background: var(--bg-light);
        padding: 30px;
        border-radius: 12px;
    }

    .hours-info h3, .emergency-info h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--primary);
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .hours-info h3 i {
        color: var(--cta-primary);
    }

    .hours-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .hours-item {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .hours-item:last-child {
        border-bottom: none;
    }

    .hours-item .day {
        color: var(--text-secondary);
        font-size: 14px;
    }

    .hours-item .time {
        color: var(--primary);
        font-weight: 600;
        font-size: 14px;
    }

    .emergency-info h3 i {
        color: #FF9800;
    }

    .emergency-info p {
        color: var(--text-secondary);
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .emergency-phone {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: var(--cta-primary);
        color: white;
        padding: 12px 24px;
        border-radius: 6px;
        font-weight: 700;
        font-size: 16px;
        text-decoration: none;
        transition: background 0.2s;
    }

    .emergency-phone:hover {
        background: var(--cta-primary-hover);
    }

    /* FAQ Section */
    .faq-section {
        padding: 80px 0;
        background: var(--bg-light);
    }

    .faq-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .faq-item {
        background: white;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--border-color);
    }

    .faq-item h4 {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: var(--primary);
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .faq-item h4 i {
        color: var(--cta-primary);
        margin-top: 3px;
    }

    .faq-item p {
        color: var(--text-secondary);
        font-size: 14px;
        line-height: 1.6;
    }

    /* Links Section */
    .links-section {
        padding: 80px 0;
        background: white;
    }

    .links-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .link-card {
        background: var(--bg-light);
        padding: 30px;
        border-radius: 12px;
        text-align: center;
        text-decoration: none;
        transition: all 0.3s;
        border: 1px solid var(--border-color);
    }

    .link-card:hover {
        background: white;
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        border-color: var(--cta-primary);
    }

    .link-card i {
        font-size: 36px;
        color: var(--cta-primary);
        margin-bottom: 15px;
    }

    .link-card h4 {
        color: var(--primary);
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .link-card p {
        color: var(--text-secondary);
        font-size: 13px;
    }

    /* CTA Section */
    .cta-section {
        background: var(--primary);
        padding: 60px 0;
    }

    .cta-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }

    .cta-text h3 {
        color: white;
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .cta-text p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 16px;
    }

    .cta-buttons {
        display: flex;
        gap: 15px;
    }

    .cta-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 28px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s;
    }

    .cta-btn.primary {
        background: var(--cta-primary);
        color: white;
    }

    .cta-btn.primary:hover {
        background: var(--cta-primary-hover);
        transform: translateY(-2px);
    }

    .cta-btn.whatsapp {
        background: var(--whatsapp);
        color: white;
    }

    .cta-btn.whatsapp:hover {
        background: #1da851;
        transform: translateY(-2px);
    }

    /* Responsive */
    @media (max-width: 1200px) {
        .channels-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .links-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 992px) {
        .hero-content h1 {
            font-size: 36px;
        }

        .hours-content {
            grid-template-columns: 1fr;
        }

        .cta-content {
            flex-direction: column;
            text-align: center;
        }

        .cta-buttons {
            justify-content: center;
        }
    }

    @media (max-width: 768px) {
        .page-hero {
            padding: 40px 0 60px;
        }

        .hero-content h1 {
            font-size: 28px;
        }

        .channels-section, .faq-section, .links-section {
            padding: 50px 0;
        }

        .channels-grid, .faq-grid, .links-grid {
            grid-template-columns: 1fr;
        }

        .section-header h2 {
            font-size: 26px;
        }

        .cta-section {
            padding: 40px 0;
        }

        .cta-text h3 {
            font-size: 22px;
        }

        .cta-buttons {
            flex-direction: column;
            width: 100%;
        }

        .cta-btn {
            justify-content: center;
        }
    }


/* Badge de Onda / Destaque na Sidebar do Mega Menu */
.sidebar-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(227, 6, 19, 0.12);
    color: var(--cta-primary);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    letter-spacing: 0.3px;
    line-height: 1;
}
.sidebar-item.active .sidebar-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}
