.product-page__crumbs {
    padding-block: 1rem 1.25rem;
}

.product-page__crumbs .breadcrumb__item:last-child {
    display: none;
}

.product {
    display: grid;
    gap: 1.75rem;
}

.product-gallery {
    position: relative;
    margin-inline: calc(-1 * var(--gutter));
}

.product-gallery__thumbs {
    display: none;
}

.product-gallery__stage {
    position: relative;
}

.product-gallery__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    list-style: none;
}

.product-gallery__track::-webkit-scrollbar {
    display: none;
}

.product-gallery__slide {
    background: var(--cream);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.product-gallery__open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.product-gallery__picture img,
.product-gallery__thumb-picture img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.product-gallery__status {
    position: absolute;
    left: var(--gutter);
    bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    pointer-events: none;
}

.product-gallery__counter {
    color: var(--ink);
    font: 500 0.75rem/1 var(--font-sans);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.product-gallery__progress {
    position: relative;
    width: 5.5rem;
    height: 1px;
    overflow: hidden;
    background: rgba(29, 39, 72, 0.18);
}

.product-gallery__progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(100% / var(--count));
    background: var(--ink);
    transform: translateX(calc(var(--index, 0) * 100%));
    transition: transform 0.4s var(--ease-out);
}

.product-gallery__zoom {
    position: absolute;
    top: 0.9rem;
    right: var(--gutter);
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    cursor: pointer;
}

.product-gallery__zoom .icon {
    width: 1.2rem;
    height: 1.2rem;
}

.product-summary {
    max-width: 34rem;
}

.product-summary__brand {
    color: var(--gold-700);
    font: 600 0.6875rem/1.2 var(--font-sans);
    letter-spacing: 0.24em;
    text-decoration: none;
    text-transform: uppercase;
}

.product-summary__brand:hover {
    color: var(--ink);
}

.product-summary__title {
    margin-top: 0.7rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.55rem + 1.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.08;
    font-variant-numeric: lining-nums;
}

.product-summary__price {
    margin: 0.9rem 0 0;
    color: var(--ink);
    font: 500 1.2rem/1.2 var(--font-sans);
    font-variant-numeric: lining-nums tabular-nums;
}

.product-summary__sku {
    margin: 0.45rem 0 0;
    color: var(--ink-mute);
    font-size: 0.78rem;
}

.product-notes {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.1rem;
    list-style: none;
}

.product-notes li {
    position: relative;
    padding-left: 1rem;
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.product-notes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--gold-500);
}

.product-buy {
    display: grid;
    gap: 1.4rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.product-buy__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
}

.product-buy__submit {
    min-height: 3.25rem;
}

.product-buy__submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.product-buy__wish {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border: 1px solid var(--line-strong);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.25s;
}

.product-buy__wish:hover {
    border-color: var(--navy-700);
}

.product-buy__wish .icon {
    transition: fill 0.25s, transform 0.25s var(--ease-out);
}

.product-buy__wish[aria-pressed="true"] .icon {
    fill: var(--navy-700);
    transform: scale(1.06);
}

.product-buy__stock {
    margin: -0.5rem 0 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.6;
}

.product-buy__consult .icon {
    width: 1.15rem;
    height: 1.15rem;
}

.product-promises {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.25rem;
    margin-top: 1.75rem;
    padding-block: 1.25rem;
    border-block: 1px solid var(--line);
    list-style: none;
}

.product-promise {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.35;
}

.product-promise .icon {
    width: 1.3rem;
    height: 1.3rem;
    color: var(--gold-700);
}

.product-specs {
    display: grid;
    gap: 0.45rem;
    list-style: none;
}

.product-specs li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--ink);
}

.product-specs li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 0.45rem;
    height: 1px;
    background: var(--gold-500);
}

.product-facts {
    display: grid;
    gap: 0.4rem;
    margin: 0.2rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
}

.product-facts__row {
    display: flex;
    gap: 1rem;
}

.product-facts dt {
    min-width: 6.5rem;
    color: var(--ink-mute);
}

.product-facts dd {
    margin: 0;
    color: var(--ink);
}

.product-facts a {
    color: inherit;
    text-underline-offset: 3px;
}

.product-page .shelf {
    border-top: 1px solid var(--line);
}

.product-page .shelf:first-of-type {
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.7rem 0 calc(0.7rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(253, 252, 249, 0.97);
    backdrop-filter: blur(8px);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-sheet);
}

.buy-bar.is-visible {
    transform: none;
}

