/* Reset some basic elements */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Make sure the navbar stretches across the full width */
.navbar {
  background-color: #fff;
  display: flex; /* Ajoutez ceci pour utiliser flexbox */
  justify-content: center; /* Centrer le contenu de la barre de navigation */
  width: 100%;
}

/* Adjust the padding and size of the logo */
.navbar-brand {
  margin-right: 1rem;
}

.navbar-brand img {
  height: auto;
  max-height: 60px; /* Smaller logo size */
}

/* Style des liens de navigation */
.nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s, border-radius 0.3s; /* Ajout de la transition pour le rayon de bordure */
  border-radius: 0; /* Départ sans bordure arrondie */
}

/* Style au survol */
.nav-link:hover {
  background-color: #ffcccc; /* Rouge très clair pour la couleur de fond au survol */
  text-decoration: none; /* Supprime le soulignement au survol */
  border-radius: 10px; /* Rayon de bordure arrondi au survol */
}

/* Navbar Toggler */
.navbar-toggler {
  padding: 0.25rem 0.75rem; /* Adjust padding to increase hit area */
  margin-left: 1rem; /* Add margin to the left of the toggler */
}

/* Center the navbar contents */
@media (min-width: 992px) {
  .navbar {
    display: flex;
    justify-content: center; /* Center the entire navbar content */
    padding: 0.5rem 1rem; /* Uniform navbar padding */
  }

  .navbar-collapse {
    flex-grow: 0; /* Prevent the navbar-collapse from expanding more than the content */
  }
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  background-color: #fff;
}

.dropdown-item {
  padding: 0.5rem 1rem; /* Padding for dropdown items */
}

/* Adjustments for smaller screens */
@media (max-width: 991px) {
  .navbar-brand img {
    max-height: 60px; /* Even smaller logo on mobile */
  }

  /* Ensure navbar-toggler is visible */
  .navbar-toggler {
    display: inline-block;
  }

  /* Full-width navbar-collapse */
  .navbar-collapse {
    width: 100%;
  }

  /* Stack the navbar items vertically in the collapsed menu */
  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 0.5rem; /* Reduced padding for smaller screens */
  }
}

@media (max-width: 768px) {
  .navbar.fixed-top {
    position: relative;
  }
}

/* Nouvelle règle pour les écrans de moins de 400px */
@media (max-width: 399px) {
  .navbar-brand img {
    max-height: 40px; /* Réduire encore plus la taille du logo */
  }

  .navbar-toggler {
    padding: 0.25rem 0.5rem; /* Réduire le padding du bouton */
    margin-left: 0.5rem; /* Réduire la marge à gauche */
  }

  .navbar-brand {
    padding: 0.25rem 0; /* Réduire le padding du logo */
  }
}




/* NAV INFO */

.fixed-top-container {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

.top-info-bar {
  background-color: #EA4335;
  color: #ffffff;
  padding: 0.1rem 0;
  width: 100%;
}





/* cart preview */
.cart-preview {
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    z-index: 2000;
    max-height: 70vh;
    overflow-y: auto;
}

.cart-icon-container {
  display: flex;
  align-items: center;
}

.navbar-toggler {
  order: 1;
}


/* Style pour les images dans le cart preview */
#cart-preview .cart-preview-image {
    max-width: 50px;
    height: auto;
}

#cart-preview .cart-preview-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

/* Style pour le nom du produit dans le cart preview */
#cart-preview .cart-preview-name {
    font-weight: bold;
    font-size: 0.7em;
    margin: 0;
}

#cart-preview .cart-preview-quantity-price {
    display: flex;
    align-items: center;
}

#cart-preview .cart-preview-quantity {
    padding: 5px;
    margin: 0 5px;
    border: 1px solid #ccc;
    font-size: 0.9em;
    -moz-appearance: textfield;
    text-align: center;
    width: 35px;
}

/* Style pour le prix du produit dans le cart preview */
#cart-preview .cart-preview-price {
    font-size: 0.7em;
    color: #555;
}

#cart-preview .cart-preview-empty {
    text-align: center;
    padding: 20px;
    font-style: italic;
}

#cart-preview .quantity-minus,
#cart-preview .quantity-plus {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    padding: 0 5px;
}

#cart-preview .quantity-minus {
    color: blue;
}
#cart-preview .quantity-plus {
    color: blue;
}

#cart-preview .remove-item {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: red;
    margin-left: 10px;
}

#cart-preview .cart-preview-quantity::-webkit-outer-spin-button,
#cart-preview .cart-preview-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#cart-preview .cart-preview-quantity:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}