:root {
    --mhmf-shop-ink: #171714;
    --mhmf-shop-text: #54544f;
    --mhmf-shop-muted: #777771;
    --mhmf-shop-line: #deddd6;
    --mhmf-shop-warm: #f3f1ea;
    --mhmf-shop-soft: #f8f7f3;
    --mhmf-shop-white: #fff;
    --mhmf-shop-body: "Inter", Arial, sans-serif;
    --mhmf-shop-display: "Questrial", Arial, sans-serif;
}

body:not(.home) .mhmf-site-header {
    height: 112px;
}

.mhmf-store-shell,
.mhmf-store-shell button,
.mhmf-store-shell input,
.mhmf-store-shell select,
.mhmf-store-shell textarea,
.mhmf-faq-page,
.mhmf-faq-page button {
    color: var(--mhmf-shop-text);
    font-family: var(--mhmf-shop-body);
}

.mhmf-store-shell :where(h1, h2, h3, h4),
.mhmf-faq-page :where(h1, h2, h3, h4) {
    color: var(--mhmf-shop-ink);
    font-family: var(--mhmf-shop-display) !important;
    font-weight: 400;
}

.mhmf-service-catalog,
.single-product .mhmf-store-shell > .woocommerce,
.single-product .mhmf-store-shell .content-area,
.mhmf-faq-page {
    width: min(100% - 48px, 1170px);
    max-width: 1170px;
    margin-right: auto;
    margin-left: auto;
}

.mhmf-service-catalog {
    padding-bottom: 96px;
}

.mhmf-service-catalog .mhmf-catalog-breadcrumb,
.tax-product_cat .woocommerce-breadcrumb,
.single-product .woocommerce-breadcrumb {
    margin: 10px 0 0;
    padding: 0;
    color: var(--mhmf-shop-muted);
    font-size: 11px;
    font-weight: 500;
}

.mhmf-service-catalog .mhmf-catalog-breadcrumb a,
.tax-product_cat .woocommerce-breadcrumb a,
.single-product .woocommerce-breadcrumb a {
    color: var(--mhmf-shop-ink);
    text-decoration: none;
}

.tax-product_cat .woocommerce-breadcrumb {
    max-width: none;
}

.mhmf-catalog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 72px;
    align-items: end;
    padding: 46px 0 34px;
    border-bottom: 1px solid var(--mhmf-shop-line);
}

.mhmf-catalog-kicker {
    margin: 0 0 8px;
    color: var(--mhmf-shop-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mhmf-catalog-hero h1 {
    margin: 0;
    font-size: clamp(44px, 5vw, 62px);
    letter-spacing: -.045em;
    line-height: .95;
}

.mhmf-catalog-hero > p {
    margin: 0 0 2px;
    color: var(--mhmf-shop-text);
    font-size: 14px;
    font-weight: 450;
    line-height: 1.55;
}

.mhmf-service-catalog .mhmf-provisional-prices,
.single-product .mhmf-provisional-prices {
    margin: 18px 0 0;
    padding: 11px 14px;
    border: 0;
    border-radius: 0;
    background: var(--mhmf-shop-warm);
    color: var(--mhmf-shop-ink);
    font-size: 11px;
    line-height: 1.45;
}

.mhmf-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 18px 0 8px;
}

.mhmf-category-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 29px;
    padding: 5px 10px;
    border: 1px solid var(--mhmf-shop-ink);
    border-radius: 999px;
    color: var(--mhmf-shop-ink);
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.mhmf-category-nav a small {
    font-size: 9px;
    font-weight: 600;
}

.mhmf-category-nav a:hover,
.mhmf-category-nav a:focus-visible {
    background: var(--mhmf-shop-ink);
    color: #fff;
}

.mhmf-category-section {
    scroll-margin-top: 120px;
    padding: 10px 0 44px;
    border-top: 1px solid var(--mhmf-shop-line);
}

.mhmf-category-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr) auto;
    gap: 36px;
    align-items: end;
    margin-bottom: 10px;
}

.mhmf-category-heading span {
    display: block;
    margin-bottom: 3px;
    color: var(--mhmf-shop-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mhmf-category-heading h2 {
    margin: 0;
    font-size: clamp(34px, 3.2vw, 45px);
    letter-spacing: -.04em;
    line-height: 1;
}

.mhmf-category-heading h2 a {
    color: inherit;
    text-decoration: none;
}

.mhmf-category-heading h2 a:hover,
.mhmf-category-heading h2 a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.mhmf-category-heading p {
    margin: 0;
    color: var(--mhmf-shop-text);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.5;
}

.mhmf-category-heading__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--mhmf-shop-ink);
    border-radius: 999px;
    color: var(--mhmf-shop-ink);
    text-decoration: none;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.mhmf-category-heading__link:hover,
.mhmf-category-heading__link:focus-visible {
    background: var(--mhmf-shop-ink);
    color: #fff;
}

.mhmf-related-categories {
    display: grid;
    grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr);
    gap: 36px;
    align-items: end;
    max-width: 1265px;
    margin: 54px auto 0;
    padding: 34px 24px;
    border-top: 1px solid var(--mhmf-shop-line);
}

.mhmf-related-categories span {
    color: var(--mhmf-shop-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mhmf-related-categories h2 {
    margin: 5px 0 0;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -.04em;
    line-height: 1;
}

.mhmf-related-categories__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.mhmf-related-categories__links a {
    padding: 9px 13px;
    border: 1px solid var(--mhmf-shop-line);
    border-radius: 999px;
    color: var(--mhmf-shop-ink);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.mhmf-related-categories__links a:hover,
.mhmf-related-categories__links a:focus-visible {
    border-color: var(--mhmf-shop-ink);
    background: var(--mhmf-shop-ink);
    color: #fff;
}

.mhmf-category-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 12px;
}

.mhmf-service-card {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    min-width: 0;
    background: var(--mhmf-shop-white);
    color: var(--mhmf-shop-ink);
}

/* The marketing theme uses the same class for icon cards and injects a
 * decorative 96 x 82 pseudo-element. Catalog cards must never inherit it. */
.mhmf-service-catalog .mhmf-service-card::before {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    content: none !important;
}

.mhmf-service-card__visual {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--mhmf-shop-warm);
    color: var(--mhmf-shop-ink);
    font-size: 0;
    line-height: 0;
    text-decoration: none;
}

.mhmf-service-card__visual img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
    transition: transform .35s ease;
}

.mhmf-service-card:hover .mhmf-service-card__visual img {
    transform: scale(1.025) !important;
}

.mhmf-service-card__visual > span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 7px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, .94);
    color: var(--mhmf-shop-ink);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.mhmf-service-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 10px 0 0;
}

.mhmf-service-card h3 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.mhmf-service-card h3 a {
    color: var(--mhmf-shop-ink);
    text-decoration: none;
}

.mhmf-service-card__body > p {
    display: -webkit-box;
    min-height: 32px;
    margin: 6px 0 9px;
    overflow: hidden;
    color: var(--mhmf-shop-muted);
    font-size: 9px;
    font-weight: 450;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Service cards show their complete, editable title and summary. */
.mhmf-service-card h3,
.mhmf-service-card h3 a,
.mhmf-service-card__body > p {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.mhmf-service-card h3 {
    min-height: calc(2em * 1.15);
    font-size: 22px !important;
    line-height: 1.12 !important;
}

.mhmf-service-card__body > p {
    display: block;
    min-height: 0;
    margin-bottom: 12px;
    font-size: 13px !important;
    line-height: 1.5 !important;
    -webkit-line-clamp: unset;
}

.mhmf-service-card__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-top: auto;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--mhmf-shop-line);
}

