:root { --nav-h: 64px; }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;         /* centra verticalmente */
  padding: 0px;
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
}

/* LISTE */
.navbar ul {
  display: flex;
  align-items: center;         /* <li> centrati verticalmente */
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto; 
}


/* LINK */
.navbar a {
  color: #fff;
  display: flex;               /* testo/icone centrati verticalmente */
  align-items: center;
  height: var(--nav-h);        /* stessa altezza della barra */
  padding: 0 10px;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1.7px;   /* usa lunghezza, non % */
  text-underline-offset: 3px;         /* usa lunghezza, non % */
  text-decoration-skip-ink: auto;
}

/* HOVER logo (compatibile) */
.logo_navbar:hover{
  transform: scale(1.1);
  transition: transform 200ms ease-in-out;
}


.cart_ico_div {
    width: 32px;
  height: 32px;
  background-image: url("../assets/images/cart_ico.svg");
  background-size: cover; /* o cover */
  background-repeat: no-repeat;
}

.cart-link {
  position: relative;
  display: inline-block;
  width: 40px;              /* dimensioni del box icona */
  height: 40px;
  
  /* icona del carrello come sfondo */
  background: url("../assets/images/cart.svg") no-repeat center;
  background-size: contain;
  
  text-decoration: none;    /* niente sottolineatura */
}

/* badge numerico */
.cart-link {
  background-image: url("../images/cart_ico.png");
  width: 8px;
  text-decoration: none; 
  
}

.badge { 
  margin-top: 4px;
  text-decoration: none;
}

.cart_link_nav {
  text-decoration: none;
   text-decoration-thickness: 0px;
}

.logo_navbar {
  margin-left: 20px;
}