:root {
    --thema: #fadd37;
    --fundo: #f4f6f8;
    --borda: #cbd5e1;
    --texto: #0b3aa5;
    --icon: #334155;
    --price: #bab40f;
    --cortexto: #000103;
    /* Header */
    --header-h: 120px; /* aqui funciona mesmo! */
    --logo-gap: 10px;
    --bar-pad-x: 14px;
    --logo-max-h: 90px;
    /* Busca */
    --search-h: 38px;
    --search-w-min: 260px;
    --search-w-ideal: 44vw; /* de 40vw para 44vw */
    --search-w-max: 620px;
    /* Cores do painel de categorias (OK) */
    --cat-bg: #fadd37;
    --cat-text: #08080a;
    --cat-border: #1e293b;
    --cat-hover: #8d8d91;
    --cat-active: #8d8d91;
    --cat-active-text: #08080a;
    /* Paleta base (sinta-se à vontade para ajustar) */
    --brand: #fadd37;
    --text-main: #fadd37;
    --login-bg: #f1f3f6; /* cinza claro do fundo */
    --card-bg: #ffffff; /* branco do card */
    --card-shadow: 0 12px 28px rgba(0,0,0,.12);
    --input-border: #d7dbe3;
    --input-focus: #86b7fe;
    --danger: #dc3545;

}

body {
    background: var(--fundo);
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 4000;
    background: var(--thema);
}


/* ===== Header base (desktop/tablet) ===== */
.hp-bar {
    background: var(--thema);
    color: var(--cortexto);
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 var(--bar-pad-x);
    position: sticky !important;
    top: 0;
    z-index: 100;
}
    .hp-bar.is-stuck {
        box-shadow: 0 4px 10px rgba(0,0,0,.15);
    }
/* ===== Header base (desktop/tablet) — tudo em uma linha ===== */
.hp-bar-inner {
    width: 100%;
    margin: 0 auto;
    display: grid;
    /* logo | links | busca | login/carrinho */
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: "logo links center right";
    align-items: center;
    column-gap: 28px;
    row-gap: 0;
}

/* esquerda/direita com mais gap */
/*.hp-left, .hp-right {
    display: flex;
    align-items: center;
    gap: 20px;*/ /* mais respiro entre elementos */
    /*min-width: 0;
}*/

/* Mapeia cada bloco à sua área */
.hp-logo {
    grid-area: logo;
    display: block;
    height: auto; /* deixa o browser manter proporção */
    max-height: min(var(--logo-max-h), calc(var(--header-h) - 16px));
    width: auto; /* não estica horizontalmente */
    object-fit: contain; /* garante que não deforme */
    /* evita que o grid/flex tente expandir a imagem */
    align-self: center;
    justify-self: start;
    max-width: 100%;
}
.hp-links { grid-area: links; display:flex; align-items:center; gap:16px; min-width:0; flex-wrap:nowrap;}
.hp-center{ grid-area: center; display:flex; justify-content:center; min-width:0; }
.hp-right { grid-area: right;  display:flex; align-items:center; gap:16px; justify-self:end; padding-right:var(--bar-pad-x); }

.hp-ico-img {
    height: clamp(22px, 3vw, 32px);
    width: auto;
    max-height: 32px;
    max-width: 32px;
    object-fit: contain;
}
/* Links */
.link-btn {
    background: transparent;
    border: 0;
    color: var(--cortexto);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 6px;
    white-space: nowrap;
    text-transform: capitalize;
}

    .link-btn:hover {
        opacity: .95;
    }
/* ================================
   CATEGORIAS (menu estilo ecommerce)
   ================================ */

html.scroll-lock,
body.scroll-lock {
    overflow: hidden !important;
    height: 100%;
}

/* backdrop escurece a tela, mas deixa ver por baixo */
.cat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    z-index: 1500;
    touch-action: none;
}

/* container do menu (modal/dropdown) */
.cat-panel-fixed {
    position: fixed;
    z-index: 2000;
    top: var(--header-h);
    left: 12px;
    right: auto; /* remove o "estica até a direita" */
    width: fit-content; /* tamanho pelo conteúdo */
    max-width: calc(100vw - 24px);
    background: var(--cat-bg);
    color: var(--cat-text);
    border: 1px solid var(--cat-border);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 12px 24px rgba(0,0,0,.28);
    display: flex;
    flex-direction: column;
}
    /* Quando tiver subcategoria aberta (classe no painel), vira 2 colunas */
    .cat-panel-fixed.has-subs .cat-menu {
        grid-template-columns: max-content max-content;
    }
    .cat-panel-fixed.has-subs .cat-col.subs {
        display: block;
    }