.buy-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.buy-bar__text {
    min-width: 0;
}

.buy-bar__name {
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buy-bar__price {
    margin: 0.15rem 0 0;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    font-variant-numeric: lining-nums tabular-nums;
}

.buy-bar__button {
    flex: none;
    min-height: 2.9rem;
    padding-inline: 1.5rem;
}

.zoom__panel {
    background: var(--cream);
}

.zoom__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem var(--gutter);
}

.zoom__counter {
    margin: 0;
    color: var(--ink);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.zoom__close {
    background: rgba(255, 255, 255, 0.85);
}

.zoom__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    height: 100%;
    overflow-x: auto;
    overscroll-behavior: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    list-style: none;
}

.zoom__track::-webkit-scrollbar {
    display: none;
}

.zoom__slide {
    display: grid;
    place-items: center;
    overflow: hidden;
    scroll-snap-align: start;
}

.zoom__frame {
    --zoom-scale: 2;
    width: min(100%, calc(100dvh * 0.8));
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.zoom.is-zoomable .zoom__frame {
    cursor: zoom-in;
}

.zoom__frame.is-zoomed {
    cursor: zoom-out;
    touch-action: none;
}

.zoom__picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
    transition: transform 0.4s var(--ease-out);
}

.zoom__frame.is-zoomed .zoom__picture img {
    transform: scale(var(--zoom-scale));
}

.zoom__frame.is-panning .zoom__picture img {
    transition: transform 0.4s var(--ease-out), transform-origin 0.08s linear;
}

.zoom__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: none;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.zoom__arrow:hover:not(:disabled) {
    border-color: var(--navy-700);
    background: var(--navy-700);
    color: var(--white);
}

.zoom__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.zoom__arrow--previous {
    left: 1.5rem;
}

.zoom__arrow--next {
    right: 1.5rem;
}

.zoom__hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    margin: 0;
    color: var(--ink-mute);
    font-size: 0.78rem;
    text-align: center;
    pointer-events: none;
}

.zoom:not(.is-zoomable) .zoom__hint {
    visibility: hidden;
}

.zoom__hint-pointer {
    display: none;
}

.size-guide__body {
    display: grid;
    gap: 1.25rem;
    padding: 0 1.5rem 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.65;
}

.size-guide__body p {
    margin: 0;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: lining-nums tabular-nums;
}

.size-table th,
.size-table td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
    text-align: left;
}

.size-table thead th {
    color: var(--ink);
    font: 600 0.68rem/1.2 var(--font-sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.size-table tbody th {
    color: var(--ink);
    font-weight: 600;
}

.size-guide__note {
    color: var(--ink-mute);
    font-size: 0.84rem;
}

@media (min-width: 48em) {
    .product-page__crumbs .breadcrumb__item:last-child {
        display: inline-flex;
    }

    .product {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 5rem);
        align-items: start;
    }

    .product-gallery {
        margin-inline: 0;
    }

    .product-gallery__status {
        left: 1.25rem;
    }

    .product-gallery__zoom {
        right: 1rem;
    }

    .product__summary {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }
}

@media (min-width: 64em) {
    .product-gallery {
        display: grid;
        grid-template-columns: 4.5rem minmax(0, 1fr);
        gap: 1.25rem;
        align-items: start;
    }

    .product-gallery--single {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-gallery__thumbs {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
        display: grid;
        gap: 0.65rem;
        list-style: none;
    }

    .product-gallery__thumb {
        display: block;
        width: 100%;
        padding: 0;
        border: 1px solid transparent;
        background: var(--cream);
        cursor: pointer;
        opacity: 0.72;
        transition: border-color 0.25s, opacity 0.25s;
    }

    .product-gallery__thumb:hover {
        opacity: 1;
    }

    .product-gallery__thumb.is-active {
        border-color: var(--ink);
        opacity: 1;
    }

    .product-gallery__track {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        gap: 1rem;
        overflow: visible;
        scroll-snap-type: none;
    }

    .product-gallery__picture img {
        width: min(100%, calc((100vh - var(--header-h) - 3rem) * 0.8));
        margin-inline: auto;
    }

    .product-gallery__status,
    .product-gallery__zoom {
        display: none;
    }

    .buy-bar {
        display: none;
    }

    .zoom__arrow {
        display: inline-grid;
    }
}

@media (hover: hover) and (pointer: fine) {
    .zoom__hint-touch {
        display: none;
    }

    .zoom__hint-pointer {
        display: inline;
    }
}
