.axmm-desktop,
.axmm-desktop * {
    box-sizing: border-box;
}

.axmm-desktop ul,
.axmm-desktop li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.axmm-desktop {
    --axmm-brown: #401201;
    --axmm-yellow: #FFDE59;
    --axmm-ink: #292522;
    --axmm-text: #493b34;
    --axmm-muted: #6f625c;
    --axmm-line: rgba(64, 18, 1, .13);
    --axmm-line-soft: rgba(64, 18, 1, .065);
    --axmm-left-bg: rgba(64, 18, 1, .051);
    --axmm-right-bg: #ffffff;
    --axmm-hover: rgba(64, 18, 1, .035);
    --axmm-active: rgba(255, 222, 89, .20);
    --axmm-family-text: #51433c;
    --axmm-family-active-line: #d9ad00;
    --axmm-product-text: #4b3c35;
    --axmm-view-text: #695851;
    --axmm-view-hover: #6b2f18;
    --axmm-panel-border: rgba(64, 18, 1, .085);
    --axmm-panel-top-border: rgba(64, 18, 1, .12);
    --axmm-panel-bottom-border: rgba(64, 18, 1, .18);
    --axmm-family-border: rgba(64, 18, 1, .105);
    --axmm-family-row-border: rgba(64, 18, 1, .065);
    --axmm-product-row-border: rgba(64, 18, 1, .052);
    --axmm-chevron: rgba(64, 18, 1, .48);
    --axmm-section-border: rgba(64, 18, 1, .10);
    --axmm-family-hover-bg: rgba(64, 18, 1, .024);
    --axmm-product-hover-bg: rgba(64, 18, 1, .025);
    --axmm-shadow: 0 18px 42px rgba(40, 23, 15, .085);
    position: relative;
    z-index: 1000;
    width: 100%;
    color: var(--axmm-text);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.axmm-desktop a {
    color: inherit;
    text-decoration: none;
}

/*
 * MENU SUPERIOR ISOLADO — v1.2.8
 * Controla SOMENTE os seis nomes da barra superior.
 * Nenhuma regra abaixo é reutilizada no painel expandido.
 */
.axmm-top-nav {
    --axmm-top-color: var(--axmm-brown);
    --axmm-top-hover-color: var(--axmm-brown);
    width: 100%;
}

.axmm-top-nav__list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 52px !important;
    width: 100% !important;
    max-width: 1200px !important;
    min-height: 38px;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
}

.axmm-top-nav__item {
    position: static;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.axmm-top-nav__link {
    position: relative;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-height: 36px;
    margin: 0 !important;
    padding: 0 6px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--axmm-top-color) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap !important;
    transition: color 120ms ease;
}

.axmm-top-nav__label {
    display: inline !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    white-space: nowrap !important;
}

.axmm-top-nav__link::before {
    content: none !important;
    display: none !important;
}

.axmm-top-nav__link::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: -1px;
    height: 2px;
    background: var(--axmm-yellow);
    border-radius: 999px;
    opacity: 0;
    transform: none;
    transition: none;
    pointer-events: none;
}

.axmm-top-nav__link:hover::after,
.axmm-top-nav__link:focus-visible::after,
.axmm-top-nav__item.is-open > .axmm-top-nav__link::after {
    opacity: 1;
}

.axmm-top-nav__link:hover,
.axmm-top-nav__link:focus-visible,
.axmm-top-nav__item.is-open > .axmm-top-nav__link {
    color: var(--axmm-top-hover-color) !important;
    background: transparent !important;
    font-weight: 400 !important;
    transform: none !important;
}

.axmm-top-nav__link:focus-visible,
.axmm-desktop__family-link:focus-visible,
.axmm-desktop__product-link:focus-visible,
.axmm-desktop__view-all:focus-visible,
.axmm-desktop__empty-family a:focus-visible {
    outline: 2px solid var(--axmm-yellow);
    outline-offset: 2px;
}

.axmm-desktop__panel[hidden] { display: none !important; }

/*
 * PAINEL EXPANDIDO — v1.2.11
 * Altura estável e largura independente do topo. O painel não participa do fluxo,
 * portanto não cria barra de rolagem nem altera a altura da página ao abrir.
 */
