/* =====================================================================
   BMV DECOR — SITE HEADER (all pages)
   Navbar, mobile drawer and live search. Behaviour: js/bmv-header.js
   Markup: identical on every page (see index.html for the reference copy).

   Desktop sizes come from the 1774px-wide design and scale with the
   viewport through --u (1 design pixel). Tablet/phone use fixed sizes.
===================================================================== */

:root {
    --bmv-green: #0d5c2f;
    --bmv-green-dark: #094522;
    --bmv-green-soft: rgba(13, 92, 47, 0.08);
    --bmv-ink: #1f2421;
    --bmv-body: #4f5552;
    --bmv-muted: #8a8f8c;
    --bmv-line: #e6e3de;
    --bmv-cream: 246, 238, 229;              /* rgb triplet */
    --bmv-font: "Noto Sans", "Hanken Grotesk", system-ui, sans-serif;
    --bmv-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --bmv-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* 1 design px: 1774px screen = 1px, never smaller than 0.56px or larger than 1.15px */
    --u: clamp(0.56px, calc(100vw / 1774), 1.15px);
    --bmv-max: 2040px;                       /* 1774 x 1.15: layout stops growing here */
    --bmv-header-h: max(68px, calc(100 * var(--u)));
}

/* Pushes page content below the fixed header (pages without an overlapping banner) */
.bmv-header-spacer { height: var(--bmv-header-h); }
body:has(.bmv-header-spacer) { padding-top: 0 !important; }

/* =====================================================================
   HEADER BAR
===================================================================== */
.bmv-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    font-family: var(--bmv-font);
    line-height: 1.4;
    border-bottom: 1px solid transparent;
    transition: transform 0.5s var(--bmv-ease), box-shadow 0.4s var(--bmv-ease), border-color 0.4s var(--bmv-ease);
}
.bmv-nav-wrapper *,
.bmv-mobile-drawer * { box-sizing: border-box; }
/* Some pages set `* { font-family: ... }`; keep the header font (icons excluded) */
.bmv-nav-wrapper :not(i),
.bmv-mobile-drawer :not(i) { font-family: var(--bmv-font); }
.bmv-nav-wrapper.is-scrolled {
    box-shadow: 0 10px 30px rgba(20, 30, 25, 0.08);
    border-bottom-color: var(--bmv-line);
}
/* extra 30px so the hanging logo badge hides too */
.bmv-nav-hidden { transform: translateY(calc(-100% - 30px)); }

.bmv-nav-container {
    max-width: var(--bmv-max);
    height: var(--bmv-header-h);
    margin: 0 auto;
    padding: 0 calc(50 * var(--u)) 0 calc(84 * var(--u));
    display: flex;
    align-items: center;
    gap: calc(32 * var(--u));
}

/* ── Brand: round logo | divider | tagline ── */
.bmv-brand {
    display: flex;
    align-items: center;
    gap: calc(22 * var(--u));
    flex-shrink: 0;
    height: 100%;
    text-decoration: none;
    color: var(--bmv-ink);
}
.bmv-brand:hover { color: var(--bmv-ink); text-decoration: none; }
.bmv-brand-logo {
    --badge: max(64px, calc(100 * var(--u)));
    width: var(--badge);
    height: var(--badge);
    flex-shrink: 0;
    align-self: flex-start;
    margin: calc(4 * var(--u)) 0 calc(-14 * var(--u));   /* hangs below the bar, like the design */
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(20, 30, 25, 0.10);
    display: grid;
    place-items: center;
    position: relative;
    z-index: 2;
    transition: transform 0.5s var(--bmv-ease-out), box-shadow 0.5s var(--bmv-ease);
}
.bmv-brand-logo img {
    width: 92%;
    max-width: none;
    height: auto;
    display: block;
    filter: none;
}
.bmv-brand:hover .bmv-brand-logo {
    transform: rotate(-6deg) scale(1.04);
    box-shadow: 0 10px 26px rgba(13, 92, 47, 0.18);
}
.bmv-brand-divider {
    width: 1px;
    height: max(32px, calc(46 * var(--u)));
    background: #cfd2cf;
    flex-shrink: 0;
}
.bmv-brand-tagline {
    font-size: max(12px, calc(16 * var(--u)));
    font-weight: 500;
    line-height: 1.3;
    color: var(--bmv-ink);
    white-space: nowrap;
}

