/* ========================================================================
   828 Mega Mums by Starla — product-page.css
   Product-page-only CSS loaded on WooCommerce product pages.

   Mobile top-section alignment fix — Jul 5, 2026
   Scope:
   - Only applies below 960px.
   - Only targets the top product <main class="sticky-section-card"> inside
     .megamums-product-page.
   - Does not rename, hide, move, or restyle WooCommerce/RedNao cart selectors.
   - Keeps sticky helper behavior safe by avoiding transforms/overflow clipping
     on the sticky buying-card parent.
   ======================================================================== */

.megamums-product-page {
  background: var(--color-bg-neutral);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: clip;
}

.megamums-product-page *,
.megamums-product-page *::before,
.megamums-product-page *::after { box-sizing: border-box; }

.megamums-product-page h1,
.megamums-product-page h2,
.megamums-product-page h3,
.megamums-product-page h4,
.megamums-product-page .serif {
  font-family: var(--font-heading);
  font-weight: 600;
}

.megamums-product-page a { color: inherit; text-decoration: none; }
.megamums-product-page img { display: block; width: 100%; height: auto; object-fit: initial; }

        .megamums-product-page .breadcrumbs {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--color-text-muted);
            margin-bottom: 12px;
        }

        .megamums-product-page .product-title {
            font-size: 2.8rem;
            line-height: 1.15;
            margin-bottom: 12px;
            color: var(--color-text-dark);
        }

        .megamums-product-page .price-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            border-bottom: 1px solid rgba(255, 182, 193, 0.45);
            padding-bottom: 16px;
        }

        .megamums-product-page .price {
            font-size: 1.6rem;
            font-weight: 500;
        }

        .megamums-product-page .rating {
            font-size: 0.9rem;
            color: var(--color-pink-hot);
            letter-spacing: 1px;
        }

        /* --------------------------------------------------
           SECTION INNER GRIDS & HEADINGS
        ----------------------------------------------------- */
        .megamums-product-page .section-inner-padding {
            padding: 60px 48px;
        }

        .megamums-product-page .section-header h2 {
            font-size: 2.5rem;
            margin-bottom: 12px;
            line-height: 1.15;
            color: var(--color-text-dark);
        }

        .megamums-product-page .section-header p {
            font-size: 1rem;
            color: var(--color-text-muted);
        }

        /* --------------------------------------------------
           MUM BLUEPRINT VALUE GRID (Section 1.5)
        ----------------------------------------------------- */
        .megamums-product-page .blueprint-metrics-strip {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 16px;
            background-color: var(--color-bg-neutral);
            padding: 24px;
            border-radius: 8px;
            margin-bottom: 40px;
            text-align: center;
            border: 1px solid rgba(255, 182, 193, 0.45);
        }

        .megamums-product-page .metric-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .megamums-product-page .metric-num {
            font-family: var(--font-heading);
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--color-pink-hot);
            line-height: 1.1;
            margin-bottom: 4px;
        }

        .megamums-product-page .metric-label {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--color-text-muted);
        }

        .megamums-product-page .blueprint-cards-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            align-items: stretch;
        }

        .megamums-product-page .blueprint-value-card {
            background-color: #ffffff;
            border: 1px solid rgba(255, 182, 193, 0.45);
            border-radius: 8px;
            padding: 24px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.01);
            transition: transform 0.2s, box-shadow 0.2s;
            display: flex;
            flex-direction: column;
        }

        .megamums-product-page .blueprint-value-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.03);
        }

        .megamums-product-page .blueprint-card-title {
            font-family: var(--font-heading);
            font-size: 1.25rem;
            color: var(--color-text-dark);
            margin-bottom: 16px;
            border-bottom: 2px solid var(--color-pink-soft);
            padding-bottom: 6px;
            display: inline-block;
        }

        .megamums-product-page .blueprint-card-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .megamums-product-page .blueprint-card-list li {
            font-size: 0.85rem;
            color: var(--color-text-muted);
            line-height: 1.5;
            margin-bottom: 12px;
            position: relative;
            padding-left: 18px;
        }

        .megamums-product-page .blueprint-card-list li::before {
            content: "✦";
            position: absolute;
            left: 0;
            color: var(--color-pink-hot);
            font-size: 0.75rem;
        }

        /* --------------------------------------------------
           EXPLORE CUSTOM DETAILS — PINNED STAGE (Step 3)
           Markup: .mm-details-stage in single-product.php
           Motion: assets/js/product-page.js (GSAP, scrubbed timeline)
           One value set for mobile and desktop; only the layout stacks.
        ----------------------------------------------------- */
        .megamums-product-page .mm-details-stage {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 48px;
            align-items: center;
        }

        /* Crossfade layers share one grid cell so the stack never reflows. */
        .megamums-product-page .mm-details-stage .mm-stage-media {
            position: relative;
            display: grid;
            width: 100%;
            height: 55vh;
        }

        .megamums-product-page .mm-details-stage .mm-slide {
            grid-area: 1 / 1;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            will-change: opacity, transform;
        }

        /* No-JS / pre-GSAP resting state: only the first detail is visible. */
        .megamums-product-page .mm-details-stage .mm-slide.is-active { opacity: 1; }

        .megamums-product-page .mm-details-stage .mm-slide.is-empty {
            background: linear-gradient(135deg, var(--color-pink-soft) 0%, #FFE4E1 100%);
            border-radius: 12px;
        }

        .megamums-product-page .mm-details-stage .mm-slide img {
            width: auto;
            height: 100%;
            max-width: 100%;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
        }

        .megamums-product-page .mm-details-stage .mm-stage-copy {
            display: flex;
            flex-direction: column;
            gap: 18px;
            min-width: 0;
        }

        .megamums-product-page .mm-details-stage .mm-rail {
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: 1fr;
            gap: 8px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .megamums-product-page .mm-details-stage .mm-rail-item {
            height: 4px;
            border-radius: 999px;
            background-color: rgba(255, 182, 193, 0.45);
            overflow: hidden;
        }

        .megamums-product-page .mm-details-stage .mm-rail-fill {
            display: block;
            width: 100%;
            height: 100%;
            border-radius: inherit;
            background-color: var(--color-pink-hot);
            transform: scaleX(0);
            transform-origin: left center;
        }

        .megamums-product-page .mm-details-stage .mm-rail-item.is-active .mm-rail-fill { transform: scaleX(1); }

        .megamums-product-page .mm-details-stage .mm-copy-frame {
            display: grid;
            background-color: var(--color-bg-neutral);
            border: 1px solid rgba(255, 182, 193, 0.45);
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
            padding: 40px;
            min-height: 250px;
        }

        .megamums-product-page .mm-details-stage .mm-step {
            grid-area: 1 / 1;
            align-self: center;
            opacity: 0;
            will-change: opacity, transform;
        }

        .megamums-product-page .mm-details-stage .mm-step.is-active { opacity: 1; }

        .megamums-product-page .mm-details-stage .mm-step-count {
            display: block;
            margin-bottom: 10px;
            font-size: 0.75rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--color-pink-hot);
        }

        .megamums-product-page .mm-copy-frame .anatomy-focused-title {
            font-size: 1.6rem;
            color: var(--color-pink-hot);
            margin-bottom: 12px;
        }

        .megamums-product-page .mm-copy-frame .anatomy-focused-desc {
            font-size: 1rem;
            color: var(--color-text-dark);
            line-height: 1.7;
        }

        .megamums-product-page .mm-details-stage .mm-step-bullets {
            margin: 14px 0 0;
            padding: 0;
            list-style: none;
        }

        .megamums-product-page .mm-details-stage .mm-step-bullets li {
            position: relative;
            margin-bottom: 6px;
            padding-left: 18px;
            font-size: 0.9rem;
            line-height: 1.6;
            color: var(--color-text-dark);
        }

        .megamums-product-page .mm-details-stage .mm-step-bullets li::before {
            content: "\2726";
            position: absolute;
            left: 0;
            color: var(--color-pink-hot);
            font-size: 0.75rem;
        }

        /* --------------------------------------------------
           The HORIZONTAL SCROLL LAYOUTS block was removed with the markup
           it styled. See RELATED PRODUCTS CAROUSEL at the end of this file.
        ----------------------------------------------------- */

        /* --------------------------------------------------
           HOW TO ORDER GRID
        ----------------------------------------------------- */
        .megamums-product-page .how-to-order-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        .megamums-product-page .order-card {
            background-color: var(--color-bg-neutral);
            border-radius: 8px;
            padding: 40px 24px;
            text-align: center;
            border: 1px solid rgba(255, 182, 193, 0.45);
        }

        .megamums-product-page .order-num {
            font-family: var(--font-heading);
            font-size: 2.2rem;
            color: var(--color-pink-hot);
            font-style: italic;
            font-weight: 700;
            margin-bottom: 12px;
            display: block;
        }

        .megamums-product-page .order-heading {
            font-size: 1.15rem;
            margin-bottom: 8px;
            color: var(--color-text-dark);
        }

        .megamums-product-page .order-copy {
            font-size: 0.9rem;
            color: var(--color-text-muted);
            line-height: 1.6;
        }

        /* --------------------------------------------------
           SEO FAQs SECTION ACCORDIONS
        ----------------------------------------------------- */
        .megamums-product-page .faq-accordion-group {
            max-width: 800px;
            margin: 0 auto;
        }

        .megamums-product-page .faq-accordion-card {
            background-color: var(--color-bg-neutral);
            border: 1px solid rgba(255, 182, 193, 0.45);
            border-radius: 8px;
            margin-bottom: 16px;
            overflow: hidden;
        }

        .megamums-product-page .faq-accordion-trigger {
            width: 100%;
            background: none;
            border: none;
            padding: 20px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-family: var(--font-heading);
            font-size: 1.15rem;
            color: var(--color-text-dark);
            cursor: pointer;
            text-align: left;
            font-weight: 600;
        }

        .megamums-product-page .faq-indicator {
            font-size: 1.3rem;
            color: var(--color-pink-hot);
            font-weight: normal;
        }

        .megamums-product-page .faq-accordion-content {
            height: 0;
            overflow: hidden;
            position: relative;
        }

        .megamums-product-page .faq-accordion-inner {
            padding: 0 24px 20px 24px;
            font-size: 0.9rem;
            color: var(--color-text-muted);
            line-height: 1.6;
        }

.megamums-product-page .product-options-intro {
  margin-bottom: 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 182, 193, 0.45);
}

