@view-transition {
  navigation: auto;
}

::view-transition-group(*) {
  animation-duration: 560ms;
  animation-timing-function: cubic-bezier(0.2, 0.75, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*) {
    animation-duration: 1ms;
  }
}

.product-card {
  display: block;
  color: inherit;
}

.product-card[hidden] {
  display: none;
}

.product-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.product-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-body h3 {
  margin: 0 0 14px;
}

.product-photo {
  display: block;
  width: 100%;
  height: 190px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #f3f6fa;
  object-fit: contain;
}

.product-image-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #ffffff 0, #edf4fc 54%, #e1ebf7 100%);
  color: #2676e8;
  isolation: isolate;
}

.product-placeholder-orbit {
  position: absolute;
  z-index: 0;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(38, 118, 232, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(38, 118, 232, .035), 0 0 0 48px rgba(38, 118, 232, .025);
}

.product-placeholder-category {
  position: relative;
  z-index: 1;
  color: #647b98;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-align: center;
}

.product-image-placeholder strong {
  position: relative;
  z-index: 1;
  color: #2676e8;
  font: 700 46px/1 Manrope, sans-serif;
  letter-spacing: -.06em;
}

.product-card-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.product-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 180ms ease, transform 180ms ease;
}

.product-read-more:hover {
  transform: translateY(-2px);
  background: var(--blue);
}

.product-detail {
  padding: 42px 0 82px;
}

.product-detail-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.product-detail-back:hover {
  color: var(--blue);
}

.family-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.family-heading h1 {
  margin: 0 0 12px;
  font: 700 clamp(30px, 4vw, 44px)/1.2 Manrope, sans-serif;
}

.family-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.family-grid {
  row-gap: 22px;
}

.family-card .product-card-body {
  min-height: 100%;
}

.family-card .product-photo {
  background: #f3f6fa;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 46px;
}

.family-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 46px;
}

.family-specifications {
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.family-specifications h2 {
  margin: 0 0 18px;
  font: 700 24px/1.3 Manrope, sans-serif;
}

.family-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.family-spec-list > div {
  padding: 16px 18px;
  background: var(--white);
}

.family-spec-list dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.family-spec-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.family-spec-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.product-detail-photo {
  display: block;
  width: 100%;
  max-height: 470px;
  aspect-ratio: 1.25;
  border-radius: 12px;
  background: #f3f6fa;
  object-fit: contain;
}

.product-detail-photo.product-image-placeholder {
  min-height: 300px;
  max-height: 470px;
  aspect-ratio: 1.25;
}

.product-detail-photo.product-image-placeholder strong {
  font-size: 74px;
}

.product-detail-copy .eyebrow {
  margin-bottom: 10px;
}

.product-detail-copy h1 {
  margin: 0 0 18px;
  font: 700 clamp(30px, 4vw, 44px)/1.2 Manrope, sans-serif;
}

.product-detail-copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.85;
}