/* título */
.cat-panel-title {
    font-weight: 800;
    color: var(--cat-text);
    margin: 0 0 8px 2px;
}

/* grid 2 colunas: grupos | subgrupos */
.cat-menu {
    display: grid;
    grid-template-columns: max-content;
    gap: 10px;
    min-height: 140px;
}

/* colunas roláveis */
.cat-col {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    overflow: hidden;
    min-height: 0;
    background: rgba(255,255,255,.06);
    width: max-content;
    min-width: 240px; /* mantém legível */
    max-width: min(380px, calc(100vw - 24px));
}
    .cat-col.subs {
        display: none; /* some a coluna de subcategorias */
    }

.cat-col-head {
    padding: 8px 10px;
    font-weight: 700;
    opacity: .95;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.cat-col-body {
    max-height: calc(100vh - var(--header-h) - 130px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 6px;
}

/* linha do grupo: label + expander (setinha) */
.cat-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px;
}

/* botões base (mantém seu "designer") */
.cat-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: .45rem .55rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--cat-text);
    text-transform: capitalize;
}

    .cat-item:hover {
        background: var(--cat-hover);
        color: #fff;
    }

    .cat-item.active {
        background: var(--cat-active);
        color: var(--cat-active-text);
    }

/* botão setinha (mobile) */
.cat-expander {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(255,255,255,.08);
    color: var(--cat-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

    .cat-expander:hover {
        background: rgba(255,255,255,.16);
    }

    .cat-expander.is-open {
        transform: rotate(90deg);
    }

/* dica "selecione um grupo" */
.cat-hint {
    padding: 10px;
    opacity: .85;
}
.cat-sub-inline {
    display: none;
}





/* Busca (mantém seus tamanhos) */
.search-wrap {
    width: clamp(var(--search-w-min), var(--search-w-ideal), var(--search-w-max));
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    height: var(--search-h);
    border-radius: calc(var(--search-h)/2);
    border: 1px solid var(--borda);
    background: #fff;
    color: #111;
    font-size: 14px;
    padding: 0 58px 0 12px;
}

.icon-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    line-height: 1;
    font-size: 16px;
    color: var(--icon);
}

    .icon-btn.search {
        right: 30px;
    }

    .icon-btn.clear {
        right: 8px;
    }

    .icon-btn.clear {
        right: 8px;
    }

/* (opcional) estilos para futuros ícones do hp-right */
.icon-btn-ghost {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

    .icon-btn-ghost:hover {
        opacity: .9;
    }

/* ===== GRID DE CARDS ===== */
.hp-content {
    padding: 20px clamp(12px,4vw,40px);
}

.hp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 20px;
}

.hp-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,.06);
}

.hp-thumb {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    width: 100%;
    cursor: zoom-in;
}

.hp-card-img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    background: #fff;
}



.hp-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 0 12px;
    flex: 1;
}

.hp-card-title {
    margin: 0 0 2px;
    font-weight: 700;
}

.hp-card-sub {
    color: #6b7280;
    font-size: .9rem;
    margin-bottom: 2px;
}

.hp-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .92rem;
    color: #374151;
}

    .hp-card-meta.slim {
        gap: 8px;
        font-size: .9rem;
        margin-top: 0;
    }

.hp-card-price {
    margin-top: auto;
    padding: 8px 12px 10px 12px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--price);
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}
.pedido-detalhe-row > td {
    padding-top: 0 !important;
    background: transparent;
    border-top: 0;
}

.pedido-detalhe-row .card {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ===== Paginação (seu layout) ===== */
.hp-pager2-info {
    text-align: center;
    color: var(--price);
    margin: 10px 0 6px;
    font-weight: 600;
}

.hp-pager2-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hp-pager2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.hp-page, .hp-page-nav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--price);
    color: var(--price);
    background: #fff;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

    .hp-page:hover, .hp-page-nav:hover {
        background: #eef2ff;
    }

    .hp-page.active {
        background: #e6ecff;
        color: black;
        border-color: black;
    }

    .hp-page:disabled, .hp-page-nav:disabled {
        opacity: .5;
        cursor: not-allowed;
    }


/* ===== Modal/Galeria ===== */
.gm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 18px; /* garante respiro em telas pequenas */
}

