/*
 * Product page redesign. All rules are contained by .product-page so the
 * existing site header, breadcrumbs and footer keep their own styles.
 *
 * The product script measures the fixed site header and product summary bar:
 *   --site-header-offset: visible fixed header height, or 0px
 *   --product-bar-height: current product summary bar height
 * Keep .gallery and .configuration in the same .product-layout grid so the
 * photograph stops sticking when the configuration column ends.
 */

.product-page {
    --ink: #303636;
    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --press-duration: 100ms;
    --ink-soft: #505d63;
    --muted: #626d72;
    --blue-dark: #286181;
    --blue-darker: #1f526e;
    --blue-soft: #f7fafc;
    --blue-tint: #f2f7fa;
    --surface-subtle: #f5f6f6;
    --line: #dce1e2;
    --line-strong: #879194;
    --text-xs: .75rem;
    --text-sm: .8125rem;
    --text-ui: .875rem;
    --text-body: 1rem;
    --text-heading: 1.125rem;
    --text-title: 1.375rem;
    --text-section: 1.875rem;
    --site-header-offset: 0px;
    --product-bar-height: 92px;
    --sticky-offset: calc(var(--site-header-offset) + var(--product-bar-height) + 20px);
    color: var(--ink);
    background: #fff;
    font-size: var(--text-body);
    line-height: 1.6;
    overflow-wrap: break-word;
}

.product-page,
.product-page *,
.product-page *::before,
.product-page *::after {
    box-sizing: border-box;
}

.product-page :where(span, small) {
    font-size: inherit;
    line-height: inherit;
}

.product-page :where(h1, h2, h3, h4) {
    color: var(--ink);
}

.product-page :where(button, input, select, textarea) {
    font: inherit;
}

.product-page button {
    margin: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.product-page :where(button, a, input) {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.product-page a {
    color: var(--blue-dark);
    text-underline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .product-page a:hover {
        color: var(--ink);
    }
}

.product-page :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--blue-dark);
    outline-offset: 4px;
}

/* Native focus scrolling and in-page links must clear both sticky bars. */
.product-page :where([id], a, button, input, select, textarea, [tabindex]) {
    scroll-margin-block-start: var(--sticky-offset);
    scroll-margin-block-end: 24px;
}

.product-page [hidden] {
    display: none !important;
}

.product-page img {
    display: block;
    max-width: 100%;
}

.product-page .icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-page .container {
    width: min(1440px, calc(100% - 96px));
    margin-inline: auto;
}

.product-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-page .skip {
    position: fixed;
    top: 8px;
    left: 16px;
    z-index: 100;
    max-width: calc(100% - 32px);
    padding: 12px;
    transform: translateY(calc(-100% - 20px));
    color: var(--blue-dark);
    background: #fff;
}

.product-page .skip:focus {
    transform: none;
}

/* Product summary bar; shared site navigation remains above it. */
.product-page .product-nav {
    position: sticky;
    top: var(--site-header-offset);
    z-index: 10;
    margin-bottom: 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: #fff;
}

.product-page .product-nav.is-scrolled:not(.has-stuck-links) {
    box-shadow: 0 5px 10px -5px rgba(48, 54, 54, .18);
}

.product-page .product-nav > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 92px;
    padding-block: 12px;
}

.product-page .product-nav-name {
    min-width: 0;
    max-width: 580px;
    font-size: var(--text-body);
    font-weight: 600;
    line-height: 1.4;
}

.product-page .product-nav-title {
    display: block;
    text-wrap: balance;
}

.product-page .product-nav-item {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: var(--text-sm);
    font-weight: 400;
}

.product-page .product-nav-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    max-width: 100%;
}

.product-page .nav-pricing {
    display: grid;
    gap: 2px;
    min-width: 170px;
    text-align: right;
}

.product-page :where(.nav-price-label, .nav-price-note) {
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.product-page #nav-price {
    font-size: 1.3125rem;
    font-weight: 400;
    line-height: 1.2;
}

.product-page .nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid var(--blue-dark);
    border-radius: 6px;
    color: #fff;
    background: var(--blue-dark);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .product-page .nav-button:hover {
        color: #fff;
        background: var(--blue-darker);
    }
}

/* Photography and native gallery controls always have white backgrounds. */
.product-page .product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(370px, 1fr);
    gap: clamp(40px, 5.3vw, 84px);
    align-items: start;
}

.product-page .gallery {
    position: sticky;
    top: var(--sticky-offset);
    min-width: 0;
}

.product-page .image-stage {
    --stage-height: min(65vw, calc(100svh - var(--sticky-offset) - 140px), 665px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--stage-height);
    min-height: 300px;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}

.product-page .hero-image {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 40px 12px 22px;
    object-fit: contain;
    background: #fff;
}

.product-page .icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    color: var(--ink);
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .product-page .icon-button:hover {
        background: var(--line);
    }
}

.product-page .favorite {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    background: #fff;
}

.product-page .favorite[aria-pressed="true"],
.product-page .favorite[data-favorite-selected="true"] {
    color: var(--blue-dark);
}

/* A saved favorite is a solid heart, not only a colour change. */
.product-page .favorite[aria-pressed="true"] svg,
.product-page .favorite[data-favorite-selected="true"] svg {
    fill: currentColor;
}

.product-page .zoom-button {
    position: absolute;
    right: 18px;
    bottom: 18px;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.product-page .image-count {
    position: absolute;
    bottom: 23px;
    left: 26px;
    color: var(--muted);
    background: #fff;
    font-size: var(--text-sm);
    letter-spacing: .08em;
}

.product-page .gallery-video {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    background: #fff;
}

.product-page .thumbnails {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 9px;
    margin-top: 17px;
}

.product-page .thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 1 66px;
    min-width: 44px;
    min-height: 56px;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
}

.product-page .thumbnail img {
    width: 100%;
    height: 48px;
    margin: 0;
    object-fit: contain;
    background: #fff;
}