/* ── Desktop menu ── */
.bmv-main-nav { margin: 0 auto; }
.bmv-menu-list {
    display: flex;
    align-items: center;
    gap: max(20px, calc(48 * var(--u)));
    list-style: none;
    margin: 0;
    padding: 0;
}
.bmv-menu-item { position: relative; margin: 0; padding: 0; list-style: none; }
.bmv-menu-item::before { content: none; }
.bmv-menu-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    height: var(--bmv-header-h);
    padding: 0;
    color: var(--bmv-ink);
    font-family: var(--bmv-font);
    font-size: max(14px, calc(19 * var(--u)));
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.35s var(--bmv-ease);
}
.bmv-menu-link::after {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    bottom: calc(20 * var(--u));
    height: 3px;
    border-radius: 3px;
    background: var(--bmv-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.45s var(--bmv-ease-out);
}
.bmv-menu-link:hover,
.bmv-menu-link:focus-visible,
.bmv-menu-link.is-active { color: var(--bmv-green); text-decoration: none; }
.bmv-menu-link:hover::after,
.bmv-menu-link:focus-visible::after,
.bmv-menu-link.is-active::after { transform: scaleX(1); }
.bmv-menu-link .chevron {
    font-size: 0.6em;
    transition: transform 0.4s var(--bmv-ease-out);
}

/* =====================================================================
   PRODUCTS MEGA MENU
   Products link turns into a green pill with a pointer; the panel drops
   below the bar: tabs on the left, category tiles on the right.
===================================================================== */
.bmv-menu-item.has-mega { position: static; }

/* Green pill behind "Products" while the menu is open */
.has-mega > .bmv-menu-link { z-index: 0; }
.has-mega > .bmv-menu-link::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -22px;
    right: -22px;
    top: 50%;
    height: max(42px, calc(54 * var(--u)));
    border-radius: 999px;
    background: var(--bmv-green);
    transform: translateY(-50%) scale(0.85);
    opacity: 0;
    transition: opacity 0.35s var(--bmv-ease), transform 0.45s var(--bmv-ease-out);
}
.bmv-mega-caret {
    position: absolute;
    left: 50%;
    top: calc(50% + max(21px, calc(27 * var(--u))) - 2px);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 12px solid var(--bmv-green);
    transform: translate(-50%, -6px);
    opacity: 0;
    transition: opacity 0.3s var(--bmv-ease), transform 0.45s var(--bmv-ease-out);
}
.has-mega.is-open > .bmv-menu-link { color: #ffffff; }
.has-mega.is-open > .bmv-menu-link::before { opacity: 1; transform: translateY(-50%) scale(1); }
.has-mega.is-open > .bmv-menu-link::after { transform: scaleX(0); }
.has-mega.is-open .bmv-mega-caret { opacity: 1; transform: translate(-50%, 0); }
.has-mega.is-open .chevron { transform: rotate(180deg); }

.bmv-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: min(calc(100% - 2 * max(16px, calc(48 * var(--u)))), calc(1660 * var(--u)));
    margin: 0 auto;
    padding-top: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    /* small delay on close so the menu doesn't flicker when the pointer crosses a gap */
    transition: opacity 0.3s var(--bmv-ease) 0.12s, transform 0.4s var(--bmv-ease-out) 0.12s, visibility 0s linear 0.42s;
    cursor: default;
}
.has-mega.is-open .bmv-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.35s var(--bmv-ease), transform 0.45s var(--bmv-ease-out), visibility 0s;
}
.bmv-mega-inner {
    display: grid;
    grid-template-columns: calc(380 * var(--u)) 1fr;
    min-height: calc(520 * var(--u));
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ecebe7;
    border-radius: max(14px, calc(18 * var(--u)));
    box-shadow: 0 28px 70px rgba(20, 30, 25, 0.16), 0 4px 14px rgba(20, 30, 25, 0.06);
    /* curtain: the panel unrolls downward when it opens */
    clip-path: inset(0 -80px 100% -80px);
    transition: clip-path 0.4s var(--bmv-ease) 0.1s;
}
.has-mega.is-open .bmv-mega-inner {
    clip-path: inset(-20px -80px -120px -80px);
    transition: clip-path 0.65s var(--bmv-ease-out);
}

