
/* Casa Marcus - Header Desktop v3.0 */
/* Solo escritorio, encabezado normal, no sticky */

@media (min-width: 1025px) {

    /* Altura del encabezado */
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-container:has(#search_mini_form) {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-row:has(#search_mini_form) {
        height: 78px !important;
        min-height: 78px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box !important;
        align-items: center !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-row:has(#search_mini_form)
    > .header-panel-left,

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-row:has(#search_mini_form)
    > .header-panel-center,

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-row:has(#search_mini_form)
    > .header-panel-right {
        align-self: center !important;
        min-width: 0 !important;
    }

    /* Logotipo */
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-left a.logo,
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-left a.logo img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Aprovechar ancho del buscador */
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-center .header-search,
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-center .search-form,
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-center .block-search,
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-center .block-content,
    .page-header.header-style-22
    .sticky-menu:not(.active)
    #search_mini_form {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    /* Accesos de usuario */
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-right-inner {
        width: 100% !important;
        max-width: none !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-right ul.header.features-links {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 14px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-right ul.header.features-links > li {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        min-width: 0 !important;
    }

    /* Favoritos: disponible desde Mi cuenta */
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-right ul.header.features-links > li.link.wishlist {
        display: none !important;
    }

    /* Mi cuenta */
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-right li.authorization-link {
        width: 94px !important;
        flex: 0 0 94px !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .account-trigger {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        width: 100% !important;
        height: 56px !important;
        text-align: left !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .account-trigger::before {
        display: none !important;
        content: none !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .account-trigger .text-underlink {
        display: block !important;
        visibility: visible !important;
        font-size: 11px !important;
        line-height: 15px !important;
        font-weight: 400 !important;
        text-transform: none !important;
        white-space: nowrap !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .account-trigger .text-uppercase {
        display: block !important;
        font-size: 13px !important;
        line-height: 18px !important;
        font-weight: 700 !important;
        text-transform: none !important;
        white-space: nowrap !important;
    }

    /* Mis pedidos */
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-right li.cm-header-orders-v3 {
        width: 94px !important;
        flex: 0 0 94px !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .cm-header-orders-v3 a {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        width: 100% !important;
        height: 56px !important;
        color: #252666 !important;
        text-align: left !important;
        text-decoration: none !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .cm-orders-top {
        font-size: 11px !important;
        line-height: 15px !important;
        font-weight: 400 !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .cm-orders-bottom {
        font-size: 13px !important;
        line-height: 18px !important;
        font-weight: 700 !important;
    }

    /* Carrito */
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-right li.cart-link {
        width: 106px !important;
        flex: 0 0 106px !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    #desk_cart-wrapper {
        width: 106px !important;
        min-width: 0 !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    #desk_cart-wrapper .action.showcart {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        position: relative !important;
        width: 106px !important;
        min-width: 0 !important;
        height: 56px !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    #desk_cart-wrapper .action.showcart::before {
        display: inline-block !important;
        position: static !important;
        width: 30px !important;
        flex: 0 0 30px !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    #desk_cart-wrapper .action.showcart .text {
        display: inline-block !important;
        position: static !important;
        width: auto !important;
        min-width: max-content !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        overflow: visible !important;
        white-space: nowrap !important;
        text-indent: 0 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 18px !important;
        text-transform: none !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    #desk_cart-wrapper .cart-subtotal {
        display: none !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    #desk_cart-wrapper .counter.qty {
        position: absolute !important;
        top: 0 !important;
        left: 22px !important;
        right: auto !important;
    }
}

/* Escritorio compacto: 1025 a 1439 px */
@media (min-width: 1025px) and (max-width: 1439px) {

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-row:has(#search_mini_form)
    > .header-panel-center {
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: none !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-row:has(#search_mini_form)
    > .header-panel-right {
        flex: 0 0 350px !important;
        width: 350px !important;
        max-width: 350px !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-center .desk-search-wrap {
        width: calc(100% + 19px) !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    /* Navegacion de la barra azul */
    .page-header.header-style-22
    .sticky-menu:not(.active) .menu-area {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .menu-area > .header-menu-wrap {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        width: max-content !important;
        max-width: calc(100% - 342px) !important;
        flex: 0 1 auto !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .menu-area > .header-phone {
        margin-left: 0 !important;
        width: 330px !important;
        max-width: 330px !important;
        flex: 0 0 330px !important;
    }
}

@media (min-width: 1025px) and (max-width: 1279px) {
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-row:has(#search_mini_form)
    > .header-panel-left {
        flex: 0 0 20% !important;
        width: 20% !important;
        max-width: 20% !important;
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-row:has(#search_mini_form)
    > .header-panel-left {
        flex: 0 0 18% !important;
        width: 18% !important;
        max-width: 18% !important;
    }
}

/* Escritorio amplio: desde 1440 px */
@media (min-width: 1440px) {

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-row:has(#search_mini_form)
    > .header-panel-left {
        flex: 0 0 18% !important;
        width: 18% !important;
        max-width: 18% !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-row:has(#search_mini_form)
    > .header-panel-center {
        flex: 0 0 57% !important;
        width: 57% !important;
        max-width: 57% !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-row:has(#search_mini_form)
    > .header-panel-right {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
    }

    .page-header.header-style-22
    .sticky-menu:not(.active)
    .header-panel-center .desk-search-wrap {
        width: 100% !important;
        max-width: none !important;
        transform: translateY(4px) !important;
    }
}