.product-page .thumbnail span {
    display: block;
    color: var(--muted);
    font-size: var(--text-xs);
    line-height: 1.35;
}

.product-page .thumbnail[aria-pressed="true"] {
    border-color: var(--blue-dark);
    box-shadow: inset 0 0 0 1px var(--blue-dark);
}

@media (hover: hover) and (pointer: fine) {
    .product-page .thumbnail:not([aria-pressed="true"]):hover {
        border-color: var(--line-strong);
    }
}

.product-page .thumbnail.video-thumb {
    flex: 0 0 auto;
}

.product-page .video-thumb .play-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 27px;
}

.product-page .gallery-status {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-ui);
    text-align: center;
}

.product-page .gallery-status:not(:empty) {
    margin-top: 12px;
}

.product-page .hand-overlay {
    position: absolute;
    inset: 0;
    opacity: .25;
    pointer-events: none;
}

.product-page :where(.hand-tone-controls, .hand-controls) {
    max-width: 360px;
    margin: 12px auto 0;
    padding-inline: 8px;
    text-align: center;
}

.product-page :where(.hand-tone-controls, .hand-controls) label {
    display: block;
    margin-bottom: 2px;
    font-size: var(--text-ui);
    font-weight: 400;
}

.product-page :where(.hand-tone-range, .tone-range) {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: var(--text-sm);
}

.product-page :where(.hand-tone-range, .tone-range) input {
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    accent-color: var(--blue-dark);
    cursor: pointer;
}

/* Open, labelled choices. Inputs remain in the native keyboard radio group. */
.product-page .configuration {
    min-width: 0;
}

.product-page .product-intro {
    padding-bottom: 33px;
    border-bottom: 1px solid var(--line);
}

.product-page .product-intro h1 {
    margin: 0 0 16px;
    font-size: clamp(1.6875rem, 2.5vw, 2.3125rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.product-page .item-number {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: var(--text-ui);
}

.product-page :where(.intro-price-row, .intro-pricing) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.product-page .intro-price,
.product-page #intro-price {
    font-size: 1.625rem;
    font-weight: 400;
    letter-spacing: -.025em;
}

.product-page .price-label,
.product-page #intro-price-label {
    color: var(--muted);
    font-size: var(--text-sm);
}

.product-page .clearance-savings {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: var(--text-ui);
}

.product-page .clearance-savings s {
    color: var(--muted);
}

.product-page :where(.center-note, .price-explanation) {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: var(--text-ui);
}

.product-page .intro-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 16px 0 0;
    font-size: var(--text-ui);
}

.product-page .intro-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.product-page .option-section {
    min-width: 0;
    margin: 0;
    padding: 33px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.product-page .option-section legend {
    float: left;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin: 0 0 16px;
    padding: 0;
    font-size: var(--text-heading);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.01em;
}

.product-page .option-section legend + * {
    clear: both;
}

.product-page .option-help {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-ui);
    font-weight: 400;
    letter-spacing: 0;
}

.product-page .metal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8em, calc((100% - 10px) / 2))), 1fr));
    gap: 10px;
}

.product-page .choice {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.product-page .choice input {
    position: absolute;
    top: 50%;
    left: 8px;
    display: block;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.product-page .choice > span {
    display: flex;
    height: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #fff;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .product-page .choice:hover > input:not(:checked) + span {
        border-color: var(--ink);
    }
}

.product-page .choice input:checked + span {
    border-color: var(--blue-dark);
    background: var(--blue-soft);
    box-shadow: inset 0 0 0 1px var(--blue-dark);
}

.product-page .choice input:focus-visible + span {
    outline: 3px solid var(--blue-dark);
    outline-offset: 4px;
}

.product-page .choice input:disabled + span {
    border-style: dashed;
    color: var(--muted);
    background: var(--surface-subtle);
    cursor: not-allowed;
}

.product-page .metal-content {
    align-items: center;
    gap: 11px;
    min-height: 64px;
    padding: 13px 12px;
}

.product-page .choice strong {
    display: block;
    font-size: var(--text-ui);
    font-weight: 600;
    line-height: 1.5;
}

.product-page .choice small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.product-page .swatch {
    flex-shrink: 0;
    width: 23px;
    height: 23px;
    border: 1px solid #68717440;
    border-radius: 50%;
    box-shadow: none;
    background: #e0e4e7;
}

.product-page .swatch-W { background: #e0e4e7; }
.product-page .swatch-Y { background: #e5ce98; }
.product-page .swatch-R { background: #e8bdab; }
.product-page .swatch-pt { background: #cdd4db; }

.product-page .selection-mark {
    position: relative;
    display: block;
    visibility: hidden;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-inline-start: auto;
    border-radius: 50%;
    background: var(--blue-dark);
}

.product-page .selection-mark::after {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 4px;
    height: 6px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    content: "";
}

.product-page input:checked + span .selection-mark {
    visibility: visible;
}

.product-page .platinum-choice {
    grid-column: 1 / -1;
}

.product-page .selection-text {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: var(--text-sm);
}

.product-page .selection-text output {
    color: var(--ink);
    font-weight: 400;
}

.product-page .size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(2.8em, calc((100% - 40px) / 6))), 1fr));
    gap: 8px;
}

.product-page .size-choice > span {
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 6px 4px;
    font-size: var(--text-ui);
}

.product-page .size-help {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 17px 0 0;
    padding: 14px;
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface-subtle);
    font-size: var(--text-xs);
}

.product-page .size-help .icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.product-page .diamond-choices {
    display: grid;
    gap: 10px;
}

.product-page .diamond-content {
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    min-height: 80px;
    padding: 16px;
}

.product-page .diamond-description {
    min-width: 0;
}

.product-page .diamond-description small {
    font-size: var(--text-sm);
}

.product-page .diamond-content .selection-mark {
    margin-inline-start: 12px;
}

