/* General reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

nav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 1000;
}

.logo img {
  height: 60px;
}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Nav links (Desktop) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
}

.nav-links a:hover {
  color: #c49b66;
}

/* Submenu (Desktop) */
.submenu {
  display: none;
  position: absolute; /* Desktop behavior: float over content */
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.5rem 0;
  padding-left: 0.5rem;
  padding-bottom: 0.8rem;
  top: 100%;
  left: 0; /* Ensures it aligns with parent link */
  min-width: 150px; /* Optional: give it a minimum width */
}


.submenu li {
    margin-bottom: 0.5rem;
}


.category {
  position: relative; /* Essential for absolute submenu positioning */
}

.category:hover .submenu {
  display: block;
}

/* ================================================================= */
/* Mobile CSS - @media (max-width: 768px) */
/* ================================================================= */
@media (max-width: 768px) {

  .hamburger {
    display: block; /* Show hamburger on mobile */
    font-size: 1.5rem;
    background: none;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 1001; /* Ensure hamburger is above nav-links if needed */
  }

  .nav-links {
    /* Existing */
    display: none; /* Hidden by default */
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    padding: 1rem;

    /* Important for mobile layout */
    position: absolute; /* Position relative to .navbar or body */
    top: 100%; /* Position below the navbar */
    left: 0;
    right: 0; /* Occupy full width */
    height: calc(100vh - 60px); /* Fill remaining viewport height, assuming 60px for navbar height */
    overflow-y: auto; /* Allow scrolling if menu is too long */
    z-index: 999; /* Below the navbar itself (1000) but above other content */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* Add shadow for depth */
    transition: transform 0.3s ease-out; /* Optional: for sliding effect */
    transform: translateY(-100%); /* Start off-screen above */
  }

  .nav-links.show {
    display: flex; /* Show when hamburger is clicked */
    transform: translateY(0); /* Slide into view */
  }

  .nav-links li {
    list-style: none;
    margin-bottom: 0.2rem; /* As discussed, for space between categories */
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
  }

  .nav-links a {
    text-decoration: none;
    color: #000;
    font-size: 1.1rem; /* Slightly larger for touch */
    display: block; /* Make the whole link clickable */
  }

  /*
  Reset .category for mobile so it doesn't interfere with flex on .nav-links
  and so the submenu can flow below it.
  */
  .category {
    position: relative; /* Keep this for ::after positioning */
    /* Remove display: flex, justify-content, align-items from here */
    /* These were causing the submenu to go 'next to' instead of 'below' */
  }

  .category > a {
    text-decoration: none;
    color: #000;
    font-size: 1.1rem;
    display: flex; /* Make the link itself a flex container */
    justify-content: space-between; /* Push arrow to the right */
    align-items: center; /* Vertically center text and arrow */
    padding-right: 25px; /* Make space for the arrow */
    width: 100%; /* Ensure it takes full width for flexbox to work */
  }

  .category > a::after {
    content: '\25BC'; /* Downward-pointing triangle */
    font-size: 0.7em;
    color: #666;
    transition: transform 0.3s ease;
    /* No need for position: absolute or top/transform here if parent is flex */
  }

  /* Rotate the arrow when the submenu is open */
  .category.open > a::after {
    transform: rotate(180deg); /* Rotate to point up */
  }

  .submenu {
    position: static; /* Remains static for normal flow */
    display: none;
    flex-direction: column;
    width: 100%;
    padding-left: 2rem; /* Indent the submenu */
    background-color: #f8f8f8;
    box-shadow: none;
    margin-top: 0.5rem; /* Space between category link and submenu */
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }

  .category.open .submenu {
    display: flex;
  }

  .submenu li {
    margin-bottom: 0.8rem;
  }

  .submenu li:last-child {
    margin-bottom: 0;
  }





}