/* ============================================================
   HRD Mitti & Mantra - home page theme
   Palette: charcoal grey, terracotta orange, white
   ============================================================ */

:root {
    --grey-900: #23272b;
    --orange-700: #c2410c;
    --orange-500: #f97316;
    --orange-300: #fdba74;
    --grey-100: #f1f3f5;
    --orange-400: #fb923c;
    --grey-600: #565e66;
    --white: #ffffff;
    --ink: #23272b;
    --muted: #6b7280;
    --radius-lg: 26px;
    --radius-md: 16px;
    --shadow-soft: 0 18px 44px rgba(35, 39, 43, .10);
    --shadow-lift: 0 26px 60px rgba(35, 39, 43, .18);
}

body {
    background: var(--white);
    color: var(--ink);
    font-family: "Segoe UI", "Noto Sans", system-ui, -apple-system, sans-serif;
}

/* ---------- shared bits ---------- */
.mm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 0;
    border-radius: 999px;
    padding: .72rem 1.5rem;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.mm-btn--primary {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    color: #fff;
    box-shadow: 0 12px 24px rgba(35, 39, 43, .28);
}

.mm-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(35, 39, 43, .36);
}

.mm-btn--outline {
    background: transparent;
    color: var(--orange-700);
    border: 1.5px solid var(--orange-300);
}

.mm-btn--outline:hover {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: #fff;
}

.mm-btn--ghost {
    background: #e9ecef;
    color: var(--muted);
    cursor: not-allowed;
}

.mm-btn--cart {
    background: var(--ink);
    color: #fff;
    padding: .6rem 1.15rem;
}

.mm-btn--cart:hover {
    background: var(--orange-500);
    transform: translateY(-2px);
}

.mm-kicker {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--orange-500);
    margin-bottom: .55rem;
}

.mm-kicker--light {
    color: var(--orange-400);
}

.mm-alert {
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
}

/* star rating rendered purely with CSS */
.mm-stars {
    --rating: 5;
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    position: relative;
    width: 5.6em;
    height: 1em;
}

.mm-stars::before,
.mm-stars::after {
    content: "\2605\2605\2605\2605\2605";
    letter-spacing: .1em;
    position: absolute;
    inset: 0;
}

.mm-stars::before {
    color: #d8dbdf;
}

.mm-stars::after {
    color: var(--orange-400);
    width: calc(var(--rating) / 5 * 100%);
    overflow: hidden;
    white-space: nowrap;
}

/* ---------- navbar ---------- */
.mm-navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(35, 39, 43, .14);
}

.mm-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.mm-brand__mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    color: #fff;
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .04em;
}

.mm-brand__text {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--grey-900);
}

.mm-brand__text em {
    color: var(--orange-500);
    font-style: normal;
}

.mm-navbar .nav-link {
    color: var(--ink);
    font-weight: 550;
    padding-inline: .9rem;
    position: relative;
}

.mm-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: .35rem;
    height: 2px;
    background: var(--orange-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.mm-navbar .nav-link:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-left: .6rem;
}

/* ---------- hero ---------- */
.mm-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(1000px 460px at 88% -12%, rgba(249, 115, 22, .28), transparent 62%),
        linear-gradient(180deg, #fafbfc 0%, var(--white) 100%);
}

.mm-hero__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    left: -140px;
    bottom: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(35, 39, 43, .22), transparent 70%);
}

.mm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid rgba(35, 39, 43, .2);
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--orange-700);
    box-shadow: var(--shadow-soft);
}

.mm-eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange-500);
    animation: mm-pulse 2s infinite;
}

@keyframes mm-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .55); }
    50% { box-shadow: 0 0 0 7px rgba(249, 115, 22, 0); }
}

.mm-hero__title {
    margin: 1.25rem 0 1rem;
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--grey-900);
}

.mm-hero__accent {
    position: relative;
    color: var(--orange-500);
}

.mm-hero__accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .1em;
    height: .32em;
    background: rgba(249, 115, 22, .35);
    border-radius: 6px;
    z-index: -1;
}

.mm-hero__text {
    max-width: 34rem;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.75;
}

.mm-hero__search {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid rgba(35, 39, 43, .18);
    border-radius: 999px;
    padding: .4rem .4rem .4rem 1rem;
    margin: 1.8rem 0 2rem;
    max-width: 30rem;
    box-shadow: var(--shadow-soft);
}

.mm-hero__search-icon {
    opacity: .55;
}

.mm-hero__search-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: .98rem;
    padding: .5rem;
}

.mm-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.4rem;
}

.mm-stat__value {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--orange-700);
    line-height: 1;
}

.mm-stat__label {
    font-size: .85rem;
    color: var(--muted);
}

/* CSS-only clay pot illustration */
.mm-hero__art {
    position: relative;
    height: 420px;
    display: grid;
    place-items: center;
}

.mm-pot {
    position: relative;
    animation: mm-float 6s ease-in-out infinite;
}

@keyframes mm-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.mm-pot__neck {
    width: 118px;
    height: 54px;
    margin: 0 auto -14px;
    border-radius: 40% 40% 12% 12%;
    background: linear-gradient(160deg, var(--orange-300), var(--orange-500));
    box-shadow: inset 0 -8px 14px rgba(0, 0, 0, .18);
}

