/* MACO Mottura: navy and gold, taken from the client's printed flyer. */
:root {
    --mm-navy: #1b2a4a;
    --mm-navy-dark: #121d34;
    --mm-gold: #c9a34e;
    --mm-gold-light: #e0c078;
    --mm-ink: #1a1a1a;
    --mm-muted: #6b7280;
    --mm-line: #e5e7eb;
    --mm-bg-soft: #f7f8fa;
}

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

.mm-price {
    color: var(--mm-navy);
    font-size: 2rem;
    font-weight: 700;
}

.mm-price__vat {
    color: var(--mm-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

.mm-badge {
    display: inline-block;
    background: var(--mm-gold);
    color: var(--mm-navy-dark);
    border-radius: 4px;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mm-note {
    background: var(--mm-bg-soft);
    border-left: 3px solid var(--mm-gold);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
}

/* Hero */
.mm-hero {
    background: linear-gradient(135deg, var(--mm-navy) 0%, var(--mm-navy-dark) 100%);
    color: #fff;
    padding: 4rem 1.5rem;
}

.mm-hero__inner {
    max-width: 68rem;
    margin: 0 auto;
}

.mm-hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0.75rem 0;
    text-transform: uppercase;
}

.mm-hero__tagline {
    color: var(--mm-gold-light);
    font-size: 1.125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mm-hero__facts {
    list-style: none;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    margin: 2rem 0;
    padding: 0;
}

.mm-hero__facts li {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mm-hero__facts strong {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mm-hero__facts span {
    color: var(--mm-gold);
    font-size: 1.5rem;
    font-weight: 700;
}

.mm-hero__cta {
    display: inline-block;
    background: var(--mm-gold);
    color: var(--mm-navy-dark);
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
}

.mm-hero .mm-note {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    margin-top: 1.5rem;
}

/* Trust row */
.mm-trust {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    background: var(--mm-line);
}

.mm-trust__item {
    background: #fff;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--mm-navy);
}

/* Configuration panel */
.mm-options {
    margin: 1.5rem 0;
}

.mm-options__group {
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.mm-options__section {
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0;
}

.mm-options__section-title {
    cursor: pointer;
    font-weight: 700;
    color: var(--mm-navy);
    padding: 0.85rem 1.25rem;
    list-style-position: inside;
}

.mm-options__section[open] > .mm-options__section-title {
    border-bottom: 1px solid var(--mm-line);
}

.mm-options__section .mm-options__group {
    border: 0;
    border-bottom: 1px solid var(--mm-line);
    border-radius: 0;
    margin-bottom: 0;
}

.mm-options__section .mm-options__group:last-child {
    border-bottom: 0;
}

.mm-options__legend {
    font-weight: 700;
    color: var(--mm-navy);
    padding: 0 0.5rem;
}

.mm-options__required {
    color: #b91c1c;
}

.mm-options__select {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--mm-line);
    border-radius: 6px;
}

.mm-options__check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0;
}

.mm-options__delta {
    color: var(--mm-navy);
    margin-left: auto;
}

.mm-options__swatch-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mm-muted);
    margin: 0.875rem 0 0.375rem;
}

.mm-options__swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mm-options__swatch {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 2px;
    text-align: center;
    width: 3.25rem;
}

.mm-options__swatch img,
.mm-options__swatch-fallback {
    width: 100%;
    height: 2.75rem;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    /* Always-on hairline so light decors (ALB PREMIUM) stay visible. */
    border: 1px solid var(--mm-line);
    box-sizing: border-box;
}

.mm-options__swatch-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f2f4;
    color: var(--mm-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mm-options__swatch input {
    position: absolute;
    opacity: 0;
}

.mm-options__swatch:has(input:checked) {
    border-color: var(--mm-gold);
}

.mm-options__swatch:hover img,
.mm-options__swatch:hover .mm-options__swatch-fallback {
    border-color: var(--mm-navy);
}

.mm-tooltip {
    position: absolute;
    transform: translate(-50%, -100%);
    background: var(--mm-navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    border-bottom: 2px solid var(--mm-gold);
    white-space: nowrap;
    pointer-events: none;
    z-index: 40;
    box-shadow: 0 4px 12px rgba(16, 30, 54, 0.25);
}

/* Names live in the JS tooltip; keep the text for screen readers only. */
.mm-options__swatch-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.mm-options__total {
    border-top: 2px solid var(--mm-navy);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Colour variant tiles are plain links/buttons (no "variation-option" class,
   so the default theme's pill-button chrome never applies to them) -- but
   they have no radio input either, so the decor tiles' :has(input:checked)
   selected-state trick doesn't reach them. This is the one bit that
   genuinely doesn't exist yet for a selected state without an input. */
.mm-options__swatch.is-selected {
    border-color: var(--mm-gold);
}

/* The selected colour renders as a real <button> (the current variant's
   tile must not link to itself); .mm-options__swatch was only ever a
   <label> before, so it never needed to strip the browser's own button
   face/font. */
button.mm-options__swatch {
    background: none;
    font: inherit;
    appearance: none;
}

/* Footer legal row. Renders inside <footer> but after the dark .footer-main
   container, so it needs the footer background of its own. */
.mm-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.75rem;
    padding: 1rem 1.25rem 1.5rem;
    font-size: 0.875rem;
    background: var(--mm-navy);
    color: rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mm-footer__legal a {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}

.mm-footer__legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Reference illustration for an option group: lock cutaway, dimensions drawing,
   swing diagram. Explains the choice rather than previewing one value. */
.mm-options__guide {
    margin: 0 0 0.75rem;
}

.mm-options__guide img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--mm-line);
    border-radius: 6px;
    display: block;
}

.mm-options__guide figcaption,
.mm-options__hint {
    color: var(--mm-muted);
    font-size: 0.8125rem;
    margin: 0.375rem 0 0;
}

/* Authorised supplier marks. On the navy hero the artwork's white plate needs a
   light panel behind it, otherwise it reads as a dirty rectangle. */
.mm-brands {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: fit-content;
    margin-bottom: 1rem;
}

.mm-brands img {
    height: 2.75rem;
    width: auto;
    display: block;
}

.mm-brands__note {
    color: var(--mm-navy);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* The options panel makes the right column very tall; without this the gallery
   column stretches with it and the thumbnails drop to the bottom, far from the
   image they belong to. */
.mm-theme .product-gallery {
    align-self: start;
}

.mm-theme .gallery-thumbs-wrap {
    margin-top: 0.75rem;
}

/* Subcategories on a grouping page. A zone holds no products of its own, so
   without these the page would look empty. */
.subcategory-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    margin: 1.5rem 0 2rem;
}

.subcategory-card {
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--mm-navy);
    background: #fff;
    display: flex;
    flex-direction: column;
}

.subcategory-card:hover {
    border-color: var(--mm-gold);
}

.subcategory-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--mm-bg-soft);
}

.subcategory-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.subcategory-card__name {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Doors are tall and their renders vary in size; cover would crop them and a
   stretched box distorts them. Fit the whole door inside a fixed portrait box. */
.mm-theme .product-card .product-image,
.mm-theme .product-image {
    aspect-ratio: 3 / 4;
    background: #fff;
    display: block;
    overflow: hidden;
}

.mm-theme .product-card .product-image img,
.mm-theme .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product badges are platform content, styled by the theme rather than
   re-implemented by it. */
.mm-theme .product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.mm-theme .product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
}

.mm-theme .product-badge img {
    height: 2rem;
    width: auto;
    display: block;
}

.mm-theme .product-badge__label {
    color: var(--mm-navy);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.mm-theme .product-badge--accent { border-color: var(--mm-gold); }
.mm-theme .product-badge--warning { border-color: #b91c1c; }

/* A long supplier description used to push the configurator far below the
   image. It lives in a tab now; the info column keeps a short teaser. */
.mm-theme .product-desc {
    color: var(--mm-muted);
}

.mm-theme .product-description-full {
    max-width: 60rem;
    line-height: 1.7;
}

.mm-theme .section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 2px solid var(--mm-line);
    margin-bottom: 1.25rem;
}

.mm-theme .section-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 0.625rem 1rem;
    font-weight: 600;
    color: var(--mm-muted);
    cursor: pointer;
}

.mm-theme .section-tab.active {
    color: var(--mm-navy);
    border-bottom-color: var(--mm-gold);
}

.mm-theme .section-panel { display: none; }
.mm-theme .section-panel.active { display: block; }

/* Homepage zones */
.mm-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.25rem;
}

