/* LTDE cabecera escritorio (layout 2). No afecta a #mobile-header. */
#desktop-header.ltde-h-desktop {
  --ltde-h-azul: #0080c7;
  --ltde-h-ink: #1f2937;
  --ltde-h-muted: #6b7280;
  --ltde-h-line: #e5e9ef;
  --ltde-h-naranja: #f59111;
  --ltde-h-hover: #f3f6fa;
  font-size: 17px;
  color: var(--ltde-h-ink);
  background: #fff;
}
@media (min-width: 1100px) {
  #desktop-header.ltde-h-desktop { font-size: 18px; }
}

@media (min-width: 992px) {
  #desktop-header.ltde-h-desktop .ltde-h-chrome {
    z-index: 70;
    background: #fff;
  }
  #desktop-header.ltde-h-desktop .ltde-h-chrome.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    background: #fff;
  }

  #desktop-header.ltde-h-desktop .header-top {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--ltde-h-line);
    background: #fff;
  }
  #desktop-header.ltde-h-desktop #desktop-header-container {
    max-width: 1270px;
  }
  #desktop-header.ltde-h-desktop .ltde-h-row {
    display: flex;
    align-items: center;
    gap: 0.55rem 0.85rem;
    min-width: 0;
  }
  #desktop-header.ltde-h-desktop .ltde-h-logo {
    flex: 0 0 auto;
  }
  #desktop-header.ltde-h-desktop #desktop_logo img,
  #desktop-header.ltde-h-desktop .ltde-h-logo img {
    height: 44px;
    width: auto;
    max-height: 44px;
    max-width: 220px;
    object-fit: contain;
  }

  #desktop-header.ltde-h-desktop .ltde-h-cats {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    color: var(--ltde-h-ink);
    cursor: pointer;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    white-space: nowrap;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.2;
  }
  #desktop-header.ltde-h-desktop .ltde-h-cats:hover,
  #desktop-header.ltde-h-desktop .ltde-h-cats[aria-expanded="true"] {
    background: var(--ltde-h-hover);
  }
  #desktop-header.ltde-h-desktop .ltde-h-cats .fa {
    font-size: 1.15rem;
  }

  #desktop-header.ltde-h-desktop .ltde-h-search {
    flex: 1 1 auto;
    min-width: 0;
  }
  #desktop-header.ltde-h-desktop #search_widget,
  #desktop-header.ltde-h-desktop .search-widget {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  #desktop-header.ltde-h-desktop #search_widget .input-group {
    display: flex;
    height: 42px;
    border: 1px solid #d5dbe3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }
  #desktop-header.ltde-h-desktop #search_widget .form-control,
  #desktop-header.ltde-h-desktop #search_widget input[name="s"] {
    flex: 1 1 auto;
    border: 0 !important;
    box-shadow: none !important;
    height: 42px;
    padding: 0 0.9rem;
    font-size: 1rem;
    min-width: 0;
  }
  #desktop-header.ltde-h-desktop #search_widget .search-btn {
    width: 46px;
    border: 0;
    background: #fff;
    color: var(--ltde-h-muted);
    cursor: pointer;
    flex: 0 0 auto;
  }
  #desktop-header.ltde-h-desktop #search_widget .search-btn:hover {
    color: var(--ltde-h-azul);
  }

  #desktop-header.ltde-h-desktop .ltde-h-icons {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 0.1rem;
  }
  #desktop-header.ltde-h-desktop .ltde-h-icons .col,
  #desktop-header.ltde-h-desktop .ltde-h-icons .col-auto,
  #desktop-header.ltde-h-desktop .ltde-h-icons .header-btn-w,
  #desktop-header.ltde-h-desktop .ltde-h-icons #ps-shoppingcart-wrapper,
  #desktop-header.ltde-h-desktop .ltde-h-icons #header-user-btn {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0;
    float: none;
  }

  #desktop-header.ltde-h-desktop .ltde-h-ico,
  #desktop-header.ltde-h-desktop .ltde-h-icons .header-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-width: 62px;
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
    color: var(--ltde-h-ink) !important;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    background: transparent;
    border: 0;
    text-align: center;
  }
  #desktop-header.ltde-h-desktop .ltde-h-ico:hover,
  #desktop-header.ltde-h-desktop .ltde-h-icons .header-btn:hover {
    background: var(--ltde-h-hover);
    color: var(--ltde-h-azul) !important;
  }
  #desktop-header.ltde-h-desktop .ltde-h-ico .fa,
  #desktop-header.ltde-h-desktop .ltde-h-icons .header-btn .icon {
    font-size: 1.35rem;
    line-height: 1;
    width: auto;
    height: auto;
  }
  #desktop-header.ltde-h-desktop .ltde-h-ico__label,
  #desktop-header.ltde-h-desktop .ltde-h-icons .header-btn .title {
    display: block !important;
    font-size: 0.78rem;
    font-weight: 700;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #desktop-header.ltde-h-desktop .ltde-h-icons .header-cart-btn .info-wrapper {
    display: block;
  }
  #desktop-header.ltde-h-desktop .ltde-h-icons .header-cart-btn .cart-toggle-details {
    display: none !important;
  }
  #desktop-header.ltde-h-desktop .ltde-h-icons .cart-products-count-btn {
    position: absolute;
    top: 0;
    right: 10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: #e11d48;
    color: #fff !important;
    font-size: 0.62rem;
    line-height: 16px;
    text-align: center;
    display: inline-block;
  }
  #desktop-header.ltde-h-desktop .ltde-h-icons .cart-products-count-btn.d-none {
    display: none !important;
  }

  #desktop-header.ltde-h-desktop #language_selector {
    position: relative;
    margin: 0;
  }
  #desktop-header.ltde-h-desktop #language_selector .expand-more .lang-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
  }
  #desktop-header.ltde-h-desktop #language_selector .fa-angle-down {
    display: none;
  }
  #desktop-header.ltde-h-desktop #language_selector .dropdown-menu {
    min-width: 180px;
    padding: 0.35rem 0;
  }

  /* Atajos */
  #desktop-header.ltde-h-desktop .ltde-h-shortcuts {
    background: #fff;
    border-bottom: 1px solid var(--ltde-h-line);
  }
  #desktop-header.ltde-h-desktop .ltde-h-shortcuts__inner {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    height: 44px;
    overflow: hidden;
    padding-left: 15px;
    padding-right: 15px;
  }
  #desktop-header.ltde-h-desktop .ltde-h-sc {
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.95rem;
    white-space: nowrap;
    color: #374151;
    text-decoration: none;
  }
  #desktop-header.ltde-h-desktop .ltde-h-sc:hover {
    background: var(--ltde-h-hover);
    color: var(--ltde-h-azul);
  }
  #desktop-header.ltde-h-desktop .ltde-h-sc--promo {
    color: var(--ltde-h-naranja);
    font-weight: 700;
  }
  #desktop-header.ltde-h-desktop .ltde-h-sc-sep {
    display: none;
    width: 1px;
    height: 14px;
    background: #d5dbe3;
    margin: 0 0.45rem;
    flex: 0 0 auto;
  }
  #desktop-header.ltde-h-desktop .ltde-h-sc-spacer {
    flex: 1 1 auto;
    min-width: 0.5rem;
  }
  #desktop-header.ltde-h-desktop .ltde-h-sc--cat,
  #desktop-header.ltde-h-desktop .ltde-h-sc.p2,
  #desktop-header.ltde-h-desktop .ltde-h-sc.p3,
  #desktop-header.ltde-h-desktop .ltde-h-sc.p4,
  #desktop-header.ltde-h-desktop .ltde-h-sc.p5 {
    display: none;
  }
  #desktop-header.ltde-h-desktop .ltde-h-sc--promo,
  #desktop-header.ltde-h-desktop .ltde-h-sc--util {
    display: none;
    flex: 0 0 auto;
  }
  #desktop-header.ltde-h-desktop .ltde-h-sc--promo.p1,
  #desktop-header.ltde-h-desktop .ltde-h-sc--util.p1 {
    display: inline-flex;
  }
}
@media (min-width: 1000px) {
  #desktop-header.ltde-h-desktop .ltde-h-sc-sep,
  #desktop-header.ltde-h-desktop .ltde-h-sc--cat.p1 { display: inline-flex; }
}
@media (min-width: 1100px) {
  #desktop-header.ltde-h-desktop .ltde-h-sc.p2 { display: inline-flex; }
}
@media (min-width: 1400px) {
  #desktop-header.ltde-h-desktop .ltde-h-sc.p3 { display: inline-flex; }
}
@media (min-width: 1600px) {
  #desktop-header.ltde-h-desktop .ltde-h-sc.p4 { display: inline-flex; }
}
@media (min-width: 1800px) {
  #desktop-header.ltde-h-desktop .ltde-h-sc.p5 { display: inline-flex; }
}

