/* ============================================================
   style.css — T&G IMPORTS | CSS Global
   Versão: 2.0 | Maio 2026
   INSTRUÇÕES: Este arquivo é carregado em TODAS as páginas.
   Não apague as variáveis do :root — elas controlam as cores
   de todo o site de um só lugar.
   ============================================================ */

/* --- 1. VARIÁVEIS GLOBAIS (Paleta de Cores e Tamanhos) --- */
:root {
    --primary:        #ff4500;   /* Laranja principal T&G */
    --primary-dark:   #cc3700;   /* Laranja escuro (hover) */
    --primary-light:  #ff6a33;   /* Laranja claro */
    --primary-glow:   rgba(255, 69, 0, 0.25); /* Brilho laranja */

    --bg:             #f5f5f5;   /* Fundo cinza suave */
    --surface:        #ffffff;   /* Superfície branca (cards, header) */
    --surface-2:      #fcfcfc;   /* Superfície secundária */

    --text-dark:      #1a1a1a;   /* Texto principal */
    --text-mid:       #555555;   /* Texto secundário */
    --text-light:     #999999;   /* Texto suave (rodapé, dicas) */

    --border:         #eeeeee;   /* Bordas suaves */
    --border-focus:   #ff4500;   /* Borda em foco */

    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      20px;
    --radius-full:    999px;

    --shadow-sm:      0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:      0 8px 24px rgba(0,0,0,0.10);
    --shadow-lg:      0 16px 40px rgba(0,0,0,0.13);
    --shadow-primary: 0 4px 20px rgba(255,69,0,0.30);

    --transition:     0.25s ease;

    /* Altura do header — usada para compensar position:sticky */
    --header-h:       72px;
    /* Altura da barra inferior no mobile */
    --bottomnav-h:    60px;
}

/* --- 2. RESET MODERNO --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* --- 3. SCROLLBAR PERSONALIZADA (só no desktop) --- */
@media (min-width: 769px) {
    ::-webkit-scrollbar       { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: var(--radius-full); }
}

/* --- 4. TIPOGRAFIA BASE --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

/* --- 5. CANVAS DE PARTÍCULAS (efeito antigravidade de fundo) ---
   O <canvas id="particles-canvas"> é gerado pelo JavaScript.
   Fica fixo atrás de tudo, pointer-events:none para não
   bloquear cliques.
*/
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Sempre atrás de todo o conteúdo */
    pointer-events: none; /* Não interfere com cliques */
}

/* --- 6. HEADER PRINCIPAL --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    /* Vidro fosco moderno */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

/* Logo */
.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.header-logo img {
    height: 48px;
    width: auto;
    transition: transform var(--transition);
}
.header-logo img:hover {
    transform: scale(1.05);
}

/* Busca central (form dentro do header-search-desktop) */
.search-form {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
}
.search-form input::placeholder {
    color: var(--text-light);
}
.search-form button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0 18px;
    height: 42px;
    font-size: 16px;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-form button:hover {
    background: var(--primary-dark);
}

/* Ações do header (carrinho, login, dropdown) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Botão carrinho */
.btn-cart {
    position: relative;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    transition: background var(--transition);
    text-decoration: none;
}
.btn-cart:hover {
    background: var(--bg);
}
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid white;
}

/* ── Botão sino de notificações ── */
.btn-bell {
    position: relative;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
    color: inherit;
}
.btn-bell:hover {
    background: var(--bg);
    transform: rotate(-8deg);
}
.bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid white;
    animation: bellPulse 2.2s ease-in-out infinite;
}
@keyframes bellPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.20); }
}

/* Item de notificação no dropdown do perfil */
.dropdown-link .notif-inline-badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    margin-left: auto;
    line-height: 1.4;
}

/* Botão login */
.btn-login {
    background: var(--primary);
    color: white;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    white-space: nowrap;
}
.btn-login:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

/* Dropdown de perfil */
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    transition: background var(--transition);
}
.profile-trigger:hover {
    background: var(--bg);
}
.profile-trigger img,
.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    font-size: 16px;
}
.profile-trigger span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
}

