:root {
    --product-black: #0d0d0d;
    --product-ink: #171717;
    --product-paper: #f6f4ef;
    --product-muted: #e9e6df;
    --product-line: rgb(17 17 17 / 18%);
}

.product-page {
    min-height: 100vh;
    background: var(--product-paper);
    color: var(--product-ink);
    font-family: Arial, Helvetica, sans-serif;
}

.product-auto-scroll-notice {
    position: fixed;
    z-index: 58;
    left: 50%;
    bottom: clamp(1.5rem, 5vh, 3.5rem);
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.15rem;
    border: 1px solid rgb(255 255 255 / 22%);
    background: rgb(14 14 16 / 58%);
    box-shadow: 0 0.8rem 2.5rem rgb(0 0 0 / 18%);
    color: rgb(255 255 255 / 92%);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    opacity: 0;
    pointer-events: none;
    text-transform: uppercase;
    transform: translate(-50%, 0.75rem);
    transition: opacity 260ms ease, transform 260ms ease;
    backdrop-filter: blur(10px);
    gap: 0.7rem;
}

.product-auto-scroll-notice[hidden] {
    display: none;
}

.product-auto-scroll-notice.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.product-auto-scroll-notice > span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #c59466;
    box-shadow: 0 0 0 0 rgb(197 148 102 / 45%);
    animation: product-information-pulse 1.4s ease-out infinite;
}

@keyframes product-information-pulse {
    0% { box-shadow: 0 0 0 0 rgb(197 148 102 / 45%); }
    70%, 100% { box-shadow: 0 0 0 0.55rem rgb(197 148 102 / 0%); }
}

.product-hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    overflow: hidden;
    place-items: center;
    background: #252525;
    color: #fff;
}

.product-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: product-hero-reveal 1.3s ease both;
}

.product-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / 36%), rgb(0 0 0 / 10%) 45%, rgb(0 0 0 / 48%));
}

.product-hero-content {
    position: relative;
    z-index: 1;
    max-width: 80rem;
    padding: 8rem 1.5rem 4rem;
    text-align: center;
}

.product-hero-content p,
.product-section-kicker,
.product-section-heading p,
.product-placeholder-form > p:first-child,
.product-material-modal-header p {
    margin: 0 0 1rem;
    font-size: 0.66rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.product-hero-content h1 {
    max-width: 16ch;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 4vw, 4.25rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 0.92;
    text-wrap: balance;
}

.product-scroll-cue {
    position: absolute;
    z-index: 2;
    bottom: 2rem;
    display: grid;
    width: 2.5rem;
    height: 3.5rem;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 2rem;
    place-items: start center;
}

.product-scroll-cue span {
    width: 1px;
    height: 1rem;
    margin-top: 0.65rem;
    background: #fff;
    animation: product-scroll-cue 1.8s ease infinite;
}

.product-overview {
    padding: clamp(2.25rem, 4vw, 4rem) clamp(1.25rem, 7vw, 8rem);
}

.product-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.product-action-button {
    min-width: min(18rem, 45vw);
    padding: 1.2rem 1.6rem;
    border: 1px solid var(--product-black);
    background: var(--product-paper);
    color: var(--product-black);
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease;
}

.product-action-button--dark,
.product-action-button:hover,
.product-action-button:focus-visible {
    background: var(--product-black);
    color: #fff;
}

.product-detail-favorite {
    width: 3.45rem;
    height: 3.45rem;
    align-self: center;
    border-color: var(--product-black);
    background: transparent;
}

.product-copy {
    max-width: 52rem;
    margin-inline: auto;
    text-align: center;
}

.product-copy h2,
.product-section-heading h2,
.product-material-modal-header h2,
.product-placeholder-form h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4.8rem);
    font-weight: 400;
    line-height: 1.05;
    text-wrap: balance;
}

.product-lead {
    margin: 0 auto;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.65;
}

.product-description {
    max-width: 44rem;
    margin: 1.5rem auto 0;
    color: #5d5a54;
    font-size: 0.95rem;
    line-height: 1.85;
}

.product-gallery-section,
.product-related-section {
    padding: clamp(4.5rem, 9vw, 9rem) 0;
    overflow: hidden;
    background: #fff;
}

.product-gallery-section {
    padding-block: clamp(3rem, 6vw, 6rem);
}

.product-related-section--muted {
    background: var(--product-muted);
}

.product-section-heading {
    max-width: 56rem;
    margin: 0 auto clamp(2.5rem, 5vw, 5rem);
    padding-inline: 1.25rem;
    text-align: center;
}

.product-section-heading h2 {
    font-size: clamp(2rem, 3.5vw, 4rem);
}

.product-slider-shell {
    position: relative;
}