.axmm-desktop__panel {
    position: fixed;
    top: var(--axmm-panel-top, 0px);
    left: var(--axmm-panel-left, 0px);
    z-index: 100000;
    width: var(--axmm-panel-width, 100vw);
    height: var(--axmm-panel-height, 220px);
    margin: 0;
    padding: 0;
    overflow: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
}

.axmm-desktop__panel.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.axmm-desktop__panel.axmm-instant {
    transition: none !important;
}

.axmm-desktop__panel-shell {
    display: grid;
    grid-template-columns: var(--axmm-family-width, 430px) minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: var(--axmm-right-bg);
    border: 1px solid var(--axmm-panel-border);
    border-top-color: var(--axmm-panel-top-border);
    border-bottom-color: var(--axmm-panel-bottom-border);
    border-radius: 0;
    box-shadow: 0 12px 26px rgba(40, 23, 15, .09);
    contain: layout paint;
}

/* ESQUERDA: escolha da família. Fundo quente deixa a função de navegação evidente. */
.axmm-desktop__families {
    min-width: 0;
    height: 100%;
    padding: 12px 18px 24px 20px;
    overflow: hidden;
    background: var(--axmm-left-bg);
    border-right: 1px solid var(--axmm-family-border);
    display: flex;
    flex-direction: column;
}

.axmm-desktop__section-head,
.axmm-desktop__products-head {
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--axmm-section-border);
}

.axmm-desktop__section-head {
    display: flex;
    align-items: center;
    padding-left: 8px;
    padding-right: 8px;
}

.axmm-desktop__section-head strong {
    color: var(--axmm-brown);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    text-rendering: optimizeLegibility;
}

.axmm-desktop__eyebrow { display: none; }

.axmm-desktop__family-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    grid-auto-rows: 29px;
    gap: 1px 24px;
    align-content: start;
    align-items: start;
    padding-top: 6px;
    padding-bottom: 6px;
    flex: 0 0 auto;
    min-height: 0;
}

.axmm-desktop__family-list--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.axmm-desktop__family-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    align-items: center;
    gap: 8px;
    min-height: 29px;
    padding: 2px 0 2px 10px;
    color: var(--axmm-family-text);
    border-bottom: 1px solid var(--axmm-family-row-border);
    border-left: 2px solid transparent;
    border-radius: 5px;
    font-size: 13.4px;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    transition: color 105ms ease, background-color 105ms ease, border-color 105ms ease;
}

.axmm-desktop__family-link span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.axmm-desktop__family-link:hover {
    color: var(--axmm-brown);
    background: var(--axmm-family-hover-bg);
}

.axmm-desktop__family-link.is-active {
    color: var(--axmm-brown);
    background: var(--axmm-active-bg);
    border-left-color: var(--axmm-family-active-line);
    font-weight: 600;
}

.axmm-desktop__chevron {
    width: 14px;
    height: 14px;
    justify-self: center;
    fill: none;
    stroke: var(--axmm-chevron);
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.axmm-desktop__family-link:hover .axmm-desktop__chevron,
.axmm-desktop__family-link.is-active .axmm-desktop__chevron {
    stroke: var(--axmm-brown);
}

/* DIREITA: conteúdo/produtos. O branco reforça visualmente a mudança de contexto. */
.axmm-desktop__products {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: var(--axmm-right-bg);
}

/* JS remove o atributo hidden na inicialização e passa a alternar somente is-active. */
.axmm-desktop__product-group {
    position: absolute;
    inset: 0;
    height: 100%;
    padding: 12px 30px 24px 30px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

.axmm-desktop__product-group.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.axmm-desktop__products-head {
    height: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--axmm-section-border);
}

.axmm-desktop__products-head h3 {
    min-width: 0;
    margin: 0;
    color: var(--axmm-brown);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-rendering: optimizeLegibility;
}

.axmm-desktop__view-all,
.axmm-desktop__empty-family a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 2px;
    color: var(--axmm-view-text);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.004em;
    cursor: pointer;
    transition: color 105ms ease;
}