.mm-pot__body {
    width: 246px;
    height: 234px;
    border-radius: 46% 46% 44% 44%;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .38), transparent 46%),
        linear-gradient(155deg, var(--orange-300) 0%, var(--orange-500) 55%, var(--orange-700) 100%);
    box-shadow: var(--shadow-lift), inset -18px -22px 40px rgba(35, 39, 43, .28);
    position: relative;
}

.mm-pot__body::after {
    content: "";
    position: absolute;
    inset: 34% 12% auto;
    height: 26px;
    border-top: 3px dashed rgba(255, 255, 255, .45);
    border-bottom: 3px dashed rgba(255, 255, 255, .28);
}

.mm-pot__shadow {
    width: 220px;
    height: 26px;
    margin: 14px auto 0;
    border-radius: 50%;
    background: rgba(35, 39, 43, .18);
    filter: blur(10px);
}

.mm-chip {
    position: absolute;
    background: #fff;
    border-radius: 999px;
    padding: .5rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--orange-700);
    box-shadow: var(--shadow-soft);
    animation: mm-float 7s ease-in-out infinite;
}

.mm-chip--one { top: 8%; left: 2%; animation-delay: .4s; }
.mm-chip--two { top: 44%; right: 0; animation-delay: 1.1s; }
.mm-chip--three { bottom: 8%; left: 8%; animation-delay: 1.8s; }

/* ---------- trust strip ---------- */
.mm-trust {
    background: var(--grey-900);
    color: #eceff2;
    padding: 1rem 0;
}

.mm-trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .75rem 1.5rem;
}

.mm-trust__item {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .92rem;
}

/* ---------- sections ---------- */
.mm-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.mm-section--muted {
    background: linear-gradient(180deg, #ffffff, var(--grey-100));
}

.mm-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.mm-section__title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--grey-900);
}

.mm-section__sub {
    max-width: 26rem;
    margin: 0;
    color: var(--muted);
}

/* ---------- category cards ---------- */
.mm-category {
    display: block;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 2rem 1.6rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid rgba(35, 39, 43, .12);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    transition: transform .22s ease, box-shadow .22s ease;
}

.mm-category::before {
    content: "";
    position: absolute;
    inset: auto -30% -55% auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, .28), transparent 70%);
    transition: transform .3s ease;
}

.mm-category:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.mm-category:hover::before {
    transform: scale(1.25);
}

.mm-category__badge {
    display: inline-block;
    background: var(--grey-100);
    color: var(--orange-700);
    border-radius: 999px;
    padding: .25rem .75rem;
    font-size: .76rem;
    font-weight: 700;
}

.mm-category__title {
    margin: .9rem 0 .5rem;
    font-size: 1.35rem;
    font-weight: 750;
    color: var(--grey-900);
}

.mm-category__text {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 1.1rem;
}

.mm-category__link {
    font-weight: 700;
    color: var(--orange-500);
}

/* ---------- toolbar & filters ---------- */
.mm-toolbar {
    display: flex;
    gap: .6rem;
}

.mm-select {
    border-radius: 999px;
    border: 1px solid rgba(35, 39, 43, .25);
    background: #fff;
    padding: .6rem 1.1rem;
    font-size: .92rem;
    color: var(--ink);
    outline: none;
}

.mm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2rem;
}

.mm-filter {
    border-radius: 999px;
    padding: .55rem 1.15rem;
    background: #fff;
    border: 1px solid rgba(35, 39, 43, .18);
    color: var(--orange-700);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
}

.mm-filter:hover {
    background: var(--grey-100);
    color: var(--orange-700);
}

.mm-filter.is-active {
    background: var(--orange-700);
    border-color: var(--orange-700);
    color: #fff;
}

.mm-filter--clear {
    background: #fff7ed;
    border-style: dashed;
}

/* ---------- product cards ---------- */
.mm-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(35, 39, 43, .1);
    box-shadow: var(--shadow-soft);
    transition: transform .22s ease, box-shadow .22s ease;
    animation: mm-rise .45s ease both;
}

@keyframes mm-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.mm-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
}

.mm-card__media {
    position: relative;
    height: 190px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, #f8f9fa, #e7eaee);
    overflow: hidden;
}

.mm-card__clay {
    width: 108px;
    height: 112px;
    border-radius: 46% 46% 42% 42%;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .45), transparent 45%),
        linear-gradient(155deg, var(--orange-300), var(--orange-500) 60%, var(--orange-700));
    box-shadow: inset -10px -12px 22px rgba(35, 39, 43, .3);
    transition: transform .3s ease;
}

.mm-card:hover .mm-card__clay {
    transform: rotate(-6deg) scale(1.06);
}

.mm-card__badge,
.mm-card__save {
    position: absolute;
    top: .8rem;
    border-radius: 999px;
    padding: .28rem .7rem;
    font-size: .74rem;
    font-weight: 700;
}

.mm-card__badge {
    left: .8rem;
    background: var(--grey-900);
    color: #fff;
}

.mm-card__save {
    right: .8rem;
    background: var(--orange-500);
    color: #fff;
}