.product-gallery-track,
.product-related-track {
    display: grid;
    grid-auto-flow: column;
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
    overflow-x: auto;
    padding: 0 clamp(1.25rem, 6vw, 7rem) 1.5rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

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

.product-gallery-track {
    grid-auto-columns: 70vw;
    gap: clamp(0.75rem, 1.25vw, 1.25rem);
    padding-inline: 15vw;
    scroll-padding-inline: 15vw;
    cursor: grab;
    user-select: none;
}

.product-gallery-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.product-gallery-slide {
    aspect-ratio: 16 / 9;
    height: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #ebe8e2;
    cursor: zoom-in;
    scroll-snap-align: center;
}

.product-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 650ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.product-gallery-section .product-section-heading {
    margin-bottom: clamp(1.75rem, 3vw, 3rem);
}

.product-gallery-section .product-section-heading h2 {
    font-size: clamp(1.3rem, 2.5vw, 2.75rem);
}

.product-gallery-slide:hover img {
    transform: scale(1.025);
}

.product-slider-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 88%);
    box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 12%);
    color: #111;
    cursor: pointer;
    place-items: center;
    transform: translateY(-50%);
}

.product-slider-arrow--previous {
    inset-inline-start: clamp(0.5rem, 2vw, 2rem);
}

.product-slider-arrow--next {
    inset-inline-end: clamp(0.5rem, 2vw, 2rem);
}

.product-materials-section {
    padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 7vw, 8rem);
    background: var(--product-black);
    color: #fff;
}

.product-material-buttons {
    max-width: 78rem;
    margin-inline: auto;
    border-top: 1px solid rgb(255 255 255 / 28%);
}

.product-material-buttons button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: clamp(1.5rem, 3vw, 2.6rem) 0;
    border: 0;
    border-bottom: 1px solid rgb(255 255 255 / 28%);
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3vw, 3.2rem);
    text-align: start;
}

.product-material-buttons button span:last-child {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    transition: transform 180ms ease;
}

.product-material-buttons button:hover span:last-child,
.product-material-buttons button:focus-visible span:last-child {
    transform: translate(0.35rem, -0.35rem);
}

.product-related-track {
    gap: 1.25rem;
    grid-auto-columns: calc(25% - 0.9375rem);
    scroll-padding-inline: clamp(1.25rem, 6vw, 7rem);
}

.product-related-card {
    scroll-snap-align: start;
}

.product-related-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-related-image {
    display: grid;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #efede7;
    place-items: center;
}

.product-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.product-related-card a:hover img {
    transform: scale(1.035);
}

.product-related-placeholder {
    color: #aaa69e;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.25em;
}

.product-related-name {
    display: block;
    padding-top: 1.15rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: none;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 4rem clamp(1.25rem, 6vw, 6rem);
    background: var(--product-black);
    color: #fff;
}

