body.cmc-h-on {
    --cmc-h-ink: #171717;
    --cmc-h-muted: #6b6b6b;
    --cmc-h-line: rgba(23, 23, 23, 0.08);
    --cmc-h-soft: #f6f6f6;
    --cmc-h-hot: #f58220;
    --cmc-h-hot-soft: #fff1e4;
    --cmc-h-header: #f3f3f3;
    --cmc-h-compact: #f4f4f4;
    --cmc-h-font: "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: var(--cmc-h-offset) !important;
}

body.cmc-h-on header.et-l.et-l--header,
body.cmc-h-on .et-l.et-l--header,
body.cmc-h-on #custom-header,
body.cmc-h-on #main-header,
body.cmc-h-on #top-header {
    display: none !important;
}

body.cmc-h-on #page-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.cmc-h-on #loja #barra_pesquisa,
body.cmc-h-on .woocommerce-products-header #barra_pesquisa {
    display: none !important;
}

body.cmc-h-on .cmc-h-search #barra_pesquisa,
body.cmc-h-on .cmc-h-search .cmc-s-bar {
    display: block !important;
}

@media (min-width: 980px) {
    body.cmc-h-on #page-container,
    body.cmc-h-on #main-content {
        padding-left: var(--cmc-h-rail-w);
        padding-right: 0;
    }

    /* Keep the shop funnel visible to the right of the family rail (do not edit cmc-filter). */
    body.cmc-h-on #pos-botao-filtro,
    body.cmc-h-on .loja > a.botao-filtro,
    body.cmc-h-on .loja > #pos-botao-filtro {
        left: var(--cmc-h-rail-w) !important;
    }
}

@media (min-width: 1025px) {
    body.cmc-h-on #filtros.filtros,
    body.cmc-h-on .filtros,
    body.cmc-h-on .et_pb_module.filtros,
    body.cmc-h-on .et_pb_widget_area.filtros,
    body.cmc-h-on .filtros.ativo,
    body.cmc-h-on #filtros.ativo,
    body.cmc-h-on .et_pb_module.filtros.ativo {
        left: calc(var(--cmc-h-rail-w) + 16px) !important;
        inset-inline-start: calc(var(--cmc-h-rail-w) + 16px) !important;
    }
}

html.cmc-h-lock,
html.cmc-h-lock body {
    overflow: hidden;
}

.cmc-h,
.cmc-h-rail,
.cmc-h-mega,
.cmc-h-drawer {
    box-sizing: border-box;
    font-family: var(--cmc-h-font);
    color: var(--cmc-h-ink);
    -webkit-font-smoothing: antialiased;
}

.cmc-h *,
.cmc-h-rail *,
.cmc-h-mega *,
.cmc-h-drawer *,
.cmc-h *::before,
.cmc-h-rail *::before,
.cmc-h-mega *::before,
.cmc-h-drawer *::before {
    box-sizing: border-box;
}

.cmc-h {
    position: fixed;
    top: var(--wp-admin--admin-bar--height, 0px);
    left: 0;
    right: 0;
    z-index: 10030;
    background: var(--cmc-h-header);
    border-bottom: 1px solid var(--cmc-h-line);
}

.cmc-h-bar {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 16px;
    height: 64px;
    padding: 0 20px;
    background: transparent;
}

.cmc-h-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.cmc-h-logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.cmc-h-search {
    display: flex;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.cmc-h-search .cmc-s-form,
.cmc-h-search .cmc-s-bar,
.cmc-h-search #barra_pesquisa {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.cmc-h-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.cmc-h-tools .cmc-nt,
.cmc-h-tools .cmc-sv-btn {
    min-width: 52px;
    min-height: 52px;
}

.cmc-h-tools > a,
.cmc-h-tools > button,
.cmc-h-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 52px;
    min-height: 52px;
    padding: 6px 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--cmc-h-ink);
    text-decoration: none;
    font: 600 11px/1.15 var(--cmc-h-font);
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.cmc-h-tools > a:hover,
.cmc-h-tools > button:hover,
.cmc-h-btn:hover,
.cmc-h-tools > a:focus-visible,
.cmc-h-tools > button:focus-visible,
.cmc-h-btn:focus-visible {
    background: #fff;
    color: var(--cmc-h-hot);
}

.cmc-h-tools svg {
    display: block;
    width: 22px;
    height: 22px;
}

.cmc-h-compact {
    height: 40px;
    overflow: hidden;
    border-top: 1px solid var(--cmc-h-line);
    background: var(--cmc-h-compact);
}

.cmc-h-compact-inner,
.cmc-h-shortcuts-wrap,
.cmc-h-shortcuts,
ul.cmc-h-shortcuts,
#cmc-h-shortcuts {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: stretch;
    height: 40px;
    max-height: 40px;
}

