.product-detail { padding: 32px 0 48px; color: #302d2c; }
.product-detail h1 { margin-bottom: 14px; letter-spacing: -.025em; line-height: 1.2; }
.product-detail .product-gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 2;
    padding: 0;
    overflow: hidden;
    background: #f7f7f6;
    border-radius: 2px;
    touch-action: pan-y pinch-zoom;
}
.product-detail .gallery-arrow {
    position: absolute;
    top: calc(50% - 20px);
    z-index: 1;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    background: #ffffffed;
    color: #302d2c;
    border: 1px solid #e5e1df;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.product-detail .gallery-prev { left: 8px; }
.product-detail .gallery-next { right: 8px; }
.product-detail .gallery-arrow:hover { color: #a81a6b; }
.product-detail .gallery-count { position: absolute; z-index: 1; bottom: 10px; right: 12px; background: #fffffff0; padding: 3px 9px; border-radius: 12px; font-size: 12px; color: #6c6265; }
.product-detail [data-gallery-thumbnail] { border-radius: 2px; width: 72px; height: 48px; aspect-ratio: 3 / 2; }
.product-detail [data-gallery-thumbnail][aria-pressed="true"] { border-color: #a81a6b; }
.product-detail :is(button, [data-gallery-stage]):focus-visible { outline: 2px solid #a81a6b; outline-offset: 3px; }
.product-detail .product-how-it-works { background: #f7f7f6; padding: 24px; line-height: 1.8; }
@media (max-width: 600px) {
    .product-detail { padding-top: 24px; }
}

.product-detail .pattern-sizing-info {
    margin: 1.5rem 0;
}
.product-detail .pattern-sizing-info p {
    margin: .75rem 0;
}
.product-detail .pattern-sizing-info img {
    display: block;
    width: 280px;
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    margin: 1rem 0;
}

.product-detail [data-gallery-main] {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.product-detail [data-gallery-thumbnail] img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.measurement-image-trigger {
    cursor: zoom-in;
    color: inherit;
    background: transparent;
    border: 0;
    padding: 0;
}
.measurement-image-dialog {
    margin: auto;
    padding: 20px;
    border: 0;
    border-radius: 8px;
    width: min(640px, 92vw);
    max-width: 92vw;
    max-height: 90vh;
    overflow: auto;
    color: #352e31;
    background: white;
}
.measurement-image-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.measurement-image-dialog > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 72vh;
    margin: auto;
}
.measurement-image-dialog button { cursor: pointer; }
.measurement-image-dialog button:focus-visible {
    outline: 2px solid #a81a6b;
    outline-offset: 3px;
}

.measurement-illustrations {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
    max-width: 100%;
}
.measurement-illustrations > div { min-width: 0; }
.measurement-illustrations .measurement-image-trigger img { display: block; }
