/* Ribbonoem reusable product-detail template */
body.rpd-product-body {
  --rpd-navy: var(--color-primary, #293c82);
  --rpd-navy-deep: var(--color-primary-strong, #1e2d63);
  --rpd-rose: var(--color-accent, #cc9591);
  --rpd-rose-deep: #b67f7a;
  --rpd-ink: #20294a;
  --rpd-muted: #66708d;
  --rpd-line: #e4e7ef;
  --rpd-soft: #f5f7fb;
  --rpd-paper: #fcfbfe;
  --rpd-white: #fefeff;
  --rpd-success: #26735b;
}

.rpd-page,
.rpd-page *,
.rpd-page *::before,
.rpd-page *::after {
  box-sizing: border-box;
}

.rpd-page {
  color: var(--rpd-ink);
  background: var(--rpd-paper);
  font-family: var(--font-body, 'Roboto', sans-serif);
  -webkit-font-smoothing: antialiased;
}

.rpd-page button,
.rpd-page input,
.rpd-page textarea {
  font: inherit;
}

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

.rpd-page a {
  color: inherit;
}

.rpd-page :focus-visible {
  outline: 3px solid rgba(204, 149, 145, .58);
  outline-offset: 3px;
}

.rpd-page .rpd-shell {
  width: min(calc(100% - 40px), 1240px);
  margin-inline: auto;
}

body.refit-chrome .entry-content .rpd-page p,
body.refit-chrome .entry-content .rpd-page ul,
body.refit-chrome .entry-content .rpd-page ol {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.rpd-breadcrumb-band {
  padding-top: 92px;
  background: linear-gradient(120deg, var(--rpd-navy-deep), var(--rpd-navy));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.rpd-breadcrumb {
  min-height: 54px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, .74);
  font-size: 12px;
}

.rpd-breadcrumb a {
  text-decoration: none;
}

.rpd-breadcrumb a:hover {
  color: var(--rpd-white);
}

.rpd-breadcrumb__sep {
  color: rgba(255, 255, 255, .42);
}

.rpd-breadcrumb [aria-current='page'] {
  color: var(--rpd-white);
  font-weight: 700;
}

.rpd-product {
  padding: clamp(34px, 5vw, 64px) 0 clamp(58px, 7vw, 90px);
  background: var(--rpd-white);
}

.rpd-title {
  max-width: 960px;
  margin: 0 0 clamp(30px, 4vw, 48px);
  color: var(--rpd-navy-deep);
  font-family: var(--font-heading, 'Roboto', sans-serif);
  font-size: clamp(2rem, 4.1vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.rpd-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(360px, .82fr);
  gap: clamp(38px, 6vw, 76px);
  align-items: start;
}

.rpd-gallery {
  min-width: 0;
}

.rpd-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: var(--rpd-soft);
  border: 1px solid var(--rpd-line);
  border-radius: 0;
  cursor: zoom-in;
}

.rpd-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease, transform 600ms cubic-bezier(.2, .8, .2, 1);
}

.rpd-gallery__main:hover img {
  transform: scale(1.018);
}

.rpd-gallery__zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  background: rgba(254, 254, 255, .92);
  border: 1px solid rgba(41, 60, 130, .14);
  color: var(--rpd-navy);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.rpd-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.rpd-gallery__thumb {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rpd-line);
  border-radius: 0;
  background: var(--rpd-soft);
  cursor: pointer;
}

.rpd-gallery__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
}

.rpd-gallery__thumb[aria-current='true']::after {
  border-color: var(--rpd-navy);
}

.rpd-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rpd-inquiry {
  border-top: 4px solid var(--rpd-navy);
  background: #f7f8fc;
  padding: clamp(24px, 3vw, 34px);
}

.rpd-inquiry__head {
  margin-bottom: 24px;
}

.rpd-inquiry__head h2 {
  margin: 0 0 7px;
  color: var(--rpd-navy-deep);
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  letter-spacing: -.02em;
}

body.refit-chrome .entry-content .rpd-inquiry__head p {
  margin: 0;
  color: var(--rpd-muted);
  font-size: 14px;
  line-height: 1.6;
}

.rpd-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.rpd-contact-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--rpd-navy);
  background: var(--rpd-white);
  border: 1px solid #cfd4e2;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.rpd-contact-actions a:hover {
  border-color: var(--rpd-navy);
}