/* ── Left: tabs + decorative image ── */
.bmv-mega-side {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: max(10px, calc(18 * var(--u)));
    padding: max(14px, calc(22 * var(--u)));
    border-right: 1px solid #ecebe7;
    background: #fbfbf9;
    overflow: hidden;
}
.bmv-mega-tab {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: max(12px, calc(18 * var(--u)));
    min-height: max(52px, calc(72 * var(--u)));
    padding: 0 max(16px, calc(26 * var(--u)));
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(20, 30, 25, 0.06);
    color: var(--bmv-ink);
    font-size: max(14px, calc(20 * var(--u)));
    font-weight: 700;
    text-decoration: none;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.4s var(--bmv-ease), box-shadow 0.4s var(--bmv-ease), transform 0.45s var(--bmv-ease-out);
}
.bmv-mega-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bmv-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--bmv-ease-out);
}
.bmv-mega-tab.is-active::before { transform: scaleX(1); transform-origin: left; }
.bmv-mega-tab svg {
    flex-shrink: 0;
    width: max(24px, calc(34 * var(--u)));
    height: max(24px, calc(34 * var(--u)));
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bmv-mega-tab span { flex: 1; }
.bmv-mega-tab svg { transition: transform 0.5s var(--bmv-ease-out); }
.bmv-mega-tab:hover svg, .bmv-mega-tab.is-active svg { transform: scale(1.08) rotate(-4deg); }
/* tabs + side art ease in after the curtain */
.bmv-mega-side > * { opacity: 0; transform: translateX(-12px); transition: opacity 0.3s var(--bmv-ease), transform 0.45s var(--bmv-ease-out); }
.has-mega.is-open .bmv-mega-side > .bmv-mega-tab { opacity: 1; transform: none; transition: opacity 0.45s var(--bmv-ease) 0.12s, transform 0.55s var(--bmv-ease-out) 0.12s, color 0.4s var(--bmv-ease), box-shadow 0.4s var(--bmv-ease); }
.has-mega.is-open .bmv-mega-side > .bmv-mega-tab + .bmv-mega-tab { transition-delay: 0.2s, 0.2s, 0s, 0s; }
.has-mega.is-open .bmv-mega-side > .bmv-mega-tab:hover { transform: translateX(3px); transition-delay: 0s; }
.bmv-mega-tab i { font-size: 0.8em; transition: transform 0.45s var(--bmv-ease-out); }
.bmv-mega-tab:hover { color: var(--bmv-green); text-decoration: none; transform: translateX(3px); }
.bmv-mega-tab:hover i { transform: translateX(3px); }
.bmv-mega-tab.is-active {
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(13, 92, 47, 0.25);
    transform: none;
}
.bmv-mega-art {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62%;
    background: url("/images/hero-bg.jpg") 0% 100% / cover no-repeat;
    pointer-events: none;
}
.bmv-mega-side > .bmv-mega-art { transform: scale(1.1); transform-origin: 30% 100%; transition: opacity 0.3s var(--bmv-ease), transform 0.4s var(--bmv-ease-out); }
.has-mega.is-open .bmv-mega-side > .bmv-mega-art { opacity: 1; transform: scale(1); transition: opacity 0.9s var(--bmv-ease) 0.2s, transform 2.4s var(--bmv-ease-out) 0.1s; }
.bmv-mega-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #fbfbf9 0%, rgba(251, 251, 249, 0.55) 35%, rgba(251, 251, 249, 0) 70%);
}

