/* ============================================================
   JWM Guard Tour — responsive stylesheet (desktop / tablet / mobile)
   ============================================================ */
:root {
  /* Brand palette — anchored on the JWM logo blue (#0068B0) and logo orange (#E05000).
     Hero, the dark CTA band and the footer are all tints/shades of the same blue,
     so no block reads as a different colour from the logo. */
  --c-primary: #0068b0;
  --c-primary-dark: #004e86;
  --c-primary-light: #4a9ad4;
  --c-accent: #e8560c;
  --c-accent-dark: #c9440a;
  --c-bg: #ffffff;
  --c-bg-soft: #eef6fc;
  --c-bg-dark: #005a95;
  --c-text: #1f2937;
  --c-text-soft: #5b6977;
  --c-border: #e2ebf3;
  --c-ok: #1f9d55;
  --shadow: 0 6px 24px rgba(0, 104, 176, 0.10);
  --shadow-lg: 0 12px 40px rgba(0, 104, 176, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --header-h: 72px;
  --font: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
/* height:auto is required: every <img> carries intrinsic width/height attributes
   for CLS. Without an explicit height those attributes win over aspect-ratio and
   stretch the image non-uniformly when max-width shrinks the rendered width.
   Aspect-ratio guard, 2026-11-13: keep photos at their natural ratio everywhere. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-accent); }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--c-primary-dark); font-weight: 700; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-dark { background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-bg-dark) 100%); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.text-center { text-align: center; }
.lead { font-size: 18px; color: var(--c-text-soft); }
.muted { color: var(--c-text-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 2px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-light { background: #fff; color: var(--c-primary); }
.btn-light:hover { background: var(--c-bg-soft); }
/* 2026-09-27 — a long CTA label ("Ponte en contacto con nuestro equipo", "Entre em
   contacto com a nossa equipa") could not wrap because of the nowrap above, so the
   320px home page in es/pt was 8px wider than the viewport and draggable sideways.
   Wrapping a two-word label is far better than a horizontally scrolling page. */
@media (max-width: 400px) { .btn { white-space: normal; } }

/* ---------- Auto-detect language bar ---------- */
#lang-detect-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1200;
  background: var(--c-primary-dark); color: #fff;
  display: none; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 16px; font-size: 14px; flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
#lang-detect-bar.show { display: flex; }
#lang-detect-bar .ld-text { margin-right: 4px; }
#lang-detect-bar .ld-flag { font-size: 18px; }
#lang-detect-bar .ld-count { font-weight: 700; color: var(--c-accent); }
#lang-detect-bar button {
  border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer;
  font-weight: 600; font-size: 13px;
}
#lang-detect-bar .ld-yes { background: var(--c-accent); color: #fff; }
#lang-detect-bar .ld-no  { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; display: block; }

/* Nav labels vary a lot in length by language (fr "Page d'accueil", de
   "Anwendungsbeispiele", ar "المنتجات الأصلية (OEM) والمنتجات المخصصة"). Without
   nowrap the flex items shrink and every long label wraps onto a second line.
   Measured worst case is French at 834px needed vs 848px available at the 1101px
   breakpoint, so nowrap + the tightened padding/size below keeps all 13 languages
   on a single line from 1101px up. flex:0 0 auto stops the browser from squeezing
   them back into a wrap. */
.nav { display: flex; align-items: center; gap: 2px; }
.nav > * { flex: 0 0 auto; }
.nav a {
  white-space: nowrap;
  padding: 8px 9px; border-radius: 6px; color: var(--c-text);
  font-weight: 600; font-size: 14px;
}
.nav a:hover, .nav a.active { color: var(--c-primary); background: var(--c-bg-soft); }

/* Resource dropdown (Knowledge + Download) */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 8px 9px; border-radius: 6px; color: var(--c-text);
  font-weight: 600; font-size: 14px; background: none; border: none;
  cursor: pointer; font-family: inherit;
}
.nav-drop-btn .caret { font-size: 10px; line-height: 1; }
.nav-drop:hover .nav-drop-btn, .nav-drop:focus-within .nav-drop-btn,
.nav-drop.active .nav-drop-btn { color: var(--c-primary); background: var(--c-bg-soft); }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--c-border); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 1150;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a { display: block; padding: 9px 12px; border-radius: 6px; white-space: nowrap; }
.nav-drop-menu a:hover, .nav-drop-menu a.active { color: var(--c-primary); background: var(--c-bg-soft); }
@media (max-width: 768px) { .nav-drop { display: none; } }