.product-page .diamond-grade {
    margin-inline-start: auto;
    color: var(--ink-soft);
    font-size: var(--text-sm);
    text-align: right;
}

.product-page .stone-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 18px 19px;
    border-radius: 10px;
    background: var(--surface-subtle);
}

.product-page .stone-note .icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--blue-dark);
}

.product-page .stone-note h2 {
    margin: 0 0 4px;
    font-size: var(--text-body);
    font-weight: 700;
    line-height: 1.5;
}

.product-page .stone-note p {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-xs);
    line-height: 1.7;
}

.product-page .stone-note a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 2px;
    font-size: var(--text-xs);
}

.product-page .consultation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Selection summary and real purchase actions. */
.product-page .summary {
    margin-top: 34px;
    padding: 25px;
    border-radius: 13px;
    background: var(--surface-subtle);
}

.product-page .summary h2 {
    margin: 0 0 19px;
    font-size: var(--text-title);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.product-page .selection-list {
    display: grid;
    gap: 9px;
    margin: 0;
    font-size: var(--text-ui);
}

.product-page .selection-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 15px;
}

.product-page .selection-list dt {
    color: var(--muted);
}

.product-page .selection-list dd {
    margin: 0;
    text-align: right;
}

.product-page .summary-total {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.product-page .summary-total > span {
    font-size: var(--text-ui);
}

.product-page .summary-total strong {
    max-width: 100%;
    margin-left: auto;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -.025em;
    text-align: right;
}

.product-page .summary-price-note {
    margin: 8px 0 17px;
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.product-page :where(.primary-button, .secondary-button) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--blue-dark);
    border-radius: 7px;
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.product-page .primary-button {
    width: 100%;
    color: #fff;
    background: var(--blue-dark);
}

@media (hover: hover) and (pointer: fine) {
    .product-page .primary-button:hover {
        color: #fff;
        background: var(--blue-darker);
    }
}

.product-page .primary-button .icon {
    width: 18px;
    height: 18px;
}

.product-page .secondary-button {
    border-color: var(--line-strong);
    color: var(--blue-dark);
    background: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .product-page .secondary-button:hover {
        border-color: var(--blue-dark);
        color: var(--blue-dark);
        background: var(--blue-soft);
    }
}

.product-page .primary-button:disabled,
.product-page [data-cart-button][aria-disabled="true"] {
    border-color: var(--line-strong);
    color: var(--ink-soft);
    background: var(--line);
    cursor: not-allowed;
}

.product-page .summary :where(.primary-button, #customize-link, #quote-link) {
    font-size: var(--text-body);
}

.product-page .summary-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr));
    gap: 12px;
    margin-top: 12px;
}

.product-page .retry-price {
    min-height: 44px;
    margin-bottom: 10px;
    padding: 10px 0;
    color: var(--blue-dark);
    font-size: var(--text-ui);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-page .consultation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 19px 0 0;
    font-size: var(--text-xs);
}

.product-page .consultation .icon {
    width: 18px;
    height: 18px;
}

.product-page :where(.form-error, .noscript) {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #9c5a4a;
    border-radius: 6px;
    color: #66392e;
    background: #fff8f6;
    font-size: var(--text-body);
    line-height: 1.7;
}

.product-page .noscript {
    border-color: var(--line-strong);
    color: var(--ink);
    background: var(--surface-subtle);
}

.product-page .form-error h2 {
    margin: 0 0 10px;
    color: inherit;
    font-size: var(--text-heading);
    line-height: 1.5;
}

.product-page .form-error ul {
    margin: 8px 0;
    padding-left: 1.5em;
}

/* Three finite sweeps; final prices retain their normal line box. */
.product-page :is(#nav-price, #intro-price, #summary-price) {
    display: inline-grid;
    align-items: center;
    min-width: min(9ch, 100%);
    min-height: 1.6em;
    font-variant-numeric: tabular-nums;
}

.product-page #nav-price {
    justify-items: end;
    min-height: 1.2em;
}

.product-page #summary-price {
    justify-items: end;
}

.product-page :is(#nav-price, #intro-price, #summary-price) > .price-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 98px;
    max-width: 100%;
    min-height: 24px;
    padding: 3px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #294657;
    background: linear-gradient(90deg, var(--surface-subtle) 0%, var(--surface-subtle) 33%, #dcecf5 50%, var(--surface-subtle) 67%, var(--surface-subtle) 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
    animation: product-price-wave .65s linear 3 forwards;
}

@keyframes product-price-wave {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

/* Product information: Description, Customize, Quality and Warranty. All content stays visible;
 * only the keyword specifications sit behind a native disclosure. */
.product-page .product-information {
    --info-nav-height: 0px;
    margin: 80px auto 56px;
}

.product-page .information-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 12px 0;
    background: #fff;
}

.product-page .information-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    font-size: var(--text-body);
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.product-page .information-nav a[aria-current] {
    border-color: var(--blue-dark);
    color: #fff;
    background: var(--blue-dark);
}

@media (hover: hover) and (pointer: fine) {
    .product-page .information-nav a:not([aria-current]):hover {
        border-color: var(--blue-dark);
        background: var(--blue-tint);
    }
}

/* The section links stay in view below the product bar where there is room for them. */
@media (min-width: 801px) and (min-height: 601px) {
    .product-page .information-nav {
        position: sticky;
        top: calc(var(--site-header-offset) + var(--product-bar-height));
        z-index: 9;
    }
    .product-page .product-information :where([id], a, button, input, select, textarea, summary, [tabindex]) {
        scroll-margin-block-start: calc(var(--sticky-offset) + var(--info-nav-height));
    }
}

.product-page .information-section {
    margin: 0;
    padding: 64px 0;
    border-top: 1px solid var(--line);
}

.product-page .information-nav + .information-section {
    padding-top: 40px;
    border-top: 0;
}

.product-page .information-feature {
    padding: 52px 56px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--blue-tint);
}