/* ===== Estrutura do modal: stage | caption | thumbs ===== */
.gm-dialog {
    display: grid !important;
    grid-template-rows: auto auto auto;
    gap: 10px;
    max-height: 92vh;
    width: fit-content;
    max-width: 100%;
    /* tamanho fixo (responsivo) do “quadro” */
    --gm-frame-w: min(920px, 92vw);
    --gm-frame-h: min(560px, 72vh);
}

.gm-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

/* IMPORTANTE: cria contexto de empilhamento para z-index dos botões */
.gm-shell {
    position: relative;
    width: fit-content;
    height: fit-content;
    isolation: isolate; /* garante stacking previsível */
}

/* “quadro” fixo onde a imagem e os botões ficam colados */
.gm-frame {
    width: var(--gm-frame-w);
    height: var(--gm-frame-h);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    overflow: hidden; /* sem scroll no modo normal */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

    /* zoom: quadro vira scroll e alinha topo/esquerda para não “deslocar” */
    .gm-frame.is-zoomed {
        overflow: auto;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 8px;
    }

.gm-img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    display: block;
}

    .gm-img.is-fit {
        width: 100%;
        height: 100%;
        object-fit: contain; /* FIT real, sem cortar */
        display: block;
        cursor: zoom-in;
        background: #fff;
    }

    /* ZOOM: aumenta “de verdade” e permite scroll ver 100% */
    .gm-img.is-zoomed {
        width: auto;
        height: auto;
        max-width: none;
        max-height: none;
        /* garante upscale mesmo para imagens pequenas */
        min-width: calc(var(--gm-frame-w) * 1.6);
        min-height: calc(var(--gm-frame-h) * 1.6);
        object-fit: contain; /* nunca corta */
        display: block;
        cursor: zoom-out;
    }

/* ===== Botões =====
   - Botão é o alvo do clique
   - Ícone dentro não captura clique (pointer-events none)
   - z-index alto sempre acima do frame/imagem
*/
/* Botão = só hitbox, sem estilo */
.gm-btn {
    position: absolute;
    width: 48px; /* hitbox boa (mobile/desktop) */
    height: 48px;
    padding: 0;
    margin: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 50;
    /* IMPORTANTE: remove qualquer “pulo” por transform/transition */
    transform: none !important;
    transition: none !important;
    line-height: 0; /* evita baseline/descida */
    vertical-align: top; /* evita comportamento inline estranho */
}

    /* ===== Anti-jump no hover (override de estilos globais) ===== */
    .gm-btn,
    .gm-btn:hover,
    .gm-btn:active,
    .gm-btn:focus,
    .gm-btn:focus-visible,
    .gm-btn:visited {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        /* trava qualquer transform global */
        transform: none !important;
        translate: none !important;
        /* trava qualquer shift de posição */
        top: auto;
        bottom: auto;
    }

/* Ícone ocupa TODO o botão */
.gm-btn-icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* mantém proporção do PNG */
    pointer-events: none; /* clique sempre é do botão */
}

/* posição do X */
.gm-close {
    top: 0 !important;
    right: 0 !important;
    width: 40px;
    height: 40px;
    /* empurra pra fora visualmente, mas o botão ainda pertence ao shell */
    transform: translate(50%, -50%) !important;
    z-index: 200 !important;
}
    /* Blindagem total do X contra estilos globais (bootstrap etc.) */
    .gm-close,
    .gm-close:hover,
    .gm-close:active,
    .gm-close:focus,
    .gm-close:focus-visible {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
        transform: none !important;
        translate: none !important;
    }

/* setas */
.gm-prev, .gm-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
}
    /* E reforça no hover das setas (caso alguma regra global seja mais forte) */
    .gm-prev:hover,
    .gm-next:hover,
    .gm-prev:active,
    .gm-next:active,
    .gm-prev:focus,
    .gm-next:focus,
    .gm-prev:focus-visible,
    .gm-next:focus-visible {
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

/* mantém fora do quadro */
.gm-prev {
    left: -56px;
}

.gm-next {
    right: -56px;
}

/* desabilitado */
.gm-btn:disabled {
    opacity: .25;
    cursor: default;
}

/* Caption e contador */
.gm-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #e5e7eb;
}

.gm-title {
    font-weight: 600;
}

.gm-count {
    opacity: .8;
}

/* Thumbs clicáveis (botão) */
.gm-thumbs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    max-width: var(--gm-frame-w);
}

