/* GWS Parts main stylesheet -- extracted from gwp_head.asp
   Edit this file directly to change site-wide styles.
   Update the cache-busting version in gwp_head.asp when you do. */

/* ─────────────────────────────────────────────────────────────
   GWS Parts — design tokens
   ───────────────────────────────────────────────────────────── */
:root {
  --teal:          #007a6e;
  --teal-deep:     #005a50;
  --teal-subtle:   rgba(0,122,110,0.07);
  --teal-glow:     rgba(0,122,110,0.14);
  --bg:            #f3ede4;
  --surface:       #fdfaf6;
  --surface-raise: #ede8df;
  --card:          #ffffff;
  --card-border:   rgba(0,0,0,0.08);
  --ink:           #18211f;
  --ink-mid:       #4a5e5a;
  --ink-muted:     #748078;
  --ink-faint:     #a0b0ac;
  --border:        rgba(0,0,0,0.08);
  --border-mid:    rgba(0,0,0,0.13);
  --green-bg:      #e6f5ef;
  --green-ink:     #0b6e4a;
  --green-border:  rgba(11,110,74,0.2);
  --red-bg:        #fdf0ee;
  --red-ink:       #b83a2a;
  --red-border:    rgba(184,58,42,0.2);
  --amber-bg:      #fef4e6;
  --amber-ink:     #a86018;
  --amber-border:  rgba(168,96,24,0.2);
  --blue-bg:       #eaf2fb;
  --blue-ink:      #185fa5;
  --blue-border:   rgba(24,95,165,0.2);
  --radius:        10px;
  --radius-sm:     6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; transition: font-size 0.15s ease; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { border: 0; }

/* ─────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────── */
.gwp-header {
  display: flex; align-items: center;
  padding: 0 40px; gap: 24px;
  background: var(--teal-deep);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  height: 64px;
  position: sticky; top: 0; z-index: 300;
}
.gwp-logo img { height: 36px; width: auto; display: block; filter: brightness(0) invert(1); }

.gwp-search {
  flex: 0 0 380px; position: relative;
  margin-left: auto; margin-right: auto;
}
.gwp-search-input {
  width: 100%; padding: 9px 44px 9px 38px;
  background: #f3ede4; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
  color: var(--ink); outline: none;
  transition: border-color 0.14s, box-shadow 0.14s, background 0.14s;
}
.gwp-search-input::placeholder { color: var(--ink-muted); }
.gwp-search-input:focus {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
  background: #fff;
}
.gwp-search-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--ink-muted); width: 15px; height: 15px;
}
.gwp-search-kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: 'DM Mono', monospace; font-size: 0.60rem;
  color: var(--ink-muted); background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.12); border-radius: 4px;
  padding: 1px 5px; line-height: 1.7; pointer-events: none;
  transition: opacity 0.14s; white-space: nowrap;
}
.gwp-search-input:focus ~ .gwp-search-kbd { opacity: 0; }
@media (max-width: 600px) { .gwp-search-kbd { display: none; } }