.product-page .information-feature + .information-section {
    border-top: 0;
}

.product-page .information-section > h2 {
    margin: 0 0 28px;
    font-size: clamp(1.625rem, 2.4vw, 1.875rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.product-page .information-content {
    min-width: 0;
}

.product-page .information-content p {
    max-width: 760px;
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: var(--text-body);
    line-height: 1.7;
}

.product-page .information-content .information-lead {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: var(--text-title);
    line-height: 1.55;
    letter-spacing: -.018em;
}

/* Description: the reference photograph stays beside the text while it is read. */
.product-page .description-content {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "photo copy"
        "photo specs";
    align-items: start;
    column-gap: 64px;
}

.product-page .description-copy {
    grid-area: copy;
    min-width: 0;
    max-width: 62ch;
}

.product-page .description-copy p {
    margin: 0 0 22px;
    font-size: var(--text-body);
    line-height: 1.7;
}

.product-page .description-copy .information-lead {
    margin-bottom: 30px;
    font-size: 1.25rem;
    line-height: 1.7;
    letter-spacing: -.012em;
}

.product-page .description-copy :where(h2, h3) {
    margin: 30px 0 14px;
    font-size: var(--text-heading);
    font-weight: 700;
    line-height: 1.5;
}

.product-page .description-copy p:last-child {
    margin-bottom: 0;
}

.product-page .detail-photograph {
    grid-area: photo;
    position: sticky;
    top: calc(var(--sticky-offset) + var(--info-nav-height));
    margin: 0;
    background: #fff;
}

.product-page .detail-photograph img {
    width: 100%;
    height: auto;
    max-height: 460px;
    margin: 0;
    object-fit: contain;
    background: #fff;
}

.product-page .detail-photograph figcaption {
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: var(--text-sm);
    line-height: 1.7;
    text-align: center;
}

.product-page .description-content .reference-specifications {
    grid-area: specs;
    min-width: 0;
    max-width: 62ch;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.product-page :where(.reference-specifications, .product-specifications) {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.product-page :where(.reference-specifications, .product-specifications) h3 {
    margin: 0 0 12px;
    font-size: var(--text-heading);
    font-weight: 700;
    line-height: 1.4;
}

.product-page :where(.reference-specifications, .product-specifications) dl {
    margin: 0;
}

.product-page :where(.reference-specifications, .product-specifications) dl > div {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--text-ui);
    line-height: 1.6;
}

.product-page :where(.reference-specifications, .product-specifications) dt {
    color: var(--ink-soft);
}

.product-page :where(.reference-specifications, .product-specifications) dd {
    margin: 0;
    color: var(--ink);
}

.product-page :where(.reference-specifications, .product-specifications) a {
    display: inline-block;
    min-height: 26px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-page :is(.phone-disclosure) > summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 6px;
    color: var(--blue-dark);
    font-size: var(--text-body);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
    cursor: pointer;
    list-style: none;
}

.product-page :is(.phone-disclosure) > summary::-webkit-details-marker {
    display: none;
}

.product-page :is(.phone-disclosure) > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.product-page :is(.phone-disclosure)[open] > summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.product-page .information-content .information-note {
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* Customize: the offer and its action, the four stages in order, then the full process. */
.product-page .customize-intro {
    max-width: 760px;
}

.product-page .customize-intro .information-actions {
    margin-top: 26px;
}

.product-page .customize-steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin: 52px 0 0;
    padding: 0;
    list-style: none;
}

.product-page .customize-steps li {
    min-width: 0;
    padding-top: 20px;
    border-top: 2px solid #c5d6e0;
    counter-increment: step;
}

.product-page .customize-steps li::before {
    content: "Step " counter(step);
    content: "Step " counter(step) / "";
    display: block;
    margin-bottom: 8px;
    color: var(--blue-dark);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.product-page .customize-steps h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: var(--text-heading);
    font-weight: 700;
    line-height: 1.4;
}

.product-page .information-content .customize-steps p {
    margin: 0;
    font-size: var(--text-body);
    line-height: 1.7;
}

.product-page .information-content .customize-more {
    margin: 36px 0 0;
    font-size: var(--text-body);
}

.product-page .customize-more a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-underline-offset: 5px;
}

/* Sections receive focus from the section links; the heading is the visible landing point. */
.product-page .information-section:focus {
    outline: none;
}

.product-page .information-rows {
    margin: 28px 0 0;
}

.product-page .information-rows > div {
    min-width: 0;
}

.product-page .information-rows dt {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: var(--text-heading);
    font-weight: 700;
    line-height: 1.5;
}

.product-page .information-rows dd {
    margin: 0;
    color: var(--ink-soft);
    font-size: var(--text-body);
    line-height: 1.7;
}

.product-page .information-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 26px;
    margin-top: 30px;
}

.product-page .information-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    font-size: var(--text-body);
    line-height: 1.6;
    text-underline-offset: 5px;
}

.product-page .information-actions .information-action {
    padding: 12px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--blue-dark);
    background: #fff;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease-out, background-color 150ms ease, border-color 150ms ease;
}

.product-page .information-actions .information-action:active {
    transform: scale(.97);
}

@media (hover: hover) and (pointer: fine) {
    .product-page .information-actions .information-action:hover {
        border-color: var(--blue-dark);
        background: #e9f1f5;
    }
}


/* Quality: three standards, each with an icon. */
.product-page .quality-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    margin-top: 36px;
}

.product-page .quality-checks dt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.product-page .quality-checks dt .icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 50%;
    color: var(--blue-dark);
    background: var(--blue-tint);
}

/* Warranty: the three things a customer gets, then the conditions. */
.product-page .warranty-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 16px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.product-page .warranty-facts li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 22px 24px;
    border-radius: 12px;
    background: var(--surface-subtle);
}

