/* VAPEURS Navigation & Search — nav-common.css
   Extracted from heard.html for external caching.
   Version: 1.0.0 */

  @import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500;700;900&display=swap');
  @import url('/wp-content/uploads/css/design-tokens.css');

  /* ========== Navbar ========== */

  /* -- Fixed Header Container -- */
  .nv-head {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99999;
    font-family: var(--font-family);
    transition: transform 0.35s ease;
  }
  .nv-head.nv-mob-open { overflow: visible; }
  .nv-head * { box-sizing: border-box; }

  /* WordPress Admin Bar Compensation */
  body.admin-bar .nv-head { top: 32px; }

  /* -- Warning Bar -- */
  .nv-warn {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-on-dark-subtle);
    padding: 0 20px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
  }
  .nv-head.nv-scrolled .nv-warn {
    height: 0;
    padding: 0 20px;
    opacity: 0;
    pointer-events: none;
  }
  .nv-warn-inner {
    max-width: 1200px; width: 100%;
    display: flex; align-items: center;
    justify-content: center; gap: 12px;
  }
  .nv-warn-icon {
    width: 16px; height: 16px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .nv-warn-icon svg { width: 14px; height: 14px; color: var(--color-warning); }
  .nv-warn-text {
    font-size: 11px; font-weight: 400;
    color: var(--text-on-dark-xs);
    letter-spacing: 0.3px; line-height: 1;
    text-align: center;
  }
  .nv-warn-text strong { color: var(--color-warning); font-weight: 700; }
  .nv-warn-sep {
    display: inline-block; width: 1px; height: 10px;
    background: rgba(255,255,255,0.15);
    margin: 0 10px; vertical-align: middle;
  }

  /* -- Main Nav -- */
  .nv-head-nav {
    position: relative;
  }
  .nv-head-spacer {
    height: 56px;
  }
  .nv-bar {
    background: var(--bg-white);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s, border-color 0.3s;
  }
  .nv-bar.nv-shadow {
    box-shadow: var(--shadow-nav-scrolled);
    border-bottom-color: transparent;
  }
  .nv-bar-inner {
    max-width: 1200px; width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Logo */
  .nv-logo {
    display: inline-flex; align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 0.3s;
  }
  .nv-logo img {
    height: 32px; width: auto;
    display: block;
  }
  .nv-logo:hover { opacity: 0.85; }

  /* Center Nav Links */
  .nv-links {
    display: flex; align-items: center;
    gap: 32px; list-style: none;
    margin: 0; padding: 0;
    height: 100%;
  }
  .nv-links > li {
    position: static;
    height: 56px;
    display: flex; align-items: center;
  }
  .nv-links > li > a {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 700;
    color: var(--text-nav);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s;
    position: relative;
    padding: 0;
    line-height: 1;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
  }
  .nv-links > li > a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; background: var(--brand-primary);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
  }
  .nv-links > li > a:hover { color: var(--brand-primary); }
  .nv-links > li > a:hover::after { transform: scaleX(1); }
  .nv-links > li > a.nv-active { color: var(--brand-primary); }
  .nv-links > li > a.nv-active::after {
    transform: scaleX(1);
    background: var(--brand-primary);
  }
  .nv-chevron {
    width: 10px; height: 7px;
    transition: transform 0.25s;
    flex-shrink: 0;
  }
  .nv-links > li.nv-open .nv-chevron {
    transform: rotate(180deg);
  }

  /* Horizontal sub-nav dropdown for About Us — anchored below parent */
  .nv-links > li.nv-has-dropdown { position: static; }
  .nv-dropdown {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 32px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    padding: 14px 40px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    white-space: nowrap;
  }
  .nv-links > li.nv-has-dropdown:hover .nv-dropdown {
    opacity: 1; visibility: visible;
  }
  .nv-dropdown li a {
    display: inline-block;
    font-size: 12px; font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
    padding: 0;
  }
  .nv-dropdown li a:hover {
    color: var(--brand-primary);
  }
  .nv-dropdown li a::after { display: none; }
  .nv-dropdown li + li::before {
    content: '';
    position: absolute;
    left: -16px; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 14px;
    background: var(--border-light);
  }
  .nv-dropdown li {
    position: relative;
  }

  /* Right: Search + Store (optional icons area) */
  .nv-right {
    display: flex; align-items: center; gap: 16px;
    flex-shrink: 0;
  }
  .nv-icon-btn {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
  }
  .nv-icon-btn:hover { background: rgba(14,165,233,0.06); }
  .nv-icon-btn:hover svg { color: var(--brand-primary); }
  .nv-icon-btn svg {
    width: 22px; height: 22px; color: var(--text-nav);
    transition: color 0.2s;
  }
  .nv-store-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700;
    color: var(--bg-white);
    background: var(--brand-primary);
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
  }
  .nv-store-btn:hover { background: var(--brand-primary-dark); box-shadow: 0 2px 12px rgba(14,165,233,0.3); }

  /* -- Mega Menu Overlay -- */
  .nv-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
  }
  .nv-overlay.nv-show {
    opacity: 1; visibility: visible;
    pointer-events: auto;
  }

  /* -- Mega Menu Panel -- */
  .nv-mega {
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    overflow: hidden;
  }
  .nv-mega.nv-show {
    opacity: 1; visibility: visible;
    transform: translateY(0);
  }
  .nv-mega-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 40px 40px;
    display: flex;
    gap: 0;
    min-height: 320px;
  }

  /* Left: Category List */
  .nv-mega-cats {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-right: 1px solid var(--border-light);
    padding-right: 24px;
    margin-right: 32px;
  }
  .nv-mega-cat {
    display: flex; align-items: center;
    justify-content: space-between;
    font-size: 13px; font-weight: 500;
    color: var(--text-secondary) !important;
    text-decoration: none;
    padding: 12px 12px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    cursor: pointer;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    font-family: var(--font-family);
    text-align: left;
    width: 100%;
  }
  .nv-mega-cat:hover {
    color: var(--brand-navy) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
  }
  .nv-mega-cat.nv-cat-active {
    color: var(--brand-navy) !important;
    font-weight: 700;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
  }
  .nv-mega-cat-arrow {
    width: 7px; height: 10px;
    flex-shrink: 0;
    color: var(--brand-primary);
    transition: transform 0.2s, color 0.2s;
    opacity: 0;
  }
  .nv-mega-cat.nv-cat-active .nv-mega-cat-arrow {
    opacity: 1;
  }
  .nv-mega-cat-all {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    transition: gap 0.2s;
  }
  .nv-mega-cat-all:hover { gap: 10px; }
  .nv-mega-cat-all svg { width: 14px; height: 14px; }

  /* Right: Product Showcase */
  .nv-mega-prod-area {
    flex: 1; min-width: 0;
    position: relative;
    overflow: hidden;
  }
  .nv-mega-prod-panel {
    display: none;
  }
  .nv-mega-prod-panel.nv-panel-active {
    display: block;
  }
  .nv-mega-prod-scroll {
    display: flex;
    gap: 60px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 5px 0 8px;
    scroll-behavior: smooth;
  }

  /* Product Card - Vaporesso style */
  .nv-pcard {
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: transform 0.25s;
    display: block;
    text-align: center;
  }
  .nv-pcard:hover { transform: translateY(-3px); }
  .nv-pcard-img {
    width: 130px; height: 130px;
    border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 4px;
    margin: 0 auto;
    padding: 0;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    transition: border-color .3s, box-shadow .3s;
  }
  .nv-pcard:hover .nv-pcard-img { border-color: var(--border-brand); box-shadow: 0 4px 16px rgba(14,165,233,0.12); }
  .nv-pcard-img svg { width: 32px; height: 32px; color: #CBD5E1; }
  .nv-pcard-img span {
    font-size: 10px; color: #94A3B8; font-weight: 400;
    letter-spacing: 0.3px; margin-top: 2px;
  }
  .nv-pcard-info {
    padding-top: 14px;
  }
  .nv-pcard-name {
    font-size: 13px; font-weight: 600; color: var(--text-nav);
    text-align: center; line-height: 1.2;
  }
  .nv-pcard-new {
    font-size: 12px; font-weight: 500;
    color: var(--social-youtube);
    text-align: center; margin-top: 5px;
  }

  /* Nav arrows for product scroll — HIDDEN */
  .nv-scroll-btn {
    display: none !important;
  }

  /* -- Hamburger (Mobile) -- */
  .nv-burger {
    display: none;
    width: 36px; height: 36px;
    background: none; border: none;
    cursor: pointer;
    position: relative; padding: 0;
    flex-shrink: 0;
  }
  .nv-burger span {
    display: block; width: 20px; height: 2px;
    background: var(--bg-dark);
    border-radius: 2px;
    position: absolute; left: 8px;
    transition: all 0.3s;
  }
  .nv-burger span:nth-child(1) { top: 11px; }
  .nv-burger span:nth-child(2) { top: 17px; }
  .nv-burger span:nth-child(3) { top: 23px; }
  .nv-burger.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
  .nv-burger.open span:nth-child(2) { opacity: 0; }
  .nv-burger.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

  /* -- Mobile Panel -- */
  .nv-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    overflow-y: auto;
    max-height: 0;
    transition: max-height 0.4s ease;
    z-index: 99998;
  }
  .nv-mobile.open { max-height: 75vh; }
  .nv-mobile-inner { padding: 8px 20px 20px; }
  .nv-mobile a {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 500;
    color: var(--bg-dark);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-divider);
    transition: color 0.2s, padding-left 0.2s;
  }
  .nv-mobile a:last-child { border-bottom: none; }
  .nv-mobile a:hover { color: var(--brand-primary); padding-left: 6px; }
  .nv-mobile a.nv-active { color: var(--brand-primary); }
  .nv-mobile-sub { padding-left: 16px; }
  .nv-mobile-sub a { font-size: 13px; font-weight: 400; color: var(--text-secondary); padding: 8px 0; }

  /* -- Responsive -- */
  @media (max-width: 960px) {
    .nv-links { display: none !important; }
    .nv-burger { display: block !important; }
    .nv-mobile { display: block !important; }
    .nv-right { gap: 8px; }
    .nv-store-btn { display: none !important; }
    .nv-lang { display: none !important; }
    .nv-mobile-lang { display: block !important; }
    .nv-icon-btn { display: flex !important; }
  }
  @media (max-width: 768px) {
    .nv-warn { height: auto; padding: 8px 16px; }
    .nv-warn-text { font-size: 10px; }
    .nv-warn-sep { margin: 0 6px; }
    .nv-bar { height: 50px; }
    .nv-bar-inner { padding: 0 20px; }
    .nv-logo img { height: 28px; }
    .nv-head-spacer { height: 50px; }
    body.admin-bar .nv-head { top: 46px; }
  }
  @media (max-width: 480px) {
    .nv-warn-icon { display: none; }
  }

  /* -- Search Modal -- */
  .nv-search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 110px;
  }
  .nv-search-overlay.nv-search-open { display: flex; }
  .nv-search-box {
    background: var(--bg-white);
    width: 720px; max-width: 92vw;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.18);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nv-search-open .nv-search-box {
    transform: translateY(0);
    opacity: 1;
  }
  .nv-search-head {
    display: flex; align-items: center; gap: 14px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border-light);
  }
  .nv-search-head svg { width: 22px; height: 22px; color: var(--text-muted); flex-shrink: 0; }
  .nv-search-input {
    flex: 1; border: none; outline: none;
    font-size: 18px; font-weight: 400; color: var(--bg-dark);
    font-family: var(--font-family);
    background: transparent;
  }
  .nv-search-input::placeholder { color: var(--text-muted); }
  .nv-search-close {
    font-size: 12px; font-weight: 500; color: var(--text-muted);
    background: var(--bg-divider); border: none; cursor: pointer;
    padding: 6px 12px; border-radius: 4px;
    font-family: var(--font-family);
    transition: background 0.2s;
  }
  .nv-search-close:hover { background: var(--border-light); }
  .nv-search-body {
    max-height: 480px; overflow-y: auto;
    padding: 14px 10px;
  }
  .nv-search-body::-webkit-scrollbar { width: 4px; }
  .nv-search-body::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }
  .nv-search-empty {
    padding: 48px 24px; text-align: center;
    font-size: 14px; color: var(--text-muted); line-height: 1.6;
  }
  .nv-search-empty svg { width: 36px; height: 36px; color: var(--border-light); margin-bottom: 12px; }
  .nv-search-hint {
    padding: 24px; text-align: center;
    font-size: 13px; color: var(--text-muted);
  }
  .nv-search-group { margin-bottom: 6px; }
  .nv-search-label {
    font-size: 10px; font-weight: 700; color: var(--text-muted);
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 10px 16px 4px;
  }
  .nv-search-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: 10px;
    text-decoration: none; color: inherit;
    transition: background 0.15s;
    cursor: pointer;
  }
  .nv-search-item:hover, .nv-search-item.nv-search-focus {
    background: var(--bg-light);
  }
  .nv-search-item-icon {
    width: 40px; height: 40px; border-radius: 10px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .nv-search-item-icon svg { width: 18px; height: 18px; color: var(--bg-white); }
  .nv-si-page { background: var(--brand-primary); }
  .nv-si-product { background: var(--brand-navy); }
  .nv-si-article { background: var(--color-warning); }
  .nv-search-item-text { flex: 1; min-width: 0; }
  .nv-search-item-title {
    font-size: 15px; font-weight: 500; color: var(--bg-dark);
    line-height: 1.3; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .nv-search-item-desc {
    font-size: 13px; color: var(--text-muted);
    margin-top: 3px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .nv-search-item mark {
    background: rgba(14,165,233,0.15); color: var(--brand-primary);
    font-weight: 600; border-radius: 2px; padding: 0 1px;
  }
  .nv-search-item-arrow {
    width: 16px; height: 16px; color: #D8D8D8; flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
  }
  .nv-search-item:hover .nv-search-item-arrow,
  .nv-search-item.nv-search-focus .nv-search-item-arrow {
    color: var(--brand-primary); transform: translateX(3px);
  }
  .nv-search-foot {
    padding: 12px 28px; border-top: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 16px;
    font-size: 12px; color: var(--text-muted);
  }
  .nv-search-foot kbd {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px;
    background: var(--bg-divider); border: 1px solid var(--border-light);
    border-radius: 4px; font-size: 11px; font-weight: 600;
    color: var(--text-muted); padding: 0 6px;
    font-family: var(--font-family);
  }

  /* ========== Language Switcher (Nav) ========== */

  /* Desktop toggle */
  .nv-lang {
    position: relative;
    display: flex;
    align-items: center;
  }
  .nvl-toggle {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: transparent !important;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 13px; font-weight: 700;
    color: var(--text-nav) !important;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
    min-width: 72px;
    justify-content: center;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
  }
  .nvl-toggle:hover {
    border-color: var(--brand-primary);
    background: rgba(14,165,233,0.04) !important;
    color: var(--text-nav) !important;
  }
  .nv-lang.nvl-open .nvl-toggle {
    border-color: var(--brand-primary);
    background: var(--bg-brand-subtle) !important;
    color: var(--brand-primary) !important;
  }
  .nvl-toggle svg { flex-shrink: 0; color: var(--text-muted); }
  .nvl-toggle .nvl-cur { letter-spacing: 0.5px; }
  .nvl-arrow { transition: transform 0.2s; }
  .nvl-open .nvl-arrow { transform: rotate(180deg); }

  /* Dropdown */
  .nvl-dropdown {
    position: absolute;
    top: calc(100% + 8px); right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 5px;
    display: none;
    min-width: 180px;
    z-index: 1000;
  }
  .nvl-open .nvl-dropdown { display: block; }
  .nvl-dropdown button {
    display: flex; align-items: center; gap: 10px;
    width: 100%; text-align: left;
    padding: 10px 14px;
    border: none; background: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 13px; font-weight: 500;
    color: var(--text-secondary);
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
  }
  .nvl-dropdown button:hover {
    background: var(--bg-light);
    color: var(--text-nav);
  }
  .nvl-dropdown button.nvl-active {
    background: var(--bg-brand-subtle);
    color: var(--brand-primary);
    font-weight: 700;
  }

  /* Mobile language buttons */
  .nv-mobile-lang {
    padding: 16px 0 8px;
    border-top: 1px solid var(--bg-divider);
    margin-top: 8px;
  }
  .nvm-label {
    font-size: 11px; font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0 0 8px;
  }
  .nvm-btns { display: flex; flex-wrap: wrap; gap: 6px; }
  .nvm-btns button {
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 13px; font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
  }
  .nvm-btns button:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
  }
  .nvm-btns button.nvm-active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--bg-white);
    font-weight: 700;
  }

  /* Responsive — language switcher mobile rules (see main @media block above) */
  @media (min-width: 961px) {
    .nv-mobile-lang { display: none !important; }
  }