/* Product detail only: uses the site's shared palette and native browser controls. */
.product-page.site-wrap {
  font-family: Arial, sans-serif;
  --pd-gutter: var(--storefront-gutter, clamp(16px, 2.4vw, 32px));
  width: min(var(--storefront-max, 1256px), calc(100% - 2 * var(--pd-gutter)));
  padding: 20px 0 0;
  margin: 0 auto 48px;
}

.product-page .breadcrumbs {
  font-size: 12px;
  gap: 8px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.product-page .pd-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(340px, 0.96fr);
  gap: 24px;
  align-items: start;
  margin: 0;
}

.product-page .pd-detail > * {
  min-width: 0;
}

.product-page .product-details h1 {
  font-size: clamp(22px, 1.65vw, var(--storefront-wide-title-max, 26px));
  line-height: 1.3;
  font-weight: 750;
  margin: 0 0 14px;
}

.product-page .product-key-specs {
  margin: 18px 0 10px;
}

.product-page .product-key-specs h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.product-page .product-key-specs .product-specs > div {
  font-size: 13px;
  padding: 7px 0;
  gap: 12px;
  border-color: #eef0f2;
}

.product-page .product-key-specs .text-link {
  color: var(--action);
  font-size: 13px;
  text-decoration: none;
  min-height: 40px;
  padding: 8px 0;
}

.product-page .product-article {
  color: #777d85;
  font-size: 12px;
  margin: 12px 0 0;
}

.product-page .product-variants {
  margin: 12px 0 20px;
  scroll-margin-top: 190px;
}

.product-page .product-variants h2 {
  font-size: 14px;
  margin: 0;
}

.product-page .variant-note {
  font-size: 12px;
  margin: 4px 0 8px;
}

.product-page .variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}

.product-page .variant-options li {
  min-width: 0;
  list-style: none;
}

.product-page .variant-options a {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
}

.product-page .variant-options a[aria-current='page'] {
  border-color: var(--action);
  padding: 8px 10px;
  background: #fff7f0;
  box-shadow: inset 0 0 0 1px var(--action);
}

.product-page .variant-options strong {
  font-size: 12px;
}

.product-page .variant-options span {
  font-size: 10px;
}

.product-page .pd-gallery {
  position: relative;
  margin: 0;
  min-width: 0;
}

.product-page .product-detail-image {
  aspect-ratio: 1;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  touch-action: pan-y;
}

.pd-image-open {
  width: 100%;
  height: 100%;
  padding: 14px;
  border: 0;
  background: #fff;
  cursor: zoom-in;
  display: grid;
  place-items: center;
}

.product-page .pd-image-open img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.product-page .gallery-arrow {
  top: calc(50% - 22px);
  background: #fffffff2;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid #e7e9ec;
}

.product-page .gallery-count {
  bottom: 10px;
  right: 10px;
  font-size: 11px;
  z-index: 2;
}

.product-page .product-thumbnails {
  max-width: 100%;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 1px 3px;
  margin: 0;
  scrollbar-width: thin;
}

.product-page .product-thumbnails > button {
  width: 78px;
  height: 78px;
  padding: 4px;
  flex: 0 0 78px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.product-page .product-thumbnails > button[aria-pressed='true'] {
  border-color: var(--action);
  box-shadow: inset 0 0 0 1px var(--action);
}

.product-page .product-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-video-entry > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--action);
  font-size: 11px;
}

.pd-video-entry small {
  font-size: 10px;
}

.pd-gallery figcaption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

.pd-hover-zoom {
  pointer-events: none;
  position: absolute;
  left: calc(100% + 20px);
  top: 0;
  width: min(440px, 40vw);
  aspect-ratio: 1;
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: 250%;
  background-position: var(--zoom-x) var(--zoom-y);
  z-index: 40;
  border: 1px solid var(--action);
  border-radius: 12px;
  box-shadow: 0 10px 30px #20242b1f;
}

@media (hover: none), (pointer: coarse), (max-width: 1024px) {
  .pd-hover-zoom {
    display: none;
  }
}

.product-page .pd-purchase {
  position: sticky;
  top: 155px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e7e9ec;
  box-shadow: 0 4px 18px #181c210a;
  background: #fff;
}

.pd-purchase-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.product-page .pd-purchase .product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
  color: var(--action);
  min-width: 0;
}

.pd-purchase .product-price > span {
  overflow-wrap: anywhere;
}