.mm-card__peek {
    position: absolute;
    left: 50%;
    bottom: -3rem;
    transform: translateX(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(43, 33, 25, .9);
    color: #fff;
    padding: .45rem 1.1rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: bottom .25s ease;
}

.mm-card:hover .mm-card__peek,
.mm-card__peek:focus-visible {
    bottom: .9rem;
}

.mm-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.mm-card__category {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--orange-500);
}

.mm-card__title {
    margin: .4rem 0 .45rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--grey-900);
}

.mm-card__text {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: .85rem;
}

.mm-card__rating {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.mm-card__reviews {
    font-size: .84rem;
    color: var(--muted);
}

.mm-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
}

.mm-price__now {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--grey-900);
}

.mm-price__was {
    margin-left: .4rem;
    font-size: .9rem;
    color: var(--muted);
    text-decoration: line-through;
}

.mm-card__stock {
    margin: .8rem 0 0;
    font-size: .8rem;
    font-weight: 600;
    color: var(--orange-700);
}

/* ---------- empty & pager ---------- */
.mm-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(35, 39, 43, .3);
}

.mm-empty__icon {
    font-size: 2.4rem;
}

.mm-empty p {
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.mm-pager {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 2.5rem;
}

.mm-pager__link {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(35, 39, 43, .18);
    color: var(--orange-700);
    font-weight: 700;
    text-decoration: none;
}

.mm-pager__link.is-active,
.mm-pager__link:hover {
    background: var(--orange-700);
    color: #fff;
}

.mm-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.mm-load-more-wrap #loadMoreBtn {
    min-width: 240px;
}

/* ---------- spotlight ---------- */
.mm-spotlight {
    height: 100%;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, #fff, #f4f6f8);
    border: 1px solid rgba(35, 39, 43, .14);
    box-shadow: var(--shadow-soft);
}

.mm-spotlight__tag {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--orange-500);
}

.mm-spotlight h3 {
    margin: .6rem 0;
    font-size: 1.2rem;
    color: var(--grey-900);
}

.mm-spotlight p {
    color: var(--muted);
    font-size: .93rem;
}

.mm-spotlight__price {
    font-weight: 800;
    color: var(--orange-700);
}

/* ---------- story ---------- */
.mm-story {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: linear-gradient(135deg, var(--grey-900), #3b4249);
    color: #eceff2;
}

.mm-story__title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.mm-story__text {
    color: rgba(255, 255, 255, .8);
    line-height: 1.8;
}

.mm-steps {
    display: grid;
    gap: 1rem;
    margin-top: 1.8rem;
}

.mm-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mm-step span {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(249, 115, 22, .18);
    color: var(--orange-400);
    font-weight: 800;
}

.mm-step strong {
    display: block;
}

.mm-step p {
    margin: 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .72);
}

.mm-story__card {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(6px);
}

.mm-story__card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.mm-story__card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.mm-story__card li {
    margin-bottom: .75rem;
    color: rgba(255, 255, 255, .84);
    line-height: 1.6;
}

/* ---------- testimonials ---------- */
.mm-quote {
    height: 100%;
    margin: 0;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid rgba(35, 39, 43, .12);
    box-shadow: var(--shadow-soft);
}

.mm-quote p {
    margin: .9rem 0 1.2rem;
    color: var(--ink);
    line-height: 1.7;
}

.mm-quote footer strong {
    display: block;
    color: var(--grey-900);
}

.mm-quote footer span {
    font-size: .85rem;
    color: var(--muted);
}

/* ---------- newsletter ---------- */
.mm-newsletter {
    padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.mm-newsletter__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
    color: #fff;
    box-shadow: var(--shadow-lift);
}

.mm-newsletter__box h2 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    margin-bottom: .35rem;
}

.mm-newsletter__box p {
    margin: 0;
    color: rgba(255, 255, 255, .88);
}

.mm-newsletter__form {
    display: flex;
    gap: .5rem;
    background: #fff;
    border-radius: 999px;
    padding: .35rem .35rem .35rem 1rem;
    min-width: min(100%, 26rem);
}

.mm-newsletter__input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: .95rem;
}

.mm-newsletter__status {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

.mm-newsletter__status.is-success {
    color: var(--orange-700);
}

.mm-newsletter__status.is-error {
    color: #b3261e;
}

/* ---------- footer ---------- */
.mm-footer {
    background: var(--grey-900);
    color: rgba(255, 255, 255, .82);
    padding: 3rem 0 1.5rem;
}

.mm-footer h3 {
    margin: .8rem 0 .5rem;
    color: #fff;
}

.mm-footer h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: .9rem;
}

.mm-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mm-footer li {
    margin-bottom: .5rem;
}

.mm-footer a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
}

.mm-footer a:hover {
    color: var(--orange-400);
}

.mm-footer__base {
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .85rem;
}

/* ---------- quick view modal ---------- */
.mm-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
}

.mm-modal[hidden] {
    display: none;
}

.mm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 33, 25, .55);
    backdrop-filter: blur(3px);
}

.mm-modal__panel {
    position: relative;
    width: min(92vw, 460px);
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lift);
    animation: mm-rise .25s ease both;
}

.mm-modal__close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    border: 0;
    background: var(--grey-100);
    color: var(--orange-700);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.mm-modal__category {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--orange-500);
}

