/* Yujju design system — header.
   Header blanco con borde fino (sin sombra), menú en Inter, iconos en una fila
   y capas flotantes (dropdowns, minicart, buscador) con radio 8 y la sombra única.
   El tema fija el color del menú activo/hover con !important (custom-styles.php). */

/* ── Barra ─────────────────────────────────────────────────────────────────── */
.yj-ds .goal-header,
.yj-ds .header-mobile {
    background: var(--yj-white);
    border-bottom: var(--yj-border);
    box-shadow: none;
}

.yj-ds .sticky-header,
.yj-ds .goal-header .sticky-header {
    background: var(--yj-white);
    border-bottom: var(--yj-border);
    box-shadow: none !important;
}

/* Logo, menú e iconos centrados en el mismo eje vertical */
.yj-ds .goal-header .elementor-container,
.yj-ds .goal-header .elementor-widget-wrap,
.yj-ds .goal-header .e-con-inner {
    align-items: center;
}

.yj-ds .goal-header .elementor-widget-lindo_logo img {
    display: block;
    max-height: 40px;
    width: auto;
}

/* ── Menú principal ───────────────────────────────────────────────────────── */
.yj-ds .megamenu > li > a {
    font-family: var(--yj-font-body) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0;
    text-transform: none;
    color: var(--yj-ink) !important;
    transition: color var(--yj-transition);
}

.yj-ds .megamenu > li:hover > a,
.yj-ds .megamenu > li.active > a,
.yj-ds .megamenu > li.current-menu-item > a,
.yj-ds .megamenu > li.current-menu-ancestor > a {
    color: var(--yj-primary) !important;
}

/* ── Iconos: búsqueda, cuenta, wishlist y carrito en una sola fila ────────── */
.yj-ds .goal-header .elementor-widget-lindo_element_search_form,
.yj-ds .goal-header .elementor-widget-lindo_user_info,
.yj-ds .goal-header .elementor-widget-lindo_woo_header {
    align-self: center;
    margin-block: 0;
}

.yj-ds .goal-header .elementor-widget-lindo_user_info > .elementor-widget-container {
    margin: 0 var(--yj-space-4) !important;
}

/* El tema flota wishlist y carrito a la derecha; en flex se invierte para conservar el orden visual */
.yj-ds .goal-header .header-button-woo {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: var(--yj-space-4);
}

.yj-ds .goal-header .header-button-woo > .pull-right {
    float: none;
    margin: 0;
}

.yj-ds .goal-header .header-button-woo::before,
.yj-ds .goal-header .header-button-woo::after {
    display: none;
}

.yj-ds .goal-header .account-icon,
.yj-ds .goal-header .wishlist-icon,
.yj-ds .goal-header .mini-cart,
.yj-ds .goal-header .show-search-header {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.yj-ds .goal-header .account-icon,
.yj-ds .goal-header .wishlist-icon,
.yj-ds .goal-header .mini-cart,
.yj-ds .goal-header .show-search-header {
    position: relative;
    color: var(--yj-ink);
    font-size: 18px;
    line-height: 1;
    transition: color var(--yj-transition);
}

.yj-ds .goal-header .account-icon:hover,
.yj-ds .goal-header .wishlist-icon:hover,
.yj-ds .goal-header .mini-cart:hover,
.yj-ds .goal-header .show-search-header:hover {
    color: var(--yj-primary);
}

/* Contadores pequeños en primary */
.yj-ds .wishlist-icon .count,
.yj-ds .mini-cart .count {
    top: auto;
    right: auto;
    bottom: -6px;
    left: 11px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-family: var(--yj-font-body);
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    color: var(--yj-white);
    background: var(--yj-primary-strong);
    border: 1.5px solid var(--yj-white);
    border-radius: var(--yj-radius-pill);
    box-sizing: border-box;
}

/* ── Capas flotantes ──────────────────────────────────────────────────────── */
.yj-ds .megamenu > li > .dropdown-menu,
.yj-ds .megamenu .dropdown-menu,
.yj-ds .goal-topcart .dropdown-menu,
.yj-ds .goal-header .header-customer-login-wrapper:not(.hidden) {
    border: var(--yj-border);
    border-radius: var(--yj-radius);
    box-shadow: var(--yj-shadow-float);
    background: var(--yj-white);
}

.yj-ds .megamenu .dropdown-menu li > a {
    font-family: var(--yj-font-body);
    font-size: var(--yj-text-sm);
    font-weight: 400;
    color: var(--yj-text);
    text-transform: none;
}

.yj-ds .goal-topcart .dropdown-menu {
    padding: var(--yj-space-5);
}

/* ── Header móvil ─────────────────────────────────────────────────────────── */
.yj-ds .header-mobile {
    padding: var(--yj-space-3) 0;
}

.yj-ds .header-mobile .flex-middle {
    display: flex;
    align-items: center;
}

.yj-ds .header-mobile .logo img {
    max-height: 34px;
    width: auto;
}

.yj-ds .header-mobile .btn-showmenu,
.yj-ds .header-mobile .btn.dropdown-toggle,
.yj-ds .header-mobile .mini-cart {
    color: var(--yj-ink);
    font-size: 20px;
}

/* Área táctil mínima de 44px en los iconos del header móvil */
.yj-ds .header-mobile .btn-showmenu,
.yj-ds .header-mobile .mini-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}
.yj-ds .header-mobile .mini-cart .count {
    top: calc(50% + 1px);
    bottom: auto;
    left: calc(50% + 1px);
}

