/*
Theme Name: Weimin Gutenberg
Theme URI: https://www.weimintc.com/
Author: Weimin TC
Description: Custom Gutenberg-ready theme for Weimin TC products and bilingual content.
Version: 0.1.5
Text Domain: weimin-gutenberg
*/

:root {
  --wm-red: #d50018;
  --wm-red-dark: #aa0013;
  --wm-ink: #202124;
  --wm-black: #151618;
  --wm-steel: #5b626b;
  --wm-line: #dfe2e6;
  --wm-mist: #f2f3f5;
  --wm-paper: #ffffff;
  --wm-green: #236b49;
  --wm-gold: #a47824;
  --wm-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wm-ink);
  background: var(--wm-paper);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}
body.admin-bar .site-header { top: 32px; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { color: var(--wm-ink); line-height: 1.18; letter-spacing: 0; }
h1 { margin: 0; font-size: 52px; }
h2 { margin: 0; font-size: 34px; }
h3 { margin: 0; font-size: 18px; }
p { margin: 0 0 1em; }

.site-shell { width: min(var(--wm-width), calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--wm-paper);
  background: #1d1d1d;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
}
.site-topbar { min-height: 36px; color: #d9d9d9; background: #242424; border-bottom: 1px solid #363636; font-size: 12px; }
.site-topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-topbar-contact { display: flex; align-items: center; gap: 17px; white-space: nowrap; }
.site-topbar-contact a:hover { color: var(--wm-paper); }
.site-header-main { background: #1d1d1d; }
.header-inner { min-height: 94px; display: flex; align-items: center; gap: 26px; }
.site-brand { flex: 0 0 310px; min-width: 0; display: flex; align-items: center; gap: 12px; overflow: hidden; }
.site-brand-mark { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; overflow: hidden; background: var(--wm-paper); border-radius: 3px; }
.site-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.site-brand-copy { min-width: 0; display: grid; grid-template-columns: auto auto; column-gap: 7px; align-items: baseline; }
.site-brand-copy strong { color: var(--wm-paper); font-size: 25px; line-height: 1; }
.site-brand-copy b { color: var(--wm-paper); font-size: 22px; line-height: 1; }
.site-brand-copy small { grid-column: 1 / -1; margin-top: 7px; color: #aeb0b4; font-size: 11px; white-space: nowrap; }
.site-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 27px; flex: 1; min-width: 0; }
.site-navigation a { position: relative; color: #f5f5f5; font-weight: 700; white-space: nowrap; }
.site-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -32px;
  height: 3px;
  background: var(--wm-red);
  transition: right 180ms ease;
}
.site-navigation a.is-current::after, .site-navigation a:hover::after, .site-navigation a:focus-visible::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-link { color: var(--wm-paper); font-weight: 800; min-width: 28px; text-align: center; }
.language-switch-top { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.42); border-radius: 2px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.language-switch-top:hover { color: #ffffff; border-color: #ffffff; background: rgba(255, 255, 255, 0.12); }
.language-switch-main { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 10px; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 3px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.language-switch-main strong { color: #ffffff; }
.language-switch-main:hover { color: var(--wm-ink); background: #ffffff; border-color: #ffffff; }
.language-switch-main:hover strong { color: var(--wm-red); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--wm-paper); }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.button-primary { color: var(--wm-paper); background: var(--wm-red); border-color: var(--wm-red); }
.button-primary:hover, .button-primary:focus-visible { background: var(--wm-red-dark); border-color: var(--wm-red-dark); }
.button-ghost { color: var(--wm-paper); background: rgba(0, 0, 0, 0.25); border-color: rgba(255, 255, 255, 0.75); }
.button-ghost:hover, .button-ghost:focus-visible { color: var(--wm-ink); background: var(--wm-paper); }
.button-outline { color: var(--wm-red); background: var(--wm-paper); border-color: var(--wm-red); }
.button-outline:hover, .button-outline:focus-visible { color: var(--wm-paper); background: var(--wm-red); }
.button-light { color: var(--wm-ink); background: var(--wm-paper); border-color: var(--wm-paper); }
.button-light:hover, .button-light:focus-visible { color: var(--wm-red); }

.hero-home { position: relative; min-height: 610px; overflow: hidden; background: var(--wm-black); }
.hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(18, 18, 18, 0.96) 0%, rgba(18, 18, 18, 0.86) 39%, rgba(18, 18, 18, 0.38) 66%, rgba(18, 18, 18, 0.08) 100%); }
.hero-copy { position: relative; z-index: 2; min-height: 610px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: var(--wm-paper); padding-block: 54px; }
.hero-copy h1 { max-width: 700px; color: var(--wm-paper); font-size: 62px; line-height: 1.08; }
.hero-copy p { max-width: 660px; margin: 24px 0 0; color: #f1f1f1; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.section-label { display: block; margin-bottom: 12px; color: var(--wm-red); font-size: 13px; font-weight: 800; letter-spacing: 0; }
.section-label-light { color: #ffffff; }

.section-band { padding: 72px 0; }
.home-intro { background: #f4f4f4; scroll-margin-top: 180px; }
.home-intro .site-shell { width: min(1100px, calc(100% - 48px)); }
.intro-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.factory-video-panel, .category-overview-panel { min-width: 0; padding: 27px 23px 23px; background: var(--wm-paper); box-shadow: 0 10px 28px rgba(21, 22, 24, 0.06); }
.factory-video-panel h2, .category-overview-heading h2 { font-size: 36px; }
.factory-video-panel > p, .category-overview-heading p { margin-top: 9px; color: var(--wm-steel); font-size: 14px; }
.intro-video-wrap { aspect-ratio: 16 / 9; margin-top: 30px; overflow: hidden; background: var(--wm-black); border-radius: 0; }
.feature-video { width: 100%; height: 100%; object-fit: cover; }
.category-overview-heading p { max-width: 500px; }
.category-summary-grid { margin-top: 30px; }
.intro-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0 0; border-top: 1px solid var(--wm-line); }
.intro-facts div { padding: 22px 12px 0 0; }
.intro-facts dt { color: var(--wm-red); font-size: 26px; font-weight: 800; line-height: 1.2; }
.intro-facts dd { margin: 5px 0 0; color: var(--wm-steel); font-size: 13px; }

.category-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.category-summary-card { min-height: 100px; display: flex; flex-direction: column; justify-content: center; padding: 15px 18px; background: var(--wm-paper); border: 1px solid var(--wm-line); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.category-summary-card:hover, .category-summary-card:focus-visible { border-color: var(--wm-red); box-shadow: 0 8px 20px rgba(21, 22, 24, 0.08); transform: translateY(-2px); }
.category-summary-card strong { color: var(--wm-red); font-size: 28px; line-height: 1; }
.category-summary-card span { margin-top: 7px; color: var(--wm-ink); font-size: 15px; font-weight: 800; line-height: 1.3; }
.category-summary-card small { margin-top: 3px; color: var(--wm-steel); font-size: 11px; line-height: 1.3; }

.product-category-section { padding: 72px 0; }
.section-muted { background: var(--wm-mist); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-more { color: var(--wm-red); font-weight: 800; white-space: nowrap; }
.section-more span, .product-link span { margin-left: 7px; font-size: 22px; line-height: 0; }
.product-grid { display: grid; gap: 16px; }
.product-grid-home { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.product-grid-archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card {
  min-width: 0;
  overflow: hidden;
  background: var(--wm-paper);
  border: 1px solid var(--wm-line);
  border-radius: 6px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.product-card:hover { transform: translateY(-3px); border-color: #c6cbd1; box-shadow: 0 12px 25px rgba(21, 22, 24, 0.1); }
.product-card-image { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f7f7f7; }
.product-card-image img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.08); transition: transform 220ms ease; }
.product-card:hover .product-card-image img { transform: scale(1.13); }
.product-card-body { min-height: 164px; display: flex; flex-direction: column; padding: 15px; border-top: 1px solid var(--wm-line); }
.product-kicker { color: var(--wm-green); font-size: 12px; font-weight: 800; }
.product-card h3 { min-height: 54px; margin-top: 7px; font-size: 15px; line-height: 1.5; }
.product-card h3 a:hover { color: var(--wm-red); }
.product-link { display: flex; align-items: center; margin-top: auto; padding-top: 13px; color: var(--wm-red); font-size: 13px; font-weight: 800; }

.contact-band { padding: 56px 0; color: var(--wm-paper); background: var(--wm-red); }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact-band h2 { max-width: 780px; color: var(--wm-paper); }

.page-banner { padding: 70px 0; color: var(--wm-paper); background: var(--wm-black); border-bottom: 5px solid var(--wm-red); }
.page-banner h1 { color: var(--wm-paper); }
.page-banner p { max-width: 760px; margin: 18px 0 0; color: #d6d8dc; font-size: 17px; }
.page-banner-compact { padding: 52px 0; }

.archive-section { padding: 58px 0 80px; }
.archive-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 34px; align-items: start; }
.product-sidebar { position: sticky; top: 108px; padding-right: 24px; border-right: 1px solid var(--wm-line); }
.product-sidebar h2 { margin-bottom: 18px; font-size: 21px; }
.category-filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; color: #3d4146; border-bottom: 1px solid var(--wm-line); }
.category-filter:hover { color: var(--wm-red); }
.category-filter small { color: var(--wm-steel); }
.product-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 24px; }
.product-search input { min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #c8cdd3; border-radius: 4px; outline: 0; }
.product-search input:focus { border-color: var(--wm-red); box-shadow: 0 0 0 2px rgba(213, 0, 24, 0.12); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--wm-line); border-radius: 4px; }
.pagination .current, .pagination a:hover { color: var(--wm-paper); background: var(--wm-red); border-color: var(--wm-red); }
.empty-state { padding: 60px 0; color: var(--wm-steel); text-align: center; }

.breadcrumb { display: flex; gap: 9px; flex-wrap: wrap; padding: 24px 0; color: var(--wm-steel); font-size: 13px; }
.breadcrumb a:hover { color: var(--wm-red); }
.product-detail-page { padding-bottom: 74px; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 50px; align-items: start; }
.product-gallery { position: sticky; top: 108px; min-width: 0; }
.product-main-image { aspect-ratio: 1 / 1; overflow: hidden; background: #f7f7f7; border: 1px solid var(--wm-line); border-radius: 6px; }
.product-main-image img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.05); }
.product-thumbnails { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.product-thumb { aspect-ratio: 1 / 1; padding: 3px; overflow: hidden; background: var(--wm-paper); border: 1px solid var(--wm-line); border-radius: 4px; cursor: pointer; }
.product-thumb.is-active { border: 2px solid var(--wm-red); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-summary { padding-top: 12px; }
.product-summary h1 { font-size: 38px; }
.product-category-line { margin-top: 18px; color: var(--wm-green); font-weight: 800; }
.product-lead { margin-top: 20px; color: var(--wm-steel); font-size: 17px; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.product-video-inline { margin-top: 28px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wm-black); border-radius: 6px; }
.product-video-inline video { width: 100%; height: 100%; object-fit: contain; }
.product-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 46px; align-items: start; margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--wm-line); }
.product-content h2, .product-specifications h2 { margin-bottom: 24px; font-size: 27px; }
.product-specifications { padding-left: 30px; border-left: 1px solid var(--wm-line); }
.product-specifications dl { margin: 0; }
.product-specifications dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); border-bottom: 1px solid var(--wm-line); }
.product-specifications dt, .product-specifications dd { margin: 0; padding: 12px 0; }
.product-specifications dt { color: var(--wm-steel); font-weight: 700; }
.product-specifications dd { color: var(--wm-ink); }
.detail-video { width: 100%; margin-top: 28px; background: var(--wm-black); }
.experiment-note { margin-top: 42px; padding-top: 20px; color: var(--wm-steel); border-top: 1px solid var(--wm-line); font-size: 13px; }

.entry-content { color: #30343a; font-size: 16px; }
.entry-content > * { max-width: 820px; }
.entry-content > .alignwide { max-width: 1180px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin: 1.5em 0 0.65em; font-size: 29px; }
.entry-content h3 { margin: 1.35em 0 0.55em; font-size: 22px; }
.entry-content a { color: var(--wm-red); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 11px; border: 1px solid var(--wm-line); text-align: left; }
.standard-page { min-height: 420px; padding-top: 54px; padding-bottom: 74px; }
.standard-page > * { margin-inline: auto; }

.contact-page { padding: 68px 0 82px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 70px; align-items: start; }
.contact-details h2 { margin-bottom: 18px; }
.contact-details > p { max-width: 650px; color: var(--wm-steel); font-size: 17px; }
.contact-details dl { margin: 36px 0 0; border-top: 1px solid var(--wm-line); }
.contact-details dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); padding: 15px 0; border-bottom: 1px solid var(--wm-line); }
.contact-details dt { color: var(--wm-steel); font-weight: 700; }
.contact-details dd { margin: 0; font-weight: 800; }
.contact-details dd a { color: var(--wm-red); }
.contact-qr-area { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-qr-area figure { margin: 0; text-align: center; }
.contact-qr-area img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border: 1px solid var(--wm-line); border-radius: 6px; }
.contact-qr-area figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-weight: 800; }
.contact-qr-area figcaption span { color: var(--wm-steel); font-size: 13px; font-weight: 400; text-align: right; overflow-wrap: anywhere; }

.not-found { min-height: 600px; display: grid; place-items: center; text-align: center; }
.not-found h1 { margin-top: 6px; }
.not-found p { margin: 18px auto 26px; color: var(--wm-steel); }

.footer-series { padding: 68px 0 60px; text-align: center; background: var(--wm-paper); }
.footer-series h2 { color: #272727; font-size: 32px; }
.footer-series-line { width: 80px; height: 4px; margin: 20px auto 30px; background: var(--wm-red); }
.footer-series-list { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.footer-series-list a { color: #243a68; font-size: 16px; font-weight: 800; }
.footer-series-list a:hover { color: var(--wm-red); }
.footer-series-dots { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.footer-series-dots i { width: 6px; height: 6px; display: block; border-radius: 50%; background: #1e1e1e; }
.footer-series-dots i.is-active { background: var(--wm-red); }
.site-footer { padding: 58px 0 20px; color: #eef3ff; background: #243a68; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 0.75fr 1fr 1.55fr; gap: 45px; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; color: #ffffff; }
.footer-brand-mark { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; overflow: hidden; background: #ffffff; border-radius: 3px; }
.footer-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand strong { display: block; font-size: 21px; line-height: 1.1; }
.footer-brand small { display: block; margin-top: 6px; color: #c7d2e7; font-size: 10px; }
.footer-brand-block > p { max-width: 300px; margin-top: 22px; color: #c7d2e7; }
.footer-grid h2 { margin-bottom: 14px; color: var(--wm-paper); font-size: 17px; }
.footer-grid > div:not(.footer-brand-block) a { display: block; padding: 4px 0; color: #d9e2f2; }
.footer-grid > div:not(.footer-brand-block) a:hover { color: #ffffff; }
.footer-contact-block p { margin: 0 0 8px; color: #d9e2f2; font-size: 14px; }
.footer-contact-block p a { display: inline !important; padding: 0 !important; color: #ffffff !important; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 18px; color: #b8c5db; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 13px; }
.footer-bottom a { color: #e8effc; }

@media (max-width: 1120px) {
  .site-navigation { gap: 14px; }
  .site-brand { flex-basis: 250px; }
  .site-brand-copy strong { font-size: 22px; }
  .site-brand-copy b { font-size: 19px; }
  .header-quote { display: none; }
  .product-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-layout { grid-template-columns: 1fr 1fr; gap: 36px; }
  .product-detail-grid { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 34px; }
  .product-content-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr) 430px; gap: 46px; }
}

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .site-topbar-inner { justify-content: flex-end; }
  .site-topbar-inner > span { display: none; }
  .site-header-main { position: relative; }
  .header-inner { min-height: 82px; }
  .header-inner { justify-content: space-between; }
  .site-brand { flex: 0 0 230px; }
  .site-brand-mark { width: 50px; height: 50px; flex-basis: 50px; }
  .site-brand-copy strong { font-size: 21px; }
  .site-brand-copy b { font-size: 18px; }
  .site-brand-copy small { font-size: 10px; }
  .nav-toggle { display: block; order: 3; }
  .site-navigation {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    background: var(--wm-black);
    border-bottom: 3px solid var(--wm-red);
  }
  .site-navigation.is-open { display: flex; }
  .site-navigation a { padding: 12px 0; border-bottom: 1px solid #33363b; }
  .site-navigation a::after { display: none; }
  .header-actions { margin-left: auto; }
  .hero-home, .hero-copy { min-height: 590px; }
  .hero-copy h1 { font-size: 50px; }
  .intro-layout { grid-template-columns: 1fr; }
  .intro-copy { max-width: 720px; }
  .category-overview-inner { grid-template-columns: 1fr; gap: 28px; }
  .category-overview-heading p { max-width: 600px; }
  .archive-layout { grid-template-columns: 1fr; }
  .product-sidebar { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; padding: 0; border-right: 0; }
  .product-sidebar h2 { grid-column: 1 / -1; }
  .product-grid-archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; max-width: 680px; }
  .product-content-layout { grid-template-columns: 1fr; }
  .product-specifications { padding: 36px 0 0; border-top: 1px solid var(--wm-line); border-left: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-qr-area { max-width: 520px; }
  .footer-grid { grid-template-columns: 1.3fr 0.7fr; gap: 44px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .site-shell { width: min(100% - 28px, var(--wm-width)); }
  .home-intro .site-shell { width: min(100% - 28px, var(--wm-width)); }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .site-topbar { min-height: 30px; }
  .site-topbar-inner { min-height: 30px; }
  .site-topbar-contact { gap: 0; }
  .site-topbar-contact a:nth-child(1), .site-topbar-contact a:nth-child(2) { display: none; }
  .header-inner { min-height: 74px; gap: 8px; }
  .site-brand { flex-basis: 205px; gap: 8px; }
  .site-brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .site-brand-copy strong { font-size: 20px; }
  .site-brand-copy b { font-size: 17px; }
  .site-brand-copy small { margin-top: 4px; font-size: 9px; }
  .header-actions { gap: 4px; }
  .language-switch-main { min-height: 34px; padding: 6px 7px; font-size: 11px; }
  .site-navigation { top: 74px; }
  .hero-home, .hero-copy { min-height: 520px; }
  .hero-shade { background: linear-gradient(90deg, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.4)); }
  .hero-copy h1 { max-width: 580px; font-size: 42px; }
  .hero-copy p { font-size: 16px; }
  .hero-actions .button { flex: 1; min-width: 140px; }
  .section-band, .product-category-section { padding: 52px 0; }
  .intro-facts { grid-template-columns: 1fr; }
  .intro-facts div { display: grid; grid-template-columns: 100px 1fr; align-items: baseline; gap: 8px; padding-top: 15px; }
  .category-overview { padding: 48px 0; }
  .category-overview-heading h2 { font-size: 30px; }
  .category-summary-card { min-height: 92px; padding: 12px; }
  .category-summary-card strong { font-size: 25px; }
  .category-summary-card span { font-size: 13px; }
  .category-summary-card small { font-size: 10px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .product-grid-home, .product-grid-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card-body { min-height: 158px; padding: 12px; }
  .product-card h3 { min-height: 70px; font-size: 14px; }
  .contact-band-inner { align-items: flex-start; flex-direction: column; }
  .page-banner { padding: 50px 0; }
  .archive-section { padding: 38px 0 60px; }
  .product-sidebar { grid-template-columns: 1fr 1fr; }
  .product-search { grid-template-columns: 1fr; }
  .product-search .button { width: 100%; }
  .product-summary h1 { font-size: 31px; }
  .product-thumbnails { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .product-content-layout { margin-top: 48px; padding-top: 36px; }
  .product-specifications dl div { grid-template-columns: 118px minmax(0, 1fr); }
  .contact-page { padding: 48px 0 64px; }
  .contact-qr-area { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
  .site-brand { flex-basis: 185px; }
  .site-brand-copy strong { font-size: 18px; }
  .site-brand-copy b { font-size: 15px; }
  .site-brand-copy small { font-size: 8px; }
  .nav-toggle { width: 38px; padding-inline: 7px; }
  .hero-copy h1 { font-size: 36px; }
  .product-grid-home, .product-grid-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card-body { min-height: 150px; padding: 10px; }
  .product-kicker { font-size: 11px; }
  .product-card h3 { min-height: 68px; font-size: 13px; }
  .product-link { font-size: 12px; }
  .product-sidebar { grid-template-columns: 1fr; }
  .contact-details dl div { grid-template-columns: 90px minmax(0, 1fr); }
}

/* Product detail template refresh */
.product-breadcrumb { padding-top: 22px; padding-bottom: 18px; }
.product-detail-page { padding-bottom: 0; }
.product-detail-hero { padding: 34px 0 82px; background: #f4f4f2; border-top: 1px solid #e7e7e4; border-bottom: 1px solid #dedfdd; }
.product-detail-grid { grid-template-columns: minmax(0, 570px) minmax(0, 1fr); gap: 72px; }
.product-gallery { top: 112px; }
.detail-media-label, .detail-eyebrow, .detail-section-index { color: var(--wm-red); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-media-label { margin-bottom: 12px; }
.product-main-image { aspect-ratio: 1 / 1; background: #ffffff; border: 1px solid #dfe1df; border-radius: 0; box-shadow: 0 16px 34px rgba(21, 22, 24, .08); }
.product-main-image img { transform: none; object-fit: contain; }
.product-thumbnails { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.product-thumb { background: #ffffff; border-color: #dfe1df; border-radius: 0; }
.product-thumb.is-active { border-color: var(--wm-red); }
.product-summary { align-self: center; padding: 16px 0 0; }
.detail-eyebrow { margin-bottom: 28px; color: #646a71; }
.detail-eyebrow span, .product-category-line span, .detail-section-index span { color: var(--wm-red); }
.product-summary .section-label { margin-bottom: 14px; }
.product-summary h1 { max-width: 700px; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.product-category-line { display: flex; gap: 8px; align-items: baseline; margin-top: 19px; color: var(--wm-green); font-size: 14px; }
.product-lead { max-width: 670px; margin-top: 26px; color: #5f666e; font-size: 17px; line-height: 1.8; }
.product-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 34px 0 0; padding-top: 20px; border-top: 1px solid #d8dad8; }
.product-facts div { min-width: 0; }
.product-facts dt { color: #737980; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.product-facts dd { margin: 5px 0 0; color: var(--wm-ink); font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.product-actions { margin-top: 32px; }
.product-detail-body { padding: 76px 0 88px; background: #ffffff; }
.detail-section-heading { max-width: 800px; margin-bottom: 28px; }
.detail-section-index { margin-bottom: 12px; color: var(--wm-red); }
.detail-section-heading h2 { font-size: 34px; }
.detail-section-intro { max-width: 680px; margin-top: 12px; color: var(--wm-steel); font-size: 15px; }
.product-content-layout { grid-template-columns: minmax(0, 1fr) 390px; gap: 38px; margin-top: 0; padding-top: 0; border-top: 0; }
.product-panel { min-width: 0; padding: 30px 32px; background: #f7f7f5; border: 1px solid #e5e6e3; }
.product-content h3, .product-specifications h3 { margin-bottom: 22px; font-size: 22px; }
.product-specifications { padding: 30px 32px; border: 1px solid #e5e6e3; }
.product-specifications dl div { grid-template-columns: 130px minmax(0, 1fr); border-bottom-color: #dedfdd; }
.product-specifications dt, .product-specifications dd { padding: 13px 0; }
.product-specifications dt { color: #70767d; font-size: 13px; }
.product-specifications dd { font-size: 14px; overflow-wrap: anywhere; }
.detail-empty { color: var(--wm-steel); }
.parameter-detail-section { margin-top: 78px; padding-top: 70px; border-top: 1px solid #dfe1df; }
.parameter-section-heading { margin-bottom: 22px; }
.detail-preview-note { margin: 0 0 20px; padding: 11px 14px; color: #6b530e; background: #fff8df; border-left: 3px solid #c69b2d; font-size: 13px; }
.parameter-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.parameter-image-card { min-width: 0; margin: 0; background: #ffffff; border: 1px solid #e0e2df; box-shadow: 0 8px 20px rgba(21, 22, 24, .05); }
.parameter-image-frame { overflow: hidden; background: #f8f8f6; }
.parameter-image-frame img { width: 100%; height: auto; object-fit: contain; }
.parameter-image-card figcaption { padding: 10px 13px 12px; color: #656b72; border-top: 1px solid #e6e7e4; font-size: 12px; font-weight: 700; }
.product-detail-body .experiment-note { width: auto; margin-top: 60px; padding: 18px 0 0; }

@media (max-width: 1120px) {
  .product-detail-grid { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 42px; }
  .product-content-layout { grid-template-columns: minmax(0, 1fr) 330px; }
}

@media (max-width: 900px) {
  .product-detail-hero { padding: 28px 0 58px; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 38px; }
  .product-gallery { position: static; max-width: 700px; }
  .product-summary { align-self: auto; padding-top: 0; }
  .product-summary h1 { max-width: 760px; }
  .product-content-layout { grid-template-columns: 1fr; gap: 20px; }
  .product-specifications { padding-top: 28px; }
  .parameter-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .product-breadcrumb { padding-top: 16px; padding-bottom: 14px; }
  .product-detail-hero { padding: 20px 0 44px; }
  .product-summary h1 { font-size: 32px; }
  .product-lead { font-size: 15px; }
  .product-facts { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .product-facts div:last-child { grid-column: 1 / -1; }
  .product-detail-body { padding: 52px 0 62px; }
  .detail-section-heading h2 { font-size: 28px; }
  .product-panel, .product-specifications { padding: 22px 20px; }
  .parameter-detail-section { margin-top: 54px; padding-top: 48px; }
}

/* Portrait detail layout: keep the reading column narrow and continuous. */
.product-detail-hero > .site-shell,
.product-detail-body > .site-shell {
  width: min(900px, calc(100% - 40px));
}
.product-detail-grid {
  grid-template-columns: minmax(0, 820px);
  max-width: 820px;
  margin-inline: auto;
  gap: 34px;
}
.product-gallery,
.product-summary {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}
.product-gallery { position: static; }
.product-summary { padding-top: 0; }
.product-main-image { aspect-ratio: 4 / 3; }
.product-content-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  margin-inline: auto;
  gap: 22px;
}
.product-specifications {
  padding: 30px 32px;
  border-top: 4px solid var(--wm-red);
  border-right: 1px solid #e5e6e3;
  border-bottom: 1px solid #e5e6e3;
  border-left: 1px solid #e5e6e3;
}
.parameter-detail-section { max-width: 820px; margin-inline: auto; }
.parameter-gallery {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  margin-inline: auto;
  gap: 24px;
}
.parameter-image-card { width: 100%; }
.parameter-image-frame img { width: 100%; height: auto; }
.product-detail-body .experiment-note { max-width: 820px; margin-inline: auto; }

@media (max-width: 680px) {
  .product-detail-hero > .site-shell,
  .product-detail-body > .site-shell { width: min(100% - 28px, 820px); }
  .product-detail-grid,
  .product-content-layout,
  .parameter-detail-section,
  .parameter-gallery,
  .product-detail-body .experiment-note { max-width: none; }
  .product-main-image { aspect-ratio: 4 / 3; }
  .product-specifications { padding: 22px 20px; }
}