.mm-modal__panel h3 {
    margin: .5rem 0;
    color: var(--grey-900);
}

.mm-modal__panel p {
    color: var(--muted);
}

.mm-modal__meta {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin-top: 1rem;
}

/* ---------- cart ---------- */
.mm-cart-fab {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 60;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: var(--orange-700);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: var(--shadow-lift);
    cursor: pointer;
    transition: transform .18s ease;
}

.mm-cart-fab:hover {
    transform: scale(1.06);
}

.mm-cart-fab.is-bumping {
    animation: mm-bump .4s ease;
}

@keyframes mm-bump {
    50% { transform: scale(1.2); }
}

.mm-cart-fab__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--orange-400);
    color: var(--grey-900);
    font-size: .78rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.mm-cart {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    width: min(92vw, 360px);
    height: 100dvh;
    background: #fff;
    box-shadow: -20px 0 50px rgba(35, 39, 43, .22);
    display: flex;
    flex-direction: column;
    animation: mm-slide-in .25s ease both;
}

.mm-cart[hidden] {
    display: none;
}

@keyframes mm-slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.mm-cart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(35, 39, 43, .14);
}

.mm-cart__head h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--grey-900);
}

.mm-cart__head .mm-modal__close {
    position: static;
}

.mm-cart__list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 1rem 1.25rem;
}

.mm-cart__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px dashed rgba(35, 39, 43, .2);
}

.mm-cart__item strong {
    display: block;
    font-size: .93rem;
    color: var(--grey-900);
}

.mm-cart__item small {
    color: var(--muted);
}

.mm-cart__qty {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.mm-cart__qty button {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(35, 39, 43, .25);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
}

.mm-cart__empty {
    text-align: center;
    color: var(--muted);
    padding: 2.5rem 0;
}

.mm-cart__foot {
    padding: 1.25rem;
    border-top: 1px solid rgba(35, 39, 43, .14);
}

.mm-cart__total {
    display: flex;
    justify-content: space-between;
    margin-bottom: .9rem;
    font-size: 1.05rem;
}

/* ---------- toast ---------- */
.mm-toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translate(-50%, 150%);
    z-index: 100;
    background: var(--grey-900);
    color: #fff;
    border-radius: 999px;
    padding: .75rem 1.4rem;
    font-size: .92rem;
    box-shadow: var(--shadow-lift);
    transition: transform .3s ease;
}

.mm-toast.is-visible {
    transform: translate(-50%, 0);
}

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    .mm-hero__art { height: 340px; }
    .mm-pot__body { width: 200px; height: 190px; }
    .nav-cta { margin: .75rem 0 0; }
}

@media (max-width: 575.98px) {
    .mm-hero__stats { gap: 1.5rem; }
    .mm-newsletter__form { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ============================================================
   Page header (used on Index, Reviews, Newsletter, Privacy)
   Compact hero-like intro for pages that don't need the full hero.
   ============================================================ */
.mm-pagehead {
    position: relative;
    padding: 84px 0 56px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    text-align: center;
    overflow: hidden;
}

.mm-pagehead::before {
    content: "";
    position: absolute;
    inset: -40% 20% auto auto;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 65%);
    pointer-events: none;
}

.mm-pagehead .container {
    position: relative;
    z-index: 1;
}

.mm-pagehead__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--ink);
    margin: 14px auto 12px;
    max-width: 720px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.mm-pagehead__text {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

.mm-pagehead .mm-hero__search {
    margin: 26px auto 0;
    max-width: 560px;
}

/* Optional CTA row inside the hero (About page) */
.mm-hero__cta {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .mm-pagehead {
        padding: 60px 0 40px;
    }
}

/* ============================================================
   Sub-category chip strip (shows under active main category)
   ============================================================ */
.mm-subfilters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 24px;
    padding: 12px 14px;
    background: #fff;
    border: 1px dashed rgba(194, 65, 12, 0.28);
    border-radius: var(--radius-md);
}

.mm-subfilter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--grey-100);
    color: var(--grey-600);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

    .mm-subfilter:hover {
        background: #fff;
        color: var(--orange-700);
        border-color: var(--orange-300);
        transform: translateY(-1px);
    }

    .mm-subfilter.is-active {
        background: var(--orange-500);
        color: #fff;
        border-color: var(--orange-500);
    }

