/* Mariposh homepage refresh — scoped to homepage only.
   Direction: one calm canvas, asymmetric but balanced compositions, no nested frames. */

.mariposh-home {
    --home-canvas: #fffafb;
    --home-canvas-soft: #f7eef0;
    --home-canvas-warm: #f3e4e8;
    --home-ink: #3b292c;
    --home-muted: #755f64;
    --home-accent: #8d6570;
    --home-accent-soft: #d9b7c0;
    --home-dark: #3d292f;
    --home-dark-2: #2a1d21;
    --home-shell: min(1240px, calc(100% - 2rem));
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: clip;
    background: var(--home-canvas);
    color: var(--home-ink);
}

.mariposh-home .showcase-editorial {
    width: 100%;
    max-width: none;
    margin: 0;
}

.mariposh-home .showcase-editorial .showcase-carousel {
    height: clamp(600px, 74vh, 760px);
    min-height: 600px;
}

.mariposh-home .showcase-editorial .showcase-slide {
    background-position: center calc(46% + var(--mp-hero-parallax, 0px));
}

.mariposh-home .showcase-editorial .showcase-slide::before {
    background:
        linear-gradient(90deg,
            rgba(18, 12, 14, 0.90) 0%,
            rgba(35, 23, 27, 0.74) 29%,
            rgba(55, 36, 42, 0.38) 55%,
            rgba(29, 18, 22, 0.08) 80%),
        linear-gradient(180deg,
            rgba(18, 11, 14, 0.02) 38%,
            rgba(18, 11, 14, 0.48) 100%);
}

.mariposh-home .showcase-editorial .showcase-content-shell {
    width: var(--home-shell);
    padding-bottom: 6.5rem;
}

.mariposh-home .showcase-editorial .showcase-content {
    width: min(650px, 52vw);
}

.mariposh-home .showcase-editorial .showcase-content h1 {
    max-width: 20ch;
    font-size: clamp(2.9rem, 4.05vw, 4.45rem);
    line-height: 1.1;
}

