header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  height: 80px;
  width: auto;
}

.tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(244, 122, 42); /* This changes the color to orange (#f59e0b) */
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.nav-link:hover::before {
  opacity: 1;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--white);
}

.nav-link.active::before {
  opacity: 1;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Prevent flash only on screens wider than 1024px */
@media (min-width: 1024px) {
  .mobile-menu-container,
  .mobile-menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: none;
  }

  body.js-ready .mobile-menu-container,
  body.js-ready .mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.3s ease;
  }
}

/* --- MOBILE MENU BUTTON --- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
  z-index: 1001;
}

/* Show the mobile menu button only on screens up to 767px */
@media (max-width: 767px) {
  .mobile-menu-btn {
    display: block;
  }
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Menu Container: Sliding Animation and Visibility --- */
.mobile-menu-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 350px;
  height: 100%;
  background-color: var(--white); /* White Background */
  z-index: 1000;
  padding: 2rem;
  overflow-y: auto;
  transition: transform 0.3s ease; /* Slide transition (kept for the main menu) */
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);

  transform: translateX(100%);
}

.mobile-menu-container.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  color: var(--dark-color);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
}

.mobile-nav-menu {
  list-style: none;
  text-align: left;
  padding-left: 0;
  margin-left: 0;
  min-height: 1px;
  display: block;
}

.mobile-nav-menu li {
  padding: 0;
  margin: 0;
  overflow: visible;
  position: relative;
  /* Apply the default border here */
  border-bottom: 1px solid #f0f0f0;
}

/* Remove border from the last item */
.mobile-nav-menu li:last-child {
  border-bottom: none;
}

/* --- Main Navigation Links: Text Color Blue on White Background --- */
.mobile-nav-menu .mobile-nav-link {
  display: block;
  padding: 1rem 0.5rem;
  font-weight: 500;
  /* Remove border-bottom from the link */
  border-bottom: none;
  transition: var(--transition);
  color: var(--primary-color);
}

.mobile-nav-link:hover {
  color: var(--primary-dark);
}

.mobile-nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* ------------------------------------------------------------------- */
/* --- Dropdown Menu Styles (INSTANT HIDE/SHOW & NO ARROWS) --- */
/* ------------------------------------------------------------------- */

/* The dropdown item (LI) should not have a bottom border by default */
.mobile-nav-menu li.dropdown-menu-item {
  border-bottom: none;
}

/* Style for the link that toggles the dropdown */
.dropdown-toggle {
  position: relative;
  /* Remove extra padding for the arrow */
  padding-right: 0.5rem !important;
  cursor: pointer;
}

/* REMOVE ARROW ICON */
.dropdown-toggle::after {
  content: none; /* Remove the arrow content */
}

/* Initially hide the submenu (INSTANT HIDE) */
.dropdown-menu {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  display: none;

  overflow: visible;

  background-color: #f8f8f8;
  margin-top: 0;
  border-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* When the dropdown is active (INSTANT SHOW) */
.dropdown-menu-item.active .dropdown-menu {
  display: block;
  /* REMOVED: max-height: 500px; */
  /* REMOVED: transition: max-height 0.5s ease-in; */
}


.mobile-nav-menu li.dropdown-menu-item:not(.active) {
  border-bottom: 1px solid #f0f0f0;
}


.mobile-nav-menu li.dropdown-menu-item.active {
  border-bottom: none;
}


.dropdown-menu .mobile-nav-link {
  padding: 0.75rem 1.5rem;
  
  border-bottom: 1px solid #eee;
  font-weight: 400;
  color: var(--dark-color);
}


.dropdown-menu li:last-child .mobile-nav-link {
  border-bottom: none;
}

.dropdown-menu .mobile-nav-link:hover {
  color: var(--primary-color);
  background-color: #f0f0f0;
}

 
@media (min-width: 768px) {
 
  .dropdown-menu-item {
    position: relative;
  }

  /* 2. Dropdown menu container styling and initial state (hidden) */
  .dropdown-menu {
    /* OVERRIDES the mobile 'display: none' */
    display: block;

    position: absolute;
    top: 100%;
    left: 50%;

    /* Center and initially offset */
    transform: translateX(-50%) translateY(10px);

    list-style: none;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);

    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1100;

    /* Hiding with opacity/visibility for transition */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  /* 3. Show main dropdown on hover */
 /* Show main dropdown on hover */
.dropdown-menu-item:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  /* Ensure no mobile padding is inherited on desktop links */
  .dropdown-menu .mobile-nav-link {
    padding: 0.75rem 1.5rem;
  }

  /* Desktop dropdown links */
  .dropdown-menu li .nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    color: var(--dark-color);
    font-weight: 400;
    transform: none;

    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .dropdown-menu li .nav-link::before,
  .dropdown-menu li .nav-link::after {
    content: none !important;
  }

  .dropdown-menu li .nav-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    transform: none;
  }

  .dropdown-menu-item .dropdown-toggle:hover {
    transform: none;
  }

/* ================================= */
/* Nested Submenu (POS Software) */
/* ================================= */

.dropdown-submenu {
  position: relative;
}

/* Hidden by default */
.sub-dropdown {
  position: absolute;

  top: -8px;
  left: calc(100% - 5px);

  min-width: 220px;

  margin: 0;
  padding: 0.5rem 0;

  list-style: none;

  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);

  z-index: 1200;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

/* Show submenu */
.dropdown-submenu:hover > .sub-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Submenu links */
.sub-dropdown li .nav-link {
  display: block;

  padding: 0.75rem 1.5rem;

  white-space: nowrap;

  color: var(--dark-color);
  font-weight: 400;

  transform: none !important;
}

/* Remove default effects */
.sub-dropdown li .nav-link::before,
.sub-dropdown li .nav-link::after {
  content: none !important;
}

/* Hover */
.sub-dropdown li .nav-link:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}}