/* Catalog and product detail redesign. All database content and public handlers remain shared. */
body.public-site .mm-catalog,
body.public-site .mm-product {
    color: var(--mm-ink, #2a3a7e);
    background: #fff;
}
body.public-site .mm-shop-intro { padding: 40px 0 44px; background: linear-gradient(180deg, #eff3fd 0%, #fff 100%); }
body.public-site .mm-shop-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 25px;
    color: var(--mm-muted, #6b7699);
    font-size: 13px;
    line-height: 1.5;
}
body.public-site .mm-shop-breadcrumb a { color: inherit; text-decoration: none; }
body.public-site .mm-shop-breadcrumb a:hover { color: var(--mm-blue, #3757a6); }
body.public-site .mm-shop-breadcrumb > span { color: var(--mm-ink, #2a3a7e); }
body.public-site .mm-shop-breadcrumb svg { flex: 0 0 13px; width: 13px; height: 13px; opacity: .55; }
body.public-site .mm-shop-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
body.public-site .mm-shop-heading h1,
body.public-site .mm-product-page-title {
    margin: 0;
    color: var(--mm-ink, #2a3a7e);
    font-size: clamp(34px, 4.3vw, 58px);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1.12;
}
body.public-site .mm-shop-heading-mark { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex: 0 0 64px; border: 1px solid #c1cce2; border-radius: 50%; }
body.public-site .mm-shop-heading-mark svg { width: 28px; height: 28px; stroke-width: 1.4; }
body.public-site .mm-category-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
body.public-site .mm-category-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 200px;
    padding: 24px;
    color: var(--mm-ink, #2a3a7e);
    background: #eff3fd;
    border: 1px solid #dce3f3;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
body.public-site .mm-category-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #eff3fd 0%, rgb(239 243 253 / 90%) 30%, rgb(239 243 253 / 0%) 90%); }
body.public-site .mm-category-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
body.public-site .mm-category-card-title { width: 100%; font-weight: 600; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.3; letter-spacing: -.02em; overflow-wrap: normal; word-break: normal; }
body.public-site .mm-category-card-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: fit-content; font-size: 13px; font-weight: 500; line-height: 1.5; }
body.public-site .mm-category-card-link svg { width: 19px; height: 19px; }
body.public-site .mm-category-card:is(:hover, :focus-visible),
body.public-site .mm-category-card.is-current { color: var(--mm-ink, #2a3a7e); border-color: #ffac6a; box-shadow: 0 8px 22px rgb(42 58 126 / 6%); }
body.public-site .mm-category-card:is(:hover, :focus-visible) > img { transform: scale(1.04); }

/* One calm filter column balances the image-led product grid. */
body.public-site .mm-catalog .shop_content { display: block; padding: 0 0 80px; }
body.public-site .mm-catalog .shop_content_wrapper { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
body.public-site .mm-catalog .shop_content_main { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; gap: 28px; min-width: 0; }
body.public-site .mm-catalog .shop_content_leftbar { display: none; width: auto; min-width: 0; margin: 0; padding: 22px; gap: 0; border: 1px solid #dce3f3; border-radius: 20px; background: #eff3fd; }
body.public-site .mm-catalog .shop_content_leftbar { scrollbar-width: thin; scrollbar-color: #c1cce2 transparent; }
body.public-site .mm-catalog .shop_content_leftbar::-webkit-scrollbar { width: 5px; }
body.public-site .mm-catalog .shop_content_leftbar::-webkit-scrollbar-track { background: transparent; }
body.public-site .mm-catalog .shop_content_leftbar::-webkit-scrollbar-thumb { background: #c1cce2; border-radius: 99px; }
body.public-site .mm-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 12px; color: var(--mm-ink, #2a3a7e); font-size: 18px; font-weight: 600; border-bottom: 1px solid #d6deef; }
body.public-site .mm-filter-heading svg { width: 18px; height: 18px; stroke-width: 1.5; }
body.public-site .mm-catalog .filter_wrapper { gap: 6px; margin: 0; padding-block: 12px; border-bottom: 1px solid #d6deef; }
body.public-site .mm-catalog .filter_wrapper_title { min-height: 34px; padding: 4px 0; color: var(--mm-ink, #2a3a7e); font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: 0; }
body.public-site .mm-catalog .filter_wrapper_title svg { width: 16px; height: 16px; flex: 0 0 16px; stroke-width: 1.5; }
body.public-site .mm-catalog .list-group-item { padding: 0; color: var(--mm-muted, #6b7699); background: transparent; font-size: 13px; line-height: 1.5; }
body.public-site .mm-catalog .filter_wrapper .list-group-item > a { display: block; min-height: 32px; padding: 7px 0; color: var(--mm-muted, #6b7699); text-decoration: none; }
body.public-site .mm-catalog .filter_wrapper .list-group-item > a[aria-current] { color: var(--mm-ink, #2a3a7e); font-weight: 600; }
body.public-site .mm-catalog .filter_wrapper .list-group-item > a:hover { color: var(--mm-blue, #3757a6); }
body.public-site .mm-catalog .form-check { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; }
body.public-site .mm-catalog .form-check-input { flex: 0 0 15px; float: none; width: 15px; height: 15px; margin: 0; accent-color: #3757a6; border-color: #a9b4d1; }
body.public-site .mm-catalog .form-check-input:checked { background-color: #3757a6; border-color: #3757a6; }
body.public-site .mm-catalog .form-check-label { flex: 1 1 auto; min-height: 34px; padding-block: 7px; color: var(--mm-muted, #6b7699); font-size: 13px; line-height: 1.5; }
body.public-site .mm-catalog .filter_clear { display: inline-flex; padding: 18px 0 0; color: var(--mm-ink, #2a3a7e); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
body.public-site .mm-catalog-search { display: flex; flex-wrap: nowrap; gap: 10px; width: 100%; padding: 7px; border: 1px solid #dce3f3; border-radius: 16px; background: #fff; }
body.public-site .mm-catalog-search > input[type="search"] { flex: 1 1 auto; width: 0; min-width: 0; min-height: 44px; margin: 0; padding: 10px 12px; border: 0; background: transparent; color: var(--mm-ink, #2a3a7e); font-size: 14px; }
body.public-site .mm-catalog-search > input::placeholder { color: var(--mm-muted, #6b7699); opacity: 1; }
body.public-site .mm-catalog-search > button { display: inline-flex; flex: 0 0 auto; justify-content: center; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 10px 18px; border: 0 !important; border-radius: 10px; color: #fff; background: var(--mm-ink, #2a3a7e); -webkit-text-fill-color: currentColor; text-decoration: none; font-size: 13px; font-weight: 500; }
body.public-site .mm-catalog-search > button svg { width: 17px; height: 17px; stroke-width: 1.7; }
body.public-site .mm-catalog-search > .filter_btn { display: inline-flex; color: var(--mm-ink, #2a3a7e); background: #eff3fd; -webkit-text-fill-color: currentColor; }
body.public-site .mm-catalog .product_list { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
body.public-site .mm-catalog .product_list_item {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: auto;
    min-height: 390px;
    aspect-ratio: 1 / 1.12;
    padding: 0;
    border: 1px solid #dce3f3;
    border-radius: 24px;
    background: #eff3fd;
    box-shadow: none;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 220ms ease, border-color 220ms ease;
}
body.public-site .mm-catalog .product_list_item::after { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(180deg, rgb(42 58 126 / 0%) 46%, rgb(42 58 126 / 55%) 77%, #2a3a7e 100%); pointer-events: none; }
body.public-site .mm-catalog .product_list_item > img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; border-radius: inherit; transition: transform 400ms ease; }
body.public-site .mm-catalog .product_list_item_info { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 20px; }
body.public-site .mm-product-category { display: inline-block; align-self: flex-start; max-width: 100%; width: fit-content; padding: 6px 11px; border: 1px solid #dce3f3; border-radius: 30px; color: #2a3a7e; background: rgb(255 255 255 / 94%); font-size: 11px; font-weight: 600; line-height: 1.5; }
body.public-site .mm-product-card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 16px; width: 100%; margin-top: auto; }
body.public-site .mm-catalog .product_list_item_info_title { display: block; margin: 0; color: #fff; font-size: clamp(21px, 2vw, 28px); font-weight: 500; line-height: 1.18; letter-spacing: -.025em; text-transform: none; -webkit-text-fill-color: currentColor; background: none; }
body.public-site .mm-product-card-arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / 40%); border-radius: 50%; color: #fff; background: rgb(255 255 255 / 6%); transition: color 220ms ease, background 220ms ease, border-color 220ms ease; }
body.public-site .mm-product-card-arrow svg { width: 20px; height: 20px; stroke-width: 1.5; }
body.public-site .mm-catalog .product_list_item:is(:hover, :focus-visible) { border-color: #a9b4d1; box-shadow: 0 16px 36px rgb(42 58 126 / 12%); }
body.public-site .mm-catalog .product_list_item:is(:hover, :focus-visible) > img { transform: scale(1.035); }
body.public-site .mm-catalog .product_list_item:is(:hover, :focus-visible) .mm-product-card-arrow { color: #2a3a7e; background: #ffac6a; border-color: #ffac6a; }
body.public-site .mm-catalog-pagination { display: flex; justify-content: center; padding-top: 12px; }
body.public-site .mm-catalog .pagination { gap: 8px; margin: 0; }
body.public-site .mm-catalog .page-link { display: flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; border: 1px solid #dce3f3; border-radius: 50% !important; color: #2a3a7e; background: #fff; font-size: 13px; box-shadow: none; }
body.public-site .mm-catalog .page-item.active .page-link { color: #fff; border-color: #2a3a7e; background: #2a3a7e; }
body.public-site .mm-shop-empty { grid-column: 1 / -1; padding: 70px 20px; border: 1px solid #dce3f3; border-radius: 24px; text-align: center; background: #eff3fd; }
body.public-site .mm-shop-empty img { margin-bottom: 24px; }
body.public-site .mm-shop-empty #noitems { margin: 0; color: #6b7699; font-size: 22px; line-height: 1.4; }

/* Product photographs become a clear stage beside the complete information. */
body.public-site .mm-product-intro { padding: 40px 0 34px; }
body.public-site .mm-product-intro .mm-shop-breadcrumb { margin-bottom: 20px; }
body.public-site .mm-product-main { display: block; padding: 0 0 80px; }
body.public-site .mm-product .product_wrapper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
body.public-site .mm-product .product_wrapper_img { display: flex; flex-direction: column; width: auto; min-width: 0; gap: 18px; }
body.public-site .mm-product .product_wrapper_img > .mm-product-image-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 520px; padding: 30px; width: 100%; border: 1px solid #dce3f3; border-radius: 28px; background: #eff3fd; overflow: hidden; }
body.public-site .mm-product .mm-product-image-stage > img { width: 100%; height: 510px; max-height: none; object-fit: contain; }
body.public-site .mm-product-zoom { position: absolute; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #dce3f3; border-radius: 50%; background: #fff; color: #2a3a7e; transition: background 200ms ease; }
body.public-site .mm-product-zoom svg { width: 19px; height: 19px; }
body.public-site .mm-product-image-stage:hover .mm-product-zoom { background: #ffac6a; }
body.public-site .mm-product-image-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
body.public-site .mm-product .gallery_btn { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 48px; padding: 10px 18px; gap: 9px; border: 1px solid #dce3f3; border-radius: 12px; color: #2a3a7e; -webkit-text-fill-color: currentColor; background: #fff; font-size: 13px; line-height: 1.4; font-weight: 600; text-decoration: none; box-shadow: none; }
body.public-site .mm-product .gallery_btn::before { display: none; }
body.public-site .mm-product .gallery_btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
body.public-site .mm-product .gallery_btn:hover { background: #eff3fd; }
body.public-site .mm-product .product_wrapper_details { display: flex; flex-direction: column; width: auto; min-width: 0; gap: 30px; }
body.public-site .mm-product .product_wrapper_details_general { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.public-site .mm-product .product_wrapper_details_general > h2 { color: #2a3a7e; font-size: 25px; line-height: 1.25; font-weight: 500; letter-spacing: -.02em; margin: 0 0 22px; }
body.public-site .mm-product .product_wrapper_details_general_stats { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #dce3f3; }
body.public-site .mm-product .product_wrapper_details_general_stats > span { display: flex; align-items: flex-start; gap: 12px; color: #6b7699; font-size: 14px; line-height: 1.6; }
body.public-site .mm-product .product_wrapper_details_general_stats svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; color: #3757a6; stroke-width: 1.5; }
body.public-site .mm-product .product_description { color: #6b7699; font-size: 15px; line-height: 1.85; }
body.public-site .mm-product .product_description p:last-child { margin-bottom: 0; }
body.public-site .mm-product-accordions { border-top: 1px solid #dce3f3; }
body.public-site .mm-product .mm-product-accordions > .collapsable { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; border: 0; border-bottom: 1px solid #dce3f3; border-radius: 0; box-shadow: none; background: none; }
body.public-site .mm-product .mm-product-accordions > .collapsable:hover { background: none; color: #2a3a7e; box-shadow: none; }
body.public-site .mm-product .collapse_button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 72px; padding: 20px 0; color: #2a3a7e; border: 0; background: none; }
body.public-site .mm-product .collapse_button .collapse_button_title,
body.public-site .mm-product .mm-product-accordions > .collapsable:hover .collapse_button_title { color: #2a3a7e; font-size: 18px; font-weight: 500; line-height: 1.4; }
body.public-site .mm-product .collapse_button > span:not(.collapse_button_title) { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #3757a6; background: #eff3fd; }
body.public-site .mm-product .collapse_button svg { width: 16px; height: 16px; stroke-width: 1.5; }
body.public-site .mm-product .collapsable_wrapper { padding: 0 0 24px; color: #6b7699; font-size: 14px; line-height: 1.75; }
body.public-site .mm-product .collapsable_wrapper > span { gap: 12px; color: #6b7699; font-size: 14px; line-height: 1.75; }
body.public-site .mm-product .collapsable_wrapper .icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; padding: 0; margin-top: 2px; color: #3757a6; background: #eff3fd; border-radius: 50%; }
body.public-site .mm-product .collapsable_wrapper .icon svg { width: 13px; height: 13px; }
body.public-site .mm-product .product_wrapper_compound_title { color: #2a3a7e; font-weight: 600; font-size: 14px; }
body.public-site .mm-product .product_wrapper_compound_item { padding-block: 10px; border-bottom: 1px solid #eff3fd; font-size: 13px; }
body.public-site .mm-product .product_wrapper_compound_item > span { font-size: inherit; color: inherit; }
body.public-site .mm-product .product_wrapper_compound_item > span:last-child { flex: 0 0 30%; text-align: right; }

@media (min-width: 1200px) {
    body.public-site .mm-catalog .shop_content_wrapper { grid-template-columns: 242px minmax(0, 1fr); grid-template-areas: "filters products"; gap: 34px; }
    body.public-site .mm-catalog .shop_content_main { grid-area: products; }
    body.public-site .mm-catalog .shop_content_leftbar { display: flex; grid-area: filters; position: sticky; top: calc(var(--header-height, 88px) + 24px); max-height: calc(100dvh - var(--header-height, 88px) - 48px); overflow-y: auto; }
    body.public-site .mm-catalog-search > .filter_btn { display: none; }
}
@media (max-width: 991px) {
    body.public-site .mm-product .product_wrapper { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    body.public-site .mm-product .product_wrapper_img > .mm-product-image-stage { min-height: 420px; }
    body.public-site .mm-product .mm-product-image-stage > img { height: 400px; }
}
@media (max-width: 767px) {
    body.public-site .mm-shop-intro { padding-top: 26px; padding-bottom: 30px; }
    body.public-site .mm-shop-breadcrumb { margin-bottom: 20px; font-size: 12px; gap: 7px; }
    body.public-site .mm-shop-heading { gap: 16px; margin-bottom: 26px; }
    body.public-site .mm-shop-heading-mark { flex-basis: 48px; width: 48px; height: 48px; }
    body.public-site .mm-shop-heading-mark svg { width: 22px; height: 22px; }
    body.public-site .mm-category-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); gap: 12px; max-width: 100%; padding-bottom: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #c1cce2 transparent; }
    body.public-site .mm-category-card { min-height: 180px; padding: 17px; border-radius: 17px; scroll-snap-align: start; }
    body.public-site .mm-category-card-title { width: 100%; max-width: 100%; font-size: 17px; }
    body.public-site .mm-category-card::after { background: linear-gradient(180deg, rgb(239 243 253 / 94%) 0%, rgb(239 243 253 / 35%) 58%, rgb(239 243 253 / 90%) 100%); }
    body.public-site .mm-category-card-link { font-size: 12px; }
    body.public-site .mm-catalog .shop_content { padding-bottom: 54px; }
    body.public-site .mm-catalog .product_list { gap: 16px; }
    body.public-site .mm-catalog .product_list_item { min-height: 340px; border-radius: 20px; aspect-ratio: 1 / 1.3; }
    body.public-site .mm-catalog .product_list_item_info { padding: 18px; }
    body.public-site .mm-catalog .product_list_item_info_title { font-size: 22px; }
    body.public-site .mm-product-card-bottom { gap: 10px; }
    body.public-site .mm-product-card-arrow { flex-basis: 34px; width: 34px; height: 34px; }
    body.public-site .mm-product-intro { padding: 26px 0; }
    body.public-site .mm-product-main { padding-bottom: 54px; }
    body.public-site .mm-product .product_wrapper_img > .mm-product-image-stage { min-height: 360px; padding: 20px; border-radius: 22px; }
    body.public-site .mm-product .mm-product-image-stage > img { height: 340px; }
    body.public-site .mm-product .product_wrapper_details { gap: 24px; }
}
@media (max-width: 575px) {
    body.public-site .mm-shop-heading h1,
    body.public-site .mm-product-page-title { font-size: 34px; letter-spacing: -.04em; }
    body.public-site .mm-shop-heading-mark { display: none; }
    body.public-site .mm-category-card { min-height: 175px; padding: 15px; }
    body.public-site .mm-category-card-title { font-size: 16px; }
    body.public-site .mm-catalog-search { flex-wrap: wrap; gap: 8px; padding: 6px; }
    body.public-site .mm-catalog-search > input[type="search"] { flex-basis: calc(100% - 52px); min-height: 42px; }
    body.public-site .mm-catalog-search > button[type="submit"] { width: 42px; min-width: 42px; min-height: 42px; padding: 9px; }
    body.public-site .mm-catalog-search > button[type="submit"] span { display: none; }
    body.public-site .mm-catalog-search > .filter_btn { width: 100%; min-height: 40px; padding: 8px 12px; justify-content: center; border-top: 1px solid #dce3f3 !important; border-radius: 8px; background: #eff3fd; }
    body.public-site .mm-catalog .product_list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    body.public-site .mm-catalog .product_list_item { min-height: 370px; aspect-ratio: 1 / 1.15; }
    body.public-site .mm-catalog .product_list_item_info_title { font-size: 24px; }
    body.public-site .mm-product-category { font-size: 11px; padding: 6px 10px; }
    body.public-site .mm-product .product_wrapper_img > .mm-product-image-stage { min-height: 310px; }
    body.public-site .mm-product .mm-product-image-stage > img { height: 290px; }
    body.public-site .mm-product-image-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    body.public-site .mm-product .gallery_btn { width: 100%; }
    body.public-site .mm-product .product_wrapper_details_general > h2 { font-size: 23px; }
    body.public-site .mm-product .product_wrapper_details_general_stats { font-size: 13px; }
    body.public-site .mm-product .collapse_button { min-height: 68px; padding-block: 18px; }
    body.public-site .mm-product .collapse_button .collapse_button_title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    body.public-site .mm-catalog *,
    body.public-site .mm-product * { transition-duration: .01ms !important; }
}
