.product-page {
  display: grid;
  gap: 1.4rem;
}

.product-detail-card {
  background: #fff;
  border: 1px solid #d9d9d4;
  padding: 1.25rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 0.85rem;
}

.product-mobile-gallery {
  display: none;
  position: relative;
}

.product-mobile-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-mobile-gallery-track::-webkit-scrollbar {
  display: none;
}

.product-mobile-gallery-slide {
  border: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  cursor: zoom-in;
  border: 1px solid #e7e4dc;
  overflow: hidden;
}

.product-mobile-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.product-mobile-gallery-overlay {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.product-gallery-desktop {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.product-thumb {
  border: 1px solid #e7e4dc;
  padding: 0;
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

.product-thumb.is-active {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.product-main-image-wrap {
  min-width: 0;
  position: relative;
}

.product-main-image-btn {
  border: 1px solid #e7e4dc;
  margin: 0;
  padding: 0;
  background: #fff;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
}

.product-main-image-media {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-main-image-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 160ms ease-out, transform-origin 80ms linear;
  will-change: transform;
}

.product-main-image-btn.is-hover-zooming img {
  transform: scale(3);
}

.product-gallery-foot {
  display: none;
}

.product-gallery-note {
  margin: 0;
  color: #666;
  font-size: 0.84rem;
}

.product-gallery-note--mobile {
  display: none;
}

.product-gallery-note--desktop-overlay {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.2rem 0.4rem;
  background: rgba(255, 255, 255, 0.86);
  color: #777;
  font-size: 0.78rem;
}

.product-gallery-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.2rem 0.35rem;
  background: rgba(255, 255, 255, 0.82);
  color: #3f3f3f;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
}

.product-summary {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.product-summary h1 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.06;
}

.product-title-size-line {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.58em;
  font-weight: 400;
  line-height: 1.2;
  color: #5c5c5c;
}

.product-detail-price {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-description {
  margin: 0;
  color: #272727;
  line-height: 1.55;
}

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

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

.product-description .description-link,
.product-property-value .description-link {
  color: #1a6f96;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.product-book-series-note {
  margin-top: 0.75rem;
  color: #1f1f1f;
}

.product-book-series-note a {
  color: #1a6f96;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.product-property-list {
  display: grid;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.product-property-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 0;
  border-top: 1px solid #f1f1f1;
}

.product-property-row:first-child {
  border-top: 0;
}

.product-property-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #6a6a6a;
  font-size: 0.94rem;
}

.product-property-value {
  min-width: 0;
  color: #171717;
  font-size: 0.96rem;
  line-height: 1.4;
}

.product-property-value strong {
  font-weight: 700;
}

.product-property-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-property-slider {
  position: relative;
  flex: 1 1 180px;
  max-width: 240px;
  height: 8px;
  border-radius: 999px;
  background: #ece9e2;
  overflow: hidden;
}

.product-property-slider span {
  position: absolute;
  inset: 0 auto 0 0;
  background: #1d6859;
}

.product-property-subtext {
  margin-top: 0.42rem;
  color: #5b5b5b;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 400;
}

.condition-help-trigger {
  width: 18px;
  height: 18px;
  border: 1px solid #bfc3bf;
  border-radius: 999px;
  background: #fff;
  color: #4e544e;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.condition-help-trigger:hover {
  background: #f3f3f3;
}

.product-cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
  align-items: stretch;
}

.product-cta-row.has-cart-link {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}

.product-add-to-cart {
  border: 0;
  background: #111;
  color: #fff;
  border-radius: 3px;
  text-transform: none;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0;
  padding: 0.72rem 1.35rem;
  cursor: pointer;
  min-height: 52px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.product-add-to-cart:disabled {
  opacity: 0.72;
}

.product-add-to-cart .product-button-content {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-add-to-cart .product-button-content::after {
  content: "";
  position: absolute;
  left: -0.12rem;
  right: -0.12rem;
  bottom: -0.18rem;
  height: 2px;
  background: #f15a29;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.product-add-to-cart .product-button-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-add-to-cart:hover .product-button-content::after,
.product-add-to-cart:focus-visible .product-button-content::after {
  transform: scaleX(1);
}

.product-go-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 1rem 1rem;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-weight: 600;
  font-size: 0.92rem;
  justify-self: end;
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.product-go-cart[hidden] {
  display: none;
}

.product-trust-table {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 0.6rem;
}

.product-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}

.product-trust-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
  align-items: start;
}

.product-trust-title {
  display: block;
  font-size: 0.94rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.product-trust-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: #3f3f3f;
  flex: 0 0 auto;
  margin-top: 0.08rem;
}

.product-trust-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-trust-subtitle {
  color: #666;
  font-size: 0.84rem;
  line-height: 1.3;
  display: block;
  margin-bottom: 0.08rem;
}

.book-editions-panel {
  border: 1px solid #d4ddd8;
  background: #fff;
  overflow: hidden;
}

.book-editions-panel h2 {
  margin: 0;
  padding: 0.95rem 1.15rem;
  background: #f1f1ed;
  color: #111;
  font-size: 1.05rem;
  line-height: 1.2;
}

.book-editions-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 160px);
  gap: 0.95rem;
  overflow-x: auto;
  padding: 1rem 1.15rem 1.15rem;
  scroll-snap-type: x proximity;
}

.book-edition-card {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  scroll-snap-align: start;
}

.book-edition-media {
  display: grid;
  place-items: center;
  aspect-ratio: 0.72 / 1;
  background: #faf9f5;
  border: 1px solid #e4e4df;
  text-decoration: none;
}

.book-edition-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.book-edition-body {
  display: grid;
  gap: 0.2rem;
}

.book-edition-price {
  margin: 0;
  color: #151515;
  font-size: 0.95rem;
  font-weight: 600;
}

.product-faq {
  margin-top: 0.25rem;
  border: 1px solid #d4ddd8;
  background: #fff;
  overflow: hidden;
}

.product-faq h2 {
  margin: 0;
  padding: 0.95rem 1.15rem;
  background: #f1f1ed;
  color: #111;
  font-size: 1.05rem;
  line-height: 1.2;
}

.product-faq-body {
  padding: 0 1.15rem;
}

.product-faq-item {
  border-bottom: 1px solid #e6ece8;
}

.product-faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
  cursor: pointer;
  font-weight: 600;
}

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