.cmc-h-compact-inner {
    padding: 0 12px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cmc-h-compact-inner::-webkit-scrollbar,
.cmc-h-shortcuts-wrap::-webkit-scrollbar,
.cmc-h-shortcuts::-webkit-scrollbar {
    display: none;
}

.cmc-h-families-btn {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    height: 32px;
    margin: 4px 8px 4px 4px;
    padding: 0 12px;
    border: 1px solid var(--cmc-h-line);
    border-radius: 8px;
    background: var(--cmc-h-hot-soft);
    color: var(--cmc-h-ink);
    font: 700 12px/1 var(--cmc-h-font);
    cursor: pointer;
    white-space: nowrap;
}

.cmc-h-families-btn:hover,
.cmc-h-families-btn[aria-expanded="true"] {
    border-color: var(--cmc-h-hot);
    color: var(--cmc-h-hot);
}

.cmc-h-shortcuts-wrap {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cmc-h-shortcuts,
ul.cmc-h-shortcuts,
#cmc-h-shortcuts {
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    width: max-content;
    max-width: none;
    overflow: visible;
}

.cmc-h-shortcuts li,
#cmc-h-shortcuts li {
    list-style: none;
    float: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    display: flex;
    width: auto;
    white-space: nowrap;
}

.cmc-h-shortcuts .sub-menu,
.cmc-h-shortcuts .menu-item-has-children > a::after {
    display: none !important;
}

.cmc-h-shortcuts a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    color: var(--cmc-h-ink);
    text-decoration: none;
    font: 600 13px/1 var(--cmc-h-font);
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.cmc-h-shortcuts a:hover,
.cmc-h-shortcuts .current-menu-item > a,
.cmc-h-shortcuts .current_page_item > a,
.cmc-h-shortcuts a[aria-current="page"] {
    color: var(--cmc-h-hot);
}

.cmc-h-rail {
    position: fixed;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--cmc-h-offset));
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 10040;
    width: var(--cmc-h-rail-w);
    overflow: auto;
    background: #fff;
    border-right: 1px solid var(--cmc-h-line);
}

.cmc-h-rail-label {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0;
    padding: 10px 16px 8px;
    background: #fff;
    color: var(--cmc-h-muted);
    font: 700 10px/1 var(--cmc-h-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cmc-h-fams {
    margin: 0;
    padding: 0 0 16px;
    list-style: none;
}

.cmc-h-fam {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 13px 8px 14px;
    border: 0;
    border-right: 3px solid transparent;
    background: transparent;
    color: var(--cmc-h-ink);
    text-decoration: none;
    text-align: left;
}

.cmc-h-fam:hover,
.cmc-h-fam.is-open,
.cmc-h-fam:focus-visible {
    background: var(--cmc-h-hot-soft);
    border-right-color: var(--cmc-h-hot);
}

.cmc-h-fam.is-current {
    border-right-color: var(--cmc-h-hot);
}

.cmc-h-fam-ico,
.cmc-h-banner-ico,
.cmc-h-tile-ico {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--cmc-h-ink);
}

.cmc-h-fam-ico svg,
.cmc-h-banner-ico svg,
.cmc-h-tile-ico svg,
.cmc-h-fam-ico img,
.cmc-h-banner-ico img,
.cmc-h-tile-ico img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cmc-h-fam-code {
    flex: 0 0 auto;
    color: var(--cmc-h-hot);
    font: 700 10px/1.3 var(--cmc-h-font);
    font-variant-numeric: tabular-nums;
}

.cmc-h-fam-title {
    min-width: 0;
    font: 600 12px/1.3 var(--cmc-h-font);
}

.cmc-h-mega {
    position: fixed;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--cmc-h-offset));
    left: var(--cmc-h-rail-w);
    right: auto;
    bottom: 0;
    z-index: 10050;
    width: min(640px, calc(100vw - var(--cmc-h-rail-w) - 24px));
    overflow: hidden;
    background: #fff;
    border-right: 1px solid var(--cmc-h-line);
    box-shadow: 12px 0 32px rgba(23, 23, 23, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-12px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.cmc-h-mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.cmc-h-panel {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.cmc-h-panel.is-on,
.cmc-h-acc .cmc-h-panel {
    display: flex;
}

.cmc-h-banner {
    position: relative;
    display: block;
    flex: 0 0 160px;
    height: 160px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--cmc-h-hot);
}

.cmc-h-banner-media {
    position: absolute;
    inset: 0;
    isolation: isolate;
}

.cmc-h-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.cmc-h-banner-wash {
    position: absolute;
    inset: 0;
    background: #f58220;
    mix-blend-mode: multiply;
}

.cmc-h-banner-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 30%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.cmc-h-banner-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px 18px;
    color: #fff;
}