.mhmf-service-card__footer strong {
    display: flex;
    flex-direction: column;
    color: var(--mhmf-shop-ink);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.05;
}

.mhmf-service-card__footer strong small {
    margin-bottom: 2px;
    color: var(--mhmf-shop-muted);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mhmf-service-card__footer .price {
    color: inherit !important;
    font-size: inherit !important;
}

.mhmf-service-card__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--mhmf-shop-ink);
    font-size: 9px;
    font-weight: 650;
    text-decoration: none;
}

.mhmf-service-card__action span {
    font-size: 12px;
}

/* Product: compact, flat two-column configurator based on the supplied Chroma reference. */
.single-product .mhmf-store-shell {
    background: var(--mhmf-shop-white);
}

.single-product .mhmf-store-shell .content-area {
    width: min(100% - 48px, 1170px);
}

.single-product .mhmf-store-shell .site-main {
    width: 100%;
}

.single-product .woocommerce-breadcrumb {
    padding-top: 8px;
}

.single-product .mhmf-store-shell .woocommerce-notices-wrapper,
.single-product .mhmf-store-shell .mhmf-provisional-prices {
    max-width: 1170px;
}

.single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    max-width: none;
    margin: 0;
    padding: 20px 0 72px;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.single-product div.product .woocommerce-product-gallery {
    position: relative !important;
    top: 0 !important;
    overflow: hidden;
    background: var(--mhmf-shop-warm);
}

.single-product div.product .woocommerce-product-gallery img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.single-product div.product .summary {
    padding: 0 0 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.single-product div.product .product_title {
    margin: 0 0 6px;
    font-size: clamp(31px, 3.2vw, 42px);
    letter-spacing: -.04em;
    line-height: .98;
}

.single-product div.product .summary > .price {
    margin: 0 0 16px;
    color: var(--mhmf-shop-ink) !important;
    font-size: 14px !important;
    font-weight: 700;
}

.single-product .mhmf-single-price-unit,
.single-product .mhmf-single-price-amount {
    display: block;
}

.single-product .mhmf-single-price-unit {
    margin-bottom: 3px;
    color: var(--mhmf-shop-muted);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.single-product div.product .woocommerce-product-details__short-description {
    margin: 0;
    color: var(--mhmf-shop-text);
    font-size: 11px;
    font-weight: 450;
    line-height: 1.55;
}

.single-product .mhmf-configurator {
    margin: 20px 0 12px;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--mhmf-shop-line);
    border-radius: 0;
    background: transparent;
}

.single-product .mhmf-configurator__heading {
    margin: 0;
    padding: 14px 0 10px;
}

.single-product .mhmf-configurator__heading > span {
    color: var(--mhmf-shop-ink);
    font-family: var(--mhmf-shop-display);
    font-size: 20px;
    font-weight: 400;
}

.single-product .mhmf-live-price {
    color: var(--mhmf-shop-ink);
    font-size: 12px;
    font-weight: 700;
}

.single-product .mhmf-docx-drop,
.single-product .mhmf-config-field {
    margin: 0;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--mhmf-shop-line);
    border-radius: 0;
    background: transparent;
}

.single-product .mhmf-docx-drop {
    padding: 12px;
    border: 1px dashed #b9b8b0;
    background: var(--mhmf-shop-soft);
}

.single-product .mhmf-docx-drop > span:first-child,
.single-product .mhmf-config-field > span {
    color: var(--mhmf-shop-ink);
    font-size: 10px;
    font-weight: 650;
}

.single-product .mhmf-docx-drop small,
.single-product .mhmf-config-field small {
    color: var(--mhmf-shop-muted);
    font-size: 9px;
}

.single-product .mhmf-config-field select,
.single-product .mhmf-config-field input {
    min-height: 34px;
    margin-top: 5px;
    padding: 5px 9px;
    border: 1px solid #c8c7c0;
    border-radius: 3px;
    background: #fff;
    color: var(--mhmf-shop-ink);
    font-size: 10px;
}

.single-product .mhmf-file-picker__button {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--mhmf-shop-ink);
    color: #fff;
    font-size: 9px;
}

.single-product .mhmf-docx-input.screen-reader-text,
.single-product .mhmf-generator-docx-input.screen-reader-text,
.single-product .mhmf-docx-input.screen-reader-text:focus,
.single-product .mhmf-generator-docx-input.screen-reader-text:focus {
    position: fixed !important;
    inset: 0 auto auto 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.single-product .mhmf-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.single-product .mhmf-trust-row span {
    padding: 4px 7px;
    border: 1px solid var(--mhmf-shop-line);
    border-radius: 999px;
    background: #fff;
    color: var(--mhmf-shop-ink);
    font-size: 8px;
}

.single-product div.product form.cart {
    display: grid;
}

.single-product div.product form.cart .single_add_to_cart_button {
    width: 100%;
    min-height: 40px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: var(--mhmf-shop-ink);
    color: #fff;
    font-size: 10px;
    font-weight: 650;
}

.single-product div.product form.cart .single_add_to_cart_button:hover {
    background: #000;
}

.single-product div.product .product_meta {
    margin-top: 10px;
    color: var(--mhmf-shop-muted);
    font-size: 8px;
}

.single-product div.product .woocommerce-tabs,
.single-product div.product .related.products {
    grid-column: 1 / -1;
}

.single-product div.product .woocommerce-tabs {
    margin-top: 8px;
    padding-top: 30px;
    border-top: 1px solid var(--mhmf-shop-line);
}

.single-product div.product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--mhmf-shop-line);
}

.single-product div.product .woocommerce-tabs ul.tabs::before,
.single-product div.product .woocommerce-tabs ul.tabs li::before,
.single-product div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.single-product div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.single-product div.product .woocommerce-tabs ul.tabs li a {
    position: relative;
    padding: 4px 0;
    color: var(--mhmf-shop-muted);
    font-family: var(--mhmf-shop-display);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.single-product div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--mhmf-shop-ink);
}

.single-product div.product .woocommerce-tabs ul.tabs li.active a::after {
    position: absolute;
    right: 0;
    bottom: -17px;
    left: 0;
    height: 2px;
    background: var(--mhmf-shop-ink);
    content: "";
}

.single-product div.product .woocommerce-tabs .panel {
    padding: 20px 0;
    color: var(--mhmf-shop-text);
    font-size: 11px;
    line-height: 1.65;
}

.single-product .mhmf-product-story {
    display: grid;
    gap: 34px;
}

.single-product .mhmf-product-story__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    align-items: center;
}

.single-product .mhmf-product-story__row.is-reversed .mhmf-product-story__copy {
    order: 2;
}

.single-product .mhmf-product-story__copy {
    padding: 28px 0;
}

.single-product .mhmf-product-story__copy h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 39px);
    letter-spacing: -.035em;
    line-height: 1;
}

.single-product .mhmf-product-story__lead {
    margin: 0 0 17px;
    color: var(--mhmf-shop-ink);
    font-family: var(--mhmf-shop-display);
    font-size: 18px;
    line-height: 1.25;
}

.single-product .mhmf-product-story__body {
    color: var(--mhmf-shop-text);
    font-size: 11px;
    line-height: 1.6;
}

.single-product .mhmf-product-story__body p:last-child {
    margin-bottom: 0;
}

