/* Jocker Cuir — the ONE navigation drawer, opened from the global header's
   burger button at every viewport width (it used to be desktop-only, with
   #mobilePanel handling phone widths — see header-nav-drawer.js's own
   comment; that split is gone). Loaded once, unconditionally, from the
   shared layout (resources/views/monsite/layouts/app.blade.php), same
   pattern as header-b2b-menu.css. Relies on the design tokens (--ink,
   --paper, --cream, --sand, --white, --line, --serif, --sans) already
   declared in :root by whichever page-specific stylesheet is also loaded.
   Black / white / beige only — no green, no heavy shadows. Mobile-first,
   single-column, text-only navigation — no category imagery (that lives
   only in the desktop mega-menu, untouched by this component). */

/* The burger trigger (#menuOpen) now lives inside a new .header-nav-group
   wrapper alongside .desktop-nav, at the far left of the header, instead
   of being a direct .header-main sibling — that would have added a 4th
   child to .header-main's 3-column grid (nav / logo / actions) and pushed
   .header-actions onto a wrapped row. It deliberately does NOT live
   *inside* .desktop-nav itself: that element is display:none below
   ~1100px (see the base stylesheet), which would have hidden the burger
   on mobile along with the nav links it's meant to replace there. */
.header-nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Every page's own stylesheet hides .menu-toggle by default and only shows
   it below ~1100px (it predates the desktop drawer — the burger used to be
   mobile-only). The drawer now needs it visible at every width; higher
   selector specificity wins over the base ".menu-toggle{display:none}"
   regardless of stylesheet load order, so no forced high-priority
   declaration is needed and none of the ~20 per-page stylesheets need
   touching. */
.header .menu-toggle {
  display: grid;
}

.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(27, 27, 24, .4);
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
}
.nav-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 91;
  width: min(88vw, 420px);
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: .4s cubic-bezier(.22, .61, .36, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-drawer.is-open { transform: none; }

@media (min-width: 640px) {
  .nav-drawer { width: min(60vw, 440px); }
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

/* Single scrollable column — no image grid, no second column. The drawer
   itself already scrolls (.nav-drawer{overflow-y:auto}); this stays a
   plain block so the brand/contact section at the bottom is reached by
   the same one scrollbar, never a nested scroll area of its own. */
.nav-drawer__body {
  flex: 1;
  padding: 8px clamp(20px, 4vw, 32px) 28px;
}

.nav-drawer__links {
  display: flex;
  flex-direction: column;
}

.nav-drawer__link {
  display: block;
  padding: 15px 4px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease;
}
.nav-drawer__link:hover,
.nav-drawer__link:focus-visible { background: var(--cream); }
.nav-drawer__link[aria-current="page"] { color: var(--olive-dark); }

/* Category/B2B accordion — native <details>/<summary>, no JS needed for
   expand/collapse: keyboard support (Enter/Space toggles a focused
   summary) and screen-reader semantics come for free. */
.nav-drawer__group { border-bottom: 1px solid var(--line); }

.nav-drawer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 4px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s ease;
}
.nav-drawer__summary::-webkit-details-marker { display: none; }
.nav-drawer__summary:hover,
.nav-drawer__summary:focus-visible { background: var(--cream); }

.nav-drawer__chevron {
  flex-shrink: 0;
  font-size: .8rem;
  color: #6f6a62;
  transition: transform .25s ease;
}
.nav-drawer__group[open] > .nav-drawer__summary .nav-drawer__chevron { transform: rotate(180deg); }

.nav-drawer__children {
  display: flex;
  flex-direction: column;
  padding: 2px 0 12px;
  /* Clips content during the JS height reveal/collapse (header-nav-drawer
     .js) — without this the flat item list would briefly show through
     above/below its own animated box. */
  overflow: hidden;
}

.nav-drawer__child {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px 10px 20px;
  font-family: var(--sans);
  font-size: .88rem;
  color: #4a4a44;
  border-left: 1px solid var(--line);
  margin-left: 6px;
  transition: background-color .2s ease, color .2s ease;
}
.nav-drawer__child:hover,
.nav-drawer__child:focus-visible { background: var(--cream); color: var(--ink); }

/* A collection's sub-collections — same row look as .nav-drawer__child,
   indented one level under their collection and always shown with it.
   Part of the section's own column, so the drawer keeps its one scrollbar. */
.nav-drawer__subchildren {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
}

/* Bottom brand/contact block — visually secondary (smaller, muted), never
   a competing marketing block. Part of the same single scroll column as
   the links above it. */
.nav-drawer__brand {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.nav-drawer__brand-title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.nav-drawer__brand-text {
  font-size: .8rem;
  line-height: 1.5;
  color: #6f6a62;
  margin: 0 0 20px;
  max-width: 34ch;
}

.nav-drawer__contact-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #6f6a62;
  margin: 0 0 10px;
}

.nav-drawer__contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--ink);
  padding: 6px 0;
}
.nav-drawer__contact-row:hover { color: var(--olive-dark); }
.nav-drawer__contact-row i {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  color: #6f6a62;
}
