.pm-product-shell {
  --pm-blue: var(--ps-blue, #223d90);
  margin: 0 0 30px;
  max-width: 100%;
  color: var(--pm-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

body.single-sage_product {
  background: #fff;
}

body.single-sage_product::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: calc(var(--ps-prime-top, 1.5rem) + 8px);
  background: #fff;
  pointer-events: none;
  z-index: 1110;
}

body.single-sage_product .ps-prime-header {
  --ps-prime-bg: #fff;
  --ps-prime-bg-solid: #fff;
}

@media (min-width: 901px) {
  body.single-sage_product .ps-prime-header::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--ps-prime-top, 1.5rem));
    left: 50%;
    width: 100vw;
    height: calc(var(--ps-prime-top, 1.5rem) + 1px);
    transform: translateX(-50%);
    background: #fff;
    pointer-events: none;
    z-index: 2;
  }

  /* Keep the header panel above the white seam cover. */
  body.single-sage_product .ps-prime-row {
    position: relative;
    z-index: 1;
  }
}

body.single-sage_product .wp-site-blocks,
body.single-sage_product main.wp-block-group.ps-header-safe-top {
  background: #fff;
}

@media (max-width: 900px) {
  body.single-sage_product::before {
    display: none;
  }
}

.pm-product-shell,
.pm-product-shell * {
  box-sizing: border-box;
}

body.single-sage_product :where(
  h1.wp-block-post-title,
  .wp-block-post-title,
  h1.entry-title,
  .entry-title,
  .wp-block-post-author,
  .wp-block-post-date,
  .wp-block-post-terms,
  .wp-block-post-author-name,
  .wp-block-post-author__name,
  .wp-block-post-author__content,
  .wp-block-post-navigation-link,
  .wp-block-post-navigation,
  .post-navigation,
  .wp-block-query,
  .wp-block-query-title,
  .wp-block-query-pagination,
  .wp-block-query-pagination-next,
  .wp-block-query-pagination-previous,
  .wp-block-query-pagination-numbers,
  .wp-block-comments
) {
  display: none !important;
}

.pm-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "gallery summary"
    "gallery details";
  gap: clamp(25px, 3.5vw, 52px);
  align-items: start;
}

.pm-product-layout > * {
  min-width: 0;
}

.pm-product-summary {
  grid-area: summary;
  min-width: 0;
}

.pm-product-gallery {
  grid-area: gallery;
  min-width: 0;
}

.pm-product-details {
  grid-area: details;
  min-width: 0;
}

.pm-product-gallery-main {
  width: 100%;
  margin: 0;
  background: #fff;
}

.pm-product-gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  max-width: 100%;
}

.pm-product-thumbs-wrap {
  margin-top: 10px;
  max-width: 100%;
  overflow: visible;
}

.pm-product-thumbs-track {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0 4px;
}