.product-page .pd-purchase .product-price-before {
  font-size: 19px;
  color: #858a91;
  font-weight: 600;
}

.product-page .pd-purchase .product-availability {
  font-size: 14px;
  margin: 10px 0 12px;
  line-height: 1.4;
}

.pd-purchase .availability-dot {
  width: 9px;
  height: 9px;
  box-shadow:
    0 0 0 3px #1f9f5d16,
    0 0 9px #1f9f5d44;
}

.pd-purchase .preorder .availability-dot,
.pd-purchase .unavailable .availability-dot {
  background: #b95d51;
  box-shadow: 0 0 0 3px #b95d5116;
}

.pd-purchase .preorder {
  color: #a55349;
}

.pd-buy-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.pd-buy-row > :first-child {
  flex: 1;
  min-width: 0;
}

.pd-buy-row .save-product {
  position: static;
  flex: 0 0 58px;
}

.pd-buy-row .save-product button {
  width: 58px;
  height: 58px;
  border-radius: 11px;
  border: 1px solid #e9d3b5;
  background: #fff;
  color: var(--action);
}

.pd-buy-row .save-product button[aria-pressed='true'] {
  background: #fff2e8;
}

.pd-buy-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 0;
  border-radius: 9px;
  width: 100%;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 14px;
}

.pd-buy-button.primary-link,
.pd-buy-confirm {
  background: #f26122;
  color: #fff;
  border-radius: 9px;
}

.pd-buy-button svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.pd-in-cart {
  background: #1f9f5d;
  color: #fff;
}

.pd-in-cart:hover {
  background: #18834c;
}

.pd-in-cart > span {
  font-size: 20px;
}

.pd-inline-buy {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 20px;
  gap: 6px;
  align-items: center;
}

.pd-buy-quantity {
  display: grid;
  grid-template-columns: 28px 38px 28px;
  border: 1px solid #d8dade;
  border-radius: 9px;
  overflow: hidden;
}

.pd-buy-quantity button,
.pd-buy-quantity input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  border: 0;
  font: inherit;
  text-align: center;
  font-size: 14px;
}

.pd-buy-quantity button {
  cursor: pointer;
}

.pd-buy-quantity input {
  appearance: textfield;
  border-inline: 1px solid var(--line);
}

.pd-buy-quantity input::-webkit-inner-spin-button {
  appearance: none;
}

.pd-buy-confirm {
  justify-content: center;
  border: 0;
  min-height: 50px;
  padding: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pd-buy-cancel {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: 22px;
}

.pd-buy-row:has(.pd-inline-buy) {
  flex-wrap: wrap;
}

.pd-buy-row:has(.pd-inline-buy) > .pd-inline-buy {
  flex-basis: 100%;
}

.pd-buy-row:has(.pd-inline-buy) > .save-product {
  display: none;
}

.pd-purchase-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 10px 0 0;
}

.pd-mobile-heart {
  display: none;
}

.pd-info-links {
  display: grid;
  border-top: 1px solid #e9ebee;
  margin-top: 20px;
}

.pd-info-links > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid #eef0f2;
  background: none;
  padding: 11px 0;
  min-height: 45px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #555d67;
  cursor: pointer;
  text-align: left;
}

.pd-info-links > button:last-child {
  border-bottom: 0;
}

.pd-info-links > button:hover {
  color: var(--action);
}

.pd-info-links > button > span {
  font-size: 21px;
}

.pd-buy-error {
  color: #a32920;
  font-size: 12px;
  line-height: 1.4;
  margin: 6px 0;
  overflow-wrap: anywhere;
}

.pd-mobile-buybar {
  display: none;
}

.pd-header-buy {
  display: none;
}

@media (min-width: 1024px) {
  .pd-header-buy {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 5px 15px #20242b08;
  }

  .pd-header-title {
    position: absolute;
    top: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
  }

  .pd-header-title strong {
    width: 100%;
    font-size: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .pd-header-action,
  .pd-header-buy > .pd-buy-error {
    position: absolute;
    top: 0;
  }

  .pd-header-buy > .pd-buy-error {
    top: 58px;
  }
}

.product-page .pd-information {
  margin: 32px 0 38px;
  display: grid;
  gap: 20px;
}

.pd-info-panel {
  border: 1px solid #e7e2dc;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffdfa, #fff9f3);
  padding: 20px 24px;
  box-shadow: 0 7px 22px #2c22190d;
  scroll-margin-top: 220px;
}

.pd-info-panel > summary {
  display: flex;
  gap: 12px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  min-height: 44px;
}

.pd-info-panel > summary::-webkit-details-marker {
  display: none;
}

.pd-info-panel h2 {
  font-size: 23px;
  line-height: 1.25;
  margin: 0;
  font-weight: 750;
}

.pd-section-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #f2e5d3;
  background: #fff4e7;
  border-radius: 12px;
  color: var(--action);
  font-size: 24px;
}

