/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  padding: 20px 40px;
  color: white;
  position: relative;
}

.nav-left {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  margin-left: 16vw; /* approx 1/5 from left */
  font-size: 1.5rem;
}

/* Nav-right links */
.nav-right a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: #111;
  padding: 20px;
  border-radius: 8px;
  position: fixed;
  left: 0;
  top: 60px;
  height: 100%;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform 0.3s ease;
}

.sidebar h3 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #d4b062;
  margin-bottom: 24px;
  text-align: right; /* aligns title to right */
}

.sidebar a {
  display: block;
  padding: 10px 0;
  color: #fff;
  text-decoration: none;
}

.sidebar a:hover {
  color: #ccc;
}

/* Sub Sidebar */
.sub-sidebar {
  position: fixed;
  left: 220px;
  top: 60px;
  width: 220px;
  height: 100%;
  background-color: #2a2a2a;
  padding: 1rem;
  display: none;
  z-index: 1000;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

.sub-sidebar ul {
  list-style: none;
  padding: 0;
}

.sub-sidebar ul li a {
  display: block;
  padding: 8px 0;
  color: #fff;
  text-decoration: none;
}

.sub-sidebar ul li a:hover {
  color: #ccc;
}

.close-sub {
  background-color: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  margin-bottom: 1rem;
  cursor: pointer;
}

/* Products page layout */
.products-page {
  display: flex;
  gap: 40px;
  padding: 40px;
}

.product-main {
  flex: 1;
}

/* Toggle Button */
.toggle-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 2rem;
  padding: 0;
  cursor: pointer;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1600;
}
/* ====== Mobile header tweaks ====== */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;      /* tighten up */
  }

  .nav-left {
    margin-left: 0;          /* drop the 16vw offset */
    flex: 1;                 /* push logo to take available space */
    text-align: center;      /* center your “G72 DENIM.” */
  }

  .nav-right {
    display: none;           /* hide the desktop links */
  }

  /* ensure your toggle (☰) lives in the top-left of the header */
  .toggle-btn {
    display: block;          /* in case you’d hidden it elsewhere */
    top: 12px;               /* nudge it down into the padding */
    left: 16px;              /* nudge it in from the edge */
  }
}

/* Mobile‑only menu button + dropdown */
.mobile-menu-btn,
.mobile-nav-dropdown {
  display: none;
}

/* Show desktop nav by default */
.nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* --- Responsive overrides --- */
@media (max-width: 768px) {
  /* hide desktop links */
  .nav-right {
    display: none;
  }

  /* show the ☰ button */
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #fff;
    margin-left: auto;
    cursor: pointer;
  }

  /* dropdown menu (initially hidden) */
  .mobile-nav-dropdown {
    display: none;
    flex-direction: column;
    background: #000;            /* or your nav bg */
    position: absolute;
    top: 100%;                    /* directly beneath header */
    left: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }
  .mobile-nav-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
  }
  .mobile-nav-dropdown a.contact-btn {
    margin: 0.5rem 0;
    /* style your contact button here if needed */
  }
}

.mobile-nav-dropdown {
  display: none;
  flex-direction: column;
  background: #000;
  position: absolute;
  top: 100%;         /* directly beneath the header */
  left: 0;
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 2000;     /* ensure it sits above everything else */
}