.pm-product-thumbs-track::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.pm-product-thumb-btn {
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  padding: 0;
  border: 1px solid var(--pm-blue);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.pm-product-thumb-btn[aria-current="true"] {
  border-color: var(--pm-blue);
  box-shadow: inset 0 0 0 2px var(--pm-blue);
}

.pm-product-thumb-btn.is-related {
  border-color: rgb(250 214 7 / 0.95);
  box-shadow: 0 0 0 2px rgb(250 214 7 / 0.5);
}

.pm-product-thumb-btn img {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  object-fit: cover;
}

.pm-product-thumb-controls {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.pm-product-arrow {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--pm-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.pm-product-arrow[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.pm-product-info {
  min-width: 0;
}

.pm-product-title {
  margin: 0;
  color: var(--pm-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: clamp(29px, 3.3vw, 48px);
  line-height: 1.02;
  font-weight: 800;
  text-transform: none !important;
  overflow-wrap: break-word;
}

.pm-product-price {
  margin: 10px 0 0;
  color: var(--pm-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(1.2rem, 1.9vw, 1.65rem);
  font-weight: 700;
  text-transform: none !important;
  overflow-wrap: break-word;
}

.pm-product-item {
  margin: 10px 0 0;
  color: var(--pm-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  text-transform: none !important;
  overflow-wrap: break-word;
}

.pm-product-section {
  margin-top: 30px;
  padding-top: 14px;
  padding-bottom: 8px;
  border-top: 1px solid var(--pm-blue);
}

.pm-product-section-title {
  margin: 0 0 10px;
  color: var(--pm-blue);
  font-family: "Alternate Gothic Extra Cond ATF", "Arial Narrow", "Inter", sans-serif !important;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase !important;
}

.pm-product-description {
  color: var(--pm-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(0.96rem, 1vw, 1.02rem);
  line-height: 1.52;
  text-transform: none !important;
}

.pm-product-description :where(p, ul, ol, li) {
  color: var(--pm-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(0.96rem, 1vw, 1.02rem);
  line-height: 1.52;
  text-transform: none !important;
}

.pm-product-description > :first-child {
  margin-top: 0;
}

.pm-product-description > :last-child {
  margin-bottom: 0;
}

.pm-product-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-product-chip-list.is-collapsible {
  max-height: 88px;
  overflow: hidden;
}

.pm-product-chip-list.is-collapsible.is-expanded {
  max-height: none;
}

.pm-product-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--pm-blue);
  border-radius: 8px;
  background: #fff;
  color: var(--pm-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.pm-product-chip.is-selected {
  border-color: var(--pm-blue);
  background: var(--pm-blue);
  color: #fff;
}

.pm-product-chip.is-representative {
  border-style: dashed;
}

.pm-product-chip:focus-visible {
  outline: 2px solid var(--pm-blue);
  outline-offset: 1px;
}

.pm-product-color-single {
  margin: 0;
  color: var(--pm-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
}

.pm-product-color-status {
  margin: 10px 0 0;
  color: rgb(34 61 144 / 0.78);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  text-transform: none !important;
}

.pm-product-color-status[hidden] {
  display: none !important;
}

.pm-product-more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--pm-blue);
  color: #fff;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.pm-product-more-toggle[hidden] {
  display: none !important;
}

.pm-product-muted {
  margin: 0;
  color: var(--pm-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  opacity: 0.82;
  text-transform: none !important;
}

.pm-product-features-list {
  margin: 0;
  padding-left: 20px;
  color: var(--pm-blue);
  display: grid;
  gap: 6px;
}

.pm-product-features-list li {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.96rem;
  color: var(--pm-blue);
  text-transform: none !important;
}

.pm-product-block {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid rgb(34 61 144 / 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(247 249 255 / 0.96) 0%, rgb(255 255 255 / 1) 100%);
}

.pm-product-block-title {
  margin: 0 0 14px;
  color: var(--pm-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none !important;
}

.pm-product-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.pm-product-table {
  width: 100%;
  border-collapse: collapse;
}

.pm-product-table th,
.pm-product-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgb(34 61 144 / 0.12);
  text-align: left;
  color: var(--pm-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.94rem;
  text-transform: none !important;
}

.pm-product-table th:last-child,
.pm-product-table td:last-child {
  text-align: right;
}

.pm-product-table tbody tr:last-child td {
  border-bottom: none;
}

.pm-product-structured {
  color: var(--pm-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

.pm-structured-dl,
.pm-structured-list {
  margin: 0;
}

.pm-structured-dl {
  display: grid;
  gap: 12px;
}

.pm-structured-row {
  display: grid;
  gap: 4px;
}

.pm-structured-row dt {
  margin: 0;
  color: rgb(34 61 144 / 0.58);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pm-structured-row dd {
  margin: 0;
  color: var(--pm-blue);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pm-structured-list {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.pm-structured-list li {
  color: var(--pm-blue);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pm-structured-empty {
  color: rgb(34 61 144 / 0.56);
}

.pm-trademark {
  font-size: 0.56em;
  line-height: 0;
  vertical-align: super;
}

@media (max-width: 900px) {
  .pm-product-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "gallery"
      "details";
    gap: 18px;
  }

  .pm-product-thumb-btn {
    width: 74px;
    height: 74px;
  }

  .pm-product-title {
    font-size: clamp(30px, 10vw, 44px);
  }
}

@media (min-width: 1200px) {
  .pm-product-layout {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: clamp(32px, 4vw, 64px);
  }

  .pm-product-gallery-main {
    max-width: 760px;
  }

  .pm-product-gallery-main img {
    aspect-ratio: 5 / 4;
    max-height: min(62vh, 640px);
  }
}