.megamums-product-page .product-options-kicker {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--color-pink-hot);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.megamums-product-page .product-options-intro h2 {
  color: var(--color-text-dark);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.1;
  margin: 0 0 0.45rem;
}

.megamums-product-page .product-options-intro p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  margin: 0;
}

@media (max-width: 960px) {
            .megamums-product-page .section-inner-padding {
                padding: 40px 20px;
            }

            /* Responsive Blueprint Mobile Adjustments */
            .megamums-product-page .blueprint-metrics-strip {
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
                padding: 16px;
            }
            .megamums-product-page .blueprint-cards-grid {
                grid-template-columns: 1fr !important;
                gap: 16px !important;
            }

            /* Explore Custom Details — mobile (Step 3).
               Same motion values as desktop; the mobile pin is deliberately
               kept, so only the layout stacks here. --mm-cta-h is published by
               product-page.js so the stage never sits under the mobile buy bar. */
            .megamums-product-page .mm-details-stage {
                grid-template-columns: 1fr;
                gap: 16px;
                justify-items: center;
            }

            .megamums-product-page .mm-details-stage .mm-stage-media {
                /* 35.2vh is the 4:5 portrait width that matches a 44vh-tall image.
                   Kept as a direct value: calc() cannot reliably multiply vh. */
                width: min(35.2vh, 100%);
                height: auto;
                aspect-ratio: 4 / 5;
                max-width: 100%;
                margin: 0 auto;
            }

            .megamums-product-page .mm-details-stage .mm-slide img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .megamums-product-page .mm-details-stage .mm-stage-copy {
                width: 100%;
                gap: 12px;
            }

            .megamums-product-page .mm-details-stage .mm-copy-frame {
                padding: 20px;
                min-height: 150px;
                background-color: #ffffff;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
            }

            .megamums-product-page .mm-copy-frame .anatomy-focused-title {
                font-size: 1.25rem;
                margin-bottom: 8px;
            }

            .megamums-product-page .mm-copy-frame .anatomy-focused-desc {
                font-size: 0.85rem;
                line-height: 1.5;
            }

            .megamums-product-page .mm-details-stage .mm-step-bullets li {
                font-size: 0.8rem;
            }

            /* Mobile overrides for the old horizontal scrub were removed with
               it. The carousel scrolls by touch natively. */

            .megamums-product-page .how-to-order-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
  .megamums-product-page > main.sticky-section-card,
  .megamums-product-page > main.sticky-section-card * {
    box-sizing: border-box;
  }

  /* Let only the top product hero/card section use the full mobile viewport.
     This removes the slight right-shift created by nested 90vw + padding layers. */
  .megamums-product-page > main.sticky-section-card {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    transform: none !important;
    overflow: visible !important;
  }

  .megamums-product-page > main.sticky-section-card .hero-grid,
  .megamums-product-page > main.sticky-section-card .hero-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .megamums-product-page > main.sticky-section-card .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Keep the mobile product image/gallery full-width and visually centered. */
  .megamums-product-page > main.sticky-section-card .mobile-gallery-container,
  .megamums-product-page > main.sticky-section-card .woocommerce-product-gallery,
  .megamums-product-page > main.sticky-section-card .woocommerce-product-gallery__wrapper,
  .megamums-product-page > main.sticky-section-card .woocommerce-product-gallery__image {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
  }

  /* The inner gallery wrapper is the moving slide track. Do not apply a fixed
     transform here: product-page.js updates its inline translateX() value. */
  .megamums-product-page > main.sticky-section-card .mobile-gallery-wrapper {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .megamums-product-page > main.sticky-section-card .mobile-gallery-container img,
  .megamums-product-page > main.sticky-section-card .mobile-gallery-wrapper img,
  .megamums-product-page > main.sticky-section-card .woocommerce-product-gallery__image img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Keep the buying/form column centered without clipping sticky children. */
  .megamums-product-page > main.sticky-section-card .right-sticky-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    overflow: visible !important;
  }

  .megamums-product-page > main.sticky-section-card .sticky-buying-card,
  .megamums-product-page > main.sticky-section-card .offset-wrapper,
  .megamums-product-page > main.sticky-section-card .actual-form-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
  }

  /* Keep title/value blocks comfortably centered inside the full-width top section. */
  .megamums-product-page > main.sticky-section-card .sticky-buying-card > .product-title,
  .megamums-product-page > main.sticky-section-card .sticky-buying-card > .product-tagline,
  .megamums-product-page > main.sticky-section-card .sticky-buying-card > .price-row,
  .megamums-product-page > main.sticky-section-card .sticky-buying-card > .included-chips,
  .megamums-product-page > main.sticky-section-card .sticky-buying-card > .included-cta {
    width: min(90vw, calc(100% - 2px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .megamums-product-page > main.sticky-section-card .sticky-buying-card > .product-title,
  .megamums-product-page > main.sticky-section-card .sticky-buying-card > .product-tagline {
    text-align: center !important;
  }

  .megamums-product-page > main.sticky-section-card .sticky-buying-card > .price-row {
    justify-content: space-between !important;
  }

  /* Keep the pink offset subtle so it reads like a shadow, not a side stripe. */
  .megamums-product-page > main.sticky-section-card .offset-shadow-box {
    left: -4px !important;
    right: 4px !important;
  }

  .megamums-product-page > main.sticky-section-card .included-chips .chip {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

        @media (max-width: 550px) {
            .megamums-product-page .blueprint-metrics-strip {
                grid-template-columns: repeat(2, 1fr);
            }
            .megamums-product-page .blueprint-metrics-strip .metric-item:last-child {
                grid-column: span 2;
                align-items: center;
            }
        }

/* --------------------------------------------------
   EXPLORE CUSTOM DETAILS — REDUCED MOTION (Step 3)
   product-page.js builds no pin, no timeline and no scrub when the user
   asks for reduced motion, so nothing here would be visible. Show every
   detail as a plain stacked list instead, with the first photo as a still.
   !important is needed only to clear GSAP's inline opacity if the query
   flips after the timeline was already built.
----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .megamums-product-page .mm-details-stage {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .megamums-product-page .mm-details-stage .mm-stage-media {
        width: min(320px, 100%);
        height: auto;
        aspect-ratio: 4 / 5;
        margin: 0 auto;
    }

    .megamums-product-page .mm-details-stage .mm-slide { opacity: 0 !important; }
    .megamums-product-page .mm-details-stage .mm-slide:first-child { opacity: 1 !important; }

    .megamums-product-page .mm-details-stage .mm-rail { display: none; }

    .megamums-product-page .mm-details-stage .mm-copy-frame { display: block; }

    .megamums-product-page .mm-details-stage .mm-step {
        opacity: 1 !important;
        transform: none !important;
    }

    .megamums-product-page .mm-details-stage .mm-step + .mm-step {
        margin-top: 28px;
        padding-top: 28px;
        border-top: 1px solid rgba(255, 182, 193, 0.45);
    }
}

/* ==========================================================================
   PHOTO GALLERY GRID (Step 4)
   Three widths only: Full (whole row, 4:5), Wide (whole row, 8:5) and Half
   (one column, 4:5). There is no "Half (left)" class, because a lone Half
   already lands in column 1 through normal grid auto-placement.
   The 4:5 and 8:5 rules need !important because .stack-item carries an
   !important aspect-ratio in the template's own inline CSS.
   ========================================================================== */
@media (min-width: 769px) {
    /* Scoped to desktop on purpose: below 769px the inline template CSS hides
       .desktop-image-stack and the phone swiper takes over. Setting display
       unconditionally here would beat that media query on specificity and
       show both galleries at once on a phone. */
    .megamums-product-page .desktop-image-stack.mm-gal-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        align-items: start;
    }
}

.megamums-product-page .mm-gal-grid .stack-item {
    aspect-ratio: 4 / 5 !important;
    border-radius: 16px;
    overflow: hidden;
}

.megamums-product-page .mm-gal-grid .g-full {
    grid-column: 1 / -1;
}

.megamums-product-page .mm-gal-grid .g-half {
    grid-column: span 1;
}

.megamums-product-page .mm-gal-grid .g-wide {
    grid-column: 1 / -1;
    aspect-ratio: 8 / 5 !important;
}

.megamums-product-page .mm-gal-grid .stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* A Wide photo forced into the phone swiper crops to the tall slide frame
   instead of letterboxing. The 4:5 phone frame itself never changes. */
.megamums-product-page .mobile-slide.is-wide-forced img {
    object-fit: cover;
    object-position: center;
}

/* Breadcrumb is a real link now that it follows the product's category. */
.megamums-product-page .breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.megamums-product-page .breadcrumbs a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RELATED PRODUCTS CAROUSEL (Step 4)
   Replaces the pinned horizontal scrub. A plain overflow-x scroller: no GSAP,
   no ScrollTrigger, no pinning, so it cannot fight the Step 3 pin.
   ========================================================================== */
.megamums-product-page .mm-rel-viewport {
    position: relative;
}

/* Edge fades hint that there is more to the right without showing a scrollbar. */
.megamums-product-page .mm-rel-viewport::before,
.megamums-product-page .mm-rel-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    pointer-events: none;
    z-index: 2;
}

.megamums-product-page .mm-rel-viewport::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.megamums-product-page .mm-rel-viewport::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

.megamums-product-page .mm-rel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px 18px;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.megamums-product-page .mm-rel-track::-webkit-scrollbar {
    display: none;
}

.megamums-product-page .mm-rel-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.megamums-product-page .mm-rel-track:focus-visible {
    outline: 2px solid var(--color-pink-hot);
    outline-offset: 4px;
}

.megamums-product-page .mm-card {
    flex: 0 0 240px;
    width: 240px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(255, 182, 193, 0.45);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.megamums-product-page .mm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

.megamums-product-page .mm-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fcfcfc;
}

.megamums-product-page .mm-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.megamums-product-page .mm-card:hover .mm-card-media img {
    transform: scale(1.05);
}

.megamums-product-page .mm-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-pink-hot);
    color: #ffffff;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
}

