/* ============================================================
   Marquis Fur — mobile navigation bar + drawer
   Visual reference: ALEN COOPER mobile header (centered serif
   wordmark, hairline top bar, full-screen white drawer)
   Scope: <=768px only. Desktop header untouched.
   ============================================================ */

.mnav-head,
.mnav-foot,
.mnav-lang,
.mnav-backdrop { display: none; }

body.mnav-lock { overflow: hidden; }

/* long footer lines (email / WhatsApp) must not widen the mobile viewport */
.footer-links,
.footer-links a,
.site-footer p { overflow-wrap: anywhere; word-break: break-word; }
.footer-links a { white-space: normal; }

@media (max-width: 768px) {

  /* ---------- top bar: burger / centered logo / language ---------- */
  .site-header,
  header.site > .bar {
    display: grid !important;
    grid-template-columns: 46px 1fr auto;
    grid-template-rows: 58px;
    align-items: center;
    gap: 4px;
    padding: 0 14px !important;
    background: #fff;
    border-bottom: 1px solid #E8E5DE;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header .brand-logo,
  header.site .bar > a:first-child {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: flex;
    align-items: center;
    line-height: 0;
  }

  .site-header .brand-logo img,
  header.site .bar > a:first-child img {
    height: 31px !important;
    width: auto !important;
    filter: none;
  }

  .nav-toggle,
  .menu-btn {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: -8px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0 !important;
    color: #2C2C2C;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mnav-burger-lines {
    display: block;
    position: relative;
    width: 21px;
    height: 1.4px;
    background: #2C2C2C;
    border-radius: 1px;
  }
  .mnav-burger-lines::before,
  .mnav-burger-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 21px;
    height: 1.4px;
    background: #2C2C2C;
    border-radius: 1px;
  }
  .mnav-burger-lines::before { top: -6px; }
  .mnav-burger-lines::after  { top: 6px; }

  /* language pill in the right cell */
  .mnav-lang {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
  }
  .mnav-lang .lang-switch {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 2px;
    border: 1px solid #DFDBD2;
    border-radius: 999px;
    background: #fff;
  }
  .mnav-lang .ls-btn {
    min-width: 30px;
    padding: 3px 8px;
    font-size: 10.5px;
    letter-spacing: 1.1px;
    line-height: 1.4;
    justify-content: center;
    border-radius: 999px;
    color: #9C978E;
  }
  .mnav-lang .ls-btn.active {
    background: #C9A961;
    color: #fff;
    font-weight: 700;
  }

  /* the desktop "Request Quote" button leaves room for the bar */
  header.site .bar > .btn { display: none !important; }

  /* ---------- full-screen drawer ---------- */
  .main-nav,
  header.site nav.main {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    background: #fff;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform .42s cubic-bezier(.22, .68, .2, 1);
    will-change: transform;
    z-index: 120;
  }
  .main-nav.mnav-open,
  header.site nav.main.mnav-open {
    transform: none;
  }

  /* drawer header: wordmark + close */
  .mnav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #E8E5DE;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .mnav-head .mnav-logo { display: flex; align-items: center; line-height: 0; }
  .mnav-head .mnav-logo img { height: 34px; width: auto; }
  .mnav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 19px;
    line-height: 1;
    color: #2C2C2C;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* menu items */
  .main-nav ul {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    margin: 0;
    padding: 8px 22px 0 !important;
  }
  .main-nav ul > li {
    list-style: none;
    border-bottom: 1px solid #EFEDE8;
  }
  .main-nav ul > li > a,
  header.site nav.main > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 0;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    font-weight: 600;
    color: #2C2C2C;
    text-decoration: none;
    transition: color .2s;
  }

  /* pages whose nav is a flat list (product / blog template) */
  header.site nav.main > a {
    padding: 16px 22px;
    border-bottom: 1px solid #EFEDE8;
  }
  .main-nav ul > li > a.active,
  header.site nav.main > a.active,
  .main-nav ul > li > a:hover,
  header.site nav.main > a:hover { color: #8A6A2F; }

  /* the in-list language item and quote item move to the footer */
  .main-nav ul > li.lang-item,
  .main-nav ul > li:has(> a.nav-quote) { display: none !important; }
  header.site nav.main > .lang-switch { display: none !important; }

  /* drawer footer: language + quote CTA */
  .mnav-foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 18px 22px 24px;
    border-top: 1px solid #E8E5DE;
    background: #fff;
    position: sticky;
    bottom: 0;
  }
  .mnav-foot .lang-switch {
    align-self: flex-start;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 2px;
    border: 1px solid #DFDBD2;
    border-radius: 999px;
  }
  .mnav-foot .ls-btn {
    min-width: 42px;
    padding: 4px 12px;
    font-size: 10.5px;
    letter-spacing: 1.1px;
    justify-content: center;
    border-radius: 999px;
    color: #9C978E;
  }
  .mnav-foot .ls-btn.active { background: #C9A961; color: #fff; font-weight: 700; }

  .mnav-cta {
    display: block;
    text-align: center;
    padding: 15px 10px;
    background: #C9A961;
    color: #fff !important;
    font-size: 12.5px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
  }
  .mnav-cta:active { background: #B8964F; }
}

@media (max-width: 768px) and (max-height: 560px) {
  .mnav-head { padding: 12px 22px 10px; }
  .main-nav ul > li > a, header.site nav.main > a { padding: 12px 0; }
}

/* 2026-11-23: language switcher now shows native names, needs wider pills */
.mnav-lang .ls-btn, .mnav-foot .ls-btn {
  min-width: auto;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
}
/* 2026-11-24: language selection system (select-based, native names) */
.lang-switch { display: inline-flex; align-items: center; }
.lang-select {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='9' height='6'><path d='M0 0l4.5 6L9 0' fill='%238A6A2F'/></svg>");
  background-repeat: no-repeat;
  background-position: right 9px center;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 999px;
  padding: 5px 24px 5px 11px;
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: #2a2620;
  cursor: pointer;
  max-width: 168px;
}
.lang-select:hover { border-color: rgba(138,106,47,.55); }
.lang-select:focus-visible { outline: 2px solid #C9A961; outline-offset: 2px; }
.mnav-lang .lang-select { max-width: 140px; }
.mnav-foot .lang-select { width: 100%; max-width: 220px; padding-top: 6px; padding-bottom: 6px; }
/* 2026-11-24: the select carries its own pill, so neutralise the legacy pill wrapper */
.lang-switch {
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
  gap: 0 !important;
  min-width: 0 !important;
}
/* ===== 2026-11-24 unified header nav: Products only at level 1 ===== */
.nav-u { display: flex; align-items: center; gap: 24px; position: relative; }
.nav-u > a, .nav-u .nav-parent {
  font-family: inherit; font-weight: 600; font-size: 13px; letter-spacing: .13em;
  text-transform: uppercase; color: #3c3a36; text-decoration: none; padding: 4px 0; white-space: nowrap;
}
.nav-u > a:hover, .nav-u .nav-parent:hover { color: #8A6A2F; }
.nav-u .mnav-head, .nav-u .mnav-foot { display: none; }
.nav-group { position: relative; display: inline-block; }
.nav-group .sub {
  position: absolute; top: calc(100% + 12px); left: -16px; min-width: 200px;
  margin: 0; padding: 8px; list-style: none; background: #fff;
  border: 1px solid rgba(0,0,0,.12); border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
  display: none; flex-direction: column; gap: 2px; z-index: 90;
}
.nav-group .sub li { list-style: none; }
/* 2026-11-24b: desktop hover dropdown turned off on request —
   the Products item is now a plain link to the /products hub,
   the five sub-categories stay reachable from that page and from the mobile drawer */
.nav-group .sub a {
  display: block; padding: 7px 10px; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: #4a4640; text-decoration: none; border-radius: 4px;
}
.nav-group .sub a:hover { background: #faf6ea; color: #8A6A2F; }

@media (max-width: 768px) {
  .nav-u {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid rgba(0,0,0,.10);
    padding: 12px 18px 16px; box-shadow: 0 18px 34px rgba(0,0,0,.10);
    z-index: 200; max-height: 82vh; overflow: auto;
  }
  .nav-u.mnav-open { display: flex; }
  .nav-u .mnav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .nav-u .mnav-head .mnav-logo img { width: 120px; height: auto; }
  .nav-u .mnav-close { background: none; border: 0; font-size: 22px; line-height: 1; color: #6b655c; cursor: pointer; padding: 4px; }
  .nav-u > a, .nav-u .nav-parent { padding: 10px 0; font-size: 13px; border-bottom: 1px solid rgba(0,0,0,.06); }
  .nav-group { display: block; position: static; }
  .nav-group .sub {
    position: static; display: flex; box-shadow: none; border: 0;
    border-left: 1px solid rgba(0,0,0,.14); border-radius: 0;
    margin: 4px 0 6px 6px; padding: 2px 0 2px 12px; min-width: 0;
  }
  .nav-group .sub a { padding: 6px 0; font-size: 12px; }
  .nav-u .mnav-foot {
    display: flex; flex-direction: column; gap: 10px; margin-top: 14px;
    padding-top: 12px; border-top: 1px solid rgba(0,0,0,.08);
  }
}
/* ===== 2026-11-24b: desktop header — visible language switcher ===== */
@media (min-width: 769px) {
  /* the switcher used to live only inside the mobile drawer */
  .mnav-lang { display: flex; align-items: center; flex: 0 0 auto; }
  .mnav-lang .lang-switch { display: inline-flex; align-items: center; }
  .mnav-lang .lang-select { max-width: 138px; }

  /* header rhythm: logo left, menu + language + quote on the right */
  .site-header, header.site .bar { gap: 16px; }
  .site-header { flex-wrap: nowrap; }
  .nav-u { margin-left: auto; }
}

@media (min-width: 769px) and (max-width: 1120px) {
  .nav-u { gap: 12px; }
  .nav-u > a, .nav-u .nav-parent { font-size: 11.5px; letter-spacing: .08em; }
  .mnav-lang .lang-select { max-width: 106px; font-size: 10.5px; padding: 4px 20px 4px 9px; }
  .site-header, header.site .bar { gap: 10px; }
}

/* 2026-11-24: language flag icons */
.ls-flag{width:16px;height:11px;border-radius:2px;object-fit:cover;flex:none;box-shadow:0 0 0 1px rgba(0,0,0,.12);vertical-align:middle;}
.lang-switch .ls-flag-sel{margin-right:6px;}
nav .ls-flag-sel{margin-right:6px;}
.lang-switch .ls-btn .ls-flag{margin-left:5px;}
.mnav-lang .lang-switch,.mnav-foot .lang-switch{flex-direction:row;align-items:center;}

/* ===== RTL (ar) 镜像覆盖：仅 [dir="rtl"] 命中，不影响 LTR 语言 ===== */
[dir="rtl"] .nav-toggle,[dir="rtl"] .menu-btn{margin-left:0;margin-right:-8px;}
[dir="rtl"] .mnav-close{margin-right:0;margin-left:-8px;}
[dir="rtl"] .nav-group .sub{left:auto;right:-16px;}
[dir="rtl"] .nav-u{margin-left:0;margin-right:auto;}
[dir="rtl"] .lang-switch .ls-flag-sel,[dir="rtl"] nav .ls-flag-sel{margin-right:0;margin-left:6px;}
[dir="rtl"] .lang-switch .ls-btn .ls-flag{margin-left:0;margin-right:5px;}
@media (max-width:768px){
  [dir="rtl"] .nav-group .sub{border-left:none;border-right:1px solid rgba(0,0,0,.14);margin:4px 6px 6px 0;padding:2px 12px 2px 0;}
}

/* ===== 2026-11-27: remove language flag icons site-wide =====
   Flags were rendered at native 90x60 whenever mnav.css missed a rule or
   loaded late, and B2B buyers do not need a nationality badge next to the
   language list. Hide every flag node and clear the spacing it left behind. */
.ls-flag,
.ls-flag-sel {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
img[src*="/images/flag-"] { display: none !important; }
.lang-switch { padding-left: 0 !important; padding-right: 0 !important; box-shadow: none !important; }
.lang-switch .ls-flag-sel,
nav .ls-flag-sel { margin-right: 0 !important; margin-left: 0 !important; }
.lang-switch .ls-btn .ls-flag { margin-left: 0 !important; margin-right: 0 !important; }
[dir="rtl"] .lang-switch .ls-flag-sel,
[dir="rtl"] nav .ls-flag-sel,
[dir="rtl"] .lang-switch .ls-btn .ls-flag { margin-right: 0 !important; margin-left: 0 !important; }