.mmh-catalog, .mmh-catalog-detail { padding-block-start: clamp(30px, 5vw, 72px); }
.catalog-search { display: flex; gap: .85rem; align-items: end; flex-wrap: wrap; margin: 2rem 0; }
.catalog-search > div:first-child { flex: 0 1 24rem; }
.catalog-search label { display: block; font-weight: 600; margin-bottom: .35rem; }
.catalog-search input, .catalog-search select { padding: .68rem .8rem; border: 1px solid var(--rule); border-radius: .34rem; color: var(--warm); background: var(--night); font: inherit; min-height: 46px; max-width: 100%; }
.catalog-search input { width: min(24rem, 100%); }
.catalog-search .mmh-button { font-size: 1rem; min-height: 46px; }
.catalog-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 2vw, 2.25rem); list-style: none; padding: 0; margin: 2.25rem 0 0; }
.catalog-card { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.catalog-card-link { display: block; color: inherit; text-decoration: none; border-radius: .4rem; }
.catalog-art { display: grid; place-items: center; overflow: hidden; aspect-ratio: 3 / 2; background: var(--section); border: 1px solid var(--section-line); border-radius: .5rem; }
.catalog-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.catalog-card h2 { font-size: clamp(1.35rem, 1.65vw, 1.8rem); letter-spacing: -.035em; line-height: 1.15; margin: .8em 0 .35em; }
.catalog-card-link:hover h2, .catalog-card-link:focus-visible h2 { text-decoration: underline; text-underline-offset: .17em; }
.catalog-card-link:hover .catalog-art, .catalog-card-link:focus-visible .catalog-art { border-color: var(--accent-text); }
.catalog-summary { color: var(--muted); line-height: 1.5; margin: 0 0 1.2rem; }
.catalog-card-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem .9rem; border-top: 1px solid var(--section-line); margin-top: auto; padding-top: .65rem; }
.catalog-price { font-weight: 680; }
.catalog-free-edition { color: var(--muted); font-size: .85rem; text-underline-offset: .18em; }
.catalog-price small, .catalog-buy small { font-weight: 400; color: var(--muted); }
.catalog-buy { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; margin: 1.5rem 0; }
.catalog-buy p { margin: 0; }
.catalog-buy strong { font-size: 1.6rem; }
.catalog-buy .mmh-button { font-size: 1.05rem; }
.catalog-product-hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 4.2vw, 5rem); margin-block: clamp(1.25rem, 3vw, 3rem); }
.catalog-product-intro h1 { font-size: clamp(2.1rem, 3.55vw, 4.3rem); overflow-wrap: anywhere; }
.catalog-product-intro .mmh-lead { font-size: clamp(1.08rem, 1.45vw, 1.55rem); }
.mmh-catalog-detail .mmh-prose { border-top: 1px solid var(--section-line); padding-block-start: 2rem; overflow-wrap: anywhere; }
.mmh-catalog-detail .mmh-prose table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; }
.mmh-catalog-detail .mmh-prose th, .mmh-catalog-detail .mmh-prose td { padding: .4rem .6rem; border: 1px solid var(--rule); }
.comgate-product-more { border-top: 1px solid var(--section-line); display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; margin: clamp(2rem, 4vw, 4rem) 0; padding-top: clamp(1.4rem, 3vw, 3rem); }
.comgate-product-more .mmh-product-notes { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 0; padding: 0; border: 0; }
.plugin-gallery { min-width: 0; }
.gallery-header, .gallery-viewer header, .gallery-viewer-footer, .gallery-arrows { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.gallery-header { margin-bottom: .6rem; }
.gallery-header h2 { margin: 0; font-size: 1.13rem; line-height: 1.3; letter-spacing: -.02em; }
.gallery-counter { font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.gallery-current { margin: 0; }
.gallery-stage { position: relative; display: grid; place-items: center; overflow: hidden; width: 100%; aspect-ratio: 3 / 2; padding: clamp(.6rem, 1.4vw, 1.6rem); border: 1px solid var(--section-line); border-radius: .5rem; background: var(--section); cursor: zoom-in; }
.gallery-stage > img { width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: contain; }
.gallery-expand-label { position: absolute; display: flex; gap: .38em; align-items: center; right: .6rem; bottom: .6rem; border: 1px solid #d7e0db; border-radius: .28rem; padding: .28rem .52rem; background: #fbfaf5; color: #173134; font-size: .78rem; line-height: 1.4; font-weight: 650; box-shadow: 0 1px 4px #00151824; }
.gallery-expand-label span { font-size: 1.25em; }
.gallery-current figcaption { margin-top: .48rem; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.gallery-thumbs { display: flex; gap: .55rem; overflow-x: auto; overscroll-behavior-x: contain; padding: .35rem .2rem .52rem; margin: .4rem -.2rem 0; scrollbar-width: thin; }
.gallery-thumb { display: grid; flex: 0 0 clamp(65px, 7vw, 108px); place-items: center; aspect-ratio: 3 / 2; border: 2px solid var(--section-line); border-radius: .26rem; overflow: hidden; background: var(--section); }
.gallery-thumb img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-thumb:hover, .gallery-thumb[aria-current] { border-color: var(--accent-text); }
.gallery-thumb[aria-current] { outline: 1px solid var(--accent-text); outline-offset: 1px; }
.gallery-thumb:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.gallery-viewer { padding: 0; width: min(1240px, calc(100vw - 2rem)); max-width: none; max-height: 94vh; max-height: 94dvh; border: 1px solid var(--section-line); border-radius: .55rem; background: var(--night); color: var(--warm); }
.gallery-viewer::backdrop { background: #001115d9; }
html:has(.gallery-viewer[open]) { overflow: hidden; }
.gallery-viewer-body { display: grid; gap: .75rem; padding: clamp(.6rem, 1.4vw, 1.25rem); }
.gallery-viewer header > span { font-weight: 650; }
.gallery-viewer header form { flex-shrink: 0; }
.gallery-viewer button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--warm); font-size: 1.4rem; line-height: 1; }
.gallery-viewer button:hover { color: var(--accent-text); border-color: var(--accent-text); }
.gallery-full-image { width: 100%; height: min(66vh, 48rem); height: min(66dvh, 48rem); object-fit: contain; background: var(--section); border-radius: .25rem; }
.gallery-viewer-footer { flex-wrap: wrap; }
.gallery-viewer-footer > div:first-child { flex: 1 1 15rem; }
.gallery-viewer-footer p { margin: 0; font-weight: 550; }
.gallery-viewer-footer a { font-size: .88rem; color: var(--muted); text-underline-offset: .18em; }
@media (max-width: 900px) {
    .catalog-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .catalog-product-hero, .comgate-product-more { grid-template-columns: minmax(0, 1fr); }
    .catalog-product-hero { gap: 1.15rem; }
}
@media (max-width: 600px) {
    .catalog-items { grid-template-columns: minmax(0, 1fr); }
    .catalog-search > div:first-child { flex-basis: 100%; }
    .catalog-search input { width: 100%; }
    .gallery-viewer { width: calc(100vw - .65rem); }
    .gallery-full-image { max-height: 54vh; max-height: 54dvh; }
}