.product-footer p {
    margin: 0;
    color: rgb(255 255 255 / 58%);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.product-dialog {
    width: min(92vw, 72rem);
    max-height: 88vh;
    padding: 0;
    overflow: auto;
    border: 0;
    background: var(--product-paper);
    color: var(--product-ink);
    box-shadow: 0 2rem 6rem rgb(0 0 0 / 35%);
}

.product-dialog::backdrop {
    background: rgb(0 0 0 / 72%);
    backdrop-filter: blur(0.35rem);
}

.product-dialog-close {
    position: sticky;
    z-index: 4;
    top: 1rem;
    float: inline-end;
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    margin: 1rem 1rem -3.8rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: rgb(246 244 239 / 88%);
    color: #111;
    cursor: pointer;
    font-size: 1.4rem;
    place-items: center;
}

.product-material-modal-content,
.product-lead-dialog-content {
    padding: clamp(3.5rem, 7vw, 7rem) clamp(1.25rem, 6vw, 6rem);
}

.product-material-modal-header {
    margin-bottom: 3rem;
    text-align: center;
}

.product-material-section {
    margin: 3.5rem 0 1.25rem;
    color: var(--product-muted);
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.product-material-section + .product-material-type {
    margin-top: 0;
}

.product-material-type + .product-material-type {
    margin-top: 4rem;
}

.product-material-type h3 {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--product-line);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 2rem 1.25rem;
}

.product-material-sample {
    min-width: 0;
    text-align: center;
}

.product-material-preview {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-material-preview img,
.product-material-color {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 0.8rem;
    border-radius: 50%;
    background: var(--sample-color);
    object-fit: cover;
}

.product-material-sample strong,
.product-material-sample > span:last-child {
    display: block;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-material-sample > span:last-child {
    margin-top: 0.25rem;
    color: #77736d;
}

.product-material-empty {
    text-align: center;
}

.product-lead-dialog {
    width: min(94vw, 58rem);
}

.product-lead-header {
    max-width: 42rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.product-lead-header > p:first-child {
    margin: 0 0 1rem;
    font-size: 0.66rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.product-lead-header > p:last-child {
    max-width: 36rem;
    margin: 1.5rem auto 0;
    color: #6e6b65;
    line-height: 1.65;
}

.product-lead-form {
    position: relative;
}

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

.product-lead-form .input {
    margin-bottom: 1.25rem;
}

.product-lead-form label,
.product-store-options legend,
.product-readonly-field span {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-lead-form input[type="text"],
.product-lead-form input[type="email"],
.product-lead-form input[type="tel"],
.product-lead-form input[type="date"],
.product-lead-form input[type="time"],
.product-lead-form textarea {
    width: 100%;
    padding: 0.9rem 0;
    border: 0;
    border-bottom: 1px solid var(--product-line);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.product-lead-form input:focus,
.product-lead-form textarea:focus {
    border-bottom-color: var(--product-black);
}

.product-lead-form .checkbox {
    margin-bottom: 0.8rem;
}

.product-lead-form .checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

.product-lead-form input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: 0.08rem;
}

.product-store-options {
    padding: 0;
    margin: 0 0 2rem;
    border: 0;
}

.product-store-options > label {
    display: block;
    padding: 1rem;
    margin: 0 0 0.6rem;
    border: 1px solid var(--product-line);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

.product-store-options input {
    margin-inline-end: 0.65rem;
}

.product-readonly-field {
    padding: 1.1rem;
    margin-bottom: 2rem;
    background: #ebe8e1;
}

.product-readonly-field span {
    margin-bottom: 0.35rem;
}

.product-readonly-field strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 400;
}

.product-form-submit {
    width: 100%;
    padding: 1.1rem 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--product-black);
    background: var(--product-black);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-form-submit:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.product-form-status {
    min-height: 1.5rem;
    margin: 1rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
}

.product-form-status.is-success {
    color: #27653a;
}

.product-form-status.is-error,
.product-form-notice {
    color: #943a2f;
}

.product-honeypot {
    position: absolute;
    inset-inline-start: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.product-lightbox-dialog {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    overflow: hidden;
    background: #090909;
    color: #fff;
}

.product-lightbox-stage {
    display: grid;
    width: 100%;
    height: 100%;
    overflow: hidden;
    place-items: center;
}

.product-lightbox-dialog img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1);
    transform-origin: center;
    transition: transform 180ms ease;
    will-change: transform;
}

.product-lightbox-close {
    position: absolute;
    inset-inline-end: 1rem;
    float: none;
    background: rgb(0 0 0 / 55%);
    color: #fff;
}

.product-lightbox-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid rgb(255 255 255 / 40%);
    border-radius: 50%;
    background: rgb(0 0 0 / 48%);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    place-items: center;
    transform: translateY(-50%);
}

.product-lightbox-nav--previous {
    inset-inline-start: 1rem;
}

.product-lightbox-nav--next {
    inset-inline-end: 1rem;
}

.product-lightbox-toolbar {
    position: absolute;
    z-index: 4;
    bottom: 1rem;
    inset-inline-start: 50%;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem;
    border-radius: 999px;
    background: rgb(0 0 0 / 65%);
    backdrop-filter: blur(12px);
    transform: translateX(-50%);
}

.product-lightbox-toolbar button {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 12%);
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.product-lightbox-toolbar > span {
    min-width: 3rem;
    padding-inline: 0.5rem;
    color: rgb(255 255 255 / 78%);
    font-size: 0.72rem;
    text-align: center;
}

@keyframes product-hero-reveal {
    from { opacity: 0; transform: scale(1.035); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes product-scroll-cue {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(0.85rem); }
}

@media (max-width: 44rem) {
    .product-auto-scroll-notice {
        width: max-content;
        max-width: calc(100% - 2rem);
        justify-content: center;
        bottom: 1.25rem;
        text-align: center;
    }

    .product-actions {
        align-items: stretch;
        margin-top: 0;
        flex-direction: column;
    }

    .product-action-button {
        width: 100%;
        min-width: 0;
    }

    .product-detail-favorite {
        width: 3.45rem;
        align-self: center;
    }

    .product-overview {
        padding-block: 2.5rem;
    }

    .product-gallery-track {
        grid-auto-columns: 82vw;
        padding-inline: 9vw;
        scroll-padding-inline: 9vw;
    }

    .product-gallery-slide {
        height: auto;
        max-height: none;
    }

    .product-related-track {
        grid-auto-columns: 72vw;
        gap: 0.75rem;
    }

    .product-slider-arrow {
        display: none;
    }

    .product-gallery-section .product-slider-arrow {
        display: grid;
        width: 2.75rem;
        height: 2.75rem;
    }

    .product-lightbox-nav {
        width: 2.75rem;
        height: 2.75rem;
    }

    .product-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (min-width: 44.01rem) and (max-width: 70rem) {
    .product-related-track {
        gap: 1rem;
        grid-auto-columns: calc(50% - 0.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-auto-scroll-notice,
    .product-auto-scroll-notice > span {
        animation: none !important;
        transition: none !important;
    }
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
