/* ==========================================================================
   Header sur une ligne + sticky — thème enfant Hummingbird (PrestaShop 9.x)
   Les styles du thème parent sont dans @layer ps-base : ces règles non
   "layered" passent devant sans !important.
   ========================================================================== */

/* --- Sticky ------------------------------------------------------------- */
#header.header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--bs-body-bg);
  box-shadow: 0 1px 0 var(--bs-border-color);
}

/* --- Ligne unique ------------------------------------------------------- */
.header-bottom--oneline {
  border-bottom: 0;
  padding: 0;
}

.header-bottom--oneline .header-bottom__row {
  min-height: 4.5rem;
  flex-wrap: nowrap;
}

.header-bottom--oneline .navbar-brand .logo {
  max-height: 3.25rem;
  max-width: 10rem;
  width: auto;
}

/* Menu : prend l'espace restant, items sur une seule ligne */
@media (min-width: 1200px) {
  .header-bottom--oneline .ps-mainmenu--desktop {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .header-bottom--oneline .ps-mainmenu--desktop .ps-mainmenu__tree {
    flex-wrap: nowrap;
    gap: 0.25rem;
    height: 100%;
  }

  .header-bottom--oneline .ps-mainmenu--desktop .ps-mainmenu__tree > li .ps-mainmenu__tree-link {
    white-space: nowrap;
    padding-inline: 0.5rem;
  }
}

/* Recherche : plus compacte pour laisser la place au menu */
.header-bottom--oneline #_desktop_ps_searchbar {
  flex-shrink: 1;
  min-width: 0;
}

.header-bottom--oneline .ps-searchbar {
  min-width: 13rem;
  width: clamp(13rem, 18vw, 18rem);
  margin-block: 0;
}

/* Bloc compte / panier / langue / devise */
.header-bottom--oneline .header-bottom__actions,
.header-bottom--oneline .header-bottom__nav1 {
  gap: 0.25rem;
  white-space: nowrap;
}

.header-bottom--oneline .header-bottom__actions > div,
.header-bottom--oneline .header-bottom__nav1 > div {
  display: flex;
  align-items: center;
}

.header-bottom--oneline .ps-contactinfo__phone {
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
  text-decoration: none;
}