.product-faq-item summary::after {
  content: "+";
  color: #666;
  font-size: 1.2rem;
  font-weight: 400;
}

.product-faq-item[open] summary::after {
  content: "−";
}

.product-faq-item p {
  margin: 0 0 0.95rem;
  color: #444;
  line-height: 1.55;
  max-width: 62ch;
}

.product-similar h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
}

@media (min-width: 992px) {
  .product-page > .category-breadcrumb {
    margin-bottom: 0;
  }

  .product-page > .product-detail-card {
    margin-top: -0.72rem;
  }

  .product-summary h1 {
    padding-top: 8px;
    font-size: 2rem;
  }

  .product-detail-price {
    font-size: 1.5rem;
  }
}

.product-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 7, 0.94);
  display: flex;
  align-items: stretch;
  justify-content: center;
  z-index: 1320;
  padding: 0;
  opacity: 0;
  transform: scale(0.985) translateY(14px);
  transition: opacity 220ms ease, transform 260ms ease;
}

.product-lightbox.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.product-lightbox[hidden] {
  display: none;
}

.product-lightbox-content {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.product-lightbox-stage {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 4.25rem 1.25rem 1rem;
  overflow: hidden;
  cursor: default;
  touch-action: none;
  user-select: none;
}

.product-lightbox-stage.is-zoomed {
  cursor: grab;
}

.product-lightbox-stage.is-panning {
  cursor: grabbing;
}

.product-lightbox-stage img {
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  max-width: min(92vw, 1320px);
  max-height: calc(100vh - 9rem);
  transition: transform 180ms ease-out;
  will-change: transform;
}

.product-lightbox-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.75rem 1rem 1rem;
  background: rgba(15, 15, 15, 0.75);
}