/* ── Right: panes ── */
.bmv-mega-main {
    display: grid;               /* panes share one cell: no height jump when switching */
    max-height: calc(100vh - var(--bmv-header-h) - 26px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.bmv-mega-pane {
    grid-area: 1 / 1;
    padding: max(14px, calc(22 * var(--u))) max(18px, calc(28 * var(--u))) max(12px, calc(18 * var(--u)));
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.35s var(--bmv-ease), transform 0.45s var(--bmv-ease-out), visibility 0s linear 0.35s;
}
.bmv-mega-pane.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.35s var(--bmv-ease), transform 0.45s var(--bmv-ease-out), visibility 0s;
}
.bmv-mega-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: max(10px, calc(14 * var(--u)));
    margin-bottom: max(10px, calc(12 * var(--u)));
    border-bottom: 1px solid #ecebe7;
}
.bmv-mega-title {
    margin: 0;
    color: var(--bmv-green);
    font-size: max(18px, calc(27 * var(--u)));
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.bmv-mega-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bmv-green);
    font-size: max(14px, calc(19 * var(--u)));
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}
.bmv-mega-all i { transition: transform 0.45s var(--bmv-ease-out); }
.bmv-mega-all:hover { color: var(--bmv-green-dark); text-decoration: none; }
.bmv-mega-all:hover i { transform: translateX(5px); }

.bmv-mega-group + .bmv-mega-group {
    margin-top: max(8px, calc(10 * var(--u)));
    padding-top: max(8px, calc(10 * var(--u)));
    border-top: 1px solid #f0efeb;
}
.bmv-mega-head, .bmv-mega-group-title {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.35s var(--bmv-ease), transform 0.5s var(--bmv-ease-out);
}
.has-mega.is-open .bmv-mega-pane.is-active .bmv-mega-head,
.has-mega.is-open .bmv-mega-pane.is-active .bmv-mega-group-title {
    opacity: 1;
    transform: none;
    transition-delay: 0.08s;
}
.has-mega.is-open .bmv-mega-pane.is-active .bmv-mega-group + .bmv-mega-group .bmv-mega-group-title { transition-delay: 0.16s; }
.bmv-mega-group-title {
    margin: 0 0 max(8px, calc(12 * var(--u)));
    padding: max(5px, calc(6 * var(--u))) 16px;
    border-left: 4px solid var(--bmv-green);
    border-radius: 0 6px 6px 0;
    background: #f4f4f1;
    color: var(--bmv-ink);
    font-size: max(15px, calc(22 * var(--u)));
    font-weight: 700;
    line-height: 1.3;
}
.bmv-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(92px, calc(124 * var(--u))), 1fr));
    gap: max(8px, calc(10 * var(--u))) max(6px, calc(10 * var(--u)));
    margin: 0;
    padding: 0;
    list-style: none;
}
.bmv-mega-grid li { margin: 0; padding: 0; list-style: none; }
.bmv-mega-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: max(5px, calc(8 * var(--u)));
    padding: 2px;
    border-radius: 10px;
    color: var(--bmv-ink);
    text-align: center;
    text-decoration: none;
    /* tiles cascade in when the menu opens */
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transition: opacity 0.3s var(--bmv-ease), transform 0.4s var(--bmv-ease-out), color 0.3s var(--bmv-ease);
}
.has-mega.is-open .bmv-mega-pane.is-active .bmv-mega-item {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s var(--bmv-ease), transform 0.65s var(--bmv-ease-out), color 0.3s var(--bmv-ease);
    transition-delay: calc(var(--i, 0) * 24ms + 90ms), calc(var(--i, 0) * 24ms + 90ms), 0s;
}
.bmv-mega-thumb {
    display: grid;
    place-items: center;
    width: max(70px, calc(94 * var(--u)));
    aspect-ratio: 1;
    border-radius: 12px;
    background: #f5f5f2;
    overflow: hidden;
    transition: transform 0.45s var(--bmv-ease-out), box-shadow 0.4s var(--bmv-ease), background 0.35s var(--bmv-ease);
}
.bmv-mega-thumb img {
    width: 86%;
    height: 86%;
    object-fit: contain;
    mix-blend-mode: multiply;      /* white product backgrounds melt into the tile */
    transition: transform 0.55s var(--bmv-ease-out);
}
.bmv-mega-label {
    font-size: max(12.5px, calc(15.5 * var(--u)));
    font-weight: 600;
    line-height: 1.25;
    transition: color 0.3s var(--bmv-ease);
}
.bmv-mega-item:hover { color: var(--bmv-green); text-decoration: none; }
.bmv-mega-item:hover .bmv-mega-thumb {
    background: #eef3ef;
    outline: 1.5px solid rgba(13, 92, 47, 0.35);
    outline-offset: -1.5px;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(20, 30, 25, 0.10);
}
.bmv-mega-item:hover .bmv-mega-thumb img { transform: scale(1.07); }
.bmv-mega-empty { color: var(--bmv-muted); font-size: 14px; padding: 8px 4px; }