.gm-thumb-btn {
    width: 100%;
    height: 72px;
    padding: 0;
    border-radius: 8px;
    background: #111;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
}

    .gm-thumb-btn.is-active {
        border-color: #0d6efd;
    }

.gm-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.user-dropdown {
    position: relative;
}

.user-toggle {
    background: none;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}

.user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 6px;
    min-width: 220px;
    z-index: 2000;
}

    .user-menu .btn, .user-menu button {
        display: block;
        width: 100%;
        background: none;
        border: 0;
        text-align: left;
        padding: .55rem .7rem;
        border-radius: 8px;
        cursor: pointer;
    }

        .user-menu .btn:hover, .user-menu button:hover {
            background: #f3f4f6;
        }

/* ====== USER + CART ====== */

.hp-right {
    display: flex;
    align-items: center;
    gap: 22px; /* espaço entre user-box e carrinho */
}

/* user box */
.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #050505; /* preto */
}

.user-ico {
    width: 28px;
    height: 28px;
    border: 2px solid #050505;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

    .user-ico::before {
        content: "";
        position: absolute; /* “cabeça” */
        top: 4px;
        left: 50%;
        width: 8px;
        height: 8px;
        margin-left: -4px;
        background: #050505;
        border-radius: 50%;
    }

    .user-ico::after {
        content: "";
        position: absolute; /* “ombros” */
        bottom: 3px;
        left: 50%;
        width: 14px;
        height: 7px;
        margin-left: -7px;
        border: 2px solid #050505;
        border-top: none;
        border-radius: 0 0 10px 10px;
    }

.user-lines {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.15;
    font-size: 0.95rem;
}

.user-greet {
    font-weight: 600;
}

.link-plain {
    color: #fcfcfc;
    text-decoration: underline;
    font-weight: 600;
}

    .link-plain:hover {
        opacity: .85;
    }

.sep {
    opacity: .8;
}

/* cart */
.cart-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-ico {
    width: 30px;
    height: 30px;
    border: 2px solid #050505;
    border-radius: 6px;
    display: inline-block;
    position: relative;
}

    .cart-ico::before, .cart-ico::after {
        content: "";
        position: absolute;
        background: #050505;
    }

    .cart-ico::before { /* “alça” */
        width: 12px;
        height: 2px;
        top: -4px;
        left: 8px;
        border-radius: 2px;
    }

    .cart-ico::after { /* “rodinhas” */
        width: 6px;
        height: 6px;
        bottom: -5px;
        left: 4px;
        border-radius: 50%;
        box-shadow: 16px 0 0 #050505;
    }

.cart-badge {
    position: absolute;
    right: -6px;
    top: -6px;
    min-width: 18px;
    height: 18px;
    background: #ffe100; /* amarelo */
    color: #001a4d;
    font-size: 12px;
    font-weight: 800;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 1px 0 rgba(0,0,0,.15);
}


/* tela de autenticação */
.auth-page {
    min-height: calc(100vh - var(--header-h,0px));
    background: var(--login-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* card */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 28px 24px 22px;
}

/* logo no topo */
.auth-logo {
    display: block;
    height: 60px; /* controla o tamanho da logo no card */
    width: auto;
    margin: 0 auto 10px;
    object-fit: contain;
}

.auth-title {
    margin: 0 0 14px;
    text-align: center;
    color: var(--text-main);
    font-weight: 700;
}

/* campos */
.auth-field {
    margin-bottom: 12px;
}

    .auth-field label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: #23324d;
    }

.auth-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    outline: none;
    font-size: 0.98rem;
    background: #fff;
}

    .auth-input:focus {
        border-color: var(--input-focus);
        box-shadow: 0 0 0 4px rgba(13,110,253,.15);
    }

/* mensagens de validação */
.validation-message {
    color: var(--danger);
    font-size: .85rem;
    margin-top: 4px;
}

/* erro de autenticação */
.auth-alert {
    background: #ffe9ec;
    color: #8b1230;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .92rem;
    margin-bottom: 12px;
}

/* botão */
.auth-btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    padding: 11px 16px;
    cursor: pointer;
    margin-top: 4px;
}

    .auth-btn:disabled {
        opacity: .7;
        cursor: not-allowed;
    }

/* links */
.auth-links {
    margin-top: 12px;
    text-align: center;
    color: #4b5a75;
}

    .auth-links a {
        color: var(--text-main);
        font-weight: 700;
    }

    .auth-links .sep {
        margin: 0 6px;
        opacity: .7
    }

    /* Rodapé */
