:root {
  --ink: #17202a;
  --muted: #5f6b7a;
  --line: #dfe5ea;
  --paper: #ffffff;
  --soft: #f5f7f8;
  --brand: #127c8a;
  --brand-dark: #0a4f58;
  --accent: #f1b950;
  --danger: #b44a3a;
  --shadow: 0 16px 40px rgba(23, 32, 42, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Aptos, Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.promo-bar {
  padding: 8px 16px;
  color: var(--paper);
  background: var(--brand-dark);
  font-size: 0.83rem;
  text-align: center;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px;
}

.brand img {
  width: 214px;
  height: 32px;
  object-fit: contain;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-menu a {
  padding: 10px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.site-menu a:hover,
.site-menu a:focus {
  color: var(--ink);
  background: var(--soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.menu-toggle span:not(.visually-hidden) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 520px);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 98px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px 36px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 18px;
  font-size: clamp(2.9rem, 6vw, 4.8rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.85rem);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.contact-copy p,
.policy-list p,
.faq-list p,
.site-footer p {
  color: var(--muted);
}

.hero-copy p:not(.eyebrow) {
  max-width: 56ch;
  font-size: 1.08rem;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--paper);
  background: var(--brand);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--brand-dark);
}

.button-secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.hero-media {
  display: grid;
  place-items: center;
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(18, 124, 138, 0.13), rgba(241, 185, 80, 0.18)),
    var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.hero-media img {
  width: min(96%, 510px);
  aspect-ratio: 1;
  object-fit: contain;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-strip div {
  min-height: 120px;
  padding: 24px;
  background: var(--soft);
}

.service-strip strong,
.service-strip span {
  display: block;
}

.service-strip strong {
  margin-bottom: 6px;
}

.service-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 22px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-heading.narrow {
  max-width: 470px;
  margin: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-field {
  flex: 1 1 280px;
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.sort-field select {
  min-width: 190px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.product-card:focus-within {
  border-color: rgba(18, 124, 138, 0.42);
  box-shadow: 0 16px 34px rgba(23, 32, 42, 0.1);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 350px;
  padding: 18px;
  background: var(--soft);
}

.product-media-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.product-media-link:focus-visible {
  outline: 3px solid rgba(18, 124, 138, 0.35);
  outline-offset: -3px;
}

.product-image {
  grid-area: 1 / 1;
  width: 100%;
  height: 310px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity 180ms ease;
}

.product-image-hover {
  opacity: 0;
}

.product-media-link.has-hover-image:hover .product-image-primary,
.product-media-link.has-hover-image:focus-visible .product-image-primary {
  opacity: 0;
}

.product-media-link.has-hover-image:hover .product-image-hover,
.product-media-link.has-hover-image:focus-visible .product-image-hover {
  opacity: 1;
}

.sale-badge,
.stock-badge {
  position: absolute;
  top: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
}

.sale-badge {
  left: 14px;
  color: var(--ink);
  background: var(--accent);
}

.stock-badge {
  right: 14px;
  color: var(--paper);
  background: var(--danger);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-title-row h3 {
  margin: 0;
}

.sku {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.current-price {
  font-size: 1.35rem;
  font-weight: 800;
}

.compare-price {
  color: var(--muted);
  text-decoration: line-through;
}

.product-body p {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #eef7f8;
  font-size: 0.82rem;
  font-weight: 700;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.product-actions .button {
  flex: 1;
  padding-inline: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 44px;
  border-top: 1px solid var(--line);
}

.policy-list {
  display: grid;
  gap: 14px;
}

.policy-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.policy-list h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.policy-list p {
  margin-bottom: 0;
}

.policy-list ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.policy-list p + p {
  margin-top: 12px;
}

.faq-section {
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.faq-list p {
  max-width: 880px;
  margin: 0;
  padding: 0 20px 20px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 520px);
  gap: 44px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.inquiry-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding: 38px max(22px, calc((100vw - 1180px) / 2 + 22px));
  color: var(--paper);
  background: var(--ink);
}

.site-footer img {
  width: 214px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-footer h2 {
  margin-bottom: 10px;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.site-footer a,
.site-footer p {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.site-footer a {
  margin-top: 7px;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--paper);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  text-align: center;
}

.fit-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px 78px;
}

.fit-intro {
  max-width: 980px;
  margin-bottom: 30px;
}

.fit-intro h1 {
  max-width: none;
  font-size: clamp(3rem, 5.4vw, 4.8rem);
  line-height: 1.02;
  white-space: nowrap;
}

.fit-intro p:not(.eyebrow),
.fit-results-header p,
.fit-disclaimer {
  color: var(--muted);
}

.fit-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.fit-tab {
  min-width: 132px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.fit-tab:hover,
.fit-tab:focus,
.fit-tab.is-active {
  color: var(--paper);
  background: var(--brand);
}

.fit-mode[hidden] {
  display: none;
}

.fit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  gap: 28px;
  align-items: start;
}

.fit-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.fit-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.fit-form fieldset {
  display: grid;
  gap: 14px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.fit-form legend {
  padding: 0 0 10px;
  font-weight: 800;
}

.fit-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  overflow: hidden;
}

.input-with-unit input {
  border: 0;
  border-radius: 0;
}

.input-with-unit span {
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fit-disclaimer {
  margin: 0;
  font-size: 0.86rem;
}

.fit-results {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 18px;
}

.fit-results-header h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.fit-results-header p {
  margin-bottom: 0;
}

.fit-result-list {
  display: grid;
  gap: 14px;
}

.fit-result {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.fit-result-media {
  display: grid;
  place-items: center;
  min-height: 160px;
  background: var(--soft);
  border-radius: 6px;
}

.fit-result-media img {
  width: 100%;
  max-height: 145px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.fit-result-body {
  display: grid;
  gap: 10px;
}

.fit-result-title {
  display: grid;
  gap: 4px;
}

.fit-result-title span {
  color: var(--brand);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fit-result-title h3 {
  margin-bottom: 0;
}

.fit-reason-list,
.fit-warning-list {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.fit-warning-list {
  color: var(--danger);
}

.photo-fit-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px 78px;
}

.photo-fit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  gap: 28px;
  align-items: start;
}

.photo-fit-results {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 18px;
}

.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.photo-upload {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.photo-upload input {
  min-height: 44px;
  padding: 10px;
  background: var(--paper);
}

.photo-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  text-align: center;
}

.photo-preview img {
  max-height: 210px;
  object-fit: contain;
}

.photo-preview span {
  margin-top: 8px;
  font-size: 0.82rem;
  word-break: break-word;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.measurement-panel {
  display: grid;
  gap: 12px;
}

.measurement-summary {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.measurement-summary span {
  color: var(--muted);
  font-size: 0.9rem;
}

.measurement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.measurement-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.measurement-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.measurement-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.photo-annotation-panel {
  display: grid;
  gap: 12px;
}

.panel-heading-small {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.panel-heading-small h3 {
  margin: 0;
  font-size: 1rem;
}

.panel-heading-small p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.inline-reset-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand-dark);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.inline-reset-button:hover,
.inline-reset-button:focus {
  border-color: var(--brand);
}

.photo-annotation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.annotated-photo {
  display: grid;
  gap: 8px;
  margin: 0;
}

.annotated-photo-frame {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
}

.annotated-photo-frame img {
  width: 100%;
  height: 310px;
  object-fit: contain;
}

.annotated-photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 310px;
  padding: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.annotated-photo figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.photo-measure-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.photo-guide-line,
.photo-pivot-dot {
  filter: drop-shadow(0 1px 2px rgba(23, 32, 42, 0.45));
}

.photo-guide-line {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke: #6d7b88;
  stroke-linecap: round;
  stroke-width: 3;
}

.photo-guide-height,
.photo-guide-headrest {
  stroke: var(--brand);
}

.photo-guide-hip,
.photo-guide-seat-depth {
  stroke: #b44a3a;
}

.photo-guide-shoulder,
.photo-guide-elbow {
  stroke: var(--accent);
}

.photo-guide-head-hip,
.photo-guide-thigh,
.photo-guide-lower-leg {
  stroke: #2f855a;
}

.photo-pivot-dot {
  position: absolute;
  z-index: 2;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 3px solid var(--paper);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 2px rgba(18, 124, 138, 0.82);
  cursor: grab;
  transform: translate(-50%, -50%);
  touch-action: none;
}

.photo-pivot-dot:hover,
.photo-pivot-dot:focus,
.photo-pivot-dot.is-dragging {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(241, 185, 80, 0.55);
  outline: none;
}

.photo-pivot-dot.is-dragging {
  cursor: grabbing;
}

.photo-measure-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.photo-measure-legend div {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.photo-measure-legend dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.photo-measure-legend dd {
  margin: 0;
  color: var(--brand-dark);
  font-size: 0.94rem;
  font-weight: 800;
}

.photo-legend-key {
  flex: 0 0 auto;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.photo-legend-height,
.photo-legend-headrest {
  background: var(--brand);
}

.photo-legend-hip,
.photo-legend-seat-depth {
  background: #b44a3a;
}

.fit-spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fit-spec-list li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #eef7f8;
  font-size: 0.78rem;
  font-weight: 800;
}

.manual-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 22px;
}

.manual-list {
  display: grid;
  gap: 12px;
}

.manual-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.manual-item:target {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 124, 138, 0.13);
}

.manual-item h2 {
  margin: 4px 0 3px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.manual-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.manual-type {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px 42px;
}

.spec-intro {
  max-width: 820px;
  margin-bottom: 42px;
}

.spec-intro h1 {
  max-width: none;
}

.spec-intro p:not(.eyebrow) {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.compare-panel {
  display: grid;
  gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.comparison-controls {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.compare-toggle {
  position: relative;
  cursor: pointer;
}

.compare-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.compare-toggle span {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.compare-toggle input:checked + span {
  border-color: rgba(18, 124, 138, 0.62);
  background: #eef7f8;
  box-shadow: 0 0 0 3px rgba(18, 124, 138, 0.1);
}

.compare-toggle input:focus-visible + span {
  outline: 3px solid rgba(18, 124, 138, 0.28);
  outline-offset: 2px;
}

.compare-toggle img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.compare-toggle strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.15;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.spec-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.spec-table caption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
}

.spec-table th,
.spec-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table thead th {
  background: var(--soft);
}

.spec-table tbody th {
  position: sticky;
  z-index: 1;
  left: 0;
  width: 210px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
}

.compare-product-heading {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.compare-product-heading:hover,
.compare-product-heading:focus {
  color: var(--brand-dark);
}

.compare-product-heading img {
  width: 82px;
  height: 66px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.spec-value {
  display: inline-block;
  max-width: 22ch;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.spec-value-available {
  border-color: rgba(18, 124, 138, 0.22);
  background: #eef7f8;
  color: var(--brand-dark);
}

.spec-value-limited {
  background: #f7f8f9;
  color: var(--muted);
}

.spec-value-warning {
  border-color: rgba(180, 74, 58, 0.22);
  background: #fff2ef;
  color: var(--danger);
}

.product-spec-section,
.product-feature-section,
.feature-guide-section {
  border-top: 1px solid var(--line);
}

.product-spec-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.product-spec-list div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.product-spec-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-spec-list dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.spec-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.feature-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-guide-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.product-feature-grid .feature-guide-card {
  grid-template-columns: 1fr;
}

.feature-guide-card:target {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 124, 138, 0.13);
}

.feature-guide-copy {
  min-width: 0;
}

.feature-guide-copy h3 {
  margin-bottom: 8px;
}

.feature-guide-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-guide-copy p + p {
  margin-top: 8px;
}

.feature-product-note {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand-dark);
  font-size: 0.86rem;
}

.feature-visual {
  position: relative;
  min-height: 124px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(245, 247, 248, 0.96)),
    var(--soft);
}

.feature-visual span {
  position: absolute;
  display: block;
}

.visual-back {
  left: 45px;
  bottom: 43px;
  width: 34px;
  height: 54px;
  border: 4px solid var(--brand);
  border-radius: 10px 10px 6px 6px;
}

.visual-seat {
  left: 36px;
  bottom: 39px;
  width: 58px;
  height: 14px;
  border-radius: 5px;
  background: var(--brand);
}

.visual-lift {
  left: 61px;
  bottom: 18px;
  width: 8px;
  height: 26px;
  border-radius: 99px;
  background: var(--brand-dark);
}

.visual-base {
  left: 39px;
  bottom: 14px;
  width: 52px;
  height: 4px;
  border-radius: 99px;
  background: var(--brand-dark);
}

.visual-headrest,
.visual-arm,
.visual-arrow,
.visual-lock,
.visual-wheel {
  opacity: 0;
}

.visual-headrest {
  left: 48px;
  bottom: 101px;
  width: 28px;
  height: 12px;
  border-radius: 5px;
  background: var(--brand-dark);
}

.visual-arm {
  bottom: 46px;
  width: 22px;
  height: 5px;
  border-radius: 99px;
  background: var(--accent);
}

.visual-arm-left {
  left: 27px;
}

.visual-arm-right {
  left: 85px;
}

.visual-lock {
  left: 56px;
  bottom: 65px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
}

.visual-wheel {
  bottom: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand-dark);
  border-radius: 999px;
  background: var(--paper);
}

.visual-wheel-left {
  left: 36px;
}

.visual-wheel-right {
  left: 84px;
}

.visual-arrow-vertical {
  right: 20px;
  top: 26px;
  height: 66px;
  border-left: 3px solid var(--accent);
}

.visual-arrow-horizontal {
  left: 26px;
  bottom: 22px;
  width: 78px;
  border-top: 3px solid var(--accent);
}

.visual-arrow::before,
.visual-arrow::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--accent);
  border-style: solid;
}

.visual-arrow-vertical::before,
.visual-arrow-vertical::after {
  left: -6px;
  border-width: 3px 3px 0 0;
}

.visual-arrow-vertical::before {
  top: -1px;
  transform: rotate(-45deg);
}

.visual-arrow-vertical::after {
  bottom: -1px;
  transform: rotate(135deg);
}

.visual-arrow-horizontal::before,
.visual-arrow-horizontal::after {
  top: -6px;
  border-width: 3px 3px 0 0;
}

.visual-arrow-horizontal::before {
  left: -1px;
  transform: rotate(-135deg);
}

.visual-arrow-horizontal::after {
  right: -1px;
  transform: rotate(45deg);
}

.feature-visual-gas-lift .visual-arrow-vertical,
.feature-visual-backrest-height .visual-arrow-vertical,
.feature-visual-headrest .visual-arrow-vertical,
.feature-visual-armrest .visual-arrow-vertical,
.feature-visual-seat-slide .visual-arrow-horizontal {
  opacity: 1;
}

.feature-visual-lumbar .visual-lock,
.feature-visual-recline .visual-lock {
  opacity: 1;
}

.feature-visual-lumbar .visual-lock {
  left: 50px;
  bottom: 61px;
  width: 23px;
  height: 13px;
  border-radius: 50% 50% 45% 45%;
}

.feature-visual-recline .visual-back {
  transform: rotate(-17deg);
  transform-origin: bottom center;
}

.feature-visual-recline .visual-lock {
  left: 88px;
  bottom: 30px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--accent);
}

.feature-visual-backrest-height .visual-back {
  bottom: 34px;
  height: 66px;
}

.feature-visual-headrest .visual-headrest,
.feature-visual-armrest .visual-arm,
.feature-visual-base-casters .visual-wheel {
  opacity: 1;
}

.feature-visual-seat-slide .visual-seat {
  width: 70px;
}

.feature-visual-seat-cushion .visual-seat {
  height: 20px;
  background:
    linear-gradient(180deg, var(--accent) 0 45%, var(--brand) 45% 100%);
}

.feature-visual-base-casters .visual-base {
  height: 6px;
}

.feature-visual-box-size .visual-back,
.feature-visual-box-size .visual-lift,
.feature-visual-box-size .visual-base {
  opacity: 0;
}

.feature-visual-box-size .visual-seat {
  left: 30px;
  bottom: 29px;
  width: 68px;
  height: 58px;
  border: 3px solid var(--brand);
  border-radius: 4px;
  background: transparent;
}

.feature-visual-box-size .visual-arrow-horizontal,
.feature-visual-box-size .visual-arrow-vertical {
  opacity: 1;
}

.feature-visual-box-size .visual-arrow-vertical {
  right: 17px;
  top: 30px;
  height: 58px;
}

.feature-visual-box-size .visual-arrow-horizontal {
  left: 31px;
  bottom: 20px;
  width: 67px;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 46px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px 42px;
}

.detail-media {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  overflow: hidden;
}

.product-video,
.video-placeholder {
  width: 100%;
}

.product-video {
  display: block;
  aspect-ratio: 16 / 9;
  height: auto;
  background: var(--ink);
  object-fit: contain;
}

.video-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: 28px;
  background: var(--soft);
}

.video-placeholder img {
  width: min(86%, 500px);
  max-height: 410px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.video-placeholder span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 800;
}

.detail-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.detail-copy h1 {
  max-width: 10ch;
  margin-bottom: 0;
}

.detail-summary {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.product-detail-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 520px);
  gap: 44px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.detail-image-panel {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.detail-image-panel img {
  max-height: 330px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.detail-empty {
  min-height: 54vh;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .product-card,
  .product-image {
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero,
  .split-section,
  .contact-section,
  .fit-layout,
  .photo-fit-layout,
  .product-detail-hero,
  .product-detail-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    max-width: 11ch;
  }

  .fit-intro h1 {
    max-width: none;
    white-space: normal;
  }

  .service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-controls,
  .product-spec-list,
  .product-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-placeholder {
    min-height: 420px;
  }

  .fit-results,
  .photo-fit-results {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    padding: 13px 16px;
  }

  .brand img {
    width: 188px;
  }

  .menu-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu a {
    padding: 12px;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    padding: 13px 16px;
  }

  .brand img {
    width: 188px;
  }

  .menu-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu a {
    padding: 12px;
  }

  .hero {
    gap: 28px;
    padding-inline: 16px;
  }

  .product-detail-hero {
    gap: 28px;
    padding: 42px 16px 28px;
  }

  .hero-media {
    min-height: 320px;
  }

  .section {
    padding: 56px 16px;
  }

  .fit-page,
  .photo-fit-page,
  .manual-page,
  .spec-page {
    padding: 42px 16px 56px;
  }

  .fit-tabs {
    display: grid;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-field {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-field select {
    min-width: 0;
  }

  .service-strip,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .two-columns,
  .three-columns,
  .fit-result,
  .manual-item,
  .comparison-controls,
  .product-spec-list,
  .feature-guide-grid,
  .product-feature-grid,
  .photo-upload-grid,
  .photo-annotation-grid,
  .photo-measure-legend,
  .measurement-list {
    grid-template-columns: 1fr;
  }

  .feature-guide-card {
    grid-template-columns: 1fr;
  }

  .spec-table {
    min-width: 850px;
  }

  .fit-form {
    padding: 18px;
  }

  .panel-heading-small {
    grid-template-columns: 1fr;
  }

  .fit-result-media {
    min-height: 220px;
  }

  .fit-result-media img {
    max-height: 205px;
  }

  .product-media {
    min-height: 300px;
  }

  .product-image {
    height: 260px;
  }

  .video-placeholder {
    min-height: 320px;
  }

  .video-placeholder img {
    max-height: 270px;
  }

  .product-title-row,
  .product-actions,
  .detail-actions,
  .hero-actions,
  .contact-links {
    flex-direction: column;
  }
}