.megamums-product-page .mm-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
    flex: 1;
}

.megamums-product-page .mm-card-cat {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-muted);
}

.megamums-product-page .mm-card-title {
    font-size: 1.02rem;
    line-height: 1.25;
    margin: 0;
    color: var(--color-text-dark);
}

.megamums-product-page .mm-card-note {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--color-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.megamums-product-page .mm-card-foot {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.megamums-product-page .mm-card-price {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-weight: 700;
    color: var(--color-text-dark);
}

.megamums-product-page .mm-card-price small {
    font-weight: 400;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.megamums-product-page .mm-card-price del {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.megamums-product-page .mm-card-price ins {
    text-decoration: none;
}

.megamums-product-page .mm-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-pink-hot);
    white-space: nowrap;
}

.megamums-product-page .mm-rel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

.megamums-product-page .mm-rel-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 182, 193, 0.45);
    background: #ffffff;
    color: var(--color-text-dark);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.megamums-product-page .mm-rel-btn:hover {
    background: var(--color-pink-hot);
    border-color: var(--color-pink-hot);
    color: #ffffff;
}

.megamums-product-page .mm-rel-hint {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

/* ==========================================================================
   STICKY CTA BAR (Step 4)
   Was a mobile-only strip; now runs on desktop too, so it needs real layout
   rules rather than one media query. It is always in the DOM and always
   display:flex - visibility is the transform, which is what lets
   product-wizard.js slide it away with its own translateY(120%) rule while
   the option summary is open.
   ========================================================================== */
.megamums-product-page .mm-sticky-buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid rgba(255, 182, 193, 0.45);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.10);
    transform: translateY(120%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.megamums-product-page .mm-sticky-buybar.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

/* The bar's own parts are toggled with the hidden attribute, which needs help
   to win against the display:flex rules above. */
.megamums-product-page .mm-sticky-buybar [hidden] {
    display: none !important;
}

.megamums-product-page .mm-cta-thumb {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    overflow: hidden;
    background: #fcfcfc;
}

.megamums-product-page .mm-cta-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.megamums-product-page .mm-sticky-buybar-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
    line-height: 1.15;
}

.megamums-product-page .mm-sticky-buybar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.megamums-product-page .mm-cta-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.megamums-product-page .mm-cta-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 182, 193, 0.9);
}