.product-page .warranty-facts strong {
    color: var(--ink);
    font-size: var(--text-heading);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.product-page .warranty-facts span {
    color: var(--ink-soft);
    font-size: var(--text-body);
    line-height: 1.6;
}

.product-page .warranty-conditions p {
    max-width: 80ch;
    margin-bottom: 12px;
    font-size: var(--text-ui);
    line-height: 1.7;
}

.product-page .warranty-conditions .information-actions {
    margin-top: 22px;
}

@media (max-width: 1100px) {
    .product-page .customize-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .product-page .quality-checks { gap: 32px; }
}

@media (max-width: 900px) {
    .product-page .description-content {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas:
            "copy"
            "photo"
            "specs";
    }
    .product-page .description-copy,
    .product-page .description-content .reference-specifications { max-width: none; }
    .product-page .detail-photograph {
        position: static;
        width: 100%;
        max-width: 380px;
        margin: 40px auto 0;
    }
    .product-page .detail-photograph img { max-height: 320px; }
}

@media (max-width: 800px) {
    .product-page .information-section { padding: 48px 0; }
    .product-page .information-feature { padding: 32px 28px; }
    .product-page .customize-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; }
    .product-page .customize-intro .information-action { width: 100%; }
    .product-page .quality-checks { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 28px; }
}

@media (max-width: 520px) {
    .product-page .information-section { padding: 40px 0; }
    .product-page .information-nav + .information-section { padding-top: 28px; }
    .product-page .information-feature { padding: 26px 20px 28px; border-radius: 12px; }
    .product-page .information-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr)); }
    .product-page .information-nav a { padding-inline: 12px; }
}

@media (max-height: 600px) {
    .product-page .detail-photograph { position: static; }
}

@media (prefers-reduced-motion: reduce) {
    .product-page .information-actions .information-action:active { transform: none; }
}

/* Increased contrast: secondary text and hairlines move to their strong values. */
@media (prefers-contrast: more) {
    .product-page {
        --muted: var(--ink);
        --ink-soft: var(--ink);
        --line: var(--line-strong);
    }
    .product-page .choice > span { border-color: var(--ink); }
}

@media (forced-colors: active) {
    .product-page .favorite[aria-pressed="true"] svg,
    .product-page .favorite[data-favorite-selected="true"] svg { fill: Highlight; }
    .product-page .information-nav a[aria-current] { border: 3px solid Highlight; }
    .product-page .customize-steps li { border-top-color: CanvasText; }
    .product-page .warranty-facts li { border: 1px solid CanvasText; }
}

.product-page .ordering-note {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.product-page .ordering-note h2 {
    margin: 0 0 10px;
    font-size: var(--text-body);
    font-weight: 600;
    line-height: 1.5;
}

.product-page .ordering-note p {
    margin: 0;
    color: var(--ink-soft);
    font-size: var(--text-ui);
    line-height: 1.7;
}

/* Matching products and genuine recently viewed history. */
.product-page .matching-items {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.product-page .matching-items h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.product-page .matching-note {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.product-page .matching-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-page :where(.matching-products, .recent-products, .product-card-grid) li {
    min-width: 0;
}

.product-page .matching-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
}

.product-page .matching-product img {
    width: 100%;
    height: auto;
    max-height: 180px;
    aspect-ratio: 1;
    margin: 0 0 14px;
    object-fit: contain;
    background: #fff;
}

.product-page .matching-product h3 {
    margin: 0 0 7px;
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.5;
}

.product-page .matching-product p {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}

@media (hover: hover) and (pointer: fine) {
    .product-page .matching-product:hover {
        border-color: var(--blue-dark);
    }
}

.product-page :where(.matching-product, .recent-product, .product-card):focus-visible h3 {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .product-page :where(.matching-product, .recent-product, .product-card):hover h3 {
        text-decoration: underline;
        text-underline-offset: 4px;
    }
}

.product-page .variant-links {
    margin: 36px auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.product-page .variant-links h2 {
    margin: 0 0 8px;
    font-size: var(--text-body);
    font-weight: 600;
    line-height: 1.5;
}

.product-page .variant-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-page .variant-links li { min-width: 0; max-width: 100%; }
.product-page .variant-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: var(--text-ui);
    line-height: 1.6;
    text-decoration: underline;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.product-page .recently-viewed {
    margin: 0 auto 56px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.product-page :where(.recently-viewed, .product-reviews) > h2 {
    margin: 0 0 24px;
    font-size: var(--text-section);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.product-page :where(.recent-products, .product-card-grid) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-page :where(.recent-product, .product-card) {
    display: block;
    height: 100%;
    border-radius: 4px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
}

.product-page :where(.recent-product, .product-card) img {
    width: 100%;
    height: auto;
    max-height: 240px;
    aspect-ratio: 1;
    margin: 0;
    object-fit: contain;
    background: #fff;
}

.product-page :where(.recent-product, .product-card) h3 {
    margin: 16px 0 0;
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.55;
}

.product-page :where(.recent-product, .product-card) p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: var(--text-ui);
}

.product-page .recent-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.product-page .recent-actions:has([hidden]) {
    display: none;
}

.product-page .recent-toggle {
    min-width: 160px;
    min-height: 46px;
    padding: 11px 24px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--blue-dark);
    background: #fff;
    font-size: var(--text-body);
    font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
    .product-page .recent-toggle:hover {
        border-color: var(--blue-dark);
        background: var(--blue-soft);
    }
}

.product-page .product-reviews {
    margin: 0 auto 56px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.product-page .product-reviews figure {
    margin: 24px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
}

.product-page .product-reviews blockquote {
    max-width: 75ch;
    margin: 0 0 14px;
    font-size: var(--text-body);
    line-height: 1.7;
}

.product-page .product-reviews figcaption {
    color: var(--muted);
    font-size: var(--text-ui);
}

.product-page .staff-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    font-size: var(--text-ui);
}

.product-page .staff-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--blue-dark);
    background: #fff;
    font-size: inherit;
    line-height: 1.4;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .product-page .staff-edit-button:hover {
        border-color: var(--blue-dark);
        background: var(--blue-soft);
    }
}

/* Native dialog stays inside the root for both style and focus ownership. */
.product-page dialog {
    width: min(490px, calc(100% - 32px));
    max-height: calc(100svh - 32px);
    margin: auto;
    padding: 56px 32px 32px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 20px 90px #0003;
}

.product-page dialog::backdrop {
    background: #202a2b99;
    backdrop-filter: blur(4px);
}

.product-page .dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.product-page .zoom-dialog {
    width: min(900px, calc(100% - 32px));
    padding: 58px 24px 24px;
}

.product-page .zoom-images {
    display: grid;
    place-items: center;
    background: #fff;
}

.product-page .zoom-images img {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    max-height: 70svh;
    margin: 0;
    object-fit: contain;
}

.product-page #zoom-hand-overlay {
    opacity: .25;
    pointer-events: none;
}

