/* Version 4 refinements: product detail, responsive navigation and footer. */

.product-overline.pro { color: #b48732; }

.gallery-series {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  min-width: 72px;
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  color: #fff;
  font: 900 .68rem/1 Arial, sans-serif;
  letter-spacing: .05em;
}

.gallery-series.pro { background: linear-gradient(135deg, #9b7027, #d0a957); }
.gallery-series.economy { background: linear-gradient(135deg, #236c70, #489395); }

/* Product gallery — media, variants and zoom controls never overlap. */
.product-page .gallery-card {
  display: grid;
  place-items: stretch;
  gap: 14px;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 55px rgba(25, 55, 73, .08);
}

.product-page .gallery-media {
  position: relative;
  display: grid;
  min-height: 480px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e0e8ea;
  border-radius: 21px;
  background: var(--product-media-bg, #fff);
}

.product-page .gallery-zoom-trigger {
  display: grid;
  width: 100%;
  min-height: 480px;
  padding: clamp(22px, 2.4vw, 28px);
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: zoom-in;
}

.product-page .gallery-zoom-trigger > img {
  width: min(100%, 560px);
  height: clamp(390px, 38vw, 430px);
  object-fit: contain;
  object-position: center;
  transition: transform .28s ease;
}

.product-page .gallery-zoom-trigger:hover > img,
.product-page .gallery-zoom-trigger:focus-visible > img {
  transform: scale(1.025);
}

.gallery-zoom-trigger:focus-visible {
  outline: 3px solid rgba(60, 110, 113, .28);
  outline-offset: -5px;
}

.gallery-zoom-hint {
  position: absolute;
  z-index: 4;
  top: 17px;
  right: 17px;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(204, 216, 220, .95);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 28px rgba(24, 53, 69, .11);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.gallery-zoom-hint svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.variant-panel {
  display: grid;
  gap: 11px;
  padding: 7px 4px 3px;
  background: #fff;
}

.variant-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-inline: 4px;
}

.variant-panel-head b {
  color: var(--ink);
  font-size: .83rem;
}

.variant-panel-head small {
  color: #81919a;
  font-size: .68rem;
}

.product-page .variant-row {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-page .variant-thumb {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 10px;
  min-width: 0;
  min-height: 66px;
  padding: 7px;
  border: 1px solid #dce5e8;
  border-radius: 15px;
  background: #fff !important;
  color: #536b78;
  text-align: right;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-page .variant-thumb:hover {
  border-color: #afc7cb;
  transform: translateY(-1px);
}

.product-page .variant-thumb.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(60, 110, 113, .1);
}

.product-page .gallery-card.pro .variant-thumb.active {
  border-color: #c79a43;
  box-shadow: 0 0 0 3px rgba(199, 154, 67, .13);
}

.variant-preview {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce4e7;
  border-radius: 11px;
  background: var(--variant-bg, #f0f3f4);
}

.variant-preview img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.variant-label {
  min-width: 0;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.product-lightbox-open { overflow: hidden; }

.product-lightbox[hidden] { display: none; }

.product-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
  direction: rtl;
}

.product-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 37, .82);
  backdrop-filter: blur(12px);
}

.product-lightbox-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, 100%);
  height: min(920px, calc(100vh - 44px));
  height: min(920px, calc(100dvh - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .35);
}

.product-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 14px 20px;
  border-bottom: 1px solid #dfe7ea;
  background: #fff;
}

.product-lightbox-head > div { display: grid; gap: 2px; }
.product-lightbox-head span { color: #83929a; font-size: .68rem; }
.product-lightbox-head h2 { margin: 0; color: var(--ink); font-size: 1rem; }

.product-lightbox-close {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  border: 1px solid #d8e2e5;
  border-radius: 14px;
  background: #f7f9fa;
  color: var(--ink);
  cursor: pointer;
}

.product-lightbox-close:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.product-lightbox-close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.product-lightbox-viewport {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: var(--lightbox-media-bg, #fff);
  touch-action: none;
  cursor: zoom-in;
}

.product-lightbox-viewport.is-zoomed { cursor: grab; }
.product-lightbox-viewport.is-dragging { cursor: grabbing; }

.product-lightbox-viewport img {
  width: min(88%, 900px);
  height: min(70vh, 720px);
  height: min(70dvh, 720px);
  max-width: none;
  object-fit: contain;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  user-select: none;
  will-change: transform;
}

.product-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 12px 20px;
  border-top: 1px solid #dfe7ea;
  background: #fff;
}

.product-lightbox-footer p {
  margin: 0;
  color: #71848f;
  font-size: .7rem;
}

.product-zoom-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  direction: ltr;
}

.product-zoom-controls button,
.product-zoom-controls output {
  display: inline-grid;
  min-width: 42px;
  height: 40px;
  place-items: center;
  border: 1px solid #d9e3e6;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: 850 .85rem/1 Vazirmatn, Tahoma, sans-serif;
}

.product-zoom-controls button { cursor: pointer; }
.product-zoom-controls button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.product-zoom-controls output { min-width: 66px; background: #f6f9fa; font-size: .72rem; }
.product-zoom-controls .product-zoom-reset { min-width: 92px; padding-inline: 12px; direction: rtl; font-size: .68rem; }

.product-note {
  display: grid;
  gap: 5px;
}

.product-note b { color: var(--teal-dark); }
.product-note span { color: #5d7582; }

.product-page .product-info h1 {
  max-width: 680px;
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 3.1vw, 2.65rem);
  line-height: 1.42;
  letter-spacing: -.02em;
}

.product-page .section-title {
  margin: 7px 0 10px;
  font-size: clamp(1.35rem, 2.25vw, 1.95rem);
  line-height: 1.5;
  letter-spacing: -.018em;
}

.product-jump {
  position: sticky;
  z-index: 20;
  top: 110px;
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 54px 0 10px;
  padding: 9px;
  overflow-x: auto;
  border: 1px solid rgba(215, 226, 230, .9);
  border-radius: 17px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 35px rgba(27, 58, 74, .08);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.product-jump::-webkit-scrollbar { display: none; }

.product-jump a {
  flex: none;
  padding: 8px 14px;
  border-radius: 10px;
  color: #607783;
  font-size: .76rem;
  font-weight: 750;
}

.product-jump a:hover {
  background: #edf5f5;
  color: var(--teal-dark);
}

.detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 24px;
}

.detail-heading > p {
  max-width: 560px;
  margin: 0;
  color: #647b87;
  font-size: .9rem;
}

.product-content-panel {
  scroll-margin-top: 160px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid #d9e4e7;
  border-radius: 28px;
  background: linear-gradient(155deg, #fff 0%, #f8fafb 100%);
  box-shadow: 0 20px 55px rgba(26, 55, 71, .055);
}

.product-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 26px;
}

.product-section-head > div:first-child { min-width: 0; }

.product-section-head h2 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.25vw, 1.95rem);
  line-height: 1.5;
  letter-spacing: -.018em;
}

.product-section-head > p {
  max-width: 570px;
  margin: 0;
  color: #627985;
  font-size: .86rem;
  line-height: 2;
}

.product-applications .use-grid {
  gap: 14px;
  margin-top: 0;
}

.product-applications .use-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
  min-height: 168px;
  padding: 22px;
  border-color: #dce6e9;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 58, 74, .035);
}

.product-applications .use-card h3 {
  margin: 1px 0 8px;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.7;
}

.product-applications .use-card p {
  margin: 0;
  color: #647a86;
  font-size: .8rem;
  line-height: 1.95;
}

.product-section-head-compact { align-items: center; }

.spec-model-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.spec-model-tags span {
  padding: 7px 12px;
  border: 1px solid #d9e4e7;
  border-radius: 999px;
  background: #fff;
  color: #58717e;
  font-size: .72rem;
  font-weight: 800;
}

.product-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  overflow: hidden;
  border-radius: 20px;
  background: #dce6e9;
}

.product-spec-item {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 94px;
  padding: 16px 20px;
  background: #fff;
}

.product-spec-item dt {
  color: #74868f;
  font-size: .72rem;
  font-weight: 750;
}

.product-spec-item dd {
  margin: 0;
  color: #173f53;
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.wiring-section {
  scroll-margin-top: 160px;
  padding: 38px;
  border: 1px solid #d8e4e7;
  border-radius: 28px;
  background: linear-gradient(155deg, #fff, #f6f9fa);
}

.wiring-canvas {
  overflow: visible;
  padding: clamp(14px, 2.2vw, 28px);
  border: 1px solid #dce6e9;
  border-radius: 24px;
  background: linear-gradient(145deg, #f7fafb, #edf3f4);
  box-shadow: 0 22px 55px rgba(28, 58, 74, .07);
}

.wiring-reference {
  display: grid;
  gap: 22px;
  margin: 0;
}

.wiring-reference-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wiring-reference-head > div {
  display: grid;
  gap: 7px;
}

.wiring-reference-head strong {
  color: #173f53;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 900;
}

.wiring-reference-badge {
  width: fit-content;
  padding: 6px 11px;
  border: 1px solid #d4b16b;
  border-radius: 999px;
  background: #fff8ea;
  color: #8a641f;
  font-size: .75rem;
  font-weight: 850;
}

.wiring-terminal-strip {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid #d8e4e7;
  border-radius: 12px;
  background: #fff;
  color: #234b60;
  box-shadow: 0 8px 20px rgba(25, 61, 78, .05);
  font: 800 .82rem/1.2 Arial, sans-serif;
  letter-spacing: .06em;
}

.wiring-reference-image {
  position: relative;
  isolation: isolate;
  width: min(100%, 660px);
  margin-inline: auto;
  padding: clamp(10px, 1.5vw, 18px);
  overflow: hidden;
  border: 1px solid #d9e2e5;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(26, 55, 71, .1);
}

.wiring-reference-image::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #b7862e, #e4c67f, #b7862e);
  content: "";
}

.wiring-reference-image img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.wiring-reference figcaption {
  display: grid;
  gap: 13px;
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}

.wiring-reference figcaption p {
  margin: 0;
  color: #526d7b;
  font-size: .9rem;
  line-height: 2;
}

.wiring-output-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.wiring-output-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #dce5e8;
  border-radius: 12px;
  background: #fff;
  color: #526b78;
  font-size: .78rem;
}

.wiring-output-list b {
  display: inline-grid;
  width: 31px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: #fff0f0;
  color: #c8171f;
  font: 900 .72rem/1 Arial, sans-serif;
}

.wiring-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 18px;
  color: #5d7481;
  font-size: .82rem;
}

.wiring-legend span { display: flex; align-items: center; gap: 7px; }
.wiring-legend i { width: 24px; height: 5px; border-radius: 9px; }
.wiring-legend .neutral { background: #171df1; }
.wiring-legend .phase { background: #e10e18; }
.wiring-legend .return { background: #e10e18; }

.safety-alert {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 16px;
  margin-top: 25px;
  padding: 20px;
  border: 1px solid #edcd91;
  border-right: 5px solid #d69a2d;
  border-radius: 17px;
  background: #fff8e9;
}

.safety-alert > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #d69a2d;
  color: #fff;
  font: 900 1.2rem/1 Arial, sans-serif;
}

.safety-alert b { color: #6f5017; }
.safety-alert p { margin: 4px 0 0; color: #6e6044; font-size: .83rem; line-height: 1.95; }

.install-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 25px;
}

.install-steps article {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
}

.install-steps article > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #1d4659, #377476);
  color: #fff;
  font-weight: 900;
}

.install-steps h3 { margin: 1px 0 5px; font-size: 1rem; }
.install-steps p { margin: 0; color: #607783; font-size: .82rem; }

.current-note {
  margin-top: 15px;
  padding: 17px 20px;
  border-radius: 14px;
  background: #edf5f5;
  color: #4c696f;
  font-size: .84rem;
}

.current-note b { color: var(--teal-dark); }

/* Product archive — media and content are isolated so images can never cover text. */
.product-catalog-section { padding-top: 72px; }

.catalog-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 24px;
  color: #71848f;
  font-size: .86rem;
}

.catalog-status p { margin: 0; }
.catalog-status b { color: var(--ink); }
.catalog-status > span {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eef4f5;
  color: var(--teal-dark);
  font-size: .7rem;
  font-weight: 800;
}

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

.catalog-product-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e3e6;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(26, 56, 72, .035);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.catalog-product-card:hover {
  transform: translateY(-5px);
  border-color: #c4d4d8;
  box-shadow: 0 22px 48px rgba(26, 56, 72, .11);
}

.catalog-product-link {
  display: grid;
  grid-template-rows: auto minmax(135px, 1fr);
  height: 100%;
}

.catalog-product-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #f0f3f4 64%, #e9edef 100%);
}

.catalog-product-card.pro .catalog-product-media {
  background: radial-gradient(circle at 50% 38%, #fff 0%, #f4f3ef 64%, #eceae4 100%);
}

.catalog-product-media img {
  position: absolute;
  inset: 7%;
  display: block;
  width: 86%;
  height: 86%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 18px rgba(22, 44, 56, .13));
  transition: transform .3s ease;
}

.catalog-product-card:hover .catalog-product-media img { transform: scale(1.025); }

.catalog-product-content {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: 17px 18px 16px;
  overflow: hidden;
  border-top: 1px solid #e1e8ea;
  background: #fff;
}

.catalog-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-product-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid #d9e4e6;
  border-radius: 999px;
  background: #f7fafb;
  color: var(--teal-dark);
  font-size: .65rem;
  font-weight: 800;
}

.catalog-product-card.pro .catalog-product-tags span:first-child {
  border-color: #ead7ae;
  background: #fcf7ec;
  color: #9a7028;
}

.catalog-product-content h2 {
  margin: 10px 0 5px;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.catalog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.catalog-card-footer p {
  min-width: 0;
  margin: 0;
  color: #85959d;
  font-size: .7rem;
}

.catalog-card-footer i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #edf5f5;
  color: var(--teal-dark);
  font-style: normal;
  transition: .2s ease;
}

.catalog-product-card.pro .catalog-card-footer i {
  background: #faf4e7;
  color: #9e742b;
}

.catalog-product-card:hover .catalog-card-footer i {
  background: var(--ink);
  color: #fff;
  transform: translateX(-3px);
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 38px;
}

.catalog-page-numbers {
  display: flex;
  align-items: center;
  gap: 7px;
  direction: ltr;
}

.catalog-page-numbers a,
.catalog-page-direction {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #d9e3e6;
  border-radius: 13px;
  background: #fff;
  color: #607783;
  font-size: .78rem;
  font-weight: 800;
  transition: .2s ease;
}

.catalog-page-numbers a:hover,
.catalog-page-numbers a.active,
.catalog-page-direction:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.catalog-page-direction.disabled {
  cursor: not-allowed;
  opacity: .42;
}

@media (max-width: 1000px) {
  .catalog-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .products-page .page-hero { padding: 48px 0 38px; }
  .products-page .page-hero .display-title { font-size: 2.2rem; }
  .product-catalog-section { padding-top: 52px; }
  .products-page .filter-bar {
    flex-wrap: nowrap;
    margin-inline: -12px;
    padding: 0 12px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .products-page .filter-bar::-webkit-scrollbar { display: none; }
  .products-page .filter-button {
    flex: none;
    padding: 8px 12px;
    font-size: .73rem;
  }
  .catalog-status { margin-bottom: 18px; font-size: .76rem; }
  .catalog-status > span { font-size: .62rem; }
  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .catalog-product-card { border-radius: 18px; }
  .catalog-product-link { grid-template-rows: auto minmax(123px, 1fr); }
  .catalog-product-media { aspect-ratio: 1 / 1; }
  .catalog-product-media img { inset: 6%; width: 88%; height: 88%; }
  .catalog-product-content { min-height: 123px; padding: 11px 10px 10px; }
  .catalog-product-tags { gap: 4px; }
  .catalog-product-tags span { min-height: 22px; padding: 2px 7px; font-size: .55rem; }
  .catalog-product-content h2 { margin: 7px 0 3px; font-size: .73rem; line-height: 1.65; }
  .catalog-card-footer p { font-size: .57rem; line-height: 1.55; }
  .catalog-card-footer i { width: 27px; height: 27px; font-size: .75rem; }
  .catalog-pagination { gap: 7px; margin-top: 28px; }
  .catalog-page-numbers { gap: 5px; }
  .catalog-page-numbers a,
  .catalog-page-direction { min-width: 36px; height: 38px; padding: 0 9px; border-radius: 11px; font-size: .7rem; }
}

/* Why Royal */
.why-royal-section { padding-top: 82px; }

.why-royal-panel {
  position: relative;
  overflow: hidden;
  padding: 52px;
  border: 1px solid #dce6e8;
  border-radius: 44px;
  background:
    radial-gradient(circle at 8% 12%, rgba(197, 151, 65, .11), transparent 24%),
    radial-gradient(circle at 92% 85%, rgba(49, 112, 114, .1), transparent 26%),
    linear-gradient(145deg, #f9fbfb, #f2f7f7);
}

.why-royal-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -150px;
  left: 12%;
  border: 1px solid rgba(47, 103, 106, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(47, 103, 106, .025), 0 0 0 70px rgba(47, 103, 106, .018);
  pointer-events: none;
}

.why-royal-heading {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.why-royal-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a77b2d;
  font: 850 .7rem/1.4 Vazirmatn, sans-serif;
  letter-spacing: .14em;
}

.why-royal-heading > span::before,
.why-royal-heading > span::after {
  content: "";
  width: 25px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
}

.why-royal-heading h2 {
  margin: 8px 0 7px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.25;
}

.why-royal-heading p {
  margin: 0;
  color: #617985;
  font-size: .93rem;
}

.why-royal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.22fr repeat(4, 1fr);
  gap: 13px;
}

.why-royal-card {
  position: relative;
  min-width: 0;
  min-height: 270px;
  padding: 25px 21px;
  overflow: hidden;
  border: 1px solid rgba(211, 224, 227, .95);
  border-radius: 31px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 35px rgba(27, 57, 72, .055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.why-royal-card:hover {
  transform: translateY(-6px);
  border-color: #c4d6d9;
  box-shadow: 0 24px 46px rgba(27, 57, 72, .12);
}

.why-royal-card.warranty {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: rgba(205, 168, 94, .5);
  background: linear-gradient(145deg, #17394c, #2d6d70);
  color: #fff;
}

.why-royal-card.warranty::after {
  content: "48";
  position: absolute;
  left: -10px;
  bottom: -32px;
  color: rgba(255, 255, 255, .055);
  font: 900 8rem/1 Arial, sans-serif;
  pointer-events: none;
}

.why-royal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 20px;
  background: #edf5f5;
  color: var(--teal-dark);
}

.why-royal-card.warranty .why-royal-icon {
  background: rgba(255, 255, 255, .12);
  color: #e4bf70;
}

.why-royal-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.warranty-duration {
  display: inline-flex;
  margin-bottom: 4px;
  color: #e4bf70;
  font-size: .73rem;
  font-weight: 900;
}

.why-royal-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.why-royal-card.warranty h3 { color: #fff; font-size: 1.2rem; }

.why-royal-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #6b808b;
  font-size: .78rem;
  line-height: 1.95;
}

.why-royal-card.warranty p { color: #d9e5e7; }

@media (max-width: 1050px) {
  .why-royal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-royal-card.warranty { grid-column: 1 / -1; min-height: 235px; }
}

@media (max-width: 680px) {
  .why-royal-section { padding-top: 62px; }
  .why-royal-panel {
    padding: 30px 16px 16px;
    border-radius: 32px;
  }
  .why-royal-heading { margin-bottom: 24px; padding-inline: 6px; }
  .why-royal-heading h2 { font-size: 2.15rem; }
  .why-royal-heading p { font-size: .8rem; line-height: 1.9; }
  .why-royal-grid { grid-template-columns: 1fr; gap: 10px; }
  .why-royal-card,
  .why-royal-card.warranty {
    grid-column: auto;
    min-height: 0;
    padding: 22px;
    border-radius: 25px;
  }
  .why-royal-card:not(.warranty) {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
  }
  .why-royal-icon {
    width: 52px;
    height: 52px;
    grid-row: 1 / span 2;
    margin: 0;
    border-radius: 17px;
  }
  .why-royal-card h3 { margin: 0 0 5px; font-size: .94rem; }
  .why-royal-card p { font-size: .74rem; }
  .why-royal-card.warranty .why-royal-icon { margin-bottom: 21px; }
}

/* Footer */
.site-footer {
  padding-top: 58px;
  background: #fff;
}

.site-footer .footer-grid {
  grid-template-columns: 1.35fr .85fr .95fr 1.15fr;
  gap: 48px;
  padding-bottom: 43px;
}

.site-footer .footer-brand { align-items: flex-start; }
.site-footer .footer-brand p { max-width: 320px; line-height: 1.9; }

.site-footer .footer-links h2,
.site-footer .footer-contact h2 {
  margin-bottom: 11px;
  color: var(--ink);
  font-size: 1rem;
}

.site-footer .footer-links a { padding-block: 2px; }

.site-footer .social-row {
  margin-top: 3px;
}

.site-footer .social-row a {
  width: 36px;
  height: 36px;
  color: var(--ink);
  transition: .2s ease;
}

.site-footer .social-row a:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

.site-footer .social-row svg,
.site-footer .contact-line svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer .footer-contact { gap: 7px; }

.site-footer .contact-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #526b78 !important;
  font-size: .8rem !important;
}

.site-footer .contact-line svg {
  flex: none;
  color: var(--teal-dark);
}

.site-footer .email-line { font-size: .72rem !important; }

.site-footer .footer-contact small {
  margin: -4px 27px 4px 0;
  color: #8b9aa2;
  font-size: .65rem;
}

.site-footer .footer-bottom {
  min-height: 62px;
  justify-content: center;
  text-align: center;
  color: #84949d;
  font-size: .72rem;
}

/* Mobile navigation */
@media (max-width: 1000px) {
  body.menu-open::before {
    content: "";
    position: fixed;
    z-index: 98;
    inset: 0;
    background: rgba(16, 39, 52, .34);
    backdrop-filter: blur(5px);
  }

  .menu-toggle {
    position: relative;
    z-index: 104;
    width: 46px;
    height: 46px;
    gap: 5px;
    overflow: hidden;
    border-color: #d7e2e5;
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(27, 57, 73, .08);
    transition: background .2s ease, border-color .2s ease;
  }

  .menu-toggle span {
    position: absolute;
    width: 21px;
    height: 2px;
    border-radius: 4px;
    background: var(--ink);
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
  }

  .menu-toggle span:nth-child(1) { top: 15px; }
  .menu-toggle span:nth-child(2) { top: 22px; width: 16px; }
  .menu-toggle span:nth-child(3) { top: 29px; }

  .menu-toggle[aria-expanded="true"] {
    border-color: var(--ink);
    background: var(--ink);
  }

  .menu-toggle[aria-expanded="true"] span { top: 22px; background: #fff; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(12px); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

  .site-header .mobile-nav,
  .site-header .mobile-nav.open {
    position: fixed;
    z-index: 103;
    top: 88px;
    right: 16px;
    left: 16px;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    gap: 8px;
    max-height: 0;
    padding: 0 12px !important;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 30px 70px rgba(16, 39, 52, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.98);
    transform-origin: top;
    transition: opacity .24s ease, transform .24s ease, max-height .3s ease, padding .24s ease, visibility .24s;
  }

  .site-header .mobile-nav.open {
    max-height: 360px;
    padding: 13px !important;
    border-color: #dce6e9;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .site-header .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 11px 14px;
    border: 1px solid #e3eaed;
    border-radius: 14px;
    background: #f8fafb;
    color: #435f6e;
    font-size: .84rem;
    font-weight: 750;
  }

  .site-header .mobile-nav a:hover {
    border-color: #bfd2d6;
    background: #edf5f5;
    color: var(--teal-dark);
  }
}

@media (max-width: 820px) {
  .detail-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .product-section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .spec-model-tags { justify-content: flex-start; }
  .install-steps { grid-template-columns: 1fr; }
  .wiring-section { padding: 25px; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 28px; }
  .site-footer .footer-brand,
  .site-footer .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .product-page .product-info h1 { font-size: 1.72rem; line-height: 1.5; }
  .product-page .gallery-card { gap: 10px; padding: 9px; border-radius: 22px; }
  .product-page .gallery-media,
  .product-page .gallery-zoom-trigger { min-height: 355px; }
  .product-page .gallery-media { border-radius: 17px; }
  .product-page .gallery-zoom-trigger { padding: 28px 18px 18px; }
  .product-page .gallery-zoom-trigger > img { width: 100%; height: 305px; }
  .gallery-series { top: 12px; left: 12px; min-width: 66px; height: 31px; }
  .gallery-zoom-hint { top: 11px; right: 11px; width: 39px; height: 39px; border-radius: 12px; }
  .variant-panel { padding: 7px 2px 2px; }
  .variant-panel-head { align-items: flex-start; flex-direction: column; gap: 1px; }
  .variant-panel-head small { font-size: .63rem; }
  .product-page .variant-row {
    position: static;
    grid-template-columns: 1fr;
    margin-top: 5px;
  }
  .product-page .variant-thumb { min-height: 60px; grid-template-columns: 48px minmax(0, 1fr); padding: 6px; }
  .variant-preview { width: 48px; height: 48px; }
  .variant-preview img { width: 41px; height: 41px; }
  .variant-label { font-size: .7rem; }
  .product-lightbox { padding: 7px; }
  .product-lightbox-dialog { height: calc(100vh - 14px); height: calc(100dvh - 14px); border-radius: 21px; }
  .product-lightbox-head { min-height: 68px; padding: 10px 12px; }
  .product-lightbox-head h2 { max-width: 245px; overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
  .product-lightbox-close { width: 42px; height: 42px; border-radius: 12px; }
  .product-lightbox-viewport img { width: 94%; height: min(66vh, 620px); height: min(66dvh, 620px); }
  .product-lightbox-footer { justify-content: center; min-height: 68px; padding: 10px; }
  .product-lightbox-footer p { display: none; }
  .product-zoom-controls { width: 100%; justify-content: center; }
  .product-zoom-controls button,
  .product-zoom-controls output { min-width: 40px; height: 40px; }
  .product-zoom-controls .product-zoom-reset { min-width: 86px; }
  .product-page .quick-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .product-page .quick-fact { min-width: 0; padding: 10px 8px; }
  .product-page .quick-fact small { font-size: .58rem; }
  .product-page .quick-fact b { display: block; overflow-wrap: anywhere; font-size: .68rem; }
  .product-jump {
    top: 86px;
    justify-content: flex-start;
    margin-top: 35px;
    margin-inline: -2px;
    padding: 7px;
  }
  .product-jump a { padding: 7px 10px; font-size: .68rem; }
  .product-content-panel {
    margin-inline: -5px;
    padding: 19px 12px;
    border-radius: 21px;
  }
  .product-section-head { margin-bottom: 18px; }
  .product-section-head h2 { font-size: 1.3rem; }
  .product-section-head > p { font-size: .78rem; }
  .product-applications .use-grid { grid-template-columns: 1fr; }
  .product-applications .use-card { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 17px; }
  .product-applications .use-card h3 { font-size: .9rem; }
  .product-applications .use-card p { font-size: .75rem; }
  .product-spec-grid { grid-template-columns: 1fr; border-radius: 16px; }
  .product-spec-item { min-height: 82px; padding: 14px 16px; }
  .product-spec-item dd { font-size: .8rem; }
  .wiring-section {
    margin-inline: -5px;
    padding: 19px 12px;
    border-radius: 21px;
  }
  .wiring-canvas {
    overflow: visible;
    padding: 9px;
    border-radius: 16px;
  }
  .wiring-reference { gap: 15px; }
  .wiring-reference-head {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
    padding: 4px;
  }
  .wiring-terminal-strip {
    align-self: flex-start;
    font-size: .72rem;
  }
  .wiring-reference-image {
    width: 100%;
    padding: 7px;
    border-radius: 17px;
    box-shadow: 0 12px 28px rgba(26, 55, 71, .09);
  }
  .wiring-reference figcaption {
    gap: 11px;
    padding: 0 4px 5px;
    text-align: right;
  }
  .wiring-reference figcaption p {
    font-size: .78rem;
    line-height: 1.9;
  }
  .wiring-output-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .wiring-output-list span {
    min-width: 0;
    padding: 6px 8px;
    font-size: .7rem;
  }
  .wiring-legend { justify-content: flex-start; padding-inline: 5px; }
  .safety-alert { grid-template-columns: 38px 1fr; gap: 11px; padding: 15px 12px; }
  .safety-alert > span { width: 36px; height: 36px; border-radius: 11px; }
  .safety-alert p { font-size: .76rem; }
  .install-steps article { grid-template-columns: 41px 1fr; gap: 11px; padding: 17px 14px; }
  .install-steps article > span { width: 39px; height: 39px; border-radius: 12px; }
  .site-footer { padding-top: 45px; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
  .site-footer .footer-brand,
  .site-footer .footer-contact { grid-column: 1 / -1; }
  .site-footer .footer-brand { align-items: center; text-align: center; }
  .site-footer .footer-brand p { margin-inline: auto; }
  .site-footer .footer-links { align-items: flex-start; }
  .site-footer .footer-links h2 { font-size: .9rem; }
  .site-footer .footer-links a:not(.brand) { font-size: .76rem; }
  .site-footer .footer-contact {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f9fbfb;
  }
  .site-footer .contact-line { font-size: .76rem !important; }
  .site-footer .email-line { font-size: .68rem !important; }
  .site-footer .footer-bottom { padding: 17px 8px; line-height: 1.8; }
  .site-header .mobile-nav,
  .site-header .mobile-nav.open { top: 76px; right: 10px; left: 10px; }
}

@media (max-width: 390px) {
  .site-header .mobile-nav,
  .site-header .mobile-nav.open { grid-template-columns: 1fr !important; }
  .site-header .mobile-nav.open { max-height: 500px; }
}

/* Version 6: official brand assets, aligned footer and mobile page fixes */
.site-footer .footer-grid {
  align-items: start;
}

.site-footer .footer-grid > section {
  min-width: 0;
}

.site-footer .footer-brand .brand img {
  object-fit: contain;
}

.site-footer .social-row {
  display: flex;
  direction: rtl;
  gap: 9px;
  margin-top: 5px;
}

.site-footer .social-row a {
  width: 38px;
  height: 38px;
  flex: none;
}

.site-footer .social-row svg,
.site-footer .footer-contact-icon svg {
  width: 19px;
  height: 19px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .social-row .icon-dot,
.site-footer .footer-contact-icon circle {
  fill: currentColor;
  stroke: none;
}

.site-footer .footer-contact {
  width: 100%;
  align-items: flex-start;
  gap: 0;
}

.site-footer .footer-contact h2 {
  width: 100%;
  max-width: 250px;
  margin-bottom: 13px;
  text-align: right;
}

.site-footer .footer-contact-list {
  width: 100%;
  max-width: 250px;
  display: grid;
  gap: 7px;
  direction: ltr;
}

.site-footer .footer-contact-item {
  width: 100%;
  min-height: 36px;
  display: grid !important;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 2px 0;
  color: #526b78 !important;
}

.site-footer .footer-contact-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
}

.site-footer .footer-contact-copy {
  min-width: 0;
  display: grid;
  justify-items: start;
  align-content: center;
  text-align: left;
}

.site-footer .footer-contact-copy b {
  display: block;
  margin: 0;
  color: #526b78;
  font: 500 .78rem/1.55 Arial, Vazirmatn, sans-serif;
  letter-spacing: .015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.site-footer .footer-contact-copy small {
  width: 100%;
  margin: 0 !important;
  color: #8b9aa2;
  font-size: .62rem;
  line-height: 1.55;
  text-align: left;
  direction: rtl;
}

.site-footer .footer-email-item .footer-contact-copy b {
  font-size: .69rem;
}

.software-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 80px;
  border-bottom: 1px solid #e0e8eb;
  background:
    radial-gradient(circle at 15% 30%, rgba(60, 110, 113, .14), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(180, 135, 50, .09), transparent 28%),
    linear-gradient(180deg, #f7fafb 0%, #fff 100%);
}

.software-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(39, 75, 96, .026) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 75, 96, .026) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, #000 50%, transparent);
  pointer-events: none;
}

.software-hero-content {
  position: relative;
  z-index: 1;
  max-width: 930px;
  margin-inline: auto;
  text-align: center;
}

.software-hero-content .eyebrow {
  justify-content: center;
}

.software-hero-content .lead {
  max-width: 820px;
  margin-inline: auto;
  font-size: 1.02rem;
  line-height: 2.1;
}

.software-platform-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.software-platform-summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 15px;
  border: 1px solid #d9e4e7;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #647985;
  font-size: .78rem;
  box-shadow: 0 8px 24px rgba(25, 55, 73, .05);
}

.software-platform-summary b { color: var(--ink); direction: ltr; }

.software-versions { padding-top: 88px; }

.software-section-head {
  max-width: 790px;
  margin: 0 auto 34px;
  text-align: center;
}

.software-section-head .eyebrow { justify-content: center; }

.software-section-head .section-title {
  margin-top: 8px;
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
}

.software-section-head > p {
  margin: 0;
  color: #667c88;
  font-size: .92rem;
  line-height: 2;
}

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

.software-platform-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 570px;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid #d8e3e6;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(25, 55, 73, .065);
}

.software-platform-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #2f7f80, #7fa5a6);
}

.software-platform-card.ios::before { background: linear-gradient(90deg, #b48732, #d8ba79); }

.software-platform-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}

.software-platform-icon {
  display: grid;
  width: 78px;
  height: 78px;
  flex: none;
  place-items: center;
  border: 1px solid #dde6e9;
  border-radius: 22px;
  background: #f7fafb;
}

.software-platform-icon img { width: 58px; height: 58px; object-fit: contain; }

.software-platform-label {
  padding: 7px 12px;
  border: 1px solid #dbe5e8;
  border-radius: 999px;
  color: #6b7f89;
  font: 850 .68rem/1.4 Arial, sans-serif;
  letter-spacing: .08em;
  direction: ltr;
}

.software-platform-copy h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.6;
}

.software-platform-copy > p {
  min-height: 86px;
  margin: 0;
  color: #667b87;
  font-size: .9rem;
  line-height: 2;
}

.software-platform-list {
  display: grid;
  gap: 11px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.software-platform-list li {
  position: relative;
  padding-right: 27px;
  color: #4f6977;
  font-size: .84rem;
}

.software-platform-list li::before {
  content: "";
  position: absolute;
  top: .72em;
  right: 4px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

.software-platform-card.ios .software-platform-list li::before { border-color: #b48732; }

.software-platform-action {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
  text-align: center;
}

.software-platform-action .button { width: 100%; min-height: 56px; }
.software-platform-card.ios .software-platform-action .button { background: linear-gradient(135deg, #9a7028, #caa65e); box-shadow: 0 14px 30px rgba(154, 112, 40, .2); }
.software-platform-action small { color: #8a989f; font-size: .7rem; }

.software-guides-section {
  border-top: 1px solid #e1e9eb;
  background: #f5f8f9;
}

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

.software-guide-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid #d9e4e7;
  border-radius: 24px;
  background: #fff;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.software-guide-card:hover {
  border-color: #aec5c9;
  box-shadow: 0 18px 45px rgba(25, 55, 73, .08);
  transform: translateY(-3px);
}

.software-guide-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 19px;
  background: #f0f5f6;
}

.software-guide-icon img { width: 48px; height: 48px; object-fit: contain; }

.software-guide-copy { display: grid; gap: 5px; min-width: 0; }
.software-guide-copy small { color: var(--teal-dark); font-size: .68rem; font-weight: 850; }
.software-guide-copy strong { color: var(--ink); font-size: .98rem; line-height: 1.7; }
.software-guide-copy > span { color: #71848e; font-size: .76rem; line-height: 1.85; }

.software-guide-card > b {
  align-self: end;
  color: var(--teal-dark);
  font-size: .74rem;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .software-platform-grid,
  .software-guide-grid { grid-template-columns: 1fr; }
  .software-platform-card { min-height: 0; }
}

.representatives-page,
.representatives-page main {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.representatives-page .agency-layout > *,
.representatives-page .form-grid > *,
.representatives-page .field {
  min-width: 0;
}

.representatives-page .agency-steps {
  grid-template-columns: 1fr;
}

.representatives-page .agency-form {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.representatives-page .agency-form > h2 {
  margin-top: 0;
}

.form-honeypot {
  position: fixed !important;
  top: -100vh !important;
  left: 0 !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.agreement-field {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.85;
}

.agreement-field input {
  width: auto !important;
  flex: none;
  margin-top: 7px;
}

.agency-submit {
  margin-top: 18px;
}

@media (max-width: 680px) {
  .site-footer .footer-contact {
    align-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .site-footer .footer-contact-list {
    max-width: 280px;
  }

  .site-footer .footer-contact h2 {
    max-width: 280px;
  }

  .site-footer .footer-contact-item {
    min-height: 38px;
  }

  .site-footer .footer-bottom {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .software-hero {
    padding: 58px 0 54px;
  }

  .software-hero-content .display-title {
    font-size: 2.1rem;
    line-height: 1.45;
  }

  .software-hero-content .lead { font-size: .9rem; line-height: 2; }
  .software-platform-summary { align-items: stretch; flex-direction: column; margin-top: 24px; }
  .software-platform-summary span { justify-content: center; }
  .software-versions { padding-top: 66px; }
  .software-section-head { margin-bottom: 25px; }
  .software-section-head .section-title { font-size: 1.55rem; }
  .software-section-head > p { font-size: .82rem; }
  .software-platform-card { padding: 22px 18px; border-radius: 22px; }
  .software-platform-card-head { margin-bottom: 20px; }
  .software-platform-icon { width: 68px; height: 68px; border-radius: 19px; }
  .software-platform-icon img { width: 50px; height: 50px; }
  .software-platform-copy h2 { font-size: 1.22rem; }
  .software-platform-copy > p { min-height: 0; font-size: .82rem; }
  .software-platform-list li { font-size: .78rem; }
  .software-platform-action { padding-top: 25px; }
  .software-guide-card { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; min-height: 0; padding: 19px; border-radius: 20px; }
  .software-guide-icon { width: 58px; height: 58px; border-radius: 16px; }
  .software-guide-icon img { width: 42px; height: 42px; }
  .software-guide-copy strong { font-size: .9rem; }
  .software-guide-card > b { grid-column: 2; justify-self: start; }

  .representatives-page .page-hero {
    padding: 48px 0 40px;
  }

  .representatives-page .page-hero .display-title {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.55rem);
    overflow-wrap: anywhere;
  }

  .representatives-page .agency-layout {
    gap: 30px;
  }

  .representatives-page .agency-form {
    padding: 20px 15px;
    border-radius: 19px;
  }

  .representatives-page .field input,
  .representatives-page .field select,
  .representatives-page .field textarea {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }

  .representatives-page .agency-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-page .gallery-zoom-trigger > img,
  .product-page .variant-thumb {
    transition: none;
  }
}