/* Barra inferior: el contador del carrito va sobre el icono, no sobre la etiqueta */
.yj-ds .goal-footer-mobile .mini-cart {
    position: relative;
    display: inline-block;
}
.yj-ds .goal-footer-mobile .mini-cart .count {
    top: -6px;
    bottom: auto;
    left: calc(50% + 2px);
}

.yj-ds .goal-footer-mobile {
    border-top: var(--yj-border);
    box-shadow: none;
}

/* ── Desplegable «Catálogo» (menú primario, ítem con hijos) ───────────────── */
.yj-ds .megamenu > li > .dropdown-menu {
    min-width: 240px;
    padding: var(--yj-space-2) 0;
}
.yj-ds .megamenu .dropdown-menu li > a {
    display: block;
    padding: var(--yj-space-2) var(--yj-space-5);
    line-height: 1.4;
    transition: color var(--yj-transition), background-color var(--yj-transition);
}
.yj-ds .megamenu .dropdown-menu li > a:hover,
.yj-ds .megamenu .dropdown-menu li > a:focus-visible,
.yj-ds .megamenu .dropdown-menu li.current-menu-item > a {
    color: var(--yj-primary);
    background: var(--yj-blush);
}
/* Separador antes del grupo de accesorios (la migración marca el ítem con yj-menu-sep). */
.yj-ds .megamenu .dropdown-menu li.yj-menu-sep {
    margin-top: var(--yj-space-2);
    padding-top: var(--yj-space-2);
    border-top: var(--yj-border);
}
/* «Ver todo el catálogo» al final del desplegable (clase yj-menu-all). */
.yj-ds .megamenu .dropdown-menu li.yj-menu-all > a {
    font-weight: 600;
    color: var(--yj-primary-strong);
}

/* ── Barra inferior móvil y «volver arriba» sin solaparse ────────────────── */
@media (max-width: 991px) {
    .yj-ds .goal-footer-mobile {
        padding: var(--yj-space-2) var(--yj-space-4);
    }
    .yj-ds .goal-footer-mobile > ul > li span {
        font-size: var(--yj-text-xs);
        text-transform: none;
        letter-spacing: 0;
    }
    /* La barra mide ~64px: el botón sube por encima de ella. */
    .yj-ds.body-footer-mobile #back-to-top.add-fix-top {
        bottom: calc(64px + var(--yj-space-4));
        right: var(--yj-space-4);
    }
}