.axmm-desktop__view-all-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--axmm-brown);
    fill: none;
    stroke: currentColor;
    opacity: .56;
    pointer-events: none;
}

.axmm-desktop__view-all:hover .axmm-desktop__view-all-icon {
    opacity: .82;
}

.axmm-desktop__empty-family a svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .72;
}

.axmm-desktop__view-all:hover,
.axmm-desktop__empty-family a:hover {
    color: var(--axmm-view-hover);
}

/* Até 8 produtos: uma coluna. A partir de 9: duas colunas verticais, alinhadas ao painel fixo. */
.axmm-desktop__product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 46px;
    align-content: start;
    padding-top: 6px;
}

.axmm-desktop__product-group--one .axmm-desktop__product-list {
    grid-template-columns: minmax(0, 1fr);
}

.axmm-desktop__product-column { min-width: 0; }

.axmm-desktop__product-link {
    display: flex;
    align-items: center;
    min-height: 29px;
    padding: 3px 8px;
    margin: 0 -8px;
    color: var(--axmm-product-text);
    border-bottom: 1px solid var(--axmm-product-row-border);
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.22;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 90ms ease, background-color 90ms ease;
}

.axmm-desktop__product-group--long-titles .axmm-desktop__product-link {
    font-size: 13px;
    letter-spacing: -.005em;
}

.axmm-desktop__product-link:hover {
    color: var(--axmm-brown);
    background: var(--axmm-product-hover-bg);
}

.axmm-desktop__empty-family {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 58px;
    padding: 10px 0;
    color: var(--axmm-muted);
    border-bottom: 1px solid var(--axmm-line-soft);
}

.axmm-desktop__empty-family p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.35;
}

.axmm-editor-notice {
    padding: 12px 14px;
    border: 1px dashed rgba(64, 18, 1, .22);
    background: #fffdf8;
    color: var(--axmm-brown);
    font-size: 13px;
}


/* v1.2.18 — microalinhamento e interação.
 * A primeira linha da navegação esquerda e a primeira linha de produtos usam o mesmo offset vertical (6px)
 * e o mesmo ritmo de 29px. "Ver categoria" recebe a mesma linguagem tipográfica dos títulos, porém mais sutil. */
/* v1.2.17 — alinhamento fino: categorias da esquerda iniciam alinhadas aos produtos da direita.
 * 368px equilibra 9–10 categorias sem corte e mantém respiro visual consistente.
 * As linhas foram compactadas de forma controlada para ainda comportar até 10 categorias sem scroll interno. */
.axmm-desktop__panel-shell,
.axmm-desktop__families,
.axmm-desktop__products {
    overscroll-behavior: contain;
}


/* v1.2.21 — simetria visual + separação sutil + performance.
 * O padding inferior de 24px replica visualmente a distância do topo até o texto do cabeçalho.
 * O painel não usa scroll interno; sua altura é calculada por contagem de linhas, sem leituras de layout em cada hover. */

@media (max-width: 1023px) {
    .axmm-desktop { display: none !important; }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    /* Topo permanece como aprovado na v1.2.10. */
    .axmm-top-nav__list {
        width: calc(100% - 24px) !important;
        gap: 24px !important;
    }

    .axmm-top-nav__link {
        padding: 0 3px !important;
        font-size: 13.5px;
    }


    .axmm-desktop__family-list--columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap-right: 18px;
    }

    .axmm-desktop__family-link {
        font-size: 13px;
        grid-template-columns: minmax(0, 1fr) 26px;
    }

    .axmm-desktop__product-list {
        gap: 0 28px;
    }

    .axmm-desktop__product-link {
        font-size: 12.8px;
    }
}

/* v1.2.20 — painel de altura dinâmica.
 * A altura é calculada pelo conteúdo ativo e mantém respiro superior/inferior constante.
 * O meio cresce ou encolhe conforme famílias/produtos, sem altura fixa e sem scrollbar interna. */
.axmm-desktop__panel,
.axmm-desktop__panel-shell {
    min-height: 0;
}

.axmm-desktop__view-all {
    gap: 0;
}