.site-footer {
    background: var(--thema);
    color: var(--cortexto);
    
    border-top: 2px solid var(--thema);
    margin-top: auto;

}

.sf-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px clamp(10px, 3vw, 24px);
}

/* imagem da esquerda (fone) */
.sf-left-img {
    height: clamp(46px, 6vw, 64px);
    width: auto;
    max-height: 64px;
    max-width: 64px;
    object-fit: contain;
}

/* bloco central */
.sf-info {
    display: grid;
    gap: 8px;
}

.sf-link, .sf-text {
    color: var(--thema); /* tom mais escuro, como na sua imagem */
    background: rgba(255,255,255,.6);
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: underline;
    width: fit-content;
}

    .sf-link:hover {
        text-decoration: none;
    }

/* bloco direito: “desenvolvido por” + logo */
.sf-right {
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 2px;
    min-width: 88px;
}

.sf-devby {
    font-size: .95rem;
    text-decoration: underline;
    margin: 0;
    line-height: 1.1;
}

.sf-logo {
    height: clamp(32px, 5vw, 54px);
    width: auto;
    max-height: 64px;
    max-width: 64px;
    object-fit: contain;
}
.sf-link, .sf-text, .sf-devby {
    color: var(--cortexto) !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

    /* opcional: leve feedback no hover */
    .sf-link:hover {
        opacity: .9;
    }
/* Garante que nada estoure do grid */
.sf-inner img, .hp-right img {
    display: block;
    overflow: hidden;
}


/* ===== Campo de senha com olhinho (ajustado) ===== */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

    .password-wrapper .auth-input {
        width: 100%;
        padding-right: 40px; /* reserva espaço pro olhinho */
        box-sizing: border-box;
    }

/* botão do olhinho */
.eye-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* remove o estilo nativo de botão */
    .eye-btn::-moz-focus-inner {
        border: 0;
        padding: 0;
    }

    /* imagem do olhinho */
    .eye-btn img {
        height: 20px;
        width: 20px;
        object-fit: contain;
        opacity: 0.7;
        transition: opacity 0.2s;
        display: block;
    }

    .eye-btn:hover img {
        opacity: 1;
    }


html, body {
    height: 100%;
}

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

/* seu wrapper do layout */
.app-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* área do conteúdo precisa crescer */
.app-main {
    flex: 1 1 auto;
    min-height: 0;
}


/* Overlay do toast: fixo na viewport */
.toast-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 99999;
    display: flex;
    justify-content: center;
    pointer-events: none; /* não bloqueia clique na página */
}

/* Caixa do toast */
.toast-box {
    pointer-events: none;
    background: rgba(15,15,15,.95);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.30);
    max-width: min(520px, 92vw);
    text-align: center;
    font-size: 14px;
    /* animação simples */
    animation: toastIn .18s ease-out;
}

