/* =========================================================
   HEADER NAV – CLEAN / GRID / ELEMENTOR SAFE
========================================================= */

/* ===== BASE ===== */
#navbar-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 9999;
  background: rgba(8,40,50,.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease;
}

/* Admin bar offset */
body.admin-bar #navbar-main {
  top: 32px;
}

/* Scrolled state */
#navbar-main.scrolled {
  background: rgba(8,40,50,.95);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

/* ===== CONTAINER ===== */
#navbar-main .container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== GRID ===== */
.navbar-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 90px;
  gap: 15px;
}

/* ===== LOGO ===== */

.navbar-brand img {
  max-height: 70px;
  display: block;
}

/* ===== DESKTOP MENU ===== */
.navbar-grid-menu {
  display: flex;
  justify-content: center;
}

.navbar-nav {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
  padding: 1rem 1.25rem;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

/* Hover underline */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: #00ffcc;
  transition: width .3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* ===== ACTIONS ===== */
.navbar-grid-actions {
  display: flex;
  /*align-items: center;*/
  gap: 20px;
  padding-left: 200px;
  justify-self: end;
  margin-right: -10px;  /* ⬅️ finom pixel shift */
}

/* ===== CART ===== */
.shopping-cart {
  position: relative;
}

.shopping-cart-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 260px;
  padding: 1rem;
  background: #111;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
}

.shopping-cart:hover .shopping-cart-dropdown {
  opacity: 1;
  visibility: visible;
}

/* ===== HAMBURGER ===== */
.navbar-menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
}

.navbar-menu-toggle span,
.navbar-menu-toggle span::before,
.navbar-menu-toggle span::after {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #fff;
  content: "";
  transition: .3s ease;
}

.navbar-menu-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.navbar-menu-toggle span::before { top: -8px; }
.navbar-menu-toggle span::after  { top:  8px; }

/* Hamburger → X */
.navbar-menu-toggle.active span {
  background: transparent;
}

.navbar-menu-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar-menu-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
}


/* ===== MOBILE MENU ===== */
@media (max-width: 1024px) {
	
  .navbar-grid-menu,
  .navbar-grid-menu .navbar-collapse,
  .navbar-grid-menu .navbar-nav {
    width: 100%;
  }

  /* Slide-in panel */
  .navbar-grid-menu {
    position: fixed;
    top: 95%;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(8,40,50,.97);
    backdrop-filter: blur(10px);
    padding: 16px 0 24px;
    transition: left .35s ease;
    z-index: 10001 !important;
    justify-content: flex-start;
  }
	
  .navbar-grid-menu.active {
    left: 0;
  }

  /* Menü lista */
  .navbar-nav {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  /* ⬇️ TELJES SOR KATTINTHATÓ */
  .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,.15);
    transition: background .25s ease, padding-left .25s ease;
  }



  /* Hover / Tap kiemelés */
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background: rgba(255,255,255,.06);
    padding-left: 32px; /* finom slide érzet */
  }

  /* Aktív (aktuális szekció) */
  .navbar-nav .nav-link.active {
    background: rgba(0,255,204,.12);
    color: #00ffcc;
  }

  /* Hover underline kikapcsolása mobilon */
  .navbar-nav .nav-link::after {
    display: none;
  }

  /* Toggle visible */
  .navbar-menu-toggle {
    display: block;
  }
}