/* Product identity photographs: a bounded stage, never stretched to the text column. */
body.product-detail-page.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
  .product-page-hero
  .product-specimen {
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 18px;
  background: #f5f6f7;
  background-image: none;
  background-size: auto;
  border-radius: 14px;
  border: 1px solid #e1e3e6;
  overflow: hidden;
}
body.product-detail-page .product-specimen .specimen-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px;
  width: 100%;
  overflow: hidden;
  margin: 14px 0;
  background: #f5f6f7;
  border-radius: 8px;
}
body.product-detail-page.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
  .product-page-hero
  .product-specimen
  .specimen-viewport
  img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  mix-blend-mode: normal;
  padding: 0;
  transform: scale(1.2);
  transform-origin: center;
  cursor: zoom-in;
  filter: drop-shadow(0 12px 10px #18202b16);
}
body.product-detail-page.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
  .product-page-hero
  .product-specimen.is-rebar
  .specimen-viewport
  img {
  transform: scale(3.2);
}
body.product-detail-page.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
  .product-page-hero
  .product-specimen.is-full-view
  .specimen-viewport
  img {
  transform: scale(0.96);
}
body.product-detail-page .specimen-view-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
body.product-detail-page .specimen-view-controls button {
  min-height: 40px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  border: 1px solid #d8dce0;
  background: #fff;
  color: #555;
  border-radius: 6px;
  cursor: pointer;
}
body.product-detail-page .specimen-view-controls button[aria-pressed='true'] {
  background: #25282d;
  border-color: #25282d;
  color: #fff;
}
body.product-detail-page .specimen-view-controls button:focus-visible {
  outline: 2px solid #d71932;
  outline-offset: 3px;
}
body.product-detail-page .specimen-view-controls span {
  font-size: 10px;
  color: #70757c;
  line-height: 1.8;
}
body.product-detail-page .product-specimen figcaption {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #dce0e4;
}
@media (max-width: 650px) {
  body.product-detail-page .product-specimen .specimen-viewport {
    height: 250px;
  }
  body.product-detail-page.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
    .product-page-hero
    .product-specimen {
    padding: 14px;
  }
  body.product-detail-page .specimen-view-controls span {
    flex-basis: 100%;
  }
}
/* Photographs carry their own light and shadow; never add a second shadow. */
body.product-detail-page.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
  .product-page-hero
  .product-specimen.has-photo-gallery
  .specimen-viewport {
  height: auto;
  aspect-ratio: 3/2;
  background: #e9e7e3;
}
body.product-detail-page.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
  .product-page-hero
  .product-specimen.has-photo-gallery
  .specimen-viewport
  img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  filter: none;
  mix-blend-mode: normal;
}
.product-photo-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.product-photo-thumbs button {
  min-width: 0;
  padding: 4px 4px 7px;
  border: 1px solid #d9dcdf;
  border-radius: 8px;
  background: #fff;
  color: #575b60;
  font: inherit;
  font-size: 11px;
  line-height: 1.8;
  cursor: pointer;
}
.product-photo-thumbs button img {
  display: block;
  width: 100%;
  height: 64px;
  object-fit: contain;
  border-radius: 5px;
  background: #eeece8;
}
body.product-detail-page.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
  .product-page-hero
  .product-specimen
  .product-photo-thumbs
  button
  img {
  width: 100%;
  height: 64px;
  max-height: 64px;
  object-fit: contain;
  padding: 0;
  transform: none;
  filter: none;
  mix-blend-mode: normal;
  cursor: pointer;
}
.product-photo-thumbs button span {
  display: block;
  margin-top: 4px;
}
.product-photo-thumbs button[aria-pressed='true'] {
  border-color: #bd1531;
  box-shadow: 0 0 0 1px #bd1531;
  color: #a30f28;
}
.product-photo-thumbs button:focus-visible {
  outline: 2px solid #bd1531;
  outline-offset: 3px;
}
body.product-detail-page .product-specimen .product-photo-caption {
  font-size: 11px;
  line-height: 1.9;
  color: #73767b;
  margin: 12px 0 4px;
  min-height: 42px;
}
.product-photo-hint {
  display: block;
  color: #777;
  font-size: 10px;
  margin-bottom: 12px;
}
@media (max-width: 400px) {
  .product-photo-thumbs {
    gap: 5px;
  }
  .product-photo-thumbs button {
    font-size: 10px;
  }
  .product-photo-thumbs button img {
    height: 50px;
  }
}
body.product-detail-page.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
  .product-page-hero
  .product-specimen.has-photo-gallery
  .specimen-viewport.is-sample-detail
  img {
  transform: scale(2.8);
  filter: drop-shadow(0 2px 1px #1b202422);
}
body.product-detail-page.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
  .product-page-hero
  .product-specimen.has-photo-gallery
  .specimen-viewport.is-cover-photo
  img {
  object-fit: cover;
}
.product-visual-switch {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: #e9ebed;
  border-radius: 9px;
  margin-bottom: 16px;
}
.product-visual-switch button {
  flex: 1;
  border: 0;
  border-radius: 6px;
  min-height: 42px;
  font: inherit;
  font-size: 12px;
  color: #67717a;
  background: transparent;
  cursor: pointer;
}
.product-visual-switch button[aria-pressed='true'] {
  background: #fff;
  color: #a5142b;
  box-shadow: 0 2px 7px #17253812;
}
.product-photo-panel[hidden],
.product-model-panel[hidden] {
  display: none !important;
}
.product-model-stage {
  position: relative;
  aspect-ratio: 3/2;
  width: 100%;
  margin: 14px 0 8px;
  border-radius: 9px;
  overflow: hidden;
  background: #f3f5f6;
  border: 1px solid #dfe4e8;
}
.product-model-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  outline-offset: -4px;
}
.product-model-stage canvas:active {
  cursor: grabbing;
}
.product-model-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #7a8793;
  font:
    10px/1.4 Arial,
    sans-serif;
  letter-spacing: 1.5px;
  pointer-events: none;
}
.product-model-dimensions {
  text-align: center;
  font:
    600 12px/1.8 Arial,
    sans-serif;
  color: #354656;
  margin: 8px 0 12px;
}
.product-model-controls,
.product-model-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.product-model-controls button,
.product-model-variants button {
  flex: 1;
  min-height: 38px;
  min-width: 60px;
  padding: 6px 9px;
  border: 1px solid #d8dee3;
  border-radius: 6px;
  background: #fff;
  color: #5a6976;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.product-model-controls button[aria-pressed='true'],
.product-model-variants button[aria-pressed='true'] {
  border-color: #52697c;
  background: #e8eef3;
  color: #293e50;
}
.product-model-status,
.product-model-note {
  font-size: 11px;
  line-height: 1.9;
  color: #75808a;
  margin: 12px 0;
}
.product-model-note {
  border-top: 1px solid #dfe4e8;
  padding-top: 10px;
}
.product-visual-switch button:focus-visible,
.product-model-controls button:focus-visible,
.product-model-variants button:focus-visible {
  outline: 2px solid #b41931;
  outline-offset: 2px;
}
@media (min-width: 651px) {
  .product-photo-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .product-photo-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-model-dimensions {
    font-size: 10px;
  }
  .product-model-controls button {
    font-size: 10px;
    min-width: 48px;
  }
}
.product-configurator {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dce2e6;
}
.model-config-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #344656;
  margin-bottom: 10px;
}
.model-config-heading small {
  color: #86919a;
  font-size: 10px;
  font-weight: 400;
}
body.product-detail-page .product-configurator .model-dimension-field {
  display: grid;
  grid-template-columns: 108px minmax(70px, 1fr) 68px;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 0;
  font-size: 11px;
  color: #455867;
}
.model-dimension-field > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.7;
}
.model-dimension-field small {
  font:
    10px/1.5 Arial,
    sans-serif;
  direction: ltr;
  text-align: right;
  color: #85919a;
}
body.product-detail-page .product-configurator input[type='range'] {
  width: 100%;
  min-width: 0;
  accent-color: #b31630;
  cursor: pointer;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  direction: ltr;
}
body.product-detail-page .product-configurator :is(input[type='number'], select) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 37px;
  padding: 6px 8px;
  border: 1px solid #d3dce3;
  border-radius: 6px;
  background: #fff;
  color: #354859;
  font: 12px/1.5 inherit;
}
.product-configurator input[type='number'] {
  direction: ltr;
  text-align: center;
}
.model-config-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 10px 0;
}
.model-config-selects label,
.model-slot-select,
.model-order-summary label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #61717e;
  font-size: 11px;
  line-height: 1.8;
}
.model-punch-enable {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #354859;
  cursor: pointer;
}
.model-punch-enable input {
  width: 17px;
  height: 17px;
  accent-color: #b31630;
}
.model-punch-settings {
  padding: 12px;
  background: #edf1f4;
  border: 1px solid #dce3e8;
  border-radius: 9px;
}
.model-punch-settings[hidden] {
  display: none !important;
}
.model-punch-patterns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.model-punch-patterns button {
  min-height: 37px;
  border: 1px solid #d1dbe2;
  background: #fff;
  border-radius: 6px;
  color: #657583;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.model-punch-patterns button[aria-pressed='true'] {
  background: #fff1f3;
  border-color: #c01b36;
  color: #a7142c;
  box-shadow: 0 0 0 1px #c01b3618;
}
.model-config-hint,
.model-config-validation {
  font-size: 10px;
  line-height: 1.9;
  color: #7d8790;
  margin: 8px 0 0;
}
.model-order-summary {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}
.model-order-summary output {
  direction: ltr;
  text-align: left;
  font:
    11px/1.8 Arial,
    sans-serif;
  color: #52697a;
  padding-bottom: 8px;
}
.model-config-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.model-config-actions a,
.model-config-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 11px;
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d5dde3;
  color: #546a7b;
}
.model-config-actions a {
  flex: 1;
  background: #243e51;
  color: #fff;
  border-color: #243e51;
  min-width: 140px;
}
.model-config-actions a[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
}
.product-projection-controls {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}
.product-projection-controls button {
  border: 1px solid #d9e1e7;
  border-radius: 5px;
  padding: 5px 10px;
  background: #fff;
  color: #85929d;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.product-projection-controls button[aria-pressed='true'] {
  background: #e7edf2;
  border-color: #8b9ba8;
  color: #334c60;
}
.product-configurator :is(button, input, select):focus-visible,
.product-projection-controls button:focus-visible {
  outline: 2px solid #b31630;
  outline-offset: 2px;
}
@media (max-width: 400px) {
  body.product-detail-page .product-configurator .model-dimension-field {
    grid-template-columns: 87px minmax(45px, 1fr) 57px;
    gap: 5px;
  }
  .model-order-summary {
    grid-template-columns: 95px 1fr;
  }
  .model-order-summary output {
    font-size: 10px;
  }
}
.model-punch-surface {
  margin-bottom: 10px;
}
.model-punch-patterns button small {
  display: block;
  font:
    9px/1.7 Arial,
    sans-serif;
  color: #8c98a1;
}
.model-fixed-punch {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  line-height: 1.8;
  color: #75828c;
}
.model-fixed-punch output {
  padding: 7px 9px;
  background: #fff;
  border: 1px solid #dce3e8;
  border-radius: 6px;
  color: #354859;
  font-size: 12px;
  font-weight: 600;
}
@media (min-width: 901px) {
  body.product-detail-page .product-page-hero .product-identity {
    align-self: start;
    position: sticky;
    top: 118px;
  }
}
/* Technical viewer: large specimen, cut-face accent, live front-section inset. */
body.product-detail-page .product-model-stage {
  aspect-ratio: auto;
  height: 390px;
  background: #f3f5f6;
}
.model-view-tools {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.model-view-tools button {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #ccd6de;
  border-radius: 6px;
  background: #fff;
  color: #344f62;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.model-view-tools button[aria-pressed='true'] {
  border-color: #9baebc;
  background: #e7edf2;
}
.model-view-tools button:focus-visible {
  outline: 2px solid #b31630;
  outline-offset: 2px;
}
.model-section-label {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: min(29%, 150px);
  text-align: center;
  font-size: 10px;
  color: #6b7c8b;
  pointer-events: none;
}
body.model-expanded {
  overflow: hidden;
}
body.product-detail-page .product-model-panel.is-expanded {
  position: fixed;
  inset: 16px;
  z-index: 2000;
  overflow: auto;
  background: #f6f8fa;
  border: 1px solid #d0d9e1;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 0 0 30px #172b3ee0;
}
body.product-detail-page .product-model-panel.is-expanded .product-model-stage {
  height: min(65vh, 720px);
}
.product-model-panel.is-expanded .product-configurator {
  max-width: 760px;
  margin: 20px auto;
}
.product-variant-list {
  margin: 28px 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #e0e5e9;
  border-radius: 12px;
}
.product-variant-list h2 {
  font-size: 19px;
  margin: 0 0 18px;
  color: #334958;
}
.variant-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.variant-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f5f7f8;
  border: 1px solid #e1e6ea;
  border-radius: 7px;
  color: #344a5c;
  font-size: 12px;
  line-height: 1.8;
  text-decoration: none;
}
.variant-links a:hover {
  border-color: #bb2941;
  color: #a5142c;
}
@media (max-width: 650px) {
  body.product-detail-page .product-model-stage {
    height: 340px;
  }
  body.product-detail-page .product-model-panel.is-expanded .product-model-stage {
    height: min(52vh, 400px);
  }
  .variant-links {
    grid-template-columns: 1fr;
  }
  body.product-detail-page .product-model-panel.is-expanded {
    inset: 5px;
    padding: 12px;
  }
  .model-view-tools button {
    flex: 1 1 auto;
  }
  .product-variant-list {
    padding: 16px;
  }
}
.product-selection {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #dce3e8;
  border-radius: 12px;
  background: #f8fafb;
  scroll-margin-top: 100px;
}
.product-selection h2 {
  font-size: 17px;
  margin: 0 0 14px;
  color: #344c5e;
}
body.product-detail-page .product-page .product-selection h2 {
  font-size: 19px;
  line-height: 1.7;
}
.product-model-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.product-model-choices[hidden],
.product-photo-thumbs[hidden] {
  display: none !important;
}
body.product-detail-page .product-selection-fields :is(input, select) {
  box-sizing: border-box;
  font-size: 14px;
}
body.product-detail-page .product-selection-actions button {
  min-height: 44px;
}
body.product-detail-page .product-photo-thumbs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}
body.product-detail-page .product-photo-thumbs button {
  flex: 0 0 calc((100% - 24px) / 3);
  scroll-snap-align: start;
}
@media (max-width: 650px) {
  body.product-detail-page.afa-card-ui.afa-pack-ui.afa-background-page.afa-ordered-layout
    .product-identity
    > .product-specimen {
    width: 100%;
    box-sizing: border-box;
    margin: 18px 0;
  }
  .product-identity .product-selection {
    margin-top: 16px;
  }
  body.product-detail-page .product-selection-fields :is(input, select) {
    font-size: 16px;
  }
  body.product-detail-page .product-page-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }
  body.product-detail-page .product-page-actions :is(button, a) {
    padding: 10px;
    font-size: 12px;
    gap: 8px;
  }
}
.product-model-choices button {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
  padding: 10px;
  border: 1px solid #d4dde4;
  border-radius: 8px;
  background: #fff;
  color: #526b7d;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.product-model-choices button svg {
  width: 64px;
  height: 48px;
}
.product-model-choices button[aria-pressed='true'] {
  border-color: #b51a34;
  background: #fff2f4;
  color: #a91730;
  box-shadow: 0 0 0 1px #b51a3418;
}
.product-selection-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.product-selection-fields label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  line-height: 1.8;
  color: #667b8b;
  min-width: 0;
}
.product-selection-fields input,
.product-selection-fields select {
  min-width: 0;
  width: 100%;
  min-height: 43px;
  padding: 8px;
  border: 1px solid #cfd9e1;
  border-radius: 6px;
  background: #fff;
  color: #344c60;
  font: inherit;
}
.product-selection-fields label[hidden] {
  display: none !important;
}
.product-selection-actions button {
  border: 0;
  background: transparent;
  color: #a61932;
  padding: 12px 0 0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
#productSelectionSummary {
  font-size: 12px;
  line-height: 1.9;
  color: #3b5365;
  margin-bottom: 0;
}
body.has-family-selection .product-key-specs {
  display: none !important;
}
body.has-family-selection .product-size {
  font-size: 14px !important;
  line-height: 2;
}
.product-model-choices button:focus-visible,
.product-selection-fields :focus-visible {
  outline: 2px solid #b51a34;
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .product-selection {
    padding: 14px;
  }
  .product-selection-fields {
    grid-template-columns: 1fr 1fr;
  }
  .product-model-choices button {
    font-size: 11px;
  }
  .product-model-choices button svg {
    width: 52px;
    height: 40px;
  }
}