/* Dropdown genérico (categorias + perfil) */
.dropdown-wrap {
    position: relative;
}
.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    display: none;
    flex-direction: column;
    z-index: 1200;
    overflow: hidden;
    /* Animação de entrada */
    animation: dropIn 0.18s ease;
}
.dropdown-panel.open {
    display: flex;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dropdown-link {
    padding: 11px 16px;
    font-size: 14px;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), color var(--transition), padding-left var(--transition);
    display: block;
}
.dropdown-link:last-child { border-bottom: none; }
.dropdown-link:hover {
    background: #fff5f2;
    color: var(--primary);
    padding-left: 22px;
}
.dropdown-link.active {
    color: var(--primary);
    font-weight: 700;
    background: #fff5f2;
}
.dropdown-link.danger { color: #e53935; }
.dropdown-link.danger:hover { background: #fff5f5; color: #c62828; }
.dropdown-link.admin-link { color: var(--primary); font-weight: 700; }

/* Container de busca + categorias — só desktop */
.header-search-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 580px;
    margin: 0 16px;
}

/* Busca compacta exclusiva do mobile */
.header-search-mobile {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1.5px solid var(--border);
}
.header-search-mobile input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 14px;
    font-size: 14px;
    outline: none;
    color: var(--text-dark);
}
.header-search-mobile input::placeholder { color: var(--text-light); }
.header-search-mobile button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0 14px;
    height: 40px;
    font-size: 15px;
    cursor: pointer;
    transition: background var(--transition);
}
.header-search-mobile button:hover { background: var(--primary-dark); }

/* Botão de categorias (desktop) */
.btn-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    padding: 9px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    transition: border-color var(--transition), color var(--transition);
    white-space: nowrap;
}
.btn-cat:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-cat .cat-icon { font-size: 16px; }
/* Dropdown de categorias pode ser mais largo e com scroll */
.cat-panel {
    left: 0;
    right: auto;
    min-width: 240px;
    max-height: 420px;
    overflow-y: auto;
}

/* --- 7. SELETOR DE IDIOMA FLUTUANTE --- */
.lang-switcher {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 900;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,69,0,0.15);
}
.lang-btn {
    width: 28px;
    height: 28px;
    opacity: 0.5;
    transition: opacity var(--transition), transform var(--transition);
    display: block;
}
.lang-btn img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }
.lang-btn:hover, .lang-btn.ativo { opacity: 1; transform: scale(1.2); }

/* Mobile: idioma fica horizontal, acima do botão do chat IA.
   O chat IA tem ~52px + folga, então somamos isso à bottom nav */
@media (max-width: 768px) {
    .lang-switcher {
        top: auto;
        bottom: calc(var(--bottomnav-h) + 52px + 20px); /* bottom nav + botão chat + espaço */
        right: 10px;
        flex-direction: row;
        padding: 6px 10px;
    }
}

/* --- 8. BARRA DE NAVEGAÇÃO INFERIOR (só mobile) --- */
.bottom-nav {
    display: none; /* escondida no desktop */
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--bottomnav-h);
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        z-index: 1100;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    }
    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: var(--text-light);
        font-size: 10px;
        font-weight: 600;
        transition: color var(--transition);
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }
    .bottom-nav-item.active,
    .bottom-nav-item:hover {
        color: var(--primary);
    }
    .bottom-nav-item .nav-icon {
        font-size: 22px;
        line-height: 1;
    }
    /* Badge do carrinho na bottom nav */
    .bottom-nav-item .cart-badge-bottom {
        position: absolute;
        top: 6px;
        left: 50%;
        margin-left: 2px;
        background: var(--primary);
        color: white;
        font-size: 9px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        border: 2px solid white;
    }
    /* Destaque especial no item central (ex: carrinho) */
    .bottom-nav-item.highlight {
        color: white;
    }
    .bottom-nav-item.highlight .nav-icon-wrap {
        background: var(--primary);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -4px;
        box-shadow: var(--shadow-primary);
        transform: translateY(-8px);
        transition: transform var(--transition);
    }
    .bottom-nav-item.highlight:hover .nav-icon-wrap {
        transform: translateY(-12px);
    }
}