.mariposh-home .showcase-editorial .showcase-subtitle {
    max-width: 42ch;
    font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.mariposh-home .content-two {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: block;
    gap: 0;
    background: var(--home-canvas);
    overflow: visible;
}

.mariposh-home .content-two > * {
    position: relative;
    z-index: 1;
}

.mariposh-home .mariposh-texture-gallery {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(3.8rem, 6vw, 5.5rem);
    border: 0;
    border-radius: 0;
    background: var(--home-canvas);
    box-shadow: none;
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-intro {
    width: var(--home-shell);
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    padding-inline: 0;
    align-items: end;
    gap: clamp(2rem, 5vw, 6rem);
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-intro-copy {
    max-width: 670px;
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-intro h2 {
    max-width: 16ch;
    font-size: clamp(2.4rem, 4.1vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.055em;
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-intro-copy > p:last-child {
    max-width: 50ch;
    margin-top: 1rem;
    font-size: 0.98rem;
    line-height: 1.7;
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-marquee {
    padding-block: 0.75rem 1rem;
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-track {
    gap: clamp(0.8rem, 1.4vw, 1.25rem);
    padding-inline: clamp(1rem, 2vw, 2rem);
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-item {
    border: 0;
    box-shadow: none;
    background: #e8d8dc;
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-item:nth-child(5n + 1) {
    border-radius: 30px 10px 30px 10px;
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-item:nth-child(5n + 2) {
    border-radius: 10px 34px 10px 34px;
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-item:nth-child(5n + 3) {
    border-radius: 26px;
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-item:nth-child(5n + 4) {
    border-radius: 42px 12px 12px 12px;
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-item:nth-child(5n) {
    border-radius: 12px 12px 38px 12px;
}

.mariposh-home .mariposh-texture-gallery .portrait-gallery-caption {
    background: linear-gradient(180deg, transparent, rgba(27, 17, 21, 0.86));
}

.mariposh-home .mariposh-collection-showcase {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(4rem, 7vw, 6.5rem) 0 clamp(4.5rem, 7vw, 6.5rem);
    background: var(--home-canvas-soft);
}

.mariposh-home .mariposh-collection-showcase::before {
    content: none;
}

.mariposh-home .mariposh-collection-showcase-inner {
    width: var(--home-shell);
    max-width: 1240px;
}

.mariposh-home .collection-showcase-intro {
    margin-bottom: clamp(1.8rem, 3vw, 2.8rem);
    align-items: end;
    gap: 3rem;
}

.mariposh-home .collection-showcase-copy {
    max-width: 760px;
}

.mariposh-home .collection-showcase-intro h2 {
    max-width: 20ch;
    font-size: clamp(2.35rem, 4vw, 3.8rem);
    line-height: 1.1;
}

.mariposh-home .collection-showcase-copy > p:last-child {
    max-width: 52ch;
}

.mariposh-home .collection-showcase-grid {
    grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.82fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    min-height: 660px;
}

.mariposh-home .collection-showcase-card {
    border: 0;
    box-shadow: none;
}

.mariposh-home .collection-showcase-card.is-featured {
    border-radius: 44px 16px 44px 16px;
}

.mariposh-home .collection-showcase-card:nth-child(2) {
    border-radius: 16px 42px 16px 16px;
}

.mariposh-home .collection-showcase-card:nth-child(3) {
    border-radius: 16px 16px 42px 16px;
}

.mariposh-home .collection-showcase-card-content {
    padding: clamp(1.4rem, 2.6vw, 2.25rem);
}

.mariposh-home .collection-benefits {
    margin-top: clamp(1.5rem, 2.5vw, 2.2rem);
    gap: 1.5rem;
}

.mariposh-home .collection-benefit-card {
    min-height: 0;
    padding: 0.55rem 0.25rem;
    align-items: center;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mariposh-home .collection-benefit-icon {
    background: #ecd9de;
}

.mariposh-home .mariposh-deal-section {
    width: var(--home-shell);
    margin: 0 auto;
    padding: clamp(5rem, 8vw, 7rem) 0;
}

.mariposh-home .mariposh-deal-section .deal-header {
    margin-bottom: clamp(2rem, 3.5vw, 3rem);
    align-items: end;
}

.mariposh-home .mariposh-deal-section .deal-header h2 {
    max-width: 16ch;
    font-size: clamp(2.4rem, 4vw, 3.75rem);
    line-height: 1.1;
}

.mariposh-home .mariposh-deal-section .deal-layout {
    grid-template-columns: minmax(0, 1fr) minmax(275px, 0.34fr);
    align-items: stretch;
    gap: 1.15rem;
}

.mariposh-home .mariposh-deal-section .deal-products {
    grid-template-rows: repeat(2, minmax(250px, 1fr));
    gap: 1.15rem;
}

.mariposh-home .mariposh-deal-section .deal-products > .deal-card,
.mariposh-home .mariposh-deal-section .deal-banner {
    box-shadow: none;
}

.mariposh-home .mariposh-deal-section .deal-products > .deal-card:nth-child(1) {
    border-radius: 34px 14px 34px 14px;
}

.mariposh-home .mariposh-deal-section .deal-products > .deal-card:nth-child(2) {
    border-radius: 14px 34px 14px 14px;
}

.mariposh-home .mariposh-deal-section .deal-products > .deal-card:nth-child(3) {
    border-radius: 14px 14px 30px 14px;
}

.mariposh-home .mariposh-deal-section .deal-products > .deal-card:nth-child(4) {
    border-radius: 30px 14px 14px 14px;
}

.mariposh-home .mariposh-deal-section .deal-products > .deal-card:nth-child(5) {
    border-radius: 14px 14px 14px 30px;
}

.mariposh-home .mariposh-deal-section .deal-banner {
    height: 100%;
    min-height: 100%;
    border-radius: 14px 40px 14px 40px;
}

.mariposh-home .newsletter-section {
    width: var(--home-shell);
    margin: 0 auto clamp(5rem, 8vw, 7rem);
    padding: 0;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    border: 0;
    border-radius: 42px 14px 42px 14px;
    background: var(--home-canvas-warm);
    box-shadow: none;
    overflow: hidden;
}

.mariposh-home .newsletter-media {
    min-height: 470px;
    background: #d6c0c6;
    overflow: hidden;
}

.mariposh-home .newsletter-media-shape,
.mariposh-home .newsletter-media::after {
    display: none;
}

.mariposh-home .newsletter-media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    filter: none;
    transform: translate3d(0, var(--mp-newsletter-shift, 0px), 0) scale(1.035);
}

.mariposh-home .newsletter-content {
    padding: clamp(2.3rem, 4.5vw, 4.8rem);
    align-self: center;
}

.mariposh-home .newsletter-content h2 {
    max-width: 13ch;
    margin-top: 0.7rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.3vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-transform: none;
    color: var(--home-ink);
}

.mariposh-home .newsletter-content > p {
    max-width: 44ch;
    color: var(--home-muted);
    line-height: 1.7;
}

.mariposh-home .newsletter-form {
    max-width: 520px;
}

.mariposh-home .newsletter-form input {
    border: 0;
    border-radius: 12px 0 0 12px;
    background: rgba(255, 255, 255, 0.88);
}

.mariposh-home .newsletter-form .btn {
    border-radius: 0 12px 12px 0;
}

.mariposh-home .popular-items-section {
    width: var(--home-shell);
    margin: 0 auto;
    padding: 0 0 clamp(5rem, 8vw, 7rem);
    border: 0;
    background: transparent;
    overflow: visible;
}

.mariposh-home .popular-items-section::before {
    content: none;
}

.mariposh-home .popular-header {
    margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
}

.mariposh-home .popular-header h2 {
    max-width: 13ch;
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 4vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.mariposh-home .popular-products-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(225px, 1fr));
    grid-auto-flow: dense;
    gap: 1.05rem;
    min-height: 560px;
}

.mariposh-home .popular-products-grid > .popular-deal-card {
    min-height: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
}

.mariposh-home .popular-products-grid > .popular-deal-card:nth-child(1) {
    grid-column: span 5;
    grid-row: span 2;
    border-radius: 40px 14px 40px 14px;
}

.mariposh-home .popular-products-grid > .popular-deal-card:nth-child(2) {
    grid-column: span 7;
    border-radius: 14px 38px 14px 14px;
}

.mariposh-home .popular-products-grid > .popular-deal-card:nth-child(3) {
    grid-column: span 3;
    border-radius: 14px 14px 30px 14px;
}

.mariposh-home .popular-products-grid > .popular-deal-card:nth-child(4) {
    grid-column: span 4;
    border-radius: 30px 14px 14px 14px;
}

.mariposh-home .popular-deal-card .deal-image-wrap {
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
}

.mariposh-home .popular-deal-card .deal-image {
    transition: transform 700ms cubic-bezier(.22,.61,.36,1), filter 350ms ease;
}

.mariposh-home .popular-deal-card:hover .deal-image,
.mariposh-home .popular-deal-card:focus-within .deal-image {
    transform: scale(1.055);
    filter: saturate(1.04) contrast(1.02);
}

.mariposh-home .final-cta-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(225, 193, 201, 0.16), transparent 24%),
        linear-gradient(135deg, var(--home-dark) 0%, var(--home-dark-2) 100%);
    color: #fffafb;
}

.mariposh-home .final-cta-inner {
    width: var(--home-shell);
    min-height: 380px;
    margin: 0 auto;
    padding: clamp(4rem, 7vw, 6.2rem) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: end;
    column-gap: clamp(2rem, 7vw, 8rem);
    row-gap: 1rem;
    place-items: initial;
    text-align: left;
}

.mariposh-home .final-cta-inner::before,
.mariposh-home .final-cta-inner::after {
    content: none;
}

.mariposh-home .final-cta-tag {
    grid-column: 1;
    margin: 0;
    color: #d9b7c0;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mariposh-home .final-cta-inner h2 {
    grid-column: 1;
    max-width: 15ch;
    margin: 0;
    color: #fffafb;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.8vw, 4.75rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.mariposh-home .final-cta-button {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
    min-height: 52px;
    padding-inline: 1.4rem;
    border-radius: 12px;
    background: #fffafb;
    border-color: #fffafb;
    color: #3d292f;
    line-height: 1.2;
    white-space: nowrap;
}

.mariposh-home .final-cta-button:hover {
    background: #e9cfd6;
    border-color: #e9cfd6;
    color: #2b1d21;
}

/* Motion system: only active after JS adds .mp-motion-ready. */
.mariposh-home.mp-motion-ready .mp-reveal {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 30px, 0);
    transition:
        opacity 780ms cubic-bezier(.22,.61,.36,1) var(--mp-delay, 0ms),
        transform 900ms cubic-bezier(.22,.61,.36,1) var(--mp-delay, 0ms),
        filter 700ms ease var(--mp-delay, 0ms);
    will-change: opacity, transform, filter;
}

.mariposh-home.mp-motion-ready .mp-reveal[data-mp-reveal="left"] {
    transform: translate3d(-42px, 10px, 0);
}

.mariposh-home.mp-motion-ready .mp-reveal[data-mp-reveal="right"] {
    transform: translate3d(42px, 10px, 0);
}

.mariposh-home.mp-motion-ready .mp-reveal[data-mp-reveal="scale"] {
    transform: scale(0.94);
}

.mariposh-home.mp-motion-ready .mp-reveal[data-mp-reveal="tilt-left"] {
    transform: translate3d(0, 32px, 0) rotate(-1.4deg);
}

.mariposh-home.mp-motion-ready .mp-reveal[data-mp-reveal="tilt-right"] {
    transform: translate3d(0, 32px, 0) rotate(1.4deg);
}

.mariposh-home.mp-motion-ready .mp-reveal.is-in-view {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

.mariposh-home .collection-showcase-card,
.mariposh-home .mariposh-deal-section .deal-card,
.mariposh-home .mariposh-deal-section .deal-banner,
.mariposh-home .popular-deal-card {
    transition:
        transform 360ms cubic-bezier(.22,.61,.36,1),
        box-shadow 360ms ease,
        border-radius 360ms ease;
}

.mariposh-home .collection-showcase-card:hover,
.mariposh-home .collection-showcase-card:focus-within,
.mariposh-home .mariposh-deal-section .deal-card:hover,
.mariposh-home .mariposh-deal-section .deal-card:focus-within,
.mariposh-home .popular-deal-card:hover,
.mariposh-home .popular-deal-card:focus-within {
    transform: translateY(-6px);
}

@media (max-width: 1040px) {
    .mariposh-home .showcase-editorial .showcase-content {
        width: min(640px, 76vw);
    }

    .mariposh-home .collection-showcase-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
        min-height: 600px;
    }

    .mariposh-home .mariposh-deal-section .deal-layout {
        grid-template-columns: 1fr;
    }

    .mariposh-home .mariposh-deal-section .deal-banner {
        min-height: 360px;
    }

    .mariposh-home .newsletter-section {
        grid-template-columns: 1fr 1fr;
    }

    .mariposh-home .popular-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: minmax(300px, auto);
        min-height: 0;
    }

    .mariposh-home .popular-products-grid > .popular-deal-card:nth-child(n) {
        grid-column: span 1;
        grid-row: auto;
    }

    .mariposh-home .popular-products-grid > .popular-deal-card:nth-child(1) {
        grid-column: span 2;
        min-height: 430px;
    }
}

@media (max-width: 760px) {
    .mariposh-home {
        --home-shell: min(100% - 2rem, 720px);
    }

    .mariposh-home .showcase-editorial .showcase-carousel {
        height: clamp(580px, 78svh, 690px);
        min-height: 580px;
    }

    .mariposh-home .showcase-editorial .showcase-content-shell {
        width: var(--home-shell);
    }

    .mariposh-home .showcase-editorial .showcase-content {
        width: 100%;
    }

    .mariposh-home .showcase-editorial .showcase-content h1 {
        max-width: 100%;
        font-size: clamp(1.9rem, 7.5vw, 2.25rem);
        line-height: 1.12;
    }

    .mariposh-home .mariposh-texture-gallery {
        padding-top: 3.8rem;
    }

    .mariposh-home .mariposh-texture-gallery .portrait-gallery-intro,
    .mariposh-home .collection-showcase-intro,
    .mariposh-home .mariposh-deal-section .deal-header {
        display: grid;
        gap: 1.1rem;
    }

    .mariposh-home .mariposh-texture-gallery .portrait-gallery-intro h2,
    .mariposh-home .collection-showcase-intro h2,
    .mariposh-home .mariposh-deal-section .deal-header h2,
    .mariposh-home .popular-header h2 {
        max-width: 100%;
        font-size: clamp(1.9rem, 7.5vw, 2.3rem);
        line-height: 1.12;
    }

    .mariposh-home .collection-showcase-grid {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(390px, 1fr) repeat(2, minmax(260px, 0.72fr));
        min-height: 0;
    }

    .mariposh-home .collection-showcase-card.is-featured {
        grid-row: auto;
    }

    .mariposh-home .collection-benefits {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .mariposh-home .newsletter-section {
        width: calc(100% - 2rem);
        grid-template-columns: 1fr;
        border-radius: 30px 10px 30px 10px;
    }

    .mariposh-home .newsletter-media {
        min-height: 320px;
    }

    .mariposh-home .newsletter-content {
        padding: 2rem 1.35rem 2.2rem;
    }

    .mariposh-home .newsletter-form {
        display: grid;
        gap: 0.7rem;
    }

    .mariposh-home .newsletter-form input,
    .mariposh-home .newsletter-form .btn {
        width: 100%;
        border-radius: 10px;
    }

    .mariposh-home .popular-products-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(320px, auto);
        gap: 0.85rem;
    }

    .mariposh-home .popular-products-grid > .popular-deal-card:nth-child(n),
    .mariposh-home .popular-products-grid > .popular-deal-card:nth-child(1) {
        grid-column: span 1;
        min-height: 330px;
        border-radius: 24px 10px 24px 10px;
    }

    .mariposh-home .final-cta-section {
        border-radius: 38px 0 0 0;
    }

    .mariposh-home .final-cta-inner {
        min-height: 360px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        align-content: center;
        gap: 1rem;
    }

    .mariposh-home .final-cta-tag,
    .mariposh-home .final-cta-inner h2,
    .mariposh-home .final-cta-button {
        grid-column: 1;
        grid-row: auto;
    }

    .mariposh-home .final-cta-inner h2 {
        max-width: 100%;
        font-size: clamp(2rem, 8.4vw, 2.75rem);
        line-height: 1.1;
    }

    .mariposh-home .final-cta-button {
        width: fit-content;
        margin-top: 0.75rem;
    }
}

html[data-theme="dark"] .mariposh-home {
    --home-canvas: #22181b;
    --home-canvas-soft: #2a1d21;
    --home-canvas-warm: #34252a;
    --home-ink: #fff7f9;
    --home-muted: #d4bdc3;
    background: var(--home-canvas);
}

html[data-theme="dark"] .mariposh-home .mariposh-texture-gallery,
html[data-theme="dark"] .mariposh-home .mariposh-collection-showcase,
html[data-theme="dark"] .mariposh-home .popular-items-section {
    background: var(--home-canvas);
}

html[data-theme="dark"] .mariposh-home .mariposh-collection-showcase {
    background: var(--home-canvas-soft);
}

html[data-theme="dark"] .mariposh-home .newsletter-section {
    background: var(--home-canvas-warm);
}

html[data-theme="dark"] .mariposh-home .newsletter-content h2,
html[data-theme="dark"] .mariposh-home .popular-header h2 {
    color: var(--home-ink);
}

html[data-theme="dark"] .mariposh-home .newsletter-content > p {
    color: var(--home-muted);
}

@media (prefers-reduced-motion: reduce) {
    .mariposh-home *,
    .mariposh-home *::before,
    .mariposh-home *::after {
        scroll-behavior: auto !important;
    }

    .mariposh-home.mp-motion-ready .mp-reveal,
    .mariposh-home.mp-motion-ready .mp-reveal.is-in-view {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }

    .mariposh-home .showcase-editorial .showcase-slide,
    .mariposh-home .newsletter-media img {
        transform: none !important;
        transition: none !important;
    }
}


/* Homepage button wrapping polish */
.mariposh-home .mariposh-deal-section .deal-banner-link {
    width: fit-content;
    max-width: 100%;
    line-height: 1.2;
    white-space: nowrap;
}


/* ==========================================================================
   Homepage second-pass polish — rhythm, trust strip, popular header, motion
   ========================================================================== */
.mariposh-home .mariposh-collection-showcase {
    border-radius: 0;
}

.mariposh-home .collection-benefits {
    margin-top: clamp(1.4rem, 2.5vw, 2.25rem);
    padding-top: clamp(0.4rem, 1vw, 0.8rem);
}

.mariposh-home .collection-benefit-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    min-height: 68px;
    padding: 0.45rem 0;
}

.mariposh-home .collection-benefit-card > div {
    display: grid;
    gap: 0.22rem;
}

.mariposh-home .collection-benefit-label {
    color: #a4838c;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.14em;
}

.mariposh-home .collection-benefit-card h4 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.25;
}

.mariposh-home .collection-benefit-card p {
    display: none;
}

.mariposh-home .popular-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(1.7rem, 3vw, 2.6rem);
}

.mariposh-home .popular-header-copy {
    min-width: 0;
}

.mariposh-home .popular-kicker {
    margin: 0 0 0.55rem;
    color: #8a6871;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mariposh-home .popular-header-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    color: #6e4f52;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.mariposh-home .popular-header-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.mariposh-home .popular-header-link:hover {
    color: #4f373c;
    transform: translateY(-1px);
}

.mariposh-home .popular-header-link:hover svg {
    transform: translateX(3px);
}

.mariposh-home .popular-header-link:focus-visible {
    outline: 3px solid rgba(205, 169, 178, 0.48);
    outline-offset: 4px;
}

.mariposh-home.mp-motion-ready .mp-reveal {
    filter: blur(4px);
    will-change: opacity, transform;
}

.mariposh-home.mp-motion-ready .mp-reveal.is-in-view {
    filter: blur(0);
}

.mariposh-home .showcase-editorial .showcase-content {
    transform-origin: left center;
}

.mariposh-home .showcase-editorial .showcase-slide.is-active .showcase-content {
    animation-duration: 680ms;
}

@media (max-width: 760px) {
    .mariposh-home .mariposh-collection-showcase {
        border-radius: 0;
    }

    .mariposh-home .collection-benefits {
        gap: 0.35rem;
    }

    .mariposh-home .collection-benefit-card {
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 58px;
        padding: 0.3rem 0;
    }

    .mariposh-home .collection-benefit-icon {
        width: 40px;
        min-width: 40px;
        height: 40px;
    }

    .mariposh-home .popular-header {
        display: grid;
        gap: 0.9rem;
    }

    .mariposh-home .popular-header-link {
        width: fit-content;
    }

    .mariposh-home.mp-motion-ready .mp-reveal {
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mariposh-home .popular-header-link,
    .mariposh-home .popular-header-link svg {
        transition: none !important;
    }
}


/* Arm reveal transitions only after initial styles are painted.
   This prevents off-screen homepage elements from animating on first load. */
.mariposh-home.mp-motion-ready .mp-reveal {
    transition: none;
}

.mariposh-home.mp-motion-ready.mp-motion-armed .mp-reveal {
    transition:
        opacity 780ms cubic-bezier(.22,.61,.36,1) var(--mp-delay, 0ms),
        transform 900ms cubic-bezier(.22,.61,.36,1) var(--mp-delay, 0ms),
        filter 700ms ease var(--mp-delay, 0ms);
}

/* ==========================================================================
   Item Favorit full-width balance pass
   ========================================================================== */
.mariposh-home .popular-items-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(1rem, 3vw, 3rem) clamp(4rem, 6vw, 5.5rem);
    box-sizing: border-box;
}

.mariposh-home .popular-items-section .popular-header {
    width: min(1380px, 100%);
    max-width: 1380px;
    margin-inline: auto;
    margin-bottom: clamp(1.35rem, 2.2vw, 2rem);
}

.mariposh-home .popular-items-section .popular-products-grid {
    width: min(1380px, 100%);
    max-width: 1380px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, clamp(190px, 13vw, 230px));
    grid-auto-flow: dense;
    gap: clamp(0.75rem, 0.9vw, 0.95rem);
    min-height: 0;
}

.mariposh-home .popular-items-section .popular-products-grid > .popular-deal-card {
    min-width: 0;
    min-height: 0;
    height: 100%;
    align-self: stretch;
}

.mariposh-home .popular-items-section .popular-products-grid > .popular-deal-card:nth-child(1) {
    grid-column: span 5;
    grid-row: auto;
    border-radius: 34px 14px 28px 14px;
}

.mariposh-home .popular-items-section .popular-products-grid > .popular-deal-card:nth-child(2) {
    grid-column: span 7;
    grid-row: auto;
    border-radius: 14px 34px 14px 22px;
}

.mariposh-home .popular-items-section .popular-products-grid > .popular-deal-card:nth-child(3) {
    grid-column: span 7;
    grid-row: auto;
    border-radius: 14px 22px 14px 34px;
}

.mariposh-home .popular-items-section .popular-products-grid > .popular-deal-card:nth-child(4) {
    grid-column: span 5;
    grid-row: auto;
    border-radius: 28px 14px 34px 14px;
}

.mariposh-home .popular-items-section .popular-deal-card .deal-image-wrap,
.mariposh-home .popular-items-section .popular-deal-card .deal-image {
    width: 100%;
    height: 100%;
}

.mariposh-home .popular-items-section .popular-deal-card .deal-image {
    object-fit: cover;
}

@media (max-width: 1100px) {
    .mariposh-home .popular-items-section {
        padding-inline: clamp(1rem, 2.5vw, 2rem);
    }

    .mariposh-home .popular-items-section .popular-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(240px, auto));
        grid-auto-rows: minmax(240px, auto);
        min-height: 0;
    }

    .mariposh-home .popular-items-section .popular-products-grid > .popular-deal-card:nth-child(n),
    .mariposh-home .popular-items-section .popular-products-grid > .popular-deal-card:nth-child(1) {
        grid-column: span 1;
        grid-row: auto;
        min-height: 240px;
    }
}

@media (max-width: 700px) {
    .mariposh-home .popular-items-section {
        padding: 0 1rem 4rem;
    }

    .mariposh-home .popular-items-section .popular-products-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: minmax(235px, auto);
        gap: 0.72rem;
    }

    .mariposh-home .popular-items-section .popular-products-grid > .popular-deal-card:nth-child(n),
    .mariposh-home .popular-items-section .popular-products-grid > .popular-deal-card:nth-child(1) {
        grid-column: 1;
        grid-row: auto;
        min-height: 235px;
        border-radius: 20px 10px 20px 10px;
    }
}


/* ==========================================================================
   Item Favorit readability pass — keep copy legible over every fabric crop
   ========================================================================== */
.mariposh-home .popular-items-section .popular-deal-card .deal-overlay {
    background:
        linear-gradient(
            to top,
            rgba(24, 15, 18, 0.82) 0%,
            rgba(24, 15, 18, 0.58) 24%,
            rgba(24, 15, 18, 0.18) 52%,
            rgba(24, 15, 18, 0.02) 76%
        );
}

.mariposh-home .popular-items-section .popular-deal-card .deal-info-inline h3,
.mariposh-home .popular-items-section .popular-deal-card .deal-info-inline h3 a {
    color: #fffafc !important;
    font-weight: 750;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

.mariposh-home .popular-items-section .popular-deal-card .deal-price-inline {
    color: rgba(255, 247, 250, 0.9) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mariposh-home .popular-items-section .popular-deal-card .deal-price-inline span,
.mariposh-home .popular-items-section .popular-deal-card .deal-price-inline span:not(.price-old),
.mariposh-home .popular-items-section .popular-deal-card .deal-price-inline .price-current {
    color: #ffffff !important;
    font-weight: 800;
}

.mariposh-home .popular-items-section .popular-deal-card .deal-price-inline .price-old {
    color: rgba(255, 255, 255, 0.78) !important;
}

@media (max-width: 700px) {
    .mariposh-home .popular-items-section .popular-deal-card .deal-overlay {
        background:
            linear-gradient(
                to top,
                rgba(24, 15, 18, 0.84) 0%,
                rgba(24, 15, 18, 0.6) 28%,
                rgba(24, 15, 18, 0.14) 58%,
                rgba(24, 15, 18, 0.01) 78%
            );
    }
}