.single-product .mhmf-product-story__visual {
    min-height: 390px;
    margin: 0;
    overflow: hidden;
    background: var(--mhmf-shop-warm);
}

.single-product .mhmf-product-story__visual img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    aspect-ratio: 1.18 / 1;
    object-fit: cover;
}

.single-product .mhmf-product-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin: 0;
    border-top: 1px solid var(--mhmf-shop-ink);
}

.single-product .mhmf-product-specs > div {
    padding: 14px 0;
    border-bottom: 1px solid var(--mhmf-shop-line);
}

.single-product .mhmf-product-specs dt {
    color: var(--mhmf-shop-muted);
    font-size: 9px;
}

.single-product .mhmf-product-specs dd {
    margin: 3px 0 0;
    color: var(--mhmf-shop-ink);
    font-size: 11px;
    font-weight: 600;
}

.single-product .mhmf-product-faq-section {
    grid-column: 1 / -1;
    margin: 20px 0 8px;
    padding: 38px 32px 44px;
    background: #efeee9;
}

.single-product .mhmf-product-reviews-section {
    grid-column: 1 / -1;
    margin: 8px 0 24px;
    padding: 42px 32px 48px;
    border-top: 1px solid var(--mhmf-shop-line);
}

.single-product .mhmf-product-reviews-section .woocommerce-Reviews {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 52px;
}

.single-product .mhmf-product-reviews-section .woocommerce-Reviews-title {
    margin: 0 0 20px;
    color: var(--mhmf-shop-ink);
    font-size: clamp(30px, 3vw, 42px);
    letter-spacing: -.035em;
    line-height: 1;
}

.single-product .mhmf-product-reviews-section .woocommerce-noreviews {
    margin: 0;
    color: var(--mhmf-shop-muted);
    font-size: 12px;
}

.single-product .mhmf-product-reviews-section #review_form_wrapper {
    padding: 26px;
    background: var(--mhmf-shop-warm);
}

.single-product .mhmf-product-reviews-section .comment-reply-title {
    display: block;
    margin-bottom: 16px;
    color: var(--mhmf-shop-ink);
    font-family: var(--mhmf-shop-display);
    font-size: 24px;
    line-height: 1.1;
}

.single-product .mhmf-product-reviews-section :where(input:not([type="submit"]), textarea, select) {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--mhmf-shop-line);
    border-radius: 0;
    background: #fff;
}

.single-product .mhmf-product-reviews-section textarea {
    min-height: 130px;
}

.single-product .mhmf-product-reviews-section .form-submit .submit {
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid var(--mhmf-shop-ink);
    border-radius: 999px;
    background: var(--mhmf-shop-ink);
    color: #fff;
    font-weight: 650;
}

.single-product .mhmf-product-reviews-section .comment-form-cookies-consent {
    display: none !important;
}

.single-product :where(.star-rating span::before, .woocommerce-product-rating .star-rating span::before, p.stars a, p.stars a::before) {
    color: #208fe7 !important;
}

@media (max-width: 820px) {
    .single-product .mhmf-product-reviews-section {
        padding: 30px 0 36px;
    }

    .single-product .mhmf-product-reviews-section .woocommerce-Reviews {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .single-product .mhmf-product-reviews-section #review_form_wrapper {
        padding: 20px;
    }
}

.single-product .mhmf-product-faq-intro {
    max-width: 930px;
    margin-bottom: 38px;
}

.single-product .mhmf-product-faq-intro h2 {
    margin: 0 0 10px;
    font-size: clamp(27px, 3vw, 38px);
    letter-spacing: -.035em;
}

.single-product .mhmf-product-faq-intro > div {
    color: var(--mhmf-shop-ink);
    font-size: 12px;
    line-height: 1.55;
}

.single-product .mhmf-product-faq-section__title {
    margin: 0 0 14px;
    font-size: 30px;
}

.single-product .mhmf-product-faq-section__list {
    border-top: 1px solid var(--mhmf-shop-line);
}

.single-product .mhmf-product-faq-question {
    border-bottom: 1px solid var(--mhmf-shop-line);
}

.single-product .mhmf-product-faq-question summary {
    position: relative;
    padding: 15px 38px 15px 0;
    color: var(--mhmf-shop-ink);
    font-size: 12px;
    font-weight: 550;
    cursor: pointer;
    list-style: none;
}

.single-product .mhmf-product-faq-question summary::-webkit-details-marker {
    display: none;
}

.single-product .mhmf-product-faq-question summary::after {
    position: absolute;
    top: 12px;
    right: 3px;
    content: "⌄";
    font-size: 16px;
}

.single-product .mhmf-product-faq-question[open] summary::after {
    transform: rotate(180deg);
}

.single-product .mhmf-product-faq-question > div {
    max-width: 900px;
    padding: 0 38px 14px 0;
    color: var(--mhmf-shop-text);
    font-size: 10px;
    line-height: 1.6;
}

.single-product .mhmf-product-faq {
    max-width: 760px;
}

.single-product .mhmf-product-faq > h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.single-product .mhmf-product-faq__list {
    border-top: 1px solid var(--mhmf-shop-ink);
}

.single-product .mhmf-product-faq .mhmf-faq-item {
    margin: 0;
    border-bottom: 1px solid var(--mhmf-shop-line);
}

.single-product .mhmf-product-faq .mhmf-faq-item summary {
    position: relative;
    padding: 13px 32px 13px 0;
    color: var(--mhmf-shop-ink);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.single-product .mhmf-product-faq .mhmf-faq-item summary::-webkit-details-marker {
    display: none;
}

.single-product .mhmf-product-faq .mhmf-faq-item summary::after {
    position: absolute;
    top: 10px;
    right: 0;
    content: "+";
    font-size: 17px;
}

.single-product .mhmf-product-faq .mhmf-faq-item[open] summary::after {
    content: "−";
}

.single-product .mhmf-product-faq .mhmf-faq-item > p,
.single-product .mhmf-product-faq .mhmf-faq-item > div {
    margin: 0;
    padding: 0 32px 14px 0;
    font-size: 10px;
    line-height: 1.6;
}

.single-product .mhmf-product-faq__more {
    display: inline-flex;
    margin-top: 14px;
    padding: 6px 11px;
    border: 1px solid var(--mhmf-shop-ink);
    border-radius: 999px;
    color: var(--mhmf-shop-ink);
    font-size: 9px;
    font-weight: 650;
    text-decoration: none;
}

.single-product div.product .related.products > h2 {
    margin: 34px 0 18px;
    font-size: 36px;
    letter-spacing: -.04em;
}

.single-product div.product .related.products ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.single-product div.product .related.products ul.products::before,
.single-product div.product .related.products ul.products::after {
    display: none;
}

.single-product div.product .related.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.single-product div.product .related.products li.product a img {
    aspect-ratio: 4 / 5;
    margin: 0 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
}

.single-product div.product .related.products li.product .woocommerce-loop-product__title {
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--mhmf-shop-ink) !important;
    font-family: var(--mhmf-shop-display) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.15;
}

.single-product div.product .related.products li.product .price {
    margin: 5px 0 8px !important;
    color: var(--mhmf-shop-ink) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
}

.single-product div.product .related.products li.product .button {
    min-height: 0;
    margin: 0 !important;
    padding: 6px 11px !important;
    border: 1px solid var(--mhmf-shop-ink) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--mhmf-shop-ink) !important;
    font-size: 9px !important;
    font-weight: 650 !important;
}