/* ── Panel offcanvas móvil (#goal-mobile-menu, sliding-menu del tema) ─────── */
.yj-ds #goal-mobile-menu .goal-offcanvas-body {
    background: var(--yj-white);
    font-family: var(--yj-font-body);
}
.yj-ds #goal-mobile-menu .header-offcanvas {
    border-bottom: var(--yj-border);
}
.yj-ds #goal-mobile-menu .middle-offcanvas {
    padding: var(--yj-space-4);
}
.yj-ds #goal-mobile-menu .middle-offcanvas .inner-search {
    border: 1px solid var(--yj-line-strong);
    border-radius: var(--yj-radius-sm);
    margin-bottom: var(--yj-space-4);
}
.yj-ds #goal-mobile-menu .middle-offcanvas .inner-search .goal-search {
    height: var(--yj-control-h);
    font-size: var(--yj-text-sm);
    color: var(--yj-ink);
}
.yj-ds #goal-mobile-menu .middle-offcanvas .inner-search .btn {
    top: 50%;
    transform: translateY(-50%);
    color: var(--yj-ink);
}
/* Ítems: texto normal (sin mayúsculas forzadas), separadores con la línea del sistema. */
.yj-ds #goal-mobile-menu .sliding-menu {
    background: transparent;
}
.yj-ds #goal-mobile-menu .sliding-menu__panel-root {
    text-transform: none;
}
.yj-ds #goal-mobile-menu .sliding-menu__panel li {
    border-bottom: var(--yj-border);
}
.yj-ds #goal-mobile-menu .sliding-menu__panel li .sliding-menu__nav:not(.sliding-menu__back),
.yj-ds #goal-mobile-menu .sliding-menu__panel li a {
    padding: var(--yj-space-3) var(--yj-space-2);
    font-family: var(--yj-font-body);
    font-size: var(--yj-text-md);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--yj-ink);
    border-left: 2px solid transparent;
}
.yj-ds #goal-mobile-menu .sliding-menu__panel li.active > .sliding-menu__nav,
.yj-ds #goal-mobile-menu .sliding-menu__panel li.active > a {
    color: var(--yj-primary-strong);
    border-left-color: var(--yj-primary);
}
.yj-ds #goal-mobile-menu .sliding-menu .sliding-menu__nav::before {
    color: var(--yj-muted);
    font-size: var(--yj-text-xs);
}
/* «Atrás»: franja blush con el color de marca. */
.yj-ds #goal-mobile-menu .sliding-menu .sliding-menu__back {
    color: var(--yj-primary-strong) !important;
    background: var(--yj-blush) !important;
    font-family: var(--yj-font-body);
    font-size: var(--yj-text-sm) !important;
    font-weight: 600;
    border-radius: var(--yj-radius-sm);
}
.yj-ds #goal-mobile-menu .sliding-menu__panel li.yj-menu-sep {
    margin-top: var(--yj-space-2);
    border-top: 1px solid var(--yj-line-strong);
}
.yj-ds #goal-mobile-menu .sliding-menu__panel li.yj-menu-all {
    border-bottom: 0;
}
.yj-ds #goal-mobile-menu .sliding-menu__panel li.yj-menu-all > a {
    font-weight: 600;
    color: var(--yj-primary-strong);
}
/* Acceso a la cuenta como botón secundario. */
.yj-ds #goal-mobile-menu .middle-offcanvas .my-account {
    display: block;
    margin-top: var(--yj-space-5);
    padding: var(--yj-space-3) var(--yj-space-4);
    border: 1px solid var(--yj-primary-strong);
    border-radius: var(--yj-radius-sm);
    font-size: var(--yj-text-sm);
    font-weight: 600;
    text-align: center;
    color: var(--yj-primary-strong);
}
/* Contacto (bloques de M009). */
.yj-ds #goal-mobile-menu .header-mobile-bottom {
    padding: var(--yj-space-5) var(--yj-space-4);
    border-top: var(--yj-border);
    background: var(--yj-blush);
}
.yj-ds #goal-mobile-menu .header-mobile-bottom aside {
    margin-top: 0;
}
.yj-ds #goal-mobile-menu .yj-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: var(--yj-space-1);
    margin: 0 0 var(--yj-space-2);
    font-size: var(--yj-text-sm);
    color: var(--yj-text);
}
.yj-ds #goal-mobile-menu .yj-mobile-contact__label {
    font-size: var(--yj-text-xs);
    letter-spacing: var(--yj-tracking-caps);
    text-transform: uppercase;
    color: var(--yj-muted);
}
.yj-ds #goal-mobile-menu .yj-mobile-contact a {
    color: var(--yj-ink);
    font-weight: 500;
}
.yj-ds #goal-mobile-menu .yj-mobile-contact--address {
    color: var(--yj-muted);
}

/* ── Popup del buscador (lupa del header escritorio) ─────────────────────── */
.yj-ds .goal-search-form-inner .title {
    margin: 0 0 var(--yj-space-4);
    font-family: var(--yj-font-display) !important;
    font-size: var(--yj-h3);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--yj-ink);
}
.yj-ds .goal-search-form-inner .goal-search {
    height: var(--yj-control-h);
    font-family: var(--yj-font-body);
    font-size: var(--yj-text-md);
    text-transform: none;
    color: var(--yj-ink);
}
.yj-ds .goal-search-form-inner.style2 form .form-control::-webkit-input-placeholder,
.yj-ds .goal-search-form-inner .goal-search::placeholder {
    text-transform: none;
    letter-spacing: 0;
    color: var(--yj-muted);
}