.pd-panel-chevron {
  margin-left: auto;
  color: var(--action);
}

.pd-info-panel[open] .pd-panel-chevron {
  transform: rotate(180deg);
}

.pd-panel-body {
  padding-top: 14px;
  font-size: 16px;
  line-height: 1.65;
}

.pd-panel-body > p:first-child {
  margin-top: 0;
}

.pd-panel-body .product-specs > div {
  border-color: #e7e2dc;
  padding: 9px 0;
  font-size: 14px;
}

.pd-certificates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-certificates a {
  color: var(--action);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e7e2dc;
  background: #fff;
  text-decoration: none;
}

.pd-review-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px;
  background: #f4f1ed;
  width: max-content;
  max-width: 100%;
  border: 1px solid #e7e2dc;
  border-radius: 10px;
  margin-bottom: 20px;
}

.pd-review-tabs button {
  min-height: 40px;
  border: 0;
  background: none;
  border-radius: 7px;
  padding: 8px 20px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.pd-review-tabs button[aria-selected='true'] {
  background: var(--action);
  color: #fff;
}

.pd-review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-review-links a {
  color: var(--action);
}

.pd-rail {
  margin: 32px 0;
}

.pd-rail > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pd-rail h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.pd-rail nav {
  display: flex;
  gap: 6px;
}

.pd-rail nav button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--action);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

.pd-rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(280px, max(210px, calc((100vw - 440px) / 4)));
  gap: 18px;
  overflow-x: auto;
  padding: 2px 1px 12px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.pd-rail-track > article {
  scroll-snap-align: start;
  min-width: 0;
}

.pd-swipe-hint {
  display: none;
}

.product-page :is(button, a, input, summary):focus-visible,
.pd-header-buy :is(button, a, input):focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}

.pd-info-dialog,
.pd-lightbox,
.pd-video-dialog {
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink);
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
}

.pd-info-dialog::backdrop,
.pd-lightbox::backdrop,
.pd-video-dialog::backdrop {
  background: #07090be0;
  backdrop-filter: blur(4px);
}

body:has(.pd-info-dialog[open]),
body:has(.pd-lightbox[open]),
body:has(.pd-video-dialog[open]) {
  overflow: hidden;
}

.pd-eyebrow {
  color: #ff9b59;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px !important;
  margin: 0;
}

.pd-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  color: inherit;
  background: #ffffff08;
  font-size: 28px;
  cursor: pointer;
  z-index: 3;
}

.pd-lightbox-inner {
  position: relative;
  width: min(1000px, calc(100vw - 24px));
  padding: 50px 20px 16px;
  border-radius: 14px;
  background: #fff;
}

.pd-lightbox .pd-dialog-close {
  color: var(--ink);
  background: #f5f6f7;
}

.product-page .pd-lightbox img {
  width: 100%;
  height: min(70dvh, 720px);
  object-fit: contain;
}

.pd-lightbox nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 8px 0 0;
}

.pd-lightbox nav button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}

@media (min-width: 768px) and (max-width: 1250px) {
  .product-page .pd-detail {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
  }

  .pd-rail-track {
    grid-auto-columns: 240px;
  }
}

