.sbx-page #product-content .sbx-config-stage {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  margin-inline: auto;
  scroll-margin-top: 104px;
}

.sbx-page #product-content .sbx-config-stage #sbx-config-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.sbx-config-black-finish {
  filter: grayscale(1);
}

.sbx-config-brand-stage {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  border-radius: 10px;
  background: #f7f5f0;
}

.sbx-page #product-content #sbx-brand-back {
  display: block;
  margin: 4px auto 0;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #913722;
  font: 600 13px/1.45 Poppins, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.sbx-page #product-content .sbx-divider-listing-intro {
  padding-block: clamp(32px, 4vw, 56px);
  background: #fff;
  border-bottom: 1px solid #e6dfd4;
}

.sbx-page #product-content .sbx-divider-listing-intro h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.sbx-page #product-content .sbx-divider-listing-intro p {
  margin-top: 12px;
  color: #625f56;
}

.sbx-page #product-content #sbx-cart-customization-link {
  display: table;
  margin-top: 18px;
}

/* Crop x=233–669 and y=650–855 in the original 900px square.
   Keep the render and its two aligned overlays together. */
.sbx-brand-crop {
  position: relative;
  aspect-ratio: 436 / 205;
  overflow: hidden;
  border-radius: 8px;
}

.sbx-page #product-content .sbx-brand-enlarge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: start;
  justify-content: end;
  padding: 6px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #2f372b;
  cursor: zoom-in;
}

.sbx-brand-enlarge svg {
  width: 25px;
  height: 25px;
  padding: 4px;
  border: 1px solid #ded7cb;
  border-radius: 50%;
  background: #fff;
}

.sbx-brand-enlarge:hover,
.sbx-brand-enlarge[aria-pressed="true"],
.sbx-brand-enlarge:focus-visible {
  outline: 2px solid #913722;
  outline-offset: -2px;
}

.sbx-brand-preview {
  position: relative;
  width: calc(900 / 436 * 100%);
  aspect-ratio: 1;
  transform: translate(calc(-233 / 900 * 100%), calc(-650 / 900 * 100%));
}

.sbx-brand-preview > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Coordinates match the shared 900 × 900 straight-on manufacturer renders. */
.sbx-brand-finish-patch {
  position: absolute;
  inset: 81.111% 38.667% 10% 38.889%;
  background: linear-gradient(168deg, var(--sbx-face-top), var(--sbx-face-bottom));
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 97%, transparent),
    linear-gradient(transparent, #000 7.5%, #000 92.5%, transparent);
  mask-composite: intersect;
}

.sbx-brand-preview[data-sbx-brand-view="evergreen"] {
  --sbx-face-top: #27352d;
  --sbx-face-bottom: #233229;
}

.sbx-brand-preview[data-sbx-brand-view="white"] {
  --sbx-face-top: #ece9e8;
  --sbx-face-bottom: #e9e7e6;
}

.sbx-brand-preview .sbx-brand-print {
  position: absolute;
  top: 81.667%;
  left: 38%;
  width: 24.222%;
  height: auto;
}

.sbx-page #product-content .sbx-brand-examples {
  width: min(100%, 480px);
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid #e6dfd4;
  scroll-margin-top: 104px;
}

.sbx-page #product-content .sbx-brand-examples h4 {
  color: #333c2f;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.sbx-brand-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  margin-top: 12px;
}

.sbx-page #product-content .sbx-brand-pair figcaption {
  display: grid;
  gap: 2px;
  margin-top: 7px;
  padding-inline: 2px;
  color: #625f56;
  font-size: 12px;
  line-height: 1.45;
}

.sbx-brand-pair figcaption strong {
  color: #333c2f;
}


@media (max-width: 900px) {
  .sbx-page #product-content .sbx-brand-examples {
    max-width: 380px;
  }
}
