/* ===== Site header v2 (SITE_HEADER_20260929): two rows on desktop =====
   topline  (40px, deep navy): slogan | WhatsApp · phone · Track Order · language
   mainline (80px, white):     logo + tagline | centred nav | search · Inquiry
   The topline collapses once the page is scrolled (main.js toggles .header-scrolled). On phones only the mainline shows;
   the topline items reappear at the bottom of the open mobile menu (site-header.js moves the node). */
.header-v2, .header-v2.header-scrolled { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 #dfe5ee, 0 8px 24px rgba(15,23,42,.06); backdrop-filter: none; }
.header-v2 > .container { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; max-width: 1760px; height: auto; padding: 0 40px; gap: 0; position: relative; }
.header-v2 .topline, .header-v2 .mainline { width: auto; align-self: stretch; }

/* --- topline (full-bleed: negative side margins reach the viewport edges, padding realigns the content) --- */
.header-v2 .topline { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 40px; margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%); color: #fff; background: linear-gradient(90deg, #081f4a 0%, #0b2a63 40%, #0f3b8a 62%, #0a2557 100%); overflow: visible; transition: height .25s, opacity .2s; }   /* overflow must stay visible: the language menu drops out of this bar */
.header-v2 .topline::after { content: ''; position: absolute; left: 44%; top: 0; width: 34%; height: 100%; background: radial-gradient(ellipse 50% 120% at center, rgba(90,160,255,.45) 0%, rgba(90,160,255,0) 62%); pointer-events: none; }
.header-v2.header-scrolled .topline { height: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.header-v2 .slogan { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.header-v2 .slogan b { font-weight: 800; letter-spacing: .07em; color: #fff; }
.header-v2 .slogan i { width: 1px; height: 13px; background: rgba(255,255,255,.3); }
.header-v2 .topline-tools { position: relative; z-index: 1; display: flex; align-items: center; gap: 0; }
.header-v2 .tool { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: #fff; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.header-v2 .topline .tool:hover { background: rgba(255,255,255,.12); color: #fff; }
.header-v2 .tool svg { width: 18px; height: 18px; }
.header-v2 .tool-wa svg { color: #25d366; width: 19px; height: 19px; }
.header-v2 .tool-wa span { font-weight: 600; }
.header-v2 .tool-sep { width: 1px; height: 16px; background: rgba(255,255,255,.3); margin: 0 6px; }

/* language dropdown, built by site-header.js next to the original #langSwitcher (kept for i18n.js) */
.header-v2 .lang-switcher { display: none; }
.header-v2 .lang-dd { position: relative; }
.header-v2 .lang-cur { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 0; border-radius: 7px; background: none; font: 600 13.5px var(--font); letter-spacing: .03em; color: #fff; cursor: pointer; }
.header-v2 .lang-cur:hover, .header-v2 .lang-dd.open .lang-cur { background: rgba(255,255,255,.12); }
.header-v2 .lang-cur svg { width: 13px; height: 13px; opacity: .8; transition: transform .2s; }
.header-v2 .lang-dd.open .lang-cur svg { transform: rotate(180deg); }
.header-v2 .lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.18); display: none; z-index: 60; }
.header-v2 .lang-dd.open .lang-menu { display: block; }
.header-v2 .lang-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* hover bridge over the gap between button and menu */
.header-v2 .lang-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 12px; border: 0; border-radius: 8px; background: none; font: 500 14px var(--font); color: var(--text); text-align: left; cursor: pointer; }
.header-v2 .lang-menu button span { font-size: 12px; color: var(--text-muted); }
.header-v2 .lang-menu button:hover { background: var(--bg-muted); color: var(--blue); }
.header-v2 .lang-menu button.active { color: var(--blue); font-weight: 700; }

/* --- mainline --- */
.header-v2 .mainline { display: flex; align-items: center; justify-content: space-between; gap: 36px; height: 80px; }
.header-v2 .brand { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.header-v2 .logo { flex: 0 0 auto; }
.header-v2 .logo-img { height: 64px; }                   /* the PNG carries a 42px wordmark centred in a 64px box */
.header-v2 .logo-tag { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 1.5px solid #cfd6e0; font-size: 11px; font-weight: 600; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; color: #6b7686; white-space: nowrap; }
.header-v2 .nav { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; gap: 0; }
.header-v2 .nav-links { display: flex; align-items: center; gap: 8px; margin: 0 auto; }
.header-v2 .nav-links > a, .header-v2 .nav-dd-trigger { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 10px 18px; font-size: 15.5px; font-weight: 600; letter-spacing: .005em; color: #101b33; text-decoration: none; white-space: nowrap; cursor: pointer; border-radius: 8px; transition: color .15s; }
.header-v2 .nav-links > a::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.header-v2 .nav-links > a:hover, .header-v2 .nav-links > a.active, .header-v2 .nav-dd-trigger:hover { color: var(--blue); }
.header-v2 .nav-links > a:hover::after, .header-v2 .nav-links > a.active::after { transform: scaleX(1); }
.header-v2 .nav-dd-trigger .dd-arrow, .header-v2 .nav-dd-trigger svg { width: 14px; height: 14px; opacity: .7; }
.header-v2 .nav-tools { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.header-v2 .nav-tools .tool { padding: 9px 11px; color: #101b33; }
.header-v2 .nav-tools .tool:hover { background: var(--bg-muted); color: var(--blue); }
.header-v2 .tool-search svg { width: 21px; height: 21px; stroke-width: 2; }
.header-v2 .tool-sep--main { height: 26px; background: #d5dbe4; margin: 0 12px 0 8px; }

/* Inquiry button: navy pill with the cart icon; the count comes from the existing #cartCount */
.header-v2 .cart-btn { margin-left: 0; height: 42px; padding: 0 24px 0 20px; border-radius: 999px; background: var(--blue); color: #fff; font: 700 14.5px var(--font); letter-spacing: .01em; gap: 5px; box-shadow: 0 6px 16px rgba(30,64,175,.24); transition: background .15s, transform .15s, box-shadow .15s; }
.header-v2 .cart-btn:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30,64,175,.28); }
.header-v2 .cart-btn > svg { display: inline-block; width: 18px; height: 18px; margin-right: 3px; flex: 0 0 auto; }
.header-v2 .cart-btn .cart-count { position: static; display: inline; min-width: 0; height: auto; padding: 0; margin: 0; border-radius: 0; background: none; color: inherit; font: inherit; line-height: inherit; }
.header-v2 .cart-btn .cart-count::before { content: '('; }
.header-v2 .cart-btn .cart-count::after { content: ')'; }

@media (max-width: 1499px) { .header-v2 .logo-tag { display: none; } }
@media (max-width: 1299px) { .header-v2 .tool-phone, .header-v2 .tool-phone + .tool-sep { display: none; } }
@media (max-width: 1199px) { .header-v2 .slogan span, .header-v2 .slogan i { display: none; } .header-v2 .nav-links > a, .header-v2 .nav-dd-trigger { padding: 10px 12px; font-size: 15px; } }
@media (max-width: 1040px) { .header-v2 .nav-links > a, .header-v2 .nav-dd-trigger { padding: 8px 9px; font-size: 14px; } .header-v2 .mainline { gap: 20px; } }
@media (max-width: 968px) {
  .header-v2 > .container { padding: 0 16px; }
  .header-v2 .topline { display: none; }
  .header-v2 .mainline { height: 64px; }
  .header-v2 .logo-img { height: 52px; }
  .header-v2 .nav { display: none; }
  .header-v2.mobile-open .nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; padding: 4px 20px 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 12px 30px rgba(15,23,42,.12); max-height: calc(100vh - 64px); overflow-y: auto; }
  .header-v2.mobile-open .nav-links { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .header-v2.mobile-open .nav-links > a, .header-v2.mobile-open .nav-dd-trigger { display: flex; padding: 13px 0; border-bottom: 1px solid var(--border-light); border-radius: 0; font-size: 16px; }
  .header-v2.mobile-open .nav-links > a::after { display: none; }
  .header-v2.mobile-open .nav-dd { display: flex; flex-direction: column; }
  .header-v2.mobile-open .nav-dd-menu { position: static; display: block; transform: none; opacity: 1; pointer-events: auto; box-shadow: none; border: 0; width: 100%; padding: 0 0 8px 12px; }
  .header-v2.mobile-open .nav-tools { flex-wrap: wrap; gap: 8px; padding: 14px 0 16px; }
  .header-v2.mobile-open .nav-tools .tool-sep--main { display: none; }
  .header-v2.mobile-open .nav .cart-btn { display: inline-flex; margin-left: 0; }
  .header-v2 .cart-btn span:not(.cart-count) { display: inline; }
  /* topline items (WhatsApp / phone / Track Order / language) become the dark last block of the open menu */
  .header-v2.mobile-open .nav .topline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; height: auto; margin: 0 -20px; padding: 10px 16px 12px; overflow: visible; }
  .header-v2.mobile-open .nav .topline::after { display: none; }
  .header-v2.mobile-open .nav .topline .slogan { display: none; }
  .header-v2.mobile-open .nav .topline-tools { flex-wrap: wrap; gap: 4px 0; }
}
