/* ===== Header [absites_header] ===== */

.absites-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-family: "Titillium Web", Sans-serif;
    position: relative;
    z-index: 100;
}

/* O Elementor Kit estiliza globalmente todos os <button>; repor o neutro. */
.absites-header button,
.absites-search button,
.absites-drawer button {
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-shadow: none !important;
}

.absites-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100px;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

/* hambúrguer */
.absites-header__burger {
    justify-self: start;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 7px !important;
    width: 30px !important;
    padding: 8px 0 !important;
    cursor: pointer;
}

.absites-header__burger span {
    display: block !important;
    height: 2px !important;
    width: 26px !important;
    margin: 0 !important;
    background: #232323 !important;
    transition: background 0.3s ease;
}

.absites-header__burger:hover span {
    background: #9B061A !important;
}

/* logo */
.absites-header__logo {
    justify-self: center;
    display: inline-flex;
    line-height: 0;
}

.absites-header .absites-header__logo img {
    display: block !important;
    width: 60px !important;
    max-width: 60px !important;
    height: auto !important;
    transition: transform 0.3s ease;
}

.absites-header__logo:hover img {
    transform: scale(1.05);
}

/* ações (pesquisa + carrinho) */
.absites-header__actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
}

.absites-header__icon {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    color: #232323 !important;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.absites-header__icon:hover {
    color: #9B061A !important;
}

.absites-header__icon svg {
    width: 24px !important;
    height: 24px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.absites-header__cart-count {
    position: absolute;
    top: -3px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #9B061A;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

@media (max-width: 767px) {
    .absites-header__inner {
        min-height: 78px;
        padding: 8px 15px;
    }

    .absites-header .absites-header__logo img {
        width: 50px !important;
        max-width: 50px !important;
    }

    .absites-header__actions {
        gap: 14px;
    }
}

/* ===== Caixa de pesquisa ===== */

.absites-search {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.absites-search.is-open {
    visibility: visible;
    opacity: 1;
}

.absites-search__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.absites-search__form {
    position: relative;
    margin-top: 18vh;
    width: min(620px, calc(100% - 40px));
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 2px;
    padding: 8px 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.absites-search__input {
    flex: 1;
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 17px;
    color: #232323;
    padding: 12px 6px;
    background: transparent;
}

.absites-search__submit,
.absites-search__close {
    cursor: pointer;
    color: #232323 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px !important;
    transition: color 0.2s ease;
}

.absites-search__submit:hover,
.absites-search__close:hover {
    color: #9B061A !important;
}

.absites-search__submit svg {
    width: 22px !important;
    height: 22px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.absites-search__close {
    font-size: 28px;
    line-height: 1;
}

/* ===== Menu lateral (drawer) — 2 painéis ===== */

.absites-drawer {
    position: fixed;
    inset: 0;
    z-index: 100001;
    visibility: hidden;
    pointer-events: none;
}

.absites-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.absites-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.absites-drawer.is-open .absites-drawer__backdrop {
    opacity: 1;
}

.absites-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: min(780px, 97vw);
    background: #fff;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: "Titillium Web", Sans-serif;
}

.absites-drawer.is-open .absites-drawer__panel {
    transform: translateX(0);
}

.absites-drawer__close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    line-height: 1;
    color: #232323 !important;
    cursor: pointer;
    z-index: 3;
}

.absites-drawer__close:hover {
    color: #9B061A !important;
}

.absites-drawer__cols {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    min-height: 100%;
}

/* painel esquerdo: categorias */
.absites-drawer__nav {
    list-style: none;
    margin: 0;
    padding: 62px 0 30px;
    background: #f7f3f3;
}

.absites-drawer__nav-btn {
    width: 100% !important;
    text-align: left !important;
    padding: 14px 22px !important;
    font-size: 16px;
    color: #232323 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px;
    font-family: inherit;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.absites-drawer__nav-btn > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.absites-drawer__nav-btn:hover {
    color: #9B061A !important;
}

.absites-drawer__nav-item.is-active .absites-drawer__nav-btn {
    color: #9B061A !important;
    background: #ffffff;
    font-weight: 600;
}

.absites-drawer__arrow {
    flex: 0 0 auto !important;
    margin-left: 14px;
    font-size: 20px;
    line-height: 1;
    color: #9B061A;
}

/* painel direito: subcategorias */
.absites-drawer__sub {
    padding: 62px 28px 40px;
}

.absites-drawer__sub-panel {
    display: none;
}

.absites-drawer__sub-panel.is-active {
    display: block;
}

.absites-drawer__group {
    border-bottom: 1px solid #f0f0f0;
}

.absites-drawer__group-toggle {
    width: 100% !important;
    text-align: left !important;
    padding: 16px 0 !important;
    font-size: 16px;
    color: #232323 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px;
    font-family: inherit;
}

.absites-drawer__group-toggle > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.absites-drawer__group-toggle:hover {
    color: #9B061A !important;
}

.absites-drawer__plus {
    flex: 0 0 auto !important;
    position: relative;
    top: 0;
    margin-left: 14px;
    font-size: 22px;
    line-height: 1;
    color: #9B061A;
}

.absites-drawer__plus::before {
    content: "+";
}

.absites-drawer__group.is-open .absites-drawer__plus::before {
    content: "\2013";
}

.absites-drawer__group-items {
    list-style: none;
    margin: 0;
    padding: 0 0 16px;
    display: none;
}

.absites-drawer__group.is-open .absites-drawer__group-items {
    display: block;
}

.absites-drawer__group-items li {
    margin: 0 0 10px;
}

.absites-drawer__group-items a {
    display: block;
    color: #232323 !important;
    text-decoration: none;
    font-size: 15px;
    padding-left: 18px;
    overflow-wrap: break-word;
}

.absites-drawer__group-items a:hover {
    color: #9B061A;
}

.absites-drawer__ver-tudo {
    color: #9B061A !important;
    font-weight: 600;
}

.absites-drawer__sub-link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #232323;
    text-decoration: none;
    font-size: 16px;
}

.absites-drawer__sub-link:hover {
    color: #9B061A;
}

body.absites-lock {
    overflow: hidden;
}

@media (max-width: 767px) {
    .absites-drawer__panel {
        width: 100vw;
    }

    .absites-drawer__cols {
        grid-template-columns: minmax(0, 50%) minmax(0, 50%);
    }

    .absites-drawer__nav {
        padding-top: 58px;
    }

    .absites-drawer__nav-btn {
        font-size: 15px;
        padding: 13px 14px !important;
        gap: 12px;
    }

    .absites-drawer__arrow {
        font-size: 18px;
    }

    .absites-drawer__sub {
        padding: 58px 14px 30px;
    }

    .absites-drawer__group-toggle,
    .absites-drawer__sub-link {
        font-size: 15px;
    }
}