/* --- 9. CONTEÚDO PRINCIPAL --- */
.main-content {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* --- 10. CAROUSEL / BANNER --- */
.carousel-wrap {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.carousel-slide.active { opacity: 1; z-index: 5; }
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), box-shadow var(--transition);
    cursor: pointer;
}
.carousel-arrow:hover {
    background: var(--primary);
    box-shadow: var(--shadow-primary);
}
.arrow-prev { left: 16px; }
.arrow-next { right: 16px; }
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: width var(--transition), background var(--transition);
}
.dot.active {
    background: var(--primary);
    width: 24px;
}

/* Responsividade do carousel */
@media (max-width: 768px) {
    .carousel-wrap { height: 180px; border-radius: var(--radius-md); }
    .carousel-arrow { width: 34px; height: 34px; font-size: 15px; }
}

/* --- 11. GRID DE PRODUTOS --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

/* Card de produto */
.product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 14px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    /* Efeito de entrada suave */
    animation: cardFadeIn 0.4s ease both;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    transition: transform var(--transition);
    /* Garante que a imagem nunca empurre o card para fora do tamanho fixo */
    flex-shrink: 0;
}
.product-card:hover img {
    transform: scale(1.04);
}
.product-card h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 6px;
    /* Limita SEMPRE a 2 linhas — impede card de crescer por título longo */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* flex:1 removido — era o que deixava cards com alturas diferentes */
    min-height: 36px;
    max-height: 36px;
}
.product-price {
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
    margin: 8px 0 12px;
}
.btn-buy {
    display: block;
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13px;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    letter-spacing: 0.3px;
}
.btn-buy:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

/* Mobile: 2 colunas com altura IGUAL em todos os cards */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        /* align-items: stretch garante que todos os cards tenham a mesma altura */
        align-items: stretch;
    }
    .product-card {
        /* height:100% faz o card preencher a célula do grid igualmente */
        height: 100%;
    }
    .product-card img { height: 120px; }
    .product-card h3 {
        font-size: 12px;
        min-height: 32px;
        max-height: 32px;
    }
    .product-price { font-size: 16px; margin: 6px 0 10px; }
    /* Botão comprar sempre no fundo do card */
    .btn-buy { margin-top: auto; }
}

/* --- 12. PAGINAÇÃO --- */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 20px;
}
.page-link {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.page-link:hover {
    background: #fff5f2;
    border-color: var(--primary);
    color: var(--primary);
}
.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- 13. CHAT ASSISTENTE IA --- */
#ia-chat-wrapper {
    position: fixed;
    bottom: calc(var(--bottomnav-h) + 12px);
    right: 16px;
    z-index: 1050;
}
@media (min-width: 769px) {
    #ia-chat-wrapper { bottom: 20px; }
}
#ia-chat-btn {
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}
#ia-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(255,69,0,0.45);
}
#ia-window {
    width: 300px;
    height: 400px;
    background: var(--surface);
    border-radius: var(--radius-md);
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 10px;
}
#ia-header {
    background: var(--primary);
    color: white;
    padding: 12px 14px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#ia-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}
.msg {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    line-height: 1.4;
}
.msg-ia   { background: #eeeeee; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-user { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
#ia-input-area {
    padding: 8px;
    display: flex;
    gap: 6px;
    border-top: 1px solid var(--border);
}
#ia-input-area input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    font-size: 13px;
    transition: border-color var(--transition);
}
#ia-input-area input:focus { border-color: var(--primary); }
#ia-input-area button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0 12px;
    font-size: 14px;
    transition: background var(--transition);
}
#ia-input-area button:hover { background: var(--primary-dark); }