/* Language switcher (flag bar) */
.lang-switch { position: relative; margin-left: 8px; }
.lang-switch > button {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-bg-soft); border: 1px solid var(--c-border);
  border-radius: 20px; padding: 6px 12px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.lang-switch .flag-grid {
  display: none; position: absolute; right: 0; top: 110%;
  background: #fff; border: 1px solid var(--c-border); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 8px; grid-template-columns: 1fr 1fr;
  gap: 4px; min-width: 220px; z-index: 1100;
}
.lang-switch.open .flag-grid { display: grid; }
.lang-switch .flag-grid a {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 6px; font-size: 14px; color: var(--c-text);
}
.lang-switch .flag-grid a:hover, .lang-switch .flag-grid a.active { background: var(--c-bg-soft); color: var(--c-primary); }
.lang-switch .flag-grid .fl { font-size: 18px; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--c-primary-dark); margin: 5px 0; transition: .2s; }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1050; }
.drawer-backdrop.show { display: block; }
.drawer {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
  background: #fff; z-index: 1060; transition: right .25s ease; padding: 70px 18px 18px;
  box-shadow: -8px 0 30px rgba(0,0,0,.15); overflow-y: auto;
}
.drawer.open { right: 0; }
.drawer a { display: block; padding: 12px 8px; border-bottom: 1px solid var(--c-border); font-weight: 600; }
.drawer .lang-switch-m { margin-top: 14px; }
.drawer .lang-switch-m a { display: flex; align-items: center; gap: 10px; border: none; padding: 8px; }
.drawer .drawer-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 60%, var(--c-primary-light) 100%);
  color: #fff; padding: 90px 0 80px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(232,86,12,.35), transparent 70%); border-radius: 50%;
}
.hero h1 { color: #fff; max-width: 760px; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 620px; margin: 18px 0 28px; }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 30px; font-weight: 800; color: var(--c-accent); }
.hero-stats .stat .lbl { font-size: 14px; color: rgba(255,255,255,.8); }

/* ---------- Section heading ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head .eyebrow { color: var(--c-accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.sec-head h2 { margin: 10px 0; }
.sec-head p { color: var(--c-text-soft); }

/* ---------- Feature / card grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic { font-size: 30px; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--c-text-soft); font-size: 15px; }

/* ---------- Product grid ---------- */
.product-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-thumb {
  height: 200px; background: linear-gradient(135deg, #eef6fc, #d8e9f7);
  display: flex; align-items: center; justify-content: center; font-size: 54px; color: var(--c-primary);
  overflow: hidden;
}
/* Cards must show the WHOLE product, never a cropped one -> contain + inner padding */
.product-thumb img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  padding: 10px; box-sizing: border-box;
}
.thumb-emoji { line-height: 1; }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-body .model { color: var(--c-accent); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.product-body h3 { font-size: 19px; margin: 4px 0 8px; }
.product-body p { color: var(--c-text-soft); font-size: 14px; flex: 1; }
.product-body .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.tag { background: var(--c-bg-soft); color: var(--c-primary); font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
/* <span class="tag"> siblings are emitted with no whitespace between them, so a block-level
   .tags container has no line-break opportunity and the last pill overflows the page on
   phones (measured: 22px at 390px). Make every .tags a wrapping flex row. */
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- Product page: Applications (industry name + one-line description) ---------- */
.ind-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 14px; }
.ind { display: flex; align-items: flex-start; gap: 10px; }
.ind .ic { font-size: 20px; line-height: 1.5; flex: 0 0 auto; }
.ind strong { display: block; font-size: 15px; margin-bottom: 3px; }
.ind p { color: var(--c-text-soft); font-size: 14px; margin: 0; }
@media (max-width: 760px) { .ind-list { grid-template-columns: 1fr; } }
.product-body .btn { align-self: flex-start; }

/* ---------- Spec table ---------- */
/* table-layout:fixed — a table never shrinks below its min-content width, and on the
   specs card that width is set by the longest single label ("Übertragungsgeschwindigkeit"
   = 26 chars, DE). Measured 326px inside a 280px phone column: the card was fine but the
   table stuck out 46px and made the whole 320px page draggable sideways. A fixed layout
   makes the table honour width:100% and wrap the cells instead. Both call sites
   (build.js: the specs card and the composition table) are 2-column th+td tables. */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; table-layout: fixed; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--c-border); font-size: 15px; overflow-wrap: break-word; }
.spec-table th { width: 42%; color: var(--c-text-soft); font-weight: 600; background: var(--c-bg-soft); }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }

/* ---------- Lists / features ---------- */
.feature-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--c-border); }
.feature-list li:last-child { border-bottom: none; }
.feature-list .mk { color: var(--c-ok); font-weight: 800; flex-shrink: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
/* grid items default to min-width:auto — a wide child (PDP photo, composition table)
   then refuses to shrink and blows the column past the phone viewport (measured:
   product pages overflowed 22px at 390px and 92px at 320px). Allow shrinking. */
.two-col > *, .two-col-pdp > * { min-width: 0; }
/* 2026-09-27 same defect in the plain .grid blocks: the Key-features / Specifications
   cards are a .grid.grid-2 whose min-content width is set by the longest single word
   (German "Betriebstemperatur", Portuguese "Funcionamento", Spanish "Funcionalidades").
   Without min-width:0 the track could not shrink and the whole page was draggable
   sideways by 5-27px on a 320px phone (de/es/pt). Extended to every grid container that
   holds long translated copy, plus the flex card .benefit (see below). */
.grid > *, .benefit-grid > *, .contact-grid > *, .footer-grid > *, .ind-list > * { min-width: 0; }
.pdp-main img, .pdp-gallery img { max-width: 100%; }
/* PDP: narrower media column so the h1 (model + name) fits on one line */
.two-col-pdp { grid-template-columns: 2fr 3fr; gap: 36px; }
.two-col-pdp h1 { font-size: clamp(23px, 2.3vw, 25px); }

/* ---------- Breadcrumb ---------- */
/* narrow screens: the composition table is wider than a phone viewport — keep the
   scroll container as a last-resort safety net */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
/* 2026-09-27 — the three-column "What's in the system" table used to force
   white-space:nowrap on the label and quantity cells, so its min-content width was the
   SUM of the longest label + value + quantity in that language (measured ~900px in EN,
   more in DE/MS). At any viewport below that the right-hand column was cut off and had
   to be dragged sideways — the phone complaint. Fixed layout + wrapping now lets every
   column wrap inside a fixed share of the card, so the table fits the viewport in all
   13 languages with no horizontal scroll. The middle column is a model/SKU only. */
.sys-table { table-layout: fixed; }
.sys-table th { width: 34%; white-space: normal; overflow-wrap: break-word; hyphens: auto; }
.sys-table td { width: 34%; overflow-wrap: break-word; }
.sys-table td:last-child { width: 32%; white-space: normal; color: var(--c-text-soft); font-size: .92em; }
/* 2026-09-27 — below 640px the three columns cannot coexist: the label column is only
   ~100px, so German labels were chopped mid-word ("Wachrundga / ng-Leser",
   "Personensc / hlüssel", "Managemen / tsystem") and even EN lost "management" as
   "managemen / t". Stack each row into label / value / quantity lines instead — every
   line then gets the full card width, so no word is ever broken and nothing needs to
   be dragged sideways. Labels stay plain text (no uppercase / letter-spacing) because
   letter-spacing breaks Arabic cursive joining and does nothing for CJK/Thai. */
@media (max-width: 640px) {
  .sys-table, .sys-table tbody, .sys-table tr, .sys-table th, .sys-table td { display: block; width: auto; }
  .sys-table tr { padding: 11px 0; border-bottom: 1px solid var(--c-border); }
  .sys-table tr:last-child { border-bottom: none; }
  .sys-table th { background: none; padding: 0; font-size: 12.5px; font-weight: 700; color: var(--c-text-soft); }
  .sys-table td { border: none; padding: 2px 0 0; font-size: 15px; }
  /* width:auto is needed here too — the outer `.sys-table td:last-child { width:32% }`
     is MORE specific (0,2,1) than `.sys-table td` (0,1,1), so without this the
     quantity text kept wrapping inside a ~100px column. */
  .sys-table td:last-child { width: auto; padding-top: 1px; font-size: 13px; }
}
.sys-opt { margin-top: 12px; font-size: 15px; color: var(--c-text); }
.sys-note { margin-top: 10px; font-size: .9em; }
.sys-note { margin-top: 10px; font-size: .9em; }
.breadcrumb { font-size: 14px; color: var(--c-text-soft); padding: 18px 0; }
.breadcrumb a { color: var(--c-primary); }

/* ---------- Forms ---------- */
.form-wrap { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-row label .req { color: var(--c-accent); margin-left: 2px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--c-text); background: #fff;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0,104,176,.12); }
.form-row textarea { min-height: 130px; resize: vertical; }
/* phone field: decorative "+" prefix + number input (download form) */
.phone-group { position: relative; }
.phone-group .plus {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15px; font-weight: 600; color: var(--c-text-soft); pointer-events: none;
}
.phone-group input { padding-left: 32px; }
/* section-page main heading promoted from h2 to h1 — keep the same look */
.sec-head h1 { margin: 10px 0; }
.form-hint { font-size: 13px; color: var(--c-text-soft); margin-bottom: 18px; }
.form-alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; display: none; }
.form-alert.ok { display: block; background: #e7f6ee; color: #146c3a; border: 1px solid #b6e3c8; }
.form-alert.err { display: block; background: #fdecea; color: #b3261e; border: 1px solid #f5c4be; }
.form-note { font-size: 12px; color: var(--c-text-soft); margin-top: 10px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info .ci { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.contact-info .ci .ic { font-size: 22px; }
.contact-info .ci .k { font-weight: 700; color: var(--c-primary-dark); }
.contact-info .ci .v { color: var(--c-text); }

/* ---------- Floating button ---------- */
#float-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-ok); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; font-size: 26px; border: none;
}
#float-btn:hover { transform: scale(1.06); }
#wechat-pop {
  position: fixed; right: 22px; bottom: 90px; z-index: 900; background: #fff;
  border: 1px solid var(--c-border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-lg);
  display: none; width: 240px; text-align: center;
}
#wechat-pop.show { display: block; }
#wechat-pop .wx-id { font-weight: 800; font-size: 18px; color: var(--c-primary-dark); margin: 6px 0; }
#wechat-pop .wx-qr { width: 150px; height: 150px; margin: 8px auto; background: #f0f0f0; display: flex; align-items: center; justify-content: center; color: var(--c-text-soft); font-size: 13px; border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-bg-dark); color: #cdd8e6; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { color: #cdd8e6; display: block; padding: 5px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .f-about { font-size: 14px; line-height: 1.7; }
.site-footer .f-logo { font-weight: 800; color: #fff; font-size: 20px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: 13px; text-align: center; color: #9fb0c4; }

/* ---------- News / cases ---------- */
.news-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.news-card .date { color: var(--c-accent); font-weight: 700; font-size: 13px; }
.news-card h3 { font-size: 17px; margin: 4px 0 6px; }
.news-card p { color: var(--c-text-soft); font-size: 14px; }

/* ---------- Misc ---------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }

/* ---------- Product detail media ---------- */
.pdp-main {
  height: auto; aspect-ratio: 5 / 4; background: linear-gradient(135deg, #eef6fc, #d8e9f7);
  border-radius: var(--radius); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 96px; color: var(--c-primary); overflow: hidden;
}
.pdp-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.pdp-gallery .gal-thumb {
  width: 100%; height: 92px; object-fit: contain; border-radius: 8px;
  border: 1px solid var(--c-border); background: #fff; cursor: pointer;
  padding: 4px; box-sizing: border-box;
  transition: border-color .2s, transform .2s;
}
.pdp-gallery .gal-thumb:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.pdp-gallery .gal-thumb.is-active { border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(0,104,176,.18); }
/* click-to-enlarge affordance (icon only — no untranslated label text) */
.pdp-zoomable { cursor: zoom-in; }
.pdp-gallery .gal-thumb { cursor: pointer; }
.product-thumb img { cursor: pointer; }

/* ---------- Lightbox (full-size product photo) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8, 18, 34, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 96vw; max-height: 92vh; width: auto; height: auto;
  object-fit: contain; border-radius: 10px; background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
}
.lightbox::after {
  content: '✕'; position: absolute; top: 14px; right: 20px;
  color: #fff; font-size: 26px; line-height: 1; opacity: .8;
}
@media (max-width: 768px) {
  .lightbox { padding: 10px; }
  .lightbox img { max-height: 86vh; }
  .pdp-gallery { grid-template-columns: repeat(2, 1fr); }
}
.breadcrumb { font-size: 14px; color: var(--c-text-soft); margin-bottom: 22px; }
.breadcrumb a { color: var(--c-primary); }
.breadcrumb span { color: var(--c-text-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.faq-item > summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700;
  font-size: 16px; color: var(--c-text); position: relative; padding-right: 52px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 700; color: var(--c-primary); transition: transform .2s;
}
.faq-item[open] > summary::after { content: '–'; }
.faq-item[open] > summary { color: var(--c-primary-dark); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--c-text-soft); font-size: 15px; line-height: 1.75; }

/* ============================================================
   Responsive — tablet
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .two-col-pdp { grid-template-columns: 1fr; gap: 24px; }
  .two-col-pdp h1 { font-size: 24px; }
  /* 9 nav items + logo + flag + store button no longer fit below ~1220px:
     collapse into the drawer (which carries every nav link and language). */
  .nav { display: none; }
  .lang-switch { display: none; }
  .menu-toggle { display: block; }
}

/* ============================================================
   Responsive — mobile
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .logo img { height: 34px; }
  .nav { display: none; }
  .lang-switch { display: none; }
  .menu-toggle { display: block; }
  .section { padding: 44px 0; }
  .hero { padding: 64px 0 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .form-wrap { padding: 22px; }
  .product-thumb { height: 160px; }
  .pdp-main { height: auto; aspect-ratio: 5 / 4; font-size: 72px; }
  .pdp-gallery { grid-template-columns: repeat(3, 1fr); }
  .faq-item > summary { padding: 15px 16px; font-size: 15px; padding-right: 44px; }
  .faq-item > summary::after { right: 16px; }
  .faq-item .faq-a { padding: 0 16px 16px; font-size: 14px; }
  #lang-detect-bar { font-size: 13px; padding: 8px 12px; gap: 8px; }
  #float-btn { width: 50px; height: 50px; font-size: 22px; right: 16px; bottom: 16px; }
}

/* ---------- Homepage value & benefit blocks ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 18px 20px; }
.benefit .mk { color: var(--c-ok); font-weight: 700; font-size: 20px; line-height: 1.4; flex: 0 0 auto; }
.benefit h3 { font-size: 18px; margin-bottom: 4px; color: var(--c-primary-dark); }
.benefit p { color: var(--c-text-soft); font-size: 15px; margin: 0; }
/* flex child defaults to min-width:auto -> a long German compound ("Rundgangsberichte",
   "Patrouillenrouten") refused to shrink and pushed the 320px home page 9px wide */
.benefit > * { min-width: 0; }
@media (max-width: 768px) { .benefit-grid { grid-template-columns: 1fr; } }

/* ---------- Availability: status badge + product notice ---------- */
.tag-avail { background: #fdece0; color: var(--c-accent-dark); }
.pdp-notice {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 18px 0 4px; padding: 14px 16px;
  background: #fff8f3; border: 1px solid #f7d9c3;
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius-sm);
}
.pdp-notice .ic { font-size: 18px; line-height: 1.4; flex: 0 0 auto; }
.pdp-notice strong { display: block; color: var(--c-accent-dark); font-size: 13px; letter-spacing: .6px; text-transform: uppercase; }
.pdp-notice p { margin: 4px 0 0; color: var(--c-text-soft); font-size: 15px; }

/* ============================================================ Knowledge-base articles */
.container-narrow { max-width: 860px; margin: 0 auto; }
.kb-article { background:#fff; border:1px solid var(--c-border); border-radius:var(--radius); box-shadow:var(--shadow); padding:36px 40px; }
.kb-article .kb-meta { display:flex; gap:14px; align-items:center; font-size:13px; color:var(--c-text-soft); margin-bottom:10px; }
.kb-article .kb-meta .date { color:var(--c-accent); font-weight:700; }
.kb-article h1 { font-size:30px; line-height:1.25; margin:6px 0 14px; }
.kb-article .kb-lead { font-size:17px; color:var(--c-text-soft); border-left:3px solid var(--c-primary); padding-left:14px; margin-bottom:26px; }
.kb-article h2 { font-size:21px; margin:30px 0 10px; }
.kb-article p { line-height:1.75; margin-bottom:14px; color:var(--c-text); }
.kb-article ul { margin:0 0 16px 20px; line-height:1.75; }
.kb-article ul li { margin-bottom:6px; }
.kb-article .table-scroll { overflow-x:auto; margin:18px 0 22px; }
.case-article .case-facts { display:flex; flex-wrap:wrap; gap:10px 26px; background:var(--c-soft, #f4f7fb); border:1px solid var(--c-border); border-radius:10px; padding:14px 18px; margin:0 0 24px; }
.case-article .case-facts .fact { display:flex; flex-direction:column; min-width:120px; }
.case-article .case-facts .fact span { font-size:12px; color:var(--c-text-soft); }
.case-article .case-facts .fact strong { font-size:14px; color:var(--c-text); }
.case-article .case-img, .kb-article .case-img { margin:20px 0 24px; }
/* Knowledge articles use .kb-article (not .case-article): keep both selectors so
   body photos always render at their natural aspect ratio, never stretched. */
.case-article .case-img img, .kb-article .case-img img { width:100%; height:auto; border-radius:10px; border:1px solid var(--c-border); cursor:zoom-in; display:block; }
.kb-table { width:100%; border-collapse:collapse; font-size:14px; min-width:640px; }
.kb-table th, .kb-table td { text-align:left; padding:10px 12px; border:1px solid var(--c-border); vertical-align:top; line-height:1.5; }
.kb-table th { background:var(--c-primary); color:#fff; font-weight:600; }
.kb-table td.row-head { background:var(--c-bg-soft); font-weight:600; white-space:nowrap; }
.kb-guides .kb-guide { display:flex; gap:16px; align-items:flex-start; }
.kb-guide-ic { font-size:30px; line-height:1; }
@media (max-width:720px){
  .kb-article { padding:24px 18px; }
  .kb-article h1 { font-size:24px; }
}

/* ---- how-it-works steps + pain list (product pages) ---- */
.how-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:14px}
.how-step{display:flex;gap:10px;align-items:flex-start}
.how-step .num{flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:var(--c-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.95rem}
.how-step strong{display:block;font-size:.95rem}
.how-step p{margin:4px 0 0;font-size:.88rem;color:var(--c-text-soft);line-height:1.5}
.pain-list{margin:10px 0 0;padding-left:18px}
.pain-list li{margin:7px 0;line-height:1.55}
@media(max-width:768px){.how-steps{grid-template-columns:1fr}}

/* how-block: SVG diagram on desktop, text steps on mobile */
.how-diagram svg { width: 100%; height: auto; display: block; }
@media (max-width: 767px) { .how-diagram { display: none; } }
@media (min-width: 768px) { .how-steps { display: none; } }


/* ---- Arabic (RTL) layout overrides — html[dir="rtl"] emitted by build.js ---- */
html[dir="rtl"] body { direction: rtl; text-align: right; font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Geeza Pro', sans-serif; }
html[dir="rtl"] #lang-detect-bar .ld-text { margin-right: 0; margin-left: 4px; }
html[dir="rtl"] .nav-drop-menu { left: auto; right: 0; }
html[dir="rtl"] .lang-switch .flag-grid { right: auto; left: 0; }
html[dir="rtl"] .drawer { right: auto; left: -300px; transition: left .25s ease; }
html[dir="rtl"] .drawer.open { right: auto; left: 0; }
html[dir="rtl"] .drawer .drawer-close { right: auto; left: 16px; }
html[dir="rtl"] .hero::after { right: auto; left: -80px; }
html[dir="rtl"] #float-btn { right: auto; left: 22px; }
html[dir="rtl"] #wechat-pop { right: auto; left: 22px; }
html[dir="rtl"] .lightbox::after { right: auto; left: 20px; }
html[dir="rtl"] .faq-item > summary { padding-right: 16px; padding-left: 52px; }
html[dir="rtl"] .faq-item > summary::after { right: auto; left: 22px; }
html[dir="rtl"] .pdp-notice { border-left: none; border-right: 4px solid var(--c-accent); }
html[dir="rtl"] .kb-article .kb-lead { border-left: none; border-right: 3px solid var(--c-primary); padding-left: 0; padding-right: 14px; }
html[dir="rtl"] .form-row label .req { margin-left: 0; margin-right: 2px; }
html[dir="rtl"] ul, html[dir="rtl"] ol { padding-left: 0; padding-right: 22px; }
html[dir="rtl"] .pain-list { padding-right: 18px; }
html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] select { text-align: right; }
html[dir="rtl"] .sys-table th, html[dir="rtl"] .sys-table td { text-align: right; }
/* spec tables (specs card + sys-table share .spec-table): right-align label & value columns */
html[dir="rtl"] .spec-table th, html[dir="rtl"] .spec-table td { text-align: right; }
/* spec VALUE cells carry dir="ltr" (set in build.js) so latin/number strings like
   "60,000 records" / "-40℃ ~ +85℃" keep internal LTR order; keep them pinned right */
html[dir="rtl"] .spec-table td[dir="ltr"] { text-align: right; }
/* tag pills flow right→left like the rest of the text */
html[dir="rtl"] .tags { text-align: right; }

/* ---- Thai: taller line rhythm for stacked diacritics ---- */
html[lang^="th"] body { line-height: 1.8; }
html[lang^="th"] .kb-article, html[lang^="th"] .case-article { line-height: 1.9; }

/* ---------- Accessory block on product pages (checkpoint button / guard key) ----------
   A reader on its own is not a system: the button on the wall and the tag in the
   guard's pocket are what make a record mean something. Two cards under the config
   list, image on top, points + spec table inside. */
.acc-sec { margin-top: 38px; }
.acc-title { font-size: 24px; }
.acc-sub { margin: 8px 0 18px; max-width: 780px; font-size: 15px; line-height: 1.7; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.acc-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.acc-card figure { margin: 0; background: #f7fafc; border-bottom: 1px solid var(--c-border); }
.acc-card img { display: block; width: 100%; height: 260px; object-fit: contain; }
.acc-body { padding: 20px 22px 22px; }
.acc-kind { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c-primary); }
.acc-body h3 { margin: 7px 0 10px; font-size: 19px; }
.acc-body > p { color: var(--c-text-soft); font-size: 14.5px; line-height: 1.7; }
.acc-body .feature-list { margin: 14px 0 16px; }
.acc-body .feature-list li { font-size: 14px; }
.acc-body .spec-table { margin-top: 4px; table-layout: auto; }
.acc-body .spec-table th, .acc-body .spec-table td { padding: 9px 12px; font-size: 13.5px; }
@media (max-width: 820px) {
  .acc-grid { grid-template-columns: 1fr; }
  .acc-card img { height: 220px; }
  .acc-title { font-size: 21px; }
}

/* ---------- Durability page (/durability) ----------
   The page is four photo-led proofs (water, dust, crush, drop). Each block is a
   two-column grid that reverses on odd rows, so the reader's eye zig-zags down
   the page instead of scanning one straight column of text. */
.dur-hero { background: linear-gradient(180deg, var(--c-bg-soft) 0%, #fff 100%); padding-bottom: 26px; }
/* .badge is styled for the dark hero (white text on translucent white), which is
   invisible on this page's pale blue band — restate it for light backgrounds. */
.dur-hero .badge-row { margin-top: 22px; }
.dur-hero .badge {
  background: #fff; border: 1px solid var(--c-primary-light); color: var(--c-primary-dark);
  box-shadow: 0 2px 8px rgba(0, 104, 176, .10);
}
.dur-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; margin-bottom: 58px; }
.dur-grid:last-child { margin-bottom: 0; }
.dur-grid.dur-rev .dur-figure { order: 2; }
.dur-figure {
  margin: 0; border-radius: 14px; overflow: hidden; background: #f7fafc;
  border: 1px solid var(--c-border); box-shadow: var(--shadow);
}
.dur-figure img { width: 100%; height: 340px; object-fit: cover; display: block; }
.dur-figure figcaption {
  font-size: 12.5px; color: var(--c-text-soft); padding: 10px 14px;
  background: #fff; border-top: 1px solid var(--c-border); line-height: 1.5;
}
.dur-chip {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--c-primary); background: var(--c-bg-soft);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 12px;
}
.dur-text h2 { font-size: clamp(21px, 2.2vw, 26px); margin-bottom: 12px; }
.dur-text > p { color: var(--c-text-soft); font-size: 15.5px; line-height: 1.75; margin-bottom: 12px; }
.dur-facts { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.dur-facts li { display: flex; gap: 9px; font-size: 14.5px; align-items: flex-start; }
.dur-facts .mk { color: var(--c-ok); font-weight: 700; flex: none; }

.dur-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14.5px; min-width: 660px; }
.dur-table th, .dur-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--c-border); }
.dur-table th {
  background: var(--c-bg-soft); font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--c-text-soft); white-space: nowrap;
}
.dur-table tbody tr:last-child td { border-bottom: none; }
.dur-table tbody tr:hover { background: #fafcfe; }

.dur-relgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dur-relcard { display: block; padding: 14px !important; color: inherit; }
.dur-relcard img { width: 100%; height: 130px; object-fit: contain; margin-bottom: 10px; }
.dur-relcard div { display: flex; flex-direction: column; gap: 2px; }
.dur-relcard strong { font-size: 15px; color: var(--c-primary); }
.dur-relcard span { font-size: 12.5px; color: var(--c-text-soft); line-height: 1.4; }

@media (max-width: 900px) {
  .dur-grid { grid-template-columns: 1fr; gap: 22px; margin-bottom: 46px; }
  .dur-grid.dur-rev .dur-figure { order: 0; }
  .dur-figure img { height: 240px; }
  .dur-relgrid { grid-template-columns: 1fr 1fr; }
  .dur-table { min-width: 580px; }
}

/* ============================================================
   Header store button (Shop Now) — always the last item in the bar
   ============================================================ */
.nav-shop {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; margin-left: 12px; padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--c-accent) 0%, #f2762c 100%);
  color: #fff !important; font-weight: 800; font-size: 14px; letter-spacing: .01em;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(232, 86, 12, .32);
  animation: shop-glow 2.8s ease-in-out infinite;
  transition: transform .16s ease, box-shadow .16s ease;
}
.nav-shop:hover, .nav-shop:focus-visible {
  color: #fff; transform: translateY(-1px); box-shadow: 0 9px 24px rgba(232, 86, 12, .5);
}
.nav-shop.active { background: var(--c-accent-dark); }
@keyframes shop-glow {
  0%, 100% { box-shadow: 0 6px 18px rgba(232, 86, 12, .28); }
  50%      { box-shadow: 0 6px 26px rgba(232, 86, 12, .52); }
}
@media (prefers-reduced-motion: reduce) { .nav-shop { animation: none; } }

/* The header row is a fixed 1200px box, and the worst language (ar/fr/es nav +
   "Acheter"/"Comprar ahora") does not fit next to the logo and the flag bar any
   more. The logo is the flexbox shock absorber, so without these rules it gets
   crushed to a sliver. Instead: never shrink the logo, tighten the nav and the
   flag button, and drop the language NAME (flag only) until there is room. */
@media (min-width: 1220px) {
  .logo { flex: 0 0 auto; }
  .nav a, .nav-drop-btn { font-size: 13px; padding: 8px 6px; }
  .lang-switch { margin-left: 6px; }
  /* flag only: the language NAME (esp. "Español"/"Português") plus the store
     button no longer fit in the 1200px row; the dropdown still lists every
     language by name. */
  .lang-switch > button { padding: 6px 9px; font-size: 13px; gap: 4px; }
  .lang-switch > button span { display: none; }
  .nav-shop { margin-left: 8px; padding: 9px 14px; font-size: 13.5px; }
}
.drawer a.drawer-shop {
  background: var(--c-accent); color: #fff; border: none; border-radius: 8px;
  text-align: center; font-weight: 800; margin-bottom: 8px;
}

/* ============================================================
   Store product page — /shop (buy box + option groups)
   Layout follows a marketplace listing: photo gallery pinned on the left,
   price / promises / options / add-to-order stacked on the right.
   ============================================================ */
.pd-hero { padding-top: 22px; }
.pd-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 46px; align-items: start;
}
.pd-media { position: sticky; top: calc(var(--header-h) + 16px); }
.pd-main {
  aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 12px;
}
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
/* height is pinned, not derived: the <img> carries width/height attributes for
   CLS, and without an explicit height those attributes win over aspect-ratio and
   blow the strip up to 800px per thumbnail. The global img{display:block} also
   beats the UA [hidden] rule, so hiding a reader's thumbs needs its own rule. */
.pd-thumbs .gal-thumb {
  width: 100%; height: 78px; object-fit: contain; background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 4px; cursor: pointer; transition: border-color .18s, transform .18s;
}
.pd-thumbs .gal-thumb[hidden] { display: none; }
.pd-thumbs .gal-thumb:hover { border-color: var(--c-primary-light); transform: translateY(-2px); }
.pd-thumbs .gal-thumb.is-active { border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(0, 104, 176, .16); }

.pd-buy h1 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.26; letter-spacing: -.2px; }
.pd-sub { color: var(--c-text-soft); font-size: 14.5px; margin: 10px 0 0; }
.pd-price-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 10px 0 11px; }
.pd-price { font-size: 44px; font-weight: 800; color: var(--c-accent); line-height: 1; }
.pd-price .cur { font-size: 15px; font-weight: 700; color: var(--c-text-soft); margin-right: 6px; vertical-align: 4px; }
.pd-price-side { display: flex; flex-direction: column; gap: 3px; padding-bottom: 3px; }
.pd-ship-ok { color: var(--c-ok); font-weight: 700; font-size: 13.5px; }
.pd-stock { font-size: 12.5px; color: var(--c-text-soft); }
.pd-bullets { display: grid; gap: 6px; margin: 0 0 13px; }
.pd-bullets li { position: relative; padding-left: 22px; font-size: 14.4px; line-height: 1.48; }
.pd-bullets li::before {
  content: ''; position: absolute; left: 6px; top: .62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--c-primary);
}
.pd-opt-group { margin-bottom: 10px; }
.pd-opt-label { font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--c-text-soft); margin-bottom: 8px; }
.pd-opt-btns { display: flex; flex-wrap: wrap; gap: 9px; }
.pd-opt {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--c-text);
  background: #fff; border: 1px solid var(--c-border); border-radius: 10px;
  padding: 10px 15px; cursor: pointer; text-align: left;
  position: relative;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.pd-opt:hover { border-color: var(--c-primary-light); }
.pd-opt:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.pd-opt.is-active {
  border-color: var(--c-primary); background: var(--c-bg-soft); color: var(--c-primary-dark);
  box-shadow: inset 0 0 0 1px var(--c-primary);
}
.pd-opt-hint { font-size: 12.3px; color: var(--c-text-soft); margin-top: 5px; }
.pd-label-hint { font-size: 11.5px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--c-text-soft); margin-left: 8px; }
.pd-opt-group[hidden] { display: none; }
.pd-inc { background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0 0; }
.pd-inc-title { font-size: 12.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--c-text-soft); margin-bottom: 7px; }
.pd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.pd-list li { position: relative; padding-left: 16px; font-size: 14px; }
.pd-list li::before { content: '·'; position: absolute; left: 3px; color: var(--c-primary); font-weight: 800; }
.pd-list b { color: var(--c-primary-dark); }
.pd-list[hidden], .pd-bullets[hidden], .pd-panel[hidden] { display: none; }
.pd-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.pd-add { min-width: 220px; justify-content: center; }
.pd-fullspec { font-size: 13.5px; font-weight: 600; }
.pd-trust { display: grid; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.pd-trust li { position: relative; padding-left: 22px; font-size: 13.2px; color: var(--c-text-soft); }
.pd-trust li::before { content: '✓'; position: absolute; left: 0; color: var(--c-ok); font-weight: 800; }

.pd-detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
.pd-detail { max-width: 640px; }
.pd-detail .feature-list { margin-top: 14px; }
.pd-detail p { font-size: 15px; color: var(--c-text-soft); }
.pd-detail-imgs-wrap { margin-top: 0; }
.pd-detail-imgs { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pd-detail-imgs figure {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 10px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  margin: 0;
}
.pd-detail-imgs img { width: 100%; height: 100%; object-fit: contain; }
.pd-specs { max-width: 900px; margin: 0 auto; }

@media (max-width: 1023px) {
  .pd-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .pd-detail { max-width: none; }
  .pd-detail-imgs { grid-template-columns: repeat(3, 1fr); }
  .pd-detail-imgs figure { aspect-ratio: 4 / 3; }
}

@media (max-width: 1023px) {
  .pd-grid { grid-template-columns: 1fr; gap: 26px; }
  .pd-media { position: static; }
  .pd-main { aspect-ratio: 4 / 3; }
  .pd-thumbs { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) {
  .pd-price { font-size: 34px; }
  /* price and its two notes stack: side by side they ran into the edge */
  .pd-price-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pd-price-side { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 0; }
  .pd-bullets li { font-size: 14px; }
  .pd-opt { padding: 9px 12px; font-size: 13.2px; }
  .pd-add { width: 100%; min-width: 0; }
  /* six thumbs stay on one row, like the desktop strip */
  .pd-thumbs { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .pd-detail-imgs { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Online store — /shop (reader picker, order bar)
   /shop carries no cart: it is two photographs and the two or three facts
   that separate an iButton reader from an RFID one.
   ============================================================ */
.shop-hub-hero { padding-top: 26px; }
.shop-hub-hero .sec-head { max-width: 820px; }
.shop-hub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hub-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.hub-card:hover { border-color: var(--c-primary-light); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.hub-img { display: block; background: var(--c-bg-soft); aspect-ratio: 4 / 3; padding: 10px; }
.hub-img img { width: 100%; height: 100%; object-fit: contain; }
.hub-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.hub-model { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); }
.hub-body h2 { font-size: 17px; margin: 5px 0 6px; }
.hub-body h2 a { color: inherit; }
.hub-sub { font-size: 13px; color: var(--c-text-soft); margin: 0 0 10px; }
.hub-facts { margin: 0; border-top: 1px solid var(--c-border); }
.hub-facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--c-border); }
.hub-facts dt { font-size: 11.5px; color: var(--c-text-soft); }
.hub-facts dd { margin: 0; font-size: 12.5px; font-weight: 600; }
.hub-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hub-price { display: flex; align-items: baseline; gap: 5px; color: var(--c-accent); font-weight: 800; }
.hub-price .hub-from { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-soft); }
.hub-price .cur { font-size: 13px; font-weight: 700; color: var(--c-text-soft); }
.hub-price b { font-size: 24px; line-height: 1; }
/* Chinese reads "USD 269 起": the label moves behind the amount */
html[lang="zh"] .hub-price .hub-from { order: 3; margin-left: 3px; }
.shop-model-more { margin-top: 20px; font-size: 14px; color: var(--c-text-soft); }

/* ---------- Store: order builder ---------- */
.shop-add { margin-top: auto; width: 100%; justify-content: center; }
.shop-add.is-added { background: var(--c-ok); border-color: var(--c-ok); color: #fff; }

/* add-on rows inside the buy box — same .shop-add button, one line per item */
.pd-opt-extras { margin-top: 4px; }
.pd-extra-list { display: grid; gap: 6px; }
.pd-extra {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 7px 11px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  transition: border-color .18s, background .18s;
}
.pd-extra.is-selected { border-color: var(--c-accent); background: #fff8f3; }
.pd-extra-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-extra-txt b { font-size: 13.8px; }
/* Orderable part number sits next to the add-on name, quiet so the name leads. */
.pd-extra-sku {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--c-text-soft); margin-left: 5px; white-space: nowrap;
}
.pd-extra-txt span { font-size: 12.2px; color: var(--c-text-soft); }
.pd-extra-buy { display: flex; align-items: center; gap: 10px; }
.pd-extra-price { font-size: 16px; font-weight: 800; color: var(--c-accent); white-space: nowrap; }
.pd-extra-price .cur { font-size: 11px; font-weight: 700; color: var(--c-text-soft); margin-right: 3px; }
.pd-extra-price .is-bundle { color: var(--c-ok); }
.pd-extra-note { font-size: 11.5px; color: var(--c-text-soft); white-space: nowrap; }
.pd-extra-note.is-active { color: #14713c; font-weight: 700; }
.pd-extra .pd-extra-btn { margin: 0; width: auto; min-width: 96px; padding: 7px 12px; font-size: 12.5px; }

/* Kit buttons carry their contents in a tooltip — the buyer compares Starter and
   STD without scrolling to "What's in this kit". Text is generated from the kit
   data, so it cannot drift from the list below. */
.pd-opt-tip {
  position: absolute; left: 0; bottom: calc(100% + 9px); z-index: 60;
  width: max-content; max-width: 290px; white-space: normal;
  padding: 9px 12px; border-radius: var(--radius-sm);
  background: #0f2a3d; color: #fff;
  font-size: 12.2px; font-weight: 500; line-height: 1.55; letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(0, 42, 74, .24);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .14s, transform .14s, visibility .14s;
  pointer-events: none;
}
.pd-opt-tip::after {
  content: ''; position: absolute; left: 18px; top: 100%;
  border: 6px solid transparent; border-top-color: #0f2a3d;
}
.pd-opt-tip .tip-line { display: block; }
.pd-opt-tip .tip-line + .tip-line { margin-top: 3px; }
.pd-kit-opt:hover .pd-opt-tip,
.pd-kit-opt:focus-visible .pd-opt-tip { opacity: 1; visibility: visible; transform: none; }

/* Destination picker lives in the buy box, NOT in the fixed order bar: a
   two-row bar covered the add-on buttons that sit exactly at the fold. */
.pd-zone {
  display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap;
  background: #fff8f3; border: 1px solid #f3d8c4; border-radius: var(--radius-sm);
  padding: 9px 11px; margin: 8px 0 0; font-size: 12.4px;
}
.pd-zone[hidden] { display: none; }
.pd-zone label { font-weight: 700; color: var(--c-text-soft); white-space: nowrap; }
.pd-zone select {
  font: inherit; padding: 4px 8px; max-width: 100%;
  border: 1px solid var(--c-border); border-radius: 6px; background: #fff; color: var(--c-text);
}
.shop-bar-carrier { color: var(--c-text-soft); }

@media (max-width: 1200px) {
  .shop-hub { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 860px) {
  .shop-hub { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 520px) {
  .shop-hub { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pd-extra { grid-template-columns: 1fr; gap: 8px; }
  .pd-extra-buy { justify-content: space-between; }
  .pd-extra .pd-extra-btn { width: auto; min-width: 0; }
  .pd-opt-tip { max-width: 240px; }
}

/* ---------- Store: order builder ---------- */
.shop-add { margin-top: auto; width: 100%; justify-content: center; }
.shop-add.is-added { background: var(--c-ok); border-color: var(--c-ok); color: #fff; }

.shop-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--c-border); box-shadow: 0 -8px 28px rgba(0, 74, 134, .14);
  transform: translateY(110%); transition: transform .22s ease;
  /* let clicks pass through the empty middle of the bar to the add-on buttons
     underneath; only the actual controls intercept the pointer */
  pointer-events: none;
}
.shop-bar-sum, .shop-bar-actions, .shop-bar-clear, .shop-pay { pointer-events: auto; }
.shop-bar.show { transform: none; }
.shop-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.shop-bar-sum { display: flex; flex-direction: column; line-height: 1.25; }
.shop-bar-sum b { font-size: 23px; font-weight: 800; color: var(--c-accent); }
.shop-bar-sum span { font-size: 12.5px; color: var(--c-text-soft); }
.shop-bar-actions { display: flex; align-items: center; gap: 16px; }
.shop-bar-clear {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--c-text-soft); font-size: 14px; font-weight: 600; font-family: inherit;
}
.shop-bar-clear:hover { color: var(--c-accent); }
.shop-pay {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
  border-radius: 999px; background: var(--c-accent); color: #fff;
  font-weight: 800; font-size: 15px; opacity: .5; cursor: not-allowed;
}
.shop-pay.is-live { opacity: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(232, 86, 12, .35); }
.shop-pay.is-live:hover { background: var(--c-accent-dark); color: #fff; }
/* keep the floating WeChat / WhatsApp button above the order bar */
body.shop-bar-open #float-btn { bottom: 94px; }
body.shop-bar-open #wechat-pop { bottom: 162px; }

@media (max-width: 768px) {
  .shop-bar-inner { height: 66px; gap: 10px; }
  .shop-bar-sum b { font-size: 18px; }
  .shop-bar-actions { gap: 10px; }
  .shop-pay { padding: 11px 16px; font-size: 13.5px; }
  .shop-bar-clear { font-size: 13px; }
  body.shop-bar-open #float-btn { bottom: 84px; }
  body.shop-bar-open #wechat-pop { bottom: 150px; }
}

/* the fixed order bar must not cover the footer */
body.shop-bar-open { padding-bottom: 78px; }
@media (max-width: 768px) { body.shop-bar-open { padding-bottom: 70px; } }

/* The header row cannot hold 9 nav labels + the flag switcher + the store button
   below ~1220px in the long-label languages (es/fr/de/ar/id), so collapse to the
   drawer there instead of crushing the logo. Above 1220px everything fits. */
@media (max-width: 1219px) {
  .nav, .lang-switch { display: none; }
  .menu-toggle { display: block; }
  /* with the nav gone the row is just logo | store | hamburger — keep the store
     button glued to the right edge instead of floating in the middle */
  .header-inner { justify-content: flex-start; }
  .nav-shop { margin-left: auto; margin-right: 6px; }
}


/* ============================================================
   Sticky header: once the page is scrolled the bar lifts off the
   content and the store button gets a stronger glow, so the
   "Shop Now" entry stays readable at the top-right on every
   device (desktop / tablet / phone) instead of blending into
   the page.
   ============================================================ */
.site-header { transition: box-shadow .2s ease, backdrop-filter .2s ease; }
body.is-scrolled .site-header {
  box-shadow: 0 6px 22px rgba(0, 74, 134, .12);
  background: rgba(255, 255, 255, .98);
}
body.is-scrolled .nav-shop {
  box-shadow: 0 8px 22px rgba(232, 86, 12, .48);
  transform: translateY(-1px);
}
@media (max-width: 1219px) {
  /* logo shrinks a little so logo + store button + menu button always fit on
     a 320px-wide phone without squeezing the CTA */
  .logo img { height: 34px; }
  .nav-shop { padding: 9px 14px; font-size: 13px; }
}
@media (max-width: 380px) {
  .nav-shop { padding: 8px 12px; font-size: 12.5px; }
}

/* ============================================================
   Store policies — /privacy, /terms, /returns, /shipping
   Reached from the footer on every page and from the shipping
   note inside the buy box. Plain two-column legal copy.
   ============================================================ */
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 18px; margin-top: 30px; font-size: 13px; color: #9fb0c4;
}
.footer-legal span { color: #cdd8e6; font-weight: 600; }
.footer-legal a { color: #cdd8e6; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; }
.footer-legal + .footer-bottom { margin-top: 18px; }
/* asterisk note for the 6-year warranty claim, linked from the footer badge */
.footer-warranty {
  max-width: 980px; margin: 18px auto 0; padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  background: rgba(255,255,255,.045); font-size: 12.6px; line-height: 1.7;
  color: #cdd8e6; text-align: left; scroll-margin-top: calc(var(--header-h) + 20px);
}
.footer-warranty a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.footer-warranty + .footer-bottom { margin-top: 18px; }
/* keep the warranty badge on one line so the asterisk never wraps alone */
.badge-warranty { white-space: nowrap; flex: 0 0 auto; }
.badge-warranty .wstar { display: inline; padding: 0; font-size: inherit; color: inherit; font-weight: 800; text-decoration: none; margin-left: 1px; }
.badge-warranty .wstar:hover { text-decoration: underline; }

.pol-hero { padding-top: 40px; padding-bottom: 30px; background: var(--c-bg-soft); }
.pol-hero h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; margin: 18px 0 10px; color: var(--c-primary-dark); }
.pol-sub { max-width: 780px; font-size: 17px; line-height: 1.7; color: var(--c-text-soft); }
.pol-updated { font-size: 13px; color: var(--c-text-soft); margin-top: 12px; }
.pol-body { padding-top: 44px; }
.pol-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: start; }
.pol-side { position: sticky; top: calc(var(--header-h) + 20px); }
.pol-toc {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 14px;
}
.pol-toc-title {
  font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--c-text-soft); margin-bottom: 10px;
}
.pol-toc a {
  display: block; font-size: 14px; line-height: 1.45; color: var(--c-text);
  padding: 7px 0; border-bottom: 1px dashed var(--c-border);
}
.pol-toc a:last-child { border-bottom: 0; }
.pol-toc a:hover { color: var(--c-primary); }
.pol-related a { color: var(--c-primary); font-weight: 600; }
.pol-related a span { float: right; }
.pol-article { max-width: 820px; }
.pol-sec {
  padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--c-border);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.pol-sec:last-of-type { border-bottom: 0; margin-bottom: 18px; }
.pol-sec h2 { font-size: clamp(19px, 2vw, 23px); margin: 0 0 14px; color: var(--c-primary-dark); }
.pol-sec p, .pol-sec li { font-size: 15.5px; line-height: 1.85; color: var(--c-text); }
.pol-sec p { margin: 0 0 12px; }
.pol-sec ul { list-style: none; padding: 0; margin: 0 0 14px; }
.pol-sec li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.pol-sec li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary-light);
}
.pol-sec a, .pol-contact a { color: var(--c-primary); }
.pol-contact {
  background: var(--c-bg-soft); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 22px 24px;
}
.pol-contact b { font-size: 17px; color: var(--c-primary-dark); }
.pol-contact p { margin: 8px 0 14px; font-size: 14.5px; line-height: 1.7; }

/* Shipping note inside the product option block */
.pd-ship-note {
  background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 8px 11px; font-size: 12.4px; line-height: 1.55; margin: 9px 0 0;
  color: var(--c-text-soft);
}
.pd-ship-note b { color: var(--c-ok); }
.pd-ship-note a { color: var(--c-primary); font-weight: 600; white-space: nowrap; }
/* DDU notice — carriage is paid, import duties are not */
.pd-ship-note .pd-ddu {
  display: block; margin-top: 7px; padding-top: 7px;
  border-top: 1px dashed var(--c-border);
  color: var(--c-text); font-weight: 600;
}

@media (max-width: 900px) {
  .pol-grid { grid-template-columns: 1fr; gap: 22px; }
  .pol-side { position: static; }
  .pol-toc a { padding: 8px 0; }
}
@media (max-width: 640px) {
  .pol-hero { padding-top: 28px; padding-bottom: 22px; }
  .pol-body { padding-top: 30px; }
  .pol-sec p, .pol-sec li { font-size: 14.5px; line-height: 1.8; }
  .pol-contact { padding: 18px; }
}