.product-page .zoom-dialog p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: var(--text-ui);
    text-align: center;
}

.product-page .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 12;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 12px 20px;
    border-radius: 7px;
    color: #fff;
    background: #384441;
    box-shadow: 0 4px 25px #0002;
    transform: translateX(-50%);
    font-size: var(--text-ui);
    text-align: center;
}

/* Responsive layout also handles increased default font sizes. */
@media (min-width: 801px) {
    .product-page .gallery.has-hand .image-stage {
        height: calc(var(--stage-height) - 84px);
        min-height: 200px;
    }
}

@media (min-width: 1600px) {
    .product-page .container {
        width: min(1512px, calc(100% - 120px));
    }

    .product-page .product-layout {
        grid-template-columns: minmax(0, 1.65fr) minmax(410px, 1fr);
    }

    .product-page .image-stage {
        --stage-height: min(calc(100svh - var(--sticky-offset) - 140px), 730px);
    }
}

@media (max-width: 1200px) {
    .product-page .container { width: calc(100% - 64px); }
    .product-page .product-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(350px, 1fr);
        gap: 40px;
    }
    .product-page .thumbnails { gap: 4px; }
}

@media (max-width: 1100px) {
}

@media (max-width: 1050px) {
    .product-page .product-nav > .container { gap: 22px; }
    .product-page .product-nav-actions { gap: 18px; }
    .product-page .nav-pricing { min-width: 150px; }
    .product-page .nav-button { max-width: 180px; padding: 10px 14px; }
    .product-page .product-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(330px, 1fr);
        gap: 28px;
    }
}

@media (max-width: 800px) {
    .product-page .container { width: calc(100% - 40px); }
    .product-page .product-nav { margin-bottom: 0; }
    .product-page .product-nav > .container { padding-block: 10px; }
    .product-page .product-nav-name { display: none; }
    .product-page .product-nav-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr));
        flex-shrink: 1;
        gap: 16px;
        width: 100%;
    }
    .product-page .nav-pricing { min-width: 0; text-align: left; }
    .product-page .nav-button { max-width: none; padding: 10px 12px; }
    .product-page #nav-price { justify-items: start; }
    .product-page .product-layout { display: flex; flex-direction: column; gap: 30px; }
    .product-page .gallery { position: static; width: 100%; }
    .product-page .image-stage {
        --stage-height: min(80vw, 440px);
        min-height: 250px;
        border-radius: 12px;
    }
    .product-page .hero-image { padding: 28px 5px 13px; }
    .product-page .thumbnails { gap: 6px; margin-top: 13px; }
    .product-page .thumbnail { flex-basis: 52px; min-height: 50px; padding-inline: 2px; }
    .product-page .thumbnail img { height: 42px; }
    .product-page .video-thumb .play-wrap { height: 24px; }
    .product-page .configuration { align-self: center; width: 100%; max-width: 590px; }
    .product-page .product-intro { padding-bottom: 28px; }
    .product-page .product-intro h1 { max-width: 540px; font-size: 1.9375rem; hyphens: auto; }
    .product-page .option-section { padding-block: 29px; }
    .product-page .size-choice > span { min-height: 48px; }
    .product-page .summary { padding: 23px; }
    .product-page .product-information { margin-top: 55px; }
    .product-page .information-content .information-lead { font-size: 1.3125rem; }
    .product-page .recently-viewed { margin-bottom: 40px; padding-top: 30px; }
    .product-page .recently-viewed h2 { font-size: 1.75rem; }
    .product-page :where(.recent-products, .product-card-grid) {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8.5em, calc((100% - 24px) / 2))), 1fr));
        gap: 28px 24px;
    }
}