@keyframes toastIn {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.pwd-wrap {
    position: relative;
}

    .pwd-wrap .form-control {
        padding-right: 44px; /* espaço para o ícone */
    }

.pwd-eye {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

    .pwd-eye img {
        width: 22px;
        height: 22px;
        display: block;
    }




/* ===== Responsivo suave (sem quebrar linha) ===== */
@media (max-width: 1024px) {
    :root {
        --header-h: 96px;
        --search-w-max: 460px;
    }

    .hp-bar-inner {
        column-gap: 16px;
    }
}

@media (max-width: 600px) {
    :root {
        --header-h: 72px;
        --search-h: 34px;
        --search-w-max: 360px;
        --logo-max-h: 60px;
    }

    .hp-bar-inner {
        grid-template-columns: auto 1fr minmax(100px, 160px);
        column-gap: 12px;
    }

    .hp-logo {
        height: calc(var(--header-h) - 20px);
    }

    .cat-panel-fixed {
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }

    .cat-menu {
        grid-template-columns: 1fr;
    }

    .cat-col.subs {
        display: none;
    }

    .cat-sub-inline {
        margin: 6px 0 10px 10px;
        padding-left: 8px;
        border-left: 2px solid rgba(255,255,255,.22);
        display: block;
    }

        .cat-sub-inline .cat-item {
            padding: .40rem .55rem;
            opacity: .98;
        }

    .cat-panel-fixed.has-subs .cat-menu {
        grid-template-columns: 1fr;
    }
}


/* --- garantias gerais para o grid funcionar bem --- */
.hp-bar-inner > * {
    min-width: 0;
}
/* nada força overflow */
.hp-links {
    min-width: 0;
}

.hp-center {
    min-width: 0;
}


/* ===== Mobile: 3 linhas e 3 colunas (links começam depois da logo) ===== */
@media (max-width: 600px) {
    :root {
        --logo-max-h: 48px;
    }
    .hp-bar {
        height: auto;
        padding: 10px var(--bar-pad-x);
    }

    .hp-bar-inner {
        display: grid;
        /* 3 colunas: [auto]=logo | [1fr]=miolo | [auto]=login/carrinho */
        grid-template-columns: auto 1fr auto;
        /* 3 linhas físicas */
        grid-template-rows: auto auto auto;
        /* Áreas:                                   C1      C2       C3  */
        grid-template-areas:
            "logo    .        right" /* L1: logo à esquerda; direita com ícones  */
            "center  center   center" /* L2: busca ocupa a coluna do meio inteira */
            ".       links    ."; /* L3: links NA COLUNA DO MEIO (depois da logo) */

        column-gap: 12px;
        row-gap: 14px;
        align-items: start;
        align-content: start;
        grid-auto-flow: row;
    }

    /* LOGO (continua na área 'logo') */
    .hp-logo {
        grid-area: logo;
        height: 48px;
        width: auto;
        display: block;
        align-self: start;
        justify-self: start;
        /* segurança extra para não ultrapassar a coluna */
        max-width: 100%;
    }

    /* BUSCA ocupa 100% da coluna do meio na linha 2 */
    .hp-center {
        grid-area: center;
        justify-self: stretch;
        width: 100%;
        min-width: 0;
    }

        .hp-center .search-wrap {
            width: 100% !important;
            max-width: 100% !important;
        }

    /* LINKS agora estão na coluna do meio, linha 3 */
    .hp-links {
        grid-area: links;
        align-self: start;
        justify-self: start;
        display: flex;
        gap: 14px;
        flex-wrap: nowrap !important;
        justify-content: start; /* ou start/end conforme desejar */
        min-width: 0;
        position: relative;
        z-index: 1; /* não precisa ficar “por cima” da logo mais */
        margin-top: 2px;
    }

    /* DIREITA mantém login/carrinho encostados */
    .hp-right {
        grid-area: right;
        justify-self: end;
        align-self: start;
    }

    /* Ninguém força overflow horizontal */
    .hp-bar-inner > * {
        min-width: 0;
    }

    .user-ico {
        width: 24px;
        height: 24px;
    }

    .user-lines {
        font-size: .9rem;
    }

    .cart-ico {
        width: 26px;
        height: 26px;
    }

    .cart-badge {
        min-width: 16px;
        height: 16px;
        font-size: 11px;
    }
    .hp-ico-img {
        height: clamp(18px, 6vw, 26px);
    }

    .sf-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .sf-info {
        justify-items: center;
    }
    .cat-panel-fixed {
        left: 10px;
        right: 10px;
        width: auto; /* no mobile pode ocupar a largura */
        max-width: none;
    }

    .cat-menu {
        grid-template-columns: 1fr;
    }

    .cat-col.subs {
        display: none; /* no mobile, não usamos a coluna da direita */
    }

    .cat-sub-inline {
        margin: 6px 0 10px 10px;
        padding-left: 8px;
        border-left: 2px solid rgba(255,255,255,.22);
        display: block;
    }

        .cat-sub-inline .cat-item {
            padding: .40rem .55rem;
            opacity: .98;
        }
    .cat-panel-fixed.has-subs .cat-menu {
        grid-template-columns: 1fr;
    }

    .cat-col.subs {
        display: none;
    }
    .cat-panel-fixed {
        left: 10px;
        right: 10px;
        width: auto; /* no mobile pode ocupar a largura */
        max-width: none;
    }
}





    /* ===== Tablet/intermediário: 2 linhas ("links" embaixo da logo) ===== */
    @media (max-width: 900px) and (min-width: 601px) {
        .hp-bar-inner {
            grid-template-columns: auto 1fr auto; /* esq | centro | dir */
            grid-template-areas:
                "logo   center right" /* L1: logo | busca | login/carrinho */
                "links  center right"; /* L2: links abaixo da logo */
            row-gap: 8px;
            column-gap: 16px;
        }
    }
@media (min-width: 901px) {
    .hp-bar-inner {
        grid-template-columns: auto auto 1fr auto;
        grid-template-areas: "logo links center right";
        row-gap: 0;
    }
}


