.custom-navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #5a0336 !important;
  border-bottom: 1px solid rgba(242, 201, 76, 0.28);
  box-shadow: 0 8px 24px rgba(122, 6, 73, 0.18);
}

.navbar-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  padding: 4px 0;
  border-radius: 24px;
  overflow: hidden;
  clip-path: inset(0 round 24px);
}

.logo-img {
  width: min(148px, 22vw);
  height: 58px;
  object-fit: contain;
  border-radius: 24px;
  clip-path: inset(0 round 24px);
  display: block;
  background: #5a0336;
  overflow: hidden;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(242, 201, 76, 0.45);
  border-radius: 10px;
  background: rgba(212, 203, 196, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #D4CBC4;
  border-radius: 999px;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.nav-item {
  position: relative;
  flex: 0 0 auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  transform-style: preserve-3d;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #fff !important;
  background: linear-gradient(145deg, rgba(212, 203, 196, 0.18), rgba(122, 6, 73, 0.94));
  border-color: rgba(242, 201, 76, 0.62);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    4px 5px 0 rgba(42, 0, 25, 0.34),
    0 10px 18px rgba(0, 0, 0, 0.18),
    inset 1px 1px 0 rgba(255, 255, 255, 0.14);
}

.custom-navbar .navbar-nav .nav-link,
.custom-navbar .navbar-nav .nav-link:hover,
.custom-navbar .navbar-nav .nav-link:focus,
.custom-navbar .navbar-nav .nav-link.active {
  color: #fff !important;
}

.custom-navbar .navbar-nav .nav-link:hover *,
.custom-navbar .navbar-nav .nav-link:focus *,
.custom-navbar .navbar-nav .nav-link.active * {
  color: #fff !important;
}

.dropdown-toggle::after {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 8px;
}

.custom-navbar .navbar-nav .dropdown-menu {
  list-style: none;
  display: block;
  margin: 8px 0 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #5a0336;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 2000;
}

.custom-navbar .navbar-nav > .nav-item.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-navbar .navbar-nav > .nav-item.dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  transform-style: preserve-3d;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  color: #fff !important;
  background: #5a0336;
}

.custom-navbar .navbar-nav .dropdown-item:hover,
.custom-navbar .navbar-nav .dropdown-item:focus,
.custom-navbar .navbar-nav .dropdown-item.active {
  color: #fff !important;
  background: linear-gradient(145deg, rgba(212, 203, 196, 0.18), rgba(122, 6, 73, 0.94)) !important;
  border-color: rgba(242, 201, 76, 0.62) !important;
  transform: translateY(-2px);
  box-shadow:
    3px 4px 0 rgba(42, 0, 25, 0.3),
    0 8px 14px rgba(0, 0, 0, 0.16),
    inset 1px 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-right {
  flex: 0 0 auto;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.nav-right .nav-search-trigger {
  display: none;
}

.mobile-nav-backdrop {
  display: none;
}

.location-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 201, 76, 0.5);
  background: rgba(212, 203, 196, 0.12);
}

.location-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.location-text {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.flag-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .navbar-wrapper {
    gap: 10px;
  }

  .logo-img {
    width: min(132px, 18vw);
    height: 52px;
  }

  .navbar-nav {
    gap: 2px;
    justify-content: flex-end;
  }

  .nav-link {
    padding: 7px 8px;
    font-size: 13px;
  }

  .location-box {
    padding: 7px 10px;
  }
}

@media (min-width: 992px) and (max-width: 1120px) {
  .location-box {
    display: none;
  }

  .nav-search-trigger {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 991px) {
  .navbar-brand {
    padding: 2px 0;
  }

  .logo-img {
    width: min(112px, 40vw);
    height: 46px;
    border-radius: 16px;
  }

  .navbar-wrapper {
    min-height: 66px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-right {
    display: none;
  }

  .navbar-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 340px);
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 10002;
    background: #5a0336;
    box-shadow: -14px 0 34px rgba(0, 0, 0, 0.28);
    border-left: 1px solid rgba(242, 201, 76, 0.28);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 16px 12px 16px;
    transform: translateX(110%);
    transition: transform 0.28s ease;
  }

  .custom-navbar.is-menu-open .navbar-nav {
    transform: translateX(0);
  }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .custom-navbar.is-menu-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 11px 12px;
    border: 1px solid rgba(242, 201, 76, 0.35);
    background: linear-gradient(145deg, rgba(212, 203, 196, 0.14), rgba(90, 3, 54, 0.86));
    box-shadow:
      3px 4px 0 rgba(42, 0, 25, 0.28),
      0 8px 14px rgba(0, 0, 0, 0.14),
      inset 1px 1px 0 rgba(255, 255, 255, 0.1);
  }

  .nav-link:hover,
  .nav-link:focus,
  .nav-link.active {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
      4px 5px 0 rgba(42, 0, 25, 0.34),
      0 12px 18px rgba(0, 0, 0, 0.18),
      inset 1px 1px 0 rgba(255, 255, 255, 0.12);
  }

  .custom-navbar .navbar-nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin: 0;
    padding: 4px 0 6px 12px;
    border: 0;
    box-shadow: none;
    background: transparent;
    min-width: 0;
  }

  .custom-navbar .navbar-nav > .nav-item.dropdown.open > .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    padding: 9px 10px;
    background: rgba(212, 203, 196, 0.1);
    color: #fff;
    margin-bottom: 6px;
    border: 1px solid rgba(242, 201, 76, 0.25);
    box-shadow:
      2px 3px 0 rgba(42, 0, 25, 0.25),
      0 7px 12px rgba(0, 0, 0, 0.12),
      inset 1px 1px 0 rgba(255, 255, 255, 0.08);
  }

  .custom-navbar.is-menu-open .navbar-nav .nav-item {
    animation: navMobile3dIn 0.34s ease both;
  }

  .custom-navbar.is-menu-open .navbar-nav .nav-item:nth-child(2) { animation-delay: 0.03s; }
  .custom-navbar.is-menu-open .navbar-nav .nav-item:nth-child(3) { animation-delay: 0.06s; }
  .custom-navbar.is-menu-open .navbar-nav .nav-item:nth-child(4) { animation-delay: 0.09s; }
  .custom-navbar.is-menu-open .navbar-nav .nav-item:nth-child(5) { animation-delay: 0.12s; }
  .custom-navbar.is-menu-open .navbar-nav .nav-item:nth-child(6) { animation-delay: 0.15s; }
  .custom-navbar.is-menu-open .navbar-nav .nav-item:nth-child(7) { animation-delay: 0.18s; }
  .custom-navbar.is-menu-open .navbar-nav .nav-item:nth-child(8) { animation-delay: 0.21s; }
  .custom-navbar.is-menu-open .navbar-nav .nav-item:nth-child(9) { animation-delay: 0.24s; }
  .custom-navbar.is-menu-open .navbar-nav .nav-item:nth-child(10) { animation-delay: 0.27s; }
  .custom-navbar.is-menu-open .navbar-nav .nav-item:nth-child(11) { animation-delay: 0.3s; }
  .custom-navbar.is-menu-open .navbar-nav .nav-item:nth-child(12) { animation-delay: 0.33s; }

  @keyframes navMobile3dIn {
    from {
      opacity: 0;
      transform: translateX(18px) rotateY(-12deg);
    }
    to {
      opacity: 1;
      transform: translateX(0) rotateY(0);
    }
  }

  .custom-navbar.is-menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .custom-navbar.is-menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .custom-navbar.is-menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