@media (max-width: 520px) {
    .product-page .summary :where(.primary-button, #customize-link, #quote-link) { font-size: var(--text-body); }
    .product-page .information-content .information-lead { font-size: 1.25rem; }
    .product-page .information-actions { gap: 10px; margin-top: 25px; }
    .product-page .information-actions .information-action { width: 100%; }
    .product-page :where(.reference-specifications, .product-specifications) dl > div { gap: 14px; }
    .product-page .zoom-dialog { padding: 58px 14px 20px; }
}

@media (max-width: 370px) {
    .product-page .container { width: calc(100% - 28px); }
    .product-page .metal-content { gap: 9px; padding: 13px 10px; }
    .product-page .size-grid { gap: 6px; }
    .product-page .product-intro h1 { font-size: 1.75rem; }
    .product-page .summary { padding-inline: 18px; }
    .product-page :where(.recent-products, .product-card-grid) { column-gap: 18px; }
}

/* A short viewport needs its space for content, including landscape phones. */
@media (max-height: 600px) {
    .product-page { --sticky-offset: calc(var(--site-header-offset) + 16px); }
    .product-page .product-nav,
    .product-page .gallery { position: static; }
    .product-page .image-stage { --stage-height: min(65vw, 460px); }
}

@media (prefers-reduced-motion: reduce) {
    .product-page *,
    .product-page *::before,
    .product-page *::after {
        scroll-behavior: auto !important;
    }
    /* No scaling or sliding; colour and opacity changes stay because they show state. */
    .product-page :active { transform: none !important; }
    .product-page .zoom-dialog,
    .product-page .zoom-dialog:not([open]) { transform: none; }
    .product-page .cart-spinner { display: none; }
    .product-page :is(#nav-price, #intro-price, #summary-price) > .price-loading {
        animation: none;
        background-position: 50% 0;
    }
}

@media (forced-colors: active) {
    .product-page .choice input:checked + span,
    .product-page .thumbnail[aria-pressed="true"] {
        border: 3px solid Highlight;
    }
    .product-page .choice input:focus-visible + span { outline-color: Highlight; }
    .product-page .selection-mark { background: Highlight; forced-color-adjust: none; }
    .product-page .selection-mark::after { border-color: HighlightText; }
    .product-page :where(.swatch, .information-section, .information-nav a, .ordering-note,
        .reference-specifications,
        .product-specifications, .matching-items, .matching-product, .recently-viewed,
        .recent-toggle, .product-reviews, .form-error, .noscript) {
        border-color: CanvasText;
    }
    .product-page :where(.reference-specifications, .product-specifications) dl > div {
        border-color: CanvasText;
    }
    .product-page :where(.primary-button, .secondary-button, .nav-button, .information-action, .staff-edit-button) {
        border-color: ButtonText;
    }
    .product-page :is(#nav-price, #intro-price, #summary-price) > .price-loading {
        border-color: CanvasText;
        color: CanvasText;
        background: Canvas;
        animation: none;
    }
}

/* The inherited footer needs real wrapping opportunities at narrow widths. */
@media (max-width: 480px) {
    body.product-page-view #FooterContent > .footer__sandBar > .grid > p:first-child {
        display: flex;
        flex-wrap: wrap;
        row-gap: 8px;
    }
}

/* Shared-page exceptions apply only while the new product view is active. */
@media (max-width: 800px) {
    /* The legacy shortcut link has a fixed width smaller than enlarged text. */
    body.product-page-view #FooterContent > .grid:first-of-type > ul {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 7em), 1fr));
        gap: 16px;
    }

    body.product-page-view #FooterContent > .grid:first-of-type > ul > li {
        width: 100%;
        min-width: 0;
    }

    body.product-page-view #FooterContent > .grid:first-of-type > ul > li > a {
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: calc(56px + 1.31979rem);
        padding-block: 10px;
    }

    body.product-page-view #FooterContent > .grid:first-of-type > ul > li > a > span {
        overflow-wrap: anywhere;
    }
}

/* Retain the shared 1400px alignment and let the category trail reflow. */
body.product-page-view #breadcrumbs > nav.grid {
    min-width: 0;
    max-width: 1400px;
    padding-inline: 5px;
    font-size: var(--text-sm);
    line-height: 1.5;
}

body.product-page-view #breadcrumbs > nav.grid > ol {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
}

body.product-page-view #breadcrumbs > nav.grid > ol > li {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
}

body.product-page-view #breadcrumbs > nav.grid > ol > li > span[aria-hidden] {
    flex-shrink: 0;
    padding-inline: 8px;
    font: inherit;
}

body.product-page-view #breadcrumbs > nav.grid > ol > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.product-page-view #breadcrumbs > nav.grid > ol > li > a > span {
    min-width: 0;
    padding: 0;
    font: inherit;
}

@media (max-width: 800px) {
    body.product-page-view #breadcrumbs > nav.grid { padding-inline: 20px; }
}

@media (max-width: 370px) {
    body.product-page-view #breadcrumbs > nav.grid { padding-inline: 14px; }
}

/* Use the shared category data in the approved position below the product bar. */
body.product-page-view .product-page #breadcrumbs {
    margin: 25px 0 30px;
    overflow: visible;
}
body.product-page-view .product-page #breadcrumbs > nav.grid {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: var(--text-xs);
}
.product-page .size-help > span,
.product-page .consultation > span,
.product-page .stone-note > div {
    min-width: 0;
}
@media (max-width: 800px) {
    body.product-page-view .product-page #breadcrumbs { margin: 19px 0 24px; }
}

/* Phones: the product bar stays out of the way until the intro price has scrolled off, then
 * shows as one row. If it would still cover more than 30% of the screen (large text), it stays
 * hidden; the intro and the selections summary carry the same price and Add to cart button.
 * Short screens keep the static bar set by the max-height rule. */
@media (max-width: 800px) and (min-height: 601px) {
    .product-page .product-nav {
        position: fixed;
        inset-inline: 0;
        top: var(--site-header-offset);
        visibility: hidden;
        opacity: 0;
        transition: opacity 150ms ease, visibility 0s linear 150ms;
    }
    .product-page .product-nav.is-past-intro:not(.is-oversized) {
        visibility: visible;
        opacity: 1;
        transition: opacity 150ms ease;
    }
    .product-page .product-nav-actions {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
    }
    .product-page .nav-price-note { display: none; }
    .product-page .product-nav > .container { min-height: 0; padding-block: 8px; }
}

/* Phone density (2026-09-23 critique). */
.product-page .summary-price-note:empty { display: none; }

/* The phone disclosures are always open on larger screens, where their summary is not shown. */
@media (min-width: 801px) {
    .product-page .phone-disclosure > summary { display: none; }
}

@media (max-width: 800px) {
    .product-page .phone-disclosure > summary { margin-bottom: 8px; }
    .product-page .phone-disclosure[open] > summary { margin-bottom: 18px; }
    /* All photographs in one row. */
    .product-page .thumbnails { flex-wrap: nowrap; gap: 5px; }
    .product-page .thumbnail,
    .product-page .thumbnail.video-thumb { flex: 1 1 0; min-width: 0; max-width: 66px; padding: 3px; }
    .product-page .thumbnail span { white-space: nowrap; }
}

