/* Scoped to the independent product page; uses Astra's configured font. */
body.moleskine-single-product-active {
    background: #fff;
    color: #292827;
}
body.moleskine-single-product-active #content,
body.moleskine-single-product-active #content > .ast-container,
body.moleskine-single-product-active #primary {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
}
body.moleskine-single-product-active #content > .ast-container {
    display: block;
}
body.moleskine-single-product-active #secondary,
body.moleskine-single-product-active .ast-breadcrumbs-wrapper {
    display: none;
}
.msp-page, .msp-page * { box-sizing: border-box; }
.msp-page [hidden] { display: none !important; }
.msp-page .msp-product {
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
}
.msp-page .msp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr) minmax(205px, .44fr);
    gap: clamp(28px, 3.6vw, 72px);
    align-items: start;
    padding: clamp(40px, 5vw, 92px) clamp(24px, 5.3vw, 110px) 64px;
}
.msp-page .msp-layout > * { min-width: 0; }
.msp-page .msp-title {
    margin: 0 0 30px;
    color: #292827;
    font: inherit;
    font-size: clamp(24px, 1.7vw, 34px);
    font-weight: 700;
    line-height: 1.28;
    overflow-wrap: anywhere;
}
.msp-page .msp-description {
    font-size: clamp(16px, 1.05vw, 20px);
    font-weight: 400;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.msp-page .msp-description p { margin: 0 0 1em; }
.msp-page .msp-description__full > :last-child { margin-bottom: 0; }
.msp-page .msp-description__full img,
.msp-page .msp-description__full video,
.msp-page .msp-description__full iframe { max-width: 100%; }
.msp-page .msp-description__full img { height: auto; }
.msp-page .msp-description__full table { width: 100%; table-layout: fixed; }
.msp-page .msp-description__full ul,
.msp-page .msp-description__full ol { margin-left: 1.25em; }
.msp-page .msp-description__toggle {
    display: inline-block;
    min-height: 44px;
    margin: 6px 0 0;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #292827;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.msp-page .msp-description__toggle:hover { text-decoration: underline; }
.msp-page .msp-gallery__track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-radius: 22px;
    direction: ltr;
}
.msp-page .msp-gallery__slide {
    flex: 0 0 100%;
    min-width: 0;
    margin: 0;
    aspect-ratio: 4 / 5;
    max-height: 760px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.msp-page .msp-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 22px;
    object-fit: contain;
}
.msp-page .msp-gallery__track::-webkit-scrollbar,
.msp-page .msp-related__track::-webkit-scrollbar { display: none; }
.msp-page .msp-gallery__dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0;
    margin: 14px 0 0;
    padding: 0;
}
.msp-page .msp-gallery__dot {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
    height: 32px;
    min-height: 32px;
    touch-action: manipulation;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}
