


@media (max-width: 991px) {
  

  /* Put both the drawer and the overlay *below* the header */
  :root{
    /* if your real header height changes, update this one place */
    --header-total: calc(var(--topbar-h) + var(--header-h));
  }

  /* Don’t underline the Products link (it acts as a mega trigger) */
.site-nav .has-mega > .nav-link,
.site-nav .has-mega > .nav-link:hover,
.site-nav .has-mega > .nav-link:focus {
  text-decoration: none;
}




.site-header__inner{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 18px var(--gutter) 10px; /* space for title + nav */
  text-align: center;
}



.site-title{
  
  font-weight: 200;
  letter-spacing: 1px;
  font-size: clamp(1.2rem, 4vw, 2rem);
    margin: 15px 18px;      /* was 30px */
    text-align: left;
}

/* We’ll set --header-total dynamically from JS */
  .site-nav {
     position: fixed;
     top: calc(var(--header-total) - 6px);                 /* was var(--header-total - 6px) */
     height: calc(100dvh - (var(--header-total) - 6px));   /* match the new top so it fills to bottom */
     left: 0; bottom: 0;
     width: 320px; max-width: 360px;
     background: #fff;
     transform: translateX(-100%);
     transition: transform .35s ease, visibility 0s linear .35s;
     z-index: 2000;
     box-shadow: 2px 0 30px rgba(0,0,0,.12);
     visibility: hidden;
     pointer-events: none;
     padding: 12px 0 24px;
     overflow-y: auto;
  }




  .site-nav.open {
    transform: translateX(0);
    transition: transform .35s ease, visibility 0s;
    visibility: visible;          /* <- now visible */
    pointer-events: auto;
  }

  /* Vertical list in the drawer */
  .site-nav ul { display: block; padding: 8px 0 0; }
  .site-nav li { display: block; }
  .site-nav a {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
  }

  /* Products collapsible (mega becomes a simple block) */
  .site-nav .mega {
    position: static;
    transform: none;
    width: auto;
    border: 0;
    box-shadow: none;
    padding: 8px 18px 12px;
    display: none;
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .site-nav li.has-mega.open > .mega { display: block; }




  /* Icon buttons */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px; 
  height: 12px;
  text-decoration: none;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}


/* PNG icons (monochrome effect) */
.icon-image {
  width: 14px;
  height: 14px;
  display: block;
  filter: grayscale(100%) brightness(0); /* makes them black */
  transition: filter 0.2s ease;
}

  .mega__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  
  .menu-overlay {
    position: fixed;
    top: calc(var(--header-total) - 6px);                 /* align with the drawer top */
    left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
    z-index: 1990;
  }




  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  /* Hamburger */
  .mobile-menu-trigger{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    margin-left: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .mobile-menu-trigger span{
    display: block;
    width: 22px; height: 2px; background: #111; position: relative;
  }
  .mobile-menu-trigger span::before,
  .mobile-menu-trigger span::after{
    content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: #111;
  }
  .mobile-menu-trigger span::before{ top: -6px; }
  .mobile-menu-trigger span::after { top:  6px; }

  /* Disable desktop hover-open on mobile */
  .site-nav li.has-mega:hover > .mega,
  .site-nav li.has-mega:focus-within > .mega { /* noop */ }
}





/* === FIX: make Products types vertical inside the mobile drawer === */
@media (max-width: 991px) {
  /* The drawer itself */
  .site-nav {
    width: min(92vw, 360px);
    overflow-x: hidden;        /* never let content push horizontally */
  }

  /* Products panel fills drawer and never floats */
  .site-nav .mega {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: none; /* stays controlled by .has-mega.open > .mega */
  }


  .site-nav li.has-mega.open > .mega { display: block; }

  /* FORCE a single column stack for types, ignoring any desktop/mobile grid */
  .site-nav .mega__cols {
    display: block !important;            /* kills grid/flex conflicts */
  }

  .site-nav .mega__col {
    display: block !important;            /* one per row */
    width: 100% !important;
    margin: 0 !important;
    border-top: 1px solid #f0f0f0;
  }


  .site-nav .mega__col:first-child { border-top: 0; }

  /* Row + sub-list spacing */
  .site-nav .mega__title {
    margin: 0 !important;
    padding: 12px 18px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }
  .site-nav .mega__title a {
    flex: 1;
    text-decoration: none;
    color: #111;
  }
  .site-nav .mega__title a::after {
    content: "▾";
    font-size: 0.9rem;
    margin-left: 8px;
    transform: rotate(0deg);
    transition: transform .2s ease;
    opacity: .7;
  }
  .site-nav .mega__col.open .mega__title a::after { transform: rotate(180deg); }

  .site-nav .mega__sub {
    display: none;
    padding: 0 18px 12px;
  }
  
  .site-nav .mega__col.open .mega__sub { display: block; }

  

/* Absolute safety net: nothing inside the drawer should exceed its width */
.site-nav, .site-nav * {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}





















@media (min-width: 320px) {
  
        .site-title{

          font-size: clamp(1em, 4vw, 2rem);
          margin: 18px 0px;
          font-weight: 400;
        }


         .site-header__inner {
          max-width: var(--container-w);
          margin: 0 auto;
          padding: 20px var(--gutter) 10px;
          text-align: center;

        }

       


       .site-icons {
  position: absolute;
  top: 28px;
  right: clamp(16px, 4vw, 48px);
  display: flex;
  gap: 13px;
  align-items: center;
}
      


}





@media (min-width: 480px) {


     .site-title {
        font-size: clamp(1em, 4vw, 2rem);
        margin: 14px 0px;
       
        margin-left: var(--gutter);

      }


    .site-icons {
        position: absolute;
        top: 28px;
        
        display: flex;
        gap: 36px;
        align-items: center;
        right: var(--gutter); 
     }


    /* PNG icons (monochrome effect) */
    .icon-image {
        width: 16px;
        height: 16px;
        display: block;
        filter: grayscale(100%) brightness(0); /* makes them black */
        transition: filter 0.2s ease;
     }




  }


/* ========== Desktop keeps your existing layout (>= 992px) ========== */
@media (min-width: 992px) {
  .mobile-menu-trigger { display: none; }
  .menu-overlay { display: none; }
}



     /* Base hamburger lines */
.mobile-menu-trigger {
  position: relative;
}
.mobile-menu-trigger span,
.mobile-menu-trigger span::before,
.mobile-menu-trigger span::after {
  transition: transform .25s ease, top .25s ease, opacity .2s ease, background-color .2s ease;
}

/* When menu is open, morph into an "X" */
.mobile-menu-trigger.is-open span {
  background: transparent;          /* hide middle bar */
}
.mobile-menu-trigger.is-open span::before {
  top: 0;                            /* move to center */
  transform: rotate(45deg);
}
.mobile-menu-trigger.is-open span::after {
  top: 0;                            /* move to center */
  transform: rotate(-45deg);
}

/* Bold the type rows in the mobile drawer */
@media (max-width: 991px) {
  .site-nav .mega__title a {
    font-weight: 700;   /* bold types */
  }
}



/* Indent sub-categories to the RIGHT under their type (mobile) */
@media (max-width: 991px) {
  /* bump just the subcategory links further to the right */
  .site-nav .mega__sub a {
    padding-left: 36px !important; /* 18px (base) + 18px extra = clear indent */
  }

  /* optional: slightly tighter vertical rhythm for subitems */
   .site-nav .mega__sub a { padding-top: 12px; padding-bottom: 12px; } 
}



/* Desktop: reset mega menu link layout so it doesn't inherit the top-nav styles */
@media (min-width: 992px) {
  /* Only the top-level nav items use inline-flex */
  .site-nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    padding: 6px 4px;
  }

  /* Everything inside the mega panel uses normal block layout + comfy spacing */
  .site-nav .mega a {
    display: block;           /* cancel inline-flex from global rule */
    gap: 0;                   /* no flex gap needed */
    line-height: 1.45;        /* readable rows */
    padding: 6px 0;           /* vertical rhythm for category links */
  }

  /* Type/title rows in the columns */
  .site-nav .mega__title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
  }
  .site-nav .mega__title a {
    display: inline;          /* titles behave like text links */
    padding: 0;               /* no extra padding on titles */
    line-height: 1.2;
  }

  /* Column/grid sizing & breathing room */
  .mega__cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 28px;         /* wider between columns */
    row-gap: 14px;
  }
  .mega__col { min-width: 0; }
  .mega__sub {
    margin: 0;
    padding: 0;
  }
  .mega__sub li + li { margin-top: 4px; }

  /* Panel padding so content isn't glued to the edges */
  .site-nav .mega {
    padding: 18px 22px;
  }
}



/* Desktop: make mega menu content roomy and block-level */
@media (min-width: 992px) {
  /* Mega panel grid */
  .site-nav .mega {
    padding: 18px 22px;              /* breathing room inside the panel */
  }
  .site-nav .mega .mega__cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 14px;
    align-items: start;              /* don’t stretch rows */
  }

  /* Type/title row */
  .site-nav .mega .mega__title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.2;
  }
  .site-nav .mega .mega__title a {
    display: inline;                 /* title behaves like a normal text link */
    padding: 0;
    text-decoration: none;
  }

  /* Category list */
  .site-nav .mega .mega__sub {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .site-nav .mega .mega__sub li + li { margin-top: 6px; }

  /* Crucial: cancel the global inline-flex, restore comfy spacing */
  .site-nav .mega a {
    display: block;
    gap: 0;
    line-height: 1.45;
    padding: 6px 0;
    text-decoration: none;
  }
  .site-nav .mega a:hover,
  .site-nav .mega a:focus {
    text-decoration: underline;
    outline: none;
  }
}


:root { --header-total: calc(var(--topbar-h) + var(--header-h)); }