@media (max-width: 767px) {
  .product-page.site-wrap {
    width: calc(100% - 24px);
    padding-top: 14px;
    margin-bottom: 28px;
  }

  .product-page .breadcrumbs {
    font-size: 10px;
    margin-bottom: 16px;
    gap: 5px;
  }

  .product-page .pd-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .product-page .product-details {
    display: contents;
  }

  .product-page .product-details h1 {
    order: 0;
    margin: 0;
    font-size: 22px;
  }

  .product-page .pd-gallery {
    order: 1;
    width: 100%;
  }

  .product-page .product-details .product-variants {
    order: 2;
    margin: 0;
    width: 100%;
  }

  .product-page .pd-purchase {
    order: 3;
    position: static;
    width: 100%;
    padding: 18px;
  }

  .product-page .product-key-specs {
    display: none;
  }

  .product-page .product-article {
    order: 4;
    margin: 0;
  }

  .product-page .pd-purchase .product-price {
    font-size: 28px;
    margin: 0;
  }

  .product-page .product-thumbnails > button {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .pd-main-action {
    display: none;
  }

  .pd-mobile-heart {
    display: block;
    flex: 0 0 46px;
  }

  .pd-mobile-heart .save-product {
    position: static;
  }

  .pd-mobile-heart .save-product button {
    width: 46px;
    height: 46px;
    color: var(--action);
    border: 1px solid #e9d3b5;
    border-radius: 10px;
  }

  .pd-mobile-buybar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--shop-dock-height, 64px);
    z-index: 55;
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -3px 14px #20242b08;
  }

  .pd-mobile-buybar .pd-buy-button {
    min-height: 50px;
  }

  .pd-mobile-buybar .pd-inline-buy {
    width: 100%;
  }

  body:has(.pd-detail) {
    padding-bottom: calc(
      var(--shop-dock-height, 64px) + var(--pd-mobile-height, 78px) + 16px
    );
  }

  body:has(.pd-detail) #strateg-assistant {
    bottom: calc(var(--shop-dock-height, 64px) + var(--pd-mobile-height, 78px) + 16px);
  }

  .pd-info-panel {
    padding: 16px;
    border-radius: 14px;
    scroll-margin-top: 16px;
  }

  .pd-info-panel h2 {
    font-size: 20px;
  }

  .pd-section-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 20px;
    border-radius: 10px;
  }

  .pd-panel-body {
    font-size: 15px;
    line-height: 1.65;
    padding-top: 12px;
  }

  .pd-panel-body .product-specs > div {
    font-size: 13px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .product-page .pd-information {
    margin: 26px 0;
    gap: 14px;
  }

  .pd-rail h2 {
    font-size: 21px;
  }

  .pd-rail-track {
    grid-auto-columns: min(220px, calc((100% - 9px) / 2));
    gap: 12px;
  }

  .pd-swipe-hint {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin: 6px 0 0;
  }

  .pd-lightbox-inner {
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-page *,
  .pd-header-buy * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.product-page .pd-purchase .product-availability {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pd-purchase .availability-dot {
  display: inline-block;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #1f9f5d;
}

.pd-zoom-lens {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: var(--zoom-x);
  top: var(--zoom-y);
  width: 40%;
  height: 40%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--action);
  background: #ffffff30;
}

.pd-buy-button:disabled,
.pd-buy-confirm:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Recovered information panels: expanded on demand instead of long page shifts. */
.product-page .pd-reveal-content {
  position: relative;
  overflow: hidden;
}

.product-page .pd-reveal-content.is-preview {
  max-height: 240px;
}

.product-page .pd-reveal-content.is-preview::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(transparent, #fffcf7);
  pointer-events: none;
}

.product-page .pd-reveal-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #a84c13;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 12px 8px;
  min-height: 44px;
  cursor: pointer;
}

.product-page .pd-reveal-button > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e6c9ac;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 400;
}

.product-page .pd-reveal-button[aria-expanded='true'] > span {
  transform: rotate(180deg);
}

.product-page .pd-specification-table .product-specs {
  border: 1px solid #dbdcdf;
  border-radius: 9px;
  overflow: hidden;
  margin: 0;
}

.product-page .pd-specification-table .product-specs > div {
  display: grid;
  grid-template-columns: 38% 62%;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid #dbdcdf;
  background: #fff;
}

.product-page .pd-specification-table dt {
  background: #eceef1;
  font-weight: 600;
  padding: 13px 16px;
  border-right: 1px solid #dbdcdf;
}

.product-page .pd-specification-table dd {
  padding: 13px 16px;
  margin: 0;
}

.product-page .pd-detail {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(320px, 0.96fr);
}

@media (max-width: 1023px) {
  .product-page .pd-detail {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
  }
}

@media (max-width: 700px) {
  .product-page .pd-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-page .pd-reveal-content.is-preview {
    max-height: 220px;
  }

  .product-page .pd-specification-table dt,
  .product-page .pd-specification-table dd {
    padding: 10px;
    font-size: 12px;
  }

  .product-page .pd-specification-table .product-specs > div {
    grid-template-columns: 44% 56%;
  }
}

.pd-series {
  margin: 14px 0 22px;
}

.product-page .pd-series h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.pd-series > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pd-series a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid #e5e6e9;
  border-radius: 6px;
  overflow: hidden;
}