.mm-subfilter__count {
    display: inline-block;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 0.72rem;
    padding: 1px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.mm-subfilter.is-active .mm-subfilter__count {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* Sub-category label on product card */
.mm-card__sub {
    font-style: normal;
    color: var(--orange-700);
    font-weight: 600;
    margin-left: 4px;
}

/* ============================================================
   Checkout QR Modal
   ============================================================ */
.mm-modal--qr .mm-modal__panel {
    max-width: 460px;
    width: calc(100% - 32px);
    padding: 32px 30px 28px;
    text-align: center;
}

.mm-modal--qr .mm-modal__panel--wide {
    max-width: 780px;
    text-align: left;
}

.mm-qr__panel h3 {
    font-size: 1.35rem;
    margin: 6px 0 12px;
    color: var(--ink);
    line-height: 1.35;
}

.mm-qr__amount {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: var(--ink);
    border-radius: 999px;
    border: 1px solid rgba(194, 65, 12, 0.2);
    font-size: 0.95rem;
    margin: 0 auto 20px;
}

    .mm-qr__amount strong {
        color: var(--orange-700);
        font-size: 1.1rem;
        margin-left: 4px;
    }

.mm-qr__frame {
    display: inline-block;
    padding: 14px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 22px 44px rgba(35, 39, 43, 0.16);
    border: 1px solid rgba(35, 39, 43, 0.08);
    margin-bottom: 20px;
}

.mm-qr__image {
    display: block;
    width: 240px;
    height: 240px;
    max-width: 100%;
}

.mm-qr__steps {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    background: var(--grey-100);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

    .mm-qr__steps li {
        font-size: 0.9rem;
        color: var(--ink);
        line-height: 1.55;
        margin-bottom: 6px;
    }

        .mm-qr__steps li:last-child {
            margin-bottom: 0;
        }

        .mm-qr__steps li strong {
            color: var(--orange-700);
            margin-right: 6px;
            font-weight: 800;
        }

        .mm-qr__steps li a {
            color: var(--orange-700);
            text-decoration: none;
            font-weight: 700;
        }

            .mm-qr__steps li a:hover {
                text-decoration: underline;
            }

.mm-qr__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 520px) {
    .mm-qr__image {
        width: 200px;
        height: 200px;
    }
}

/* ============================================================
   Category landing hero (shown above collection when a specific
   main category filter is active)
   ============================================================ */
.mm-cat-hero {
    position: relative;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px 30px;
    margin: 4px 0 26px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow-lift);
}

.mm-cat-hero--mitti {
    background: linear-gradient(135deg, #78350f 0%, #b45309 55%, #f97316 100%);
}

.mm-cat-hero--mantra {
    background: linear-gradient(135deg, #7c2d12 0%, #b91c1c 55%, #eab308 100%);
}

.mm-cat-hero::after {
    content: "";
    position: absolute;
    inset: -30% -20% auto auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
    pointer-events: none;
}

.mm-cat-hero__glyph {
    position: relative;
    z-index: 1;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    backdrop-filter: blur(6px);
}

    .mm-cat-hero__glyph svg {
        width: 90px;
        height: 90px;
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    }

.mm-cat-hero__body {
    position: relative;
    z-index: 1;
}

.mm-cat-hero__title {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 6px 0 10px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.mm-cat-hero__body p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 14px;
    line-height: 1.55;
    max-width: 620px;
}

.mm-cat-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .mm-cat-hero__chips a {
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        text-decoration: none;
        font-size: 0.82rem;
        font-weight: 600;
        border: 1px solid rgba(255, 255, 255, 0.22);
        transition: background .18s ease, transform .18s ease;
    }

        .mm-cat-hero__chips a:hover {
            background: rgba(255, 255, 255, 0.28);
            color: #fff;
            transform: translateY(-1px);
        }

@media (max-width: 640px) {
    .mm-cat-hero {
        grid-template-columns: 1fr;
        padding: 22px 22px 24px;
        text-align: center;
    }

    .mm-cat-hero__glyph {
        margin: 0 auto;
        width: 100px;
        height: 100px;
    }

        .mm-cat-hero__glyph svg {
            width: 62px;
            height: 62px;
        }

    .mm-cat-hero__chips {
        justify-content: center;
    }
}

/* ============================================================
   Checkout modal — step 1 (buyer form) & QR loading state
   ============================================================ */
.mm-checkout__lede {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 18px;
}

    .mm-checkout__lede strong {
        color: var(--orange-700);
    }

.mm-checkout__form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .mm-checkout__form label {
        display: block;
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--ink);
        letter-spacing: 0.01em;
    }

        .mm-checkout__form label > span {
            display: block;
            margin-bottom: 6px;
        }

            .mm-checkout__form label > span em {
                color: var(--muted);
                font-style: normal;
                font-weight: 500;
                font-size: 0.78rem;
            }

    .mm-checkout__form input,
    .mm-checkout__form textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid #e4e6ea;
        border-radius: 12px;
        font-size: 0.95rem;
        font-family: inherit;
        background: #fbfbfc;
        transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    }

        .mm-checkout__form input:focus,
        .mm-checkout__form textarea:focus {
            outline: none;
            border-color: var(--orange-500);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
        }

    .mm-checkout__form textarea {
        resize: vertical;
        min-height: 60px;
    }

.mm-checkout__err {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.86rem;
    margin: 0;
    font-weight: 600;
}

.mm-qr__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

/* ============================================================
   Festival Banner (auto-rotates around active festival window)
   ============================================================ */
.mm-festival {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
    color: #fff;
}

.mm-festival::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.18) 0, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(255, 255, 255, 0.14) 0, transparent 40%);
    pointer-events: none;
}

.mm-festival__grid {
    position: relative;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 22px;
    align-items: center;
}

.mm-festival__glyph {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 22px;
    font-size: 46px;
    line-height: 1;
    backdrop-filter: blur(6px);
    animation: mm-festival-bob 3.6s ease-in-out infinite;
}

@keyframes mm-festival-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.mm-festival__kicker {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 8px;
}

.mm-festival__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 4px 0 8px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.mm-festival__text {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 14px;
    line-height: 1.5;
    max-width: 680px;
}