/* search dropdown */
.gwp-search-drop {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  width: max(100%, 480px); background: var(--card);
  border: 1px solid var(--border-mid); border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.16); z-index: 500; overflow: hidden;
}
.gwp-search-drop.open { display: block; }
.gwp-search-hint {
  padding: 12px 16px; font-size: 0.80rem; color: var(--ink-muted);
  display: flex; align-items: center; gap: 8px;
}
.gwp-search-result {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px; text-decoration: none; color: var(--ink);
  transition: background 0.1s; border-top: 1px solid var(--border);
}
.gwp-search-result:first-child { border-top: none; }
.gwp-search-result:hover, .gwp-search-result.active { background: var(--surface); }
.gwp-sr-thumb {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-sm);
  object-fit: contain; background: var(--surface-raise); padding: 3px;
  border: 1px solid var(--border);
}
.gwp-sr-thumb-ph {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: var(--surface-raise); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.gwp-sr-code { font-family: 'DM Mono', monospace; font-size: 0.78rem; font-weight: 500; color: var(--teal); }
.gwp-sr-name { font-size: 0.78rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.gwp-sr-oem  { font-family: 'DM Mono', monospace; font-size: 0.70rem; color: var(--ink-faint); }
.gwp-search-footer { padding: 8px 16px; font-size: 0.76rem; color: var(--ink-faint); border-top: 1px solid var(--border); background: var(--surface); }


/* back-to-form floating indicator */
.gwp-back-form {
  position: fixed; bottom: 24px; right: 24px; z-index: 250;
  background: var(--teal); color: #fff;
  border: none; border-radius: 10px;
  padding: 10px 16px; font-size: 0.80rem; font-weight: 500;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.22s, transform 0.22s;
  pointer-events: none;
}
.gwp-back-form.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 860px) { .gwp-back-form { display: none; } }
/* font size overrides */
html[data-fs="sm"] { font-size: 13px; }
html[data-fs="lg"] { font-size: 17px; }

.gwp-btn-saved { background: var(--teal) !important; color: #fff !important; border-color: var(--teal) !important; }

/* floating cart FAB */
.gwp-cart-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  display: flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff;
  padding: 12px 18px; border-radius: 28px;
  text-decoration: none; font-size: 0.86rem; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: background 0.15s, transform 0.15s;
}
.gwp-cart-fab:hover { background: var(--teal-deep); transform: translateY(-1px); }
.gwp-cart-fab-count {
  background: #fff; color: var(--teal);
  font-size: 0.72rem; font-weight: 700; font-family: 'DM Mono', monospace;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
@media (max-width: 520px) {
  .gwp-cart-fab-label { display: none; }
  .gwp-cart-fab { padding: 12px; border-radius: 50%; }
}

/* cart button */
.gwp-cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8);
  text-decoration: none; transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.gwp-cart-btn:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.gwp-cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--teal); color: #fff;
  font-size: 0.60rem; font-weight: 700; font-family: 'DM Mono', monospace;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
}

/* dark toggle */
.gwp-font-group { display: flex; }
.gwp-font-group .gwp-font-toggle:first-child { border-radius: 6px 0 0 6px; border-right: none; }
.gwp-font-group .gwp-font-toggle:last-child  { border-radius: 0 6px 6px 0; }

.gwp-font-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px; color: rgba(255,255,255,0.8); cursor: pointer;
  padding: 5px 8px; font-size: 0.78rem; font-weight: 600;
  line-height: 1; transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.gwp-font-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.gwp-font-toggle.active { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.6); }

.gwp-dark-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 7px; padding: 5px 8px; cursor: pointer;
  color: rgba(255,255,255,0.7); display: flex; align-items: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.gwp-dark-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.gwp-nav {
  display: flex; align-items: center; gap: 24px;
  font-size: 0.82rem; color: rgba(255,255,255,0.75);
}
.gwp-nav a { color: rgba(255,255,255,0.75); transition: color 0.13s; }
.gwp-nav a:hover { color: #fff; text-decoration: none; }
.gwp-nav-phone {
  font-family: 'DM Mono', monospace; font-size: 0.76rem;
  color: rgba(255,255,255,0.6); white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────
   BREADCRUMB
   ───────────────────────────────────────────────────────────── */
.gwp-crumb {
  padding: 10px 40px;
  font-size: 0.76rem; color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.gwp-crumb a { color: var(--ink-muted); }
.gwp-crumb a:hover { color: var(--teal); text-decoration: none; }
.gwp-crumb-sep { color: var(--ink-faint); }

/* ─────────────────────────────────────────────────────────────
   PAGE LAYOUT
   ───────────────────────────────────────────────────────────── */
.gwp-page { max-width: 1180px; margin: 0 auto; padding: 28px 24px 32px; }

.gwp-hero {
  display: grid; grid-template-columns: minmax(0,500px) 1fr;
  gap: 32px; margin-bottom: 32px;
}

/* ─────────────────────────────────────────────────────────────
   IMAGE PANE
   ───────────────────────────────────────────────────────────── */
.gwp-images { display: flex; flex-direction: column; gap: 10px; }

.gwp-main-img {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); aspect-ratio: 4/3;
  overflow: hidden; position: relative; cursor: zoom-in;
}
.gwp-main-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 1rem;
  transition: transform 0.28s ease;
}
.gwp-main-img:hover img { transform: scale(1.05); }
.gwp-img-counter {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.4); color: #fff;
  font-family: 'DM Mono', monospace; font-size: 0.70rem;
  padding: 3px 9px; border-radius: 20px;
}

