.product-page {
  width: 100%;
  line-height: var(--line-height-body);
}

.product-title {
  font-size: var(--font-size-plus-3);
  font-weight: 700;
  margin: 0;
}
/* Sits inside a gapped flex column, so no margin of its own. */
.product-heading {
  font-size: var(--font-size-plus-2);
  font-weight: 700;
  margin: 0;
}
.product-inline-heading {
  font-weight: 700;
}

.product-ratings {
  display: flex;
  flex-flow: row wrap;
  gap: 1rem;
  font-size: var(--font-size-sub-1);
  font-weight: 500;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  min-width: 0;
}
.product-rating__label {
  white-space: nowrap;
}

.product-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-stack > p {
  margin: 0;
}

/* Hero: packshot beside the ruled list. Both halves may shrink, so the row never overflows a 375px viewport. */
.product-hero {
  display: flex;
  gap: 16px;
  align-items: center;
}
.product-hero__image {
  flex: 1 1 55%;
  min-width: 0;
  position: relative;
}
.product-hero__packshot {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 22rem;
  margin: 0 auto;
}
.product-award {
  position: absolute;
  top: 0;
  right: 0;
  width: 5rem;
  height: auto;
}
.product-hero__facts {
  flex: 1 1 45%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--font-size-sub-1);
}
.product-hero__facts li {
  border-bottom: 1px solid #dcdfe1;
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.product-hero__facts li:last-child {
  border-bottom: 0;
}
.product-hero__action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-hero__action-icon {
  display: inline-flex;
  flex-shrink: 0;
}
.product-hero__action-icon .svg-icon {
  width: 1em;
  height: 1em;
  max-width: none;
  margin: 0;
}

/* Comments heading; the rest of the comments area is product-comments.css */
.product-comments > .product-heading {
  margin-bottom: 1rem;
}

/* Specifications: two columns of value over label */
.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.product-specs__item {
  display: flex;
  flex-direction: column-reverse;
  min-width: 0;
}
.product-specs__value {
  margin: 0;
  font-size: var(--font-size-plus-1);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.product-specs__label {
  font-size: var(--font-size-sub-1);
  color: #787c7e;
}
html[data-theme="dark"] .product-specs__label {
  color: #818384;
}

/* Small screens: the right column stacks under the main one, so it continues its 16px rhythm and opens with a section rule (core's dg-rule-top) */
@media (max-width: 639px) {
  .product-page .dg-layout-default__rhs {
    gap: 16px;
  }
  .product-right-column > :first-child,
  .product-right-column > .product-shop-column:first-child + * {
    border-top: 3px solid #dcdfe1;
    padding-top: 1rem;
  }
  .product-right-column > .product-shop-column:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

@media (min-width: 640px) {
  .product-right-column {
    align-self: flex-start;
    padding: 1rem;
    background: #f6f6f6;
  }
  html[data-theme="dark"] .product-right-column {
    background: #2a2a2a;
  }
}
