.navbar {
  width: 100%;
  position: relative;
  z-index: 200;
}

.nav-container {
  /* width: 100%; */
  margin: auto;
  padding: 0.8rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ========================================
   NAV LINKS (DESKTOP)
======================================== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links>li {
  display: flex;
  align-items: center;
}

/* Panel-only elements — hidden on desktop */
.nav-panel-head,
.nav-mobile-cta {
  display: none !important;
}

.nav-links>li.nav-panel-head,
.nav-links>li.nav-mobile-cta {
  display: none !important;
}

.nav-links a,
.dropdown-toggle {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: opacity 0.25s ease;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-links a:hover,
.dropdown-toggle:hover {
  opacity: 0.8;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--brand-red);
}

/* ========================================
   DROPDOWN (DESKTOP)
======================================== */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 500;
  font-size: 14px;
}

.dropdown-toggle .bi-chevron-down {
  font-size: 11px;
  color: currentColor;
  transition: transform 200ms ease;
}

.dropdown.active .dropdown-toggle .bi-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 190px;
  padding: 0.45rem 0.4rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  background: var(--bg-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  color: var(--text-dark) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 160ms ease;
  z-index: 50;
}

/* Bridge the 10px gap between toggle and menu */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.dropdown-menu a {
  padding: 0.45rem 0.6rem;
  font-size: 13px;
  border-radius: 8px;
  display: block;
  white-space: nowrap;
  text-align: center;
  color: var(--text-dark) !important;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.06);
}

@media (min-width: 1053px) {

  .dropdown:hover .dropdown-menu,
  .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

@media (min-width: 993px) {

  .dropdown:hover .dropdown-menu,
  .dropdown.active .dropdown-menu {
    display: flex;
  }

  /* Specific spacing for the button in the list to act as primary action */
  .nav-links .nav-btn {
    /* margin-top: 2rem; */
    display: flex;
    align-items: center;
  }
}

.nav-btn {
  list-style: none;
}

.nav-btn .merchant-btn {
  background: var(--brand-red) !important;
  color: var(--text-white) !important;
  border: none;
  padding: 10px 20px !important;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.25s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-btn .merchant-btn:hover {
  opacity: 0.9;
}

/* ========================================
   THEMES
======================================== */
.navbar.light-nav .nav-links a,
.navbar.light-nav .dropdown-toggle {
  color: white;
  font-weight: 500;
}

.navbar.light-nav .dropdown-toggle .bi-chevron-down {
  color: var(--text-white);
  font-weight: 600;
}

.navbar.dark-nav .nav-links a,
.navbar.dark-nav .dropdown-toggle {
  color: var(--text-dark);
}

.navbar.dark-nav .dropdown-toggle .bi-chevron-down {
  color: var(--text-dark);
}


/* ========================================
   HAMBURGER
======================================== */
.menu-toggle {
  width: 26px;
  height: 20px;
  position: relative;
  display: none;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  position: absolute;
  height: 2.5px;
  width: 100%;
  left: 0;
  transition: 0.28s ease;
  border-radius: 2px;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 9px;
}

.menu-toggle span:nth-child(3) {
  bottom: 0;
}

/* Animate to X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 8.5px;
}

/* Color inherits from nav theme */
.navbar.light-nav .menu-toggle span {
  background: var(--text-white);
}

.navbar.dark-nav .menu-toggle span {
  background: var(--text-dark);
}

/* ========================================
   BACKDROP OVERLAY  (hidden by default)
======================================== */
.nav-overlay {
  display: none;
}

/* ========================================
   MOBILE  ≤ 1052px
======================================== */
@media (max-width: 1200px) {

  body.menu-open {
    overflow: hidden;
  }

  .menu-toggle {
    display: block;
  }

  /* Hide desktop CTA */
  .nav-btn {
    display: none;
  }

  .logo img {
    height: 32px;
  }

  /* ---------- Overlay ---------- */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(11, 23, 61, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 195;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 260ms ease;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* ---------- Slide panel ---------- */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 86vw);
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 0 1.1rem 1.8rem;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    overflow-y: auto;
    box-shadow: -14px 0 40px rgba(0, 0, 0, 0.18);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  /* ---------- Panel header ---------- */
  .nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0.2rem 1rem;
    border-bottom: 1px solid rgba(11, 23, 61, 0.1);
    margin-bottom: 0.25rem;
    flex-shrink: 0;
  }

  .nav-panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0B173D;
    letter-spacing: 0.01em;
  }

  .nav-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(11, 23, 61, 0.07);
    border-radius: 8px;
    font-size: 1.05rem;
    color: #0B173D;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
  }

  .nav-close-btn:hover {
    background: rgba(11, 23, 61, 0.15);
  }

  /* ---------- Link rows ---------- */
  .nav-links>li {
    width: 100%;
    border-bottom: 1px solid rgba(11, 23, 61, 0.07);
  }

  .nav-links>li.nav-panel-head,
  .nav-links>li.nav-mobile-cta {
    border-bottom: none;
  }

  .nav-links a,
  .dropdown-toggle {
    color: #232323 !important;
    font-weight: 500;
  }

  .nav-links>li>a {
    display: block;
    padding: 0.85rem 0.3rem;
    font-size: 0.95rem !important;
    width: 100%;
    color: #232323 !important;
  }

  /* ---------- Dropdown accordion in panel ---------- */
  .dropdown {
    position: static;
  }

  .dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0.3rem;
    background: transparent;
    border: none;
    font-size: 0.95rem !important;
    font-weight: 500;
  }

  .dropdown-toggle .bi-chevron-down {
    font-size: 12px;
    color: #9747FF;
    transition: transform 220ms ease;
  }

  .dropdown-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    min-width: 0 !important;
    max-height: 0;
    padding: 0;
    margin: 0 0 0.35rem 0.9rem;
    border-left: 2px solid rgba(151, 71, 255, 0.3);
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: max-height 240ms ease;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-links .dropdown.active .dropdown-menu {
    max-height: 500px;
  }

  .dropdown-menu a {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    text-align: left;
    border-radius: 0;
    color: #4A4A4A !important;
    white-space: normal;
    display: block;
    width: 100%;
    opacity: 1;
    visibility: visible;
  }

  .dropdown-menu a:hover {
    background: rgba(151, 71, 255, 0.07);
    color: #9747FF !important;
  }

  /* ---------- Mobile CTA button ---------- */
  .nav-mobile-cta {
    display: block;
    padding-top: 1rem;
  }

  body.menu-open {
    overflow: hidden;
    padding-top: 1.2rem;
  }

  .nav-mobile-cta .merchant-btn {
    width: 100%;
    padding: 0.88rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
  }
}

//* =========================
   GOOGLE TRANSLATE FIX
========================= */

#google_translate_element {
  display: flex;
  align-items: center;
}

/* Hide Google text */
.goog-te-gadget {
  color: transparent !important;
  font-size: 0 !important;
}

/* Style dropdown */
.goog-te-combo {
  background-color: transparent !important;
  background: transparent !important;
  color: #fff !important;

  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 6px !important;

  padding: 8px 12px !important;
  font-size: 14px !important;

  outline: none !important;
  box-shadow: none !important;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Dropdown options */
.goog-te-combo option {
  color: #000 !important;
}

/* Remove Google branding */
.goog-logo-link {
  display: none !important;
}

.goog-te-gadget span {
  display: none !important;
}

/* Remove translate bar */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
}