body.mhm-home-active .site-content,
body.mhm-home-active .site-content > .ast-container,
body.mhm-home-active #primary {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.mhm-home-active .site-content > .ast-container {
    display: block;
}

body.mhm-home-active #content.site-content,
body.mhm-home-active #content.site-content > .ast-container,
body.mhm-home-active #content.site-content #primary {
    max-width: none !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
}

/* Astra can add block spacing above the page content; the hero must touch the header. */
body.mhm-home-active #content.site-content,
body.mhm-home-active .site-content,
body.mhm-home-active .site-content > .ast-container,
body.mhm-home-active #primary.mhm-home,
body.mhm-home-active main.mhm-home,
body.mhm-home-active .mhm-home > .mhm-banner-section--hero:first-child {
    margin-block-start: 0 !important;
    padding-block-start: 0 !important;
}

/* Keep the black canvas behind the first homepage banner only. */
body.mhm-home-active .site-content {
    border: 0 !important;
    background: var(--mhm-header-bg) !important;
    box-shadow: none !important;
}

.mhm-home,
.mhm-home * {
    box-sizing: border-box;
}

.mhm-home {
    --mhm-black: #1f1d1d;
    --mhm-text: #111;
    --mhm-muted: #666;
    width: 100%;
    overflow: hidden;
    background: #fff;
    color: var(--mhm-text);
}

.mhm-banner-section,
.mhm-products-section,
.mhm-newsletter-section {
    width: 100%;
}

.mhm-banner-section--hero {
    padding-bottom: clamp(64px, 5.1vw, 98px);
    background: var(--mhm-black);
}

.mhm-banner-slider,
.mhm-banner-track,
.mhm-banner-slide,
.mhm-banner-frame,
.mhm-banner-link,
.mhm-banner-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.mhm-banner-slider {
    position: relative;
    overflow: hidden;
    background: #211f1f;
    isolation: isolate;
    touch-action: pan-y;
    user-select: none;
}

.mhm-banner-track {
    position: relative;
}

.mhm-banner-slide {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background: #211f1f;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 420ms ease, visibility 420ms ease;
}

.mhm-banner-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mhm-banner-frame {
    position: relative;
    overflow: hidden;
}

.mhm-banner-section--hero .mhm-banner-slider {
    aspect-ratio: 16 / 5;
    background: #211f1f;
}

.mhm-banner-section--promo .mhm-banner-slider {
    aspect-ratio: 3 / 2;
    background: #252525;
}

.mhm-banner-picture img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    -webkit-user-drag: none;
}

.mhm-banner-frame--with-content::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 25%, rgba(0, 0, 0, 0.62) 100%);
    content: "";
    pointer-events: none;
}

.mhm-banner-frame--with-content.mhm-banner-frame--left::after {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.08) 25%, rgba(0, 0, 0, 0.62) 100%);
}

.mhm-banner-frame--with-content.mhm-banner-frame--center::after {
    background: rgba(0, 0, 0, 0.32);
}

.mhm-banner-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: clamp(36px, 11vw, 190px);
    width: min(42vw, 610px);
    color: #fff;
    transform: translateY(-50%);
}

.mhm-banner-frame--left .mhm-banner-content {
    right: auto;
    left: clamp(36px, 11vw, 190px);
}

.mhm-banner-frame--center .mhm-banner-content {
    right: 50%;
    text-align: center;
    transform: translate(50%, -50%);
}