.product-contact-link,
.datasheet-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 11px 15px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.datasheet-download {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.product-contact-link:hover,
.datasheet-download:hover {
  background: var(--blue);
}

.product-datasheet {
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.product-datasheet h2 {
  margin: 0 0 18px;
  font: 700 24px/1.3 Manrope, sans-serif;
}

.datasheet-viewer {
  display: block;
  width: 100%;
  max-width: 900px;
  height: min(90vh, 1100px);
  min-height: 700px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6fa;
}

.datasheet-empty {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.datasheet-viewer.datasheet-empty {
  min-height: 520px;
}

.datasheet-download:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

body.datasheet-modal-open {
  overflow: hidden;
}

.datasheet-request-modal[hidden],
.datasheet-request-modal [hidden] {
  display: none !important;
}

.datasheet-request-modal {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.datasheet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 36, .7);
  backdrop-filter: blur(7px);
  animation: datasheet-fade-in .18s ease-out both;
}

.datasheet-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 700px);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 34px 38px 30px;
  border: 1px solid rgba(218, 228, 240, .9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(5, 16, 33, .3);
  animation: datasheet-dialog-in .24s cubic-bezier(.2, .75, .25, 1) both;
}

.datasheet-modal-close {
  position: absolute;
  top: 17px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #53657e;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.datasheet-modal-close:hover {
  background: #e5edf6;
  color: var(--navy);
}

.datasheet-modal-panel .eyebrow {
  margin: 2px 44px 8px 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.datasheet-modal-panel h2 {
  margin: 0;
  color: var(--navy);
  font: 800 clamp(25px, 4vw, 32px)/1.2 Manrope, sans-serif;
}

.datasheet-modal-intro {
  max-width: 560px;
  margin: 11px 0 23px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.datasheet-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 16px;
}

.datasheet-form-field {
  display: grid;
  gap: 7px;
  color: #3d4f69;
  font-size: 12px;
  font-weight: 700;
}

.datasheet-form-field-wide {
  grid-column: 1 / -1;
}

.datasheet-form-field input,
.datasheet-form-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d7e0eb;
  border-radius: 9px;
  background: #fff;
  color: #15243b;
  font: 500 14px/1.4 "DM Sans", sans-serif;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.datasheet-form-field input:focus,
.datasheet-form-field select:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(36, 117, 210, .13);
}

.datasheet-form-field input::placeholder {
  color: #9aa8ba;
}

.datasheet-form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.datasheet-form-message {
  margin: 14px 0 0;
  padding: 11px 13px;
  border: 1px solid #f2c7c7;
  border-radius: 9px;
  background: #fff4f4;
  color: #a52828;
  font-size: 13px;
  line-height: 1.5;
}

.datasheet-submit {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 13px 17px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font: 700 14px/1.3 "DM Sans", sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.datasheet-submit:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.datasheet-submit:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.datasheet-form-privacy {
  margin: 12px 0 0;
  color: #8190a5;
  font-size: 11px;
  line-height: 1.6;
}

.datasheet-success {
  padding: 14px 4px 7px;
  text-align: center;
}

.datasheet-success .eyebrow {
  margin: 20px 0 8px;
}

.datasheet-success-mark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: #e9f9ef;
  box-shadow: 0 0 0 9px #f4fcf6;
  animation: datasheet-success-pop .45s cubic-bezier(.2, .8, .2, 1) both;
}

.datasheet-success-mark svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: #1a9c55;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.datasheet-success-mark path {
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: datasheet-check-draw .42s .2s ease-out forwards;
}

.datasheet-success h2 {
  margin: 0 auto;
}

.datasheet-success > p:not(.eyebrow) {
  max-width: 490px;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.datasheet-success-download {
  box-sizing: border-box;
  max-width: 330px;
  justify-content: center;
  margin: 22px auto 0;
}

.datasheet-success-done {
  display: block;
  margin: 14px auto 0;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: #64748b;
  font: 600 13px "DM Sans", sans-serif;
  cursor: pointer;
}

.datasheet-success-done:hover {
  color: var(--navy);
}

@keyframes datasheet-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes datasheet-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes datasheet-success-pop {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes datasheet-check-draw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 600px) {
  .datasheet-request-modal { padding: 12px; }
  .datasheet-modal-panel { max-height: 94vh; padding: 28px 20px 24px; border-radius: 17px; }
  .datasheet-form-grid { grid-template-columns: 1fr; gap: 12px; }
  .datasheet-form-field-wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .datasheet-modal-backdrop,
  .datasheet-modal-panel,
  .datasheet-success-mark,
  .datasheet-success-mark path { animation-duration: 1ms !important; }
}

@media (max-width: 700px) {
  .product-detail {
    padding-top: 28px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .family-detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .family-spec-list {
    grid-template-columns: 1fr;
  }

  .product-detail-photo {
    aspect-ratio: 1.4;
  }

  .product-datasheet {
    margin-top: 44px;
  }

  .datasheet-viewer {
    height: 78vh;
    min-height: 520px;
  }

  .product-photo {
    height: 175px;
  }
}
