/* ============================================================
   PyeahGrind — storefront stylesheet
   Industrial precision: cool off-white + near-ink + a single brand accent
   Type: system UI stack (no web fonts — nothing to download before first paint)
   Radius: cards 14 / buttons pill / inputs 10
   ============================================================ */
/* ---------- 1. Tokens & reset ---------- */
:root {
  --bg: #f7f8fa;
  --bg-alt: #eef1f6;
  --surface: #ffffff;
  --ink: #0d1220;
  --ink-2: #3d4657;
  --muted: #68728a;
  --line: #e4e8ef;
  --line-strong: #d4dae5;
  --accent: #2b5bee;
  --accent-deep: #1d41bd;
  --accent-soft: #eaf0ff;
  /* --secondary / --primary are set per theme in views/partials/head.ejs from the
     admin colour settings; defaults live here only for pages that load this
     file without that block. */
  --success: #0e9f6e;
  --warn: #b45309;
  --danger: #d64545;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 18, 32, .05);
  --shadow-md: 0 10px 30px -12px rgba(13, 18, 32, .18);
  --shadow-lg: 0 24px 60px -20px rgba(13, 18, 32, .28);
  --container: var(--container-pc, 1200px);
  --container-pc: 1200px;
  --container-pad: 24px;
  --container-wap: 100%;
  --container-wap-pad: 16px;
  --header-h: 80px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 750; }