.cmc-h-banner-ico {
    color: #fff;
    flex-basis: 28px;
    width: 28px;
    height: 28px;
}

.cmc-h-banner-ico svg,
.cmc-h-banner-ico img {
    width: 28px;
    height: 28px;
}

.cmc-h-banner-ico img {
    filter: brightness(0) invert(1);
}

.cmc-h-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cmc-h-banner-title {
    font: 700 20px/1.15 var(--cmc-h-font);
    color: #fff;
}

.cmc-h-banner-all {
    color: rgba(255, 255, 255, 0.86);
    font: 600 12px/1.3 var(--cmc-h-font);
}

.cmc-h-banner:hover .cmc-h-banner-all {
    color: #fff;
}

.cmc-h-caption {
    margin: 0;
    padding: 10px 16px 0;
    color: var(--cmc-h-muted);
    font: 12px/1.4 var(--cmc-h-font);
}

.cmc-h-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 8px;
    flex: 1 1 auto;
    margin: 0;
    padding: 14px 14px 20px;
    overflow: auto;
    list-style: none;
}

.cmc-h-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f6f6f6;
    color: inherit;
    text-decoration: none;
}

.cmc-h-tile:hover,
.cmc-h-tile:focus-visible {
    background: var(--cmc-h-hot-soft);
}

.cmc-h-tile-ico {
    color: var(--cmc-h-ink);
}

.cmc-h-tile-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cmc-h-tile-title {
    font: 600 13px/1.25 var(--cmc-h-font);
}

.cmc-h-tile-code {
    color: var(--cmc-h-muted);
    font: 600 10px/1.2 var(--cmc-h-font);
    font-variant-numeric: tabular-nums;
}

.cmc-h-empty {
    margin: 0;
    padding: 12px 18px 20px;
    color: var(--cmc-h-muted);
    font: 13px/1.4 var(--cmc-h-font);
}

.cmc-h-drawer {
    position: fixed;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--cmc-h-offset));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10050;
    display: none;
    flex-direction: column;
    background: #fff;
}

.cmc-h-drawer.is-open {
    display: flex;
}

.cmc-h-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--cmc-h-line);
}

.cmc-h-drawer-head h2 {
    margin: 0;
    font: 700 16px/1.2 var(--cmc-h-font);
}

.cmc-h-drawer-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--cmc-h-line);
    border-radius: 8px;
    background: #fff;
    color: var(--cmc-h-ink);
    font: 600 12px/1 var(--cmc-h-font);
    cursor: pointer;
}

.cmc-h-drawer-body {
    flex: 1;
    overflow: auto;
    padding: 8px 0 24px;
}

.cmc-h-acc {
    border-bottom: 1px solid var(--cmc-h-line);
}

.cmc-h-acc > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    list-style: none;
    cursor: pointer;
    font: 600 14px/1.3 var(--cmc-h-font);
}

.cmc-h-acc > summary::-webkit-details-marker {
    display: none;
}

.cmc-h-acc[open] > summary {
    background: var(--cmc-h-hot-soft);
}

.cmc-h-acc .cmc-h-panel {
    height: auto;
    overflow: visible;
}

.cmc-h-acc .cmc-h-banner {
    flex-basis: 132px;
    height: 132px;
}

.cmc-h-acc .cmc-h-tiles {
    grid-template-columns: 1fr;
    overflow: visible;
}

@media (min-width: 980px) {
    body.cmc-h-mega-open::after {
        content: "";
        position: fixed;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--cmc-h-offset));
        left: var(--cmc-h-rail-w);
        right: 0;
        bottom: 0;
        z-index: 10035;
        background: rgba(23, 23, 23, 0.08);
        pointer-events: none;
    }
}

@media (max-width: 979px) {
    .cmc-h-bar {
        grid-template-columns: auto 1fr auto;
        height: 56px;
        gap: 10px;
        padding: 0 12px;
    }

    .cmc-h-logo img {
        height: 32px;
        max-width: 132px;
    }

    .cmc-h-families-btn {
        display: inline-flex;
        position: sticky;
        left: 0;
        z-index: 1;
    }

    .cmc-h-rail,
    .cmc-h-mega {
        display: none !important;
    }

    body.cmc-h-on #page-container,
    body.cmc-h-on #main-content {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .cmc-h-profile span,
    .cmc-h-tools > a > span,
    .cmc-h-tools > button > span,
    .cmc-h-btn > span {
        display: none;
    }

    .cmc-h-tools > a,
    .cmc-h-tools > button,
    .cmc-h-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cmc-h-mega {
        transition: none;
    }
}
