.product-page {
    padding: 8px 0 48px;
    color: var(--nbn-ink, #202820);
}

.product-breadcrumbs {
    margin: 8px 0 32px;
    color: var(--nbn-muted, #687064);
    font-size: 12px;
}
.product-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.product-breadcrumbs li + li::before {
    margin-right: 12px;
    color: #9b9e92;
    content: '/';
}
.product-breadcrumbs a:hover,
.product-review-link:hover {
    color: var(--nbn-accent, #56644f);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(32px, 5vw, 76px);
}
.product-gallery,
.product-information {
    min-width: 0;
}
.product-gallery-track {
    display: flex;
    overflow-x: auto;
    border: 1px solid var(--nbn-line, #dedfd5);
    background: #eeede5;
    scrollbar-width: thin;
    scrollbar-color: #aab09d transparent;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}
.product-gallery-frame {
    display: grid;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    aspect-ratio: 1 / 1.08;
    place-items: center;
    scroll-snap-align: start;
    scroll-margin-top: 120px;
}
.product-gallery-frame img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}
.product-gallery-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0;
    color: var(--nbn-muted, #687064);
    font-size: 11px;
}
.product-gallery-footer p { margin: 0; }
.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 0;
    padding: 3px 3px 9px;
    list-style: none;
}
.product-thumbnails li { flex: 0 0 72px; }
.product-thumbnails a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--nbn-line, #dedfd5);
    background: #eeede5;
    transition: border-color 160ms ease;
}
.product-thumbnails a:hover { border-color: var(--nbn-accent, #56644f); }
.product-thumbnails img {
    display: block;
    width: 72px;
    height: 78px;
    object-fit: contain;
}
.product-image-empty {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    aspect-ratio: 1 / 1.08;
    border: 1px solid var(--nbn-line, #dedfd5);
    background: #eeede5;
    color: var(--nbn-muted, #687064);
    font-size: 12px;
}
.product-empty-mark {
    width: 120px;
    height: auto;
    opacity: .35;
}

.product-intro { padding-top: 6px; }
.product-title {
    margin: 14px 0 22px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.07;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.product-description {
    margin: 0;
    color: var(--nbn-muted, #687064);
    font-size: 14px;
    line-height: 1.85;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.product-variants {
    margin-top: 34px;
    border-top: 1px solid var(--nbn-line, #dedfd5);
}
.product-tag-navigation { margin-top: 22px; }
.product-variant-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.product-variant-options li { flex: 1 1 110px; }
.product-variant-options a { display: flex; height: 100%; min-height: 78px; flex-direction: column; justify-content: center; gap: 5px; padding: 12px; border: 1px solid var(--nbn-line, #dedfd5); background: var(--nbn-surface, #fdfcf8); color: var(--nbn-ink, #202820); font-size: 12px; overflow-wrap: anywhere; }
.product-variant-options a strong { font-size: 15px; }
.product-variant-options a[aria-current="true"] { border-color: var(--nbn-accent, #56644f); box-shadow: inset 0 0 0 1px var(--nbn-accent, #56644f); }
.product-variant-options a:hover { border-color: var(--nbn-accent, #56644f); }
.product-option-stock { color: var(--nbn-muted, #687064); font-size: 10px; }
.product-detail[aria-busy="true"] .product-gallery, .product-detail[aria-busy="true"] .product-variant { opacity: .65; }
.product-section-heading { padding: 23px 0 17px; }
.product-section-heading h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.product-variant {
    margin-bottom: 12px;
    padding: 20px;
    border: 1px solid var(--nbn-line, #dedfd5);
    background: var(--nbn-surface, #fdfcf8);
}
.product-variant-top,
.product-variant-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.product-variant-top { align-items: start; }
.product-variant-details {
    min-width: 0;
    overflow-wrap: anywhere;
}
.product-variant-details h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}
.product-sku {
    margin: 5px 0 0;
    color: var(--nbn-muted, #687064);
    font-size: 11px;
    letter-spacing: 0.04em;
}
.product-price {
    flex-shrink: 0;
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 27px;
    line-height: 1.1;
    white-space: nowrap;
}
.product-price span {
    margin-left: 2px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.04em;
}
.product-variant-bottom {
    flex-wrap: wrap;
    margin-top: 21px;
}
.product-availability {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: var(--nbn-accent, #56644f);
    font-size: 11px;
    line-height: 1.6;
}
.product-stock-dot {
    width: 5px;
    height: 5px;
    margin-right: 3px;
    border-radius: 50%;
    background: currentColor;
}
.product-stock-count,
.product-variant--unavailable .product-availability { color: var(--nbn-muted, #687064); }
.product-variant-bottom form {
    flex: 1 0 auto;
    max-width: 230px;
    margin: 0;
}
.product-add-button { width: 100%; }
.product-add-button:disabled {
    border-color: #dedfd5;
    background: #e7e8df;
    color: #72786b;
    cursor: not-allowed;
    opacity: 1;
}
.product-variants-empty {
    padding: 18px 0;
    color: var(--nbn-muted, #687064);
    font-size: 14px;
}
.product-review-link {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    padding: 8px 0;
    font-size: 12px;
}

.product-review {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
    gap: clamp(32px, 7vw, 110px);
    margin-top: clamp(60px, 8vw, 112px);
    padding-top: 44px;
    border-top: 1px solid var(--nbn-line, #dedfd5);
    scroll-margin-top: 120px;
}
.product-review-intro h2 {
    max-width: 340px;
    margin: 14px 0 18px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -0.035em;
}
.product-review-intro > p:last-child,
.product-review-login > p {
    max-width: 360px;
    margin: 0;
    color: var(--nbn-muted, #687064);
    font-size: 13px;
    line-height: 1.8;
}
.product-review-form { display: grid; gap: 22px; }
.product-field { display: grid; min-width: 0; gap: 9px; }
.product-field label { font-size: 12px; font-weight: 600; }
.product-field label span { color: var(--nbn-muted, #687064); font-weight: 400; }
.product-field select,
.product-field textarea,
.product-field input {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid var(--nbn-line, #dedfd5);
    border-radius: 0;
    background: var(--nbn-surface, #fdfcf8);
    color: var(--nbn-ink, #202820);
    font: inherit;
    font-size: 13px;
}
.product-field textarea { resize: vertical; }
.product-rating-field { max-width: 180px; }
.product-upload-field input { padding: 10px; font-size: 12px; }
.product-upload-field input::file-selector-button {
    margin-right: 12px;
    padding: 8px 10px;
    border: 0;
    background: #e9ece2;
    color: var(--nbn-ink, #202820);
    cursor: pointer;
}
.product-upload-field p,
.product-review-submit p {
    margin: 0;
    color: var(--nbn-muted, #687064);
    font-size: 11px;
    line-height: 1.6;
}
.product-review-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.product-review-login {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--nbn-line, #dedfd5);
    background: var(--nbn-surface, #fdfcf8);
}
.product-page a:focus-visible,
.product-page button:focus-visible,
.product-gallery-track:focus-visible,
.product-field input:focus-visible,
.product-field select:focus-visible,
.product-field textarea:focus-visible {
    outline: 2px solid var(--nbn-accent, #56644f);
    outline-offset: 4px;
}
.product-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 850px) {
    .product-detail { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .product-gallery-frame,
    .product-image-empty { aspect-ratio: 1 / 1; max-height: 680px; }
    .product-review { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .product-review-intro h2,
    .product-review-intro > p:last-child { max-width: none; }
}

@media (max-width: 480px) {
    .product-breadcrumbs { margin-bottom: 22px; }
    .product-title { font-size: 38px; }
    .product-variant { padding: 17px; }
    .product-variant-top { flex-wrap: wrap; }
    .product-variant-bottom { align-items: stretch; flex-direction: column; gap: 14px; }
    .product-variant-bottom form { max-width: none; }
    .product-review-login { padding: 22px; }
    .product-review-submit .nbn-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .product-gallery-track { scroll-behavior: auto; }
    .product-thumbnails a { transition: none; }
}