.gwp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; max-height: 66px; overflow: hidden; position: relative; }
.gwp-thumb-more { width: 58px; height: 58px; border: 1.5px dashed var(--border-mid); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.74rem; font-weight: 500; color: var(--ink-muted); cursor: pointer; flex-shrink: 0; background: var(--surface); }
.gwp-thumb-more:hover { border-color: var(--teal); color: var(--teal); }
.gwp-thumb {
  width: 58px; height: 58px; border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  background: var(--card); transition: border-color 0.15s;
  flex-shrink: 0;
}
.gwp-thumb:hover { border-color: var(--teal); }
.gwp-thumb.active { border-color: var(--teal); border-width: 2px; }
.gwp-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ─────────────────────────────────────────────────────────────
   INFO PANE
   ───────────────────────────────────────────────────────────── */
.gwp-info { display: flex; flex-direction: column; gap: 16px; }

.gwp-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gwp-badge {
  font-size: 0.68rem; padding: 3px 9px; border-radius: 20px;
  font-weight: 500; white-space: nowrap;
}
.gwp-badge-brand  { background: var(--teal-subtle); color: var(--teal); border: 1px solid rgba(0,122,110,0.2); }
.gwp-badge-mach   { background: var(--surface-raise); color: var(--ink-mid); border: 1px solid var(--border); }
.gwp-badge-sku    { background: var(--surface-raise); color: var(--ink-faint); border: 1px solid var(--border); font-family: 'DM Mono', monospace; }

.gwp-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.65rem; font-weight: 700; line-height: 1.2; color: var(--ink);
}
.gwp-title-brand { color: var(--teal); }

.gwp-subtitle { font-size: 0.82rem; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gwp-flag { width: 15px; vertical-align: -2px; }

.gwp-rule { height: 1px; background: var(--border); }

.gwp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.gwp-spec { display: flex; flex-direction: column; gap: 2px; }
.gwp-spec-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint); }
.gwp-spec-val   { font-size: 0.84rem; color: var(--ink); }
.gwp-spec-val.mono { font-family: 'DM Mono', monospace; font-size: 0.78rem; }

/* availability */
.gwp-avail {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 0.84rem; font-weight: 500;
}
.gwp-avail.in  { background: var(--green-bg);  border: 1px solid var(--green-border);  color: var(--green-ink); }
.gwp-avail.out { background: #b83a2a; border: 1px solid #922e22; color: #fff; font-weight: 700; font-size: 0.88rem; }
.gwp-avail-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.gwp-avail.out .gwp-avail-dot { width: 10px; height: 10px; background: rgba(255,255,255,0.8); }
.gwp-avail-dot.blink { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1;}50%{opacity:0.15;} }
.gwp-avail-ship { margin-left: auto; font-size: 0.76rem; font-weight: 400; color: var(--ink-muted); display: flex; align-items: center; gap: 5px; }

/* cta buttons */
.gwp-cta { display: flex; gap: 8px; }
.gwp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px;
  background: var(--teal); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.gwp-btn:hover { background: var(--teal-deep); color: #fff; }
.gwp-btn-primary {
  flex: 1; padding: 11px 20px;
  background: var(--teal); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  transition: background 0.15s;
}
.gwp-btn-primary:hover { background: var(--teal-deep); }
.gwp-btn-sec {
  padding: 11px 13px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--border-mid); border-radius: var(--radius-sm);
  font-size: 0.84rem; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s, background 0.15s;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.gwp-btn-sec:hover  { border-color: var(--teal); background: var(--teal-subtle); color: var(--teal); text-decoration: none; }
.gwp-share { display: flex; align-items: center; gap: 8px; }
.gwp-share-label { font-size: 0.74rem; color: var(--ink-muted); }
.gwp-share-pill svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; flex-shrink: 0; }
.gwp-share-signal { color: var(--teal) !important; }
.gwp-share-pill {
  font-size: 0.73rem; padding: 4px 11px;
  background: var(--surface-raise); color: var(--ink-muted);
  border: 1px solid var(--border); border-radius: 20px;
  transition: border-color 0.13s, color 0.13s;
}
.gwp-share-pill:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }

/* ─────────────────────────────────────────────────────────────
   BODY GRID
   ───────────────────────────────────────────────────────────── */
.gwp-body { display: grid; grid-template-columns: 1fr 340px; gap: 28px; }
.gwp-body > * { min-width: 0; }
.gwp-main { display: flex; flex-direction: column; gap: 20px; }

/* ─────────────────────────────────────────────────────────────
   CARDS
   ───────────────────────────────────────────────────────────── */
.gwp-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; }
.gwp-card-head { padding: 11px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.gwp-card-title { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 500; }
.gwp-card-body  { padding: 18px; }

/* ─────────────────────────────────────────────────────────────
   VERSION MATRIX
   ───────────────────────────────────────────────────────────── */
.gwp-vm { width: 100%; border-collapse: collapse; }
.gwp-vm-wrap { overflow-x: auto; }
.gwp-vm th {
  padding: 8px 16px; text-align: left;
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-faint); border-bottom: 1px solid var(--border);
  background: var(--surface); white-space: nowrap;
}
.gwp-vm td { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 0.84rem; vertical-align: middle; }
.gwp-vm tr:last-child td { border-bottom: none; }
.gwp-vm tr:hover td { background: #faf7f2; }
.gwp-vm tr.vm-hidden { display: none; }
.gwp-vm-expander {
  display: block; width: 100%; padding: 10px 16px;
  text-align: center; font-size: 0.80rem; color: var(--teal);
  cursor: pointer; background: var(--surface);
  border: none; border-top: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  transition: background 0.13s;
}
.gwp-vm-expander:hover { background: var(--surface-raise); }
body.dark .gwp-vm tr:hover td { background: #1f2b28; }
.gwp-vm-code { font-family: 'DM Mono', monospace; font-size: 0.78rem; font-weight: 500; }
.gwp-vm-std  { font-size: 0.76rem; color: var(--ink-faint); font-style: italic; }
.gwp-vm-qty  { font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--green-ink); font-weight: 500; }

.cond-pill { display: inline-block; font-size: 0.68rem; font-weight: 500; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.cond-used  { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-border); }
.cond-recon { background: var(--blue-bg);  color: var(--blue-ink);  border: 1px solid var(--blue-border); }
.cond-new   { background: var(--green-bg); color: var(--green-ink); border: 1px solid var(--green-border); }

/* ─────────────────────────────────────────────────────────────
   DESCRIPTION
   ───────────────────────────────────────────────────────────── */
.gwp-desc { font-size: 0.88rem; line-height: 1.75; color: var(--ink); }
.gwp-origin { margin-top: 14px; }
.gwp-origin-row {
  display: grid; grid-template-columns: 130px 1fr;
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.gwp-origin-label { padding: 8px 12px; font-size: 0.78rem; color: var(--ink-muted); background: var(--surface); border-right: 1px solid var(--border); }
.gwp-origin-val   { padding: 8px 12px; font-size: 0.82rem; display: flex; align-items: center; gap: 6px; }
.gwp-pdf-row  { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gwp-pdf-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem;
  padding: 5px 12px; background: var(--surface-raise); color: var(--ink-muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.gwp-pdf-link:hover { color: var(--teal); text-decoration: none; }

/* ─────────────────────────────────────────────────────────────
   SUCCESSOR CHAIN
   ───────────────────────────────────────────────────────────── */
.gwp-chain-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
}
.gwp-chain-item:last-child { border-bottom: none; }
.gwp-chain-item.cur { background: var(--teal-subtle); }
.gwp-chain-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 500;
  background: var(--surface-raise); border: 1px solid var(--border); color: var(--ink-muted);
}
.gwp-chain-num.cur { background: var(--teal-subtle); border-color: rgba(0,122,110,0.3); color: var(--teal); }
.gwp-chain-info { flex: 1; }
.gwp-chain-code { font-family: 'DM Mono', monospace; font-size: 0.80rem; font-weight: 500; }
.gwp-chain-name { font-size: 0.76rem; color: var(--ink-muted); margin-top: 1px; }
.gwp-chain-tag  { font-size: 0.70rem; color: var(--teal); white-space: nowrap; }

/* ─────────────────────────────────────────────────────────────
   RELATED PRODUCTS
   ───────────────────────────────────────────────────────────── */
.gwp-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px,1fr)); gap: 10px; }
.gwp-related-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  display: flex; flex-direction: column; gap: 0;
  transition: border-color 0.15s, background 0.15s; text-decoration: none; color: var(--ink);
}
.gwp-related-img {
  width: 100%; aspect-ratio: 4/3; object-fit: contain;
  background: var(--card); padding: 8px;
  border-bottom: 1px solid var(--border);
}
.gwp-related-img-ph {
  width: 100%; aspect-ratio: 4/3;
  background: var(--surface-raise);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
}
.gwp-related-img-wrap { position: relative; line-height: 0; }
.gwp-related-img-wrap .gwp-src-instock { top: 6px; right: 6px; }
.gwp-related-body { padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.gwp-src-instock {
  position: absolute; top: 8px; right: 8px;
  background: var(--green-bg); color: #0b6e4a;
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 2px 7px; border-radius: 4px;
}
.gwp-rel-dot {
  display: inline-block; vertical-align: middle;
  width: 8px; height: 8px; border-radius: 50%;
  margin-left: 4px; flex-shrink: 0;
}
.gwp-rel-dot.in  { background: #22c55e; }
.gwp-rel-dot.out { background: #b83a2a; }
.gwp-related-card:hover { border-color: var(--teal); background: var(--teal-subtle); text-decoration: none; }
.gwp-related-type { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.gwp-related-code { font-family: 'DM Mono', monospace; font-size: 0.78rem; font-weight: 500; color: var(--teal); }
.gwp-related-name { font-size: 0.76rem; color: var(--ink-muted); line-height: 1.4; }

/* ─────────────────────────────────────────────────────────────
   TRUST BLOCK
   ───────────────────────────────────────────────────────────── */
.gwp-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gwp-trust-item { display: flex; align-items: flex-start; gap: 11px; }
.gwp-trust-ico {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: var(--teal-subtle); border: 1px solid rgba(0,122,110,0.15);
  display: flex; align-items: center; justify-content: center;
}
.gwp-trust-text { font-size: 0.80rem; color: var(--ink-muted); line-height: 1.55; }
.gwp-trust-text strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 1px; font-size: 0.84rem; }
.gwp-trust-text a { color: var(--teal); }

/* ─────────────────────────────────────────────────────────────
   RFQ FORM SIDEBAR
   ───────────────────────────────────────────────────────────── */
.gwp-form-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; position: sticky; top: 84px; }
.gwp-form-head { padding: 15px 18px; background: var(--teal); }
.gwp-form-head-title { font-family: 'Syne', sans-serif; font-size: 1.02rem; font-weight: 700; color: #fff; }
.gwp-form-head-sub   { font-size: 0.75rem; color: rgba(255,255,255,0.72); margin-top: 3px; }
.gwp-form-body { padding: 16px; display: flex; flex-direction: column; gap: 11px; }

.gwp-field { display: flex; flex-direction: column; gap: 4px; }
.gwp-field label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); }
.gwp-field input,
.gwp-field select,
.gwp-field textarea {
  font-size: 0.84rem; font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border-mid); border-radius: var(--radius-sm);
  padding: 8px 10px; background: var(--surface); color: var(--ink); width: 100%;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.gwp-field input:focus,
.gwp-field select:focus,
.gwp-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.gwp-field textarea { resize: vertical; min-height: 66px; }
.gwp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gwp-ver-select { background: #f0fdf7; border-color: rgba(0,122,110,0.3) !important; }
.gwp-radio-row { display: flex; gap: 16px; padding-top: 2px; }
.gwp-radio-row label { font-size: 0.82rem; display: flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 300; }
.gwp-radio-row input { width: auto; }
.gwp-form-submit {
  width: 100%; padding: 12px; background: var(--teal); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 0.90rem; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: background 0.15s;
}
.gwp-form-submit:hover { background: var(--teal-deep); }
.gwp-form-disclaimer { font-size: 0.70rem; color: var(--ink-faint); text-align: center; padding: 0 16px 14px; line-height: 1.5; }

/* notify box */
.gwp-notify-inline { flex: 1; display: flex; align-items: stretch; }
.gwp-notify { margin: 0 16px 16px; padding: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.gwp-notify-title { font-size: 0.80rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.gwp-notify-row { display: flex; gap: 6px; }
.gwp-notify-row input { flex: 1; font-size: 0.80rem; padding: 8px 10px; border: 1px solid var(--border-mid); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; background: var(--card); color: var(--ink); }
.gwp-notify-row button { padding: 8px 14px; background: var(--ink); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 0.78rem; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; }
.gwp-notify-row button:hover { background: var(--teal); }
.gwp-notify-note { font-size: 0.70rem; color: var(--ink-faint); margin-top: 6px; }

/* message banners */
.gwp-msg { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 0.84rem; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.gwp-msg.ok  { background: var(--green-bg); color: var(--green-ink); border: 1px solid var(--green-border); }
.gwp-msg.err { background: var(--red-bg);   color: var(--red-ink);   border: 1px solid var(--red-border); }

/* internal section */
.gwp-internal-card { border-color: rgba(0,122,110,0.25); }
.gwp-internal-head { background: var(--teal-subtle); }
.gwp-internal-head .gwp-card-title { color: var(--teal); }

/* ─────────────────────────────────────────────────────────────
   LIGHTBOX
   ───────────────────────────────────────────────────────────── */
.gwp-lb {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.88); align-items: center; justify-content: center;
}
.gwp-lb.open { display: flex; }
.gwp-lb-img  { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); object-fit: contain; }
.gwp-lb-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.gwp-lb-nav   { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.14); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gwp-lb-nav:hover { background: rgba(255,255,255,0.26); }
.gwp-lb-prev { left: 18px; }
.gwp-lb-next { right: 18px; }

/* ─────────────────────────────────────────────────────────────
   MOBILE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .gwp-header  { padding: 0 16px; gap: 12px; height: 58px; }
  .gwp-nav     { display: none; }
  .gwp-nav-phone { display: none; }
  .gwp-dark-toggle { display: flex; }
  .gwp-font-group { display: none; }
  .gwp-search  { flex: 1; min-width: 0; }
  .gwp-crumb   { padding: 8px 16px; }
  .gwp-page    { padding: 16px 14px 80px; }
  .gwp-hero    { grid-template-columns: 1fr; gap: 20px; }
  .gwp-body    { grid-template-columns: 1fr; }
  .gwp-form-card { position: static; }
  .gwp-trust   { grid-template-columns: 1fr; }
  .gwp-mobile-rfq { display: block; }
  .gwp-mobile-panel-bg { display: none; }
}
@media (min-width: 861px) {
  .gwp-mobile-rfq { display: none; }
  .gwp-mobile-panel-bg.open { display: none !important; }
}

/* mobile floating button */
.gwp-mobile-rfq {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  padding: 15px 24px;
  background: var(--teal); color: #fff;
  border: none; font-size: 1rem; font-weight: 500;
  font-family: 'DM Sans', sans-serif; cursor: pointer; text-align: center;
}
/* mobile slide-up panel */
.gwp-mobile-panel-bg {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.5);
}
.gwp-mobile-panel-bg.open { display: block; }
.gwp-mobile-panel {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--card); border-radius: 16px 16px 0 0;
  max-height: 92vh; overflow-y: auto;
}
.gwp-mobile-handle { width: 40px; height: 4px; background: var(--border-mid); border-radius: 2px; margin: 12px auto 0; }
.gwp-mobile-close  { position: fixed; top: 14px; right: 16px; z-index: 410; background: var(--card); border: 1px solid var(--border); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; line-height: 1; color: var(--ink-muted); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.gwp-mobile-mount  { padding: 8px 0 20px; }

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */

/* recently viewed — card inside gwp-main */
.gwp-rv-card { overflow: visible; }
.gwp-rv-list {
  display: flex; gap: 10px; padding-bottom: 2px;
  scrollbar-width: none;
}
.gwp-rv-list::-webkit-scrollbar { display: none; }
@media (max-width: 768px) {
  .gwp-rv-list { scrollbar-width: thin; }
  .gwp-rv-list::-webkit-scrollbar { display: block; height: 4px; }
}
.gwp-rv-item {
  flex: 1 1 120px; max-width: 160px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s;
}
.gwp-rv-item:hover { border-color: var(--teal); text-decoration: none; }
.gwp-rv-img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--surface-raise); padding: 5px; display: block; }
.gwp-rv-img-ph { width: 100%; aspect-ratio: 4/3; background: var(--surface-raise); display: flex; align-items: center; justify-content: center; }
.gwp-rv-info { padding: 6px 7px 7px; }
.gwp-rv-code { font-family: 'DM Mono', monospace; font-size: 0.68rem; font-weight: 500; color: var(--teal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gwp-rv-name { font-size: 0.68rem; color: var(--ink-muted); line-height: 1.35; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* internal staff card table */
.gwp-int-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.gwp-int-table th {
  padding: 5px 8px; text-align: left; font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-faint); border-bottom: 1px solid var(--border);
  background: var(--surface); white-space: nowrap;
}
.gwp-int-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.gwp-int-table tr:last-child td { border-bottom: none; }
.gwp-int-table tbody tr:hover td { background: var(--surface); }
/* warehouse stock card (IP-whitelisted only) */
.gwp-wh-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.gwp-wh-table th {
  padding: 6px 10px; text-align: left; font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-faint); border-bottom: 1px solid var(--border);
  background: var(--surface); white-space: nowrap;
}
.gwp-wh-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.gwp-wh-table tr:last-child td { border-bottom: none; }
.gwp-wh-table tr:hover td { background: var(--surface); }
.gwp-wh-sid { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--ink-faint); }
.gwp-wh-loc { font-family: 'DM Mono', monospace; font-size: 0.76rem; }
.gwp-wh-loc2 { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--ink-muted); }
.gwp-wh-qty { font-family: 'DM Mono', monospace; font-size: 0.78rem; font-weight: 500; }
.gwp-wh-qty-orig { font-size: 0.72rem; color: var(--ink-faint); }
.gwp-user-badge { display:inline-block; padding:1px 5px; border-radius:4px; font-size:0.62rem; font-weight:700; font-family:'DM Mono',monospace; background:var(--surface-raise); color:var(--ink-muted); border:1px solid var(--border); vertical-align:middle; margin-left:6px; letter-spacing:0.03em; }
.gwp-wh-cond { font-size: 0.70rem; font-weight: 500; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.gwp-footer {
  margin-top: 0; background: var(--ink);
  color: rgba(255,255,255,0.5); font-size: 0.78rem;
}
.gwp-footer-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.gwp-footer-brand img { height: 30px; filter: brightness(0) invert(1) opacity(0.7); margin-bottom: 12px; }
.gwp-footer-brand p   { font-size: 0.78rem; line-height: 1.6; color: rgba(255,255,255,0.45); }
.gwp-footer-col h4    { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); margin-bottom: 12px; }
.gwp-footer-col ul    { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.gwp-footer-col a     { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.gwp-footer-col a:hover { color: #fff; text-decoration: none; }
.gwp-footer-bottom    { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 24px; max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: rgba(255,255,255,0.3); }
@media (max-width: 860px) {
  .gwp-footer-inner  { grid-template-columns: 1fr 1fr; gap: 28px; }
  .gwp-footer-brand  { grid-column: 1 / -1; }
  .gwp-footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
@media (max-width: 500px) {
  .gwp-footer-inner  { grid-template-columns: 1fr; }
}

/* ── Global mobile overflow protection ── */
@media (max-width: 768px) {
  .gwp-vm-wrap, .gwp-wh-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gwp-wh-table { min-width: 480px; }
}

/* ── Burger button ── */
.gwp-burger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; padding: 6px;
  background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.gwp-burger span {
  display: block; height: 2px; background: rgba(255,255,255,0.85);
  border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}
.gwp-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gwp-burger.open span:nth-child(2) { opacity: 0; }
.gwp-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) { .gwp-burger { display: flex; } }

/* ── Mobile nav drawer ── */
.gwp-mob-nav {
  display: none; position: fixed; top: 58px; left: 0; right: 0;
  background: var(--teal-deep, #005a50); z-index: 490;
  transform: translateY(-8px); opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}
.gwp-mob-nav.open {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}
.gwp-mob-nav-inner {
  display: flex; flex-direction: column;
  padding: 8px 0 16px;
}
.gwp-mob-nav-inner a {
  padding: 13px 24px; color: rgba(255,255,255,0.85);
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.1s, color 0.1s;
}
.gwp-mob-nav-inner a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.gwp-mob-nav-contact {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 4px; padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.gwp-mob-nav-contact a {
  font-size: 0.82rem; color: rgba(255,255,255,0.6) !important;
  border-bottom: none !important;
}
.gwp-mob-nav-overlay {
  display: none; position: fixed; inset: 0; top: 58px;
  background: rgba(0,0,0,0.4); z-index: 489;
}
@media (max-width: 860px) {
  .gwp-mob-nav { display: block; }
  .gwp-mob-nav-overlay.open { display: block; }
}

/* ── Search keyboard shortcut hidden on mobile ── */
@media (max-width: 860px) { .gwp-search-kbd { display: none; } }


#gwpSearchOverlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(243,237,228,0.82); backdrop-filter: blur(3px);
  align-items: center; justify-content: center;
  transition: opacity 0.15s;
}
#gwpSearchOverlay.visible { display: flex; }
.gwp-sov-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gwp-sov-spinner {
  width: 44px; height: 44px;
  animation: gwpSpin 0.8s linear infinite;
}
.gwp-sov-spinner circle {
  stroke: var(--teal); stroke-linecap: round;
  stroke-dasharray: 80; stroke-dashoffset: 60;
}
@keyframes gwpSpin { to { transform: rotate(360deg); } }
.gwp-sov-msg {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-muted);
}
body.dark #gwpSearchOverlay { background: rgba(15,22,20,0.85); }

/* ── Dark mode ── */
body.dark {
  --teal:          #2dd4bf;
  --teal-deep:     #14b8a6;
  --teal-subtle:   rgba(45,212,191,0.10);
  --teal-glow:     rgba(45,212,191,0.15);
  --bg:            #0f1614;
  --surface:       #1a2320;
  --surface-raise: #1f2b28;
  --card:          #1a2320;
  --card-border:   rgba(255,255,255,0.07);
  --ink:           #e8f0ee;
  --ink-mid:       #a8bfba;
  --ink-muted:     #8fa89f;
  --ink-faint:     #5a7870;
  --border:        rgba(255,255,255,0.07);
  --border-mid:    rgba(255,255,255,0.12);
  --green-bg:      rgba(14,122,90,0.15);
  --green-ink:     #34d399;
  --green-border:  rgba(52,211,153,0.25);
  --red-bg:        rgba(184,58,42,0.12);
  --red-ink:       #f87171;
  --red-border:    rgba(248,113,113,0.25);
  --amber-bg:      rgba(168,96,24,0.12);
  --amber-ink:     #fbbf24;
  --amber-border:  rgba(251,191,36,0.25);
  --blue-bg:       rgba(24,95,165,0.12);
  --blue-ink:      #60a5fa;
  --blue-border:   rgba(96,165,250,0.25);
}
body.dark .gwp-header  { background: #0b1210; }
body.dark .gwp-footer  { background: #080e0d; }
body.dark .gwp-search-input { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: #fff; }
body.dark .gwp-search-input::placeholder { color: rgba(255,255,255,0.5); }
body.dark .gwp-search-ico { color: rgba(255,255,255,0.6); }
body.dark .gwp-search-kbd { background: #0b1210; border-color: rgba(255,255,255,0.3); color: #fff; }
body.dark .gwp-search-drop { background: #1a2320; border-color: rgba(255,255,255,0.12); }
body.dark .gwp-search-result:hover,
body.dark .gwp-search-result.active { background: #1f2b28; }
body.dark .gwp-search-footer { background: #1f2b28; }
body.dark input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]),
body.dark select,
body.dark textarea {
  background: #1f2b28;
  color: var(--ink);
  border-color: rgba(255,255,255,0.14);
}
body.dark .gwp-vm tr:hover td { background: #1f2b28; }
body.dark .gwp-related-card:hover { background: rgba(45,212,191,0.08); }
