/* Two-tier header for the product pages (korean-used-cars/, korean-used-oem-parts/), 2026-11-09.
   Global nav = same menu as the main site (cream, Inter). Local nav = this product line (forest, sticky). */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

html { scroll-padding-top: 88px; }

/* ---- Global nav ---- */
.gnav { position: relative; z-index: 60; background: #F4F3F1; color: #1A1917; border-bottom: 1px solid #D8D5CE;
  font-family: "Inter", "Pretendard Variable", Pretendard, system-ui, sans-serif; }
.gnav__in { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 24px; }
.gnav__brand { display: inline-flex; align-items: center; min-height: 44px; }
.gnav__brand img { height: 28px; width: auto; display: block; }
.gnav__nav { flex: 1; }
.gnav__nav ul { display: flex; justify-content: center; gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.gnav__nav a { position: relative; display: inline-block; padding: 10px 0; color: #1A1917; text-decoration: none; font-size: 15px; }
.gnav__nav a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; margin-left: -9px; height: 2px; border-radius: 2px;
  background: #1D5141; transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.gnav__nav a:hover { color: #1D5141; }
.gnav__nav a:hover::after, .gnav__nav a.is-active::after { transform: scaleX(1); }
.gnav__nav a.is-active { color: #1D5141; }
.gnav__contact { display: none; }
.gnav__langs { display: flex; align-items: center; }
.gnav__lang { position: relative; min-width: 36px; height: 44px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  color: #6F6C66; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.gnav__lang + .gnav__lang::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: #D8D5CE; }
.gnav__lang:hover { color: #1A1917; }
.gnav__lang[aria-current="page"] { color: #1A1917; font-weight: 650; }
.gnav__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: #1D5141; color: #F4F3F1;
  text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.gnav__cta:hover { background: #123A2E; color: #F4F3F1; }
.gnav__menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: #1A1917; color: #F4F3F1;
  align-items: center; justify-content: center; cursor: pointer; }
.gnav :focus-visible { outline: 2px solid #1D5141; outline-offset: 3px; border-radius: 4px; }

/* ---- Local nav (sticky) ---- */
.lnav { position: sticky; top: 0; z-index: 50; color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.12);
  background: rgba(36, 82, 67, .86); /* forest #245243, slightly see-through like the main nav */
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .lnav { background: #245243; } }
.lnav__in { max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 64px; display: flex; align-items: center; gap: 24px; }
.lnav__tabs { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.18); flex-shrink: 0; margin-right: 32px; }
.lnav__tab { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; color: rgba(255,255,255,.8);
  text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.lnav__tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.lnav__tab[aria-current="page"] { background: #DEF737; color: #0E3A2C; }
.lnav__anchors { flex: 1; min-width: 0; }
.lnav__anchors ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.lnav__anchors a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; white-space: nowrap; }
.lnav__anchors a:hover { color: #DEF737; }
.lnav__anchors a.is-here { color: #fff; box-shadow: inset 0 -2px 0 #DEF737; }
.lnav__cta { flex-shrink: 0; }
.lnav :focus-visible { outline: 2px solid #DEF737; outline-offset: 2px; border-radius: 4px; }

/* The order summaries were sticky at the very top; move them below the local nav */
.sum, .b-sum { top: 80px !important; }

@media (max-width: 960px) {
  .gnav__in { height: 64px; gap: 12px; }
  .gnav__brand { flex: 1; }
  .gnav__cta { display: none; }
  .gnav__menu { display: inline-flex; }
  .gnav__nav { position: absolute; left: 0; right: 0; top: 100%; background: #F4F3F1; border-bottom: 1px solid #D8D5CE; display: none; }
  .gnav__nav.is-open { display: block; }
  .gnav__nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .gnav__nav a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid #D8D5CE; }
  .gnav__nav a::after { display: none; }
  .gnav__contact { display: block; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 124px; }
  .lnav__in { flex-wrap: wrap; gap: 0 12px; padding: 8px 16px 0; }
  .lnav__tabs { order: 1; margin-right: 0; }
  .lnav__cta { order: 2; margin-left: auto; }
  .lnav__anchors { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 0; padding: 0 16px; }
  .lnav__anchors::-webkit-scrollbar { display: none; }
  .lnav__anchors ul { gap: 18px; }
  .sum, .b-sum { top: 132px !important; }
  .gnav__brand img { height: 24px; }
}
@media (max-width: 420px) {
  .lnav__tab { padding: 0 12px; font-size: 13px; }
  .lnav__cta.btn { padding: 0 14px !important; font-size: 13px !important; }
}

/* Solid surface page (2026-11-10): one page name instead of the cars | parts switch, and a CTA that does not need css/buttons.css */
.lnav__tab--title { background: #DEF737; color: #0E3A2C; cursor: default; }
.lnav__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: #DEF737; color: #0E3A2C; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s cubic-bezier(.2,.7,.2,1); }
.lnav__btn:hover { background: #E9FF6A; color: #0E3A2C; }
@media (max-width: 420px) { .lnav__btn { padding: 0 14px; font-size: 13px; } }
/* Bar without the switch (solid-surface/): anchors sit on the left edge */
.lnav__in > .lnav__anchors:first-child { margin-left: -2px; }
@media (max-width: 760px) { .lnav__in > .lnav__anchors:first-child { order: 1; flex-basis: auto; flex: 1; margin: 0; padding: 0; } .lnav__in > .lnav__anchors:first-child + .lnav__cta { order: 2; } }