/* --- 14. FOOTER --- */
.footer-main {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 60px 0 0;
    position: relative;
    z-index: 10;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 40px;
}
.footer-col h4 {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}
.footer-col p,
.footer-col a {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 10px;
    display: block;
    transition: color var(--transition), padding-left var(--transition);
}
.footer-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}
.social-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    padding-left: 0 !important;
}
.social-link img { width: 20px; height: 20px; flex-shrink: 0; }
.social-link:hover { padding-left: 0 !important; } /* Override do hover geral */

.footer-payment {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 40px;
}
.payment-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.payment-wrap h5 {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.payment-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.payment-icons img {
    height: 28px;
    width: auto;
    filter: grayscale(0.1);
    transition: filter var(--transition), transform var(--transition);
}
.payment-icons img:hover {
    filter: none;
    transform: translateY(-2px);
}
.security-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}
.security-badges img { height: 38px; }

.footer-bottom {
    text-align: center;
    padding: 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .payment-wrap { flex-direction: column; align-items: flex-start; }
    /* Garante que a bottom nav não cubra o footer */
    .footer-main { margin-bottom: 0; padding-bottom: calc(var(--bottomnav-h) + 16px); }
    .footer-bottom { padding-bottom: calc(var(--bottomnav-h) + 10px); }
}

/* --- 15. UTILITÁRIOS --- */
/* hide-mobile: não define display no desktop para não conflitar com flex/grid dos componentes */
.show-mobile  { display: none; }
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: flex !important; }
}
/* Garante que o container de busca desktop use flex mesmo com hide-mobile */
.header-search-desktop { display: flex !important; }
@media (max-width: 768px) {
    .header-search-desktop { display: none !important; }
}

/* Seção de título */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
    border-radius: var(--radius-full);
    margin-left: 8px;
}

/* ============================================================
   CHAT IA — Widget flutuante (bottom-right, acima do chat WA)
   ============================================================ */
#ia-chat-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

#ia-chat-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #0d0d1a);
    border: 1px solid rgba(255, 69, 0, 0.4);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(255, 69, 0, 0);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#ia-chat-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 69, 0, 0.75);
    box-shadow: 0 6px 28px rgba(255, 69, 0, 0.3);
}

#ia-window {
    position: fixed;
    bottom: 80px;
    right: 80px;
    z-index: 9998;
    display: none;
    flex-direction: column;
    width: 320px;
    height: 420px;
    max-height: calc(100vh - 120px);
    background: #0a0a0e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
@keyframes iaSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

#ia-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.15), rgba(255, 69, 0, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 13px;
    font-weight: 700;
    color: #eeeef2;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}
#ia-header span:first-child { display: flex; align-items: center; gap: 8px; }
#ia-header span:last-child {
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,0.07); display: flex;
    align-items: center; justify-content: center;
    font-size: 14px; cursor: pointer; transition: background 0.2s;
}
#ia-header span:last-child:hover { background: rgba(255, 69, 0, 0.2); }

#ia-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    background: #0a0a0e;
}
#ia-messages::-webkit-scrollbar { width: 3px; }
#ia-messages::-webkit-scrollbar-thumb { background: rgba(255,69,0,0.4); border-radius: 99px; }

.msg {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: 14px;
    line-height: 1.55;
    word-wrap: break-word;
}
.msg-ia {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 4px 14px 14px 14px;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.msg-user {
    background: linear-gradient(135deg, var(--primary), #cc3700);
    color: #fff;
    border-radius: 14px 4px 14px 14px;
    align-self: flex-end;
}

#ia-input-area {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
#ia-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 9px 12px;
    color: #fff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
#ia-input::placeholder { color: rgba(255,255,255,0.3); }
#ia-input:focus { border-color: rgba(255, 69, 0, 0.5); }
#ia-input-area button {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
#ia-input-area button:hover { background: var(--primary-dark); transform: scale(1.08); }

/* Mobile */
@media (max-width: 768px) {
    #ia-chat-wrapper {
        bottom: calc(var(--bottomnav-h, 60px) + 14px);
        right: 16px;
    }
    #ia-window {
        right: 16px;
        bottom: calc(var(--bottomnav-h, 60px) + 80px);
        width: calc(100vw - 32px);
        max-width: 340px;
        height: 360px;
    }
}