.mhm-banner-content h2 {
    margin: 0 0 clamp(12px, 1.5vw, 24px);
    color: #fff;
    font-size: clamp(28px, 3.2vw, 54px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.mhm-banner-content p {
    max-width: 620px;
    margin: 0 0 clamp(20px, 2.3vw, 36px);
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(15px, 1.45vw, 22px);
    line-height: 1.35;
}

.mhm-banner-frame--center .mhm-banner-content p {
    margin-right: auto;
    margin-left: auto;
}

.mhm-banner-cta {
    display: inline-flex;
    min-width: 178px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border: 1px solid #fff;
    border-radius: 6px;
    background: #050505;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.mhm-banner-cta:hover,
.mhm-banner-cta:focus-visible {
    background: #fff;
    color: #050505;
}

.mhm-banner-cta--disabled {
    cursor: default;
}

.mhm-banner-pagination {
    position: absolute;
    z-index: 15;
    bottom: 16px;
    left: 50%;
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
}

.mhm-banner-dot {
    display: block;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease;
}

.mhm-banner-dot.is-active {
    opacity: 1;
    transform: scale(1.14);
}

.mhm-banner-slider.is-static .mhm-banner-pagination,
.mhm-banner-slider.is-static > .mhm-swiper-button {
    display: none;
}

.mhm-swiper-button {
    position: absolute;
    z-index: 12;
    top: 50%;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 180ms ease, background-color 180ms ease;
    cursor: pointer;
}

.mhm-swiper-button::before {
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
}

.mhm-swiper-button--prev {
    left: 20px;
}

.mhm-swiper-button--prev::before {
    transform: rotate(-135deg);
}

.mhm-swiper-button--next {
    right: 20px;
}

.mhm-swiper-button--next::before {
    transform: rotate(45deg);
}

.mhm-banner-slider:hover .mhm-swiper-button,
.mhm-products-swiper:hover .mhm-swiper-button,
.mhm-swiper-button:focus-visible {
    opacity: 1;
}

.mhm-swiper-button:hover {
    background: rgba(0, 0, 0, 0.78);
}

.mhm-swiper-button:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
}

.mhm-swiper-button:focus:not(:focus-visible) {
    outline: 0;
}

.mhm-swiper-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.mhm-swiper-button.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

.mhm-products-section {
    padding: clamp(32px, 5vw, 64px) 0 clamp(38px, 5vw, 70px);
    background: #fff;
}

.mhm-products-inner {
    width: min(100%, 1500px);
    overflow: hidden;
    margin: 0 auto;
    padding: 0 clamp(18px, 5vw, 76px);
}

.mhm-section-title {
    margin: 0 0 clamp(24px, 3vw, 40px);
    color: #0c0c0c;
    font-size: clamp(25px, 2.5vw, 38px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.mhm-products-swiper {
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.mhm-products-swiper.is-static .mhm-swiper-button {
    display: none;
}

.mhm-product-card {
    height: 100%;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.mhm-product-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.mhm-product-link:hover,
.mhm-product-link:focus {
    color: inherit;
}

.mhm-product-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 18px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.mhm-product-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: clamp(6px, 1vw, 15px);
    border: 0;
    box-shadow: none;
    object-fit: contain;
    transition: opacity 280ms ease;
}

.mhm-product-image--primary { opacity: 1; }
.mhm-product-image--secondary { opacity: 0; pointer-events: none; }
.mhm-product-link.is-secondary-ready:focus-visible .mhm-product-image--primary { opacity: 0; }
.mhm-product-link.is-secondary-ready:focus-visible .mhm-product-image--secondary { opacity: 1; }
.mhm-product-link:focus-visible { outline: 2px solid #2458d3; outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
    .mhm-product-link.is-secondary-ready:hover .mhm-product-image--primary { opacity: 0; }
    .mhm-product-link.is-secondary-ready:hover .mhm-product-image--secondary { opacity: 1; }
}

.mhm-product-card .mhm-product-title {
    display: -webkit-box;
    /* Exactly two line boxes: a larger min-height reveals a clipped third line. */
    height: 2.6em;
    min-height: 2.6em;
    max-height: 2.6em;
    flex-shrink: 0;
    overflow: hidden;
    margin: 0 0 4px;
    padding: 0;
    color: #090909;
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.mhm-product-subtitle {
    display: -webkit-box;
    min-height: 2.6em;
    overflow: hidden;
    margin: 0;
    color: var(--mhm-muted);
    font-size: clamp(12px, 0.9vw, 14px);
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mhm-product-price {
    margin-top: 8px;
    font-weight: 700;
}

.mhm-products-swiper .mhm-swiper-button {
    width: 38px;
    height: 38px;
    border-color: #111;
    background: rgba(255, 255, 255, 0.94);
    color: #111;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.mhm-products-swiper .mhm-swiper-button--prev {
    left: 8px;
}

.mhm-products-swiper .mhm-swiper-button--next {
    right: 8px;
}

.mhm-products-swiper .mhm-swiper-button:hover {
    background: #111;
    color: #fff;
}

.mhm-newsletter-section {
    padding: clamp(44px, 6vw, 80px) clamp(18px, 6vw, 80px);
    background: var(--mhm-black);
    color: #fff;
}

.mhm-newsletter-box {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 1fr);
    align-items: center;
    gap: clamp(30px, 6vw, 90px);
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    background: #050505;
}

.mhm-newsletter-copy h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(24px, 2.4vw, 36px);
    line-height: 1.15;
}

.mhm-newsletter-copy p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(15px, 1.3vw, 19px);
    line-height: 1.45;
}

.mhm-newsletter-copy small {
    color: rgba(255, 255, 255, 0.68);
}

.mhm-newsletter-form {
    width: 100%;
    min-width: 0;
}

.mhm-newsletter-form .mhm-newsletter-iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: var(--mhm-newsletter-height, 220px);
    margin: 0;
    border: 0;
    background: #000;
}

.mhm-newsletter-placeholder {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.65);
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
}

.mhm-social-bar {
    position: fixed;
    z-index: 999;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 11px 9px;
    background: rgba(7, 7, 7, 0.9);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
    transform: translateY(-50%);
}

.mhm-social-bar--right {
    right: 0;
    border-radius: 10px 0 0 10px;
}

.mhm-social-bar--left {
    left: 0;
    border-radius: 0 10px 10px 0;
}

.mhm-social-link {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    text-decoration: none;
    transition: transform 160ms ease, filter 160ms ease;
}

.mhm-social-link:hover,
.mhm-social-link:focus-visible {
    color: #fff;
    filter: brightness(1.12);
    transform: scale(1.08);
}

.mhm-social-link svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.mhm-social-link--twitter {
    background: #1da1f2;
}

.mhm-social-link--facebook {
    background: #4267b2;
}

.mhm-social-link--linkedin {
    background: #0a7abf;
}

.mhm-social-link--instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.mhm-social-link--youtube {
    background: #f00;
}

.mhm-social-link--tiktok {
    background: #111;
}

.mhm-social-link--pinterest {
    background: #bd081c;
}

.mhm-social-link--whatsapp {
    background: #25d366;
}

.mhm-config-message {
    margin: 24px auto;
    padding: 16px 20px;
    border-left: 4px solid #dba617;
    background: #fff8e5;
    color: #392f19;
}

.mhm-config-message a {
    margin-left: 8px;
}

@media (max-width: 767px) {
    body.mhm-home-active .mhm-home {
        width: 100vw;
        max-width: 100vw;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
    }

    .mhm-banner-section--hero .mhm-banner-slider,
    .mhm-banner-section--promo .mhm-banner-slider {
        aspect-ratio: 1 / 1;
    }

    .mhm-banner-section--hero {
        padding-bottom: 28px;
    }

    .mhm-products-section {
        padding-top: 34px;
        padding-bottom: 42px;
    }

    .mhm-products-inner {
        padding-right: 18px;
        padding-left: 18px;
    }

    .mhm-product-image {
        margin-bottom: 13px;
    }

    .mhm-swiper-button {
        opacity: 1;
    }

    .mhm-banner-slider > .mhm-swiper-button {
        display: none;
    }

    .mhm-products-swiper .mhm-swiper-button {
        display: none;
    }

    .mhm-newsletter-box {
        grid-template-columns: 1fr;
    }

    .mhm-newsletter-form .mhm-newsletter-iframe {
        height: var(--mhm-newsletter-height-mobile, 240px);
    }

    .mhm-banner-content,
    .mhm-banner-frame--left .mhm-banner-content,
    .mhm-banner-frame--center .mhm-banner-content {
        top: auto;
        right: 22px;
        bottom: 42px;
        left: 22px;
        width: auto;
        text-align: left;
        transform: none;
    }

    .mhm-banner-content h2 {
        font-size: clamp(25px, 8vw, 38px);
    }

    .mhm-banner-content p {
        font-size: 15px;
    }

    .mhm-banner-cta {
        min-width: 150px;
        min-height: 44px;
    }

    .mhm-social-bar {
        display: none;
    }

    .mhm-social-bar--show-mobile {
        top: auto;
        right: 12px;
        bottom: 12px;
        left: auto;
        display: flex;
        flex-direction: row;
        padding: 8px;
        border-radius: 999px;
        transform: none;
    }

    .mhm-social-bar--show-mobile .mhm-social-link {
        width: 38px;
        height: 38px;
    }
}

/* Main banners only: real text, independent styling and no empty-field gaps.
   Slides share one grid cell so the tallest caption fits without layout jumps. */
.mhm-banner-section--hero .mhm-banner-slider {
    height: auto;
    aspect-ratio: auto;
}
.mhm-banner-section--hero .mhm-banner-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
}
.mhm-banner-section--hero .mhm-banner-track::before {
    content: "";
    grid-area: 1 / 1;
    width: 100%;
    aspect-ratio: 16 / 5;
    pointer-events: none;
}
.mhm-banner-section--hero .mhm-banner-slide {
    position: relative;
    grid-area: 1 / 1;
    min-width: 0;
    height: auto;
}
.mhm-banner-section--hero .mhm-banner-frame,
.mhm-banner-section--hero .mhm-banner-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    text-decoration: none;
}
.mhm-banner-section--hero .mhm-banner-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
}
.mhm-banner-section--hero .mhm-banner-picture {
    position: absolute;
    inset: 0;
}
.mhm-banner-section--hero .mhm-hero-content {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-self: center;
    justify-self: center;
    gap: 20px;
    width: min(44%, 640px);
    margin: 0 clamp(56px, 7vw, 140px);
    padding: 48px 0;
    transform: none;
    text-align: center;
    overflow-wrap: anywhere;
}
.mhm-banner-section--hero .mhm-banner-frame--left .mhm-hero-content {
    justify-self: start;
    text-align: left;
}
.mhm-banner-section--hero .mhm-banner-frame--right .mhm-hero-content {
    justify-self: end;
    text-align: right;
}
.mhm-banner-section--hero .mhm-hero-content h2 {
    margin: 0;
    color: var(--mhm-hero-title-color, #fff);
    font-size: var(--mhm-hero-title-size-desktop, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: normal;
    text-transform: none;
}
.mhm-banner-section--hero .mhm-hero-content p {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--mhm-hero-description-color, #d4d4d4);
    font-size: var(--mhm-hero-description-size-desktop, 22px);
    font-weight: 400;
    line-height: 1.4;
}
/* A wider desktop subtitle without changing the title's existing line length.
   The original title occupied 44% of the banner (up to 640px); 44/60 retains
   that width inside the new 60% caption. Mobile/tablet and promo stay unchanged. */
@media (min-width: 1024px) {
    .mhm-banner-section--hero .mhm-hero-content {
        width: min(60%, 1100px);
    }
    .mhm-banner-section--hero .mhm-hero-content h2 {
        align-self: center;
        width: min(calc(100% * 44 / 60), 640px);
    }
    .mhm-banner-section--hero .mhm-banner-frame--left .mhm-hero-content h2 {
        align-self: flex-start;
    }
    .mhm-banner-section--hero .mhm-banner-frame--right .mhm-hero-content h2 {
        align-self: flex-end;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .mhm-banner-section--hero .mhm-hero-content { width: 65%; }
}
@media (max-width: 767px) {
    .mhm-banner-section--hero .mhm-banner-track::before { aspect-ratio: 1 / 1; }
    .mhm-banner-section--hero .mhm-banner-frame .mhm-hero-content {
        width: calc(100% - 48px);
        margin-inline: 24px;
        justify-self: center;
        text-align: center;
    }
    .mhm-banner-section--hero .mhm-hero-content h2 {
        font-size: var(--mhm-hero-title-size-mobile, 24px);
    }
    .mhm-banner-section--hero .mhm-hero-content p {
        font-size: var(--mhm-hero-description-size-mobile, 16px);
    }
    .mhm-banner-section--hero .mhm-banner-frame--with-content::after {
        background: rgba(0, 0, 0, .32);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mhm-home *,
    .mhm-home *::before,
    .mhm-home *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