/* Plywood tab: few products, so bigger cards */
.bmv-mega-grid--lg {
    grid-template-columns: repeat(auto-fill, minmax(max(150px, calc(250 * var(--u))), 1fr));
    gap: max(14px, calc(22 * var(--u)));
}
.bmv-mega-grid--lg .bmv-mega-item { gap: max(8px, calc(12 * var(--u))); }
.bmv-mega-grid--lg .bmv-mega-thumb {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
}
.bmv-mega-grid--lg .bmv-mega-thumb img { width: 78%; height: 88%; }
.bmv-mega-grid--lg .bmv-mega-label { font-size: max(14px, calc(18 * var(--u))); font-weight: 700; }

/* Shorter screens: scroll inside the panel instead of running off-screen */
@media (max-height: 760px) {
    .bmv-mega-inner { min-height: 0; }
}

/* ── Right side: search + CTA ── */
.bmv-nav-actions {
    display: flex;
    align-items: center;
    gap: calc(26 * var(--u));
    flex-shrink: 0;
}

.bmv-search {
    --search-h: max(44px, calc(52 * var(--u)));
    position: relative;
    width: calc(372 * var(--u));
    margin: 0;
}
.bmv-search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--search-h);
    padding: 0 calc(22 * var(--u)) 0 0;
    border-radius: 999px;
    background: #f1f1ef;
    border: 1px solid transparent;
    transition: width 0.55s var(--bmv-ease-out), background 0.35s var(--bmv-ease), border-color 0.35s var(--bmv-ease), box-shadow 0.35s var(--bmv-ease);
}
.bmv-search-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: var(--search-h);
    height: var(--search-h);
    margin: 0 -10px 0 0;
    color: #3c403e;
    font-size: max(16px, calc(20 * var(--u)));
    cursor: pointer;
    transition: color 0.3s var(--bmv-ease);
}
.bmv-search-field input {
    flex: 1;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    font-family: var(--bmv-font);
    font-size: max(14px, calc(17 * var(--u)));
    color: var(--bmv-ink);
    -webkit-appearance: none;
    appearance: none;
    transition: opacity 0.35s var(--bmv-ease);
}
.bmv-search-field input::placeholder { color: #a3a6a4; }
.bmv-search-field input::-webkit-search-cancel-button { display: none; }
.bmv-search.is-focused .bmv-search-field {
    background: #ffffff;
    border-color: rgba(13, 92, 47, 0.35);
    box-shadow: 0 0 0 4px rgba(13, 92, 47, 0.08);
}
.bmv-search.is-focused .bmv-search-icon,
.bmv-search-icon:hover { color: var(--bmv-green); }

.bmv-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--bmv-line);
    border-radius: 14px;
    box-shadow: 0 22px 48px rgba(20, 30, 25, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s var(--bmv-ease), transform 0.4s var(--bmv-ease-out), visibility 0.3s;
    z-index: 5;
    font-family: var(--bmv-font);
}
.bmv-search.is-open .bmv-search-results {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.bmv-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--bmv-ink);
    text-decoration: none;
    transition: background 0.25s var(--bmv-ease);
}
.bmv-search-item:hover,
.bmv-search-item.is-active { background: var(--bmv-green-soft); color: var(--bmv-ink); text-decoration: none; }
.bmv-search-thumb {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f3f1ec center / cover no-repeat;
    display: grid;
    place-items: center;
    color: var(--bmv-green);
    font-size: 15px;
}
.bmv-search-text { min-width: 0; }
.bmv-search-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bmv-search-title mark { background: none; color: var(--bmv-green); padding: 0; }
.bmv-search-type { display: block; font-size: 12px; line-height: 1.3; color: var(--bmv-muted); }
.bmv-search-empty { padding: 14px 12px; font-size: 14px; color: var(--bmv-body); }
.bmv-search-empty a { color: var(--bmv-green); font-weight: 600; }