.rpd-form {
  display: grid;
  gap: 14px;
}

.rpd-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rpd-field {
  display: grid;
  gap: 6px;
}

.rpd-field label {
  color: var(--rpd-navy-deep);
  font-size: 12px;
  font-weight: 700;
}

.rpd-field input,
.rpd-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd4e2;
  border-radius: 0;
  background: var(--rpd-white);
  color: var(--rpd-ink);
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rpd-field textarea {
  min-height: 100px;
  resize: vertical;
}

.rpd-field input:focus,
.rpd-field textarea:focus {
  outline: 0;
  border-color: var(--rpd-navy);
  box-shadow: 0 0 0 3px rgba(41, 60, 130, .11);
}

.rpd-field input::placeholder,
.rpd-field textarea::placeholder {
  color: #969db0;
}

.rpd-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  color: var(--rpd-muted);
  font-size: 11px;
  line-height: 1.5;
}

.rpd-consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--rpd-navy);
}

.rpd-consent a {
  color: var(--rpd-navy);
}

.rpd-submit {
  min-height: 50px;
  border: 1px solid var(--rpd-rose);
  border-radius: 0;
  background: var(--rpd-rose);
  color: var(--rpd-white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.rpd-submit:hover,
.rpd-submit:focus {
  background: var(--rpd-rose-deep);
  transform: translateY(-1px);
}

.rpd-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

body.refit-chrome .entry-content .rpd-form-status {
  min-height: 20px;
  margin: 0;
  color: var(--rpd-success);
  font-size: 12px;
  font-weight: 700;
}

.rpd-form-status[data-status='error'] {
  color: #a63c49 !important;
}

.rpd-details {
  padding: clamp(60px, 8vw, 100px) 0;
}

.rpd-tabs {
  border: 1px solid var(--rpd-line);
  background: var(--rpd-white);
}

.rpd-tabs__nav {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--rpd-line);
  scrollbar-width: thin;
}

.rpd-tabs__tab {
  position: relative;
  flex: 1 0 auto;
  min-width: 150px;
  min-height: 62px;
  padding: 0 20px;
  border: 0;
  border-right: 1px solid var(--rpd-line);
  border-radius: 0;
  background: #f8f9fc;
  color: var(--rpd-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}

.rpd-tabs__tab:last-child {
  border-right: 0;
}

.rpd-tabs__tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: transparent;
}

.rpd-tabs__tab[aria-selected='true'] {
  background: var(--rpd-white);
  color: var(--rpd-navy);
}

.rpd-tabs__tab[aria-selected='true']::after {
  background: var(--rpd-rose);
}

.rpd-tabs__panel {
  padding: clamp(30px, 5vw, 64px);
}

.rpd-tabs__panel[hidden] {
  display: none;
}

.rpd-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: clamp(30px, 6vw, 78px);
}

.rpd-copy h2 {
  margin: 0 0 20px;
  color: var(--rpd-navy-deep);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -.025em;
  line-height: 1.18;
}

body.refit-chrome .entry-content .rpd-copy p {
  max-width: 72ch;
  margin: 0 0 16px;
  color: #4f5874;
  font-size: 15px;
  line-height: 1.82;
}

.rpd-highlight-list {
  border-top: 1px solid var(--rpd-line);
}

.rpd-highlight {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rpd-line);
}

.rpd-highlight__mark {
  color: var(--rpd-rose-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.rpd-highlight h3 {
  margin: 0 0 5px;
  color: var(--rpd-navy-deep);
  font-size: 15px;
}

body.refit-chrome .entry-content .rpd-highlight p {
  margin: 0;
  color: var(--rpd-muted);
  font-size: 13px;
  line-height: 1.6;
}

.rpd-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rpd-specs caption {
  margin-bottom: 18px;
  text-align: left;
  color: var(--rpd-navy-deep);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
}

.rpd-specs th,
.rpd-specs td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--rpd-line);
  text-align: left;
  vertical-align: top;
}

.rpd-specs th {
  width: 34%;
  color: var(--rpd-navy);
  background: #f7f8fc;
  font-weight: 800;
}

.rpd-specs td {
  color: #4f5874;
}