.single-product div.product .related.products li.product .button:hover {
    background: var(--mhmf-shop-ink) !important;
    color: #fff !important;
}

/* FAQ: editorial, compact and fully Gutenberg-editable. */
.mhmf-faq-shell {
    padding: 0 0 100px !important;
}

.mhmf-faq-page {
    padding: 38px 0 88px;
}

.mhmf-faq-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 60px;
    align-items: end;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--mhmf-shop-line);
}

.mhmf-faq-hero h1 {
    margin: 0;
    font-size: clamp(44px, 5vw, 62px);
    letter-spacing: -.05em;
    line-height: .95;
}

.mhmf-faq-hero p {
    margin: 0;
    color: var(--mhmf-shop-text);
    font-size: 13px;
    font-weight: 450;
    line-height: 1.55;
}

.mhmf-faq-nav,
.mhmf-faq-nav p {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
}

.mhmf-faq-nav {
    padding: 20px 0 44px;
}

.mhmf-faq-nav a {
    padding: 5px 10px;
    border: 1px solid var(--mhmf-shop-ink);
    border-radius: 999px;
    color: var(--mhmf-shop-ink);
    font-size: 9px;
    font-weight: 650;
    text-decoration: none;
}

.mhmf-faq-section {
    display: grid;
    grid-template-columns: minmax(220px, .5fr) minmax(0, 1.5fr);
    gap: 50px;
    padding: 34px 0 46px;
    border-top: 1px solid var(--mhmf-shop-line);
    scroll-margin-top: 120px;
}

.mhmf-faq-section > h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 39px);
    letter-spacing: -.04em;
    line-height: 1;
}

.mhmf-faq-list {
    border-top: 1px solid var(--mhmf-shop-ink);
}

.mhmf-faq-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--mhmf-shop-line);
}

.mhmf-faq-item summary {
    position: relative;
    padding: 15px 38px 15px 0;
    color: var(--mhmf-shop-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.mhmf-faq-item summary::-webkit-details-marker {
    display: none;
}

.mhmf-faq-item summary::after {
    position: absolute;
    top: 12px;
    right: 0;
    content: "+";
    color: var(--mhmf-shop-ink);
    font-size: 18px;
    font-weight: 400;
}

.mhmf-faq-item[open] summary::after {
    content: "−";
}

.mhmf-faq-item > p,
.mhmf-faq-item > div {
    max-width: 700px;
    margin: 0;
    padding: 0 38px 17px 0;
    color: var(--mhmf-shop-text);
    font-size: 10px;
    font-weight: 450;
    line-height: 1.65;
}

.mhmf-faq-next {
    display: grid;
    grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr);
    gap: 50px;
    margin-top: 34px;
    padding: 34px;
    border-radius: 4px;
    background: var(--mhmf-shop-sand);
}

.mhmf-faq-next h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -.04em;
    line-height: 1;
}

.mhmf-faq-next p {
    margin: 0;
    color: var(--mhmf-shop-text);
    font-size: 12px;
    line-height: 1.7;
}

.mhmf-faq-next a {
    color: var(--mhmf-shop-ink);
    font-weight: 700;
    text-underline-offset: 3px;
}

@media (max-width: 1000px) {
    .mhmf-category-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body:not(.home) .mhmf-site-header {
        height: 92px;
    }

    .mhmf-catalog-hero,
    .mhmf-category-heading,
    .mhmf-faq-hero,
    .mhmf-faq-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mhmf-faq-next {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px;
    }

    .mhmf-related-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mhmf-related-categories__links {
        justify-content: flex-start;
    }

    .mhmf-category-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap-block: 34px;
    }

    .single-product div.product {
        grid-template-columns: 1fr;
    }

    .single-product div.product .woocommerce-product-gallery {
        position: static;
    }

    .single-product div.product .summary {
        padding-left: 0;
    }

    .single-product .mhmf-product-story__row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .single-product .mhmf-product-story__row.is-reversed .mhmf-product-story__copy {
        order: initial;
    }

    .single-product div.product .related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .mhmf-service-catalog,
    .single-product .mhmf-store-shell .content-area,
    .mhmf-faq-page {
        width: min(100% - 28px, 1170px);
    }

    .mhmf-catalog-hero {
        padding: 30px 0 24px;
    }

    .mhmf-catalog-hero h1,
    .mhmf-faq-hero h1 {
        font-size: 42px;
    }

    .mhmf-category-nav {
        padding-bottom: 34px;
    }

    .mhmf-category-products {
        grid-template-columns: 1fr;
    }

    .mhmf-service-card h3 {
        font-size: 18px;
    }

    .mhmf-service-card__body > p {
        font-size: 11px;
    }

    .mhmf-service-card__footer strong {
        font-size: 14px;
    }

    .single-product div.product {
        gap: 22px;
        padding-top: 16px;
    }

    .single-product div.product .product_title {
        font-size: 36px;
    }

    .single-product .mhmf-product-story__visual,
    .single-product .mhmf-product-story__visual img {
        min-height: 280px;
    }

    .single-product .mhmf-product-specs {
        grid-template-columns: 1fr;
    }

    .single-product .mhmf-product-faq-section {
        margin-right: -14px;
        margin-left: -14px;
        padding: 28px 14px 34px;
    }

    .single-product div.product .related.products ul.products {
        grid-template-columns: 1fr;
    }

    .mhmf-faq-page {
        padding-top: 26px;
    }
}

/* Product gallery: maximum three images, no zoom, stacked desktop presentation and swipeable mobile slideshow. */
.single-product div.product .woocommerce-product-gallery {
    overflow: visible;
    background: transparent;
}

.single-product .woocommerce-product-gallery__trigger,
.single-product .woocommerce-product-gallery .zoomImg,
.single-product .woocommerce-product-gallery__image > a::after,
.single-product .woocommerce-product-gallery .flex-control-nav,
.single-product .woocommerce-product-gallery .flex-direction-nav {
    display: none !important;
}

.single-product .woocommerce-product-gallery .flex-viewport {
    height: auto !important;
    overflow: visible !important;
}

.single-product .woocommerce-product-gallery__wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100% !important;
    transform: none !important;
}

