/* ========= Fixed-on-scroll nav (row 2) ========= */

/* Supprime tout gap accidentel */
html, body { margin: 0; }

/* Neutralise tout padding top hérité */
body.has-fixed-navbar { padding-top: 0 !important; }

/* WP admin bar offset */
:root { --nova-fixed-top: 0px; }
body.admin-bar { --nova-fixed-top: 32px; }
@media (max-width: 782px){
  body.admin-bar { --nova-fixed-top: 46px; }
}

/* Container global */
.nova-navbar{
  z-index: 100; /* sous la barre admin, au-dessus du contenu */
  font-family: var(--nova-menu-font-family);
}

/* Topbar (défile normalement) */
.nova-topbar{
  font-family: var(--nova-menu-font-family);
}

/* Barre principale - état normal */
.nova-menu{
  background: #fff;
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1029;
  font-family: var(--nova-menu-font-family);
}

/* Barre principale - état fixé */
.nova-menu.is-fixed{
  position: fixed;
  top: var(--nova-fixed-top);
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(255,255,255,.9);
  border-bottom-color: rgba(0,0,0,.06);
  backdrop-filter: saturate(160%) blur(6px);
  -webkit-backdrop-filter: saturate(160%) blur(6px);
}

/* Transitions confort */
.nova-menu .navbar-brand,
.nova-menu .nav-link{
  transition: padding .2s ease, margin .2s ease, color .2s ease, opacity .2s ease, background .2s ease;
}
.nova-menu.is-fixed .navbar-brand{ padding-top: .25rem; padding-bottom: .25rem; }
.nova-menu.is-fixed .nav-link{ padding-top: .4rem; padding-bottom: .4rem; }

/* Badge panier */
.nova-menu .navbar-actions .cart-count{
  margin-left: .5rem;
  vertical-align: middle;
}

/* Spacer manipulé via JS pour éviter le "jump" */
.nova-menu-spacer{ height: 0; }

/* ==========================================================================
   HEADER – Hauteurs
   ========================================================================== */
.nova-menu {
  min-height: 75px;
  display: flex;
  align-items: center;
}

.nova-menu .row {
  min-height: 90px;
  align-items: center;
}

.nova-menu .navbar-brand img {
  max-height: 60px;
  height: auto;
}

/* Mobile : compacter un peu pour maximiser l'espace utile */
@media (max-width: 991.98px){
  .nova-menu { min-height: 64px; }
  .nova-menu .row { min-height: 72px; }
}

/* ==========================================================================
   TYPOGRAPHIE
   ========================================================================== */
.nova-navbar,
.nova-topbar,
.nova-menu,
.nova-menu * {
  font-family: var(--nova-menu-font-family);
  font-weight: 400;
  color: #222;
  letter-spacing: 0.2px;
  line-height: 1.6;
}

.nova-menu .navbar-nav .nav-link {
  font-weight: 500;
  color: #111;
  font-size: var(--nova-menu-font-size);
  text-transform: none;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nova-menu .navbar-nav .nav-link:hover,
.nova-menu .navbar-nav .nav-link:focus {
  color: #000;
}

/* Icônes à droite — tailles pilotées par variables */
.nova-menu .bi-search { font-size: var(--nova-icon-size-search); line-height: 1; }
.nova-menu .bi-person { font-size: var(--nova-icon-size-user);   line-height: 1; }
.nova-menu .bi-bag    { font-size: var(--nova-icon-size-cart);   line-height: 1; }

/* Topbar */
.nova-topbar { font-weight: 400; font-size: 13px; color: #555; }
.nova-topbar a { color: #555; text-decoration: none; }
.nova-topbar a:hover { color: #000; }

/* ==========================================================================
   PATCH RESPONSIVE SPÉCIFIQUE 600px
   - À ≤600px, on force le menu fixé à être collé au pixel 0
   - Utile pour les vues type 600px comme dans ta capture
   ========================================================================== */
@media (max-width: 600px){
  /* Ignore tout offset éventuel et colle le menu au bord haut */
  :root, body, body.admin-bar { --nova-fixed-top: 0px !important; }
  .nova-menu.is-fixed { top: 0 !important; }
  /* SUPPRIMÉ : La topbar reste visible sur mobile */
  /* .nova-topbar { display: none !important; } */
}

/* Optionnel : si vous voulez que le menu soit TOUJOURS au pixel 0 sur mobile,
   même visuellement par-dessus la topbar, rien à faire. Le menu (z-index:1029)
   recouvre la topbar quand il est fixé (top:0). */