.rpd-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}

.rpd-option {
  padding: 22px 0;
  border-bottom: 1px solid var(--rpd-line);
}

.rpd-option h3 {
  margin: 0 0 8px;
  color: var(--rpd-navy-deep);
  font-size: 16px;
}

body.refit-chrome .entry-content .rpd-option p {
  margin: 0;
  color: var(--rpd-muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.rpd-application {
  min-width: 0;
  border-top: 3px solid var(--rpd-rose);
  padding-top: 20px;
}

.rpd-application h3 {
  margin: 0 0 10px;
  color: var(--rpd-navy-deep);
  font-size: 18px;
}

body.refit-chrome .entry-content .rpd-application p {
  margin: 0;
  color: var(--rpd-muted);
  font-size: 14px;
  line-height: 1.7;
}

.rpd-faq details {
  border-bottom: 1px solid var(--rpd-line);
}

.rpd-faq summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--rpd-navy-deep);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.rpd-faq summary::-webkit-details-marker {
  display: none;
}

.rpd-faq summary::after {
  content: '+';
  color: var(--rpd-rose-deep);
  font-size: 24px;
  font-weight: 400;
}

.rpd-faq details[open] summary::after {
  content: '−';
}

body.refit-chrome .entry-content .rpd-faq p {
  margin: -2px 0 22px;
  max-width: 78ch;
  color: var(--rpd-muted);
  font-size: 14px;
  line-height: 1.72;
}

.rpd-related {
  padding: clamp(58px, 8vw, 96px) 0;
  background: #eef1f7;
}

.rpd-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.rpd-section-head h2 {
  margin: 0;
  color: var(--rpd-navy-deep);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.rpd-section-head a {
  color: var(--rpd-navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration-color: var(--rpd-rose);
  text-underline-offset: 5px;
}

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

.rpd-related-card {
  display: block;
  background: var(--rpd-white);
  text-decoration: none;
}

.rpd-related-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ebf2;
}

.rpd-related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2, .8, .2, 1);
}

.rpd-related-card:hover img {
  transform: scale(1.04);
}

.rpd-related-card__body {
  display: block;
  padding: 20px 20px 22px;
}

.rpd-related-card__body > span {
  display: block;
  margin-bottom: 7px;
  color: var(--rpd-rose-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.rpd-related-card__body h3 {
  margin: 0;
  color: var(--rpd-navy-deep);
  font-size: 16px;
  line-height: 1.4;
}

.rpd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  place-items: center;
  padding: 30px;
  background: rgba(19, 29, 63, .94);
}

.rpd-lightbox[data-open='true'] {
  display: grid;
}

.rpd-lightbox img {
  max-width: min(1120px, 92vw);
  max-height: 88vh;
  object-fit: contain;
}

.rpd-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 0;
  background: transparent;
  color: var(--rpd-white);
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 920px) {
  .rpd-product__grid,
  .rpd-copy-grid {
    grid-template-columns: 1fr;
  }

  .rpd-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rpd-breadcrumb-band {
    padding-top: 76px;
  }

  .rpd-page .rpd-shell {
    width: min(calc(100% - 32px), 1240px);
  }

  .rpd-breadcrumb {
    min-height: 48px;
  }

  .rpd-title {
    font-size: 1.82rem;
  }

  .rpd-gallery__thumbs {
    gap: 7px;
  }

  .rpd-inquiry {
    padding: 22px 18px;
  }

  .rpd-contact-actions,
  .rpd-form__row,
  .rpd-options,
  .rpd-applications,
  .rpd-related__grid {
    grid-template-columns: 1fr;
  }

  .rpd-tabs {
    margin-inline: -16px;
    border-left: 0;
    border-right: 0;
  }

  .rpd-tabs__tab {
    min-width: 138px;
    min-height: 56px;
    padding-inline: 16px;
  }

  .rpd-tabs__panel {
    padding: 30px 18px 38px;
  }

  .rpd-specs {
    font-size: 13px;
  }

  .rpd-specs th,
  .rpd-specs td {
    display: block;
    width: 100%;
    padding: 12px 14px;
  }

  .rpd-specs td {
    padding-top: 8px;
  }

  .rpd-section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rpd-page *,
  .rpd-page *::before,
  .rpd-page *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