.megamums-product-page .mm-sticky-buybar.is-ready .mm-cta-dot {
    background: var(--color-pink-hot);
}

.megamums-product-page .mm-cta-progress {
    display: block;
    width: 100%;
    max-width: 190px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 182, 193, 0.45);
    overflow: hidden;
}

.megamums-product-page .mm-cta-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--color-pink-hot);
    transition: width 0.3s ease;
}

.megamums-product-page .mm-cta-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    line-height: 1.15;
}

.megamums-product-page .mm-cta-price-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.megamums-product-page .mm-sticky-buybar-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-pink-hot);
    white-space: nowrap;
}

.megamums-product-page .mm-sticky-buybar-btn {
    flex: 0 0 auto;
    background: var(--color-pink-hot);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.1s ease;
}

/* Deepen the same pink when every option is chosen. Pink only - never gold. */
.megamums-product-page .mm-sticky-buybar.is-ready .mm-sticky-buybar-btn {
    filter: saturate(1.12) brightness(0.93);
}

.megamums-product-page .mm-sticky-buybar-btn:active {
    transform: scale(0.98);
}

@media (min-width: 769px) {
    .megamums-product-page .mm-sticky-buybar {
        gap: 20px;
        padding: 12px 28px;
    }

    .megamums-product-page .mm-sticky-buybar-label {
        font-size: 0.95rem;
        max-width: 340px;
    }

    .megamums-product-page .mm-sticky-buybar-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .megamums-product-page .mm-card {
        flex-basis: 210px;
        width: 210px;
    }

    .megamums-product-page .mm-rel-viewport::before,
    .megamums-product-page .mm-rel-viewport::after {
        width: 24px;
    }
}

/* Tight phones: drop the thumb and the price chip, and let the button take the
   room. product-page.js moves the total into the button label at this width so
   the price is still visible. */
@media (max-width: 599px) {
    .megamums-product-page .mm-cta-thumb,
    .megamums-product-page .mm-cta-price {
        display: none;
    }

    .megamums-product-page .mm-cta-progress {
        max-width: none;
    }

    .megamums-product-page .mm-sticky-buybar-btn {
        flex: 1;
        max-width: 58%;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* The drift loop is also skipped in JavaScript; these cover the hovers,
       the smooth scrolling and the bar slide. */
    .megamums-product-page .mm-rel-track {
        scroll-behavior: auto;
    }

    .megamums-product-page .mm-card,
    .megamums-product-page .mm-card-media img,
    .megamums-product-page .mm-sticky-buybar,
    .megamums-product-page .mm-cta-bar,
    .megamums-product-page .mm-rel-btn {
        transition: none;
    }

    .megamums-product-page .mm-card:hover {
        transform: none;
    }

    .megamums-product-page .mm-card:hover .mm-card-media img {
        transform: none;
    }
}
