:root {
    --product-surface: #f5f5f4;
    --product-ink: #1d2026;
    --product-border: #d9dce1;
    --product-action: #000;
    --product-action-hover: #252525;
    --product-link: #294d82;
    --product-story-warm: #f8efdb;
}
.product-detail-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1rem, 4vw, 4rem); }
.product-detail-grid .shop-product-info h1 { font-size: clamp(1.8rem, 2.7vw, 2.65rem); }
.product-reference, .product-stock { color: #515863; margin-block: .65rem; font-size: .9rem; }
.product-fact-strip { display: flex; flex-wrap: wrap; gap: .45rem; margin: .25rem 0; }
.product-fact-strip > div {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: .28rem .4rem; min-width: 0;
    border: 1px solid #e8decf; border-radius: 999px; padding: .38rem .65rem;
    color: #000; background: #faf6ef; font-size: .84rem; line-height: 1.35; overflow-wrap: anywhere;
}
.product-fact-strip svg { flex: none; }
.product-fact-strip dt { display: inline-flex; align-items: center; gap: .35rem; }
.product-fact-strip dd { margin: 0; font-weight: 650; }
.shop-product-info .shop-buy { margin-block-end: .25rem; }
.shop-buy .shop-buy-row { flex-wrap: wrap; gap: .65rem; }
.shop-buy .shop-buy-row .shop-button {
    flex: 1 1 8rem; min-height: 48px; padding: .55rem 1rem; border-radius: 999px;
    background: var(--product-action); border-color: var(--product-action); font-weight: 650;
}
.shop-buy .shop-buy-row .shop-button:not(:disabled):hover { background: var(--product-action-hover); border-color: var(--product-action-hover); }
.shop-buy .shop-buy-row .shop-button:disabled { cursor: default; opacity: .65; }
.product-quantity > label { margin-bottom: .3rem; font-size: .85rem; }
.product-quantity-stepper.is-enhanced {
    display: inline-grid; grid-template-columns: 2.75rem 2.25rem 2.75rem; align-items: center;
    border: 1px solid #c8cdd4; border-radius: 999px; padding: 1px; background: #fff;
}
.product-quantity-stepper button {
    display: grid; place-items: center; width: 100%; min-height: 44px;
    border: 0; border-radius: 999px; background: transparent; color: var(--product-ink); cursor: pointer;
}
.product-quantity-stepper button[hidden] { display: none; }
.product-quantity-stepper button:not([aria-disabled="true"]):hover { background: #eef1f4; }
.product-quantity-stepper button[aria-disabled="true"] { color: #858e9b; cursor: default; }
.product-quantity-stepper :is(button, input):focus-visible { outline-offset: -3px; }
.shop-buy .product-quantity-stepper.is-enhanced input {
    appearance: textfield; width: 100%; min-width: 0; min-height: 44px; padding: 0;
    border: 0; border-radius: .25rem; background: transparent; text-align: center; font-variant-numeric: tabular-nums; font-weight: 650;
}
.product-quantity-stepper.is-enhanced input::-webkit-inner-spin-button,
.product-quantity-stepper.is-enhanced input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.product-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; min-width: 0; }
.product-gallery-rail { display: flex; gap: .48rem; min-width: 0; overflow-x: auto; padding: .24rem .2rem .38rem; scrollbar-width: thin; }
.product-gallery-thumb { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 76px; height: 62px; border: 1px solid var(--product-border); border-radius: .55rem; background: #fff; color: var(--product-ink); }
.product-gallery-thumb:hover { border-color: #758093; }
.product-gallery-thumb[aria-current] { border-color: var(--product-link); box-shadow: inset 0 0 0 1px var(--product-link); background: #f7f9fb; }
.product-gallery-thumb img { width: 100%; height: 100%; min-height: 0; padding: .24rem; object-fit: contain; }
.product-gallery-media-kind { position: absolute; right: .18rem; bottom: .16rem; display: grid; place-items: center; min-width: 1.45rem; min-height: 1.1rem; border-radius: 1rem; background: #263548; color: #fff; padding-inline: .25rem; font-size: .69rem; }
.product-gallery-media-kind svg { width: .8rem; height: .8rem; }
.product-gallery-stage { grid-template: minmax(0, 1fr) / minmax(0, 1fr); position: relative; min-width: 0; background: #fff; border: 1px solid #e0e3e8; border-radius: .8rem; overflow: hidden; display: grid; place-items: center; aspect-ratio: 5 / 4; }
.product-gallery-stage:has(.product-gallery-media > video) { background: #191e27; }
.product-gallery-media { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; touch-action: pan-y; overflow: clip; }
.product-gallery-media > :is(img, video) { width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: contain; }
.product-gallery-media.is-image { cursor: zoom-in; }
.product-gallery-media.is-zoomed { cursor: grab; }
.product-gallery-media img { user-select: none; }
.product-gallery-controls { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.product-gallery-controls button { pointer-events: auto; }
.product-gallery-controls button, .product-gallery-dialog button {
    display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0;
    background: #fff; color: #253347; border: 1px solid #d7dce3; border-radius: 999px;
    cursor: pointer; box-shadow: 0 2px 6px #15233716; font-size: .85rem; font-weight: 700;
}
.product-gallery-controls button:hover, .product-gallery-dialog button:hover { border-color: #9fadb9; background: #f1f5fa; }
.product-gallery :is(a, button):focus-visible { outline: 2px solid var(--product-link); outline-offset: 2px; }
.product-gallery-dialog button:disabled { opacity: .45; cursor: default; }
.product-gallery-tools { position: absolute; inset: .64rem .65rem auto auto; display: flex; gap: .4rem; align-items: center; }
.product-gallery-controls .product-gallery-hover { display: inline-flex; align-items: center; gap: .4rem; padding-inline: .65rem; }
.product-gallery-controls .product-gallery-hover[aria-pressed="true"] { background: #e8f1ff; color: #203e68; border-color: #aec4e2; }
.product-gallery-hover svg { width: 1rem; height: 1rem; }
@media (forced-colors: active) {
    .product-gallery-controls .product-gallery-hover[aria-pressed="true"] { border-color: Highlight; }
}
.product-gallery-count { display: inline-grid; place-items: center; min-width: 3.25rem; padding: .27rem .6rem; border-radius: 999px; background: var(--shop-action); color: #fff; font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-gallery-controls .product-gallery-count { position: absolute; inset: auto auto .65rem 50%; transform: translateX(-50%); }
.product-gallery-stage:has(.product-gallery-media > video) .product-gallery-count { inset: .65rem auto auto .65rem; transform: none; }
.product-gallery [hidden] { display: none !important; }
.product-gallery-dialog { border: 1px solid #e0e3e8; border-radius: .9rem; padding: 0; background: white; color: var(--product-ink); width: min(calc(100vw - 1.5rem), 86rem); max-width: none; height: min(94dvh, 65rem); max-height: none; }
.product-gallery-dialog::backdrop { background: #151a25bd; }
body:has(.product-gallery-dialog[open]) { overflow: hidden; }
.product-gallery-dialog-panel {
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .65rem;
    width: 100%; height: 100%; padding: .75rem; background: white;
}
.product-gallery-dialog.is-maximized { inset: 0; margin: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; }
.product-gallery-dialog [data-gallery-fullscreen][aria-pressed="true"] svg:first-child,
.product-gallery-dialog [data-gallery-fullscreen][aria-pressed="false"] svg:last-child { display: none; }
.product-gallery-dialog-bar { display: flex; align-items: center; gap: .35rem; }
.product-gallery-dialog-bar output { margin-right: auto; }
.product-gallery-dialog-bar form { margin: 0; }
.product-gallery-zoom-tools { display: inline-flex; gap: .25rem; }
.product-gallery-dialog .product-gallery-stage { aspect-ratio: auto; border: 0; border-radius: .45rem; }
.product-gallery-dialog .product-gallery-media.is-image { touch-action: none; }
.product-gallery-prev, .product-gallery-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.product-gallery-prev { inset-inline-start: .65rem; }
.product-gallery-next { inset-inline-end: .65rem; }
.product-spin, .product-model { width: 100%; height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; }
.product-spin img, .product-model img { width: 100%; height: 100%; object-fit: contain; }
.product-spin label, .product-model a { padding: .55rem; display: grid; gap: .4rem; }
.product-story, .product-related { margin-top: clamp(2.5rem, 6vw, 5rem); padding: clamp(1rem, 3vw, 2.25rem); background: var(--product-surface); }
.product-story-warm { background: var(--product-story-warm); }
.product-story-split { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; }
.product-story > :is(img, video) { width: 100%; max-height: 36rem; object-fit: cover; }
.product-story p { max-width: 66ch; }
.product-story-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.product-story-items img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: white; margin-bottom: .35rem; }
.product-related-grid { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .85rem; }
.product-related-grid .shop-card { flex: 0 1 calc((100% - .75rem) / 2); min-width: 0; max-width: 12rem; }
.product-related-grid .shop-card a {
    display: flex; flex-direction: column; height: 100%; border: 1px solid var(--product-border);
    border-radius: .65rem; background: #fff;
}
.product-related-grid .shop-card a:hover { border-color: #9ba5b0; color: var(--product-ink); }
.product-related-grid .shop-card-image {
    aspect-ratio: 4 / 3; padding: .45rem; border-radius: .6rem .6rem 0 0;
}
.product-related-grid .shop-card-info { display: flex; flex: 1; flex-direction: column; padding: .6rem .7rem .7rem; }
.product-related-grid .shop-card h3 { font-size: .94rem; }
.product-related-grid .shop-card p.shop-card-summary {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; color: var(--shop-muted); font-size: .82rem; font-weight: 400; line-height: 1.35;
}
.product-related-grid .shop-card p.shop-card-brand, .product-related-grid .shop-card p.shop-card-variants {
    font-size: .8rem; overflow-wrap: anywhere;
}
.product-related-grid .shop-card p.shop-card-price { order: 1; margin-top: auto; padding-top: .35rem; font-size: 1rem; }
.product-story-carousel { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(12rem, 45%); overflow-x: auto; scroll-snap-type: x mandatory; }
.product-story-carousel li { scroll-snap-align: start; }
@media (max-width: 920px) {
    .product-detail-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .product-detail-grid, .product-story-split { grid-template-columns: minmax(0, 1fr); }
    .product-gallery-dialog { width: calc(100vw - .75rem); height: 94dvh; border-radius: .65rem; }
    .product-gallery-hover-label { display: none; }
}
@media (min-width: 1000px) {
    .product-detail-grid .shop-product-info { position: sticky; top: 1rem; align-self: start; }
}

.product-detail-single { grid-template-columns: minmax(0, 1fr); }
.product-block-stack { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.product-page-block:has(> .product-gallery) + .product-page-block { margin-top: .45rem; }
.product-block-stack:has(> .product-page-block > .product-gallery) { gap: .55rem; }
.product-block-details h3 { margin-block: .15rem .6rem; color: var(--product-ink); font-size: 1rem; font-weight: 650; }
.product-block-details-content { padding: .85rem .9rem .55rem; }
.product-block-details-content > :first-child { margin-top: 0; }
.product-block-details-content > :last-child { margin-bottom: 0; }
.product-page-block .product-block-specifications {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0;
    margin: 0 0 .85rem; background: #fff; font-size: .95rem; line-height: 1.4;
}
.product-block-specifications > :is(dt, dd) {
    margin: 0; padding-block: .55rem; overflow-wrap: anywhere;
}
.product-block-specifications > :nth-child(n + 3) { border-top: 1px solid #edf0f3; }
.product-block-specifications > dt { padding-inline-end: .75rem; color: #37404d; }
.product-block-specifications > dd { color: #000; font-weight: 650; }
.product-block-main { margin-top: clamp(2rem, 5vw, 4rem); gap: 2rem; }
.product-page-block { min-width: 0; }
.product-page-block h2, .product-content-dialog h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.product-page-block p { max-width: 70ch; }
.product-page-block [hidden], .product-page-block[hidden] { display: none !important; }
.shop-details.product-block-details { border: 0; }
.product-block-details > summary {
    display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .65rem .9rem;
    list-style: none; cursor: pointer; border-radius: .55rem; background: #f7f8fa;
    box-shadow: 0 1px 3px #1d202612; color: var(--product-ink); font-weight: 650;
}
.product-block-details > summary:hover { background: #eff2f6; }
.product-block-details > summary::-webkit-details-marker { display: none; }
.product-block-details > summary > svg { margin-inline-start: auto; flex: 0 0 auto; color: var(--product-link); }
.product-block-details > summary svg { width: 1rem; height: 1rem; transition: transform .2s ease; }
.product-block-details[open] > summary svg { transform: rotate(180deg); }
.product-view-more, .product-view-less { margin-inline-start: auto; font-size: .9rem; font-weight: 400; }
.product-block-summary > summary > svg { margin-inline-start: 0; }
.product-block-details[open] .product-view-more, .product-block-details:not([open]) .product-view-less { display: none; }
.product-content-list { display: grid; gap: .75rem; padding-inline-start: 1.15rem; }
.product-content-list p { margin: .3rem 0; }
.product-tab-buttons { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid #d6dcdf; margin-bottom: .75rem; }
.product-tab-buttons button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: inherit; font: inherit; cursor: pointer; padding: .6rem .85rem; }
.product-tab-buttons button[aria-selected="true"] { border-color: currentColor; font-weight: 700; }
.product-content-dialog { width: min(36rem, calc(100% - 2rem)); max-height: 85dvh; border: 0; border-radius: .5rem; padding: 1.5rem; color: #182329; }
.product-content-dialog::backdrop { background: rgba(14, 25, 33, .55); }
.product-content-dialog form { display: flex; justify-content: flex-end; }
.product-content-dialog form button { background: transparent; border: 0; padding: .5rem; cursor: pointer; }
.product-content-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: 100dvh; border-radius: 0; }
@media (max-width: 767px) { .product-block-desktop { display: none; } }
@media (min-width: 768px) { .product-block-mobile { display: none; } }
@media (prefers-reduced-motion: reduce) { .product-block-details > summary svg { transition: none; } }
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    @media (prefers-reduced-motion: no-preference) {
        .product-block-details:is(.product-block-accordion, .product-block-summary)::details-content {
            interpolate-size: allow-keywords;
            block-size: 0;
            overflow: clip;
            transition: block-size .23s ease, content-visibility .23s allow-discrete;
        }
        .product-block-details:is(.product-block-accordion, .product-block-summary)[open]::details-content { block-size: auto; }
    }
}