.bmv-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: calc(14 * var(--u));
    height: max(44px, calc(52 * var(--u)));
    padding: 0 max(20px, calc(32 * var(--u)));
    border-radius: 999px;
    background: var(--bmv-green);
    color: #ffffff;
    font-family: var(--bmv-font);
    font-size: max(14px, calc(19 * var(--u)));
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.35s var(--bmv-ease), transform 0.35s var(--bmv-ease-out), box-shadow 0.35s var(--bmv-ease);
}
.bmv-nav-btn i { font-size: 1.05em; transition: transform 0.45s var(--bmv-ease-out); }
.bmv-nav-btn:hover,
.bmv-nav-btn:focus-visible {
    background: var(--bmv-green-dark);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(13, 92, 47, 0.28);
}
.bmv-nav-btn:hover i { transform: rotate(-12deg) scale(1.08); }

/* ── Mobile toggle ── */
.bmv-mobile-toggle {
    display: none;
    flex-shrink: 0;
    margin-left: auto;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--bmv-line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--bmv-ink);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s var(--bmv-ease), color 0.3s var(--bmv-ease), border-color 0.3s var(--bmv-ease);
}
.bmv-mobile-toggle:hover { background: var(--bmv-green); border-color: var(--bmv-green); color: #ffffff; }

/* =====================================================================
   MOBILE DRAWER
===================================================================== */
.bmv-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1990;
    background: rgba(15, 22, 18, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--bmv-ease), visibility 0.4s;
}
.bmv-mobile-overlay.active { opacity: 1; visibility: visible; }

.bmv-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2000;
    width: min(340px, 88vw);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #ffffff;
    font-family: var(--bmv-font);
    line-height: 1.4;
    box-shadow: -12px 0 40px rgba(15, 22, 18, 0.18);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.5s var(--bmv-ease-out), visibility 0.5s;
}
.bmv-mobile-drawer.active { transform: translateX(0); visibility: visible; }

.bmv-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bmv-line);
}
.bmv-drawer-header img { width: 62px; height: auto; filter: none; }
.bmv-drawer-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--bmv-line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--bmv-ink);
    font-size: 17px;
    cursor: pointer;
    transition: background 0.3s var(--bmv-ease), color 0.3s var(--bmv-ease), transform 0.4s var(--bmv-ease-out);
}
.bmv-drawer-close:hover { background: var(--bmv-green); color: #ffffff; transform: rotate(90deg); }

.bmv-drawer-search { padding: 16px 20px 6px; }
.bmv-drawer-search .bmv-search { width: 100%; --search-h: 48px; }
.bmv-drawer-search .bmv-search-field { padding-right: 18px; }
.bmv-drawer-search .bmv-search-icon { font-size: 16px; }
.bmv-drawer-search .bmv-search-field input { font-size: 15px; }
.bmv-drawer-search .bmv-search-results { position: static; margin-top: 8px; box-shadow: none; max-height: 0; padding: 0; border-width: 0; transform: none; }
.bmv-drawer-search .bmv-search.is-open .bmv-search-results { max-height: 340px; padding: 6px; border-width: 1px; }

.bmv-drawer-nav { flex: 1; padding: 8px 0; }
.bmv-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 22px;
    border-bottom: 1px solid #f0eeea;
    color: var(--bmv-ink);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s var(--bmv-ease), color 0.3s var(--bmv-ease), padding-left 0.4s var(--bmv-ease-out);
}
.bmv-drawer-link:hover { background: var(--bmv-green-soft); color: var(--bmv-green); padding-left: 28px; text-decoration: none; }
.bmv-drawer-link.is-active { color: var(--bmv-green); }
.bmv-drawer-link i { font-size: 11px; transition: transform 0.4s var(--bmv-ease-out); }
.bmv-drawer-link.open { color: var(--bmv-green); }
.bmv-drawer-link.open i { transform: rotate(180deg); }