.msp-page .msp-gallery__dot span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4d4d4;
    transition: background-color .2s ease;
}
.msp-page .msp-gallery__dot:hover span,
.msp-page .msp-gallery__dot[aria-current="true"] span {
    background: #292827;
}
.msp-page .msp-characteristics { margin-top: clamp(36px, 4vw, 70px); }
.msp-page .msp-characteristics h2 {
    margin: 0 0 14px;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    color: #292827;
}
.msp-page .msp-characteristics__list {
    margin: 0;
    background: #e9e8e6;
    font-size: 15px;
    line-height: 1.5;
}
.msp-page .msp-characteristics__row {
    display: grid;
    grid-template-columns: minmax(105px, .85fr) minmax(0, 1.15fr);
}
.msp-page .msp-characteristics__row + .msp-characteristics__row { border-top: 1px solid #fff; }
.msp-page .msp-characteristics dt,
.msp-page .msp-characteristics dd { margin: 0; padding: 14px 16px; overflow-wrap: anywhere; }
.msp-page .msp-characteristics dt { font-weight: 600; }
.msp-page .msp-characteristics dd { border-left: 1px solid #fff; white-space: pre-line; }
.msp-page .msp-buy { text-align: center; }
.msp-page .msp-price {
    margin: 0 0 12px;
    color: #5b5a58;
    font-size: clamp(24px, 1.8vw, 34px);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.msp-page .msp-price ins { background: transparent; text-decoration: none; }
.msp-page .msp-price del { opacity: .65; font-size: .7em; }
.msp-page .msp-price .amount { white-space: nowrap; }
.msp-page .msp-currency { font-size: .68em; white-space: nowrap; }
.msp-page .msp-price__pending { font-size: 18px; font-weight: 500; }
.msp-page .msp-buy h2 { margin: 0 0 20px; font: inherit; font-size: 14px; font-weight: 600; color: #292827; }
/* At most two columns; narrow purchase sidebars use one to keep logos legible. */
.msp-page .msp-retailers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(140px, calc(50% - 5px))), 1fr)); gap: 10px; }
.msp-page .msp-retailer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 78px;
    padding: 12px 8px;
    border: 1px solid #292827;
    border-radius: 10px;
    background: #fff;
    color: #292827;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    text-align: center;
    transition: color .18s ease, background-color .18s ease;
}
.msp-page a.msp-retailer:hover { color: #211d1e; background: #f5f4f2; border-color: #777; }
.msp-page a.msp-retailer:focus-visible { outline: 3px solid #292827; outline-offset: 3px; }
.msp-page .msp-retailer--logo { min-height: 78px; padding: 6px 12px; }
.msp-page .msp-retailer__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(150px, 100%);
    max-height: 64px;
    object-fit: contain;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
/* The supplied Péndulo seal is almost square; keep its lettering readable. */
.msp-page .msp-retailer__logo[src$="/pendulo.png"] { max-height: 100px; }
/* Frame only the supplied Lumen image's white margins; preserve the artwork. */
.msp-page .msp-retailer__logo[src$="/lumen-color.png"] {
    width: 150px;
    height: 64px;
    object-fit: cover;
    object-position: center;
}
.msp-page .msp-retailers--single { grid-template-columns: minmax(0, 1fr); }
.msp-page .msp-related { padding: 20px 0 65px; }
.msp-page .msp-related__header {
    margin: 0 0 32px;
    padding-inline: 5.3vw;
}
.msp-page .msp-related__header h2 {
    margin: 0;
    color: #292827;
    font: inherit;
    font-size: clamp(22px, 2vw, 38px);
    font-weight: 500;
    line-height: 1.25;
}
.msp-page .msp-related__viewport { position: relative; }
.msp-page .msp-related__arrow {
    position: absolute;
    z-index: 12;
    top: 50%;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #111;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #111;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 180ms ease, background-color 180ms ease;
    cursor: pointer;
}
.msp-page .msp-related__arrow::before {
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
}
.msp-page .msp-related__arrow--prev { left: 8px; }
.msp-page .msp-related__arrow--next { right: 8px; }
.msp-page .msp-related__arrow--prev::before { transform: rotate(-135deg); }
.msp-page .msp-related__arrow--next::before { transform: rotate(45deg); }
.msp-page .msp-related__arrow:hover { background: #111; color: #fff; }
.msp-page .msp-related__arrow:focus:not(:focus-visible) { outline: 0; }
.msp-page .msp-related__arrow:focus-visible {
    opacity: 1;
    pointer-events: auto;
    outline: 2px solid #2458d3;
    outline-offset: -4px;
}
@media (hover: hover) and (pointer: fine) {
    .msp-page .msp-related__viewport:hover .msp-related__arrow {
        opacity: 1;
        pointer-events: auto;
    }
}
.msp-page .msp-related__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(450px, calc(80vw - 20px));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    direction: ltr;
}
.msp-page .msp-related__item {
    min-width: 0;
    margin: 0;
    padding: 32px;
    border: 0;
    background: #fff;
    scroll-snap-align: start;
}
.msp-page .msp-related--loop .msp-related__track {
    scroll-snap-type: none;
    scroll-behavior: auto;
    scrollbar-width: none;
    overflow-anchor: none;
}
.msp-page .msp-related--centered .msp-related__track {
    justify-content: center;
    scroll-snap-type: none;
}
.msp-page .msp-related__link { display: block; color: #6a6865; text-decoration: none; }
.msp-page .msp-related__visual { position: relative; aspect-ratio: 1; margin-bottom: 16px; overflow: hidden; background: #fff; }
.msp-page .msp-related__visual .msp-related__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    transition: opacity 280ms ease;
}
.msp-page .msp-related__image--primary { opacity: 1; }
.msp-page .msp-related__image--secondary { opacity: 0; pointer-events: none; }
.msp-page .msp-related__item h3 {
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: "Brandon Grotesque", BrandonGrotesque, var(--ast-body-font-family, sans-serif);
    /* Same responsive title size as Home Manager product cards. */
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    overflow-wrap: anywhere;
}
.msp-page .msp-related__link:focus-visible { outline-offset: -4px; }
.msp-page .msp-related__link.is-secondary-ready:focus-visible .msp-related__image--primary { opacity: 0; }
.msp-page .msp-related__link.is-secondary-ready:focus-visible .msp-related__image--secondary { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
    .msp-page .msp-related__link.is-secondary-ready:hover .msp-related__image--primary { opacity: 0; }
    .msp-page .msp-related__link.is-secondary-ready:hover .msp-related__image--secondary { opacity: 1; }
}
.msp-page :is(a, button, [tabindex]):focus-visible { outline: 2px solid #2458d3; outline-offset: 4px; }
.msp-page .msp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.msp-page .woocommerce-notices-wrapper { padding-inline: 5vw; }
@media (max-width: 1439px) {
    .msp-page .msp-layout { gap: 30px; padding-inline: 32px; }
}
@media (max-width: 1099px) {
    .msp-page .msp-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
    .msp-page .msp-gallery { grid-column: 1; grid-row: 1 / span 2; }
    .msp-page .msp-buy { grid-column: 2; text-align: left; }
    .msp-page .msp-price { font-size: 26px; }
}
@media (max-width: 767px) {
    .msp-page .msp-layout { display: flex; flex-direction: column; gap: 36px; padding: 28px 20px 44px; }
    .msp-page .msp-layout > * { width: 100%; }
    .msp-page .msp-gallery__slide { max-height: 520px; aspect-ratio: 1 / 1.1; }
    .msp-page .msp-title { font-size: 25px; margin-bottom: 20px; }
    .msp-page .msp-description { font-size: 16px; line-height: 1.6; }
    .msp-page .msp-characteristics { margin-top: 32px; }
    .msp-page .msp-buy { text-align: left; }
    .msp-page .msp-related { padding: 12px 0 44px; }
    .msp-page .msp-related__header { align-items: start; margin: 0 0 22px; padding-inline: 20px; gap: 16px; }
    .msp-page .msp-related__header h2 { font-size: 22px; }
    .msp-page .msp-related__item { padding: 20px; }
    .msp-page .msp-related__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .msp-page * { scroll-behavior: auto !important; transition: none !important; }
}