@media (min-width: 992px) and (max-width: 1099px) {
  #desktop-header.ltde-h-desktop .ltde-h-ico__label,
  #desktop-header.ltde-h-desktop .ltde-h-icons .header-btn .title,
  #desktop-header.ltde-h-desktop .ltde-h-cats span {
    /* keep labels: user asked slightly larger type, not icon-only */
  }
}

/* Ocultar barra azul del megamenú; el cajón reutiliza el HTML */
@media (min-width: 992px) {
  #desktop-header.ltde-h-desktop .iqit-megamenu-container {
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100%;
  }
  #desktop-header.ltde-h-desktop #iqitmegamenu-wrapper,
  #desktop-header.ltde-h-desktop .sticky-desktop-wrapper {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent !important;
    box-shadow: none;
  }
  #desktop-header.ltde-h-desktop #iqitmegamenu-wrapper.stuck,
  #desktop-header.ltde-h-desktop #iqitmegamenu-wrapper.stuck-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: 0 !important;
  }
  #desktop-header.ltde-h-desktop #iqitmegamenu-horizontal,
  #desktop-header.ltde-h-desktop .container-iqitmegamenu {
    padding: 0;
    margin: 0;
    min-height: 0;
    background: transparent !important;
  }
  #desktop-header.ltde-h-desktop #cbp-hrmenu > ul > li > a,
  #desktop-header.ltde-h-desktop #cbp-hrmenu > ul > li > .cbp-main-link {
    display: none !important;
  }
  #desktop-header.ltde-h-desktop #cbp-hrmenu > ul > li:not(#cbp-hrmenu-tab-7) {
    display: none !important;
  }
  #desktop-header.ltde-h-desktop #sticky-cart-wrapper {
    display: none !important;
  }

  #desktop-header.ltde-h-desktop .ltde-h-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    z-index: 250;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop .ltde-h-backdrop {
    display: block;
  }
  body.ltde-cats-open {
    overflow: hidden;
  }

  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 > .cbp-hrsub {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    flex: none !important;
    max-width: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(1600px, 96vw) !important;
    background: #fff;
    z-index: 260;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    box-shadow: 8px 0 30px rgba(15, 23, 42, 0.18);
    float: none;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 > .cbp-hrsub.cbp-notfit {
    right: auto;
  }
  .ltde-h-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--ltde-h-line, #e5e9ef);
    font-weight: 700;
    font-size: 1.05rem;
    flex: 0 0 auto;
    background: #fff;
  }
  .ltde-h-drawer-head button {
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    color: #6b7280;
    padding: 0 0.2rem;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-hrsub-inner {
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .iqitmegamenu-submenu-container,
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-tabs-container,
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-tabs-container > .row {
    max-width: none !important;
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
    padding: 0;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-tabs-container > .row {
    display: flex;
    flex-wrap: nowrap;
    min-height: 0;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .tabs-links {
    flex: 0 0 250px;
    max-width: 250px;
    width: 250px;
    height: auto;
    overflow: auto;
    border-right: 1px solid #e5e9ef;
    padding: 0.4rem 0;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-hrsub-tabs-names {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-hrsub-tabs-names .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.05rem;
    color: #1f2937;
    font-size: 0.98rem;
    border-radius: 0;
    background: transparent;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-hrsub-tabs-names .nav-link.active,
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-hrsub-tabs-names .nav-link:hover {
    background: #f3f8fc;
    color: #0080c7;
    font-weight: 700;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .tab-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: auto;
    overflow: auto;
    padding: 1.05rem 1.5rem 1.6rem;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-tab-pane,
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .tab-pane {
    font-size: 0.95rem;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .tab-pane.active {
    display: block !important;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-column-title,
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-category-title {
    color: #0080c7;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.45rem;
    white-space: normal;
  }

  /* No partir listas en CSS columns: en grupos estrechos (Hogar) se superponen. */
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-category-link-w > ul.cbp-links.cbp-category-tree,
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-menu-column.col-6 .cbp-category-link-w > ul.cbp-links.cbp-category-tree,
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-menu-column.col-12 .cbp-category-link-w > ul.cbp-links.cbp-category-tree {
    column-count: 1 !important;
    column-width: auto !important;
  }

  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-categories-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem 1.6rem;
    margin: 0;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-categories-row > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    flex: none;
    padding: 0;
    margin: 0;
  }

  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-links li,
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-category-tree > li {
    margin-bottom: 0.28rem;
  }
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-links a,
  body.ltde-cats-open #desktop-header.ltde-h-desktop #cbp-hrmenu-tab-7 .cbp-category-tree a {
    line-height: 1.4;
    white-space: normal;
  }
}


/* Autocompletado de búsqueda por encima del contenido, bajo el cajón */
@media (min-width: 992px) {
  #desktop-header.ltde-h-desktop .autocomplete-suggestions {
    z-index: 80;
  }
}
