.single-product .mr-page {
    padding-top: clamp(18px, 2.3vw, 38px);
    padding-bottom: clamp(36px, 5vw, 78px);
}
.mr-product-path {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #555963;
    font-size: .85rem;
}
.mr-product-path a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
}
.mr-product-path a:hover { text-decoration: underline; }
.mr-product-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
    align-items: start;
    gap: clamp(26px, 4.5vw, 78px);
    margin-bottom: clamp(30px, 4vw, 62px);
}
.woocommerce div.product .mr-product-stage .images,
.woocommerce div.product .mr-product-stage .summary {
    width: 100%;
    float: none;
    min-width: 0;
    margin: 0;
}
.woocommerce div.product .mr-product-stage .summary { padding: 0; }
.mr-photo-caption {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.45;
}
/* Reserve a single frame before WooCommerce wraps the slides in FlexSlider. */
.mr-product-stage .images > .woocommerce-product-gallery__wrapper,
.mr-product-stage .images > .flex-viewport {
    aspect-ratio: var(--mr-photo-ratio);
    width: 100%;
    height: auto !important;
    overflow: hidden;
}
.mr-product-stage .images > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) {
    display: none;
}
.mr-product-has-thumbs .images:not(:has(.flex-control-thumbs)) {
    padding-bottom: calc(clamp(44px, 5vw, 64px) + 10px);
}
.mr-product-stage .woocommerce-product-gallery__image img {
    aspect-ratio: var(--mr-photo-ratio);
    object-fit: contain;
    border-radius: 16px;
}
.mr-product-stage .woocommerce-product-gallery__image > a {
    position: relative;
    display: block;
}
.mr-photo-expand {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    background: #fff;
    color: #252830;
    box-shadow: 0 1px 5px #10131d20;
    font-size: .8rem;
    line-height: 1.5;
    pointer-events: none;
}
.woocommerce div.product .mr-product-stage .images .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
}
.woocommerce div.product .mr-product-stage .images .flex-control-thumbs li {
    float: none;
    width: clamp(44px, 5vw, 64px);
    padding: 2px;
}
.woocommerce div.product .mr-product-stage .images .flex-control-thumbs img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 9px;
    opacity: .75;
}
.woocommerce div.product .mr-product-stage .images .flex-control-thumbs img.flex-active {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
    opacity: 1;
}
.mr-product-heading .product_title {
    margin: 0 0 12px;
    font: 750 clamp(2.75rem, 4.6vw, 4.75rem)/.97 var(--display);
    letter-spacing: -.06em;
}
.woocommerce .mr-product-stage .mr-product-heading p.price {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.035em;
}
.mr-product-stage .woocommerce-product-details__short-description {
    margin: 20px 0;
    font-size: 1rem;
    line-height: 1.6;
}
.mr-product-stage .mr-product-compatibility {
    margin: 4px 0 8px;
    font-size: .94rem;
}
.mr-product-compatibility summary {
    width: fit-content;
    min-height: 44px;
    padding: 11px 2px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: .22em;
}
.mr-product-compatibility ul {
    margin: 0;
    padding: 0 0 10px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
    gap: 6px 12px;
    color: var(--muted);
}
.woocommerce div.product .mr-product-stage form.cart {
    margin: 22px 0 14px;
    padding-top: 18px;
    border-top: 1px solid #dce0e8;
}
.woocommerce div.product .mr-product-stage form.cart .variations,
.woocommerce div.product .mr-product-stage form.cart .variations tbody,
.woocommerce div.product .mr-product-stage form.cart .variations tr,
.woocommerce div.product .mr-product-stage form.cart .variations th,
.woocommerce div.product .mr-product-stage form.cart .variations td {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: left;
}
.woocommerce div.product .mr-product-stage form.cart .variations tr { margin-bottom: 14px; }
.woocommerce div.product .mr-product-stage .variations th.label {
    margin-bottom: 7px;
    font-size: .93rem;
}
.mr-product-stage .mr-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.mr-product-stage .mr-choices button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #aab0bc;
    border-radius: 12px;
    background: white;
    color: var(--ink);
    font: 550 .9rem/1.3 Inter, sans-serif;
    transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.mr-product-stage .mr-choices button[aria-pressed="true"] {
    border-color: #2444bb;
    background: #eff2ff;
    box-shadow: inset 0 0 0 1px #2444bb;
    color: #13276f;
}
.mr-product-stage .mr-choices button:disabled {
    color: #60616a;
    border-style: dashed;
    text-decoration: line-through;
    cursor: default;
}
.mr-product-stage .mr-swatch::before {
    content: '';
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px #0002;
}
.mr-product-stage .reset_variations {
    display: inline-block;
    font-size: .84rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.woocommerce div.product .mr-product-stage .variations_button,
.woocommerce div.product.product-type-simple .mr-product-stage .cart {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}
.woocommerce div.product .mr-product-stage .cart div.quantity {
    float: none;
    margin: 0;
}
.woocommerce div.product .mr-product-stage .cart input.qty {
    min-height: 48px;
    width: 4em;
    border-radius: 12px;
}
.woocommerce div.product .mr-product-stage .single_add_to_cart_button {
    flex: 1 1 10rem;
    min-height: 48px;
    border-radius: 12px;
    background: var(--blue);
}
.woocommerce div.product .mr-product-stage .single_add_to_cart_button.disabled { background: #444b62; }
.mr-product-stage .mr-ship {
    padding: 10px 14px;
    margin: 0 0 12px;
    border-radius: 9px;
    background: #f2f5fa;
    color: #263349;
    font-size: .86rem;
    font-weight: 600;
}
.mr-product-stage .mr-ship a { text-decoration: underline; text-underline-offset: 3px; }
.mr-product-stage .product_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 16px;
    padding-top: 12px;
    border-top: 1px solid #dce0e8;
    color: #606570;
    font-size: .8rem;
}
.woocommerce .mr-page .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0 0 20px;
    padding: 0;
    border-bottom: 1px solid #dce0e8;
}
.woocommerce .mr-page div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
}
.woocommerce .mr-page div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--blue); }
.woocommerce .mr-page div.product .woocommerce-tabs ul.tabs li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.woocommerce .mr-page .woocommerce-tabs ul.tabs::before,
.woocommerce .mr-page .woocommerce-tabs ul.tabs li::before,
.woocommerce .mr-page .woocommerce-tabs ul.tabs li::after { display: none !important; }
.mr-page .woocommerce-Tabs-panel > h2:first-child { margin-top: 0; }
.woocommerce .mr-page #tab-description > :is(p, ul, ol) {
    max-width: 64ch;
    line-height: 1.65;
    overflow-wrap: anywhere;
    margin-block: 0 1em;
}
.woocommerce .mr-page #tab-additional_information .woocommerce-product-attributes {
    width: 100%;
    max-width: 68ch;
    border: 0;
    border-collapse: collapse;
    font-size: 1rem;
}
.woocommerce .mr-page #tab-additional_information :is(th, td) {
    border: 0;
    border-bottom: 1px solid #e3e4e7;
    padding: 12px 6px;
    vertical-align: top;
    text-align: left;
    background: transparent;
    overflow-wrap: anywhere;
}
.woocommerce .mr-page #tab-additional_information th { width: 36%; }
.woocommerce .mr-page #tab-additional_information td { font-style: normal; }
.woocommerce .mr-page #tab-additional_information td p { padding: 0; margin: 0; }
.mr-page .mr-reviews {
    margin-top: 24px;
    padding: 24px clamp(14px, 3vw, 38px);
    border-radius: 17px;
    background: #f1f3f8;
}
.mr-page .mr-reviews h2 { margin: 0 0 5px; }
.mr-page .mr-reviews article { border: 0; background: white; }
.mr-page .mr-reviews > p { color: #484c57; font-size: .9rem; }
.mr-page .mr-reviews strong { letter-spacing: .06em; }
@media (max-width: 740px) {
    .single-product .mr-page { padding-top: 8px; }
    .mr-product-path { margin-bottom: 6px; }
    .mr-product-stage { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .woocommerce div.product .mr-product-stage .summary { display: contents; }
    .mr-product-heading { grid-row: 1; margin-bottom: 15px; }
    .mr-product-heading .product_title { margin-bottom: 8px; font-size: clamp(2.4rem, 9vw, 3.4rem); }
    .woocommerce div.product .mr-product-stage .images { grid-row: 2; }
    .mr-product-stage .onsale { top: 100px; }
    .mr-product-stage .woocommerce-product-details__short-description { margin: 15px 0 0; }
    .woocommerce div.product .mr-product-stage form.cart { margin: 16px 0 14px; }
    .mr-page .mr-reviews article { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .mr-product-stage *, .mr-product-stage *::after { transition-duration: 0s !important; }
}
.mr-preview-stock-note { margin-block: 12px; color: #434c5e; font-size: .94rem; }

#mr-product-options { display: block; height: 0; scroll-margin-top: 90px; }
#mr-product-story {
    position: relative;
    margin-block: clamp(30px,5vw,76px);
    color: var(--ink);
}
.mr-story-hero {
    position: relative;
    display: grid;
    align-items: end;
    isolation: isolate;
    min-height: 260px;
    aspect-ratio: 2.45;
    padding: clamp(24px,4.5vw,72px);
    overflow: hidden;
    border-radius: 16px;
    background: #111a33;
}
.mr-story-hero picture, .mr-story-hero::after { position: absolute; inset: 0; z-index: -1; }
.mr-story-hero::after {
    content: '';
    background: linear-gradient(75deg, rgb(6 14 34 / .8), rgb(6 14 34 / .48) 30%, transparent 65%);
}
.mr-story-hero .mr-story-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
}
.mr-story-strap .mr-story-photo { object-position: 80% center; }
.single-product #mr-product-story .mr-story-hero h2 {
    max-width: 13ch;
    margin: 0;
    color: #fff;
    font: 670 clamp(38px,5.5vw,88px)/.99 var(--display);
    letter-spacing: -.062em;
    text-wrap: balance;
}
.mr-story-details { padding-block: clamp(30px,4vw,64px); }
.single-product .mr-story-details :is(h2,h3) {
    margin: 0 0 clamp(16px,2vw,29px);
    font: 630 clamp(27px,3.3vw,54px)/1.06 var(--display);
    letter-spacing: -.052em;
}
.mr-story-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0,1fr));
    gap: clamp(12px,1.8vw,26px);
}
.mr-story-features figure { margin: 0; min-width: 0; }
.mr-story-frame { position: relative; overflow: hidden; aspect-ratio: 1.27; border-radius: 12px; background: #eff0f4; }
.mr-story-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mr-gallery-details .mr-story-photo { object-fit: contain; }
.mr-story-features:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.mr-story-features:has(figure:only-child) .mr-story-frame { max-height: 30rem; aspect-ratio: 2; }
.mr-story-features figure:only-child { max-width: 47rem; }
.mr-story-features figcaption { padding: 12px 2px 0; }
.mr-story-features figcaption strong {
    display: block;
    font: 650 clamp(18px,1.65vw,25px)/1.12 var(--display);
    letter-spacing: -.025em;
}
.mr-story-features figcaption span { display: block; max-width: 33ch; margin-top: 5px; color: #4c5058; font-size: .94rem; line-height: 1.5; }
.mr-story-buy {
    position: sticky;
    z-index: 2;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    margin-top: 8px;
    padding: 9px 2px max(9px,env(safe-area-inset-bottom));
    background: #fff;
    border-block: 1px solid #d9dfe7;
}
.mr-story-buy > span { font: 650 clamp(16px,1.7vw,23px)/1.15 var(--display); }
.mr-story-buy small { display: block; margin-top: 3px; color: #393f4c; font: 520 .84rem/1.3 Inter,sans-serif; }
.mr-story-buy a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px clamp(12px,2.2vw,35px);
    border-radius: 14px;
    color: white;
    background: var(--blue);
    font-size: .9rem;
    font-weight: 620;
}
.mr-story-buy a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-height:420px) { .mr-story-buy { position: static; } }
@media (max-width:650px) {
    .mr-story-hero { aspect-ratio: 1.08; min-height: 0; padding: 22px 18px; border-radius: 12px; }
    .mr-story-hero.mr-story-object { aspect-ratio: 1.42; }
    .mr-story-hero.mr-story-strap { aspect-ratio: 1.12; }
    .mr-story-hero::after { background: linear-gradient(0deg,rgb(6 14 34 / .82),rgb(6 14 34 / .42) 32%,transparent 66%); }
    .single-product #mr-product-story .mr-story-hero h2 { font-size: clamp(29px,8.2vw,44px); max-width: 16ch; }
    .mr-story-features:has(figure + figure) {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: 67%;
        align-items: start;
        column-gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .mr-story-features::-webkit-scrollbar { display: none; }
    .mr-story-features figure { scroll-snap-align: start; }
    .mr-story-frame { aspect-ratio: 1.08; }
    .mr-story-features figcaption span { font-size: .88rem; }
    .mr-story-buy a { font-size: .85rem; }
}
@media (prefers-reduced-motion:no-preference) {
    .mr-story-photo.mr-story-in-view { animation: mr-story-reveal 920ms cubic-bezier(.17,.72,.2,1) both; }
    @keyframes mr-story-reveal { from { transform: scale(1.065); } to { transform: scale(1); } }
}