.pd-series img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.pd-series a:hover {
  border-color: #c54b10;
}

.pd-series a > span {
  font-size: 10px;
  padding: 3px;
}

.pd-review-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  margin: 12px 0 18px;
}

.pd-review-summary > span:first-child {
  color: #de9b30;
  font-size: 23px;
  letter-spacing: -2px;
}

.pd-review-total {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e5d7c6;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
}

.pd-review-total > span {
  color: #de9b30;
  font-size: 28px;
  letter-spacing: -2px;
}

.pd-review-total small {
  font-size: 12px;
  font-weight: 400;
  color: #666;
}

.pd-restored-review {
  padding: 18px 0;
  border-bottom: 1px solid #e5e5e5;
}

.pd-restored-review p {
  margin: 4px 0 12px;
  white-space: pre-line;
}

.pd-restored-review time {
  font-size: 12px;
  color: #73777c;
}

.pd-restored-review.is-reply {
  margin-left: 24px;
}

.pd-restored-review .pd-review-stars {
  color: #de9b30;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 5px;
}

@media (min-width: 1440px) {
  .product-page .pd-purchase .product-price {
    font-size: clamp(30px, 2.04vw, 42px);
  }

  .product-page :is(.product-key-specs h2, .pd-series h2) {
    font-size: clamp(18px, 1.22vw, 24px);
  }

  .product-page .product-key-specs .product-specs > div {
    font-size: clamp(13px, 0.95vw, 18px);
  }
}

/* E79–E85: keep photo navigation and video entry separate. */
.pd-gallery-navigation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.product-page .pd-gallery-navigation .product-thumbnails {
  flex: 1 1 auto;
  min-width: 0;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}

.product-page .product-thumbnails > button {
  scroll-snap-align: start;
}

.product-page .pd-gallery-navigation > .pd-video-entry {
  flex: 0 0 84px;
  width: 84px;
  height: 78px;
  margin: 10px 0 3px;
  padding: 5px;
  border: 1px solid #64666d;
  border-radius: 8px;
  background: #25262b;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.pd-video-entry small {
  font-size: 10px;
}

.product-page .pd-review-preview.is-preview {
  max-height: 320px;
}

.pd-rail nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 767px) {
  .product-page .pd-review-summary {
    order: 0;
    margin: 0;
  }

  .product-page .pd-series {
    order: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 0 0;
  }

  .product-page .pd-series h2 {
    font-size: 15px;
    color: #5d636c;
    margin-bottom: 10px;
  }

  .product-page .pd-series > div {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 2px 1px 12px;
    scroll-snap-type: x proximity;
  }

  .product-page .pd-series a {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    scroll-snap-align: start;
  }

  .product-page .pd-series img {
    width: 64px;
    height: 64px;
  }

  .product-page .pd-gallery-navigation > .pd-video-entry {
    flex-basis: 76px;
    width: 76px;
    height: 68px;
  }

  .product-page .pd-review-preview.is-preview {
    max-height: 275px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-rail-track,
  .product-thumbnails {
    scroll-behavior: auto;
  }
}

/* Photo changes have an asset-keyed preview instead of retaining the previous image. */
.pd-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
}
.pd-photo-frame .pd-image-open {
  position: relative;
}
.product-page .pd-photo-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-page .pd-photo-loading {
  opacity: 0;
}
.pd-photo-ready {
  position: relative;
}
.pd-photo-error {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 96px);
  padding: 6px 10px;
  border-radius: 8px;
  background: #fffffff0;
  color: #525961;
  font-size: 12px;
  text-align: center;
}
.pd-photo-error button {
  border: 0;
  background: none;
  color: var(--action);
  text-decoration: underline;
  padding: 8px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .pd-rail {
    position: relative;
  }
  .pd-rail nav {
    position: absolute;
    top: 50%;
    left: -16px;
    right: -16px;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1;
  }
  .pd-rail nav button {
    pointer-events: auto;
  }
}

.product-badges-gallery {
  top: 12px;
  left: 12px;
  right: 54px;
}
.product-badges-gallery .product-badge {
  min-height: 30px;
  font-size: 14px;
  padding: 6px 10px;
}
@media (max-width: 767px) {
  .product-badges-gallery {
    left: 8px;
    top: 8px;
    right: 42px;
    gap: 5px;
  }
  .product-badges-gallery .product-badge {
    min-height: 26px;
    padding: 4px 7px;
    font-size: 12px;
  }
}
