/*--------------------------------------------------------------
Main Menu Styles
This file is loaded AFTER style.css
--------------------------------------------------------------*/

    /* ════════════════════════════════
       SHARED
    ════════════════════════════════ */
    .nav-wrap { position: relative; z-index: 200; }

    /* .site-header {
      position: sticky;
      top: 0;
      z-index: 200;
      background-color: white;
    } */

    /* Promo strip */
    .nav-context {
      background: #111111;
      height: 40px;
      display: flex;
      align-items: center;
      padding: 0 2.5rem;
      overflow: hidden;
    }

    .nav-context-item {
      height: 40px;
      display: flex;
      align-items: center;
      padding: 0 1.5rem;
      font-size: 10px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(248,247,244,0.45);
      border-right: 1px solid rgba(248,247,244,0.08);
      white-space: nowrap;
      text-decoration: none;
      transition: color 0.15s;
    }

    .nav-context-item:first-child { padding-left: 0; }
    .nav-context-item:hover { color: rgba(248,247,244,0.78); }

    .nav-context-dot {
      width: 5px; height: 5px;
      border-radius: 50%;
      margin-right: 9px;
      flex-shrink: 0;
    }

    /* Utility buttons (shared) */
    .nav-util-btn {
      display: flex;
      align-items: center;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      color: #666666;
      transition: color 0.18s;
    }

    .nav-util-btn:hover { color: #111111; }
    .nav-util-btn svg   { width: 30px; height: 30px; display: block; }

    /* ════════════════════════════════
       DESKTOP NAV  (≥ 860px)
    ════════════════════════════════ */
    .nav-row1 {
      display: flex;
      align-items: center;
      gap: 2rem;
      padding: 0 2.5rem 0 0;
      min-height: 68px;
      border-bottom: 1px solid #e8e6e1;
    }

    .nav-logo {
      flex-shrink: 0;
      margin-right: 1rem;
      height: 100px;
    }

   .nav-logo img {
      height: 100%;
      width: auto;
   }

    .nav-search-form {
      flex: 1;
      display: flex;
      align-items: center;
      border: 1px solid #e8e6e1;
      height: 48px;
      max-width: 700px;
      transition: border-color 0.18s;
    }

    .nav-search-form input {
      border: none;
    }

    .nav-search-form:focus-within { border-color: #bbb; }

    .nav-search-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 12px;
      color: #aaaaaa;
      flex-shrink: 0;
    }

    .nav-search-icon svg { width: 15px; height: 15px; display: block; }

    .nav-search-input {
      flex: 1;
      background: none;
      border: none;
      outline: none;
      font-family: var(--font-body);
      font-size: 15px;
      font-weight: 300;
      color: #111111;
      padding: 0;
      min-width: 0;
    }

    .nav-search-input::placeholder { color: #aaaaaa; }

    .nav-search-btn {
      background: rgb(25, 25, 25);
      border: none;
      border-left: 1px solid #e8e6e1;
      padding: 0 14px;
      height: 100%;
      cursor: pointer;
      font-family: var(--font-body);
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgb(250, 250, 250);
      white-space: nowrap;
      flex-shrink: 0;
      transition: color 0.15s, background 0.15s;
    }

    .nav-search-btn:hover { color: #111111; background: rgba(0,0,0,0.03); }

    /* .nav-row1-spacer { flex: 1; } */

    .nav-store-btn {
      display: flex;
      align-items: center;
      gap: 7px;
      background: none;
      border: none;
      cursor: pointer;
      font-family: var(--font-body);
      font-size: 13px;
      text-transform: uppercase;
      color: #666666;
      white-space: nowrap;
      padding: 0;
      flex-shrink: 0;
      transition: color 0.18s;
    }

    .nav-store-btn:hover { color: #1a6b4a; }
    .nav-store-btn svg   { width: 20px; height: 20px; flex-shrink: 0; }

    .nav-util-divider {
      width: 1px; height: 20px;
      background: #e8e6e1;
      flex-shrink: 0;
    }

    .nav-cart-wrap {
      position: relative;
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    .nav-cart-count {
      position: absolute;
      top: -5px; right: -9px;
      font-size: 9px;
      background: #1a6b4a;
      color: #fff;
      width: 16px; height: 16px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }

    /* Row 2 */
    .nav-row2 {
      display: flex;
      align-items: stretch;
      padding: 0 2rem;
      height: 60px;
      border-bottom: 1px solid #e8e6e1;
    }

    header#masthead.site-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 200;
      background-color: white;
    }

    body {
      padding-top: 130px; /* header height */
    }

    @media (max-width: 1252px) {
      body {
        padding-top: 92px; /* header height */
      }
    }

    .nav-logo {
      transition: height 0.3s ease;
    }

    header#masthead.site-header.scrolled .nav-logo {
      height: 60px;
    }

    .nav-item {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 0 1.1rem;
      font-family: 'Oswald', sans-serif;
      font-size: 15px;
      text-transform: uppercase;
      font-weight: 300;
      color: #666666;
      text-decoration: none;
      position: relative;
      transition: color 0.18s;
      white-space: nowrap;
    }

    .nav-item:first-child { padding-left: 0; }
    .nav-item:last-child { padding-right: 0; font-weight: 700; }

    .nav-item::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 2px;
      background: #1a6b4a;
      transform: scaleX(0);
      transform-origin: center;
      transition: transform 0.22s;
    }

    .nav-item:hover, .nav-item.active { color: #111111; }
    .nav-item.active::after { transform: scaleX(1); }

    .nav-item-chevron {
      width: 10px; height: 10px;
      flex-shrink: 0;
      transition: transform 0.22s;
    }

    .nav-item.active .nav-item-chevron { transform: rotate(180deg); }

    /* Mega panels */
    .mega-panel {
      display: none;
      border-bottom: 1px solid #e8e6e1;
      background: #f8f7f4;
      animation: panelIn 0.22s ease forwards;
    }

    .mega-panel.open { display: block; }

    @keyframes panelIn {
      from { opacity: 0; transform: translateY(-5px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .mega-inner { display: grid; grid-template-columns: 280px 1fr; }
    .no-promo-supplies-mega-panel .mega-inner { grid-template-columns: 1fr; }

    .mega-promo {
      position: relative;
      overflow: hidden;
      min-height: 320px;
      border-right: 1px solid #e8e6e1;
    }

    .mega-promo-img {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.55s;
    }

    .mega-promo:hover .mega-promo-img { transform: scale(1.03); }

    .mega-promo-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
      pointer-events: none;
    }

    .mega-promo-content {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      padding: 1.75rem;
    }

    .mega-promo-tag {
      display: inline-block;
      font-size: 9px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.72);
      border: 1px solid rgba(255,255,255,0.3);
      padding: 3px 10px;
      margin-bottom: 0.75rem;
    }

    .mega-promo-title {
      font-family: var(--font-display);
      font-size: 26px;
      letter-spacing: 0.04em;
      color: #fff;
      line-height: 1.05;
      margin-bottom: 0.75rem;
      text-transform: uppercase;
    }

    .mega-promo-link {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 10px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      font-weight: 400;
      color: #fff;
      text-decoration: none;
      border-bottom: 1px solid rgba(255,255,255,0.45);
      padding-bottom: 1px;
      transition: gap 0.2s, border-color 0.2s;
    }

    .mega-promo-link:hover { gap: 11px; border-color: #fff; }

    .mega-links {
      padding: 2rem 2.5rem;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0 2rem;
      align-content: start;
    }
    .no-promo-supplies-mega-panel .mega-links { grid-template-columns: repeat(6, 1fr); }

    .mega-links-2col { grid-template-columns: repeat(2, 1fr); }

    .mega-group { margin-bottom: 1.5rem; }

    .mega-group-label {
      font-size: 11px;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      color: #8a8a8a;
      font-weight: 400;
      margin-bottom: 0.8rem;
      padding-bottom: 0.55rem;
      border-bottom: 1px solid #e8e6e1;
    }

    .mega-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.4rem 0;
      font-size: 15px;
      font-weight: 400;
      color: #666666;
      text-decoration: none;
      transition: color 0.16s;
    }

    .mega-link:hover { color: #111111; }
    .mega-link:hover .mega-link-arrow { opacity: 1; transform: translateX(3px); }

    .mega-link-arrow {
      font-size: 11px;
      opacity: 0;
      transition: opacity 0.16s, transform 0.16s;
      flex-shrink: 0;
    }

    .mega-link-badge {
      font-size: 9px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 2px 7px;
      font-weight: 400;
      flex-shrink: 0;
    }

    .badge-green  { background: rgba(26,107,74,0.1);   color: #1a6b4a;  }
    .badge-blue   { background: rgba(24,95,165,0.1);   color: #185FA5;  }
    .badge-bronze { background: rgba(138,106,58,0.12); color: #8a6a3a; }

    .mega-promo-dark {
      background: #111111;
      border-right: 1px solid rgba(248,247,244,0.08);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 1.75rem;
      min-height: 300px;
    }

    .mega-promo-dark .mega-promo-tag   { color: rgba(248,247,244,0.45); border-color: rgba(248,247,244,0.2); }
    .mega-promo-dark .mega-promo-title { color: #f8f7f4; text-transform: uppercase; }

    .mega-promo-dark-desc {
      font-size: 12px;
      font-weight: 300;
      color: rgba(248,247,244,0.55);
      line-height: 1.7;
      margin-bottom: 1rem;
    }

    .mega-promo-light {
      background: #efece6;
      border-right: 1px solid #e8e6e1;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 1.75rem;
      min-height: 300px;
    }

    .mega-promo-tag-dark   { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: #aaaaaa; display: block; margin-bottom: 0.75rem; }
    .mega-promo-title-dark { font-family: var(--font-display); font-size: 28px; letter-spacing: 0.03em; color: #111111; line-height: 1.05; margin-bottom: 0.75rem; text-transform: uppercase; }

    .mega-promo-link-dark {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 10px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      font-weight: 400;
      color: #1a6b4a;
      text-decoration: none;
      border-bottom: 1px solid rgba(26,107,74,0.4);
      padding-bottom: 1px;
      transition: gap 0.2s, border-color 0.2s;
    }

    .mega-promo-link-dark:hover { gap: 11px; border-color: #1a6b4a; }

    /* ════════════════════════════════
       MOBILE ELEMENTS  (hidden on desktop)
    ════════════════════════════════ */

    /* Mobile top bar */
    .mob-bar {
      display: none;
      align-items: center;
      justify-content: space-between;
      padding: 0 1.25rem 0 0;
      height: 58px;
      border-bottom: 1px solid #e8e6e1;
    }

    .mobile-nav-logo {
      height: 50px;
    }

    .mob-bar-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    /* Hamburger */
    .mob-hamburger {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
      width: 32px;
      height: 32px;
    }

    .mob-hamburger-line {
      display: block;
      width: 22px;
      height: 1.5px;
      background: #111111;
      transition: transform 0.25s, opacity 0.25s, width 0.25s;
      transform-origin: center;
    }

    /* Animated to X when open */
    .mob-hamburger.open .mob-hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .mob-hamburger.open .mob-hamburger-line:nth-child(2) { opacity: 0; width: 0; }
    .mob-hamburger.open .mob-hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    /* Mobile search row */
    .mob-search-row {
      display: none;
      padding: 0.75rem 1.25rem;
      border-bottom: 1px solid #e8e6e1;
    }

    .mob-search-form {
      display: flex;
      align-items: center;
      border: 1px solid #e8e6e1;
      height: 40px;
      width: 100%;
      transition: border-color 0.18s;
    }

    .mob-search-form:focus-within { border-color: #bbb; }

    .mob-search-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 12px;
      color: #aaaaaa;
      flex-shrink: 0;
    }

    .mob-search-icon svg { width: 15px; height: 15px; display: block; }

    .mob-search-input {
      flex: 1;
      background: none;
      border: none;
      outline: none;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 300;
      color: #111111;
      padding: 0;
    }

    input[type="search"] { border: none; }

    .mob-search-input::placeholder { color: #aaaaaa; }

    .mob-search-btn {
      background: none;
      border: none;
      border-left: 1px solid #e8e6e1;
      padding: 0 14px;
      height: 100%;
      cursor: pointer;
      font-family: var(--font-body);
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #666666;
      white-space: nowrap;
      flex-shrink: 0;
      transition: color 0.15s;
    }

    /* Overlay behind drawer */
    .mob-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.45);
      z-index: 299;
      animation: fadeIn 0.22s ease forwards;
    }

    .mob-overlay.open { display: block; }

    @keyframes fadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }

    /* Drawer */
    .mob-drawer {
      position: fixed;
      top: 0; left: 0;
      width: 320px;
      max-width: 90vw;
      height: 100%;
      background: #f8f7f4;
      z-index: 300;
      transform: translateX(-100%);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .mob-drawer.open { transform: translateX(0); }

    /* Drawer header */
    .mob-drawer-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1.25rem;
      height: 58px;
      border-bottom: 1px solid #e8e6e1;
      flex-shrink: 0;
    }

    .mob-drawer-logo {
      font-family: var(--font-display);
      font-size: 22px;
      letter-spacing: 0.1em;
      color: #111111;
      text-decoration: none;
      line-height: 1;
    }

    .mob-drawer-logo span { color: #1a6b4a; }

    .mob-drawer-close {
      background: none;
      border: none;
      cursor: pointer;
      color: #666666;
      font-size: 20px;
      padding: 4px;
      line-height: 1;
      transition: color 0.15s;
    }

    .mob-drawer-close:hover { color: #111111; }

    /* Drawer scroll area */
    .mob-drawer-body {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    /* Top-level accordion items */
    .mob-nav-item {
      border-bottom: 1px solid #e8e6e1;
    }

    .mob-nav-item-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 0 1.25rem;
      height: 52px;
      background: none;
      border: none;
      cursor: pointer;
      font-family: var(--font-body);
    }

    .mob-nav-item-label-wrap {
      display: flex;
      align-items: center;
      gap: 0;
    }

    .mob-nav-item-link {
      font-size: 13px;
      font-weight: 400;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #111111;
      text-decoration: none;
      padding: 0 1.25rem 0 0;
    }

    .mob-nav-item-expand {
      display: flex;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      border-left: 1px solid #e8e6e1;
      cursor: pointer;
      padding: 0 1rem;
      height: 52px;
      margin-left: auto;
      flex-shrink: 0;
      color: #666666;
      transition: color 0.15s;
    }

    .mob-nav-item-expand:hover { color: #111111; }

    .mob-nav-item-expand svg {
      width: 12px; height: 12px;
      display: block;
      transition: transform 0.22s;
    }

    .mob-nav-item.open .mob-nav-item-expand svg { transform: rotate(180deg); }

    /* Sub-list */
    .mob-sub {
      display: none;
      background: #f2f0ec;
      border-top: 1px solid #e8e6e1;
    }

    .mob-nav-item.open .mob-sub { display: block; }

    .mob-sub-group { padding: 1rem 1.25rem 0.25rem; }

    .mob-sub-label {
      font-size: 9px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: #aaaaaa;
      font-weight: 400;
      margin-bottom: 0.5rem;
      padding-bottom: 0.45rem;
      border-bottom: 1px solid #e8e6e1;
    }

    .mob-sub-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.55rem 0;
      font-size: 13px;
      font-weight: 300;
      color: #666666;
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: color 0.15s;
    }

    .mob-sub-link:hover { color: #111111; }

    .mob-sub-link-arrow { font-size: 11px; color: #aaaaaa; }

    /* Drawer footer */
    .mob-drawer-footer {
      border-top: 1px solid #e8e6e1;
      padding: 1.25rem;
      flex-shrink: 0;
    }

    .mob-footer-store {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #1a6b4a;
      text-decoration: none;
      margin-bottom: 0.75rem;
    }

    .mob-footer-store svg { width: 14px; height: 14px; flex-shrink: 0; }

    .mob-footer-promo {
      font-size: 11px;
      font-weight: 300;
      color: #aaaaaa;
      line-height: 1.6;
    }

    .mob-footer-promo a {
      color: #1a6b4a;
      text-decoration: none;
    }

    /* ════════════════════════════════
       BREAKPOINTS
    ════════════════════════════════ */
    @media (max-width: 1250px) {
      /* Hide desktop rows */
      .nav-row1, .nav-row2 { display: none; }
      /* Hide desktop mega panels */
      .mega-panel { display: none !important; }
      /* Show mobile bar */
      .mob-bar { display: flex; }
      .mob-search-row { display: block; }
      /* Hide promo strip (too long for mobile) */
      .nav-context { display: none; }
    }

    @media (min-width: 1251px) {
      /* Hide all mobile elements on desktop */
      .mob-bar, .mob-search-row, .mob-overlay,
      .mob-drawer, .mob-hamburger { display: none !important; }
    }
    