/* Maison 65 1.1: charcoal and gold, native editable content and WooCommerce. */
body.m65-ux {
    --m65-charcoal: #303030;
    --m65-gold: #c8b587;
    --m65-white: #fff;
    --m65-ink: #eee;
}
body.home.m65-ux, body.page-id-2596.m65-ux { background: #303030; }
body.m65-ux .m65-header-template { width: 100%; max-width: none; min-height: 0; padding: 0; margin: 0; gap: 0; background: #303030; --container-widget-width: 100%; }
body.m65-ux .m65-header-template > .elementor-widget-shortcode { width: 100%; margin: 0; }
.m65-header-shell { width: 100%; background: #303030; color: #c8b587; border-bottom: 1px solid #c8b58755; }
.m65-header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 24px; max-width: 1280px; width: 100%; min-height: 96px; margin: 0 auto; padding: 10px 28px; box-sizing: border-box; }
.m65-brand { display: flex; align-items: center; justify-content: center; line-height: 0; }
.m65-brand img.m65-brand-image { display: block; width: 162px; height: 74px; object-fit: contain; transform: none; }
.m65-menu { position: relative; width: 108px; justify-self: start; }
.m65-menu summary { display: flex; align-items: center; justify-content: flex-start; width: 108px; min-height: 48px; padding: 0; border: 0; list-style: none; color: #c8b587; cursor: pointer; }
.m65-menu summary::marker, .m65-menu summary::-webkit-details-marker { display: none; content: ''; }
.m65-menu summary svg { width: 30px; height: 30px; }
.m65-menu img.m65-menu-art { width: 108px; height: 50px; object-fit: contain; }
.m65-menu .m65-menu-art-open { display: none; }
.m65-menu[open] .m65-menu-art-closed { display: none; }
.m65-menu[open] .m65-menu-art-open { display: block; }
.m65-menu-panel { position: absolute; left: 0; top: calc(100% + 14px); z-index: 2001; width: min(310px,calc(100vw - 36px)); padding: 10px; border: 1px solid #c8b58799; border-radius: 6px; background: #303030; box-shadow: 0 14px 36px #0005; }
.m65-primary-menu { display: flex; flex-direction: column; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 0; }
.m65-primary-menu li { margin: 0; padding: 0; }
.m65-primary-menu a { display: flex; align-items: center; min-height: 48px; padding: 12px 16px; border-radius: 3px; color: #fff; font: 500 15px/1.4 Arial,sans-serif; letter-spacing: .02em; text-decoration: none; }
.m65-primary-menu a:hover, .m65-primary-menu a[aria-current] { background: #c8b58718; color: #c8b587; }
.m65-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 15px; min-width: 0; }
.m65-header-action { display: flex; align-items: center; justify-content: center; min-width: 36px; min-height: 46px; color: #c8b587; text-decoration: none; }
.m65-header-action:hover, .m65-header-action[aria-current] { color: #fff; }
.m65-social-links { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; margin-right: 5px; }
.m65-social-links a { display: flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; color: #c8b587; }
.m65-social-links a:hover { color: #fff; }
.m65-social-links svg { width: 17px; height: 17px; }
.m65-action-icon { display: inline-flex; position: relative; align-items: center; justify-content: center; line-height: 1; }
.m65-action-icon svg { display: block; width: 23px; height: 23px; flex-shrink: 0; }
.m65-cart-count { position: absolute; top: -6px; right: -10px; display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 20px; background: #c8b587; color: #242424; font: 700 10px/1 Arial,sans-serif; box-sizing: border-box; }
.m65-mobile-dock { display: none; }
.m65-header-shell a:focus-visible, .m65-menu summary:focus-visible, .m65-mobile-dock a:focus-visible { outline: 2px solid #c8b587; outline-offset: 4px; border-radius: 3px; }
.m65-page, body.m65-ux .m65-products-page.e-con { width: 100%; max-width: 1240px; margin: 0 auto; padding: 54px 28px 72px; gap: 0; box-sizing: border-box; background: #303030; color: #eee; }
.m65-intro, body.m65-ux .m65-products-intro.e-con { width: 100%; max-width: 760px; margin: 0 auto 42px; padding: 0; gap: 0; text-align: center; align-items: center; }
.m65-intro h1, body.m65-ux .m65-products-intro .elementor-heading-title, body.m65-ux .m65-home-intro .elementor-heading-title { margin: 0 0 18px; color: #c8b587; font-size: clamp(28px,3.4vw,44px); line-height: 1.17; letter-spacing: .035em; }
.m65-intro p, .m65-products-intro p { margin: 0; color: #eee; font: 400 16px/1.7 Arial,sans-serif; letter-spacing: 0; }
.m65-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; align-items: stretch; }
body.m65-ux .m65-grid.e-con { display: flex; flex-direction: row; flex-wrap: wrap; gap: 28px; align-items: stretch; padding: 0; }
.m65-card { min-width: 0; display: flex; flex-direction: column; background: #353535; border: 1px solid #c8b58777; border-radius: 10px; overflow: hidden; color: #eee; box-shadow: 0 6px 24px #0002; transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
body.m65-ux .m65-grid.e-con > .m65-card { flex: 0 1 calc((100% - 56px)/3); width: calc((100% - 56px)/3); min-width: 0; padding: 0; gap: 0; background: #353535; }
.m65-card:hover { border-color: #c8b587; box-shadow: 0 12px 30px #0003; transform: translateY(-3px); }
.m65-card-media { display: flex; align-items: center; justify-content: center; height: 260px; width: 100%; padding: 20px; background: #353535; box-sizing: border-box; }
.m65-card-media img, img.m65-card-media { display: block; height: 240px; max-height: 100%; width: 100%; object-fit: contain; }
body.m65-ux .m65-card-media.e-con { flex-direction: column; justify-content: center; gap: 12px; height: 330px; min-height: 0; padding: 20px; background: #353535; }
.m65-card-logo { display: block; width: 140px; height: 70px; max-width: 100%; object-fit: contain; margin: 0 auto 18px; }
.m65-card-logo img { display: block; width: 140px; height: 70px; object-fit: contain; }
body.m65-ux .m65-card-logo.elementor-widget-image { width: 140px; height: 62px; margin: 0 auto; flex: 0 0 62px; }
body.m65-ux .m65-card-logo.elementor-widget-image img { width: 140px; height: 62px; object-fit: contain; }
body.m65-ux .m65-card-image { width: 100%; flex: 1 1 auto; min-height: 0; }
body.m65-ux .m65-card-image img { display: block; width: 100%; height: 215px; object-fit: contain; }
.m65-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 26px; }
body.m65-ux .m65-card-body.e-con { padding: 26px; gap: 0; flex: 1 1 auto; width: 100%; }
.m65-card h2, .m65-card h3, body.m65-ux .m65-card-title .elementor-heading-title { color: #c8b587; margin: 0 0 10px; font-size: 25px; line-height: 1.2; letter-spacing: .02em; }
.m65-card h2 a, .m65-card h3 a { color: inherit; text-decoration: none; }
.m65-card-category, .m65-card-subtitle, .m65-card-kind { margin: 0 0 15px; color: #c8b587; font: 600 12px/1.5 Arial,sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.m65-card-kind p { margin: 0; color: #c8b587; }
.m65-card-summary { margin: 0 0 22px; color: #eee; font: 400 15px/1.65 Arial,sans-serif; letter-spacing: 0; }
.m65-card-summary p { margin: 0 0 12px; color: #eee; }
.m65-card-summary p:last-child { margin-bottom: 0; }
.m65-card a { text-decoration: none; }
.m65-card-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: auto; padding: 10px 17px; border-radius: 4px; background: #c8b587; border: 1px solid #c8b587; color: #242424; font: 600 13px/1.3 Arial,sans-serif; letter-spacing: .02em; }
.m65-card-link:hover { background: #dfd0aa; border-color: #dfd0aa; color: #242424; }
body.m65-ux .m65-card-link.elementor-widget-button { margin-top: auto; padding: 0; background: transparent; border: 0; }
body.m65-ux .m65-card-link .elementor-button { min-height: 44px; padding: 12px 17px; background: #c8b587; color: #242424; border: 1px solid #c8b587; border-radius: 4px; font: 600 13px/1.3 Arial,sans-serif; letter-spacing: .02em; }
body.m65-ux .m65-card-link .elementor-button:hover { background: #dfd0aa; border-color: #dfd0aa; color: #242424; }
.m65-card a:focus-visible, .m65-home-actions a:focus-visible, .m65-home-teaser a:focus-visible, .m65-home-cta a:focus-visible { outline: 2px solid #c8b587; outline-offset: 4px; }
.m65-home-intro, body.m65-ux .m65-home-intro.e-con { width: 100%; max-width: 900px; margin: 0 auto; padding: 48px 28px 36px; gap: 0; background: #303030; color: #eee; text-align: center; align-items: center; box-sizing: border-box; }
.m65-home-intro p { max-width: 690px; margin: 0 auto 22px; color: #eee; font: 400 17px/1.7 Arial,sans-serif; letter-spacing: 0; }
.m65-eyebrow, .m65-home-intro .m65-eyebrow p { margin: 0 0 14px; color: #c8b587; font: 600 12px/1.5 Arial,sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.m65-home-intro .m65-eyebrow p { margin-inline: auto; }
.m65-home-teaser, body.m65-ux .m65-home-teaser.e-con { width: 100%; max-width: 1100px; margin: 0 auto; padding: 48px 28px; gap: 0; background: #303030; color: #eee; text-align: center; align-items: center; box-sizing: border-box; }
.m65-home-teaser h2, body.m65-ux .m65-home-teaser .elementor-heading-title { margin: 0 0 16px; color: #c8b587; font-size: clamp(25px,2.7vw,34px); line-height: 1.25; letter-spacing: .02em; }
.m65-home-teaser p { max-width: 700px; margin: 0 auto 22px; color: #eee; font: 400 16px/1.7 Arial,sans-serif; letter-spacing: 0; }
.m65-home-actions, .m65-home-cta, body.m65-ux .m65-home-actions.e-con { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; width: 100%; padding: 0; margin: 24px 0 0; gap: 14px; }
body.m65-ux .m65-home-actions.e-con > .elementor-widget-button { width: auto; max-width: 100%; --container-widget-width: auto; --container-widget-flex-grow: 0; }
body.m65-ux .m65-home-actions .elementor-button-wrapper { width: auto; }
.m65-home-actions a, .m65-home-actions .elementor-button, .m65-home-cta a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; background: #c8b587; border: 1px solid #c8b587; border-radius: 4px; color: #242424; text-decoration: none; font: 600 14px/1.4 Arial,sans-serif; letter-spacing: .01em; }
.m65-home-actions a:hover, .m65-home-actions .elementor-button:hover, .m65-home-cta a:hover { background: #dfd0aa; border-color: #dfd0aa; color: #242424; }
body.m65-ux .m65-button-secondary .elementor-button, .m65-home-cta a.m65-secondary { min-height: 46px; padding: 12px 22px; background: transparent; color: #c8b587; border: 1px solid #c8b587; border-radius: 4px; font: 600 14px/1.4 Arial,sans-serif; letter-spacing: .01em; }
body.m65-ux .m65-button-secondary .elementor-button:hover { background: #c8b587; color: #242424; }
body.m65-ux .m65-home-slide-image figcaption { margin-top: 12px; padding: 0 12px; color: #c8b587; font: 400 14px/1.5 Arial,sans-serif; letter-spacing: 0; text-align: center; }
/* Hide the duplicate metadata caption while keeping its linked category. */
.elementor-2173 .elementor-widget-woocommerce-product-meta .posted_in .detail-label { display: none; }
@media (max-width:1024px) {
    body.m65-ux { padding-bottom: calc(74px + env(safe-area-inset-bottom,0px)); }
    html:has(body.m65-ux) { scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom,0px)); }
    .m65-header-inner { min-height: 78px; padding: 8px 20px; gap: 16px; }
    .m65-brand img.m65-brand-image { width: 126px; height: 60px; }
    .m65-menu, .m65-menu summary { width: 88px; }
    .m65-menu img.m65-menu-art { width: 88px; height: 46px; }
    .m65-social-links { display: none; }
    .m65-header-actions { display: flex; gap: 12px; }
    .m65-mobile-dock { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; inset: auto 0 0; z-index: 990; gap: 0; padding: 7px 6px calc(7px + env(safe-area-inset-bottom,0px)); border-top: 1px solid #c8b58799; background: #303030; box-shadow: 0 -4px 20px #0003; box-sizing: border-box; }
    .m65-mobile-dock > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 48px; padding: 2px 0; color: #fff; font: 500 11px/1.2 Arial,sans-serif; letter-spacing: 0; text-decoration: none; border-radius: 5px; }
    .m65-mobile-dock > a:hover, .m65-mobile-dock > a[aria-current] { color: #c8b587; background: #ffffff08; }
    body.m65-keyboard-open .m65-mobile-dock { display: none; }
    body.m65-ux #tarteaucitronIcon { bottom: calc(84px + env(safe-area-inset-bottom,0px)) !important; }
    .m65-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
    body.m65-ux .m65-grid.e-con { gap: 22px; }
    body.m65-ux .m65-grid.e-con > .m65-card { flex-basis: calc((100% - 22px)/2); width: calc((100% - 22px)/2); }
    .m65-page, body.m65-ux .m65-products-page.e-con { padding: 44px 24px 54px; }
}
@media (max-width:600px) {
    .m65-header-inner { min-height: 72px; padding: 7px 14px; gap: 10px; }
    .m65-brand img.m65-brand-image { width: 110px; height: 56px; }
    .m65-menu, .m65-menu summary { width: 70px; }
    .m65-menu img.m65-menu-art { width: 70px; height: 44px; }
    .m65-header-actions { gap: 5px; }
    .m65-header-action { min-width: 30px; }
    .m65-header-action .m65-action-icon svg { width: 20px; height: 20px; }
    .m65-menu-panel { top: calc(100% + 12px); }
    .m65-page, body.m65-ux .m65-products-page.e-con { padding: 34px 18px 44px; }
    .m65-intro, body.m65-ux .m65-products-intro.e-con { margin-bottom: 28px; }
    .m65-intro p, .m65-products-intro p { font-size: 15px; }
    .m65-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
    body.m65-ux .m65-grid.e-con { gap: 24px; }
    body.m65-ux .m65-grid.e-con > .m65-card { flex-basis: 100%; width: 100%; }
    body.m65-ux .m65-card-body.e-con { padding: 24px; }
    .m65-card h2, .m65-card h3 { font-size: 26px; }
    .m65-home-intro, body.m65-ux .m65-home-intro.e-con { padding: 34px 20px 26px; }
    .m65-home-intro p { font-size: 16px; }
    .m65-home-teaser, body.m65-ux .m65-home-teaser.e-con { padding: 34px 20px; }
    .m65-home-actions, body.m65-ux .m65-home-actions.e-con { gap: 10px; }
    body.m65-ux .m65-home-actions.e-con > .elementor-widget-button { width: 100%; }
    body.m65-ux .m65-home-actions .elementor-button-wrapper, body.m65-ux .m65-home-actions .elementor-button { width: 100%; }
}
@media (prefers-reduced-motion:reduce) {
    .m65-card { transition: none; }
    .m65-card:hover { transform: none; }
}

/* Product catalogue: full available width and justified descriptions. */
body.m65-ux .m65-products-page.e-con { max-width: none; }
.m65-card-summary, .m65-card-summary p {
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

/* Keep the product logo and photo in one vertical stack on narrow cards. */
body.m65-ux .m65-card-media.e-con { flex-wrap: nowrap; }

/* Keep the complete Elementor header visible while preserving its layout space. */
html:has(body.m65-ux) {
    --m65-header-height: 97px;
    --m65-header-admin-offset: 0px;
    --m65-header-dock-space: 0px;
    scroll-padding-top: calc(var(--m65-header-height) + var(--m65-header-admin-offset) + 16px);
}
body.m65-ux > .elementor-location-header.elementor-913 {
    position: sticky;
    top: var(--m65-header-admin-offset);
    z-index: 1000;
    background: #303030;
}
html:has(body.m65-ux.admin-bar) { --m65-header-admin-offset: var(--wp-admin--admin-bar--height,32px); }
.m65-menu-panel {
    max-height: calc(100dvh - var(--m65-header-height) - var(--m65-header-admin-offset) - var(--m65-header-dock-space) - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
@media (max-width:1024px) {
    html:has(body.m65-ux) { --m65-header-height: 79px; --m65-header-dock-space: calc(74px + env(safe-area-inset-bottom,0px)); }
}
@media (min-width:601px) and (max-width:782px) {
    html:has(body.m65-ux.admin-bar) { --m65-header-admin-offset: var(--wp-admin--admin-bar--height,46px); }
}
@media (max-width:600px) {
    html:has(body.m65-ux) { --m65-header-height: 73px; }
    html:has(body.m65-ux.admin-bar) { --m65-header-admin-offset: 0px; }
}

/* A stable reserve and local scroll progress prevent jumps and global frame updates. */
html:has(body.m65-ux) {
    --m65-header-expanded-height: 141px;
    --m65-header-compact-height: 81px;
    --m65-header-height: var(--m65-header-expanded-height);
    --m65-header-expanded-logo-width: 240px;
    --m65-header-expanded-logo-height: 110px;
    --m65-header-compact-logo-width: 162px;
    --m65-header-compact-logo-height: 60px;
    --m65-header-expanded-vpadding: 12px;
    --m65-header-compact-vpadding: 8px;
}
body.m65-ux > .elementor-location-header.elementor-913 {
    --m65-header-progress: 0;
    --m65-header-height: calc(var(--m65-header-expanded-height) - (var(--m65-header-expanded-height) - var(--m65-header-compact-height)) * var(--m65-header-progress));
    --m65-header-logo-width: calc(var(--m65-header-expanded-logo-width) - (var(--m65-header-expanded-logo-width) - var(--m65-header-compact-logo-width)) * var(--m65-header-progress));
    --m65-header-logo-height: calc(var(--m65-header-expanded-logo-height) - (var(--m65-header-expanded-logo-height) - var(--m65-header-compact-logo-height)) * var(--m65-header-progress));
    --m65-header-vpadding: calc(var(--m65-header-expanded-vpadding) - (var(--m65-header-expanded-vpadding) - var(--m65-header-compact-vpadding)) * var(--m65-header-progress));
    height: var(--m65-header-expanded-height);
    min-height: var(--m65-header-expanded-height);
    background: transparent;
    pointer-events: none;
}
.m65-header-shell { pointer-events: auto; transition: box-shadow .2s ease; }
.m65-header-inner {
    min-height: calc(var(--m65-header-height) - 1px);
    padding-top: var(--m65-header-vpadding);
    padding-bottom: var(--m65-header-vpadding);
    transition: none;
}
.m65-brand img.m65-brand-image {
    width: var(--m65-header-logo-width);
    height: var(--m65-header-logo-height);
    transition: none;
}
/* Only the final state changes the document's conservative anchor offset. */
html:has(body.m65-ux.m65-header-compact) { --m65-header-height: var(--m65-header-compact-height); }
body.m65-header-compact .m65-header-shell { box-shadow: 0 5px 20px #0003; }
@media (max-width:1024px) {
    html:has(body.m65-ux) {
        --m65-header-expanded-height: 115px;
        --m65-header-compact-height: 77px;
        --m65-header-expanded-logo-width: 194px;
        --m65-header-expanded-logo-height: 90px;
        --m65-header-compact-logo-width: 126px;
        --m65-header-compact-logo-height: 58px;
    }
}
@media (max-width:600px) {
    html:has(body.m65-ux) {
        --m65-header-expanded-height: 91px;
        --m65-header-compact-height: 65px;
        --m65-header-expanded-logo-width: clamp(122px,36vw,152px);
        --m65-header-expanded-logo-height: 66px;
        --m65-header-compact-logo-width: 110px;
        --m65-header-compact-logo-height: 50px;
        --m65-header-expanded-vpadding: 10px;
        --m65-header-compact-vpadding: 6px;
    }
}
@media (prefers-reduced-motion:reduce) {
    .m65-header-shell, .m65-header-inner, .m65-brand img.m65-brand-image { transition: none; }
}
