/*
 * HydraPower 1.0.57
 * Header desktop em um único agrupamento: navegação + dock de utilidades.
 * O host <site-header> controla toda a geometria para impedir diferenças
 * entre o primeiro frame, o topo da página e o estado após a rolagem.
 */

@media (min-width: 1041px) {
    html body site-header {
        position: fixed !important;
        top: 20px !important;
        right: auto !important;
        bottom: auto !important;
        left: 50% !important;
        z-index: 1141 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        width: min(1206px, calc(100vw - 48px)) !important;
        max-width: 1206px !important;
        height: 56px !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 12px !important;
        box-sizing: border-box !important;
        transform: translateX(-50%) !important;
        translate: none !important;
        animation: none !important;
        transition: none !important;
    }

    html body site-header > .header-container,
    html body site-header > .header-container.hp-liquid-glass,
    html body.has-scrolled site-header > .header-container,
    html body.has-scrolled site-header > .header-container.hp-liquid-glass,
    html body:not(.has-scrolled) site-header > .header-container,
    html body:not(.has-scrolled) site-header > .header-container.hp-liquid-glass {
        position: relative !important;
        inset: auto !important;
        z-index: 1 !important;
        display: flex !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 56px !important;
        min-height: 56px !important;
        margin: 0 !important;
        padding: 6px 28px !important;
        gap: 18px !important;
        border-radius: 28px !important;
        box-sizing: border-box !important;
        opacity: 1 !important;
        transform: none !important;
        translate: none !important;
        animation: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    html body site-header > .header-container::after,
    html body site-header > .header-container.hp-liquid-glass::after {
        display: none !important;
        content: none !important;
    }

    html body site-header .header-container .logo,
    html body.has-scrolled site-header .header-container .logo,
    html body:not(.has-scrolled) site-header .header-container .logo {
        flex: 0 0 168px !important;
        width: 168px !important;
        min-width: 138px !important;
        margin: 0 !important;
    }

    html body site-header .header-container nav,
    html body.has-scrolled site-header .header-container nav,
    html body:not(.has-scrolled) site-header .header-container nav {
        position: static !important;
        inset: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        transform: none !important;
        translate: none !important;
    }

    html body site-header .nav-links,
    html body.has-scrolled site-header .nav-links,
    html body:not(.has-scrolled) site-header .nav-links {
        gap: 24px !important;
    }

    html body site-header .header-container .header-actions,
    html body.has-scrolled site-header .header-container .header-actions,
    html body:not(.has-scrolled) site-header .header-container .header-actions {
        flex: 0 0 auto !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        gap: 7px !important;
        transform: none !important;
        translate: none !important;
    }

    html body site-header .header-icon-button,
    html body site-header .header-search-toggle,
    html body site-header .cta-header,
    html body.has-scrolled site-header .header-icon-button,
    html body.has-scrolled site-header .header-search-toggle,
    html body.has-scrolled site-header .cta-header,
    html body:not(.has-scrolled) site-header .header-icon-button,
    html body:not(.has-scrolled) site-header .header-search-toggle,
    html body:not(.has-scrolled) site-header .cta-header {
        min-height: 42px !important;
        height: 42px !important;
        border-radius: 21px !important;
    }

    html body site-header > .hp-header-utility-dock,
    html body.has-scrolled site-header > .hp-header-utility-dock,
    html body:not(.has-scrolled) site-header > .hp-header-utility-dock {
        position: relative !important;
        inset: auto !important;
        z-index: 2 !important;
        display: flex !important;
        visibility: visible !important;
        align-items: center !important;
        width: auto !important;
        min-height: 56px !important;
        margin: 0 !important;
        padding: 5px !important;
        gap: 5px !important;
        border-radius: 28px !important;
        box-sizing: border-box !important;
        opacity: 1 !important;
        transform: none !important;
        translate: none !important;
        animation: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    html body site-header .hp-header-utility-dock .hp-header-dock-button {
        width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        flex: 0 0 42px !important;
        border-radius: 21px !important;
    }
}

/* v1.0.84 — quatro ações de apoio precisam caber integralmente no dock. */
@media (min-width: 1041px) {
    html body .hp-header-utility-dock.hp-header-v178-dock {
        width: 212px !important;
        min-width: 212px !important;
        box-sizing: border-box !important;
    }
}

/* v1.0.76 — desktop estável: busca sempre exposta, navegação à esquerda e dock separado. */
@media (min-width: 1041px) {
    html body site-header {
        grid-template-columns: minmax(0, 1fr) 188px !important;
        width: min(1360px, calc(100vw - 48px)) !important;
        max-width: 1360px !important;
        gap: 24px !important;
    }

    html body site-header > .header-container {
        padding: 6px 24px !important;
        gap: 18px !important;
    }

    html body site-header .header-container nav,
    html body.has-scrolled site-header .header-container nav,
    html body:not(.has-scrolled) site-header .header-container nav,
    html body site-header > .header-container.has-open-search nav {
        flex: 0 0 auto !important;
        margin-left: 22px !important;
        transform: none !important;
        transition: none !important;
    }

    html body site-header .nav-links,
    html body.has-scrolled site-header .nav-links,
    html body:not(.has-scrolled) site-header .nav-links {
        gap: 24px !important;
    }

    html body site-header .header-container .header-actions,
    html body.has-scrolled site-header .header-container .header-actions,
    html body:not(.has-scrolled) site-header .header-container .header-actions {
        margin-left: auto !important;
        gap: 7px !important;
    }

    html body site-header .header-search,
    html body site-header .header-search.is-open,
    html body site-header .header-search:focus-within,
    html body site-header > .header-container.has-open-search .header-search {
        width: 228px !important;
        min-width: 228px !important;
        flex: 0 0 228px !important;
        overflow: hidden !important;
        background: rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 8px 20px rgba(17, 24, 39, 0.1) !important;
    }

    html body site-header .header-search .header-search-input,
    html body site-header .header-search.is-open .header-search-input,
    html body site-header .header-search:focus-within .header-search-input {
        width: 176px !important;
        min-width: 0 !important;
        opacity: 1 !important;
        color: #111315 !important;
    }

    /* Camada de leitura: o conteúdo não concorre com a imagem por trás do menu. */
    html:not([data-theme="dark"]) body .mobile-menu-panel .mobile-menu-scroll,
    html:not([data-theme="dark"]) body .mobile-store-info-panel .mobile-store-info-body,
    html:not([data-theme="dark"]) body .mobile-support-panel .mobile-support-panel-body {
        background: rgba(255, 255, 255, 0.84) !important;
        border: 1px solid rgba(255, 255, 255, 0.88) !important;
        border-radius: 20px !important;
        box-shadow: 0 16px 34px rgba(20, 38, 45, 0.09), inset 0 1px rgba(255, 255, 255, 0.9) !important;
    }

    html:not([data-theme="dark"]) body .mobile-menu-panel .mobile-menu-scroll {
        width: calc(100% - 20px) !important;
        height: calc(min(690px, 100dvh - 112px) - 132px) !important;
        margin: 4px 10px 10px !important;
        padding: 16px 14px 22px !important;
    }

    html:not([data-theme="dark"]) body .mobile-store-info-panel .mobile-store-info-body,
    html:not([data-theme="dark"]) body .mobile-support-panel .mobile-support-panel-body {
        width: calc(100% - 28px) !important;
        margin: 0 14px 14px !important;
        padding: 18px !important;
    }

    html[data-theme="dark"] body .mobile-menu-panel .mobile-menu-scroll,
    html[data-theme="dark"] body .mobile-store-info-panel .mobile-store-info-body,
    html[data-theme="dark"] body .mobile-support-panel .mobile-support-panel-body {
        background: rgba(22, 24, 27, 0.78) !important;
        border-color: rgba(255, 255, 255, 0.09) !important;
        box-shadow: inset 0 1px rgba(255, 255, 255, 0.06) !important;
    }
}

/* v1.0.75 — a gaveta mobile repete o menu flat e legível do desktop. */
@media (max-width: 1040px) {
    html body .mobile-menu-panel,
    html body .mobile-store-info-panel,
    html body .mobile-support-panel {
        color: #000000 !important;
        background: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(241, 246, 247, 0.58)) !important;
        border-color: rgba(255, 255, 255, 0.82) !important;
        box-shadow: 0 28px 72px rgba(18, 33, 39, 0.16), inset 0 1px rgba(255, 255, 255, 0.72) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    html body .mobile-menu-panel *,
    html body .mobile-store-info-panel *,
    html body .mobile-support-panel * {
        color: #000000 !important;
    }

    html body .mobile-menu-panel .mobile-menu-action-row > a,
    html body .mobile-support-panel .mobile-support-contact {
        color: #ffffff !important;
    }

    html[data-theme="dark"] body .mobile-menu-panel,
    html[data-theme="dark"] body .mobile-store-info-panel,
    html[data-theme="dark"] body .mobile-support-panel {
        color: #edf3f3 !important;
        background: #343539 !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.07) !important;
    }

    html[data-theme="dark"] body .mobile-menu-panel *,
    html[data-theme="dark"] body .mobile-store-info-panel *,
    html[data-theme="dark"] body .mobile-support-panel * {
        color: #edf3f3 !important;
    }

    html[data-theme="dark"] body .mobile-menu-panel .mobile-menu-action-row > a,
    html[data-theme="dark"] body .mobile-support-panel .mobile-support-contact {
        color: #ffffff !important;
    }
}

/* v1.0.74 — leitura máxima no menu plano e espaço próprio para a busca. */
@media (min-width: 1041px) {
    html body site-header {
        width: min(1224px, calc(100vw - 48px)) !important;
        max-width: 1224px !important;
        gap: 20px !important;
    }

    html body site-header > .header-container {
        --hp-search-nav-shift: 0px;
    }

    html body site-header > .header-container.has-open-search {
        --hp-search-nav-shift: -138px;
    }

    html body site-header > .header-container.has-open-search nav,
    html body.has-scrolled site-header > .header-container.has-open-search nav,
    html body:not(.has-scrolled) site-header > .header-container.has-open-search nav {
        transform: translateX(var(--hp-search-nav-shift)) !important;
        transition: transform 0.28s ease !important;
    }

    html:not([data-theme="dark"]) body .mobile-menu-panel,
    html:not([data-theme="dark"]) body .mobile-store-info-panel,
    html:not([data-theme="dark"]) body .mobile-support-panel,
    html:not([data-theme="dark"]) body .mobile-menu-panel .mobile-menu-eyebrow,
    html:not([data-theme="dark"]) body .mobile-menu-panel .mobile-category-link,
    html:not([data-theme="dark"]) body .mobile-menu-panel .mobile-support-list button,
    html:not([data-theme="dark"]) body .mobile-menu-panel .mobile-menu-highlight,
    html:not([data-theme="dark"]) body .mobile-menu-panel .mobile-menu-highlight span,
    html:not([data-theme="dark"]) body .mobile-menu-panel .mobile-link-chevron,
    html:not([data-theme="dark"]) body .mobile-store-info-panel .mobile-store-info-top,
    html:not([data-theme="dark"]) body .mobile-store-info-panel .mobile-store-info-body,
    html:not([data-theme="dark"]) body .mobile-store-info-panel .mobile-store-info-body *,
    html:not([data-theme="dark"]) body .mobile-support-panel .mobile-store-info-top,
    html:not([data-theme="dark"]) body .mobile-support-panel .mobile-support-panel-body,
    html:not([data-theme="dark"]) body .mobile-support-panel .mobile-support-panel-body * {
        color: #000000 !important;
    }

    html:not([data-theme="dark"]) body .mobile-menu-panel .mobile-menu-action-row > a,
    html:not([data-theme="dark"]) body .mobile-support-panel .mobile-support-contact {
        color: #ffffff !important;
    }
}

/* v1.0.73 — menu inteiro como a camada clara e translúcida do Fale Conosco. */
@media (min-width: 1041px) {
    html body .mobile-menu-panel,
    html body .mobile-store-info-panel,
    html body .mobile-support-panel {
        color: #2d3b42 !important;
        background:
            linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(241, 246, 247, 0.58)) !important;
        border-color: rgba(255, 255, 255, 0.82) !important;
        box-shadow: 0 28px 72px rgba(18, 33, 39, 0.16), inset 0 1px rgba(255, 255, 255, 0.72) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    html body .mobile-menu-panel .mobile-menu-top,
    html body .mobile-store-info-panel .mobile-store-info-top,
    html body .mobile-support-panel .mobile-store-info-top {
        position: relative !important;
        align-items: flex-start !important;
        color: #293b43 !important;
        background: transparent !important;
    }

    html body .mobile-support-panel .mobile-store-info-top div::before {
        content: "Compra segura HydraPower";
        display: block;
        margin-bottom: 8px;
        color: #6e8490;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.01em;
    }

    html body .mobile-support-panel .mobile-store-info-top p {
        display: none !important;
    }

    html body .mobile-support-panel .mobile-store-info-top h2 {
        color: #263b44 !important;
        font-size: clamp(24px, 2vw, 31px) !important;
        font-weight: 750 !important;
        letter-spacing: -0.035em !important;
    }

    html body .mobile-support-panel .mobile-store-info-top button {
        color: #263b44 !important;
        background: rgba(255, 255, 255, 0.94) !important;
        border-color: rgba(255, 255, 255, 0.8) !important;
    }

    html body .mobile-support-panel .mobile-support-panel-body {
        padding-top: 10px !important;
    }

    html body .mobile-support-panel .mobile-support-intro,
    html body .mobile-support-panel .mobile-support-note {
        color: #69808d !important;
        line-height: 1.55 !important;
    }

    html body .mobile-support-panel .mobile-support-card {
        border-color: rgba(255, 255, 255, 0.7) !important;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12), inset 0 1px #fff !important;
    }

    html body .mobile-support-panel .mobile-support-card span {
        color: #1ca85d !important;
    }

    html body .mobile-support-panel .mobile-support-card strong {
        color: #28343a !important;
    }

    html body .mobile-support-panel .mobile-support-card small {
        color: #68757b !important;
    }

    html body .mobile-support-panel .mobile-support-contact {
        color: #fff !important;
        background: linear-gradient(135deg, #32d477, #17a957) !important;
        border-color: rgba(255, 255, 255, 0.28) !important;
        box-shadow: 0 12px 24px rgba(20, 168, 84, 0.2) !important;
    }

    html[data-theme="dark"] body .mobile-menu-panel,
    html[data-theme="dark"] body .mobile-store-info-panel,
    html[data-theme="dark"] body .mobile-support-panel {
        color: #edf3f3 !important;
        background: #343539 !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.07) !important;
    }

    html[data-theme="dark"] body .mobile-menu-panel .mobile-menu-top,
    html[data-theme="dark"] body .mobile-store-info-panel .mobile-store-info-top,
    html[data-theme="dark"] body .mobile-support-panel .mobile-store-info-top {
        color: #f7f9f9 !important;
    }

    html[data-theme="dark"] body .mobile-support-panel .mobile-store-info-top div::before,
    html[data-theme="dark"] body .mobile-support-panel .mobile-support-intro,
    html[data-theme="dark"] body .mobile-support-panel .mobile-support-note {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    html[data-theme="dark"] body .mobile-support-panel .mobile-store-info-top h2 {
        color: #fff !important;
    }

    html[data-theme="dark"] body .mobile-support-panel .mobile-support-card {
        background: #44464a !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: inset 0 1px rgba(255, 255, 255, 0.07) !important;
    }

    html[data-theme="dark"] body .mobile-support-panel .mobile-support-card strong {
        color: #fff !important;
    }

    html[data-theme="dark"] body .mobile-support-panel .mobile-support-card small {
        color: rgba(255, 255, 255, 0.7) !important;
    }
}

@media (max-width: 1040px) {
    html body site-header {
        display: contents !important;
    }
}

/* v1.0.69 — menu de suporte como mega-menu ancorado ao último ícone. */
@media (min-width: 1041px) {
    html body .mobile-menu-toggle.mobile-menu-toggle--header,
    html body site-header .header-container .mobile-menu-toggle--header,
    html body.has-scrolled site-header .header-container .mobile-menu-toggle--header,
    html body:not(.has-scrolled) site-header .header-container .mobile-menu-toggle--header {
        display: none !important;
    }

    html body .mobile-menu-scrim {
        display: none !important;
    }

    html body .mobile-menu-panel {
        position: fixed !important;
        z-index: 1300 !important;
        top: 88px !important;
        right: max(24px, calc((100vw - 1372px) / 2)) !important;
        bottom: auto !important;
        left: auto !important;
        display: flex !important;
        width: min(460px, calc(100vw - 48px)) !important;
        height: min(690px, calc(100dvh - 112px)) !important;
        overflow: hidden !important;
        border: 1px solid rgba(255, 255, 255, 0.68) !important;
        border-radius: 26px !important;
        box-shadow: 0 24px 64px rgba(9, 25, 38, 0.22), inset 0 1px rgba(255, 255, 255, 0.65) !important;
        transform: none !important;
    }

    html body .mobile-menu-panel[hidden] {
        display: none !important;
    }

    html body .mobile-menu-panel .mobile-menu-top {
        min-height: 94px !important;
    }

    html body .mobile-menu-panel .mobile-menu-scroll {
        height: calc(min(690px, 100dvh - 112px) - 120px) !important;
        padding: 18px 18px 24px !important;
    }

    html body .mobile-menu-panel .mobile-menu-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    /* Painel da loja abre à esquerda do mega-menu, sem se cruzarem. */
    html body .mobile-store-info-panel {
        position: fixed !important;
        z-index: 1290 !important;
        top: 88px !important;
        right: calc(max(24px, calc((100vw - 1372px) / 2)) + min(460px, calc(100vw - 48px)) + 18px) !important;
        bottom: auto !important;
        left: auto !important;
        display: flex !important;
        width: min(460px, calc(100vw - 48px)) !important;
        height: min(690px, calc(100dvh - 112px)) !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border: 1px solid rgba(255, 255, 255, 0.68) !important;
        border-radius: 26px !important;
        box-shadow: 0 24px 64px rgba(9, 25, 38, 0.18), inset 0 1px rgba(255, 255, 255, 0.65) !important;
        transform: none !important;
    }

    html body .mobile-store-info-panel[hidden] {
        display: none !important;
    }

    html body .mobile-store-info-panel .mobile-store-info-top {
        width: 100% !important;
        min-height: 94px !important;
        padding: 18px 22px !important;
        flex: 0 0 94px !important;
        box-sizing: border-box !important;
    }

    html body .mobile-store-info-panel .mobile-store-info-top h2 {
        font-size: 20px !important;
    }

    html body .mobile-store-info-panel .mobile-store-info-body {
        width: 100% !important;
        height: auto !important;
        padding: 22px !important;
        flex: 1 1 auto !important;
        box-sizing: border-box !important;
    }

    /* Painéis de compra e suporte usam a mesma janela do painel da loja. */
    html body .mobile-support-panel {
        position: fixed !important;
        z-index: 1290 !important;
        top: 88px !important;
        right: calc(max(24px, calc((100vw - 1372px) / 2)) + min(460px, calc(100vw - 48px)) + 18px) !important;
        bottom: auto !important;
        left: auto !important;
        display: flex !important;
        width: min(460px, calc(100vw - 48px)) !important;
        height: min(690px, calc(100dvh - 112px)) !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border: 1px solid rgba(255, 255, 255, 0.68) !important;
        border-radius: 26px !important;
        box-shadow: 0 24px 64px rgba(9, 25, 38, 0.18), inset 0 1px rgba(255, 255, 255, 0.65) !important;
        transform: none !important;
    }

    html body .mobile-support-panel[hidden] {
        display: none !important;
    }

    html body .mobile-support-panel .mobile-store-info-top {
        width: 100% !important;
        min-height: 94px !important;
        padding: 18px 22px !important;
        flex: 0 0 94px !important;
        box-sizing: border-box !important;
    }

    html body .mobile-support-panel .mobile-store-info-top h2 {
        font-size: 20px !important;
    }

    html body .mobile-support-panel .mobile-support-panel-body {
        width: 100% !important;
        min-height: 0 !important;
        padding: 22px !important;
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }
}

/* v1.0.77 — camada terminal do header: duas cápsulas sem sobreposição. */
@media (min-width: 1041px) {
    html body site-header,
    html body.has-scrolled site-header,
    html body:not(.has-scrolled) site-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 188px !important;
        align-items: center !important;
        width: min(1380px, calc(100vw - 48px)) !important;
        max-width: 1380px !important;
        height: 56px !important;
        gap: 28px !important;
    }

    html body site-header > .header-container,
    html body.has-scrolled site-header > .header-container,
    html body:not(.has-scrolled) site-header > .header-container {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 56px !important;
        padding: 6px 24px !important;
        gap: 18px !important;
        overflow: visible !important;
    }

    html body site-header > .hp-header-utility-dock,
    html body.has-scrolled site-header > .hp-header-utility-dock,
    html body:not(.has-scrolled) site-header > .hp-header-utility-dock {
        display: flex !important;
        width: 188px !important;
        min-width: 188px !important;
        height: 56px !important;
        padding: 5px !important;
        margin: 0 !important;
        border-radius: 28px !important;
    }

    html body site-header > .header-container nav,
    html body.has-scrolled site-header > .header-container nav,
    html body:not(.has-scrolled) site-header > .header-container nav,
    html body site-header > .header-container.has-open-search nav {
        position: static !important;
        flex: 0 0 auto !important;
        margin: 0 0 0 24px !important;
        transform: none !important;
        translate: none !important;
    }

    html body site-header > .header-container .nav-links {
        gap: 24px !important;
    }

    html body site-header > .header-container .header-actions {
        display: flex !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
        gap: 7px !important;
    }

    html body site-header > .header-container .header-search,
    html body site-header > .header-container .header-search.is-open,
    html body site-header > .header-container .header-search:focus-within {
        display: flex !important;
        width: 228px !important;
        min-width: 228px !important;
        height: 42px !important;
        flex: 0 0 228px !important;
        overflow: hidden !important;
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.92) !important;
    }

    html body site-header > .header-container .header-search-input,
    html body site-header > .header-container .header-search.is-open .header-search-input,
    html body site-header > .header-container .header-search:focus-within .header-search-input {
        display: block !important;
        width: 176px !important;
        min-width: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #111315 !important;
    }
}