::selection { background: var(--accent); color: #fff; }
/* ---------- 2. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
 
}
.section { padding: 72px 0; }
.main { min-height: 60vh; }
/* Column banner: one deep brand-blue wash, one line of title, one line of
   subtitle, breadcrumb above. The gradient keeps the primary colour as the
   base so the inline background-color on the partial is irrelevant. */
.page-head {
  background:
    radial-gradient(125% 190% at 10% 0%, var(--accent) 0%, var(--accent-deep, #0d3b6b) 62%, #0a2e54 100%);
  color: #fff;
  padding: 46px 0 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.page-head .container { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.18; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-head p { color: rgba(255, 255, 255, .8); max-width: 100%; font-size: 15.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title { font-size: 30px; margin-bottom: 26px; letter-spacing: -.03em; }
.container.page { padding-top: 44px; padding-bottom: 72px; }
/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(43, 91, 238, .55);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 10px 26px -8px rgba(43, 91, 238, .6); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn .ic { width: 18px; height: 18px; }
.btn-lg .ic { width: 20px; height: 20px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: #f2c9c9; }
.btn-danger-ghost:hover { background: #fdf1f1; border-color: var(--danger); }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  transition: gap .2s var(--ease);
}
.link-more:hover { gap: 11px; }
/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 30px -12px rgba(13, 18, 32, .16); }
.header-main {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
 
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #4f7bff);
  box-shadow: 0 6px 16px -6px rgba(43, 91, 238, .5);
}
.logo-img { height: 60px; width: auto; }
/* The uploaded brand PNG is a wide 5.3:1 wordmark, so it is capped where the
   mark sits next to navigation (header) and given its own size in the footer. */
.logo .logo-img { height: 40px; }
.logo--footer .logo-img { height: 46px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.footer-brand .logo-text small { color: rgba(255,255,255,.55); }
.logo-text small { font-size: 10.5px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-btn { white-space: nowrap; }
/* Header search: the entry point for the /products?q= endpoint the markup
   declares. Icon-only so the nav row keeps its width; the field opens above
   the header, and it is hidden on narrow screens where the menu carries the
   navigation. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.head-search { position: relative; display: flex; align-items: center; }
.head-search-toggle { width: 38px; height: 38px; }
.head-search.is-open .head-search-toggle { color: var(--accent); }
.head-search-form {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 8px;
  width: 330px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
}
.head-search.is-open .head-search-form { display: flex; }
.head-search-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  outline: 0;
}
.head-search-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43, 91, 238, .12); }
.head-search-form input::placeholder { color: var(--muted); }
@media (max-width: 1023px) {.head-search { display: none; }}
.icon-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: 0;
  color: var(--ink-2);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.icon-btn:hover { background: var(--bg-alt); color: var(--ink); }
.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.badge.hidden { display: none; }
.hamburger { display: none; }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-top: 0;
}
.nav-link {
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink-2);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ink); background: var(--bg-alt); }
.nav-link.active { color: var(--accent); }
/* ---- Nav with submenu (dropdown on hover) ---- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item .nav-link { display: inline-flex; align-items: center; gap: 3px; }
.nav-item .nav-caret { opacity: .55; transition: transform .2s var(--ease); }
.nav-item:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(13, 18, 32, .14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 60;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1f36;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-drop-link:hover { color: var(--accent); background: #f2f5fa; }
.mm-list .mm-sub { font-size: 16px; font-weight: 600; padding-left: 44px; color: #c4cde2; }
/* ---------- 5. Mobile full-screen menu ---------- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(140% 120% at 20% 0%, #1b2440 0%, #0d1220 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 6px;
  padding: 64px 24px calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s var(--ease), visibility .32s;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.mm-close:hover { background: rgba(255, 255, 255, .16); }
.mm-list { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; }
.mm-group { position: relative; }
.mm-parent { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.mm-sub-wrap { display: none; }
.mm-group.open .mm-sub-wrap { display: block; }
.mm-link {
  display: block;
  padding: 12px 24px;
  font-size: 20px;
  font-weight: 750;
  color: #eef2fb;
  letter-spacing: -.01em;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: color .15s, transform .15s var(--ease);
}
.mm-link:last-child { border-bottom: 0; }
.mm-link:hover { color: #8fb1ff; transform: translateY(-1px); }
.mm-link.active { color: #8fb1ff; }
.mm-list .mm-link { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease), color .15s; }
.mobile-menu-overlay.open .mm-link { opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.open .mm-link:nth-child(1) { transition-delay: .06s; }
.mobile-menu-overlay.open .mm-link:nth-child(2) { transition-delay: .1s; }
.mobile-menu-overlay.open .mm-link:nth-child(3) { transition-delay: .14s; }
.mobile-menu-overlay.open .mm-link:nth-child(4) { transition-delay: .18s; }
.mobile-menu-overlay.open .mm-link:nth-child(5) { transition-delay: .22s; }
.mobile-menu-overlay.open .mm-link:nth-child(6) { transition-delay: .26s; }
.mobile-menu-overlay.open .mm-link:nth-child(7) { transition-delay: .3s; }
.mobile-menu-overlay.open .mm-link:nth-child(8) { transition-delay: .34s; }
body.menu-locked { overflow: hidden; }
/* ---------- 6. Banner ---------- */
.banner-wrap {
  position: relative;
  overflow: hidden;
  background: #e8ecf3;
}
.banner-track { position: relative; display: flex; transition: transform .72s var(--ease); }
.banner-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2.4 / 1;
}
.banner-media { position: absolute; inset: 0; overflow: hidden; }
.banner-slide img, .banner-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
}
.banner-slide video { object-fit: cover; }
.banner-slide.active .banner-media img { animation: kenburns 8s var(--ease) forwards; }
@keyframes kenburns{
  0% { transform: scale(1.02) translateX(0); }
  100% { transform: scale(1.13) translateX(-1.5%); }
}
.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 6% 8%;
  background: linear-gradient(90deg, rgba(10, 14, 26, .62) 0%, rgba(10, 14, 26, .18) 55%, transparent 78%);
  color: #fff;
  pointer-events: none;
}
.banner-overlay .banner-title {
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.08;
  max-width: 960px;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.banner-overlay .banner-subtitle { margin-top: 16px; font-size: clamp(15px, 2vw, 21px); color: #d8deec; max-width: 560px; line-height: 1.5; font-weight: 400; }
.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.banner-dots button {
  width: 26px;
  height: 5px;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 255, 255, .42);
  transition: background .2s, width .2s var(--ease);
}
.banner-dots button.active { background: #fff; width: 38px; }
/* ---------- 7. Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  padding: 22px 28px;
}
.trust-item .ic { color: var(--accent); flex: 0 0 auto; }
.trust-item img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.trust-item b { display: block; font-size: 14.5px; font-weight: 750; letter-spacing: -.01em; }
.trust-item span { font-size: 12.5px; color: var(--muted); }
/* ---------- 8. Section heads & product grid ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.section-sub { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 560px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 24px;
}
.pcard {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(13, 18, 32, .06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f4f8;
}
.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.pcard-body { padding:18px 25px 50px 25px;; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.pcard-name { font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name a:hover { color: var(--accent); }
.pcard-desc {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
/* Price on its own line, the two actions side by side underneath it. */
.pcard-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 18px; font-weight: 800; color: var(--ink); }
.pcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcard-actions .btn { padding: 9px 10px; font-size: 12.5px; white-space: nowrap; justify-content: center; }
/* ---------- 9. Why choose us ---------- */
.value-section { background: var(--surface); border-block: 1px solid var(--line); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 2px 12px rgba(13, 18, 32, .06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .v-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.value-card .v-text { min-width: 0; }
.value-card h3 { font-size: 20px; font-weight: 750; letter-spacing: -.01em;    margin-top: 8px; }
.value-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
/* ---------- 10. Video module ---------- */
.video-section { background: var(--bg); }
.video-full { padding: 0 !important; background: #0d1220; }
.video-full .video-frame { border-radius: 0; box-shadow: none; max-width: 100%; }
.video-frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); background: #0d1220; }
.video-frame video { width: 100%; display: block; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
/* ---------- 11. Ad banners ---------- */
.ad-banner { position: relative; display: block; overflow: hidden; border-radius: 0; box-shadow: none; }
.ad-banner img { width: 100%; aspect-ratio: auto; height: auto; display: block; object-fit: cover; transition: transform .6s var(--ease); }
.ad-banner:hover img { transform: scale(1.03); }
/* ---------- 13. Footer ---------- */
.site-footer { background: #0d1220; color: #aab3c6; }
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col .footer-title {
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a, .footer-col ul span { font-size: 14px; color: #aab3c6; transition: color .15s; }
.footer-col ul a:hover { color: #8fb1ff; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mini-badge {
  font-size: 11px;
  font-weight: 700;
  color: #c3ccdd;
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 5px 11px;
  border-radius: 999px;
}
.logo--footer .logo-mark { background: linear-gradient(135deg, var(--accent), #4f7bff); }
.footer-chat {
  background: none;
  border: 0;
  color: #8fb1ff;
  font-weight: 700;
  font-size: 14px;
  padding: 0;
}
.footer-chat:hover { color: #b9ccff; }
/* Social row */
.footer-social { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #c3ccdd;
  transition: all .2s var(--ease);
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-pay {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.pay-chip {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #dbe1ec;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 6px 12px;
  border-radius: 7px;
}
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #6d7894;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
/* ---------- 14. Mobile bottom nav ---------- */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  position: relative;
  transition: color .15s;
}
.mnav-item.active { color: var(--accent); }
.mnav-badge { position: absolute; top: 4px; left: 50%; margin-left: 6px; }
/* ---------- 15. Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  align-items: center;
}
.cart-item-img { width: 96px; height: 96px; border-radius: var(--radius-sm); overflow: hidden; background: #f2f4f8; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 700; font-size: 15px; display: block; }
.cart-item-name:hover { color: var(--accent); }
.cart-item-price { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.cart-item-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.link-remove { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; }
.link-remove:hover { color: var(--danger); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.step-btn {
  width: 34px;
  height: 34px;
  background: none;
  border: 0;
  font-size: 18px;
  color: var(--ink-2);
  transition: background .15s;
}
.step-btn:hover { background: var(--bg-alt); }
.stepper input { width: 44px; text-align: center; border: 0; background: none; font-weight: 700; font-size: 14px; }
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.cart-summary h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.summary-total { font-weight: 800; color: var(--ink); font-size: 16px; border-bottom: 0; }
.progress { height: 6px; background: var(--bg-alt); border-radius: 999px; margin-top: 9px; overflow: hidden; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state .ic { display: block; margin: 0 auto 18px; color: #c8cfdc; }
.empty-state h2 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.empty-state .btn { margin-top: 22px; }
/* ---------- 16. Product detail ---------- */
.product-page { padding: 0px 0 72px; }
@media (min-width: 901px) {.product-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }}
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: #c4cad6; }
.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f2f4f8;
  cursor: zoom-in;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.gallery-main.zooming img { transform: scale(2); cursor: zoom-out; }
.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(13, 18, 32, .55);
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.gallery-main:hover .zoom-hint { opacity: 1; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 74px;
  height: 74px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: #f2f4f8;
  padding: 0;
  transition: border-color .15s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); }
@media (max-width: 768px) {.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex-wrap: nowrap; }
.gallery-thumbs .thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; }}
.product-info h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.product-rating { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.stars { color: #f5a623; letter-spacing: 2px; }
.product-price-row { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.product-price-row .price { font-size: 30px; }
.product-stock { font-size: 13px; font-weight: 700; }
.product-stock.out { color: var(--danger); }
.product-desc { color: var(--ink-2); margin: 8px 0 22px; line-height: 1.7; }
.buy-box { background: var(--surface); border-radius: var(--radius); padding: 22px; }
/* One line from 768px up: quantity stepper, then the inquiry button. Below
   that the two stack, so a thumb never has to hit a 40px target. */
.buy-row { display: flex; align-items: center; gap: 20px; }
.buy-row .qty-row { margin-bottom: 0; flex: 0 0 auto; }
.buy-row .buy-btns { flex: 1 1 auto; grid-template-columns: 1fr; }
@media (max-width: 767px) {.buy-row { display: block; }
.buy-row .qty-row { margin-bottom: 14px; }}
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qty-row .stepper { height: 44px; }
.qty-row .stepper .step-btn { height: 44px; width: 44px; }
.qty-row .stepper input { width: 54px; font-size: 15px; }
.buy-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-perks { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.product-perks span { display: inline-flex; align-items: center; gap: 7px; }
.product-detail-section { padding-top: 20px; }
.prose { color: var(--ink-2); line-height: 1.75; }
.prose p { margin-bottom: 5px; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 24px; margin-bottom: 20px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose ol { list-style: decimal; padding-left: 22px; margin-bottom: 16px; }
.prose img { border-radius: var(--radius-sm); }
.prose a { color: var(--accent); text-decoration: underline; }
.spec-rich table.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.spec-rich .spec-table td { border: 1px solid var(--line); padding: 12px 16px; font-size: 14px; }
.spec-rich .spec-table td:first-child { font-weight: 700; color: var(--ink); background: var(--bg); width: 40%; }
/* ---------- 18. Forms & auth ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 91, 238, .14);
}
.field .hint { font-size: 12px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req { color: var(--danger); }
.auth-wrap { display: grid; place-items: center; padding: 16px 0 80px; }
.auth-card {
  width: 80%;
  max-width: 800px;
  background: var(--surface);
  border-radius: 18px;
  padding: 45px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 720px) {.auth-wrap { padding: 12px var(--container-wap-pad, 16px) 64px; }
.auth-card { width: 100%; padding: 28px 24px; margin: 0 auto; }}
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.auth-alt { margin-top: 20px; text-align: left; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 700; }
.auth-note { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
/* ---- Social quick-login (Google / Facebook / Outlook) ---- */
.auth-social { margin-top: 26px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line, rgba(0,0,0,.1)); }
.auth-social-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 16px; border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--line, rgba(0,0,0,.14));
  background: var(--surface, #fff); color: var(--ink);
  font-size: 14.5px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-social img { width: 19px; height: 19px; flex: 0 0 auto; }
.btn-social:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm, 0 6px 18px -8px rgba(0,0,0,.25)); border-color: rgba(0,0,0,.25); }
.btn-facebook:hover { border-color: #1877F2; }
.btn-outlook:hover { border-color: #0072C6; }
/* Demo authorization page */
.oauth-demo-provider { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line, rgba(0,0,0,.14)); border-radius: var(--radius-sm, 10px); margin-bottom: 22px; }
.oauth-demo-badge { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 800; flex: 0 0 auto; }
.oauth-demo-provider strong { font-size: 15.5px; }
@media (max-width: 420px) {.btn-social { font-size: 13.5px; padding: 10px 12px; }}
.alert { border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: #fdf1f1; color: var(--danger); border: 1px solid #f4caca; }
.alert-ok { background: #eafaf3; color: var(--success); border: 1px solid #bfe8d6; }
.alert-warn { background: #fdf6ec; color: var(--warn); border: 1px solid #f2ddbc; }
/* ---------- 19. FAQ / track / about / page ---------- */
.cms-page { color: var(--ink-2); line-height: 1.8; }
.cms-page-img { border-radius: var(--radius); margin-bottom: 24px; max-height: 460px; object-fit: cover; width: 100%; }
.cms-page .prose { max-width: none; }
.track-form { max-width: 560px; margin-bottom: 36px; }
.track-form .field-row { grid-template-columns: 1fr auto; align-items: end; }
.track-result { max-width: 720px; }
.order-card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(13, 18, 32, .06); }
.order-card-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.order-no { font-weight: 800; }
.order-card-body { display: flex; flex-direction: column; gap: 14px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-step { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.tl-step::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.tl-step:last-child::before { display: none; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--line); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--line); flex: 0 0 auto; margin-top: 2px; z-index: 1; }
.tl-step.done .tl-dot { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.tl-step.active .tl-dot { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tl-step b { font-size: 14.5px; }
.tl-step p { font-size: 13px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card h3 { font-size: 18px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line, #e8ebf0); }
.contact-card p { color: var(--muted); margin-bottom: 8px; }
.contact-card a { color: var(--accent); font-weight: 650; }
/* ---------- 20. Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; }
.checkout-main .a-card, .checkout-main .card-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.checkout-main h2 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.checkout-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.checkout-summary h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.summary-items { margin-bottom: 14px; }
.summary-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.summary-item-name { font-size: 13.5px; font-weight: 650; flex: 1; }
.summary-item-name small { display: block; color: var(--muted); font-weight: 500; }
.bank-info { background: var(--bg); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 16px; margin-top: 14px; font-size: 13.5px; }
.bank-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.secure-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
/* ---------- 21. Account / orders / addresses ---------- */
.order-list { display: flex; flex-direction: column; gap: 14px; }
.order-card-head .status { margin-left: auto; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.detail-head h2 { font-size: 18px; }
.detail-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.addr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.addr-list + .sub-title { margin-top: 0; }
.addr-card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 20px; position: relative; box-shadow: 0 2px 12px rgba(13, 18, 32, .06); }
.addr-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.addr-card-head b { font-size: 15px; }
.addr-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.addr-actions { display: flex; gap: 12px; margin-top: 14px; }
.order-summary-mini { font-size: 13.5px; color: var(--muted); }
.kv { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv b { font-weight: 700; }
/* ---------- 22. Success page ---------- */
.success-card { margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 48px 36px; }
.success-check { width: 72px; height: 72px; border-radius: 50%; background: #eafaf3; color: var(--success); display: grid; place-items: center; margin: 0 auto 20px; }
.success-card h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.success-sub { color: var(--muted); margin-bottom: 26px; }
.success-note { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px; font-size: 14px; margin-bottom: 20px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* ---------- 23. Toast & modal ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  background: #0d1220;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all .3s var(--ease);
  z-index: 200;
  max-width: 88vw;
  text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 14, 26, .55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  text-align: center;
  transform: translateY(12px);
  transition: transform .28s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-alt);
  color: var(--ink-2);
  font-size: 18px;
}
.wechat-icon { width: 56px; height: 56px; border-radius: 16px; background: #07c160; color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.wechat-body .wechat-title { font-size: 20px; margin-bottom: 8px; }
.wechat-note { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.wechat-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.wechat-qr { border-radius: var(--radius-sm); margin: 0 auto 16px; width: 180px; height: 180px; object-fit: cover; }
/* ---------- 25. Scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {.rv { opacity: 1; transform: none; transition: none; }
.banner-slide.active .banner-media img { animation: none; }}
@media (max-width: 1080px) {/* The inline --cols is the desktop setting (4); below 1080 four cards with
     two side-by-side buttons each becomes unreadable, so the grid is fixed. */
.product-grid { grid-template-columns: repeat(3, 1fr) !important; }
.pcard-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
.pcard-actions { width: 100%; }
.pcard-actions .btn { flex: 1; justify-content: center; }
.footer-top { grid-template-columns: 1fr 1fr 1fr; }
.cart-layout, .checkout-layout { grid-template-columns: 1fr; }
.cart-summary, .checkout-summary { position: static; }
.trust-strip { grid-template-columns: repeat(2, 1fr); }
.value-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }}
@media (max-width: 1400px) {/* The wordmark is 5.3:1, so the inline menu only appears when it genuinely
     fits beside it — below this width the hamburger takes over. */
.nav-row { display: none !important; }
.hamburger { display: inline-flex; }}
@media (max-width: 900px) {:root { --container: var(--container-wap, 100%); --container-pad: var(--container-wap-pad, 16px); --header-h: 64px; }
.container { padding: 0 var(--container-wap-pad, 16px); }
.nav-row { display: none; }
.logo-img { height: 34px; }
.logo .logo-img { height: 32px; }
.hamburger { display: inline-flex; }
.detail-grid, .addr-list, .contact-grid, .field-row { grid-template-columns: 1fr; }
.banner-slide { aspect-ratio: auto; height: 700px; max-height: 88vh; }}
@media (max-width: 640px) {.container { padding: 0 var(--container-wap-pad, 16px); }
.btn-sm { padding: 9px 12px; font-size: 11px; }
.btn.btn-primary { width: 100%; justify-content: center; }
.product-stats-section .stat-desc { font-size: 12px !important; }
.section { padding: 52px 0; }
.product-grid { grid-template-columns: repeat(var(--cols-mob, 1), 1fr) !important; gap: 16px; }
.pcard { flex-direction: column; }
.pcard-media { width: 100%; flex: none; aspect-ratio: 4 / 3; }
.pcard-body { padding: 16px; }
.pcard-desc { -webkit-line-clamp: 2; min-height: 0; }
.pcard-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
.pcard-actions { width: 100%; }
.pcard-actions .btn { flex: 1; justify-content: center; padding: 11px 14px; font-size: 13px; }
.footer-top { grid-template-columns: 1fr 1fr; gap: 26px; padding: 44px var(--container-wap-pad, 16px) 40px; }
.footer-brand { grid-column: 1 / -1; }
.footer-bottom { flex-direction: column; text-align: center; padding-left: var(--container-wap-pad, 16px); padding-right: var(--container-wap-pad, 16px); }
.footer-pay { padding-left: var(--container-wap-pad, 16px); padding-right: var(--container-wap-pad, 16px); }
.trust-strip { grid-template-columns: 1fr; }
.trust-item { padding: 16px 18px; }
.section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
.cart-item { grid-template-columns: 76px 1fr; }
.cart-item-img { width: 76px; height: 76px; }
.buy-btns { grid-template-columns: 1fr; }
.mobile-nav { display: flex; }
.site-footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.page-head { padding: 40px 0 36px; }
.mm-link { font-size: 18px; }
.mobile-menu-overlay { padding: 56px 20px calc(32px + env(safe-area-inset-bottom)); }}
@media (min-width: 641px) and (max-width: 1080px) {.pcard { flex-direction: column; }
.pcard-media { width: auto; flex: none; aspect-ratio: 1 / 1; }
.pcard-desc { min-height: 0; }}
/* ============ V2 OPTIMIZATIONS ============ */
/* Header logo - dark text (footer logo is white) */
.site-header .logo-text b { color: var(--ink); }
.site-header .logo-text small { color: var(--muted); }
.footer-social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social { margin-top: 18px; }
/* Ad overlay text (like banner) */
.ad-banner { position: relative; }
.ad-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 6% 8%; background: linear-gradient(90deg, rgba(10,14,26,.65) 0%, rgba(10,14,26,.2) 60%, transparent 80%);
  color: #fff; pointer-events: none;
}
.ad-overlay-title { font-size: clamp(24px, 3.5vw, 44px); font-weight: 850; letter-spacing: -.03em; line-height: 1.1; max-width: 560px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.ad-overlay-sub { margin-top: 12px; font-size: clamp(14px, 1.6vw, 18px); color: #d8deec; max-width: 480px; line-height: 1.5; }
/* Video - no radius always */
.video-frame { border-radius: 0 !important; }
/* FAQ - premium spacing. One rule per element: the old block further up the file
   carried a second .faq-group / .faq-group-title / .faq-item definition, so the
   groups rendered twice as far apart as intended. Group spacing is left to the
   rail gap, so no margin-bottom is applied here. */
.faq-group { margin-bottom: 0; }
.faq-group-title { font-size: 22px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.02em; }
.faq-item { background: var(--surface); border: 0; border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(13, 18, 32, .06); }
.faq-item summary { padding: 22px 26px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > div { padding: 0 26px 24px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.faq-list { max-width: none; width: 100%; }
/* Track form - cohesive */
.track-form { display: flex; gap: 0; max-width: 560px; margin-bottom: 36px; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.track-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.track-form input { flex: 1; border: 0; padding: 14px 22px; font-size: 15px; background: transparent; outline: none; }
.track-form button { border-radius: 0 999px 999px 0; padding: 14px 28px; font-size: 15px; font-weight: 700; border: 0; }
/* Cart buttons - spacing */
.cart-summary .btn + .btn { margin-top: 12px; }
/* Product detail section - reduce bottom margin */
.product-detail-section { padding-bottom: 20px !important; margin-bottom: 0 !important; }
/* The section directly under the buy box keeps its own 20px top padding (it
   sits on a grey wash, so the rhythm comes from the colour change, not from a
   70px gap). Every other following section keeps the wider desktop rhythm. */
.product-detail-section + .section:not(.product-spec-section) { padding-top: 70px !important; }
@media (max-width: 640px) {.product-detail-section { padding-left: var(--container-wap-pad, 16px); padding-right: var(--container-wap-pad, 16px); }
.value-grid { grid-template-columns: 1fr; }
.track-form { flex-direction: column; border-radius: var(--radius); }
.track-form input { padding: 14px 18px; }
.track-form button { border-radius: 0 0 var(--radius) var(--radius); }
.faq-item summary { padding: 18px 20px; font-size: 15px; }
.faq-item > div { padding: 0 20px 20px; }}
/* Account dashboard - premium redesign */
.dash-hero { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; border-radius: var(--radius); padding: 32px 28px; margin-bottom: 28px; }
.dash-hero h1 { font-size: 24px; font-weight: 800; }
.dash-hero p { opacity: .85; margin-top: 6px; font-size: 14px; }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.dash-card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 22px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 12px rgba(13, 18, 32, .06); transition: transform .2s, box-shadow .2s; }
.dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dash-icon { width: 60px; height: 60px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.dash-card b { font-size: 20px; font-weight: 800; display: block; }
.dash-card small { color: var(--muted); font-size: 12.5px; }
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 2px 12px rgba(13, 18, 32, .06); transition: box-shadow .2s, transform .2s; }
.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.order-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-no { font-weight: 700; font-size: 15px; }
.order-card-body { display: flex; gap: 20px; color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) {.dash-cards { grid-template-columns: repeat(2, 1fr); }}
@media (max-width: 640px) {.dash-cards { grid-template-columns: 1fr; }
.dash-hero { padding: 24px 20px; }}
/* ============ V3 OPTIMIZATIONS ============ */
/* Track page - 25px gap between text and form */
.track-form { margin-top: 25px; }
/* Trust strip - aligned with container, grid layout */
.trust-strip { display: block; padding: 20px 0; background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.trust-item img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.trust-item b { display: block; font-size: 14.5px; font-weight: 750; }
.trust-item span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 768px) {.trust-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }}
@media (max-width: 480px) {.trust-grid { grid-template-columns: 1fr; gap: 12px; }}
/* Video full - truly full width, no side margins */
.video-full { width: 100%; max-width: 100%; padding: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
.video-full .video-frame { width: 100%; max-width: 100%; border-radius: 0 !important; margin: 0; }
.video-full video { width: 100%; display: block; }
/* Value card as link - no underline, inherit colors */
a.value-card { text-decoration: none; color: inherit; display: flex; align-items: flex-start; gap: 16px; }
a.value-card:hover { text-decoration: none;}
@media (max-width: 640px) {/* The photo fills the media box on phones instead of sitting letter-boxed
     inside it with grey bars. */
.pcard-media { aspect-ratio: 1 / 1; }
.pcard-media img { object-fit: cover; width: 100%; height: 100%; }}
/* Footer social - 1 row, 4 items, below badges */
.footer-brand .footer-social { margin-top: 18px; }
.footer-social-links { display: flex; gap: 10px; flex-wrap: nowrap; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
  transition: background .2s, transform .2s; flex-shrink: 0;
}
.social-link:hover { background: var(--accent); transform: translateY(-2px); }
@media (max-width: 480px) {.footer-social-links { flex-wrap: nowrap; }
.social-link { width: 32px; height: 32px; }
.social-link .ic { width: 15px; height: 15px; }}
/* ============ V4 OPTIMIZATIONS ============ */
/* Secondary color applications */
.price, .product-price, .product-price-row .price, .pcard-price {
  color: var(--secondary) !important;
  font-weight: 800;
}
.pcard-tag {
  background: var(--secondary) !important;
  color: #fff !important;
}
/* Alignment classes for banner/ad/cta overlays */
.banner-overlay.align-center, .ad-overlay.align-center {
  align-items: center;
  text-align: center;
}
/* FAQ full width */
/* Product detail - chat button margin */
/* Header nav-row - full width border top + vertical center */
.nav-row {
  
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
}
.nav-row .nav-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
}
/* ============ V5 OPTIMIZATIONS ============ */
/* Chat/WeChat modal - QR smaller, spacing, line-height */
.wechat-qr { max-width: 160px; max-height: 160px; width: 100%; height: auto; }
.wechat-qr.placeholder { width: 160px; height: 160px; }
#wechatOpenApp { margin-top: 16px; margin-bottom: 10px; }
.wechat-body > p { line-height: 1.5; margin-bottom: 16px; }
.wechat-note { line-height: 1.5; font-size: 12.5px; }
/* Category chip active - secondary color */
@media (max-width: 768px) {.nav-row { display: none !important; }}
@media (max-width: 768px) {.container.page, .page .container, .section.container {
    padding-left: var(--container-wap-pad, 16px);
    padding-right: var(--container-wap-pad, 16px);
  }
.page-head .container {
    padding-left: var(--container-wap-pad, 16px);
    padding-right: var(--container-wap-pad, 16px);
  }
/* Product list page - same margins as homepage */
/* Related products - horizontal margins */
/* Track, About, FAQ, Contact pages */
.track-form { max-width: 100%; }
.prose { padding-left: 0; padding-right: 0; }}
/* Banner/ad button */
.banner-btn, .ad-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.banner-btn:hover, .ad-btn:hover {
  background: var(--secondary-deep);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.banner-overlay.align-center .banner-btn, .ad-overlay.align-center .ad-btn {
  align-self: center;
}
/* ============ BLOG PAGES ============ */
/* List card: photo on the LEFT inside its own white gutter, copy on the right.
   The photo keeps a 4:3 frame; the padding around it is the visible gap between
   the image and the white card edge. Everything below is the single source of
   truth for this card — there used to be three overlapping copies, and the one
   that won put the photo on the right and stretched it away from the frame. */
.blog-card { display: flex; flex-direction: row; align-items: stretch; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.blog-card-img { display: flex; align-items: center; width: 38%; min-width: 300px; flex-shrink: 0; padding: 18px; box-sizing: border-box; }
.blog-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.02); }
.blog-card-body { flex: 1; min-width: 0; padding: 26px 30px 26px 18px; display: flex; flex-direction: column; justify-content: center; }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: #8a93a6; margin-bottom: 12px; }
.blog-cat { background: var(--accent-soft, #eef2ff); color: var(--accent); padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; text-decoration: none; }
.blog-cat:hover { text-decoration: none; color: var(--accent); }
.blog-card-title { font-size: 20px; font-weight: 700; margin: 0 0 10px; line-height: 1.35; }
.blog-card-title a { color: var(--text, #1a1f36); text-decoration: none; }
.blog-card-title a:hover { color: var(--accent); }
/* Blog hub paging — numbered links keep every article one click from /blog */
.blog-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 4px; }
.blog-pager-link, .blog-pager-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: border-color .18s, color .18s, background .18s;
}
.blog-pager-num { min-width: 38px; padding: 0; }
.blog-pager-link:hover, .blog-pager-num:hover { border-color: var(--accent); color: var(--accent); }
.blog-pager-num.is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 640px) {
  .blog-pager { margin: 20px 0 4px; gap: 6px; }
  .blog-pager-link, .blog-pager-num { height: 34px; min-width: 34px; padding: 0 10px; font-size: 13px; }
}
.blog-card-desc { color: #5a6478; font-size: 14px; line-height: 1.7; margin: 0 0 14px; }
.blog-card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) {/* One column: photo on top, still framed by the same gutter. */
.blog-card { flex-direction: column; }
.blog-card-img { width: 100%; min-width: 0; padding: 14px; }
.blog-card-body { padding: 4px 18px 22px; }}
/* .blog-tag is defined once, in the tag section below. */
.blog-empty { text-align: center; padding: 60px 0; color: #8a93a6; }
/* Blog article */
.blog-article-head { background: #ffffff; padding: 56px 0 40px; }
.blog-article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13.5px; color: #8a93a6; margin-bottom: 16px; }
.blog-article-title { font-size: 36px; font-weight: 800; line-height: 1.25; margin: 0 0 14px; color: var(--text, #1a1f36); }
.blog-article-desc { font-size: 17px; color: #5a6478; line-height: 1.7; max-width: none; margin: 0; }
.blog-article-cover { padding: 32px 0; }
.blog-article-cover img { width: 100%; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.1); }
/* The article body fills the content column: the rail already sets the reading
   width, so no second max-width is applied here. */
.blog-article-body { width: 100%; max-width: none; margin: 0; }
.blog-content { font-size: 16.5px; line-height: 1.85; color: #2d3548; }
.blog-content h2 { font-size: 26px; font-weight: 700; margin: 36px 0 16px; }
.blog-content h3 { font-size: 21px; font-weight: 700; margin: 28px 0 12px; }
.blog-content p { margin-bottom: 18px; }
.blog-content img { max-width: 100%; border-radius: 10px; margin: 16px 0; }
.blog-content a { color: var(--accent); }
.blog-article-tags { margin-top: 36px; padding-top: 24px; border-top: 1px solid #e8ecf4; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.blog-tags-label { font-weight: 600; color: #5a6478; font-size: 14px; }
.blog-related { padding: 40px 0 60px; border-top: 1px solid #e8ecf4; }
.section-head-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-related-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); text-decoration: none; transition: transform .25s; display: block; }
.blog-related-card:hover { transform: translateY(-3px); text-decoration: none; }
.blog-related-img { aspect-ratio: 16/9; overflow: hidden; background: #f0f2f5; }
.blog-related-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-related-body { padding: 16px 25px 30px 25px; }
.blog-related-body h3 { font-size: 16px; font-weight: 600;  color: var(--text, #1a1f36); line-height: 1.4; }
@media (max-width: 900px) {.blog-article-title { font-size: 28px; }
.blog-related-grid { grid-template-columns: 1fr; }}
@media (max-width: 768px) {.blog-card-body { padding: 18px 20px; }
.blog-card-title { font-size: 19px; }
.blog-article-head { padding: 36px 0 28px; }
.blog-article-title { font-size: 24px; }
.blog-article-desc { font-size: 15px; }
.blog-content { font-size: 15.5px; }}
/* ============ V6: Video overlay, CTA bg, Blog home ============ */
.video-frame { position: relative; overflow: hidden; border-radius: 0; }
/* Blog home section */
.blog-home-section { padding: 64px 0; background: #f7f8fa; }
.home-viewall { text-align: center; margin-top: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 24px; }
@media (max-width: 1080px) {.gallery-grid { grid-template-columns: repeat(var(--cols, 3), 1fr) !important; }}
@media (max-width: 768px) {.gallery-grid { grid-template-columns: repeat(var(--cols-mob, 2), 1fr) !important; }}
@media (max-width: 540px) {.gallery-grid { grid-template-columns: repeat(var(--cols-mob, 1), 1fr) !important; }}
.blog-home-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 28px; }
.blog-home-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.blog-home-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.1); }
.blog-home-card-img { aspect-ratio: 16/9; overflow: hidden; background: #eef0f5; }
.blog-home-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-home-card:hover .blog-home-card-img img { transform: scale(1.05); }
.blog-home-card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-home-card-meta { font-size: 12.5px; color: #8a93a6; margin-bottom: 10px; display: flex; gap: 12px; }
.blog-home-card-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-home-card-title a { color: var(--text); text-decoration: none; }
.blog-home-card-title a:hover { color: var(--accent); }
.blog-home-card-desc { font-size: 14px; color: #5a6478; line-height: 1.65; margin: 0 0 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-home-card-more { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
@media (max-width: 900px) {.blog-home-grid { grid-template-columns: repeat(var(--cols-mob, 1), 1fr) !important; }}
/* ============ V7: Blog redesign, admin polish, mobile fixes ============ */
/* Blog detail - left aligned, editorial */
.blog-article-head { text-align: left; padding: 48px 0 36px; }
.blog-article-head .container { text-align: left; }
.blog-article-title { text-align: left; }
.blog-article-desc { text-align: left; }
.blog-article-meta { justify-content: flex-start; }
.blog-content { text-align: left; }
.blog-content p { text-align: left; }
.blog-article-cover { padding: 0 0 16px; }
.blog-article-cover img { border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.08); }
@media (max-width: 768px) {.blog-card { flex-direction: column; }
.blog-card-img { width: 100%; min-width: 0; aspect-ratio: 16/9; }
.blog-card-body { padding: 20px 22px; }
.blog-article-title { font-size: 24px; }
.blog-article-head { padding: 32px 0 24px; }}
/* Admin: sort column first, consistent */
.a-table th:first-child, .a-table td:first-child { text-align: center; }
.a-sort-input, .sort-input {
  width: 60px; padding: 5px 8px; border: 1px solid #d0d5dd;
  border-radius: 6px; text-align: center; font-size: 13px;
  transition: border-color .2s;
}
.a-sort-input:focus, .sort-input:focus { outline: none; border-color: var(--accent); }
/* Admin: ad image upload - replace button top-right */
@keyframes fadeIn{ from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp{ from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
/* ===== V8 Additions ===== */
/* Cookie Consent Banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(15, 23, 42, 0.97); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-text {
  flex: 1; min-width: 280px; color: rgba(255,255,255,0.85);
  font-size: 13.5px; line-height: 1.65;
}
.cookie-text p { margin: 0; }
.cookie-text a { color: #60a5fa; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 10px 24px; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
}
.cookie-btn-reject {
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
}
.cookie-btn-reject:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.cookie-btn-accept {
  background: var(--primary, #2b5bee); color: #fff;
}
.cookie-btn-accept:hover { opacity: 0.9; transform: translateY(-1px); }
/* Media Library Grid */
.media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.media-item {
  border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden;
  background: #fff; transition: box-shadow 0.2s;
}
.media-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.media-preview {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background: #f3f4f6; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.media-preview video { width: 100%; height: 100%; object-fit: cover; }
.media-type-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.7); color: #fff; font-size: 11px;
  padding: 3px 8px; border-radius: 4px; font-weight: 600;
}
.media-info { padding: 10px 12px; }
.media-name {
  font-size: 12.5px; font-weight: 600; color: #1f2937;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.media-meta { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.media-actions { display: flex; gap: 6px; margin-top: 8px; }
/* Admin input small */
.a-input-sm {
  padding: 6px 8px; font-size: 13px; border: 1px solid #d0d5dd;
  border-radius: 6px; width: 100%; background: #fff;
}
.a-input-sm:focus { outline: none; border-color: var(--primary, #2b5bee); box-shadow: 0 0 0 3px rgba(43,91,238,0.1); }
/* Admin blog list unified */
.admin-page-head { margin-bottom: 20px; }
.admin-page-head h1 { font-size: 22px; font-weight: 800; color: #111827; margin: 0; }
.admin-page-head .a-sub { color: #6b7280; font-size: 13.5px; margin-top: 4px; }
/* Rich Text Editor - font size fix */
/* 已迁移至 admin.css 的 .rte-select（后台唯一样式源）；此处旧规则与 admin.css 冲突（无 max-width 会撑宽下拉），已移除 */
/* Blog detail - tighter image to content */
.blog-article-cover { padding: 0 0 12px !important; }
@media (max-width: 640px) {.cookie-banner-inner { padding: 14px 16px; gap: 14px; }
.cookie-text { font-size: 12.5px; min-width: 100%; }
.cookie-actions { width: 100%; }
.cookie-btn { flex: 1; padding: 12px; }}
/* ===== V9: video overlay unify, admin polish ===== */
/* Product cards carry exactly one photo: the gallery shot. A second hover
   image was a duplicate request per card, so cards only zoom on hover now. */
.pcard-media { position: relative; overflow: hidden; }
.pcard-img-main { transition: opacity .35s ease, transform .5s var(--ease); }
.pcard:hover .pcard-img-main { transform: scale(1.05); }
/* Video overlay - unified with ad overlay style */
/* Media library - 1:1 grid */
.media-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; }
.media-preview { aspect-ratio: 1 / 1 !important; }
/* Admin unified button styles */
.a-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: all .15s; line-height: 1.4; white-space: nowrap;
}
.a-btn-primary { background: var(--primary, #2b5bee); color: #fff; }
.a-btn-primary:hover { opacity: .9; color: #fff; }
.a-btn-ghost { background: #fff; color: #374151; border-color: #d0d5dd; }
.a-btn-ghost:hover { border-color: #9ca3af; background: #f9fafb; }
.a-btn-danger-soft { background: #fef2f2; color: #dc2626; }
.a-btn-danger-soft:hover { background: #fee2e2; }
.a-btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 6px; }
.a-toolbar { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
/* Admin table - unified */
.a-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.a-table th { text-align: left; padding: 12px 14px; background: #f9fafb; font-weight: 700; color: #374151; border-bottom: 2px solid #e5e7eb; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.a-table td { padding: 14px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.a-table tr:hover { background: #fafbfc; }
.cell-main { font-weight: 600; color: #1f2937; }
.cell-sub { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.a-code { background: #f3f4f6; padding: 2px 8px; border-radius: 4px; font-size: 12px; color: #4b5563; font-family: monospace; }
.a-empty { text-align: center; padding: 40px; color: #9ca3af; font-size: 14px; }
/* Admin badges */
.a-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.a-badge-gray { background: #f3f4f6; color: #6b7280; }
/* Admin sort input */
.a-sort-input {
  width: 60px; padding: 5px 8px; font-size: 13px;
  border: 1px solid #d0d5dd; border-radius: 6px; text-align: center;
}
.a-sort-input:focus { outline: none; border-color: var(--primary, #2b5bee); box-shadow: 0 0 0 3px rgba(43,91,238,.1); }
/* ===== V10: Admin style unify, frontend fixes ===== */
/* Frontend: page-head title left align without left padding */
.page-head h1, .page-head p { padding-left: 0 !important; margin-left: 0 !important; }
/* Frontend: breadcrumb equal margins */
.breadcrumb { margin-top: 20px !important; margin-bottom: 20px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
/* Admin: unified sort input (match menus.ejs style) */
.a-sort-input {
  width: 60px !important;
  padding: 4px 8px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 6px !important;
  text-align: center !important;
  font-size: 13px !important;
}
.a-sort-input:focus { outline: none; border-color: #2b5bee !important; box-shadow: 0 0 0 3px rgba(43,91,238,.1) !important; }
/* Admin: unified status badge (match menus.ejs) */
.a-badge.green { background: #d1fae5 !important; color: #065f46 !important; }
.a-badge.gray { background: #f3f4f6 !important; color: #6b7280 !important; }
/* Admin: status clickable badge */
.a-badge-clickable { cursor: pointer; transition: opacity .15s; user-select: none; }
.a-badge-clickable:hover { opacity: .8; }
/* Admin: socials table inputs unified */
.a-input-sm {
  padding: 5px 8px !important;
  font-size: 13px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 6px !important;
  background: #fff !important;
  width: 100% !important;
}
.a-input-sm:focus { outline: none; border-color: #2b5bee !important; box-shadow: 0 0 0 3px rgba(43,91,238,.1) !important; }
/* Admin: media grid - force 4 per row */
.media-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; }
@media (max-width: 1024px) {.media-grid { grid-template-columns: repeat(3, 1fr) !important; }}
@media (max-width: 640px) {.media-grid { grid-template-columns: repeat(2, 1fr) !important; }}
/* Admin: member ban button - badge style */
.member-ban-btn {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; border: none; cursor: pointer;
  background: #d1fae5; color: #065f46; transition: all .15s;
}
.member-ban-btn:hover { background: #a7f3d0; }
.member-ban-btn.banned { background: #fee2e2; color: #991b1b; }
.member-ban-btn.banned:hover { background: #fecaca; }
/* ---------- Policy pages (Privacy / Cookie) ----------
   Both legal pages share one type scale so a reader never sees two different
   body sizes or paragraph rhythms when switching between them. */
.policy-body {
  max-width: 78ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.policy-body h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.012em;
  line-height: 1.35;
  color: var(--ink);
  margin: 34px 0 12px;
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 26px 0 10px;
}
.policy-body p { margin: 0 0 14px; }
.policy-body ul, .policy-body ol { margin: 0 0 18px; padding-left: 22px; }
.policy-body li { margin: 0 0 8px; }
.policy-body strong { color: var(--ink); }
.policy-body a { color: var(--accent-deep); border-bottom: 1px solid var(--line-strong); }
.policy-body a:hover { border-bottom-color: var(--accent); }
/* "Last updated" is no longer rendered (see policy-page.ejs). The Related block
   is the same panel component as .cat-related ("Keep reading"), so both legal
   pages now line up with the case and product-line pages: white panel, no border,
   same padding and the same 40px clearance above. */
.policy-related { margin-top: 40px; padding: 24px 26px; background: #fff; border: 0; border-radius: 12px; }
.policy-related h2 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 14px; }
/* The bullet list used to be indented 20px, which pushed it out of line with
   the "Related" heading above it. The list now inherits .related-list exactly as
   the case and blog detail pages do — same 1.7 line height, same 10px gap, same
   16px bullet inset — so "Keep reading" measures the same on every page. */
.media-item { display: flex !important; flex-direction: column !important; width: 100% !important; }
.media-preview { aspect-ratio: 1 / 1 !important; width: 100% !important; }
@media (max-width: 1024px) {.media-grid { grid-template-columns: repeat(3, 1fr) !important; }}
@media (max-width: 640px) {.media-grid { grid-template-columns: repeat(2, 1fr) !important; }}
/* ===== V17: Responsive grid + breadcrumbs ===== */
/* Breadcrumb in page-head */
.page-head .breadcrumb {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.page-head .breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.page-head .breadcrumb a:hover { color: #fff; }
.page-head .breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,.35); }
.page-head .breadcrumb span:last-child { color: rgba(255,255,255,.9); }
@media (max-width: 1480px) {.header-main { padding: 0 var(--container-pad, 20px); }
.container { padding: 0 var(--container-pad, 20px); }
.section.container { padding: 40px var(--container-pad, 24px) 60px; }}
@media (max-width: 1080px) {.product-grid { grid-template-columns: repeat(var(--cols, 3), 1fr) !important; gap: 20px !important; }}
@media (max-width: 720px) {.product-grid { grid-template-columns: repeat(var(--cols-mob, 1), 1fr) !important; gap: 16px !important; }
.container { padding: 0 var(--container-wap-pad, 16px); }
.section.container { padding: 32px var(--container-wap-pad, 16px) 48px; }
.page-head .container { padding: 0 var(--container-wap-pad, 16px); }}
/* Breadcrumb on white-background pages */
.container.page .breadcrumb {
  margin-bottom: 16px !important;
  font-size: 13px;
  color: var(--muted);
}
.container.page .breadcrumb a { color: var(--muted); text-decoration: none; }
.container.page .breadcrumb a:hover { color: var(--accent); }
.container.page .breadcrumb .sep { margin: 0 8px; color: #c4cad6; }
.auth-wrap + .container .breadcrumb, .container + .auth-wrap { /* noop */ }
/* ===== V19: page-head banner layers, sort input, policy margins, blog breadcrumb ===== */
.page-head { position: relative; overflow: hidden; }
.page-head .ph-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; z-index: 1; }
.page-head .ph-bg-mobile { display: none; }
.page-head .container { position: relative; z-index: 2; }
@media (max-width: 720px) {.page-head .ph-bg { display: none; }
.page-head .ph-bg-mobile { display: block; }}
/* Admin sort input */
.a-sort-input {
  width: 70px; height: 30px; border: 1px solid #d0d5dd; border-radius: 6px;
  padding: 0 6px; font-size: 13px; color: #1d2939; background: #fff; text-align: center;
  transition: border-color .2s;
}
.a-sort-input:focus { outline: none; border-color: #2b5bee; box-shadow: 0 0 0 3px rgba(43,91,238,.12); }
/* Blog post breadcrumb spacing (matches other pages) */
.blog-article-head .container { padding-top: 34px; }
.blog-article-head .breadcrumb { margin: 0 0 18px !important; padding: 0 !important; font-size: 13px; color: #8a93a6; }
.blog-article-head .breadcrumb a { color: #8a93a6; text-decoration: none; }
.blog-article-head .breadcrumb a:hover { color: var(--accent, #2b5bee); }
.blog-article-head .breadcrumb .sep { margin: 0 8px; color: #c4cad6; }
@media (max-width: 768px) {.banner-slide .btn, .ad-overlay .a-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    min-height: 36px !important;
  }
.ad-overlay h2 {
    font-size: 20px !important;
  }
.ad-overlay p {
    font-size: 13px !important;
  }}
@media (max-width: 480px) {.banner-slide .btn, .ad-overlay .a-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-height: 32px !important;
  }
.ad-overlay h2 {
    font-size: 17px !important;
  }}
/* Case category badge */
.case-card-img { position: relative; display: block; overflow: hidden; }
.case-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(43,91,238,0.92);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  letter-spacing: 0.3px;
}
/* ===== Tag cloud & tag pages ===== */
.tag-cloud-item {
  display:inline-flex;
  align-items:center;
  padding:10px 18px;
  background:#f5f7fa;
  border:1px solid #e2e8f0;
  border-radius:8px;
  color:#1a1a1a;
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  transition:all .2s;
  justify-content:center;
}
/* Tag and chip hovers all land on the brand blue: a tag is a link, and a link
   hover that turns black (or invisible, as the undefined --secondary did here)
   reads as a different product. */
.tag-cloud-item:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.blog-article-tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:12px;
}
.blog-tags-label {
  font-weight:600;
  color:#334155;
  margin-right:4px;
}
.blog-tag {
  display:inline-block;
  padding:4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius:20px;
  font-size:13px;
  text-decoration:none;
  transition:background .2s, color .2s, border-color .2s;
  border:1px solid transparent;
}
.blog-tag:hover, .blog-tag.active {
  background: var(--accent);
  color:#fff;
  border-color: var(--accent);
}
/* ---------- Home FAQ & Stats modules ---------- */
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
@media (max-width: 1080px) {.stats-grid { grid-template-columns:repeat(2,1fr); gap:24px; }}
@media (max-width: 640px) {.stats-grid { grid-template-columns:repeat(2,1fr); gap:18px; }
.stat-number { font-size:34px !important; }}
@media (max-width: 640px) {.stats-section .stat-desc { font-size: 12px !important; letter-spacing: .3px; }}
@media (max-width: 640px) {.about-home-section .about-intro-grid { grid-template-columns: 1fr !important; gap: 24px !important; }}
.faq-item { transition: box-shadow .2s; }
.faq-item:hover { box-shadow:0 4px 12px rgba(0,0,0,.06); }
@media (max-width: 980px) {.products-section .section-head a { display:none !important; }}
/* Testimonials */
.testimonials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width: 980px) {.testimonials-grid { grid-template-columns:repeat(2,1fr); }}
@media (max-width: 640px) {.testimonials-grid { grid-template-columns:1fr; }}
.testimonial-card:hover { transform:translateY(-4px); box-shadow:0 8px 32px rgba(0,0,0,.1); transition:all .3s; }
/* Partners - 16:9 image cards */
.partners-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:24px; }
@media (max-width: 980px) {.partners-grid { grid-template-columns:repeat(4,1fr); }}
@media (max-width: 640px) {.partners-grid { grid-template-columns:repeat(3,1fr); gap:16px; }}
.partner-card { background:#fff; border:0; border-radius:14px; padding:12px; box-shadow:0 2px 12px rgba(15,23,42,.06); transition:transform .3s, box-shadow .3s; }
.partner-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(15,23,42,.08); }
.partner-card-link { display:block; text-decoration:none; }
.partner-card-img { position:relative; aspect-ratio:16/9; border-radius:10px; overflow:hidden; background:#f8fafc; display:flex; align-items:center; justify-content:center; }
.partner-card-img img { width:100%; height:100%; object-fit:cover; object-position:center; transition:transform .5s; }
.partner-card:hover .partner-card-img img { transform:scale(1.04); }
.partner-card-fallback { font-weight:700; color:#94a3b8; font-size:15px; }
.partner-card-title { margin-top:10px; text-align:center; font-size:13px; font-weight:600; color:#334155; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.modal-overlay.open { display:flex !important; align-items:center !important; justify-content:center !important; opacity:1 !important; pointer-events:auto !important; }
/* Product detail new modules */
.product-stats-section .stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; text-align:left; }
.product-stats-section .stats-grid .stat-number { font-size:48px; font-weight:800; color:var(--accent,#2b5bee); margin-bottom:10px; font-family:'Arial Black',sans-serif; line-height:1; }
.product-stats-section .stats-grid .stat-desc { font-size:15px; color:#6b7280; font-weight:500; }
.product-testimonials-section .testimonials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.product-app-section .app-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.product-app-section .app-card { display:block; border-radius:12px; overflow:hidden; background:#fff; box-shadow:0 2px 12px rgba(0,0,0,.06); text-decoration:none; transition:transform .3s; }
.product-app-section .app-card:hover { transform:translateY(-4px); }
.product-app-section .app-card img { width:100%; height:100%; object-fit:cover; }
.product-faq-section .faq-group-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
/* FAQ rows are deliberately compact: 6px between rows and 10px inside the
   summary keeps a 3-question group shorter than the card beside it. */
.product-faq-section details { margin: 0 0 6px; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; background: #fff; overflow: hidden; }
.product-faq-section details:last-child { margin-bottom: 0; }
.product-faq-section details summary { cursor:pointer; font-weight:600; font-size:14.5px; color:#374151; padding:10px 12px; background:#f8fafc; border-radius: 8px; list-style:none; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product-faq-section details summary::-webkit-details-marker { display: none; }
.product-faq-section details summary::after { content: '+'; font-size: 17px; line-height: 1; font-weight: 400; color: var(--muted); flex: 0 0 auto; transition: transform .2s; }
.product-faq-section details[open] summary::after { transform: rotate(45deg); }
.product-faq-section details > div { padding: 10px 12px 12px; font-size: 14px; line-height: 1.68; color: #6b7280; }
.product-faq-section details[open] summary { background: #f1f5f9; border-radius: 8px 8px 0 0; }
/* Review stars and avatars — one recipe for the product page and the homepage,
   so a testimonial card looks the same wherever it is rendered. */
.product-testimonials-section .testimonial-stars, .testimonials-section .testimonial-stars { color:#f59e0b; font-size:24px; line-height:1.1; letter-spacing:2px; margin-bottom:12px; }
.product-testimonials-section .testimonial-avatar, .testimonials-section .testimonial-avatar { width:50px; height:50px; border-radius:50%; object-fit:cover; flex:0 0 50px; background:#e8eef7; }
.product-testimonials-section .testimonial-avatar-fallback, .testimonials-section .testimonial-avatar-fallback { width:50px; height:50px; border-radius:50%; flex:0 0 50px; background:var(--accent,#2b5bee); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:18px; }
.product-testimonials-section .testimonial-author, .testimonials-section .testimonial-author { display:flex; align-items:center; gap:12px; }
.product-testimonials-section .testimonial-name, .testimonials-section .testimonial-name { font-weight:600; color:#1f2937; font-size:14px; }
.product-testimonials-section .testimonial-source, .testimonials-section .testimonial-source { font-size:12px; color:#6b7280; margin-top:2px; }
.product-company-section .company-intro { display:grid; grid-template-columns:1fr 1.2fr; gap:48px; align-items:center; }
.product-company-section .company-intro img { width:100%; height:auto; object-fit:cover; border-radius:16px; }
@media (max-width: 980px) {.product-stats-section .stats-grid { grid-template-columns:repeat(2,1fr); }
.product-testimonials-section .testimonials-grid { grid-template-columns:repeat(2,1fr); }
.product-app-section .app-grid { grid-template-columns:repeat(2,1fr); }
.product-faq-section .faq-group-grid { grid-template-columns:1fr; }
.product-company-section .company-intro { grid-template-columns:1fr; gap:24px; }}
@media (max-width: 640px) {.product-stats-section .stats-grid { grid-template-columns:1fr; }
.product-testimonials-section .testimonials-grid { grid-template-columns:1fr; }
.product-app-section .app-grid { grid-template-columns:1fr; }
.product-company-section .company-intro { grid-template-columns:1fr; }}
@media (max-width: 980px) {.product-stats-section .stats-grid, .product-testimonials-section .testimonials-grid { grid-template-columns: repeat(2, 1fr) !important; }
.product-app-section .app-grid { grid-template-columns: repeat(2, 1fr) !important; }
.product-faq-section .faq-group-grid { grid-template-columns: 1fr !important; }
.product-company-section .company-intro { grid-template-columns: 1fr !important; gap: 28px !important; padding: 28px !important; }
.product-related-section .product-grid { grid-template-columns: repeat(2, 1fr) !important; }}
@media (max-width: 640px) {.product-stats-section .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
.product-testimonials-section .testimonials-grid, .product-app-section .app-grid { grid-template-columns: 1fr !important; }
.product-related-section .product-grid { grid-template-columns: 1fr !important; }
.product-detail-section .prose, .product-spec-section .prose { font-size: 14px; }
.product-company-section .company-intro { padding: 20px !important; }
.product-inquiry-section .inquiry-form-wrap { padding: 22px !important; }}
/* Product detail section spacing */
.product-detail-section .section-head, .product-spec-section .section-head, .product-stats-section .section-head, .product-testimonials-section .section-head, .product-app-section .section-head, .product-company-section .section-head, .product-faq-section .section-head, .product-related-section .section-head, .product-inquiry-section .section-head { text-align: center; margin-bottom: 44px; }
.product-detail-section .section-head h2, .product-spec-section .section-head h2, .product-stats-section .section-head h2, .product-testimonials-section .section-head h2, .product-app-section .section-head h2, .product-company-section .section-head h2, .product-faq-section .section-head h2, .product-related-section .section-head h2, .product-inquiry-section .section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.product-spec-section .spec-table td, .product-detail-section .spec-table td { padding: 14px 16px; font-size: 14px; }
.product-spec-section .spec-table tr:nth-child(even) td, .product-detail-section .spec-table tr:nth-child(even) td { background: #f8fafc; }
.product-spec-section .spec-table tr td:first-child, .product-detail-section .spec-table tr td:first-child { color: #374151; font-weight: 600; width: 40%; }
.product-spec-section .spec-table tr td:last-child, .product-detail-section .spec-table tr td:last-child { color: #6b7280; }
.product-spec-section .spec-rich table, .product-detail-section .spec-rich table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.product-spec-section .spec-rich td, .product-detail-section .spec-rich td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid #eef1f6; }
.product-spec-section .spec-rich td:first-child, .product-detail-section .spec-rich td:first-child { color: #374151; font-weight: 600; width: 40%; background: #f8fafc; }
/* Blog/Case detail sidebar layout */
/* ===== Downloads page ===== */
.dl-list { display: flex; flex-direction: column; gap: 16px; }
.dl-item { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid #eef1f6; border-radius: 14px; padding: 22px 24px; box-shadow: 0 2px 12px rgba(0,0,0,.04); transition: box-shadow .25s, transform .25s; }
.dl-item:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.dl-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .5px; flex-shrink: 0; text-transform: uppercase; }
.dl-icon.pdf { background: linear-gradient(135deg, #ef4444, #dc2626); }
.dl-icon.word { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.dl-icon.excel { background: linear-gradient(135deg, #22c55e, #16a34a); }
.dl-icon.zip, .dl-icon.rar { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.dl-icon.mp4, .dl-icon.video { background: linear-gradient(135deg, #f59e0b, #d97706); }
.dl-icon.other { background: linear-gradient(135deg, #64748b, #475569); }
.dl-info { flex: 1; min-width: 0; }
.dl-title { font-size: 16px; font-weight: 700; color: #1f2937; margin: 0 0 6px; line-height: 1.4; }
.dl-desc { font-size: 13.5px; color: #6b7280; margin: 0 0 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dl-btn { flex-shrink: 0; padding: 11px 24px; font-size: 14px; border-radius: 999px; }
@media (max-width: 640px) {.dl-item { flex-wrap: wrap; padding: 18px; gap: 14px; }
.dl-btn { width: 100%; text-align: center; }}
/* Blog/case detail: head + cover live inside the left column */
.blog-article .blog-article-body .blog-article-head { background: transparent !important; padding: 0 0 0px !important; text-align: left !important; }
.blog-article .blog-article-body .blog-article-head .container { padding: 0 !important; }
.blog-article .blog-article-body .blog-article-head .blog-article-desc { margin-bottom: 0; }
.blog-article .blog-article-body .blog-article-cover { padding: 0 0 16px !important; }
.blog-article .blog-article-body .blog-article-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 36px rgba(15,23,42,.1); }
.blog-article .blog-article-body .blog-content { margin-top: 0; }
/* Tags block spacing */
.blog-article .blog-article-body .blog-article-tags { margin-top: 24px; margin-bottom: 20px; padding-top: 18px; }
.blog-article-tags .blog-tags-label { margin-right: 10px; font-weight: 700; color: #334155; }
/* Related section spacing */
.blog-article .blog-article-body .blog-related { padding: 28px 0 48px; }
.blog-article .blog-article-body .blog-related .section-head-title { margin-bottom: 20px; }
/* Unify content inner spacing */
.blog-article .blog-article-body .blog-content p { margin-bottom: 14px; }
.blog-article .blog-article-body .blog-content h2 { margin: 26px 0 14px; }
.blog-article .blog-article-body .blog-content h3 { margin: 20px 0 12px; }
.blog-article .blog-article-body .blog-content img { margin: 12px 0; }
.blog-article .blog-article-body .blog-content > :first-child { margin-top: 0; }
@media (max-width: 720px) {.blog-article .blog-article-body .blog-article-head { padding: 0 0 12px !important; }
.blog-article .blog-article-body .blog-article-cover { padding: 0 0 12px !important; }
.blog-article .blog-article-body .blog-article-cover img { aspect-ratio: 16 / 9; }}
@media (max-width: 720px) {.certs-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
.factory-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
.factory-item img { height: 140px !important; }}
@media (min-width: 721px) and (max-width: 1080px) {.certs-grid { grid-template-columns: repeat(3, 1fr) !important; }
.factory-grid { grid-template-columns: repeat(3, 1fr) !important; }}
.cert-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.factory-item:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.14); }
/* ===== Blog/Case detail — force unified compact spacing (override all legacy rules) ===== */
.blog-article .blog-article-body { padding: 0 !important; }
.blog-article .blog-article-body .blog-article-head { padding: 0 0 14px !important; margin: 0 !important; }
.blog-article .blog-article-body .blog-article-head .container { padding: 0 !important; margin: 0 !important; }
.blog-article .blog-article-body .blog-article-cover { padding: 0 0 14px !important; margin: 0 !important; }
.blog-article .blog-article-body .blog-content { margin: 0 !important; padding: 0 !important; }
.blog-article .blog-article-body .blog-content > :first-child { margin-top: 0 !important; }
.blog-article .blog-article-body .blog-article-tags { margin: 28px 0 34px !important; padding: 24px 0 0 !important; }
.blog-article .blog-article-body .blog-related { padding: 28px 0 0 !important; margin: 0 !important; }
@media (max-width: 720px) {.blog-article .blog-article-body { padding: 0 !important; }
.blog-article .blog-article-body .blog-article-head { padding: 0 0 12px !important; }
.blog-article .blog-article-body .blog-article-cover { padding: 0 0 12px !important; }
.blog-article .blog-article-body .blog-article-tags { margin: 22px 0 28px !important; padding: 20px 0 0 !important; }
.blog-article .blog-article-body .blog-related { padding: 20px 0 0 !important; }}
/* ---- icon system ---------------------------------------------------------
   Every icon on the site is a real file under /images/icons/*.svg, painted
   through a mask so it still follows currentColor exactly like inline svg did.
   ------------------------------------------------------------------------ */
.ic {
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
          mask: var(--ic) center / contain no-repeat;
}
.social-ic { width: 15px; height: 15px; opacity: .9; }
.social-link:hover .social-ic { opacity: 1; }
/* ---- Rich-text tables (CMS pages and articles) ---- */
.prose table, .cms-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: 14.5px;
  background: #fff;
}
.prose table th, .prose table td, .cms-page table th, .cms-page table td {
  border: 1px solid #e3ebf4;
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.62;
  font-weight: 400;
  color: #33414f;
}
.prose table th, .cms-page table th {
  background: #f2f7fc;
  color: #14559b;
  font-weight: 700;
  width: 30%;
  white-space: normal;
}
.prose table tr:nth-child(even) td, .cms-page table tr:nth-child(even) td { background: #fafcff; }
.prose table a, .cms-page table a { color: #14559b; }
@media (max-width: 640px) {.prose table, .cms-page table { font-size: 13px; }
.prose table th, .cms-page table th { width: 40%; }
.prose table th, .prose table td, .cms-page table th, .cms-page table td { padding: 9px 10px; }}
/* Wide rich-text tables: fix the layout so columns wrap instead of overflowing */
.prose table, .cms-page table {
  table-layout: fixed;
  font-size: 13.8px;
  overflow-wrap: break-word;
}
.prose table th, .prose table td, .cms-page table th, .cms-page table td { padding: 10px 12px; }
/* ---- Product specification tables ------------------------------------------
   The Specifications module renders <tr><th>label</th><td>value</td></tr>.
   The older rules only styled `td`, so the label cells fell back to browser
   defaults (no padding, no background, label squeezed). These rules style
   th and td together so the module matches the rich-text tables elsewhere,
   stay readable on a phone and never overflow horizontally.
   ------------------------------------------------------------------------- */
.spec-rich table, .spec-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid #e3ebf4;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  margin: 0;
  font-size: 13.8px;
}
.spec-rich table th, .spec-rich table td, .spec-table th, .spec-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #eef1f6;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: normal;
}
.spec-rich table th, .spec-table th {
  width: 40%;
  background: #f2f7fc;
  color: #14559b;
  font-weight: 600;
  white-space: normal;
}
.spec-rich table td, .spec-table td {
  width: 60%;
  background: #fff;
  color: #4b5563;
}
.spec-rich table tr:last-child th, .spec-rich table tr:last-child td, .spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {.spec-rich table, .spec-table { font-size: 13px; }
.spec-rich table th, .spec-rich table td, .spec-table th, .spec-table td { padding: 9px 11px; }
.spec-rich table th, .spec-table th { width: 43%; }
.spec-rich table td, .spec-table td { width: 57%; }}
/* ---- Floating contact stack (WhatsApp / WeChat / back to top) --------------
   One fixed flex column keeps the three round buttons on the same vertical
   axis with an identical 12px gap, whatever the viewport is.
   ------------------------------------------------------------------------- */
.float-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.float-stack .float-btn {
  pointer-events: auto;
  position: relative !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  text-decoration: none;
}
.float-stack .float-btn:hover { transform: translateY(-2px) scale(1.06); }
.float-stack .float-wa {
  background: #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .42);
}
.float-stack .float-wa img { display: block; width: 26px; height: 26px; }
.float-stack .float-cs {
  background: var(--accent, #14559b);
  box-shadow: 0 4px 14px rgba(20, 85, 155, .38);
  color: #fff;
}
.float-stack .float-cs:hover { background: var(--accent-dark, #0f3f74); }
.float-stack .float-top {
  background: #fff;
  color: var(--accent, #14559b);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .13);
}
.float-stack .float-top:hover { background: var(--accent, #14559b); color: #fff; border-color: var(--accent, #14559b); }
@media (max-width: 640px) {.float-stack { right: 12px; bottom: 14px; gap: 10px; }
.float-stack .float-btn { width: 46px; height: 46px; }
.float-stack .float-wa img { width: 23px; height: 23px; }}
/* ===== V20: product card price + 2 actions on one line =====
   Price sits on its own row; Add to inquiry and Details share the row beneath
   it. Narrower viewports drop a grid column instead of squeezing the buttons. */
.pcard-actions .btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1180px) {.pcard-actions .btn { font-size: 12px; padding: 8px 6px; }}
@media (max-width: 860px) {.product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 18px !important; }}
@media (max-width: 560px) {.product-grid { grid-template-columns: 1fr !important; }}
/* ===== V21: 4th round — unified module heads, single-photo cards, WhatsApp, mobile pass ===== */
/* ---------- Unified section head ----------
   Every module on the site now opens the same way: heading on the left, the one
   sentence that explains it directly underneath, and the same gap above the
   content. Previously some heads centred the pair and some pushed the sentence
   to the right edge of the row. */
/* Module headings sit right above their own list: the 38px gap plus the
   rail-main rhythm made the title look detached from the cards underneath.
   Inside a rail the flex gap already provides the spacing, so the extra
   bottom margin is dropped there. */
.mod-head { text-align: left; margin: 0 0 24px; }
.rail-main > .mod-head { margin: 0; }
.mod-head .mod-title { margin: 0; font-size: clamp(26px, 3.1vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.22; }
.mod-head .mod-sub { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.72; max-width: none; }
/* Legacy heads still used by list pages keep the same left-aligned rhythm. */
.section-head { text-align: left; align-items: flex-start; }
.section-head .section-sub { margin-top: 12px; }
/* ---------- Why cards: description capped at three lines ---------- */
.value-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ---------- Product card: one photo, tighter body ---------- */
.pcard-body { display: flex; flex-direction: column; }
.pcard-desc { margin-bottom: 12px; }
/* ---------- Product detail ---------- */
.product-price-row { margin: 18px 0 0; flex-wrap: wrap; }
.product-price-note { margin: 8px 0 0; max-width: 430px; font-size: 13px; line-height: 1.65; color: #6b7280; }
.product-spec-link { display: inline-block; margin: 20px 0 6px; font-size: 13px; color: #5b6b7c; text-decoration: none; }
.product-spec-link:hover { color: var(--accent-deep); }
/* ---------- /tag hub: 1000 words grouped, not a wall ---------- */
.tag-hub-note { max-width: none; color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0 0 28px; }
.tag-alpha { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.tag-alpha a, .tag-alpha span {
  min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #f4f6fa; border: 1px solid #e6ebf2; color: #33415c;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.tag-alpha a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-group { margin: 0 0 40px; }
.tag-group-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #eaeef5; }
.tag-group-head h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.tag-group-head span { color: var(--muted); font-size: 13px; }
.tag-group-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-group-chips .tag-cloud-item { padding: 7px 13px; font-size: 13px; border-radius: 7px; justify-content: flex-start; }
.tag-hub-search { max-width: 420px; margin: 0 0 32px; }
.tag-hub-search input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #dfe5ee; border-radius: 10px; font-size: 14px; }
/* ---------- Mobile pass ---------- */
@media (max-width: 900px) {/* Header: icon-only inquiry shortcut, no quote button in the bar. */
.header-btn { display: none !important; }
/* Headline rhythm shrinks once, consistently. */
.mod-head { margin-bottom: 26px; }
.mod-head .mod-title { font-size: clamp(24px, 5.2vw, 30px); }
.mod-head .mod-sub { margin-top: 10px; font-size: 14.5px; line-height: 1.65; }
/* Product detail: one spacing step for every stacked module. */
.product-page { padding: 0 0 48px; }
.product-detail-section, .product-stats-section, .product-testimonials-section, .product-app-section, .product-company-section, .product-faq-section, .product-related-section, .product-inquiry-section { padding: 48px 0 !important; }
/* The specification block is a grey wash between two white blocks: 20px top,
     20px bottom at every width, so the colour change carries the separation. */
.product-spec-section { padding: 20px 0 !important; }
/* Rule at L1202 lifts the section right after the detail block to 70px with
     !important; matching that specificity here keeps the mobile rhythm at 48. */
.product-detail-section + .section:not(.product-spec-section) { padding-top: 48px !important; }
.product-detail-section .section-head, .product-spec-section .section-head, .product-stats-section .section-head, .product-testimonials-section .section-head, .product-app-section .section-head, .product-company-section .section-head, .product-faq-section .section-head, .product-related-section .section-head, .product-inquiry-section .section-head { margin-bottom: 24px !important; }
.product-gallery { margin-bottom: 26px; }
.product-title { font-size: 26px; line-height: 1.28; margin: 0 0 12px; }
.product-rating { margin-top: 0; gap: 8px; }
.product-price-row { margin-top: 16px; }
/* Floating shortcuts sit above the sticky bottom nav instead of on top of it. */
.float-stack { bottom: calc(74px + env(safe-area-inset-bottom)) !important; }}
@media (max-width: 640px) {.tag-group-chips .tag-cloud-item { padding: 6px 11px; font-size: 12.5px; }
.product-spec-link { margin: 16px 0 4px; }}
/* Topics with real content behind them read as the "filled" chips. */
.tag-group-chips .tag-cloud-item.used { background: #fff; border-color: #cfd9e8; color: #16243d; font-weight: 700; box-shadow: 0 1px 2px rgba(16, 32, 64, .07); }
.tag-cloud-item.used::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 7px; vertical-align: middle; }
/* Topic pages: one-line intro above the first module, with the same rhythm
   the modules use between each other. */
.tag-intro { max-width: none; color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0 0 30px; }
/* ==========================================================================
   Product-line (pillar) pages — /manual-surface-grinders, /cnc-…, /gantry-…
   Editorial intro, long-form body, cross-model spec matrix, FAQ and the
   contextual "keep reading" block. Everything is scoped under .cat-* / .mod-*
   so no other template inherits it.
   ========================================================================== */
.cat-intro-section { padding-top: 8px; }
.cat-intro { max-width: none; }
.cat-intro p { font-size: 15.5px; line-height: 1.85; color: #4b5563; margin: 0 0 14px; }
.cat-intro p:last-child { margin-bottom: 0; }
.cat-body-wrap { max-width: none; }
.cat-body h2, .cat-body-wrap h2 { font-size: 22px; line-height: 1.35; margin: 38px 0 14px; color: #111827; letter-spacing: -.01em; }
.cat-body h2:first-child, .cat-body-wrap h2:first-child { margin-top: 0; }
.cat-body h3, .cat-body-wrap h3 { font-size: 16px; margin: 24px 0 8px; color: #1f2937; }
.cat-body p, .cat-body-wrap p { font-size: 15px; line-height: 1.85; color: #4b5563; margin: 0 0 14px; }
/* Lists in the CMS body used to be indented 20px, so a bullet list sat to the
   right of the paragraphs above it. Zero padding, bullet inside the line box:
   the text edge now matches the copy. */
.cat-body ul, .cat-body-wrap ul { margin: 0 0 16px; padding-left: 0; list-style-position: inside; }
.cat-body li, .cat-body-wrap li { font-size: 15px; line-height: 1.8; color: #4b5563; margin-bottom: 8px; }
.cat-body a, .cat-body-wrap a { color: var(--accent, #2b5bee); text-decoration: none; border-bottom: 1px solid rgba(43,91,238,.25); }
.cat-body a:hover, .cat-body-wrap a:hover { border-bottom-color: var(--accent, #2b5bee); }
.matrix-note { font-size: 13px; color: #6b7280 !important; margin-top: 10px !important; }
/* comparison tables (editorial + auto spec matrix) */
.mod-table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14px; }
.mod-table th, .mod-table td { border: 1px solid var(--line, #e5e7eb); padding: 11px 14px; text-align: left; vertical-align: top; line-height: 1.6; }
.mod-table thead th { background: #f8fafc; font-weight: 700; color: #111827; font-size: 13px; letter-spacing: .01em; }
.mod-table tbody th { background: #fbfcfe; font-weight: 600; color: #1f2937; width: 26%; }
.mod-table tbody tr:nth-child(even) td { background: #fcfdfe; }
.mod-table td { color: #4b5563; }
.mod-table a { color: var(--accent, #2b5bee); text-decoration: none; }
.spec-matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 6px; }
.spec-matrix { min-width: 640px; }
.spec-matrix thead th { white-space: nowrap; }
/* FAQ. Both blocks below sit in the main column of the rail, where the flex gap
   already separates one module from the next; an extra margin-top on top of that
   gap is what made "Questions on a specific machine line" read as a separate
   page section rather than the next block. */
.cat-faq { margin-top: 40px; padding: 6px 0 0; border-top: 1px solid var(--line, #e5e7eb); }
/* FAQ rows inside a product-line page read as cards: the copy gets its own
   margin inside the row instead of running flush to the column edge. */
.cat-faq .faq-item { margin: 0 0 10px; padding: 18px 22px 6px; border: 1px solid var(--line, #e5e7eb); border-radius: var(--radius-sm); background: var(--surface); }
.cat-faq .faq-item:last-child { margin-bottom: 0; }
.faq-item h3 { font-size: 15.5px !important; margin: 0 0 8px !important; color: #111827; }
.faq-item p { margin: 0 0 14px !important; }
/* contextual link block — one component in every context: a white, borderless
   panel with the same padding and the same 40px clearance above it, so the
   /faq "Questions on a specific machine line" block and the product-line
   "Keep reading" block line up identically. */
.cat-related { margin-top: 40px; padding: 24px 26px; background: #fff; border: 0; border-radius: 12px; }
.cat-related h2 { font-size: 17px !important; margin: 0 0 14px !important; }
/* The /faq page puts its Q&A groups and this link block in one column (.faq-body)
   so their gaps are explicit rather than the rail gap plus a stray margin. */
.faq-body .faq-group { margin: 0 0 32px; }
.faq-body .faq-group .faq-item:last-child { margin-bottom: 0; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { font-size: 14.5px; line-height: 1.7; color: #6b7280; margin: 0 0 10px; padding-left: 16px; position: relative; }
/* One bullet colour for every related list on the site: ink, not the accent.
   Category, case, blog, FAQ and policy pages all inherit this. */
.related-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #111827; opacity: .8; }
.related-list a { color: #111827; font-weight: 600; text-decoration: none; border-bottom: 0; }
.related-list a:hover { color: var(--accent, #2b5bee); }
@media (max-width: 900px) {.cat-intro p, .cat-body p, .cat-body-wrap p { font-size: 15px; line-height: 1.8; }
.cat-body h2, .cat-body-wrap h2 { font-size: 19px; margin: 30px 0 12px; }
.mod-table { font-size: 13px; display: block; overflow-x: auto; }
.mod-table tbody th { width: auto; }
.spec-matrix { min-width: 560px; }
.cat-related { padding: 20px 18px; }}
.cat-intro-section { margin-bottom: 32px; }
/* ===== V22: category navigation tree (hub tiles + sticky two-level rail) =====
   The flat chip row broke down past ~10 categories and could not express a
   second level. This replaces it with group -> machine line -> model, built
   from real catalogue data. No new URLs: the second level is the model list. */
.cat-hub-head { margin-bottom: 18px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cat-hub-head h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.01em; color: #111827; margin: 0; }
.cat-tile:hover .cat-tile-name { color: var(--accent, #2b5bee); }
@media (max-width: 1023px) {.cat-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-hub { gap: 32px; }}
@media (max-width: 560px) {.cat-tiles { grid-template-columns: 1fr 1fr; }
.cat-tile-body { padding: 12px; }
.cat-tile-name { font-size: 13px; }}
/* ---------- V23: third level (series inside a machine line) ---------- */
/* ============================================================
   V24 — Unified two-column shell (left rail + content)
   ------------------------------------------------------------
   One grid for every content page: a fixed 288px rail column
   (spacing scale 8/16/24/32/48/64), a 64px gutter and a fluid
   content column. Product detail pages keep their own commerce
   layout and are not part of this shell.
   ============================================================ */
.rail-band { padding: 56px 0 64px; }
/* Rail and content sit closer together (32px) and no longer have a hairline
   drawn down the gutter: the widened content column carries enough whitespace
   on its own, and the divider read as a stray rule on pages with short copy. */
.rail-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  position: relative;
}
.rail-main { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
/* Section-level margins written for the old stacked layout are neutralised so
   the rail-main rhythm is the only vertical spacing on the page. */
.rail-main > .mod-head { margin-top: 0 !important; }
/* ---------- Rail ---------- */
/* The rail scrolls with the page: no sticky positioning and no internal
   scrollbar, so the full menu is always visible without a second scroll
   context competing with the page. */
.site-rail {
  padding: 22px 14px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.site-rail-eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.site-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.3;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.site-rail-head:hover { background: var(--accent-soft); }
.site-rail-head.is-active { background: var(--accent); color: #fff; }
.site-rail-head.is-active .site-rail-count { background: rgba(255,255,255,.18); color: #fff; }
.site-rail-group { margin-top: 22px; }
.site-rail-group-title {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px 8px;
}
.site-rail-list { display: flex; flex-direction: column; gap: 2px; }
.site-rail-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 9px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink-2);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.site-rail-item:hover { background: var(--bg-alt); color: var(--ink); }
.site-rail-item.is-active {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--accent-deep);
  font-weight: 700;
}
.site-rail-count {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: center;
}
.site-rail-item.is-active .site-rail-count { background: #fff; color: var(--accent-deep); }
.site-rail-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-rail-foot a { font-size: 12.5px; color: var(--muted); }
.site-rail-foot a:hover { color: var(--accent); }
/* ---------- Content side ---------- */
.rail-lead-title {
  font-size: clamp(20px, 2.1vw, 25px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
}
.rail-lead-note { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); max-width: none; }
.rail-lead-tight .rail-lead-title { font-size: 17px; letter-spacing: -.01em; color: var(--muted); text-transform: uppercase; font-weight: 750; }
.rail-body-links { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.rail-body-links a { color: var(--accent-deep); border-bottom: 1px solid var(--line-strong); }
.rail-body-links a:hover { border-bottom-color: var(--accent); }
.rail-prose { max-width: 78ch; }
/* Strip under a guide or a case study. The cards are the same partial as the
   product list, so this block only needs its title: no border and no padding of
   its own, the rail gap separates it from the block above. */
.rail-reco { border-top: 0; padding-top: 0; }
.rail-reco-title { font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 20px; }
/* Help card on generic CMS pages — white, no outline: the copy is the block */
.rail-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
}
.rail-help h2 { font-size: 17px; font-weight: 750; margin: 0 0 6px; }
.rail-help p { font-size: 13.5px; color: var(--ink-2); max-width: 52ch; }
.rail-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* ---------- Catalogue tiles read as a visual index, not a menu ---------- */
.cat-hub { display: flex; flex-direction: column; gap: 36px; }
.cat-hub-head h2 { font-size: 16px; font-weight: 750; letter-spacing: -.01em; color: var(--ink); }
.cat-hub-note { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; margin-top: 16px; }
.cat-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cat-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-tile-media { display: block; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.cat-tile-media img { width: 100%; height: 100%; object-fit: contain; }
.cat-tile-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.cat-tile-name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.cat-tile-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* ---------- Responsive ---------- */
@media (max-width: 1023px) {.rail-band { padding: 24px 0 48px; }
.rail-shell { grid-template-columns: minmax(0, 1fr); gap: 24px; }
/* The rail becomes a compact, scrollable index card above the content:
     one visual language everywhere, no horizontal chip strips, no duplication. */
.site-rail { padding: 16px 12px 18px 16px; }
/* Secondary groups (popular topics, "elsewhere on the site") are a desktop
     convenience; on a phone they would push the page content off-screen. */
.site-rail-group.is-secondary { display: none; }
.site-rail-foot { display: none; }
.site-rail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
.site-rail-item { padding: 7px 10px; font-size: 12.5px; }
.site-rail-head { padding: 10px 12px; font-size: 13px; }
.site-rail-group-title { padding: 0 8px 6px; }
.site-rail-group { margin-top: 16px; }
.site-rail-foot { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
.rail-main { gap: 24px; }
.rail-help { padding: 20px; }
.rail-help-actions .btn { width: auto; }}
@media (max-width: 560px) {.site-rail-list { grid-template-columns: 1fr; }
.cat-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }}
/* ---------- Related modules: 3 on desktop, 4 on mobile ----------
   Case and blog detail pages hand four related items to the view. The fourth is
   hidden from 768px up so the desktop row stays a clean three, and is revealed
   below that so a phone user gets the extra entry without a second screen. */
.blog-related-grid > :nth-child(4) { display: none; }
.rail-reco-products .product-grid > :nth-child(4) { display: none; }
@media (max-width: 767px) {.blog-related-grid > :nth-child(4) { display: block; }
.rail-reco-products .product-grid > :nth-child(4) { display: block; }}
/* ---------- FAQ intro ----------
   Section switching lives in the left rail; the chip row that used to sit above
   the questions was removed as a duplicate navigation layer. */
.faq-intro { margin: 0 0 28px; font-size: 15px; line-height: 1.75; color: var(--ink-2, #4b5563); }
@media (max-width: 640px) {.faq-intro { font-size: 14px; margin-bottom: 24px; }}
/* ===== V22: inquiry anchor ==================================================
   The floating "Enquiry" button and the header "Request a Quote" links scroll
   to #inquiry. scroll-margin keeps the form clear of the sticky header once
   the browser jumps to the anchor (including deep links like /contact#inquiry). */
#inquiry { scroll-margin-top: calc(var(--header-h, 80px) + 18px); }
