.navbar-fit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #fff;
    color: #000;
    position: fixed; /* Fijar en la parte superior */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050; /* Asegurar que esté por encima de todo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Agregar sombra */
}
  .navbar-fit .logo img {
    width: 120px;
  }

/* Asegurar que el menú desplegable también quede por encima */
.main-menu .dropdown:hover .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff !important;
    border-radius: 8px;
    z-index: 1100;
}

/* Menú lateral móvil */
.mobile-menu {
    z-index: 1100; /* Asegura que esté encima de otros elementos */
}
  .main-menu {
    display: flex;
    gap: 30px;
  }
  
  .main-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
  }
  
  .nav-icons button {
    background: none;
    border: none;
    font-size: 18px;
    margin-left: 20px;
    cursor: pointer;
  }
  
  .menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
  }
  
  /* 🔥 Responsive */
  @media (max-width: 768px) {
    .main-menu {
      display: none;
    }
    .menu-toggle {
      display: block;
    }
  }
  

  .navbar-fit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #fff;
    color: #000;
    position: relative;
  }
  
  .navbar-fit .logo img {
    width: 120px;
  }
  
  /* Oculta menú principal en mobile */
  .main-menu {
    display: flex;
    gap: 30px;
  }
  
  .main-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
  }
  
  button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
  }
  
  /* 🔥 Mobile */
  @media (max-width: 768px) {
    .navbar-fit {
      justify-content: space-between;
    }
  
    .main-menu {
      display: none;
    }
  
    .navbar-fit .logo {
      order: 3;
      flex: 1;
      text-align: center;
    }
  
    .menu-btn {
      order: 1;
    }
  
    .search-btn {
      order: 2;
    }
  
    .cart-btn {
      order: 4;
    }
  
    .user-btn {
      order: 5;
    }
  }
  /* Mobile y Tablet */
@media (max-width: 768px) {
    .navbar-fit {
      justify-content: space-between;
    }
  
    .logo {
      order: 3;
      flex: 1;
      text-align: center;
    }
  
    .menu-btn { order: 1; }
    .search-btn { order: 2; }
    .cart-btn { order: 4; }
    .user-btn { order: 5; }
  
    .main-menu {
      display: none !important;
    }
  }
  
  /* Desktop */
  @media (min-width: 769px) {
    .menu-btn, .search-btn, .cart-btn, .user-btn {
      display: none !important;
    }
  }
  
  .main-menu .dropdown:hover .dropdown-menu {
    display: block;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff !important;

    border-radius: 8px;
    z-index: 1000;
  }
  .dropdown-menu {
    display: none;
  }
  .mobile-menu a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: 500;
  }
  .mobile-menu a:hover {
    color: #dc3545;
  }
  
  