.bmv-drawer-accordion {
    max-height: 0;
    overflow: hidden;
    background: #faf8f5;
    transition: max-height 0.45s var(--bmv-ease);
}
.bmv-drawer-accordion.open { max-height: 300px; }
.bmv-drawer-acc-header {
    padding: 12px 22px 6px;
    color: var(--bmv-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.bmv-drawer-acc-link {
    display: block;
    padding: 11px 22px 11px 32px;
    color: var(--bmv-body);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s var(--bmv-ease), padding-left 0.4s var(--bmv-ease-out);
}
.bmv-drawer-acc-link:hover,
.bmv-drawer-acc-link.is-active { color: var(--bmv-green); padding-left: 38px; text-decoration: none; }

.bmv-drawer-footer { padding: 20px; border-top: 1px solid var(--bmv-line); }
.bmv-drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--bmv-green);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.35s var(--bmv-ease);
}
.bmv-drawer-cta:hover { background: var(--bmv-green-dark); color: #ffffff; text-decoration: none; }

/* Product pages: the sticky "Collections" back bar sits under the header
   and slides up with it when the header hides */
.bmv-navbar {
    top: var(--bmv-header-h) !important;
    transition: top 0.5s var(--bmv-ease) !important;
}
body:has(.bmv-nav-hidden) .bmv-navbar { top: 0 !important; }

/* =====================================================================
   LAPTOP 992–1439: search collapses to an icon that expands on click,
   so logo + tagline + menu + search + button all keep fitting
===================================================================== */
@media (min-width: 992px) and (max-width: 1439px) {
    .bmv-nav-actions .bmv-search {
        width: var(--search-h);
        height: var(--search-h);
    }
    .bmv-nav-actions .bmv-search-field {
        position: absolute;
        top: 0;
        right: 0;
        width: var(--search-h);
        padding: 0;
        overflow: hidden;
        z-index: 3;
    }
    .bmv-nav-actions .bmv-search-icon { margin: 0; }
    .bmv-nav-actions .bmv-search-field input { opacity: 0; }
    .bmv-nav-actions .bmv-search.is-focused .bmv-search-field {
        width: 340px;
        padding-right: 18px;
        box-shadow: 0 0 0 4px rgba(13, 92, 47, 0.08), 0 14px 30px rgba(20, 30, 25, 0.12);
    }
    .bmv-nav-actions .bmv-search.is-focused .bmv-search-icon { margin-right: -10px; }
    .bmv-nav-actions .bmv-search.is-focused .bmv-search-field input { opacity: 1; }
    .bmv-nav-actions .bmv-search-results { left: auto; width: 340px; }
}

/* =====================================================================
   TABLET (≤991px): drawer menu
===================================================================== */
@media (max-width: 991px) {
    :root { --bmv-header-h: 76px; }

    .bmv-main-nav,
    .bmv-nav-actions { display: none; }
    .bmv-mobile-toggle { display: grid; place-items: center; }
    .bmv-nav-container { padding: 0 24px; gap: 16px; }
    .bmv-brand { gap: 14px; }
    .bmv-brand-logo { --badge: 64px; margin: 0; align-self: center; }
    .bmv-brand-divider { height: 36px; }
    .bmv-brand-tagline { font-size: 13px; }
}

/* =====================================================================
   PHONE (≤640px)
===================================================================== */
@media (max-width: 640px) {
    :root { --bmv-header-h: 70px; }
    .bmv-nav-container { padding: 0 16px; gap: 12px; }
    .bmv-brand { gap: 10px; }
    .bmv-brand-logo { --badge: 56px; }
    .bmv-brand-divider { height: 30px; }
    .bmv-brand-tagline { font-size: 12px; }
    .bmv-mobile-toggle { width: 42px; height: 42px; font-size: 16px; }
}

@media (max-width: 360px) {
    .bmv-brand-tagline,
    .bmv-brand-divider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bmv-nav-wrapper *,
    .bmv-mobile-drawer * { transition-duration: 0.01ms !important; animation: none !important; }
}