.single-product .woocommerce-product-gallery__image {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.single-product .woocommerce-product-gallery__image > a {
    display: block;
    pointer-events: none;
}

.single-product div.product .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

@media (min-width: 1025px) {
    .single-product div.product {
        grid-template-columns: minmax(0, var(--mhmf-gallery-column, 1fr)) minmax(0, 1fr);
    }

    .single-product div.product .woocommerce-product-gallery {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .single-product .woocommerce-product-gallery__wrapper {
        height: auto;
        min-height: 0;
        grid-template-rows: none;
    }

    .single-product div.product .woocommerce-product-gallery__image img {
        height: auto;
        aspect-ratio: 4 / 5;
    }
}

.mhmf-gallery-controls {
    display: none;
}

@media (max-width: 820px) {
    .single-product div.product .woocommerce-product-gallery {
        overflow: hidden;
    }

    .single-product .woocommerce-product-gallery .flex-viewport {
        overflow: hidden !important;
    }

    .single-product .woocommerce-product-gallery__wrapper {
        display: flex !important;
        gap: 0;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .single-product .woocommerce-product-gallery__wrapper::-webkit-scrollbar {
        display: none;
    }

    .single-product .woocommerce-product-gallery__image {
        flex: 0 0 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .single-product div.product .woocommerce-product-gallery__image img {
        aspect-ratio: 4 / 5;
    }

    .mhmf-gallery-controls {
        display: block;
        margin-top: 10px;
    }

    .mhmf-gallery-dots {
        display: flex;
        justify-content: center;
        gap: 7px;
    }

    .mhmf-gallery-dot {
        width: 7px;
        height: 7px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #c7c7c3;
    }

    .mhmf-gallery-dot.is-active {
        background: var(--mhmf-shop-ink);
    }

    .mhmf-gallery-single .mhmf-gallery-controls {
        display: none;
    }
}

/* WooCommerce category archives use the same flat catalog language as Shop. */
.tax-product_cat .mhmf-page-shell {
    width: 100%;
    max-width: none;
    padding: 118px 24px 90px;
    background: var(--mhmf-shop-white);
}

body.tax-product_cat {
    overflow-x: clip;
}

.tax-product_cat .mhmf-store-shell .content-area {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-right: 24px;
    padding-left: 24px;
}

.tax-product_cat .mhmf-page-shell > :where(.mhmf-page-title, .wp-block-post-content),
.tax-product_cat .woocommerce-products-header,
.tax-product_cat .woocommerce-notices-wrapper,
.tax-product_cat .woocommerce-result-count,
.tax-product_cat .woocommerce-ordering,
.tax-product_cat ul.products {
    width: min(1170px, 100%);
    max-width: 1170px;
    margin-right: auto !important;
    margin-left: auto !important;
}

.tax-product_cat .mhmf-page-title {
    display: none;
}

.tax-product_cat .woocommerce-products-header {
    display: grid;
    grid-template-columns: minmax(260px, .5fr) minmax(0, 1fr);
    gap: 54px;
    margin-bottom: 34px;
    padding: 38px 0 26px;
    align-items: end;
    border-bottom: 1px solid var(--mhmf-shop-line);
}

.tax-product_cat .woocommerce-products-header__title {
    margin: 0;
    color: var(--mhmf-shop-ink);
    font-family: var(--mhmf-shop-display) !important;
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: .95;
}

.tax-product_cat .term-description,
.tax-product_cat .term-description p {
    margin: 0;
    color: var(--mhmf-shop-text);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.55;
}

.tax-product_cat .woocommerce-result-count {
    float: left;
    width: auto;
    margin: 0 0 22px !important;
    color: var(--mhmf-shop-muted);
    font-size: 10px;
}

.tax-product_cat .woocommerce-ordering {
    float: right;
    width: auto;
    margin: -4px 0 22px !important;
}

.tax-product_cat .woocommerce-ordering select {
    min-height: 34px;
    padding: 5px 30px 5px 10px;
    border: 1px solid var(--mhmf-shop-line);
    border-radius: 0;
    background: #fff;
    color: var(--mhmf-shop-text);
    font-size: 10px;
}

.tax-product_cat .woocommerce ul.products,
.tax-product_cat ul.products {
    display: grid !important;
    clear: both;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 12px;
    padding: 0 !important;
}

.tax-product_cat .woocommerce ul.products::before,
.tax-product_cat .woocommerce ul.products::after {
    display: none !important;
}

body.tax-product_cat.woocommerce ul.products li.product {
    position: relative;
    display: flex;
    width: auto !important;
    min-width: 0;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 0 28px !important;
    flex-direction: column;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body.tax-product_cat.woocommerce ul.products li.product:hover {
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.tax-product_cat ul.products li.product .woocommerce-LoopProduct-link {
    position: relative;
    display: flex;
    min-width: 0;
    height: 100%;
    flex: 1 1 auto;
    flex-direction: column;
    color: var(--mhmf-shop-ink);
    text-decoration: none;
}

.tax-product_cat ul.products li.product a img {
    width: 100%;
    margin: 0 0 10px !important;
    aspect-ratio: 4 / 5;
    border-radius: 0;
    object-fit: cover;
    transition: transform .3s ease;
}

.tax-product_cat ul.products li.product:hover a img {
    transform: scale(1.018);
}

.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
    display: block;
    margin: 0;
    padding: 0 !important;
    overflow: visible;
    color: var(--mhmf-shop-ink);
    font-family: var(--mhmf-shop-display) !important;
    font-size: 22px !important;
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.12;
    text-overflow: clip;
    white-space: normal;
    min-height: 2.24em;
}

.tax-product_cat ul.products li.product .mhmf-loop-unit {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    background: rgba(255, 255, 255, .94);
    color: var(--mhmf-shop-ink);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tax-product_cat ul.products li.product .mhmf-loop-description {
    margin: 8px 0 12px;
    min-height: 4.5em;
    color: var(--mhmf-shop-muted);
    font-size: 13px;
    line-height: 1.5;
}

.tax-product_cat ul.products li.product .price {
    display: block;
    margin: auto 0 0;
    padding: 9px 0 0 !important;
    border-top: 1px solid var(--mhmf-shop-line);
    color: var(--mhmf-shop-ink) !important;
    font-size: 12px !important;
    font-weight: 650;
    line-height: 1;
}

.tax-product_cat ul.products li.product .button {
    position: absolute;
    right: 0;
    bottom: 1px;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--mhmf-shop-ink) !important;
    font-size: 9px !important;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transform: none !important;
}

.tax-product_cat ul.products li.product .button::after {
    margin-left: 4px;
    content: "↗";
    font-size: 12px;
}

/* Titles and summaries stay complete and readable. */
.mhmf-service-card h3,
.mhmf-service-card h3 a,
.mhmf-service-card__body > p {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    -webkit-line-clamp: unset;
}

.mhmf-service-card h3 {
    min-height: 2.24em;
}

.mhmf-service-card__body > p {
    min-height: 4.5em;
}

@media (max-width: 560px) {
    .mhmf-service-card h3,
    .mhmf-service-card__body > p {
        min-height: 0;
    }
}

/* Classic Cart: functional shortcode with a flat Chroma-inspired layout. */
.woocommerce-cart .mhmf-commerce-page,
.woocommerce-checkout .mhmf-commerce-page {
    width: 100%;
    max-width: none;
    min-height: 70vh;
    padding: 118px 24px 96px;
    background: #fff;
}

.woocommerce-cart .mhmf-commerce-page > :where(.mhmf-page-title, .wp-block-post-content),
.woocommerce-checkout .mhmf-commerce-page > :where(.mhmf-page-title, .wp-block-post-content) {
    width: min(1170px, 100%);
    max-width: 1170px;
    margin-right: auto;
    margin-left: auto;
}

.woocommerce-cart .mhmf-page-title,
.woocommerce-checkout .mhmf-page-title {
    margin: 0 auto 44px;
    font-family: var(--mhmf-shop-display) !important;
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .96;
}

.woocommerce-cart .woocommerce-cart-form {
    width: 100%;
}

.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
    overflow: hidden;
    border: 1px solid var(--mhmf-shop-line) !important;
    border-collapse: collapse !important;
    border-radius: 0 !important;
    background: #fff;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 16px 14px !important;
    border-color: var(--mhmf-shop-line) !important;
}

.woocommerce-cart table.shop_table th,
.woocommerce-checkout table.shop_table th {
    color: var(--mhmf-shop-muted);
    font-size: 10px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.woocommerce-cart .product-thumbnail img {
    width: 82px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.woocommerce-cart .product-name a {
    color: var(--mhmf-shop-ink);
    font-family: var(--mhmf-shop-display);
    font-size: 18px;
    text-decoration: none;
}

.woocommerce-cart dl.variation,
.woocommerce-checkout dl.variation {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 5px 12px;
    margin: 7px 0 0 !important;
    color: var(--mhmf-shop-muted);
    font-size: 10px;
}

.wc-block-components-product-details {
    display: grid;
    gap: 5px;
    margin: 9px 0 0 !important;
    color: var(--mhmf-shop-muted);
    font-size: 10px;
}

.wc-block-components-product-details li {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    line-height: 1.4;
}

/* WooCommerce 10 renders mini-cart item data as direct spans instead of list items. */
.wc-block-components-product-details > span:not([hidden]) {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
}

.wc-block-components-product-details > span > [aria-hidden="true"] {
    display: none !important;
}

/* Legal documents: compact paragraph rhythm while keeping headings scannable. */
.mhmf-policy-page p {
    margin-top: .45rem;
    margin-bottom: .45rem;
}

.mhmf-policy-page h2 {
    margin-top: 1.35rem;
    margin-bottom: .4rem;
}

.mhmf-policy-page ul {
    margin-top: .45rem;
    margin-bottom: .65rem;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--mhmf-shop-line);
    background: var(--mhmf-shop-soft);
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0 !important;
    line-height: 1.45;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 !important;
}

.woocommerce-cart dl.variation dt,
.woocommerce-checkout dl.variation dt,
.wc-block-components-product-details__name {
    color: var(--mhmf-shop-muted);
    font-weight: 500;
}

.woocommerce-cart dl.variation dd,
.woocommerce-checkout dl.variation dd,
.wc-block-components-product-details__value {
    min-width: 0;
    color: var(--mhmf-shop-ink);
}

.woocommerce-cart dl.variation dt,
.woocommerce-cart dl.variation dd,
.woocommerce-checkout dl.variation dt,
.woocommerce-checkout dl.variation dd,
.wc-block-components-product-details li {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-cart dl.variation dd p,
.woocommerce-checkout dl.variation dd p,
.wc-block-components-product-details__name,
.wc-block-components-product-details__value {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit;
}

.woocommerce-cart .cart-collaterals {
    display: flex;
    margin-top: 28px;
    justify-content: flex-end;
}

.woocommerce-cart .cart_totals {
    float: none !important;
    width: min(100%, 480px) !important;
    padding: 26px;
    border: 1px solid var(--mhmf-shop-line);
    background: var(--mhmf-shop-soft);
}

.woocommerce-cart .cart_totals h2 {
    margin: 0 0 20px;
    font-family: var(--mhmf-shop-display) !important;
    font-size: 32px;
    font-weight: 400;
}

.woocommerce-cart .wc-proceed-to-checkout {
    padding: 16px 0 0;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    align-items: center;
    justify-content: center;
    font-size: 13px !important;
    line-height: 22px !important;
}

.woocommerce-cart .quantity .qty {
    width: 76px;
    min-height: 42px;
    border: 1px solid var(--mhmf-shop-line);
    border-radius: 0;
}

.woocommerce-cart .coupon {
    display: flex;
    gap: 8px;
}

.woocommerce-cart .coupon .input-text {
    width: 180px !important;
    min-height: 44px;
    border: 1px solid var(--mhmf-shop-line) !important;
    border-radius: 0 !important;
}

.woocommerce-cart .cart-empty {
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid var(--mhmf-shop-line);
    background: var(--mhmf-shop-soft);
}

/* Mini-cart: remove the repeated long product description and keep configuration compact. */
.wc-block-mini-cart__drawer .wc-block-components-product-metadata__description {
    display: none;
}

.wc-block-mini-cart__drawer .wc-block-components-product-name {
    font-family: var(--mhmf-shop-display);
    font-size: 18px;
    line-height: 1.15;
}

/* Advanced service generators */
.single-product .mhmf-generator {
    margin: 30px 0 0;
    padding: 0;
    border-top: 1px solid var(--mhmf-shop-line);
    color: var(--mhmf-shop-text);
}

.mhmf-generator__header {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: flex-end;
    padding: 24px 0 18px;
}

.mhmf-generator__header span,
.mhmf-generator-summary > span {
    display: block;
    margin-bottom: 5px;
    color: var(--mhmf-shop-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.mhmf-generator__header h2,
.mhmf-generator-summary h3 {
    margin: 0;
    color: var(--mhmf-shop-ink);
    font-family: var(--mhmf-shop-display) !important;
    font-weight: 400;
}

.mhmf-generator__header h2 { font-size: clamp(25px, 3vw, 36px); }
.mhmf-generator__price { min-width: 150px; text-align: right; }
.mhmf-generator__price small { display: block; color: var(--mhmf-shop-muted); font-size: 10px; text-transform: uppercase; }
.mhmf-generator__price strong { color: var(--mhmf-shop-ink); font-family: var(--mhmf-shop-display); font-size: 27px; font-weight: 400; }
.mhmf-generator__intro { max-width: 760px; margin: 0 0 28px; font-size: 13px; line-height: 1.55; }

.mhmf-generator__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 34px;
    align-items: start;
}

.mhmf-generator__fields { display: grid; gap: 14px; }
.mhmf-generator-group { padding: 20px; border: 1px solid var(--mhmf-shop-line); background: var(--mhmf-shop-white); }
.mhmf-generator-group__heading { display: flex; gap: 13px; margin-bottom: 18px; }
.mhmf-generator-group__heading > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: var(--mhmf-shop-ink); color: #fff; font-size: 9px; font-weight: 700; }
.mhmf-generator-group__heading h3 { margin: 1px 0 2px; font-size: 19px; }
.mhmf-generator-group__heading p { margin: 0; color: var(--mhmf-shop-muted); font-size: 11px; line-height: 1.45; }

.mhmf-generator-field { min-width: 0; margin: 0; padding: 0 0 18px; border: 0; }
.mhmf-generator-field:last-child { padding-bottom: 0; }
.mhmf-generator-field + .mhmf-generator-field { padding-top: 18px; border-top: 1px solid var(--mhmf-shop-line); }
.mhmf-generator-field legend { width: 100%; margin: 0 0 8px; padding: 0; color: var(--mhmf-shop-ink); font-size: 12px; font-weight: 700; }
.mhmf-generator-field legend em { color: #e54242; font-style: normal; }
.mhmf-generator-field__help { margin: -3px 0 10px; color: var(--mhmf-shop-muted); font-size: 10px; line-height: 1.45; }
.mhmf-generator-field select,
.mhmf-generator-field input[type="number"],
.mhmf-generator-field input[type="text"],
.mhmf-generator-field textarea {
    width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--mhmf-shop-line); border-radius: 0; background: #fff; color: var(--mhmf-shop-ink); font-size: 12px;
}
.mhmf-generator-field textarea { resize: vertical; }
.mhmf-generator-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mhmf-generator-option { position: relative; display: block; margin: 0; cursor: pointer; }
.mhmf-generator-option > input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mhmf-generator-option > span { display: flex; min-height: 78px; height: 100%; flex-direction: column; justify-content: center; padding: 12px 14px; border: 1px solid var(--mhmf-shop-line); background: var(--mhmf-shop-soft); transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.mhmf-generator-option:hover > span { border-color: var(--mhmf-shop-ink); transform: translateY(-1px); }
.mhmf-generator-option > input:checked + span { border-color: var(--mhmf-shop-ink); background: var(--mhmf-shop-warm); box-shadow: inset 3px 0 0 var(--mhmf-shop-ink); }
.mhmf-generator-option strong { color: var(--mhmf-shop-ink); font-size: 11px; line-height: 1.3; }
.mhmf-generator-option small { margin-top: 4px; color: var(--mhmf-shop-muted); font-size: 9px; line-height: 1.35; }
.mhmf-generator-option__price { margin-top: 7px; color: var(--mhmf-shop-text); font-size: 9px; font-weight: 600; }

.mhmf-generator-docx { padding: 18px; border: 1px solid var(--mhmf-shop-line); background: var(--mhmf-shop-warm); }
.mhmf-generator-summary { position: sticky; top: 128px; padding: 19px; border: 1px solid var(--mhmf-shop-line); background: var(--mhmf-shop-soft); }
.mhmf-generator-summary h3 { font-size: 22px; }
.mhmf-generator-summary__choices,
.mhmf-generator-summary__breakdown ul { margin: 16px 0; padding: 0; list-style: none; }
.mhmf-generator-summary li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--mhmf-shop-line); font-size: 9px; line-height: 1.35; }
.mhmf-generator-summary li span { color: var(--mhmf-shop-muted); }
.mhmf-generator-summary li strong { max-width: 125px; color: var(--mhmf-shop-ink); text-align: right; }
.mhmf-generator-summary__breakdown > strong { display: block; padding-top: 13px; border-top: 1px solid var(--mhmf-shop-ink); color: var(--mhmf-shop-ink); font-size: 10px; text-transform: uppercase; }
.mhmf-generator-summary > p { margin: 18px 0 0; color: var(--mhmf-shop-muted); font-size: 9px; line-height: 1.45; }
.mhmf-generator .mhmf-trust-row { margin-top: 16px; }

@media (max-width: 820px) {
    .mhmf-generator__layout { grid-template-columns: 1fr; }
    .mhmf-generator-summary { position: static; }
}

@media (max-width: 520px) {
    .mhmf-generator__header { align-items: flex-start; flex-direction: column; gap: 10px; }
    .mhmf-generator__price { text-align: left; }
    .mhmf-generator-options { grid-template-columns: 1fr; }
    .mhmf-generator-group { padding: 16px; }
}

@media (max-width: 980px) {
    .tax-product_cat .woocommerce ul.products,
    .tax-product_cat ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .tax-product_cat .woocommerce-products-header {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tax-product_cat .woocommerce ul.products,
    .tax-product_cat ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce-cart table.shop_table_responsive tr td {
        padding: 13px 10px !important;
    }
}

@media (max-width: 520px) {
    .tax-product_cat .mhmf-page-shell,
    .woocommerce-cart .mhmf-commerce-page,
    .woocommerce-checkout .mhmf-commerce-page {
        padding: 94px 14px 70px;
    }

    .tax-product_cat .woocommerce ul.products,
    .tax-product_cat ul.products {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .tax-product_cat ul.products li.product .woocommerce-loop-product__title {
        font-size: 18px !important;
    }

    .tax-product_cat ul.products li.product .mhmf-loop-description {
        font-size: 12px;
        line-height: 1.5;
    }

    .tax-product_cat .woocommerce-products-header {
        padding-top: 20px;
    }

    .tax-product_cat .mhmf-store-shell .content-area {
        padding-right: 14px;
        padding-left: 14px;
    }

    .tax-product_cat .woocommerce-products-header__title {
        font-size: 42px;
    }

    .tax-product_cat .woocommerce-result-count,
    .tax-product_cat .woocommerce-ordering {
        float: none;
        width: 100%;
        margin: 0 0 12px !important;
    }

    .tax-product_cat .woocommerce-ordering select {
        width: 100%;
    }

    .woocommerce-cart .coupon {
        flex-direction: column;
    }

    .woocommerce-cart .coupon .input-text {
        width: 100% !important;
    }
}

/* Final responsive catalog alignment and estimator behavior. */
.tax-product_cat .mhmf-page-shell {
    padding: 112px 0 90px;
}

.tax-product_cat .mhmf-store-shell .content-area {
    padding-right: 24px;
    padding-left: 24px;
}

.tax-product_cat .woocommerce-breadcrumb,
.tax-product_cat .woocommerce-products-header,
.tax-product_cat .mhmf-category-toolbar,
.tax-product_cat ul.products {
    box-sizing: border-box;
    width: min(1170px, 100%);
    max-width: 1170px;
    margin-right: auto !important;
    margin-left: auto !important;
}

.tax-product_cat .woocommerce-breadcrumb {
    margin-top: 0 !important;
    padding-top: 18px;
}

.tax-product_cat .woocommerce-products-header {
    margin-top: 0;
    margin-bottom: 24px;
    padding-top: 28px;
    padding-bottom: 24px;
}

.tax-product_cat .mhmf-category-toolbar {
    display: flex;
    min-height: 42px;
    margin-bottom: 22px !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tax-product_cat .mhmf-category-toolbar .woocommerce-result-count,
.tax-product_cat .mhmf-category-toolbar .woocommerce-ordering {
    float: none;
    width: auto;
    margin: 0 !important;
}

.single-product div.product .summary,
.single-product .mhmf-generator,
.single-product .mhmf-generator__layout {
    min-width: 0;
}

@media (min-width: 1181px) {
    .mhmf-generator-summary {
        top: 40vh;
        max-height: calc(50vh - 28px);
        overflow: auto;
        overscroll-behavior: contain;
    }
}

@media (min-width: 821px) and (max-width: 1180px) {
    .mhmf-generator__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .mhmf-generator-summary {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .mhmf-generator__header {
        gap: 18px;
    }

    .mhmf-generator__header h2 {
        font-size: clamp(24px, 3vw, 31px);
    }
}

@media (min-width: 1025px) {
    body {
        zoom: 1.25;
    }

    .wc-block-components-drawer__screen-overlay:has(.wc-block-mini-cart__drawer) {
        zoom: 0.8 !important;
    }
}

@media (max-width: 520px) {
    .tax-product_cat .mhmf-page-shell {
        padding: 94px 0 70px;
    }

    .tax-product_cat .mhmf-category-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .tax-product_cat .mhmf-category-toolbar .woocommerce-ordering,
    .tax-product_cat .mhmf-category-toolbar .woocommerce-ordering select {
        width: 100%;
    }

    .tax-product_cat ul.products li.product .woocommerce-loop-product__title,
    .tax-product_cat ul.products li.product .mhmf-loop-description {
        min-height: 0;
    }
}

@media (max-width: 820px) {
    .mhmf-category-nav {
        padding: 10px 0 8px;
    }

    .mhmf-category-section {
        padding-top: 8px;
        padding-bottom: 36px;
    }

    .mhmf-category-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 12px;
        margin-bottom: 8px;
    }

    .mhmf-category-heading > div {
        grid-column: 1;
        grid-row: 1;
    }

    .mhmf-category-heading > p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .mhmf-category-heading__link {
        grid-column: 2;
        grid-row: 1;
    }

}

/* PRODUCT REVIEWS — no avatars, full-width review box */

.single-product
.mhmf-product-reviews-section
#reviews
#comments
ol.commentlist {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.single-product
.mhmf-product-reviews-section
#reviews
#comments
ol.commentlist > li {
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
}

.single-product
.mhmf-product-reviews-section
#reviews
#comments
.comment_container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product
.mhmf-product-reviews-section
#reviews
#comments
.comment_container > img.avatar {
    display: none !important;
}

.single-product
.mhmf-product-reviews-section
#reviews
#comments
.comment_container > .comment-text {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Marketing HMF — Order received */
body.woocommerce-order-received .mhmf-commerce-page {
    width: 100%;
    max-width: none;
    padding: 150px 24px 100px;
    background: #fff;
}

body.woocommerce-order-received .mhmf-commerce-page > * {
    width: min(1170px, 100%);
    margin-inline: auto;
}

body.woocommerce-order-received .mhmf-page-title {
    margin: 0 auto 48px;
    color: #171714;
    font-family: "Questrial", Arial, sans-serif !important;
    font-size: clamp(52px, 6.5vw, 84px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .95;
}

body.woocommerce-order-received .wp-block-post-content > .woocommerce {
    color: #54544f;
    font-family: "Inter", Arial, sans-serif;
}

body.woocommerce-order-received
.wp-block-woocommerce-order-confirmation-status {
    margin: 0 0 38px;
    padding: 28px 32px;
    border: 1px solid #171714;
    background: #f3f1ea;
    color: #171714;
    font-family: "Questrial", Arial, sans-serif !important;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.1;
}

body.woocommerce-order-received
.wp-block-woocommerce-order-confirmation-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 56px;
    padding: 0;
    border-top: 1px solid #171714;
    border-bottom: 1px solid #deddd6;
}

body.woocommerce-order-received
.wp-block-woocommerce-order-confirmation-summary > * {
    min-width: 0;
    margin: 0 !important;
    padding: 18px 20px 20px !important;
    border-right: 1px solid #deddd6;
}

body.woocommerce-order-received
.wp-block-woocommerce-order-confirmation-summary > :first-child {
    padding-left: 0 !important;
}

body.woocommerce-order-received
.wp-block-woocommerce-order-confirmation-summary > :last-child {
    padding-right: 0 !important;
    border-right: 0;
}

body.woocommerce-order-received
.wp-block-woocommerce-order-confirmation-summary strong {
    display: block;
    margin-bottom: 5px;
    color: #777771;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.woocommerce-order-received :is(
    .wp-block-woocommerce-order-confirmation-totals-wrapper,
    .wp-block-woocommerce-order-confirmation-billing-address,
    .wp-block-woocommerce-order-confirmation-shipping-address,
    .wp-block-woocommerce-order-confirmation-additional-fields
) {
    margin: 0 0 24px;
    padding: 32px;
    border: 1px solid #deddd6;
    background: #f8f7f3;
}

body.woocommerce-order-received :is(
    .wp-block-woocommerce-order-confirmation-totals-wrapper,
    .wp-block-woocommerce-order-confirmation-billing-address,
    .wp-block-woocommerce-order-confirmation-shipping-address
) h2 {
    margin: 0 0 24px;
    color: #171714;
    font-family: "Questrial", Arial, sans-serif !important;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 400;
    letter-spacing: -.035em;
}

body.woocommerce-order-received
.wc-block-order-confirmation-totals__table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: transparent;
}

body.woocommerce-order-received
.wc-block-order-confirmation-totals__table :is(th, td) {
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid #deddd6;
    background: transparent;
    color: #54544f;
    font-size: 14px;
    line-height: 1.55;
    vertical-align: top;
}

body.woocommerce-order-received
.wc-block-order-confirmation-totals__table :is(th, td):last-child {
    text-align: right;
}

body.woocommerce-order-received
.wc-block-order-confirmation-totals__product a {
    color: #171714;
    font-weight: 700;
    text-underline-offset: 4px;
}

body.woocommerce-order-received
.wc-block-components-product-details {
    display: grid;
    gap: 4px;
    margin: 12px 0 0;
    color: #777771;
    font-size: 12px;
}

body.woocommerce-order-received
.wc-block-components-product-details li {
    margin: 0;
}

body.woocommerce-order-received
.wp-block-woocommerce-order-confirmation-billing-address,
body.woocommerce-order-received
.wp-block-woocommerce-order-confirmation-shipping-address {
    display: inline-block;
    width: calc(50% - 14px);
    min-height: 210px;
    margin-right: 24px;
    vertical-align: top;
}

@media (max-width: 900px) {
    body.woocommerce-order-received
    .wp-block-woocommerce-order-confirmation-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.woocommerce-order-received .mhmf-commerce-page {
        padding: 105px 18px 72px;
    }

    body.woocommerce-order-received .mhmf-page-title {
        margin-bottom: 30px;
        font-size: clamp(44px, 15vw, 62px);
    }

    body.woocommerce-order-received
    .wp-block-woocommerce-order-confirmation-summary {
        grid-template-columns: 1fr;
        margin-bottom: 36px;
    }

    body.woocommerce-order-received
    .wp-block-woocommerce-order-confirmation-summary > * {
        padding: 14px 0 16px !important;
        border-right: 0;
        border-bottom: 1px solid #deddd6;
    }

    body.woocommerce-order-received :is(
        .wp-block-woocommerce-order-confirmation-totals-wrapper,
        .wp-block-woocommerce-order-confirmation-billing-address,
        .wp-block-woocommerce-order-confirmation-shipping-address
    ) {
        padding: 22px 18px;
    }

    body.woocommerce-order-received
    .wp-block-woocommerce-order-confirmation-billing-address,
    body.woocommerce-order-received
    .wp-block-woocommerce-order-confirmation-shipping-address {
        display: block;
        width: 100%;
        min-height: 0;
        margin-right: 0;
    }
}


/* A verified DOCX owns the material type and scope. */
.single-product .mhmf-generator-group.is-docx-locked {
    opacity: .48;
    filter: grayscale(.75);
    cursor: not-allowed;
    transition: opacity .18s ease, filter .18s ease;
}

.single-product .mhmf-generator-group.is-docx-locked :is(
    input,
    select,
    textarea,
    label,
    .mhmf-generator-option
) {
    cursor: not-allowed !important;
}


/* Stable DOCX filename row and removable local source file. */
.single-product .mhmf-generator-docx,
.single-product .mhmf-generator-docx .mhmf-docx-drop,
.single-product .mhmf-generator-docx .mhmf-file-picker {
    min-width: 0;
    max-width: 100%;
}

.single-product .mhmf-generator-docx .mhmf-file-picker {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    width: 100%;
}

.single-product .mhmf-generator-docx .mhmf-file-name-display {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-product .mhmf-generator-remove-file {
    display: inline-flex;
    width: max-content;
    min-height: 34px;
    margin: 10px 0 0;
    padding: 7px 13px;
    align-items: center;
    justify-content: center;
    border: 1px solid #b9b8b0;
    border-radius: 999px;
    background: transparent;
    color: var(--mhmf-shop-ink);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.single-product .mhmf-generator-remove-file:hover,
.single-product .mhmf-generator-remove-file:focus-visible {
    border-color: #a22038;
    color: #a22038;
}

.single-product .mhmf-generator-remove-file[hidden] {
    display: none !important;
}

@media (max-width: 580px) {
    .single-product .mhmf-generator-docx .mhmf-file-picker {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Cart and checkout headers always use the neutral store surface. */
body.woocommerce-cart .mhmf-site-header,
body.woocommerce-cart .mhmf-header-wrap,
body.woocommerce-checkout .mhmf-site-header,
body.woocommerce-checkout .mhmf-header-wrap {
    background-color: #efeee9 !important;
    background-image: none !important;
}