.mm-festival__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mm-festival__count {
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
}

    .mm-festival__count strong {
        color: #fff;
        font-weight: 800;
    }

/* Festival colour themes */
.mm-festival--rakhi     { background: linear-gradient(135deg, #db2777 0%, #f97316 100%); }
.mm-festival--ganesh    { background: linear-gradient(135deg, #b91c1c 0%, #f59e0b 100%); }
.mm-festival--navratri  { background: linear-gradient(135deg, #b91c1c 0%, #f59e0b 50%, #10b981 100%); }
.mm-festival--karwa     { background: linear-gradient(135deg, #7c2d12 0%, #b91c1c 50%, #f59e0b 100%); }
.mm-festival--diwali    { background: linear-gradient(135deg, #78350f 0%, #b45309 45%, #f59e0b 100%); }
.mm-festival--chhath    { background: linear-gradient(135deg, #ea580c 0%, #facc15 100%); color:#1f2937; }
.mm-festival--saraswati { background: linear-gradient(135deg, #f59e0b 0%, #fde047 100%); color:#1f2937; }
.mm-festival--shivratri { background: linear-gradient(135deg, #0f172a 0%, #1e40af 60%, #22d3ee 100%); }
.mm-festival--holi      { background: linear-gradient(135deg, #db2777 0%, #7c3aed 50%, #06b6d4 100%); }
.mm-festival--ram       { background: linear-gradient(135deg, #b91c1c 0%, #f59e0b 100%); }
.mm-festival--generic   { background: linear-gradient(135deg, var(--orange-700), var(--orange-500)); }

/* Dark-text festivals (like Chhath/Saraswati sunrise gradients) need a dark button */
.mm-festival--chhath .mm-festival__title,
.mm-festival--saraswati .mm-festival__title,
.mm-festival--chhath .mm-festival__text,
.mm-festival--saraswati .mm-festival__text {
    color: #1f2937;
}

.mm-festival--chhath .mm-festival__count,
.mm-festival--saraswati .mm-festival__count {
    background: rgba(31, 41, 55, 0.15);
    color: #1f2937;
}

    .mm-festival--chhath .mm-festival__count strong,
    .mm-festival--saraswati .mm-festival__count strong {
        color: #1f2937;
    }

@media (max-width: 640px) {
    .mm-festival__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mm-festival__glyph {
        margin: 0 auto;
    }

    .mm-festival__meta {
        justify-content: center;
    }
}

/* ============================================================
   Welcome-back banner inside checkout modal (repeat customer)
   ============================================================ */
.mm-checkout__welcome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 12px;
    animation: mm-welcome-slide .35s ease-out both;
}

@keyframes mm-welcome-slide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.mm-checkout__welcome > span {
    font-size: 1.6rem;
    line-height: 1;
}

.mm-checkout__welcome p {
    margin: 0;
    line-height: 1.4;
}

    .mm-checkout__welcome strong {
        display: block;
        color: #047857;
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .mm-checkout__welcome em {
        color: #065f46;
        font-style: normal;
        font-size: 0.8rem;
    }

/* ============================================================
   Coupon panel + Totals inside checkout modal
   ============================================================ */
.mm-coupon {
    background: var(--grey-100);
    border-radius: 12px;
    padding: 8px;
}

.mm-coupon__toggle {
    background: transparent;
    border: 0;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--orange-700);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.01em;
}

    .mm-coupon__toggle:hover {
        text-decoration: underline;
    }

.mm-coupon__panel {
    padding: 6px 4px 4px;
}

.mm-coupon__row {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .mm-coupon__row input {
        flex: 1 1 auto;
        padding: 10px 12px;
        border: 1.5px solid #e4e6ea;
        border-radius: 10px;
        font-family: "SF Mono", "Consolas", monospace;
        font-size: 0.88rem;
        background: #fff;
        text-transform: uppercase;
    }

        .mm-coupon__row input:focus {
            outline: none;
            border-color: var(--orange-500);
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
        }

    .mm-coupon__row .mm-btn {
        padding: 0.55rem 1.1rem;
    }

.mm-coupon__status {
    margin: 8px 2px 0;
    font-size: 0.82rem;
    font-weight: 600;
}

    .mm-coupon__status.is-success {
        color: #047857;
    }

    .mm-coupon__status.is-error {
        color: #b91c1c;
    }

.mm-checkout__totals {
    background: #fff;
    border: 1.5px solid #e4e6ea;
    border-radius: 12px;
    padding: 12px 14px;
}

.mm-checkout__totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9rem;
    color: var(--ink);
    padding: 4px 0;
}

    .mm-checkout__totals-row strong {
        font-weight: 700;
    }

.mm-checkout__totals-row--discount {
    color: #047857;
}

    .mm-checkout__totals-row--discount em {
        font-style: normal;
        font-family: "SF Mono", "Consolas", monospace;
        font-size: 0.78rem;
        opacity: 0.85;
        margin-left: 4px;
    }

    .mm-checkout__totals-row--discount strong {
        color: #047857;
    }

.mm-checkout__totals-row--grand {
    border-top: 1px dashed #e4e6ea;
    margin-top: 6px;
    padding-top: 10px;
    font-size: 1rem;
    font-weight: 800;
}

    .mm-checkout__totals-row--grand strong {
        color: var(--orange-700);
        font-size: 1.1rem;
    }

/* ============================================================
   Checkout — two-column layout (items left, address/receiver/coupon right)
   ============================================================ */
.mm-checkout__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 760px) {
    .mm-checkout__grid {
        grid-template-columns: 1fr;
    }
}

.mm-checkout__col-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 12px;
}

/* -- Left: selected items -- */
.mm-checkout__items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 16px;
}

.mm-checkout__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fbfbfc;
}

.mm-checkout__item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--grey-100);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mm-checkout__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-checkout__item-info {
    flex: 1;
    min-width: 0;
}

.mm-checkout__item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-checkout__item-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

.mm-checkout__item-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--orange-700);
    white-space: nowrap;
}

/* -- Right: address cards -- */
.mm-address-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 8px;
    padding-right: 2px;
}

.mm-address-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1.5px solid #e4e6ea;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.mm-address-option:hover {
    border-color: var(--orange-300);
}

.mm-address-option.is-selected {
    border-color: var(--orange-500);
    background: #fff7ed;
}

.mm-address-option input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--orange-500);
}

.mm-address-option__body {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.45;
}

.mm-address-option__label {
    font-weight: 700;
    color: var(--ink);
}

.mm-address-option__default {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    background: var(--orange-500);
    color: #fff;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}

.mm-address-empty {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 12px;
    border: 1.5px dashed #e4e6ea;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 10px;
}

.mm-address-add-toggle {
    background: none;
    border: none;
    color: var(--orange-700);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 0;
    cursor: pointer;
    margin-bottom: 14px;
}

.mm-address-add-toggle:hover {
    text-decoration: underline;
}

.mm-address-form {
    border: 1.5px solid #e4e6ea;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
    background: #fbfbfc;
}

.mm-address-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 480px) {
    .mm-address-form__grid {
        grid-template-columns: 1fr;
    }
}

.mm-address-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.mm-address-form input {
    width: 100%;
    margin-top: 4px;
    padding: 9px 10px;
    border: 1.5px solid #e4e6ea;
    border-radius: 9px;
    font-size: 0.85rem;
    background: #fff;
}

.mm-checkout__signin-prompt {
    text-align: center;
    padding: 30px 10px;
}

.mm-checkout__signin-prompt p {
    color: var(--muted);
    margin: 10px 0 18px;
}

/* ============================================================
   FIX: "Load more" exhausted state
   Once every matching product is on screen the button stays
   visible but becomes an inert "All products loaded" label.
   ============================================================ */
.mm-load-more-wrap #loadMoreBtn.is-exhausted,
.mm-load-more-wrap #loadMoreBtn:disabled {
    opacity: .55;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

/* ============================================================
   FIX: tall modals (checkout) were overflowing the viewport, so
   the "Save address" / "Continue to payment" / "Cancel" buttons
   at the bottom of the panel could never be reached. The panel
   now scrolls inside itself instead of being clipped.
   ============================================================ */
.mm-modal {
    padding: 16px;
    overflow-y: auto;
}

.mm-modal__panel {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mm-modal--qr .mm-modal__panel {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

/* Keep the round close button pinned while the panel scrolls. */
.mm-modal__panel {
    scroll-padding-top: 48px;
}

/* The address form's action row — Save + Cancel side by side. */
.mm-address-form__actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.mm-address-form__actions .mm-btn {
    flex: 1;
}

@media (max-width: 720px) {
    .mm-modal__panel {
        max-height: calc(100vh - 24px);
    }

    .mm-modal--qr .mm-modal__panel {
        padding: 26px 18px 22px;
    }
}

/* ============================================================
   Profile page confirmation dialog
   ============================================================ */
.mm-profile-dialog {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.mm-profile-dialog[hidden] {
    display: none;
}

.mm-profile-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 21, 18, .5);
    backdrop-filter: blur(3px);
}

.mm-profile-dialog__panel {
    position: relative;
    width: min(92vw, 420px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 30px 28px 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.mm-profile-dialog__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
}

.mm-profile-dialog.is-error .mm-profile-dialog__icon {
    background: #fee2e2;
    color: #b91c1c;
}

.mm-profile-dialog__title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

.mm-profile-dialog.is-error .mm-profile-dialog__title {
    color: #b91c1c;
}

.mm-profile-dialog__message {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: .93rem;
    line-height: 1.55;
}

/* The saved-address form is inline now — keep it readable on small screens. */
#addressFormWrap .form-label {
    margin-bottom: 2px;
}

.fs-7 {
    font-size: .82rem;
}

/* ============================================================
   Dynamic payment QR
   The QR is generated per order as an <img> whose intrinsic size
   depends on how much data the UPI intent holds, so it's forced to
   fill the fixed .mm-qr__image square. image-rendering keeps the
   modules crisp instead of blurring them when scaled up.
   ============================================================ */
.mm-qr__image img {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.mm-qr__ref {
    margin: 0 0 14px;
    font-size: .82rem;
    color: var(--muted);
    text-align: center;
}

.mm-qr__ref[hidden] {
    display: none;
}

.mm-qr__ref strong {
    color: var(--ink);
}

.mm-qr__ref span {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .02em;
}

.mm-qr__deeplink-wrap {
    margin-bottom: 20px;
}

.mm-qr__deeplink {
    display: inline-block;
}

.mm-qr__fallback-note {
    margin: 0 0 10px;
    font-size: .84rem;
    color: #b45309;
}

/* ============================================================
   Two-factor block, inline in the profile form above Save Profile.
   Deliberately understated so it reads as one more field in the
   form rather than a competing card.
   ============================================================ */
.mm-2fa {
    border: 1px solid #e4e6ea;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fbfbfc;
}

.mm-2fa__switch {
    margin-bottom: 0;
    padding-left: 2.6em;
}

.mm-2fa__switch .form-check-input {
    cursor: pointer;
    width: 2.2em;
    height: 1.15em;
    margin-left: -2.6em;
}

.mm-2fa__switch .form-check-input:checked {
    background-color: #c2410c;
    border-color: #c2410c;
}

.mm-2fa__switch .form-check-input:focus {
    border-color: #e5a17f;
    box-shadow: 0 0 0 .2rem rgba(194, 65, 12, .18);
}

.mm-2fa__switch .form-check-label {
    cursor: pointer;
    color: #333;
}

.mm-2fa__note {
    margin-top: 4px;
    margin-left: 2.6em;
    font-size: .8rem;
}

/* Expanded setup panel — capped so a wide QR can't stretch the column. */
.mm-2fa__setup {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #dfe2e6;
}

.mm-2fa__qr {
    width: 168px;
    height: 168px;
    margin: 0 auto 14px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mm-2fa__qr img {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.mm-2fa__key {
    background: #fff;
    border: 1px solid #e4e6ea;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 12px;
    text-align: center;
}

.mm-2fa__key code {
    font-size: .82rem;
    word-break: break-all;
    color: #c2410c;
}

.mm-2fa__code {
    max-width: 150px;
}

@media (max-width: 420px) {
    .mm-2fa__qr {
        width: 148px;
        height: 148px;
    }

    .mm-2fa__code {
        max-width: 100%;
    }
}

/* ============================================================
   FIX: the payment QR was left-aligned.
   .mm-modal--qr .mm-modal__panel--wide sets text-align:left (needed
   for the buyer/address step), which also killed the inherited
   centering on the pay step. Re-centre just that step, and centre the
   QR frame explicitly rather than relying on inline-block + text-align.
   ============================================================ */
.mm-checkout__step[data-step="pay"] {
    text-align: center;
}

.mm-checkout__step[data-step="pay"] .mm-qr__frame {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.mm-checkout__step[data-step="pay"] .mm-qr__image,
.mm-checkout__step[data-step="pay"] .mm-qr__loading {
    margin-left: auto;
    margin-right: auto;
}

.mm-checkout__step[data-step="pay"] .mm-qr__actions {
    justify-content: center;
}

/* The numbered instructions stay left-aligned inside their centred box. */
.mm-checkout__step[data-step="pay"] .mm-qr__steps {
    text-align: left;
}

.mm-qr__err {
    margin: 10px 0 0;
    color: #b91c1c;
    font-size: .86rem;
}

.mm-qr__err[hidden] {
    display: none;
}

/* ============================================================
   Payment success ("Congratulations") dialog
   ============================================================ */
.mm-congrats[hidden] {
    display: none;
}

.mm-congrats__panel {
    max-width: 460px;
    text-align: center;
    padding: 34px 28px 26px;
}

.mm-congrats__icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 10px;
}

.mm-congrats__title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--orange-700, #c2410c);
}

.mm-congrats__lead {
    margin: 0 0 10px;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--ink, #23272b);
}

.mm-congrats__note {
    margin: 0 0 22px;
    font-size: .84rem;
    line-height: 1.55;
    color: var(--muted, #6b7280);
}

.mm-congrats__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mm-congrats__actions .mm-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.mm-btn--ghost {
    background: transparent;
    border: 0;
    color: var(--muted, #6b7280);
    font-weight: 600;
    cursor: pointer;
    padding: 10px;
}

.mm-btn--ghost:hover {
    color: var(--ink, #23272b);
}

/* ============================================================
   "Waiting for payment confirmation" strip on the pay step.
   Replaces the old "I have paid" button — the dialog now opens
   by itself once the server reports the order as paid.
   ============================================================ */
.mm-qr__await {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 18px;
    padding: 12px 18px;
    max-width: 420px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid rgba(194, 65, 12, .18);
    color: #9a3412;
    font-size: .86rem;
    line-height: 1.5;
    text-align: left;
}

.mm-qr__spinner {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(194, 65, 12, .25);
    border-top-color: #c2410c;
    animation: mm-qr-spin .8s linear infinite;
}

@keyframes mm-qr-spin {
    to { transform: rotate(360deg); }
}

/* Timed out — stop implying something is still happening. */
.mm-qr__await.is-done {
    background: #f3f4f6;
    border-color: #e4e6ea;
    color: #4b5563;
}

.mm-qr__await.is-done .mm-qr__spinner {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .mm-qr__spinner {
        animation: none;
    }
}

.mm-congrats__fallback[hidden] {
    display: none;
}
