/* Existing theme colors and typography remain authoritative. */
.mbs-catalog {
    --mbs-catalog-rule: #e5e5e5;
    --mbs-catalog-gutter: clamp(20px, 4vw, 64px);
    --mbs-catalog-brand-orange: #fd5e27;
    background: var(--base-3, #fff);
}
.mbs-catalog .site-header .inside-header {
    max-width: 1688px;
    margin-inline: auto;
    padding: 10px var(--mbs-catalog-gutter);
    min-height: 80px;
    gap: 28px;
}
.mbs-catalog .site-header .main-title { font-size: 22px; line-height: 1.15; max-width: 220px; text-align: left; }
.mbs-catalog .main-navigation .main-nav > ul > li > a { line-height: 42px; padding-inline: 14px; font-size: 14px; }
.mbs-catalog .main-navigation .menu-bar-item > a { padding-inline: 12px; }
.mbs-catalog-notice { background: var(--mbs-catalog-notice-background, #366438); color: var(--base-3, #fff); padding: 9px 20px; text-align: center; font-size: 14px; }
.mbs-catalog-notice p { margin: 0; }
.mbs-catalog-notice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mbs-catalog-hero { position: relative; display: flex; align-items: flex-end; min-height: 330px; overflow: hidden; color: var(--base-3, #fff); background: var(--contrast, #222); }
.mbs-catalog-hero > .wp-block-group__inner-container { display: flex; align-items: flex-end; width: 100%; min-height: inherit; max-width: none; }
.mbs-catalog-hero-image { position: absolute; inset: 0; margin: 0; }
.mbs-catalog-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mbs-catalog-hero-image img { user-select: none; -webkit-user-drag: none; }
.mbs-catalog-hero-copy { position: relative; width: 100%; padding: 48px var(--mbs-catalog-gutter); background: linear-gradient(0deg, rgba(0,0,0,.68), rgba(0,0,0,.1)); }
.mbs-catalog-hero .woocommerce-breadcrumb { margin: 0 0 22px; color: inherit; font-size: 13px; }
.mbs-catalog-hero .woocommerce-breadcrumb a { color: inherit; text-decoration: none; }
.mbs-catalog-hero-title { color: inherit; font-size: clamp(30px, 3vw, 42px); font-weight: 600; line-height: 1.18; margin: 0; }
.mbs-catalog-hero-description { margin: 12px 0 0; max-width: 720px; font-size: 15px; line-height: 1.6; color: inherit; }
.mbs-catalog-hero-description:empty { display: none; }
.mbs-catalog #page { max-width: 1688px; margin-inline: auto; padding: 46px var(--mbs-catalog-gutter) 72px; }
.mbs-catalog #content { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 50px; row-gap: 26px; align-items: start; padding: 0; }
.mbs-catalog #primary { grid-column: 2; grid-row: 2; width: 100%; min-width: 0; }
.mbs-catalog #main { margin: 0; }
.mbs-catalog .woocommerce-archive-wrapper .inside-article { padding: 0; background: transparent; }
.mbs-catalog .entry-content { margin: 0; }
.mbs-catalog #left-sidebar { grid-column: 1; grid-row: 2; width: 100%; }
.mbs-catalog #left-sidebar .inside-left-sidebar { margin: 0; }
.mbs-catalog #left-sidebar .widget { padding: 0; background: transparent; }
.mbs-catalog-toolbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; min-width: 0; }
.mbs-catalog-toolbar button { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--contrast, #222); border: 1px solid var(--mbs-catalog-rule); min-height: 38px; padding: 7px 14px; border-radius: 999px; font-size: 14px; line-height: 1; }
.mbs-catalog-toolbar .mbs-catalog-filter-toggle { gap: 8px; font-weight: 600; }
.mbs-catalog-toolbar button[hidden] { display: none; }
.mbs-catalog-toolbar .woocommerce-result-count { margin: 0; font-size: 14px; line-height: 1.5; }
.mbs-catalog-ordering { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 14px; }
.mbs-catalog-toolbar .woocommerce-ordering { margin: 0; }
.mbs-catalog-toolbar .woocommerce-ordering::after { display: none; }
.mbs-catalog-toolbar select { border: 1px solid var(--mbs-catalog-rule); border-radius: 999px; min-height: 38px; max-width: 205px; background-color: var(--base-3, #fff); color: var(--contrast, #222); font-size: 14px; padding: 6px 32px 6px 14px; }
.mbs-catalog-view { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.mbs-catalog-toolbar > .woocommerce-result-count + .mbs-catalog-view,
.mbs-catalog-toolbar > .mbs-catalog-filter-toggle + .mbs-catalog-view { margin-left: auto; }
.mbs-catalog-view > span { margin-right: 2px; white-space: nowrap; }
.mbs-catalog-view button { width: 38px; height: 38px; padding: 7px; }
.mbs-catalog-view button svg { width: 18px; height: 18px; }
.mbs-catalog-view button[aria-pressed="true"] { background: var(--accent, #000); color: var(--base-3, #fff); border-color: var(--accent, #000); }
.mbs-catalog button:focus-visible, .mbs-catalog a:focus-visible, .mbs-catalog select:focus-visible { outline: 2px solid var(--contrast, #222); outline-offset: 4px; }
.mbs-catalog #content[data-mbs-filters-hidden="true"] { grid-template-columns: minmax(0, 1fr); }
.mbs-catalog #content[data-mbs-filters-hidden="true"] #left-sidebar { display: none; }
.mbs-catalog #content[data-mbs-filters-hidden="true"] #primary { grid-column: 1; }
.mbs-catalog ul.products { display: grid; grid-template-columns: repeat(var(--mbs-columns, 3), minmax(0, 1fr)); gap: calc(var(--mbs-gap, 28px) + 12px) var(--mbs-gap, 28px); margin: 0; padding: 0; }
.mbs-catalog #content[data-mbs-columns="3"] .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mbs-catalog #content[data-mbs-columns="4"] .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mbs-catalog .woocommerce ul.products::before, .mbs-catalog ul.products::before, .mbs-catalog ul.products::after { display: none; }
.mbs-catalog ul.products li.product { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(0, 1fr) auto; width: auto; float: none; margin: 0; padding: 0; text-align: left; min-width: 0; }
.mbs-catalog-product-visual { position: relative; aspect-ratio: 1; margin-bottom: 17px; border-radius: 22px; overflow: hidden; background: var(--base, #f0f0f0); }
.mbs-catalog ul.products li.product .mbs-catalog-product-visual { grid-column: 1 / -1; }
.mbs-catalog-product-visual > .woocommerce-loop-product__link { display: block; height: 100%; }
.mbs-catalog ul.products .wc-product-image, .mbs-catalog ul.products .inside-wc-product-image { height: 100%; margin: 0; }
.mbs-catalog ul.products .inside-wc-product-image { display: block; width: 100%; }
.mbs-catalog ul.products li.product .mbs-catalog-product-visual img { width: 100%; height: 100%; object-fit: contain; margin: 0; mix-blend-mode: multiply; }
.mbs-catalog ul.products li.product .mbs-catalog-product-visual .secondary-image { left: 0; top: 0; width: 100%; height: 100%; transform: none; background: var(--base, #f0f0f0); z-index: 1; }
.mbs-catalog ul.products li.product .mbs-catalog-product-visual img.secondary-image,
.mbs-catalog ul.products li.product .mbs-catalog-product-visual .secondary-image img { mix-blend-mode: normal; }
.mbs-catalog ul.products li.product .mbs-catalog-product-visual > .button,
.mbs-catalog ul.products li.product .mbs-catalog-product-visual > .added_to_cart { position: absolute; z-index: 3; inset-inline: 12px; bottom: 12px; margin: 0; display: flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 12px; border-radius: 999px; background: var(--base-3, #fff); color: var(--contrast, #222); font-size: 14px; text-decoration: none; opacity: 0; transform: translateY(18px); transition: opacity .24s ease, transform .24s cubic-bezier(.2,.8,.2,1); }
.mbs-catalog ul.products li.product .mbs-catalog-product-visual:hover > .button,
.mbs-catalog ul.products li.product .mbs-catalog-product-visual:focus-within > .button,
.mbs-catalog ul.products li.product .mbs-catalog-product-visual > .added_to_cart { opacity: 1; transform: none; }
.mbs-catalog ul.products li.product .mbs-catalog-product-visual > .button:hover { background: var(--accent, #000); color: var(--base-3, #fff); }
.mbs-catalog ul.products li.product .button.added { opacity: 0; pointer-events: none; }
.mbs-catalog ul.products li.product .button.loading { opacity: 1; }
.mbs-catalog ul.products li.product .mbs-catalog-product-visual .inside-wc-product-image > .onsale { position: absolute; z-index: 2; top: 12px; right: 12px; bottom: auto; left: auto; display: inline-block; width: max-content; max-width: calc(100% - 24px); min-height: 0; min-width: 0; margin: 0; border-radius: 999px; background: #ffd4c1; color: var(--contrast, #222); font-size: 12px; padding: 6px 12px; line-height: 1.5; }
.mbs-catalog ul.products li.product .mbs-catalog-favorite { position: absolute; z-index: 3; top: 11px; left: 11px; box-sizing: border-box; width: 44px; min-width: 44px; max-width: 44px; height: 44px; min-height: 44px; max-height: 44px; margin: 0; padding: 8px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #303943; opacity: 0; transform: translateY(-5px); transition: opacity .18s ease, transform .18s ease, background-color .18s ease; }
.mbs-catalog ul.products li.product .mbs-catalog-product-visual:hover .mbs-catalog-favorite,
.mbs-catalog ul.products li.product .mbs-catalog-product-visual:focus-within .mbs-catalog-favorite { opacity: 1; transform: none; }
.mbs-catalog ul.products li.product .mbs-catalog-favorite:hover,
.mbs-catalog ul.products li.product .mbs-catalog-favorite:focus-visible,
.mbs-catalog ul.products li.product .mbs-catalog-favorite[aria-pressed="true"] { border: 0; background: #fff; color: #303943; }
.mbs-catalog ul.products li.product .mbs-catalog-favorite .pc-tool-icon { display: block; width: 26px; height: 26px; flex: none; }
.mbs-catalog-product-category { grid-column: 1 / -1; display: block; width: fit-content; margin-bottom: 4px; padding: 3px 0; color: var(--contrast-2, #575760); font-size: 12px; line-height: 1.45; text-decoration: none; }
.mbs-catalog ul.products li.product > a.mbs-catalog-product-category:hover,
.mbs-catalog ul.products li.product > a.mbs-catalog-product-category:focus-visible { color: var(--contrast, #222); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mbs-catalog ul.products li.product .woocommerce-loop-product__title { padding: 0; margin: 0 0 12px; font-size: 17px; font-weight: 500; line-height: 1.4; }
.mbs-catalog ul.products li.product > .woocommerce-loop-product__link { grid-column: 1 / -1; color: var(--contrast, #222); text-decoration: none; align-self: start; }
.mbs-catalog ul.products li.product .star-rating { grid-column: 2; grid-row: 4; justify-self: end; align-self: center; float: none; margin: 0 0 0 8px; }
.mbs-catalog ul.products li.product .price { grid-column: 1; grid-row: 4; display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; min-width: 0; margin: 0; color: var(--contrast, #222); font-size: 15px; line-height: 1.55; font-weight: 500; }
.mbs-catalog ul.products li.product .price .woocommerce-Price-amount { color: var(--mbs-catalog-brand-orange); font-weight: 600; }
.mbs-catalog ul.products li.product .price del { order: 0; opacity: .6; margin: 0; font-weight: 400; }
.mbs-catalog ul.products li.product .price ins { background: transparent; text-decoration: none; }
.mbs-catalog ul.products li.product .price ins { order: 1; }
.mbs-catalog ul.products li.product.mbs-catalog-configured .price { font-size: 14px; }
.mbs-catalog .woocommerce-pagination { margin-top: 48px; }
.mbs-catalog nav.woocommerce-pagination { display: flex; justify-content: center; text-align: center; }
.mbs-catalog nav.woocommerce-pagination ul.page-numbers { display: flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; gap: 8px; margin: 0 auto; padding: 0; border: 0; }
.mbs-catalog nav.woocommerce-pagination ul.page-numbers > li { display: flex; align-items: center; justify-content: center; float: none; margin: 0; border: 0; }
.mbs-catalog .woocommerce-pagination ul li a, .mbs-catalog .woocommerce-pagination ul li span { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; padding: 0; background: transparent; color: var(--contrast, #222); }
.mbs-catalog .woocommerce-pagination ul li .current { background: var(--contrast, #222); color: var(--base-3, #fff); }
.mbs-catalog .wc-block-product-filters { gap: 22px; font-size: 14px; }
.mbs-catalog .wc-block-product-filters h2 { font-size: 18px; margin-bottom: 0; }
.mbs-catalog .mbs-catalog-filter-heading { display: none; }
.mbs-catalog .wc-block-product-filters h3 { font-size: 15px; font-weight: 600; }
.mbs-catalog .wc-block-product-filters__overlay-content > [data-block-name]:not([hidden]) { border-bottom: 1px solid var(--mbs-catalog-rule); padding-bottom: 24px; }
.mbs-catalog .wc-block-product-filter-checkbox-list label { font-size: 14px; line-height: 1.5; }
.mbs-catalog .wc-block-product-filter-price-slider input[type="text"] { padding: 8px; border-radius: 4px; min-width: 0; font-size: 14px; background: var(--base-3, #fff); }
.mbs-catalog .wc-block-product-filters input[type="checkbox"] { accent-color: var(--accent, #000); }
.mbs-catalog .wc-block-product-filter-price-slider { --wc-product-filter-price-slider-handle-color: var(--contrast, #222); }

@media (min-width: 901px) {
    .mbs-catalog .wc-block-product-filters__open-overlay { display: none; }
}
@media (max-width: 1100px) {
    .mbs-catalog #content { grid-template-columns: 220px minmax(0, 1fr); column-gap: 28px; }
    .mbs-catalog-view > span { display: none; }
    .mbs-catalog-toolbar { gap: 16px; }
    .mbs-catalog ul.products { gap: calc(var(--mbs-tablet-gap, 18px) + 14px) var(--mbs-tablet-gap, 18px); }
    .mbs-catalog ul.products li.product .woocommerce-loop-product__title { font-size: 15px; }
}
@media (max-width: 900px) {
    .mbs-catalog #content { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .mbs-catalog #primary { grid-column: 1; }
    .mbs-catalog #left-sidebar { grid-column: 1; grid-row: 3; height: 0; min-height: 0; }
    .mbs-catalog #content[data-mbs-filters-hidden="true"] #left-sidebar { display: block; }
    .mbs-catalog .wc-block-product-filters__open-overlay { display: none; }
    .mbs-catalog .wc-block-product-filters:not(.is-overlay-opened) .wc-block-product-filters__overlay { display: none; }
    .mbs-catalog .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay { display: flex; position: fixed; z-index: 100000; inset: 0; background: rgba(0,0,0,.35); overflow: hidden; pointer-events: auto; }
    .mbs-catalog .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-wrapper { width: min(380px, 92vw); max-height: 100%; background: var(--base-3, #fff); overflow-y: auto; margin-left: auto; }
    .mbs-catalog .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-dialog { padding: 20px; position: relative; transform: none; height: 100%; }
    .mbs-catalog .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-header { display: flex; justify-content: flex-end; margin-bottom: 24px; }
    .mbs-catalog .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-footer { display: block; padding-top: 20px; }
    .mbs-catalog .wc-block-product-filters.is-overlay-opened .mbs-catalog-filter-heading { display: block; }
    .mbs-catalog ul.products, .mbs-catalog #content[data-mbs-columns] .products { grid-template-columns: repeat(var(--mbs-tablet-columns, 2), minmax(0, 1fr)); }
    .mbs-catalog-view { display: none; }
    .mbs-catalog-product-visual { border-radius: 16px; }
    .mbs-catalog ul.products li.product .mbs-catalog-product-visual > .button { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
    .mbs-catalog .site-header .inside-header { padding-block: 12px; gap: 12px; }
    .mbs-catalog .site-header .main-title { font-size: 18px; max-width: 185px; }
    .mbs-catalog-notice { font-size: 12px; }
    .mbs-catalog-hero { min-height: 240px; }
    .mbs-catalog-hero-copy { padding-block: 28px; }
    .mbs-catalog-hero .woocommerce-breadcrumb { font-size: 11px; margin-bottom: 16px; }
    .mbs-catalog-hero-description { font-size: 13px; }
    .mbs-catalog #page { padding-top: 26px; padding-bottom: 42px; }
    .mbs-catalog-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
    .mbs-catalog-toolbar .woocommerce-result-count { text-align: right; font-size: 12px; }
    .mbs-catalog-ordering { grid-column: 1 / -1; margin: 0; justify-content: space-between; }
    .mbs-catalog-ordering .woocommerce-ordering { flex: 1; max-width: 250px; }
    .mbs-catalog-toolbar select { width: 100%; max-width: none; min-height: 38px; font-size: 13px; }
    .mbs-catalog-toolbar .mbs-catalog-filter-toggle { min-height: 38px; padding: 7px 14px; font-size: 13px; }
    .mbs-catalog ul.products, .mbs-catalog #content[data-mbs-columns] .products { grid-template-columns: repeat(var(--mbs-mobile-columns, 2), minmax(0, 1fr)); gap: calc(var(--mbs-mobile-gap, 14px) + 14px) var(--mbs-mobile-gap, 14px); }
    .mbs-catalog-product-visual { margin-bottom: 12px; border-radius: 13px; }
    .mbs-catalog ul.products li.product .mbs-catalog-product-visual > .button { inset-inline: 7px; bottom: 7px; min-height: 34px; padding: 7px 8px; font-size: 12px; }
    .mbs-catalog-product-category { font-size: 11px; }
    .mbs-catalog ul.products li.product .woocommerce-loop-product__title { font-size: 14px; line-height: 1.4; }
    .mbs-catalog ul.products li.product .price { font-size: 13px; gap: 0 4px; }
    .mbs-catalog ul.products li.product .star-rating { font-size: 12px; }
    .mbs-catalog ul.products li.product .mbs-catalog-favorite { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .mbs-catalog ul.products li.product .mbs-catalog-product-visual > .button { transition: none; transform: none; }
}