.product-lightbox-thumb {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
  margin: 0;
  width: 72px;
  height: 72px;
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-lightbox-thumb img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.product-lightbox-thumb.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.product-lightbox-close {
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  z-index: 3;
}

.condition-help-modal {
  position: fixed;
  inset: 0;
  z-index: 1330;
  display: grid;
  place-items: center;
  background: rgba(17, 20, 18, 0.54);
  padding: 1.1rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.condition-help-modal[hidden] {
  display: none;
}

.condition-help-modal.is-open {
  opacity: 1;
}

.condition-help-panel {
  width: min(1320px, calc(100vw - 2.2rem));
  max-height: calc(100vh - 2.2rem);
  overflow: auto;
  background: #fff;
  border: 1px solid #d8d8d8;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  position: relative;
  transform: translateY(10px) scale(0.995);
  transition: transform 220ms ease;
}

.condition-help-modal.is-open .condition-help-panel {
  transform: translateY(0) scale(1);
}

.condition-help-close-icon {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  font-size: 2rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
}

.condition-help-header {
  padding: 1.6rem 4rem 1.1rem 1.9rem;
  border-bottom: 1px solid #e2e2e2;
}

.condition-help-header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
}

.condition-help-grid {
  padding: 1.6rem 1.9rem 1.1rem;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  column-gap: 1.2rem;
  row-gap: 0.95rem;
  align-items: center;
}

.condition-help-grid-head {
  font-weight: 700;
  font-size: 1.75rem;
  color: #212121;
  margin-bottom: 0.2rem;
}

.condition-help-meter {
  border: 1px solid #4a4a4a;
  height: 42px;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.condition-help-fill {
  height: 100%;
  display: block;
}

.condition-help-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 1.95rem;
  font-weight: 500;
  pointer-events: none;
}

.condition-help-fill.c20 {
  background: #cc5800;
}

.condition-help-fill.c40 {
  background: #cda600;
}

.condition-help-fill.c60 {
  background: #9ecf00;
}

.condition-help-fill.c80 {
  background: #4ecf00;
}

.condition-help-fill.c100 {
  background: #00d000;
}

.condition-help-text {
  font-size: 2rem;
  color: #202020;
}

.condition-help-footer {
  border-top: 1px solid #dcdcdc;
  padding: 1.2rem 1.9rem;
  display: flex;
  justify-content: flex-end;
}

.condition-help-close-btn {
  border: 1px solid #d3d3d3;
  background: #f8f8f8;
  color: #4f4f4f;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  cursor: pointer;
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 1000px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .product-summary h1 {
    font-size: 2rem;
  }
}

@media (max-width: 720px) {
  .product-detail-card {
    padding: 0;
    overflow: hidden;
  }

  .product-mobile-gallery {
    display: block;
  }

  .product-gallery-desktop {
    display: none;
  }

  .product-gallery-foot {
    display: none;
  }

  .product-gallery-note--mobile {
    display: block;
    padding: 0;
    margin: 0;
    color: #8a8a8a;
    font-size: 0.78rem;
    line-height: 1;
    text-align: right;
  }

  .product-gallery-note--desktop-overlay {
    display: none;
  }

  .product-summary {
    padding: 0 1rem 1rem;
    gap: 0.9rem;
  }

  .product-summary h1 {
    font-size: 1.7rem;
  }

  .product-detail-price {
    font-size: 1.55rem;
  }

  .product-property-row {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .product-cta-row {
    grid-template-columns: 1fr;
  }

  .product-cta-row.has-cart-link {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  }

  .product-trust-table {
    gap: 0.85rem;
  }

  .product-trust-title {
    font-size: 0.86rem;
    white-space: normal;
  }

  .product-trust-subtitle {
    font-size: 0.8rem;
  }

  .book-editions-panel h2 {
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .book-editions-strip {
    grid-auto-columns: minmax(120px, 136px);
    gap: 0.8rem;
    padding: 0.9rem 1rem 1rem;
  }

  .product-faq h2 {
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .product-faq-body {
    padding: 0 1rem;
  }

  .product-faq-item summary {
    padding: 0.9rem 0;
    font-size: 0.95rem;
  }

  .product-lightbox-stage {
    padding: 3.5rem 0.75rem 0.75rem;
  }

  .product-lightbox-stage img {
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 5.25rem);
  }

  .product-lightbox-thumbs {
    display: none;
  }

  .condition-help-modal {
    padding: 0;
  }

  .condition-help-panel {
    width: 100vw;
    max-height: 100vh;
    border: 0;
    box-shadow: none;
  }

  .condition-help-header {
    padding: 1.1rem 3.4rem 0.9rem 1rem;
  }

  .condition-help-header h2 {
    font-size: 1.55rem;
  }

  .condition-help-grid {
    padding: 1rem;
    grid-template-columns: 1fr;
    row-gap: 0.7rem;
  }

  .condition-help-grid-head {
    font-size: 1.05rem;
  }

  .condition-help-text {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .condition-help-fill {
    font-size: 1rem;
  }

  .condition-help-value {
    font-size: 1rem;
  }

  .condition-help-footer {
    padding: 1rem;
  }

  .condition-help-close-btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.72rem 1rem;
  }
}