/* Metal names on one line each: a single-column list on narrow phones. */
@media (max-width: 420px) {
    .product-page .metal-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* Smallest phones: a shorter photo and tighter breadcrumb spacing keep the price in the first view. */
@media (max-width: 370px) and (min-height: 601px) {
    .product-page .image-stage { --stage-height: 70vw; min-height: 220px; }
    body.product-page-view .product-page #breadcrumbs { margin: 12px 0 16px; }
}

/* Phone hierarchy (2026-09-23 critique): one filled primary, headings below the product name,
 * section links that read as navigation, secondary buttons one line each. */
@media (max-width: 800px) {
    .product-page .information-section > h2 { font-size: var(--text-title); }
    .product-page .information-nav a {
        border-color: transparent;
        font-weight: 400;
        text-decoration: underline;
        text-underline-offset: 5px;
    }
    .product-page .information-nav a[aria-current] { text-decoration: none; }
}

@media (max-width: 420px) {
    .product-page .summary-actions { grid-template-columns: minmax(0, 1fr); }
}

/* Motion (feedback file D1, D4 to D8, D10, D13, D14). */

/* D1: buttons acknowledge a press. Option cards and links do not scale. */
.product-page :is(.primary-button, .secondary-button, .nav-button, .icon-button, .information-action) {
    transition: transform var(--press-duration) var(--ease-out), background-color 150ms ease,
        border-color 150ms ease, color 150ms ease;
}

.product-page :is(.primary-button, .secondary-button, .nav-button, .icon-button, .information-action):active {
    transform: scale(.97);
}

/* D5: the video tile is the same height as the others; its label sits on the image. */
.product-page .thumbnail.video-thumb {
    position: relative;
}

.product-page .thumbnail.video-thumb span {
    position: absolute;
    bottom: 4px;
    left: 50%;
    padding: 1px 6px;
    border-radius: 999px;
    color: #fff;
    background: rgba(48, 54, 54, .78);
    transform: translateX(-50%);
}

@media (max-width: 800px) {
    /* Too narrow for the word: a play mark instead. The button keeps its accessible name. */
    .product-page .thumbnail.video-thumb span {
        top: 50%;
        bottom: auto;
        width: 20px;
        height: 20px;
        padding: 0;
        font-size: 0;
        transform: translate(-50%, -50%);
    }
    .product-page .thumbnail.video-thumb span::before {
        position: absolute;
        top: 6px;
        left: 8px;
        border-style: solid;
        border-width: 4px 0 4px 6px;
        border-color: transparent transparent transparent #fff;
        content: "";
    }
}

/* D7: size digits line up. */
.product-page .size-grid {
    font-variant-numeric: tabular-nums;
}

/* D8: a wrapped breadcrumb line never starts with a separator. */
body.product-page-view #breadcrumbs > nav.grid > ol > li > span[aria-hidden="true"] {
    display: none;
}

body.product-page-view #breadcrumbs > nav.grid > ol > li:not(:last-child)::after {
    padding-inline: 8px;
    color: var(--muted);
    content: "/";
    content: "/" / "";
}

/* D10: large text slightly tighter, small grey text slightly looser. */
.product-page .product-intro h1 {
    line-height: 1.15;
    letter-spacing: -.02em;
}

.product-page :is(.nav-price-label, .item-number, #intro-price-label, .price-explanation) {
    letter-spacing: .01em;
}

/* D13: the zoom dialog fades and settles in; closing is quicker. */
.product-page .zoom-dialog {
    opacity: 1;
    transform: none;
    transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out),
        overlay 250ms allow-discrete, display 250ms allow-discrete;
}

.product-page .zoom-dialog:not([open]) {
    opacity: 0;
    transform: scale(.96);
    transition-duration: 150ms;
}

@starting-style {
    .product-page .zoom-dialog[open] {
        opacity: 0;
        transform: scale(.96);
    }
}

.product-page dialog::backdrop {
    transition: opacity 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete;
}

@starting-style {
    .product-page dialog[open]::backdrop {
        opacity: 0;
    }
}

/* D14: Add to cart shows that the press registered while the next page loads. */
.product-page [data-cart-button].is-pending {
    cursor: progress;
}

.product-page .cart-spinner {
    display: inline-block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-inline-end: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -3px;
    animation: product-cart-spin 700ms linear infinite;
}

@keyframes product-cart-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .product-page .cart-spinner { display: none; }
    /* The dialog still fades, but does not scale. */
    .product-page .zoom-dialog,
    .product-page .zoom-dialog:not([open]) { transform: none; }
    @starting-style {
        .product-page .zoom-dialog[open] { transform: none; }
    }
}

/* Stuck section links read as one full-width bar with the product bar above them: a white band
 * the width of the window behind the links, and the scroll shadow along its full width. */
.product-page {
    overflow-x: clip;
}

@media (min-width: 801px) and (min-height: 601px) {
    .product-page .information-nav::before {
        position: absolute;
        inset-block: 0;
        inset-inline: calc(50% - 50vw);
        z-index: -1;
        background: #fff;
        content: "";
    }
    .product-page .information-nav.is-stuck::before {
        box-shadow: 0 5px 10px -5px rgba(48, 54, 54, .18);
    }
}

/* The shared header is 97% white, which lets page text show through behind it while scrolling.
 * Solid on product pages only. */
body.product-page-view #header,
body.product-page-view header.header--searching {
    background-color: #fff !important;
}

/* Financing link under the price. */
.product-page .financing-note {
    margin: 0;
    font-size: var(--text-sm);
}

.product-page .financing-note a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-underline-offset: 4px;
}

/* Enlarged view: previous and next photograph. */
.product-page .zoom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.product-page .zoom-nav p {
    flex: 1;
    margin: 0;
}

.product-page .zoom-nav .icon-button {
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.product-page .zoom-images {
    touch-action: pan-y pinch-zoom;
}