.mm-section__head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.mm-section__title {
    color: var(--mm-navy);
    font-size: 1.75rem;
    margin: 0.25rem 0 0;
}

.mm-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mm-gold);
    margin: 0;
}

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

.mm-zones__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-auto-rows: 15rem;
    gap: 1rem;
}

.mm-zones__card {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: var(--mm-navy);
}

.mm-zones__card--lead {
    grid-row: span 2;
}

.mm-zones__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.mm-zones__card:hover img {
    transform: scale(1.04);
}

.mm-zones__label,
.mm-rooms__label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem 1.25rem 1rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    background: linear-gradient(180deg, rgba(16, 30, 54, 0), rgba(16, 30, 54, 0.85));
}

.mm-rooms__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mm-rooms__card {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    height: 13rem;
}

.mm-rooms__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.mm-rooms__card:hover img {
    transform: scale(1.04);
}

.mm-promo {
    background: var(--mm-navy);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2.5rem clamp(1.25rem, 8vw, 7rem);
}

.mm-promo__body h2 {
    font-size: 2rem;
    margin: 0.5rem 0 1rem;
}

.mm-promo__text {
    color: rgba(255, 255, 255, 0.85);
    max-width: 32rem;
}

.mm-promo__price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--mm-gold);
    margin: 1rem 0;
}

.mm-promo__cta {
    display: inline-block;
    background: var(--mm-gold);
    color: var(--mm-navy);
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
}

.mm-promo__media {
    margin-left: auto;
}

.mm-promo__media img {
    max-height: 22rem;
    border-radius: 10px;
    display: block;
}

.mm-brands-row {
    text-align: center;
}

.mm-brands-row__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.mm-brands-row__logos img {
    max-height: 3.5rem;
    max-width: 12rem;
    object-fit: contain;
}

.mm-newsletter {
    background: #f4f6f9;
    padding: 2.5rem 1.25rem;
    margin-top: 3rem;
}

.mm-newsletter > * {
    max-width: 34rem;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .mm-zones__grid { grid-template-columns: 1fr; grid-auto-rows: 12rem; }
    .mm-zones__card--lead { grid-row: auto; }
    .mm-rooms__grid { grid-template-columns: 1fr; }
    .mm-promo { flex-direction: column; text-align: center; }
    .mm-promo__media { margin: 0 auto; }
}

/* Hero slider: brand accents over the generic styles. */
.hero-slide-cta {
    color: var(--mm-gold);
    border-bottom-color: var(--mm-gold);
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--mm-gold);
}
