/* MagnetMart 2.0 - operational B2B commerce interface */

:root {
    --mm-bg: #f4f6f8;
    --mm-surface: #ffffff;
    --mm-surface-soft: #f8fafb;
    --mm-ink: #18202a;
    --mm-muted: #667085;
    --mm-line: #d8dde5;
    --mm-line-strong: #b9c1cc;
    --mm-brand: #df1830;
    --mm-brand-dark: #b80f24;
    --mm-navy: #0b315e;
    --mm-green: #16784b;
    --mm-green-bg: #e9f6ef;
    --mm-amber: #8a5a00;
    --mm-amber-bg: #fff5d6;
    --mm-red: #b42318;
    --mm-red-bg: #fff0ee;
    --mm-blue: #175ea8;
    --mm-blue-bg: #edf5ff;
    --mm-radius: 6px;
    --mm-container: 1320px;
    --mm-shadow: 0 8px 28px rgba(19, 33, 49, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--mm-bg);
    color: var(--mm-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mm-brand); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--mm-ink); line-height: 1.2; letter-spacing: 0; }
h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 16px; }
.container { width: min(100% - 32px, var(--mm-container)); margin-inline: auto; }
.site { min-height: 100vh; }
.site-content { min-height: 60vh; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.mm-topbar { background: #202a35; color: #f6f8fa; font-size: 12px; }
.mm-topbar-inner { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mm-topbar-right { color: #c6ced7; text-align: right; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--mm-surface);
    border-bottom: 1px solid var(--mm-line);
}
.header-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: 245px minmax(280px, 620px) auto;
    align-items: center;
    gap: 28px;
}
.site-branding { display: flex; align-items: center; min-width: 0; }
.site-branding img, .site-branding .custom-logo { width: auto; max-width: 225px; max-height: 52px; object-fit: contain; }
.header-search { width: 100%; }
.mm-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    height: 44px;
    overflow: hidden;
    background: var(--mm-surface);
    border: 1px solid var(--mm-line-strong);
    border-radius: var(--mm-radius);
}
.mm-search-form:focus-within { border-color: var(--mm-navy); box-shadow: 0 0 0 3px rgba(11, 49, 94, 0.1); }
.mm-search-field { min-width: 0; padding: 0 14px; color: var(--mm-ink); border: 0; outline: 0; background: transparent; }
.mm-search-submit { border: 0; background: var(--mm-navy); color: #fff; font-size: 15px; }
.mm-search-submit:hover { background: #09294f; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.mm-icon-link, .mm-rfq-link, .cart-button, .mm-mobile-toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: var(--mm-surface);
    color: var(--mm-ink);
    font-weight: 600;
}
.mm-icon-link:hover { color: var(--mm-navy); border-color: var(--mm-navy); }
.mm-rfq-link { color: #fff; background: var(--mm-brand); border-color: var(--mm-brand); }
.mm-rfq-link:hover { color: #fff; background: var(--mm-brand-dark); }
.cart-button { position: relative; width: 42px; padding: 0; color: var(--mm-navy); }
.cart-button:hover { border-color: var(--mm-navy); }
.mm-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--mm-brand);
    color: #fff;
    font-size: 10px;
    line-height: 1;
}
.mm-mobile-toggle { display: none; width: 42px; padding: 0; }
.mm-main-nav { background: var(--mm-surface); border-bottom: 1px solid var(--mm-line); }
.mm-nav-inner { min-height: 44px; display: flex; align-items: stretch; gap: 18px; }
.mm-products-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    background: var(--mm-navy);
    color: #fff;
    font-weight: 700;
}
.mm-products-link:hover { color: #fff; background: #09294f; }
.mm-primary-menu { list-style: none; display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; }
.mm-primary-menu li { position: relative; }
.mm-primary-menu > li > a { height: 44px; display: flex; align-items: center; padding: 0 14px; color: #344054; font-weight: 600; }
.mm-primary-menu > li > a:hover, .mm-primary-menu > li.current-menu-item > a { color: var(--mm-brand); }
.mm-primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: 0 0 var(--mm-radius) var(--mm-radius);
    box-shadow: var(--mm-shadow);
}
.mm-primary-menu li:hover > .sub-menu, .mm-primary-menu li:focus-within > .sub-menu { display: block; }
.mm-primary-menu .sub-menu a { display: block; padding: 9px 10px; border-radius: 4px; }
.mm-primary-menu .sub-menu a:hover { background: var(--mm-surface-soft); }

/* Shared controls */
.mm-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--mm-radius);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.mm-button-primary, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--mm-brand); color: #fff; border-color: var(--mm-brand); }
.mm-button-primary:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--mm-brand-dark); color: #fff; }
.mm-button-secondary { background: #fff; color: var(--mm-navy); border-color: var(--mm-line-strong); }
.mm-button-secondary:hover { color: var(--mm-navy); border-color: var(--mm-navy); }
.mm-button-neutral { background: #eef1f4; color: var(--mm-ink); border-color: #eef1f4; }
.mm-button-neutral:hover { background: #e3e7eb; color: var(--mm-ink); }
.mm-button-light { background: #fff; color: var(--mm-navy); border-color: #fff; }
.mm-button-light:hover { background: #edf2f7; color: var(--mm-navy); }
.mm-eyebrow { display: block; margin-bottom: 7px; color: var(--mm-brand); font-size: 11px; font-weight: 800; text-transform: uppercase; }

/* Catalog */
.mm-catalog-shell, .mm-shop-page { padding: 30px 0 64px; }
.mm-catalog-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 20px; }
.mm-catalog-intro > div:first-child { max-width: 760px; }
.mm-catalog-intro h1 { margin-bottom: 10px; }
.mm-catalog-intro p { max-width: 720px; margin-bottom: 0; color: var(--mm-muted); font-size: 15px; }
.mm-catalog-intro-actions { display: flex; gap: 10px; flex-shrink: 0; }
.mm-availability-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
    background: var(--mm-surface);
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
}
.mm-availability-strip > div { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-right: 1px solid var(--mm-line); }
.mm-availability-strip > div:last-child { border-right: 0; }
.mm-availability-strip i { width: 18px; flex: 0 0 18px; color: var(--mm-navy); text-align: center; }
.mm-availability-strip span { min-width: 0; display: flex; flex-direction: column; color: var(--mm-muted); font-size: 11px; }
.mm-availability-strip strong { overflow-wrap: anywhere; color: var(--mm-ink); font-size: 13px; }
.mm-catalog-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.mm-category-panel { background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: var(--mm-radius); overflow: hidden; }
.mm-panel-heading { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--mm-line); color: var(--mm-ink); font-weight: 800; }
.mm-filter-close { display: none; width: 34px; height: 34px; border: 0; background: transparent; color: var(--mm-muted); }
.mm-category-panel nav { padding: 7px; }
.mm-category-panel nav a { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border-radius: 4px; color: #344054; }
.mm-category-panel nav a:hover, .mm-category-panel nav a.is-active { background: var(--mm-blue-bg); color: var(--mm-navy); }
.mm-category-panel nav small { color: var(--mm-muted); font-size: 11px; }
.mm-category-panel nav i { color: var(--mm-muted); font-size: 10px; }
.mm-panel-note { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--mm-line); background: var(--mm-surface-soft); }
.mm-panel-note i { margin-top: 2px; color: var(--mm-green); }
.mm-panel-note p { display: flex; flex-direction: column; margin: 0; }
.mm-panel-note strong { font-size: 12px; }
.mm-panel-note span { margin-top: 3px; color: var(--mm-muted); font-size: 11px; }
.mm-widget-filters { padding: 12px 14px; border-top: 1px solid var(--mm-line); }
.mm-widget-filters .widget { margin-bottom: 18px; }
.mm-widget-filters .widget:last-child { margin-bottom: 0; }
.mm-widget-filters .widget-title { margin-bottom: 8px; font-size: 13px; }
.mm-catalog-results { min-width: 0; }
.mm-catalog-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 9px 12px; background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: var(--mm-radius); }
.mm-catalog-toolbar > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.mm-catalog-toolbar h2 { margin: 0; font-size: 18px; }
.mm-result-count, .woocommerce-result-count { margin: 0; color: var(--mm-muted); font-size: 12px; }
.mm-catalog-filter { display: flex; align-items: end; gap: 8px; }
.mm-catalog-filter label { display: flex; flex-direction: column; gap: 3px; color: var(--mm-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.mm-catalog-filter select, .woocommerce-ordering select { min-height: 38px; max-width: 190px; padding: 0 30px 0 10px; border: 1px solid var(--mm-line); border-radius: 4px; background: #fff; color: var(--mm-ink); font-size: 12px; text-transform: none; }
.mm-filter-toggle { display: none; min-height: 38px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--mm-line); border-radius: 4px; background: #fff; font-weight: 700; }
.mm-products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mm-empty-state { grid-column: 1 / -1; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; background: #fff; border: 1px dashed var(--mm-line-strong); border-radius: var(--mm-radius); }
.mm-empty-state i { margin-bottom: 12px; color: var(--mm-muted); font-size: 24px; }
.mm-empty-state h3 { margin-bottom: 5px; }
.mm-empty-state p { margin: 0; color: var(--mm-muted); }

/* Product cards */
.mm-product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: var(--mm-radius); transition: border-color .16s ease, box-shadow .16s ease; }
.mm-product-card:hover { border-color: var(--mm-line-strong); box-shadow: var(--mm-shadow); }
.mm-product-image { position: relative; aspect-ratio: 1 / 1; display: block; overflow: hidden; background: #f3f5f7; border-bottom: 1px solid var(--mm-line); }
.mm-product-image img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .22s ease; }
.mm-product-card:hover .mm-product-image img { transform: scale(1.025); }
.mm-card-badges { position: absolute; inset: 10px 10px auto 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; }
.mm-stock-badge, .mm-sale-badge { min-height: 24px; display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 3px; font-size: 10px; font-weight: 800; line-height: 1.2; }
.mm-stock-badge.is-green { background: var(--mm-green-bg); color: var(--mm-green); }
.mm-stock-badge.is-orange, .mm-stock-badge.is-amber { background: var(--mm-amber-bg); color: var(--mm-amber); }
.mm-stock-badge.is-red { background: var(--mm-red-bg); color: var(--mm-red); }
.mm-stock-badge.is-blue { background: var(--mm-blue-bg); color: var(--mm-blue); }
.mm-stock-badge.is-neutral, .mm-stock-badge.is-gray { background: #eef1f4; color: #4b5563; }
.mm-sale-badge { margin-left: auto; background: var(--mm-brand); color: #fff; }
.mm-product-body { min-height: 250px; display: flex; flex: 1; flex-direction: column; padding: 13px; }
.mm-product-code { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: var(--mm-muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.mm-product-code span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-product-title { min-height: 39px; margin: 0 0 7px; overflow: hidden; font-size: 14px; line-height: 1.38; }
.mm-product-title a { color: var(--mm-ink); }
.mm-product-title a:hover { color: var(--mm-brand); }
.mm-product-spec { min-height: 18px; margin: 0 0 8px; overflow: hidden; color: var(--mm-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mm-product-fulfilment { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 12px; color: var(--mm-muted); font-size: 11px; }
.mm-product-fulfilment i { margin-top: 2px; color: var(--mm-navy); }
.mm-product-purchase { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--mm-line); }
.mm-product-price { min-height: 29px; display: flex; align-items: center; margin-bottom: 10px; color: var(--mm-brand); font-size: 17px; font-weight: 800; }
.mm-product-price del { margin-right: 5px; color: var(--mm-muted); font-size: 11px; font-weight: 500; }
.mm-product-price ins { text-decoration: none; }
.mm-product-actions { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 7px; }
.mm-card-rfq { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--mm-line-strong); border-radius: 4px; color: var(--mm-navy); }
.mm-card-rfq:hover { color: var(--mm-navy); border-color: var(--mm-navy); }
.mm-product-actions .button { min-height: 38px; width: 100%; padding: 0 10px; background: var(--mm-navy); color: #fff; border: 0; border-radius: 4px; font-size: 11px; font-weight: 800; }
.mm-product-actions .button:hover { background: #09294f; color: #fff; }
.mm-product-actions .added_to_cart { grid-column: 1 / -1; color: var(--mm-green); font-size: 11px; font-weight: 700; }

/* Operating and sourcing bands */
.mm-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.mm-section-heading h2 { margin: 0; }
.mm-section-heading > p { max-width: 600px; margin: 0; color: var(--mm-muted); }
.mm-operating-strip { padding: 54px 0; background: #fff; border-top: 1px solid var(--mm-line); border-bottom: 1px solid var(--mm-line); }
.mm-operating-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--mm-line); border-bottom: 1px solid var(--mm-line); }
.mm-operating-grid article { min-width: 0; padding: 22px 20px; border-right: 1px solid var(--mm-line); }
.mm-operating-grid article:last-child { border-right: 0; }
.mm-operating-grid article > span { display: block; margin-bottom: 14px; color: var(--mm-brand); font-family: ui-monospace, monospace; font-size: 18px; font-weight: 800; }
.mm-operating-grid strong { display: block; margin-bottom: 7px; font-size: 14px; }
.mm-operating-grid p { margin: 0; color: var(--mm-muted); font-size: 12px; }
.mm-solutions-band { padding: 56px 0; }
.mm-solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mm-solutions-grid article { padding: 20px; background: #fff; border: 1px solid var(--mm-line); border-radius: var(--mm-radius); }
.mm-solutions-grid i { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 4px; background: var(--mm-blue-bg); color: var(--mm-navy); }
.mm-solutions-grid h3 { margin-bottom: 7px; }
.mm-solutions-grid p { margin: 0; color: var(--mm-muted); font-size: 12px; }
.mm-quote-band { padding: 0 0 58px; }
.mm-quote-inner { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 38px 44px; background: var(--mm-navy); color: #fff; border-radius: var(--mm-radius); }
.mm-quote-inner > div { max-width: 780px; }
.mm-quote-inner .mm-eyebrow { color: #a9c9ea; }
.mm-quote-inner h2 { margin-bottom: 10px; color: #fff; }
.mm-quote-inner p { margin: 0; color: #cfdae6; }

/* Shop archive */
.woocommerce-breadcrumb { margin: 0 0 18px !important; color: var(--mm-muted) !important; font-size: 11px !important; }
.woocommerce-breadcrumb a { color: var(--mm-muted); }
.mm-shop-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.mm-shop-header h1 { margin: 0; }
.mm-shop-header p { max-width: 560px; margin: 0; color: var(--mm-muted); text-align: right; }
.woocommerce .woocommerce-ordering { margin: 0; }
.woocommerce nav.woocommerce-pagination { margin-top: 28px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { margin: 0 3px; border: 1px solid var(--mm-line); border-radius: 4px; overflow: hidden; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 36px; min-height: 36px; display: flex; align-items: center; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--mm-navy); color: #fff; }

/* Product detail */
.mm-product-detail { padding: 26px 0 0; }
.mm-product-overview { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); gap: 42px; padding-bottom: 50px; }
.mm-product-gallery { min-width: 0; }
.mm-product-gallery .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.mm-product-gallery .woocommerce-product-gallery__wrapper { background: #fff; border: 1px solid var(--mm-line); border-radius: var(--mm-radius); overflow: hidden; }
.mm-product-gallery .woocommerce-product-gallery__image { aspect-ratio: 1 / 1; }
.mm-product-gallery .woocommerce-product-gallery__image img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.mm-product-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px !important; }
.mm-product-gallery .flex-control-thumbs li { width: auto !important; float: none !important; border: 1px solid var(--mm-line); border-radius: 4px; overflow: hidden; }
.mm-product-summary { min-width: 0; }
.mm-summary-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; color: var(--mm-muted); font-size: 11px; }
.mm-summary-meta code { overflow-wrap: anywhere; color: var(--mm-navy); }
.mm-product-summary h1 { margin-bottom: 9px; font-size: 30px; overflow-wrap: anywhere; }
.mm-product-summary .woocommerce-product-rating { margin-bottom: 12px !important; }
.mm-summary-stock { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.mm-summary-stock > span:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--mm-muted); font-size: 12px; }
.mm-summary-price { margin: 18px 0; padding: 15px 0; border-top: 1px solid var(--mm-line); border-bottom: 1px solid var(--mm-line); }
.mm-summary-price .price { margin: 0 !important; color: var(--mm-brand) !important; font-size: 25px !important; font-weight: 800; }
.mm-summary-description { color: #475467; }
.mm-order-facts { margin: 20px 0; border-top: 1px solid var(--mm-line); }
.mm-order-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--mm-line); }
.mm-order-facts dt { color: var(--mm-muted); }
.mm-order-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mm-detail-cart { margin: 20px 0 10px; }
.mm-detail-cart form.cart { display: flex; align-items: stretch; gap: 8px; margin: 0 !important; }
.mm-detail-cart .quantity .qty { width: 72px; min-height: 44px; border: 1px solid var(--mm-line-strong); border-radius: 4px; }
.mm-detail-cart .single_add_to_cart_button { min-height: 44px !important; flex: 1; }
.mm-detail-cart table.variations { margin-bottom: 12px !important; }
.mm-detail-cart table.variations th, .mm-detail-cart table.variations td { padding: 5px 8px 5px 0; text-align: left; }
.mm-detail-cart table.variations select { min-height: 40px; padding: 0 10px; border: 1px solid var(--mm-line); border-radius: 4px; }
.mm-detail-actions { display: flex; gap: 8px; }
.mm-shipping-note { display: flex; gap: 8px; margin: 16px 0 0; padding: 11px 12px; background: var(--mm-amber-bg); color: var(--mm-amber); border-radius: 4px; font-size: 12px; }
.mm-product-information { padding: 52px 0; background: #fff; border-top: 1px solid var(--mm-line); border-bottom: 1px solid var(--mm-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 4px; margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--mm-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { min-height: 42px; display: flex; align-items: center; padding: 0 14px; color: var(--mm-muted); font-weight: 700; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--mm-brand); box-shadow: inset 0 -2px 0 var(--mm-brand); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 980px; margin-bottom: 0; color: #475467; }
.woocommerce div.product .woocommerce-tabs .panel h2 { margin-bottom: 18px; }
.woocommerce table.shop_attributes { border-top: 1px solid var(--mm-line); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 10px 12px; border-bottom: 1px solid var(--mm-line); background: transparent; font-style: normal; }
.woocommerce table.shop_attributes th { width: 38%; color: var(--mm-muted); }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: var(--mm-surface-soft); }
.mm-product-description { color: #475467; }
.mm-product-description > *:last-child { margin-bottom: 0; }
.mm-related-products { padding: 52px 0 64px; }

/* WooCommerce messages and forms */
.woocommerce-message, .woocommerce-info, .woocommerce-error { margin: 0 auto 20px !important; border-top-color: var(--mm-navy) !important; background: #fff; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--mm-navy) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 42px; padding: 9px 11px; border: 1px solid var(--mm-line); border-radius: 4px; }
.woocommerce table.shop_table { border-color: var(--mm-line); border-radius: var(--mm-radius); background: #fff; }

/* Generic content */
.content-area { max-width: 920px; padding: 40px 0 64px; }
.site-main article { margin-bottom: 24px; padding: 26px; background: #fff; border: 1px solid var(--mm-line); border-radius: var(--mm-radius); }
.entry-title { overflow-wrap: anywhere; }
.entry-meta { display: flex; gap: 14px; margin-bottom: 18px; color: var(--mm-muted); font-size: 12px; }
.entry-content { color: #344054; }
.featured-image { margin-bottom: 20px; }
.mm-404 { padding: 80px 0; text-align: center; }
.mm-404 .page-title { margin-bottom: 6px; font-size: 72px; color: var(--mm-brand); }
.mm-404 .mm-search-form { max-width: 520px; margin: 24px auto; }

/* RFQ */
.mm-rfq-page { padding: 34px 0 70px; }
.mm-rfq-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 24px; }
.mm-rfq-header > div:first-child { max-width: 780px; }
.mm-rfq-header h1 { margin-bottom: 9px; }
.mm-rfq-header p { margin: 0; color: var(--mm-muted); }
.mm-rfq-reference { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; padding-left: 28px; border-left: 2px solid var(--mm-brand); }
.mm-rfq-reference span { color: var(--mm-muted); font-size: 11px; }
.mm-rfq-reference strong { font-size: 14px; }
.mm-form-notice { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 20px; padding: 13px 15px; border: 1px solid; border-radius: var(--mm-radius); }
.mm-form-notice.is-success { border-color: #a6d7bd; background: var(--mm-green-bg); color: var(--mm-green); }
.mm-form-notice.is-error { border-color: #f0b5af; background: var(--mm-red-bg); color: var(--mm-red); }
.mm-form-notice div { display: flex; flex-direction: column; }
.mm-form-notice span { margin-top: 2px; font-size: 12px; }
.mm-rfq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: start; }
.mm-rfq-form { padding: 26px; background: #fff; border: 1px solid var(--mm-line); border-radius: var(--mm-radius); }
.mm-rfq-form > section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--mm-line); }
.mm-form-section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.mm-form-section-heading > span { width: 30px; height: 30px; flex: 0 0 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--mm-navy); color: #fff; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 800; }
.mm-form-section-heading h2 { margin: 1px 0 3px; font-size: 18px; }
.mm-form-section-heading p { margin: 0; color: var(--mm-muted); font-size: 12px; }
.mm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.mm-form-grid label { min-width: 0; display: flex; flex-direction: column; gap: 5px; color: #344054; font-size: 12px; font-weight: 700; }
.mm-form-grid label.is-full { grid-column: 1 / -1; }
.mm-form-grid input, .mm-form-grid textarea { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid var(--mm-line-strong); border-radius: 4px; background: #fff; color: var(--mm-ink); outline: 0; font-weight: 400; }
.mm-form-grid input { min-height: 42px; }
.mm-form-grid textarea { resize: vertical; }
.mm-form-grid input:focus, .mm-form-grid textarea:focus { border-color: var(--mm-navy); box-shadow: 0 0 0 3px rgba(11, 49, 94, .09); }
.mm-selected-product { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; padding: 12px 14px; background: var(--mm-blue-bg); border-left: 3px solid var(--mm-navy); }
.mm-selected-product > i { color: var(--mm-navy); }
.mm-selected-product > span { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
.mm-selected-product small { grid-column: 1 / -1; color: var(--mm-muted); }
.mm-selected-product strong { overflow-wrap: anywhere; }
.mm-selected-product code { color: var(--mm-navy); }
.mm-rfq-submit { min-width: 180px; }
.mm-rfq-guidance { padding: 22px 0 22px 24px; border-left: 1px solid var(--mm-line); }
.mm-rfq-guidance h2 { margin-bottom: 18px; font-size: 18px; }
.mm-rfq-guidance ul { margin: 0; padding: 0; list-style: none; }
.mm-rfq-guidance li { display: flex; align-items: flex-start; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--mm-line); }
.mm-rfq-guidance li > i { width: 20px; flex: 0 0 20px; margin-top: 3px; color: var(--mm-navy); text-align: center; }
.mm-rfq-guidance li span { display: flex; flex-direction: column; }
.mm-rfq-guidance li strong { font-size: 12px; }
.mm-rfq-guidance li span { color: var(--mm-muted); font-size: 11px; }
.mm-rfq-guidance li strong { color: var(--mm-ink); }
.mm-rfq-guidance > p { margin: 18px 0 0; color: var(--mm-muted); font-size: 11px; }
.mm-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mm-honeypot[hidden] { display: none !important; }

/* Footer */
.site-footer { background: #202a35; color: #c8d0d9; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 42px; padding-top: 44px; padding-bottom: 44px; }
.footer-logo { display: inline-block; margin-bottom: 16px; padding: 8px 10px; background: #fff; border-radius: 4px; }
.footer-logo img { width: auto; max-width: 220px; max-height: 54px; object-fit: contain; }
.footer-company p { max-width: 380px; margin: 0; color: #aeb8c3; }
.footer-column h3, .site-footer .widget-title { margin-bottom: 12px; color: #fff; font-size: 13px; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin: 7px 0; }
.footer-column a { color: #c8d0d9; }
.footer-column a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #394653; color: #9aa7b4; font-size: 11px; }
.footer-bottom .container { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

@media (max-width: 1160px) {
    .header-inner { grid-template-columns: 210px minmax(240px, 1fr) auto; gap: 18px; }
    .site-branding img, .site-branding .custom-logo { max-width: 190px; }
    .mm-icon-link span { display: none; }
    .mm-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mm-availability-strip { grid-template-columns: repeat(2, 1fr); }
    .mm-availability-strip > div:nth-child(2) { border-right: 0; }
    .mm-availability-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--mm-line); }
    .mm-operating-grid, .mm-solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .mm-operating-grid article:nth-child(2) { border-right: 0; }
    .mm-operating-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--mm-line); }
}

@media (max-width: 860px) {
    body.admin-bar .site-header { top: 46px; }
    .mm-topbar-right { display: none; }
    .mm-topbar-inner { justify-content: center; text-align: center; }
    .site-header { position: relative; top: auto; }
    .header-inner { grid-template-columns: minmax(150px, 1fr) auto; min-height: 68px; }
    .header-search { grid-column: 1 / -1; grid-row: 2; padding-bottom: 12px; }
    .mm-mobile-toggle { display: inline-flex; }
    .mm-icon-link { display: none; }
    .mm-main-nav { display: none; }
    .mm-main-nav.is-open { display: block; }
    .mm-nav-inner { display: block; padding-top: 8px; padding-bottom: 8px; }
    .mm-products-link { min-height: 42px; width: 100%; }
    .mm-primary-menu { display: block; margin-top: 5px; }
    .mm-primary-menu > li > a { height: 42px; padding: 0 12px; }
    .mm-primary-menu .sub-menu { position: static; display: block; padding-left: 14px; border: 0; box-shadow: none; }
    .mm-catalog-intro, .mm-shop-header, .mm-section-heading { align-items: flex-start; flex-direction: column; }
    .mm-shop-header p { text-align: left; }
    .mm-catalog-layout { grid-template-columns: 1fr; }
    .mm-category-panel { position: fixed; inset: 0 auto 0 0; z-index: 300; width: min(340px, 88vw); overflow-y: auto; border: 0; border-radius: 0; box-shadow: var(--mm-shadow); transform: translateX(-105%); transition: transform .2s ease; }
    .mm-category-panel.is-open { transform: translateX(0); }
    .mm-filter-close, .mm-filter-toggle { display: inline-flex; }
    .mm-catalog-toolbar > div:first-child { align-items: center; }
    .mm-catalog-toolbar h2 { display: none; }
    .mm-product-overview { grid-template-columns: 1fr; gap: 26px; }
    .woocommerce div.product .woocommerce-tabs ul.tabs { overflow-x: auto; }
    .mm-rfq-header { align-items: flex-start; flex-direction: column; }
    .mm-rfq-reference { align-items: flex-start; }
    .mm-rfq-layout { grid-template-columns: 1fr; }
    .mm-rfq-guidance { padding: 6px 0 0; border-left: 0; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-column:last-child { display: none; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 22px, var(--mm-container)); }
    h1 { font-size: 27px; }
    h2 { font-size: 21px; }
    .site-branding img, .site-branding .custom-logo { max-width: 170px; max-height: 46px; }
    .header-actions { gap: 6px; }
    .mm-rfq-link { width: 40px; padding: 0; }
    .mm-rfq-link span { display: none; }
    .mm-catalog-shell, .mm-shop-page { padding-top: 20px; }
    .mm-catalog-intro-actions { width: 100%; }
    .mm-catalog-intro-actions .mm-button { flex: 1; }
    .mm-availability-strip { grid-template-columns: 1fr; }
    .mm-availability-strip > div { border-right: 0; border-bottom: 1px solid var(--mm-line); }
    .mm-availability-strip > div:last-child { border-bottom: 0; }
    .mm-catalog-toolbar { align-items: stretch; flex-direction: column; }
    .mm-catalog-toolbar > div:first-child { justify-content: space-between; }
    .mm-catalog-filter { display: grid; grid-template-columns: 1fr 1fr; }
    .mm-catalog-filter select { width: 100%; max-width: none; }
    .mm-catalog-filter .mm-button { grid-column: 1 / -1; }
    .mm-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .mm-product-body { min-height: 242px; padding: 10px; }
    .mm-product-title { font-size: 13px; }
    .mm-product-price { font-size: 15px; }
    .mm-product-actions { grid-template-columns: 36px minmax(0, 1fr); }
    .mm-product-actions .button { font-size: 10px; }
    .mm-section-heading { margin-bottom: 18px; }
    .mm-operating-grid, .mm-solutions-grid { grid-template-columns: 1fr; }
    .mm-operating-grid article { border-right: 0; border-bottom: 1px solid var(--mm-line); }
    .mm-operating-grid article:last-child { border-bottom: 0; }
    .mm-quote-inner { align-items: flex-start; flex-direction: column; padding: 28px 22px; }
    .mm-product-summary h1 { font-size: 25px; }
    .mm-order-facts > div { grid-template-columns: 100px minmax(0, 1fr); }
    .mm-detail-cart form.cart { flex-wrap: wrap; }
    .mm-detail-cart .single_add_to_cart_button { min-width: calc(100% - 82px); }
    .mm-rfq-form { padding: 18px 14px; }
    .mm-form-grid { grid-template-columns: 1fr; }
    .mm-form-grid label.is-full { grid-column: auto; }
    .mm-selected-product > span { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-company { grid-column: 1 / -1; }
    .footer-bottom .container { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 10px; padding-bottom: 10px; }
}

/* MagnetMart 2.2 - demo-inspired purchasing interface */
:root {
    --mm-bg: #f5f7fb;
    --mm-surface: #ffffff;
    --mm-surface-soft: #f8fafc;
    --mm-ink: #0f172a;
    --mm-muted: #64748b;
    --mm-line: #e2e8f0;
    --mm-line-strong: #cbd5e1;
    --mm-brand: #2563eb;
    --mm-brand-dark: #1d4ed8;
    --mm-navy: #0b1f33;
    --mm-green: #15803d;
    --mm-green-bg: #ecfdf3;
    --mm-amber: #a16207;
    --mm-amber-bg: #fffbeb;
    --mm-blue: #2563eb;
    --mm-blue-bg: #eff6ff;
    --mm-radius: 10px;
    --mm-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body { background: var(--mm-bg); }
a:hover { color: var(--mm-brand); }
.mm-topbar { background: var(--mm-navy); }
.site-header { border-color: var(--mm-line); }
.header-inner { min-height: 72px; grid-template-columns: 230px minmax(280px, 620px) auto; }
.site-branding img, .site-branding .custom-logo { max-height: 48px; }
.mm-search-form { height: 46px; border-radius: 8px; border-color: var(--mm-line-strong); }
.mm-search-form:focus-within { border-color: var(--mm-brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.mm-search-form button, .mm-search-form button:hover { background: var(--mm-brand); }
.mm-icon-link, .cart-button { border-color: var(--mm-line-strong); border-radius: 8px; color: var(--mm-navy); }
.mm-rfq-link { background: var(--mm-brand); border-radius: 8px; }
.mm-nav-inner { min-height: 52px; }
.mm-products-link { background: var(--mm-navy); border-radius: 0; }
.mm-primary-menu > li > a { color: #334155; }
.mm-primary-menu > li > a:hover, .mm-primary-menu > li.current-menu-item > a { color: var(--mm-brand); }
.mm-button { min-height: 42px; border-radius: 8px; font-weight: 700; }
.mm-button-primary, .mm-product-actions .button { background: var(--mm-brand); border-color: var(--mm-brand); }
.mm-button-primary:hover, .mm-product-actions .button:hover { background: var(--mm-brand-dark); border-color: var(--mm-brand-dark); }
.mm-button-secondary { color: var(--mm-brand); border-color: #bfdbfe; background: #fff; }

/* Demo home */
.mm-demo-hero { padding: 56px 0 62px; background: var(--mm-navy); color: #e2e8f0; }
.mm-demo-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); align-items: center; gap: 72px; }
.mm-demo-hero-copy { max-width: 660px; }
.mm-demo-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: #93c5fd; font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.mm-demo-kicker.is-blue { color: var(--mm-brand); }
.mm-demo-kicker.is-green { color: var(--mm-green); }
.mm-demo-hero h1 { max-width: 620px; margin-bottom: 18px; color: #fff; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; }
.mm-demo-hero-copy > p { max-width: 610px; margin-bottom: 28px; color: #cbd5e1; font-size: 17px; line-height: 1.7; }
.mm-demo-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mm-demo-hero .mm-button-primary { color: #fff; background: var(--mm-brand); border-color: var(--mm-brand); }
.mm-button-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .42); background: transparent; }
.mm-button-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.mm-demo-hero-note { display: flex; align-items: center; gap: 9px; margin-top: 26px; color: #94a3b8; font-size: 12px; }
.mm-demo-hero-note i { color: #86efac; }
.mm-demo-finder-panel { padding: 24px; border: 1px solid rgba(191, 219, 254, .28); border-radius: 10px; background: rgba(15, 38, 66, .82); box-shadow: 0 22px 45px rgba(0, 0, 0, .16); }
.mm-demo-finder-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.mm-demo-finder-heading span { color: #fff; font-size: 18px; font-weight: 800; }
.mm-demo-finder-heading strong { color: #93c5fd; font-size: 12px; }
.mm-demo-search { display: grid; grid-template-columns: minmax(0, 1fr) 48px; min-height: 48px; margin-bottom: 14px; overflow: hidden; border: 1px solid rgba(203, 213, 225, .85); border-radius: 8px; background: #fff; }
.mm-demo-search input { min-width: 0; padding: 0 14px; border: 0; outline: 0; color: var(--mm-ink); background: #fff; }
.mm-demo-search button { border: 0; color: #fff; background: var(--mm-brand); }
.mm-demo-search button:hover { background: var(--mm-brand-dark); }
.mm-demo-finder-links { display: grid; gap: 7px; }
.mm-demo-finder-links a { display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 10px 8px; border: 1px solid transparent; border-radius: 7px; color: #dbeafe; }
.mm-demo-finder-links a:hover { border-color: rgba(191, 219, 254, .42); color: #fff; background: rgba(255, 255, 255, .06); }
.mm-demo-finder-links > a > i:first-child { color: #93c5fd; text-align: center; }
.mm-demo-finder-links > a > i:last-child { color: #94a3b8; font-size: 11px; }
.mm-demo-finder-links span { display: grid; gap: 2px; }
.mm-demo-finder-links strong { color: #fff; font-size: 13px; }
.mm-demo-finder-links small { color: #94a3b8; font-size: 11px; }
.mm-demo-finder-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(203, 213, 225, .18); }
.mm-demo-finder-stats div { display: grid; gap: 2px; }
.mm-demo-finder-stats strong { color: #fff; font-size: 21px; }
.mm-demo-finder-stats span { color: #94a3b8; font-size: 10px; }
.mm-demo-families, .mm-demo-products, .mm-demo-process { padding: 64px 0; }
.mm-demo-families { background: #fff; }
.mm-demo-products { border-top: 1px solid var(--mm-line); border-bottom: 1px solid var(--mm-line); }
.mm-demo-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.mm-demo-section-heading h2 { margin: 0; font-size: 30px; }
.mm-demo-section-heading > a { display: inline-flex; align-items: center; gap: 8px; color: var(--mm-brand); font-weight: 800; }
.mm-demo-section-heading.is-centered { justify-content: center; text-align: center; }
.mm-demo-family-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mm-demo-family-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) 16px; align-items: center; gap: 14px; min-height: 106px; padding: 18px; border: 1px solid var(--mm-line); border-radius: 10px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.mm-demo-family-card:hover { border-color: #93c5fd; box-shadow: var(--mm-shadow); transform: translateY(-2px); }
.mm-demo-family-card > i:first-child { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 8px; color: var(--mm-brand); background: var(--mm-blue-bg); font-size: 18px; }
.mm-demo-family-card > i:last-child { color: var(--mm-muted); font-size: 11px; }
.mm-demo-family-card span { display: grid; gap: 4px; min-width: 0; }
.mm-demo-family-card strong { overflow-wrap: anywhere; color: var(--mm-ink); font-size: 15px; }
.mm-demo-family-card small { color: var(--mm-muted); font-size: 12px; }
.mm-demo-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Product cards and catalog share the same compact demo treatment. */
.mm-product-card { overflow: hidden; border: 1px solid var(--mm-line); border-radius: 10px; background: #fff; box-shadow: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.mm-product-card:hover { border-color: #bfdbfe; box-shadow: var(--mm-shadow); transform: translateY(-2px); }
.mm-product-image { min-height: 208px; aspect-ratio: 1.2 / 1; background: #f8fafc; }
.mm-product-image img { width: 100%; height: 100%; padding: 24px; object-fit: contain; }
.mm-product-body { min-height: 274px; padding: 16px; }
.mm-product-code { color: var(--mm-muted); font-size: 10px; }
.mm-product-title { margin-top: 10px; font-size: 16px; }
.mm-product-title a { color: var(--mm-ink); }
.mm-product-title a:hover { color: var(--mm-brand); }
.mm-product-spec { min-height: 18px; color: var(--mm-muted); }
.mm-product-fulfilment { color: #475569; }
.mm-product-price { color: var(--mm-ink); }
.mm-card-rfq { border-color: #bfdbfe; color: var(--mm-brand); background: #fff; }
.mm-card-rfq:hover { border-color: var(--mm-brand); background: var(--mm-blue-bg); }
.mm-stock-badge.is-instock { color: var(--mm-green); background: var(--mm-green-bg); }
.mm-sale-badge { background: #e11d48; }
.mm-shop-page { padding: 36px 0 66px; }
.mm-shop-header { margin: 12px 0 28px; padding: 30px 32px; border: 1px solid #172f4c; border-radius: 10px; background: var(--mm-navy); }
.mm-shop-header h1 { color: #fff; }
.mm-shop-header .mm-eyebrow { color: #93c5fd; }
.mm-shop-header p { max-width: 470px; color: #cbd5e1; }
.mm-category-panel, .mm-catalog-toolbar { border-color: var(--mm-line); border-radius: 10px; background: #fff; box-shadow: none; }
.mm-category-panel nav a.is-active, .mm-category-panel nav a:hover { color: var(--mm-brand); background: var(--mm-blue-bg); }
.mm-panel-note { background: #f8fafc; }
.mm-catalog-toolbar select, .woocommerce .woocommerce-ordering select { border-color: var(--mm-line-strong); border-radius: 7px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border-color: var(--mm-line); }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { color: var(--mm-ink); }
.woocommerce nav.woocommerce-pagination ul li span.current { color: #fff; background: var(--mm-brand); }

/* Product details keep the same catalog hierarchy while retaining WooCommerce controls. */
.mm-product-detail { padding: 34px 0 0; }
.mm-product-gallery .woocommerce-product-gallery__wrapper { overflow: hidden; border: 1px solid var(--mm-line); border-radius: 10px; background: #fff; }
.mm-product-gallery .woocommerce-product-gallery__image { background: #f8fafc; }
.mm-product-summary { padding: 28px; border: 1px solid var(--mm-line); border-radius: 10px; background: #fff; box-shadow: var(--mm-shadow); }
.mm-product-summary h1 { color: var(--mm-ink); }
.mm-summary-meta { padding-bottom: 12px; border-bottom: 1px solid var(--mm-line); }
.mm-summary-price .price, .mm-summary-price ins { color: var(--mm-brand); }
.mm-order-facts { background: #f8fafc; border: 1px solid var(--mm-line); border-radius: 8px; overflow: hidden; }
.mm-order-facts > div { padding: 11px 14px; }
.mm-detail-cart .quantity .qty, .mm-detail-cart table.variations select { border-color: var(--mm-line-strong); border-radius: 7px; }
.mm-detail-cart .single_add_to_cart_button { border-radius: 8px !important; background: var(--mm-brand) !important; }
.mm-product-information { margin-top: 0; padding: 48px 0; border-top: 1px solid var(--mm-line); background: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-color: var(--mm-line); border-radius: 7px 7px 0 0; background: #f8fafc; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-color: var(--mm-brand); background: #fff; }
.mm-related-products { padding: 48px 0 64px; }

.mm-demo-process { background: #fff; }
.mm-demo-process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--mm-line); border-radius: 10px; overflow: hidden; background: #fff; }
.mm-demo-process-grid article { position: relative; min-height: 212px; padding: 24px; border-right: 1px solid var(--mm-line); }
.mm-demo-process-grid article:last-child { border-right: 0; }
.mm-demo-process-grid article > span { display: block; margin-bottom: 22px; color: #94a3b8; font-size: 12px; font-weight: 800; }
.mm-demo-process-grid article > i { color: var(--mm-brand); font-size: 21px; }
.mm-demo-process-grid h3 { margin: 16px 0 8px; }
.mm-demo-process-grid p { margin: 0; color: var(--mm-muted); font-size: 13px; line-height: 1.65; }
.mm-demo-industrial { padding: 58px 0; color: #dbeafe; background: #102b46; }
.mm-demo-industrial-grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; align-items: center; gap: 64px; }
.mm-demo-industrial h2 { max-width: 580px; margin-bottom: 14px; color: #fff; font-size: 32px; }
.mm-demo-industrial p { max-width: 620px; margin-bottom: 24px; color: #cbd5e1; line-height: 1.7; }
.mm-demo-industrial .mm-button-primary { color: #fff; }
.mm-demo-industrial-visual { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 12px; min-height: 224px; padding: 32px; border: 1px solid rgba(191, 219, 254, .25); border-radius: 10px; background: #0b1f33; }
.mm-demo-industrial-visual span { display: block; height: 124px; border: 1px solid #60a5fa; border-radius: 8px; background: #1e40af; box-shadow: inset 0 0 0 8px rgba(15, 23, 42, .2); }
.mm-demo-industrial-visual span:nth-child(2), .mm-demo-industrial-visual span:nth-child(4) { height: 82px; background: #2563eb; }
.mm-demo-industrial-visual b { grid-column: 1 / -1; color: #bfdbfe; font-size: 12px; text-align: center; }

/* RFQ page follows the demo's split form and response timeline. */
.mm-demo-rfq-page { padding: 38px 0 68px; }
.mm-demo-rfq-hero { margin-bottom: 26px; padding: 38px 40px; border: 1px solid #183553; border-radius: 10px; background: var(--mm-navy); }
.mm-demo-rfq-hero h1 { margin-bottom: 14px; color: #fff; font-size: 40px; }
.mm-demo-rfq-hero p { max-width: 700px; margin: 0; color: #cbd5e1; font-size: 16px; line-height: 1.7; }
.mm-demo-rfq-hero .mm-demo-kicker { margin-bottom: 12px; }
.mm-demo-rfq-hero .mm-rfq-reference { min-width: 164px; padding: 14px 16px; border: 1px solid rgba(191, 219, 254, .34); border-radius: 8px; background: rgba(37, 99, 235, .18); }
.mm-demo-rfq-hero .mm-rfq-reference span { color: #bfdbfe; }
.mm-demo-rfq-hero .mm-rfq-reference strong { color: #fff; }
.mm-rfq-layout { grid-template-columns: minmax(0, 1.45fr) minmax(310px, .72fr); gap: 28px; align-items: start; }
.mm-rfq-form { padding: 30px; border: 1px solid var(--mm-line); border-radius: 10px; box-shadow: var(--mm-shadow); }
.mm-rfq-form section + section { margin-top: 34px; padding-top: 32px; border-top-color: var(--mm-line); }
.mm-form-section-heading { margin-bottom: 22px; }
.mm-form-section-heading > span { width: 34px; height: 34px; border-radius: 8px; color: #fff; background: var(--mm-brand); }
.mm-form-section-heading h2 { font-size: 21px; }
.mm-form-section-heading p { color: var(--mm-muted); }
.mm-form-grid { gap: 16px; }
.mm-form-grid label > span { color: #334155; font-weight: 700; }
.mm-form-grid input, .mm-form-grid textarea { border-color: var(--mm-line-strong); border-radius: 7px; background: #fff; }
.mm-form-grid input:focus, .mm-form-grid textarea:focus { border-color: var(--mm-brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.mm-selected-product { border-color: #bfdbfe; border-radius: 8px; background: var(--mm-blue-bg); }
.mm-rfq-submit { min-width: 178px; margin-top: 30px; }
.mm-rfq-guidance { padding: 26px; border: 1px solid var(--mm-line); border-left: 1px solid var(--mm-line); border-radius: 10px; background: #fff; box-shadow: var(--mm-shadow); }
.mm-rfq-guidance > .mm-demo-kicker { margin-bottom: 9px; }
.mm-rfq-guidance h2 { margin-bottom: 22px; font-size: 23px; }
.mm-rfq-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mm-rfq-timeline li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; padding: 0 0 21px; border: 0; }
.mm-rfq-timeline li:last-child { padding-bottom: 0; }
.mm-rfq-timeline > li > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--mm-brand); background: var(--mm-blue-bg); font-size: 10px; font-weight: 800; }
.mm-rfq-timeline div { position: relative; padding-bottom: 1px; }
.mm-rfq-timeline li:not(:last-child) div::after { position: absolute; top: 34px; left: -31px; width: 1px; height: calc(100% - 7px); background: var(--mm-line); content: ''; }
.mm-rfq-timeline strong { display: block; color: var(--mm-ink); font-size: 14px; }
.mm-rfq-timeline p { margin: 5px 0 0; color: var(--mm-muted); font-size: 12px; line-height: 1.6; }
.mm-rfq-security-note { display: flex; gap: 8px; margin: 22px 0 0; padding-top: 17px; border-top: 1px solid var(--mm-line); color: var(--mm-muted); font-size: 11px; }
.mm-rfq-security-note i { margin-top: 2px; color: var(--mm-brand); }

.site-footer { background: var(--mm-navy); }
.footer-logo { border-radius: 8px; }

@media (max-width: 1080px) {
    .mm-demo-hero-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 36px; }
    .mm-demo-family-grid, .mm-demo-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mm-demo-family-card:nth-child(2n) { border-right: 1px solid var(--mm-line); }
    .mm-demo-process-grid article:nth-child(2) { border-right: 0; }
    .mm-demo-process-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--mm-line); }
    .mm-demo-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mm-demo-industrial-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
}

@media (max-width: 860px) {
    .header-inner { grid-template-columns: minmax(150px, 1fr) auto; }
    .mm-demo-hero { padding: 40px 0; }
    .mm-demo-hero-grid, .mm-demo-industrial-grid { grid-template-columns: 1fr; gap: 28px; }
    .mm-demo-hero-copy { max-width: none; }
    .mm-demo-finder-panel { max-width: 600px; }
    .mm-demo-industrial-visual { max-width: 520px; }
    .mm-demo-rfq-hero { align-items: flex-start; flex-direction: column; padding: 30px; }
    .mm-rfq-layout { grid-template-columns: 1fr; }
    .mm-rfq-guidance { max-width: none; }
}

@media (max-width: 620px) {
    .mm-demo-hero h1 { font-size: 36px; }
    .mm-demo-hero-copy > p { font-size: 15px; }
    .mm-demo-hero-actions .mm-button { width: 100%; }
    .mm-demo-finder-panel { padding: 17px; }
    .mm-demo-finder-stats strong { font-size: 18px; }
    .mm-demo-families, .mm-demo-products, .mm-demo-process { padding: 42px 0; }
    .mm-demo-section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
    .mm-demo-section-heading h2 { font-size: 25px; }
    .mm-demo-family-grid, .mm-demo-process-grid, .mm-demo-products-grid { grid-template-columns: 1fr; }
    .mm-demo-process-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--mm-line); }
    .mm-demo-process-grid article:last-child { border-bottom: 0; }
    .mm-demo-product-grid .mm-product-card { min-width: 0; }
    .mm-demo-industrial { padding: 42px 0; }
    .mm-demo-industrial h2, .mm-demo-rfq-hero h1 { font-size: 28px; }
    .mm-demo-industrial-visual { grid-template-columns: repeat(4, 1fr); min-height: 160px; padding: 18px; }
    .mm-demo-industrial-visual span { height: 84px; }
    .mm-demo-industrial-visual span:nth-child(2), .mm-demo-industrial-visual span:nth-child(4) { height: 56px; }
    .mm-demo-rfq-page { padding-top: 22px; }
    .mm-demo-rfq-hero { padding: 24px 20px; }
    .mm-rfq-form, .mm-rfq-guidance { padding: 20px 16px; }
    .mm-rfq-submit { width: 100%; }
    .mm-product-detail { padding-top: 22px; }
    .mm-product-summary { padding: 20px 16px; }
}

/* MagnetMart 2.3 — Magenta industrial sourcing exchange. */
:root {
    --mm-bg: #fff9fc;
    --mm-surface: #ffffff;
    --mm-surface-soft: #fff2f7;
    --mm-ink: #24121c;
    --mm-muted: #735d68;
    --mm-line: #eedde6;
    --mm-line-strong: #d8bdcc;
    --mm-brand: #d11368;
    --mm-brand-dark: #9f0d4d;
    --mm-brand-bright: #f4318b;
    --mm-brand-pale: #fff0f7;
    --mm-navy: #1d1018;
    --mm-carbon: #160b13;
    --mm-green: #087a52;
    --mm-green-bg: #ebfbf4;
    --mm-amber: #9a5a08;
    --mm-amber-bg: #fff6dd;
    --mm-blue: #8d154b;
    --mm-blue-bg: #fff0f6;
    --mm-radius: 16px;
    --mm-shadow: 0 16px 38px rgba(65, 17, 43, .11);
    --mm-container: 1360px;
}

body {
    color: var(--mm-ink);
    background: var(--mm-bg);
    font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

body::selection { color: #fff; background: var(--mm-brand); }
a:hover { color: var(--mm-brand); }
.site-content { overflow: clip; }

/* Global marketplace chrome */
.mm-market-topbar { position: relative; overflow: hidden; background: var(--mm-carbon); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mm-market-topbar::after { position: absolute; top: 0; right: 10%; width: 180px; height: 100%; opacity: .28; background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 255, 255, .16) 7px 8px); content: ""; pointer-events: none; }
.mm-market-topbar .mm-topbar-inner { position: relative; z-index: 1; min-height: 36px; }
.mm-market-topbar-left, .mm-market-topbar-right { display: flex; align-items: center; gap: 10px; }
.mm-market-topbar-right a { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; color: #ffbadb; font-weight: 800; }
.mm-market-topbar-right a:hover { color: #fff; }
.mm-market-pulse, .mm-footer-signal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mm-brand-bright); box-shadow: 0 0 0 5px rgba(244, 49, 139, .13); }

.site-header.mm-market-header { position: relative; border-color: var(--mm-line); background: rgba(255, 255, 255, .96); }
.mm-market-header-inner { min-height: 92px; grid-template-columns: 248px minmax(300px, 650px) auto; gap: clamp(20px, 3vw, 54px); }
.site-branding { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 5px; }
.site-branding img, .site-branding .custom-logo { max-width: 204px; max-height: 42px; object-fit: contain; object-position: left center; }
.mm-brand-tagline { color: #8a6979; font-family: "Arial Narrow", "Noto Sans SC", sans-serif; font-size: 8px; font-weight: 800; letter-spacing: .16em; white-space: nowrap; }
.mm-market-search { position: relative; padding-top: 18px; }
.mm-market-search .mm-search-form { height: 48px; border: 1px solid var(--mm-line-strong); border-radius: 4px; box-shadow: none; }
.mm-market-search .mm-search-form:focus-within { border-color: var(--mm-brand); box-shadow: 0 0 0 4px rgba(209, 19, 104, .11); }
.mm-market-search .mm-search-form button, .mm-market-search .mm-search-form button:hover { width: 110px; color: #fff; background: var(--mm-brand); }
.mm-market-search .mm-search-form button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mm-search-hints { display: flex; gap: 11px; padding: 7px 0 0 2px; color: #a08291; font-size: 11px; }
.mm-search-hints a { color: #806170; }
.mm-search-hints a:hover { color: var(--mm-brand); }
.mm-market-actions { gap: 8px; }
.mm-market-actions .mm-icon-link, .mm-market-actions .cart-button { min-height: 42px; border-color: transparent; border-radius: 4px; background: #fff7fb; }
.mm-market-actions .mm-icon-link:hover, .mm-market-actions .cart-button:hover { border-color: #f6b6d5; color: var(--mm-brand); background: var(--mm-brand-pale); }
.mm-market-actions .mm-rfq-link { min-height: 42px; border-radius: 4px; background: var(--mm-brand); box-shadow: 0 8px 18px rgba(209, 19, 104, .2); }
.mm-market-actions .mm-rfq-link:hover { background: var(--mm-brand-dark); }

.mm-market-nav { position: relative; z-index: 20; border-bottom-color: var(--mm-line); background: #fff; }
.mm-market-nav .mm-nav-inner { min-height: 50px; display: grid; grid-template-columns: 250px minmax(0, 1fr) auto; }
.mm-category-menu { position: relative; height: 100%; }
.mm-market-nav .mm-products-link { width: 100%; min-height: 50px; justify-content: flex-start; gap: 10px; padding: 0 18px; color: #fff; background: var(--mm-carbon); border-radius: 0; font-size: 13px; }
.mm-market-nav .mm-products-link > i:last-child { margin-left: auto; font-size: 10px; }
.mm-market-nav .mm-products-link:hover { color: #fff; background: var(--mm-brand-dark); }
.mm-primary-menu { gap: 0; padding-left: 12px; }
.mm-primary-menu > li > a { height: 50px; padding: 0 16px; color: #3c2632; font-size: 13px; font-weight: 800; }
.mm-primary-menu > li > a:hover, .mm-primary-menu > li.current-menu-item > a { color: var(--mm-brand); }
.mm-primary-menu > li.current-menu-item > a::after { position: absolute; right: 16px; bottom: 0; left: 16px; height: 3px; background: var(--mm-brand); content: ""; }
.mm-primary-menu .sub-menu { border-color: var(--mm-line); border-radius: 0 0 8px 8px; box-shadow: var(--mm-shadow); }
.mm-primary-menu .sub-menu a:hover { color: var(--mm-brand); background: var(--mm-brand-pale); }
.mm-nav-assurance { display: inline-flex; align-items: center; gap: 7px; padding-right: 4px; color: #785868; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mm-nav-assurance i { color: var(--mm-brand); }
.mm-category-flyout { position: absolute; top: calc(100% - 1px); left: 0; display: none; width: 630px; padding: 22px; border: 1px solid var(--mm-line); border-top: 3px solid var(--mm-brand); background: #fff; box-shadow: 0 24px 44px rgba(44, 13, 31, .18); }
.mm-category-menu:hover .mm-category-flyout, .mm-category-menu:focus-within .mm-category-flyout { display: block; }
.mm-category-flyout-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mm-category-flyout-heading > span { color: var(--mm-ink); font-size: 15px; font-weight: 900; }
.mm-category-flyout-heading a { display: inline-flex; align-items: center; gap: 6px; color: var(--mm-brand); font-size: 12px; font-weight: 800; }
.mm-category-flyout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mm-category-flyout-grid a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 11px 12px; border: 1px solid transparent; background: #fff; }
.mm-category-flyout-grid a:hover { border-color: #f6c0da; color: var(--mm-brand); background: var(--mm-brand-pale); }
.mm-category-flyout-grid span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.mm-category-flyout-grid small { color: var(--mm-muted); font-size: 11px; }

/* Homepage hero: operational, information-rich, and distinctly magenta. */
.mm-exchange-hero { position: relative; padding: 28px 0 34px; color: #fff; background: var(--mm-carbon); }
.mm-exchange-hero::before { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 34px 34px; content: ""; pointer-events: none; }
.mm-exchange-hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr) 290px; gap: 20px; align-items: stretch; }
.mm-hero-category-rail { padding: 18px 12px 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .035); backdrop-filter: blur(8px); }
.mm-hero-rail-title { display: flex; align-items: center; gap: 9px; padding: 0 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 900; }
.mm-hero-rail-title i { color: #ff77b5; }
.mm-hero-category-rail nav { display: grid; padding: 6px 0; }
.mm-hero-category-rail nav a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 12px; align-items: center; gap: 8px; min-height: 38px; padding: 0 8px; color: #f5dce8; font-size: 12px; }
.mm-hero-category-rail nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.mm-hero-category-rail nav a > i:first-child { color: #ff8dc4; font-size: 12px; text-align: center; }
.mm-hero-category-rail nav a > i:last-child { opacity: .55; font-size: 9px; }
.mm-hero-rail-all { display: flex; align-items: center; justify-content: space-between; margin: 7px 8px 0; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 800; }
.mm-hero-rail-all i { color: #ff75b4; }

.mm-exchange-stage { position: relative; min-height: 466px; padding: clamp(34px, 4vw, 66px) clamp(28px, 5vw, 72px) 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); background: #28111f; isolation: isolate; }
.mm-exchange-stage::before { position: absolute; right: -82px; bottom: -150px; z-index: -1; width: 410px; height: 410px; border: 58px solid rgba(255, 49, 139, .19); border-radius: 50%; box-shadow: 0 0 0 46px rgba(255, 49, 139, .08), 0 0 0 92px rgba(255, 49, 139, .04); content: ""; }
.mm-exchange-stage::after { position: absolute; top: 0; right: 74px; bottom: 0; width: 1px; background: rgba(255, 255, 255, .15); content: ""; }
.mm-stage-signal { position: absolute; z-index: -1; width: 12px; height: 12px; border-radius: 50%; background: #ff76b7; box-shadow: 0 0 0 8px rgba(255, 118, 183, .09); animation: mm-signal 3.6s ease-in-out infinite; }
.mm-stage-signal-one { top: 25%; right: 24%; }
.mm-stage-signal-two { right: 14%; bottom: 27%; width: 8px; height: 8px; animation-delay: -1.6s; }
@keyframes mm-signal { 50% { transform: scale(1.5); opacity: .52; } }
.mm-market-kicker { display: inline-flex; align-items: center; gap: 8px; color: #ff9acb; font-family: "Arial Narrow", "Noto Sans SC", sans-serif; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.mm-exchange-stage h1 { max-width: 670px; margin: 18px 0 18px; color: #fff; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(36px, 4.3vw, 62px); font-weight: 800; letter-spacing: -.05em; line-height: 1.12; }
.mm-exchange-stage > p { max-width: 580px; margin: 0 0 26px; color: #ebcbdc; font-size: 15px; line-height: 1.75; }
.mm-stage-search { position: relative; z-index: 1; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; max-width: 635px; min-height: 58px; margin-bottom: 18px; padding-left: 18px; border: 1px solid rgba(255, 255, 255, .28); background: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, .18); }
.mm-stage-search > i { color: #966e81; }
.mm-stage-search input { min-width: 0; height: 56px; padding: 0 14px; border: 0; outline: 0; color: var(--mm-ink); background: transparent; }
.mm-stage-search button { align-self: stretch; padding: 0 20px; border: 0; color: #fff; background: var(--mm-brand); font-weight: 800; cursor: pointer; }
.mm-stage-search button:hover { background: var(--mm-brand-dark); }
.mm-stage-actions { display: flex; align-items: center; gap: 18px; }
.mm-stage-actions .mm-button { min-height: 44px; border-radius: 3px; box-shadow: none; }
.mm-stage-text-action { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 13px; font-weight: 800; }
.mm-stage-text-action::after { width: 30px; height: 1px; background: #ff73b5; content: ""; }
.mm-stage-text-action:hover { color: #ffb5d9; }
.mm-stage-proof { position: absolute; right: 28px; bottom: 24px; display: flex; gap: 22px; padding: 13px 0; }
.mm-stage-proof > div { display: grid; gap: 2px; min-width: 52px; }
.mm-stage-proof strong { color: #fff; font-family: "Noto Serif SC", serif; font-size: 22px; }
.mm-stage-proof span { color: #d3a4bc; font-size: 10px; white-space: nowrap; }
.mm-hero-project-card { display: flex; flex-direction: column; padding: 24px; color: #fff; background: var(--mm-brand); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.mm-project-card-top { display: flex; align-items: center; justify-content: space-between; color: #ffd6e8; font-family: "Arial Narrow", sans-serif; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.mm-project-card-top i { color: #fff; }
.mm-hero-project-card h2 { margin: 39px 0 14px; color: #fff; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 25px; line-height: 1.32; }
.mm-hero-project-card p { margin: 0 0 22px; color: #ffe3ef; font-size: 12px; line-height: 1.7; }
.mm-hero-project-card ul { display: grid; gap: 10px; margin: 0; padding: 17px 0; border-top: 1px solid rgba(255, 255, 255, .25); list-style: none; }
.mm-hero-project-card li { display: flex; gap: 9px; color: #fff; font-size: 12px; }
.mm-hero-project-card li i { color: #ffd4e8; }
.mm-hero-project-card > a { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 13px 14px; color: var(--mm-brand-dark); background: #fff; font-size: 13px; font-weight: 900; }
.mm-hero-project-card > a:hover { color: var(--mm-carbon); background: #ffeaf4; }

.mm-market-strip { position: relative; z-index: 2; border-bottom: 1px solid var(--mm-line); background: #fff; }
.mm-market-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mm-market-strip-grid > div { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 0 22px; border-right: 1px solid var(--mm-line); }
.mm-market-strip-grid > div:first-child { padding-left: 0; }
.mm-market-strip-grid > div:last-child { padding-right: 0; border-right: 0; }
.mm-market-strip-grid > div > i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--mm-brand); background: var(--mm-brand-pale); }
.mm-market-strip-grid span { display: grid; gap: 3px; }
.mm-market-strip-grid strong { color: var(--mm-ink); font-size: 12px; }
.mm-market-strip-grid small { color: var(--mm-muted); font-size: 10px; }

/* Marketplace category discovery and product cards. */
.mm-market-categories { padding: 86px 0 62px; background: #fff; }
.mm-market-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.mm-market-section-head h2 { max-width: 720px; margin: 12px 0 0; color: var(--mm-ink); font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(28px, 3vw, 42px); line-height: 1.22; }
.mm-market-kicker.is-dark { color: #9e6a82; }
.mm-market-kicker.is-pink { color: var(--mm-brand); }
.mm-section-link { display: inline-flex; align-items: center; gap: 9px; padding-bottom: 7px; border-bottom: 1px solid var(--mm-brand); color: var(--mm-brand); font-size: 13px; font-weight: 900; white-space: nowrap; }
.mm-section-link:hover { color: var(--mm-brand-dark); }
.mm-market-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mm-market-category-card { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; min-height: 146px; padding: 22px; overflow: hidden; border: 1px solid var(--mm-line); color: var(--mm-ink); background: #fff; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.mm-market-category-card::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--mm-brand); content: ""; transform: scaleY(0); transform-origin: bottom; transition: transform .22s ease; }
.mm-market-category-card:hover { border-color: #ed9fc4; color: var(--mm-ink); box-shadow: var(--mm-shadow); transform: translateY(-3px); }
.mm-market-category-card:hover::before { transform: scaleY(1); }
.mm-market-category-index { grid-row: 1 / 3; align-self: end; color: #e9ccd9; font-family: "Noto Serif SC", serif; font-size: 19px; font-weight: 900; }
.mm-market-category-card > i { align-self: start; color: var(--mm-brand); font-size: 19px; }
.mm-market-category-card strong { align-self: end; color: var(--mm-ink); font-size: 16px; }
.mm-market-category-card small { grid-column: 2; color: var(--mm-muted); font-size: 11px; }
.mm-market-category-card em { grid-row: 1 / 3; align-self: center; color: var(--mm-brand); font-size: 12px; font-style: normal; }
.mm-market-products { padding: 72px 0 90px; background: #fff9fc; }
.mm-market-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mm-product-card { overflow: hidden; border-color: var(--mm-line); border-radius: 0; background: #fff; box-shadow: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.mm-product-card:hover { border-color: #ea9ac1; box-shadow: 0 20px 38px rgba(69, 15, 42, .13); transform: translateY(-4px); }
.mm-product-image { position: relative; min-height: 224px; background: #fff8fb; }
.mm-product-image::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--mm-brand); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.mm-product-card:hover .mm-product-image::after { transform: scaleX(1); }
.mm-product-image img { padding: 26px; }
.mm-card-badges { top: 12px; right: 12px; left: 12px; }
.mm-stock-badge { border-radius: 2px; font-size: 10px; letter-spacing: .03em; }
.mm-stock-badge.is-green, .mm-stock-badge.is-instock { color: var(--mm-green); background: var(--mm-green-bg); }
.mm-stock-badge.is-orange, .mm-stock-badge.is-amber { color: var(--mm-amber); background: var(--mm-amber-bg); }
.mm-stock-badge.is-red { color: #a50e44; background: #fff0f5; }
.mm-sale-badge { border-radius: 2px; background: var(--mm-brand); }
.mm-product-body { min-height: 274px; padding: 18px; }
.mm-product-code { color: #8f6d7d; font-size: 10px; letter-spacing: .06em; }
.mm-product-title { margin-top: 11px; font-size: 16px; line-height: 1.42; }
.mm-product-title a { color: var(--mm-ink); }
.mm-product-title a:hover { color: var(--mm-brand); }
.mm-product-spec { color: var(--mm-muted); }
.mm-product-fulfilment { color: #705665; }
.mm-product-fulfilment i { color: var(--mm-brand); }
.mm-product-price { color: var(--mm-ink); }
.mm-product-price ins, .mm-product-price .price { color: var(--mm-brand); }
.mm-card-rfq { border-color: #f3b5d3; border-radius: 2px; color: var(--mm-brand); background: #fff8fb; }
.mm-card-rfq:hover { border-color: var(--mm-brand); color: #fff; background: var(--mm-brand); }
.mm-product-actions .button { border-radius: 2px; background: var(--mm-brand); }
.mm-product-actions .button:hover { background: var(--mm-brand-dark); }
.mm-market-empty { display: flex; align-items: center; gap: 22px; padding: 42px; border: 1px dashed #d8a9c1; background: #fff; }
.mm-market-empty > i { color: var(--mm-brand); font-size: 36px; }
.mm-market-empty h3 { margin: 0 0 4px; }
.mm-market-empty p { margin: 0; color: var(--mm-muted); }
.mm-market-empty .mm-button { margin-left: auto; border-radius: 3px; }

/* Unified catalogue, detail, and RFQ surfaces. */
.mm-market-catalog-page { padding: 36px 0 82px; }
.mm-catalog-masthead { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: end; padding: 44px; overflow: hidden; color: #fff; background: var(--mm-carbon); }
.mm-catalog-masthead::after { position: absolute; top: -70px; right: 170px; width: 250px; height: 250px; border: 38px solid rgba(255, 56, 147, .19); border-radius: 50%; content: ""; }
.mm-catalog-masthead-copy { position: relative; z-index: 1; }
.mm-catalog-masthead .mm-market-kicker { color: #ff91c6; }
.mm-catalog-masthead h1 { margin: 14px 0 12px; color: #fff; font-family: "Noto Serif SC", serif; font-size: clamp(32px, 4vw, 52px); }
.mm-catalog-masthead p { max-width: 650px; margin: 0; color: #e8c9d8; line-height: 1.7; }
.mm-catalog-rfq { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 18px; color: #fff; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.mm-catalog-rfq span { color: #ffb6d9; font-size: 11px; }
.mm-catalog-rfq strong { font-size: 15px; }
.mm-catalog-rfq > i { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #ff96ca; }
.mm-catalog-rfq:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .14); }
.mm-catalog-category-strip { display: flex; gap: 8px; margin: 16px 0 26px; padding-bottom: 5px; overflow-x: auto; }
.mm-catalog-category-strip a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--mm-line); color: #604553; background: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.mm-catalog-category-strip a:hover { border-color: var(--mm-brand); color: var(--mm-brand); background: var(--mm-brand-pale); }
.mm-catalog-category-strip small { color: #a98293; font-size: 10px; }
.mm-category-panel, .mm-catalog-toolbar { border-color: var(--mm-line); border-radius: 0; box-shadow: none; }
.mm-category-panel { background: #fff; }
.mm-panel-heading { color: var(--mm-ink); background: #fff6fa; }
.mm-category-panel nav a { border-bottom-color: #f3e7ed; }
.mm-category-panel nav a:hover, .mm-category-panel nav a.is-active { color: var(--mm-brand); background: var(--mm-brand-pale); }
.mm-catalog-panel-note { display: grid; gap: 9px; margin: 16px; padding: 15px; border-top: 3px solid var(--mm-brand); background: #fff4f8; }
.mm-catalog-panel-note i { color: var(--mm-brand); }
.mm-catalog-panel-note p { margin: 0; color: #6d4e5e; font-size: 11px; line-height: 1.65; }
.mm-catalog-panel-note a { color: var(--mm-brand); font-size: 12px; font-weight: 900; }
.mm-catalog-toolbar { min-height: 58px; padding: 10px 14px; background: #fff; }
.mm-catalog-toolbar select, .woocommerce .woocommerce-ordering select { border-color: var(--mm-line-strong); border-radius: 2px; }
.mm-filter-toggle { border-radius: 2px; color: var(--mm-brand); background: var(--mm-brand-pale); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--mm-brand); }
.mm-product-gallery .woocommerce-product-gallery__wrapper { border-color: var(--mm-line); border-radius: 0; }
.mm-product-gallery .woocommerce-product-gallery__image { background: #fff8fb; }
.mm-product-summary { border-color: var(--mm-line); border-radius: 0; box-shadow: 16px 16px 0 #ffe4f0; }
.mm-product-summary h1 { font-family: "Noto Serif SC", serif; }
.mm-summary-meta { color: #806070; }
.mm-summary-price .price, .mm-summary-price ins { color: var(--mm-brand); }
.mm-summary-stock { border-top-color: var(--mm-line); border-bottom-color: var(--mm-line); }
.mm-order-facts { border-color: var(--mm-line); border-radius: 0; background: #fff8fb; }
.mm-order-facts > div { border-bottom-color: var(--mm-line); }
.mm-detail-cart .quantity .qty, .mm-detail-cart table.variations select { border-color: var(--mm-line-strong); border-radius: 2px; }
.mm-detail-cart .single_add_to_cart_button { border-radius: 2px !important; background: var(--mm-brand) !important; }
.mm-detail-cart .single_add_to_cart_button:hover { background: var(--mm-brand-dark) !important; }
.mm-product-information { border-top-color: var(--mm-line); background: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-color: var(--mm-brand); }
.mm-related-products { background: #fff9fc; }
.mm-demo-rfq-page { background: #fff9fc; }
.mm-demo-rfq-hero { border-color: var(--mm-carbon); border-radius: 0; background: var(--mm-carbon); }
.mm-demo-rfq-hero .mm-rfq-reference { border-color: rgba(255, 255, 255, .25); border-radius: 0; background: rgba(209, 19, 104, .28); }
.mm-demo-rfq-hero .mm-rfq-reference span { color: #ffb4d8; }
.mm-rfq-form, .mm-rfq-guidance { border-color: var(--mm-line); border-radius: 0; box-shadow: none; }
.mm-form-section-heading > span { border-radius: 2px; background: var(--mm-brand); }
.mm-form-grid input:focus, .mm-form-grid textarea:focus { border-color: var(--mm-brand); box-shadow: 0 0 0 3px rgba(209, 19, 104, .11); }
.mm-selected-product { border-color: #f5bed7; border-radius: 0; background: var(--mm-brand-pale); }
.mm-rfq-timeline > li > span { color: var(--mm-brand); background: var(--mm-brand-pale); }

/* Procurement process and closing RFQ callout. */
.mm-market-procurement { padding: 90px 0; background: #fff; }
.mm-market-procurement-grid { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); gap: 54px; align-items: center; }
.mm-procurement-copy h2 { max-width: 500px; margin: 13px 0 18px; font-family: "Noto Serif SC", serif; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.2; }
.mm-procurement-copy p { max-width: 500px; margin-bottom: 27px; color: var(--mm-muted); line-height: 1.8; }
.mm-procurement-copy .mm-button { border-radius: 3px; }
.mm-procurement-path { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--mm-line); border-left: 1px solid var(--mm-line); }
.mm-procurement-path article { position: relative; min-height: 218px; padding: 24px; border-right: 1px solid var(--mm-line); border-bottom: 1px solid var(--mm-line); }
.mm-procurement-path article::after { position: absolute; right: 18px; bottom: 18px; width: 26px; height: 26px; border-right: 1px solid #ecc5d7; border-bottom: 1px solid #ecc5d7; content: ""; }
.mm-procurement-path article > span { display: block; margin-bottom: 27px; color: #dfb7ca; font-family: "Noto Serif SC", serif; font-size: 16px; font-weight: 900; }
.mm-procurement-path article > i { color: var(--mm-brand); font-size: 20px; }
.mm-procurement-path h3 { margin: 15px 0 7px; font-size: 16px; }
.mm-procurement-path p { max-width: 210px; margin: 0; color: var(--mm-muted); font-size: 12px; line-height: 1.7; }
.mm-market-rfq-banner { padding: 0 0 82px; background: #fff; }
.mm-market-rfq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .55fr) auto; gap: 30px; align-items: center; padding: 30px 36px; color: #fff; background: var(--mm-brand); }
.mm-market-rfq-inner span { color: #ffd0e5; font-family: "Arial Narrow", sans-serif; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.mm-market-rfq-inner h2 { margin: 8px 0 0; color: #fff; font-family: "Noto Serif SC", serif; font-size: 26px; }
.mm-market-rfq-inner p { margin: 0; color: #ffe2ef; font-size: 13px; line-height: 1.65; }
.mm-market-rfq-inner > a { display: inline-flex; align-items: center; gap: 10px; justify-content: center; min-height: 46px; padding: 0 18px; color: var(--mm-brand-dark); background: #fff; font-size: 13px; font-weight: 900; white-space: nowrap; }
.mm-market-rfq-inner > a:hover { color: var(--mm-carbon); background: #ffe9f3; }

/* Footer becomes a procurement desk rather than a generic widget shelf. */
.mm-market-footer { color: #d9c5cf; background: var(--mm-carbon); }
.mm-footer-signal { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #f5dce8; font-size: 12px; }
.mm-footer-signal > div { display: flex; align-items: center; gap: 10px; }
.mm-footer-signal a { display: inline-flex; gap: 9px; color: #ff95c9; font-weight: 900; }
.mm-footer-signal a:hover { color: #fff; }
.mm-market-footer-grid { grid-template-columns: 1.45fr .75fr .75fr 1fr; gap: 38px; padding-top: 54px; padding-bottom: 50px; }
.mm-market-footer .footer-logo { display: inline-block; padding: 0; border-radius: 0; background: transparent; }
.mm-market-footer .footer-logo img { width: 188px; max-height: 40px; object-fit: contain; object-position: left; }
.mm-market-footer .footer-company p { max-width: 380px; margin-top: 18px; color: #bca7b2; line-height: 1.75; }
.mm-footer-stamps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mm-footer-stamps span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(255, 255, 255, .15); color: #e6d0db; font-size: 10px; }
.mm-footer-stamps i { color: #ff85c2; }
.mm-market-footer .footer-column h3 { margin: 2px 0 16px; color: #fff; font-size: 13px; }
.mm-footer-links { display: grid; align-content: start; gap: 11px; }
.mm-footer-links a { color: #cdb8c3; font-size: 12px; }
.mm-footer-links a:hover { color: #fff; }
.mm-footer-contact p { margin: 0 0 16px; color: #bca7b2; font-size: 12px; line-height: 1.75; }
.mm-footer-rfq { display: inline-flex; align-items: center; gap: 9px; padding: 10px 12px; color: #fff; background: var(--mm-brand); font-size: 12px; font-weight: 900; }
.mm-footer-rfq:hover { color: #fff; background: var(--mm-brand-dark); }
.mm-market-footer .footer-bottom { border-top-color: rgba(255, 255, 255, .12); }
.mm-market-footer .footer-bottom .container { color: #9f8995; font-size: 10px; }

@media (max-width: 1120px) {
    .mm-market-header-inner { grid-template-columns: 210px minmax(250px, 1fr) auto; gap: 20px; }
    .mm-account-link { display: none; }
    .mm-exchange-hero-layout { grid-template-columns: 220px minmax(0, 1fr); }
    .mm-hero-project-card { display: none; }
    .mm-market-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mm-market-footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .mm-footer-contact { grid-column: 1 / -1; max-width: 440px; }
}

@media (max-width: 860px) {
    .mm-market-topbar-right { display: none; }
    .mm-market-header-inner { min-height: 78px; grid-template-columns: minmax(160px, 1fr) auto; }
    .mm-market-search { display: none; }
    .mm-brand-tagline { display: none; }
    .mm-market-actions .mm-rfq-link span { display: none; }
    .mm-market-actions .mm-rfq-link { width: 42px; padding: 0; }
    .mm-market-nav .mm-nav-inner { display: block; }
    .mm-nav-assurance { display: none; }
    .mm-category-menu { height: auto; }
    .mm-market-nav .mm-products-link { min-height: 46px; }
    .mm-category-flyout { display: none !important; }
    .mm-primary-menu { padding-left: 0; }
    .mm-primary-menu > li > a { height: 44px; }
    .mm-primary-menu > li.current-menu-item > a::after { display: none; }
    .mm-exchange-hero { padding: 0 0 24px; }
    .mm-exchange-hero-layout { grid-template-columns: 1fr; gap: 0; width: 100%; }
    .mm-hero-category-rail { display: none; }
    .mm-exchange-stage { min-height: 455px; padding: 50px 24px 24px; border-right: 0; border-left: 0; }
    .mm-stage-proof { right: 24px; left: 24px; justify-content: space-between; }
    .mm-market-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mm-market-strip-grid > div, .mm-market-strip-grid > div:first-child, .mm-market-strip-grid > div:last-child { min-height: 72px; padding: 0 14px; border-bottom: 1px solid var(--mm-line); }
    .mm-market-strip-grid > div:nth-child(2n) { border-right: 0; }
    .mm-market-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mm-market-procurement-grid { grid-template-columns: 1fr; gap: 34px; }
    .mm-catalog-masthead { grid-template-columns: 1fr; padding: 34px 26px; }
    .mm-catalog-rfq { max-width: 280px; }
    .mm-market-rfq-inner { grid-template-columns: 1fr auto; }
    .mm-market-rfq-inner p { display: none; }
}

@media (max-width: 620px) {
    .mm-market-topbar .mm-topbar-inner { min-height: 32px; font-size: 10px; }
    .mm-market-actions { gap: 5px; }
    .mm-market-actions .cart-button, .mm-market-actions .mm-rfq-link, .mm-mobile-toggle { width: 38px; min-height: 38px; }
    .mm-market-actions .cart-button { padding: 0; }
    .mm-market-actions .cart-button .mm-cart-count { top: 1px; right: 1px; }
    .mm-exchange-stage { min-height: 490px; padding-top: 38px; }
    .mm-exchange-stage h1 { font-size: 37px; }
    .mm-exchange-stage > p { font-size: 13px; }
    .mm-stage-search { grid-template-columns: 16px minmax(0, 1fr); min-height: 52px; margin-bottom: 14px; padding-left: 14px; }
    .mm-stage-search input { height: 52px; padding: 0 10px; font-size: 12px; }
    .mm-stage-search button { grid-column: 1 / -1; min-height: 44px; }
    .mm-stage-actions { padding-top: 44px; }
    .mm-stage-actions .mm-button { width: 100%; }
    .mm-stage-text-action { display: none; }
    .mm-stage-proof { bottom: 18px; gap: 10px; }
    .mm-stage-proof strong { font-size: 18px; }
    .mm-stage-proof span { font-size: 9px; }
    .mm-market-strip-grid > div { gap: 9px; }
    .mm-market-strip-grid > div > i { width: 28px; height: 28px; font-size: 11px; }
    .mm-market-strip-grid strong { font-size: 11px; }
    .mm-market-strip-grid small { display: none; }
    .mm-market-categories, .mm-market-products, .mm-market-procurement { padding-top: 54px; padding-bottom: 54px; }
    .mm-market-section-head { align-items: flex-start; flex-direction: column; gap: 14px; }
    .mm-market-section-head h2 { font-size: 29px; }
    .mm-market-category-grid, .mm-market-products-grid { grid-template-columns: 1fr; }
    .mm-market-category-card { min-height: 116px; }
    .mm-market-empty { flex-wrap: wrap; padding: 26px; }
    .mm-market-empty .mm-button { margin-left: 0; }
    .mm-procurement-path { grid-template-columns: 1fr; }
    .mm-procurement-path article { min-height: 160px; }
    .mm-procurement-path article > span { margin-bottom: 14px; }
    .mm-catalog-masthead { margin-right: -16px; margin-left: -16px; }
    .mm-catalog-masthead h1 { font-size: 35px; }
    .mm-catalog-category-strip { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; }
    .mm-market-rfq-banner { padding-bottom: 54px; }
    .mm-market-rfq-inner { grid-template-columns: 1fr; gap: 18px; padding: 26px; }
    .mm-market-rfq-inner h2 { font-size: 23px; }
    .mm-market-rfq-inner > a { width: 100%; }
    .mm-footer-signal { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; min-height: 78px; }
    .mm-market-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 18px; padding-top: 38px; }
    .mm-market-footer .footer-company, .mm-footer-contact { grid-column: 1 / -1; }
    .mm-market-footer .footer-bottom .container { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    .mm-stage-signal { animation: none; }
    .mm-product-card, .mm-market-category-card { transition: none; }
}

/* MagnetMart 2.3.1 — restrained blue/black sourcing portal. */
:root {
    --mm-bg: #f6f8fb;
    --mm-surface: #ffffff;
    --mm-surface-soft: #f0f5ff;
    --mm-ink: #121926;
    --mm-muted: #657083;
    --mm-line: #e2e7ef;
    --mm-line-strong: #cbd5e1;
    --mm-brand: #1677ff;
    --mm-brand-dark: #0959cf;
    --mm-brand-bright: #4d96ff;
    --mm-brand-pale: #eef5ff;
    --mm-navy: #0e1726;
    --mm-carbon: #0b1220;
    --mm-green: #10855b;
    --mm-green-bg: #ecfbf4;
    --mm-amber: #a96308;
    --mm-amber-bg: #fff7e8;
    --mm-blue: #1677ff;
    --mm-blue-bg: #eef5ff;
    --mm-radius: 10px;
    --mm-shadow: 0 12px 28px rgba(18, 37, 63, .08);
    --mm-container: 1320px;
}

body { color: var(--mm-ink); background: var(--mm-bg); font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif; }
a:hover { color: var(--mm-brand); }

/* A compact, neutral header; blue is reserved for intent and action. */
.mm-market-topbar { background: var(--mm-carbon); }
.mm-market-topbar::after { display: none; }
.mm-market-topbar .mm-topbar-inner { min-height: 32px; font-size: 11px; }
.mm-market-topbar-right a { color: #9ec5ff; }
.mm-market-pulse { background: var(--mm-brand); box-shadow: 0 0 0 5px rgba(22, 119, 255, .16); }
.site-header.mm-market-header { background: #fff; }
.mm-market-header-inner { min-height: 76px; grid-template-columns: 220px minmax(280px, 650px) auto; gap: 34px; }
.site-branding { gap: 3px; }
.site-branding img, .site-branding .custom-logo { max-width: 184px; max-height: 40px; }
.mm-brand-tagline { color: #758096; font-size: 7px; letter-spacing: .12em; }
.mm-market-search { padding-top: 12px; }
.mm-market-search .mm-search-form { height: 42px; border-color: #dbe2ec; border-radius: 6px; }
.mm-market-search .mm-search-form button, .mm-market-search .mm-search-form button:hover { width: 82px; background: var(--mm-brand); }
.mm-search-hints { padding-top: 5px; font-size: 10px; }
.mm-market-actions .mm-icon-link, .mm-market-actions .cart-button { min-height: 38px; color: #263244; background: #f7f9fc; }
.mm-market-actions .mm-rfq-link { min-height: 38px; border-radius: 6px; box-shadow: none; background: var(--mm-brand); }
.mm-market-nav { border-top: 1px solid #eff2f7; }
.mm-market-nav .mm-nav-inner { min-height: 44px; grid-template-columns: 208px minmax(0, 1fr) auto; }
.mm-market-nav .mm-products-link { min-height: 44px; background: #111b2b; font-size: 12px; }
.mm-market-nav .mm-products-link:hover { background: var(--mm-brand-dark); }
.mm-primary-menu > li > a { height: 44px; padding: 0 15px; font-size: 12px; }
.mm-nav-assurance { font-size: 10px; }
.mm-category-flyout { width: 550px; border-top-color: var(--mm-brand); box-shadow: 0 16px 32px rgba(18, 37, 63, .14); }
.mm-category-flyout-grid a:hover { border-color: #cde0ff; color: var(--mm-brand); background: var(--mm-brand-pale); }

/* Search first: a single blue stage replaces the previous three-column hero. */
.mm-clean-hero { position: relative; overflow: hidden; padding: 48px 0 54px; color: #fff; background: var(--mm-brand); }
.mm-clean-hero::before { position: absolute; top: -130px; right: -70px; width: 44%; height: 520px; background: var(--mm-carbon); clip-path: polygon(43% 0, 100% 0, 100% 100%, 0 72%); content: ""; }
.mm-clean-hero::after { position: absolute; top: 0; right: 0; width: 44%; height: 100%; opacity: .3; background-image: linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, .38) 42% 42.8%, transparent 42.8% 100%); content: ""; }
.mm-clean-hero-inner { position: relative; z-index: 1; max-width: 920px; text-align: center; }
.mm-clean-hero-tabs { display: flex; justify-content: center; gap: 28px; margin-bottom: 28px; }
.mm-clean-hero-tabs a { position: relative; color: rgba(255, 255, 255, .75); font-size: 15px; font-weight: 800; }
.mm-clean-hero-tabs a.is-active, .mm-clean-hero-tabs a:hover { color: #fff; }
.mm-clean-hero-tabs a.is-active::after { position: absolute; right: 0; bottom: -10px; left: 0; height: 3px; border-radius: 4px; background: #fff; content: ""; }
.mm-clean-hero h1 { margin: 0 0 10px; color: #fff; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(30px, 4vw, 46px); line-height: 1.25; }
.mm-clean-hero p { margin: 0 0 25px; color: #dbeaff; font-size: 14px; }
.mm-clean-hero-search { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; min-height: 70px; padding-left: 21px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 18px 34px rgba(6, 35, 84, .19); text-align: left; }
.mm-clean-hero-search > i { color: #728097; }
.mm-clean-hero-search input { min-width: 0; height: 70px; padding: 0 16px; border: 0; outline: 0; color: var(--mm-ink); background: transparent; font-size: 15px; }
.mm-clean-hero-search button { align-self: center; min-width: 112px; height: 46px; margin-right: 12px; border: 0; border-radius: 24px; color: #fff; background: var(--mm-carbon); font-size: 14px; font-weight: 800; cursor: pointer; }
.mm-clean-hero-search button:hover { background: #202d40; }
.mm-clean-popular { display: flex; justify-content: center; gap: 13px; padding-top: 12px; color: #d8e7ff; font-size: 11px; }
.mm-clean-popular a { color: #fff; }
.mm-clean-popular a:hover { text-decoration: underline; }

.mm-clean-welcome { border-bottom: 1px solid var(--mm-line); background: #fff; }
.mm-clean-welcome-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.mm-clean-welcome-inner > div { display: flex; align-items: baseline; gap: 14px; }
.mm-clean-welcome strong { color: var(--mm-ink); font-family: "Noto Serif SC", serif; font-size: 21px; }
.mm-clean-welcome span { color: var(--mm-muted); font-size: 12px; }
.mm-clean-welcome nav { display: flex; align-items: center; }
.mm-clean-welcome nav a { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-right: 1px solid var(--mm-line); color: #263244; font-size: 12px; font-weight: 800; }
.mm-clean-welcome nav a:last-child { padding-right: 0; border-right: 0; }
.mm-clean-welcome nav i { color: var(--mm-brand); font-size: 15px; }
.mm-clean-welcome nav a:hover { color: var(--mm-brand); }

/* Content is deliberately quiet: compact category rows, then the product grid. */
.mm-clean-categories, .mm-clean-products { padding: 58px 0; background: #fff; }
.mm-clean-products { border-top: 1px solid #edf0f5; background: #f8fafc; }
.mm-clean-section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.mm-clean-section-head span { color: #778397; font-size: 11px; font-weight: 700; }
.mm-clean-section-head h2 { margin: 6px 0 0; color: var(--mm-ink); font-family: "Noto Serif SC", serif; font-size: 28px; }
.mm-clean-section-head > a { display: inline-flex; align-items: center; gap: 8px; color: var(--mm-brand); font-size: 12px; font-weight: 800; }
.mm-clean-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mm-clean-category-grid > a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 12px; align-items: center; gap: 12px; min-height: 80px; padding: 14px 16px; border: 1px solid var(--mm-line); color: var(--mm-ink); background: #fff; }
.mm-clean-category-grid > a:hover { border-color: #bcd7ff; color: var(--mm-ink); box-shadow: var(--mm-shadow); }
.mm-clean-category-grid > a > i:first-child { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; color: var(--mm-brand); background: var(--mm-brand-pale); }
.mm-clean-category-grid > a > span { display: grid; gap: 4px; }
.mm-clean-category-grid strong { font-size: 13px; }
.mm-clean-category-grid small { color: var(--mm-muted); font-size: 10px; }
.mm-clean-category-grid > a > i:last-child { color: #9aa6b6; font-size: 10px; }
.mm-clean-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mm-clean-empty { display: flex; align-items: center; gap: 16px; padding: 30px; border: 1px dashed #cbd5e1; background: #fff; }
.mm-clean-empty i { color: var(--mm-brand); font-size: 28px; }
.mm-clean-empty h3 { margin: 0 0 4px; font-size: 16px; }
.mm-clean-empty p { margin: 0; color: var(--mm-muted); font-size: 12px; }

.mm-clean-rfq { padding: 0 0 64px; background: #f8fafc; }
.mm-clean-rfq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr) auto; gap: 30px; align-items: center; padding: 27px 32px; color: #fff; background: var(--mm-carbon); }
.mm-clean-rfq-inner > div { display: grid; gap: 7px; }
.mm-clean-rfq-inner span { color: #91bfff; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.mm-clean-rfq-inner h2 { margin: 0; color: #fff; font-family: "Noto Serif SC", serif; font-size: 23px; }
.mm-clean-rfq-inner p { margin: 0; color: #c5d3e8; font-size: 12px; line-height: 1.7; }
.mm-clean-rfq-inner > a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 17px; border-radius: 4px; color: #fff; background: var(--mm-brand); font-size: 12px; font-weight: 800; white-space: nowrap; }
.mm-clean-rfq-inner > a:hover { color: #fff; background: var(--mm-brand-dark); }

/* Blue-black also carries through catalogue, cards, product pages, RFQ, and footer. */
.mm-product-card { border-color: var(--mm-line); border-radius: 8px; }
.mm-product-card:hover { border-color: #b9d5ff; box-shadow: var(--mm-shadow); transform: translateY(-2px); }
.mm-product-image { background: #f8fafc; }
.mm-product-image::after { background: var(--mm-brand); }
.mm-product-code { color: #7b8798; }
.mm-product-title a { color: var(--mm-ink); }
.mm-product-title a:hover { color: var(--mm-brand); }
.mm-product-fulfilment i, .mm-card-rfq { color: var(--mm-brand); }
.mm-card-rfq { border-color: #bcd7ff; background: #f6faff; }
.mm-card-rfq:hover { border-color: var(--mm-brand); background: var(--mm-brand); }
.mm-product-actions .button, .mm-button-primary { background: var(--mm-brand); border-color: var(--mm-brand); }
.mm-product-actions .button:hover, .mm-button-primary:hover { background: var(--mm-brand-dark); border-color: var(--mm-brand-dark); }
.mm-stock-badge.is-green, .mm-stock-badge.is-instock { color: var(--mm-green); background: var(--mm-green-bg); }
.mm-sale-badge { background: var(--mm-brand); }

.mm-catalog-masthead { background: var(--mm-carbon); }
.mm-catalog-masthead::after { border-color: rgba(22, 119, 255, .18); }
.mm-catalog-masthead .mm-market-kicker, .mm-catalog-rfq span { color: #9fc7ff; }
.mm-catalog-rfq { background: rgba(22, 119, 255, .16); }
.mm-catalog-category-strip a:hover, .mm-category-panel nav a:hover, .mm-category-panel nav a.is-active { border-color: #bdd8ff; color: var(--mm-brand); background: var(--mm-brand-pale); }
.mm-catalog-panel-note { border-top-color: var(--mm-brand); background: var(--mm-brand-pale); }
.mm-catalog-panel-note i, .mm-catalog-panel-note a { color: var(--mm-brand); }
.mm-filter-toggle { color: var(--mm-brand); background: var(--mm-brand-pale); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--mm-brand); }
.mm-product-summary { box-shadow: 10px 10px 0 #eaf3ff; }
.mm-summary-price .price, .mm-summary-price ins { color: var(--mm-brand); }
.mm-order-facts, .mm-selected-product { border-color: #dce9fb; background: #f6faff; }
.mm-detail-cart .single_add_to_cart_button { background: var(--mm-brand) !important; }
.mm-demo-rfq-hero { background: var(--mm-carbon); }
.mm-demo-rfq-hero .mm-rfq-reference { background: rgba(22, 119, 255, .2); }
.mm-demo-rfq-hero .mm-rfq-reference span { color: #a8ceff; }
.mm-form-section-heading > span { background: var(--mm-brand); }
.mm-form-grid input:focus, .mm-form-grid textarea:focus { border-color: var(--mm-brand); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.mm-rfq-timeline > li > span { color: var(--mm-brand); background: var(--mm-brand-pale); }

.mm-market-footer { background: var(--mm-carbon); }
.mm-footer-signal-dot { background: var(--mm-brand); box-shadow: 0 0 0 5px rgba(22, 119, 255, .13); }
.mm-footer-signal a, .mm-footer-stamps i { color: #9dc6ff; }
.mm-footer-rfq { background: var(--mm-brand); }
.mm-footer-rfq:hover { background: var(--mm-brand-dark); }

@media (max-width: 860px) {
    .mm-market-header-inner { min-height: 68px; }
    .mm-market-search { display: none; }
    .mm-clean-hero { padding: 38px 0 42px; }
    .mm-clean-hero::before { width: 64%; }
    .mm-clean-welcome-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 14px 0; }
    .mm-clean-welcome nav { width: 100%; justify-content: space-between; }
    .mm-clean-welcome nav a { flex: 1; justify-content: center; padding: 0 8px; }
    .mm-clean-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mm-clean-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mm-clean-rfq-inner { grid-template-columns: 1fr auto; }
    .mm-clean-rfq-inner p { display: none; }
}

@media (max-width: 620px) {
    .mm-market-topbar .mm-topbar-inner { justify-content: center; }
    .mm-clean-hero { padding: 32px 0 36px; }
    .mm-clean-hero::before { width: 78%; height: 330px; }
    .mm-clean-hero-tabs { gap: 18px; margin-bottom: 23px; }
    .mm-clean-hero-tabs a { font-size: 13px; }
    .mm-clean-hero h1 { font-size: 31px; }
    .mm-clean-hero p { padding: 0 8px; font-size: 12px; line-height: 1.7; }
    .mm-clean-hero-search { grid-template-columns: 18px minmax(0, 1fr); min-height: 56px; border-radius: 9px; padding-left: 16px; }
    .mm-clean-hero-search input { height: 56px; padding: 0 10px; font-size: 12px; }
    .mm-clean-hero-search button { grid-column: 1 / -1; width: calc(100% - 16px); height: 40px; margin: 0 8px 8px; }
    .mm-clean-popular { flex-wrap: wrap; gap: 7px 11px; padding: 10px 8px 0; }
    .mm-clean-welcome strong { font-size: 18px; }
    .mm-clean-welcome-inner > div { align-items: flex-start; flex-direction: column; gap: 3px; }
    .mm-clean-welcome nav a { font-size: 10px; }
    .mm-clean-welcome nav i { font-size: 12px; }
    .mm-clean-categories, .mm-clean-products { padding: 42px 0; }
    .mm-clean-section-head h2 { font-size: 24px; }
    .mm-clean-category-grid, .mm-clean-products-grid { grid-template-columns: 1fr; }
    .mm-clean-category-grid > a { min-height: 70px; }
    .mm-clean-rfq { padding-bottom: 44px; }
    .mm-clean-rfq-inner { grid-template-columns: 1fr; gap: 18px; padding: 23px; }
    .mm-clean-rfq-inner h2 { font-size: 20px; }
    .mm-clean-rfq-inner > a { width: 100%; }
}

/* MagnetMart 2.3.5 — compact B2B trade-market layout. */
.mm-market-topbar .mm-topbar-inner { min-height: 28px; }
.site-header.mm-market-header { position: relative; }
.mm-market-header-inner { min-height: 94px; grid-template-columns: 220px minmax(320px, 760px) auto; gap: 34px; }
.site-branding img, .site-branding .custom-logo { max-width: 184px; max-height: 46px; }
.mm-brand-tagline { display: none; }
.mm-market-search { padding-top: 0; }
.mm-market-search .mm-search-form { position: relative; grid-template-columns: minmax(0, 1fr) 104px; height: 54px; overflow: hidden; border: 2px solid var(--mm-brand); border-radius: 28px; }
.mm-market-search .mm-search-form input { position: relative; z-index: 1; padding-left: 20px; font-size: 14px; transition: opacity .18s ease, transform .18s ease; }
.mm-market-search .mm-search-form button, .mm-market-search .mm-search-form button:hover { position: relative; z-index: 2; width: 104px; height: 100%; margin: 0; overflow: hidden; border-radius: 0 26px 26px 0; background: var(--mm-brand); box-shadow: none; transition: background-color .18s ease; }
.mm-market-search .mm-search-form button:hover { background: var(--mm-brand-dark); }
.mm-market-search .mm-search-form:focus-within { border-color: var(--mm-brand); box-shadow: 0 0 0 3px rgba(32, 120, 255, .1); }
.mm-market-search .mm-search-form.is-placeholder-changing input { opacity: .42; transform: translateY(2px); }
.mm-market-search .mm-search-form.has-search-motion::before { position: absolute; z-index: 3; top: 0; left: -24%; width: 22%; height: 3px; border-radius: 99px; background: linear-gradient(90deg, transparent, #8fc1ff 30%, #fff 52%, #2f83ff 72%, transparent); box-shadow: 0 0 11px rgba(44, 132, 255, .85); content: ""; pointer-events: none; animation: mm-search-glint 4.6s ease-in-out infinite; }
.mm-market-search .mm-search-form:focus-within button i { transform: scale(1.06); }
.mm-market-search .mm-search-form button i { transition: transform .2s ease; }
.mm-search-hints { display: none; }
.mm-market-actions .mm-icon-link, .mm-market-actions .cart-button { background: #fff; }
.mm-market-actions .mm-rfq-link { min-height: 40px; }
.mm-market-nav .mm-nav-inner { min-height: 42px; grid-template-columns: minmax(0, 1fr) auto; }
.mm-market-nav .mm-category-menu { display: none; }
.mm-primary-menu { padding-left: 0; }
.mm-primary-menu > li > a { height: 42px; }

.mm-trade-home { padding: 0 0 68px; background: #f2f4f7; }
.mm-trade-topline { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.mm-trade-topline nav { display: flex; align-items: center; gap: 26px; }
.mm-trade-topline nav a { position: relative; color: #465267; font-size: 13px; font-weight: 800; }
.mm-trade-topline nav a.is-active, .mm-trade-topline nav a:hover { color: var(--mm-brand); }
.mm-trade-topline nav a.is-active::after { position: absolute; right: 0; bottom: -15px; left: 0; height: 3px; background: var(--mm-brand); content: ""; }
.mm-trade-topline > div { display: inline-flex; align-items: center; gap: 7px; color: #778397; font-size: 11px; }
.mm-trade-topline > div i { color: var(--mm-brand); }

.mm-trade-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.mm-trade-categories { display: flex; min-height: 464px; flex-direction: column; padding: 18px 14px 12px; background: #fff; box-shadow: 0 5px 16px rgba(19, 35, 58, .04); }
.mm-trade-categories > header { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 8px 12px; border-bottom: 1px solid var(--mm-line); }
.mm-trade-categories > header i { color: var(--mm-brand); }
.mm-trade-categories > header strong { font-size: 16px; }
.mm-trade-categories nav { display: grid; padding: 8px 0; }
.mm-trade-categories nav a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 10px; align-items: center; gap: 9px; min-height: 36px; padding: 0 8px; border-radius: 5px; color: #344054; font-size: 12px; }
.mm-trade-categories nav a:hover { color: var(--mm-brand); background: var(--mm-brand-pale); }
.mm-trade-categories nav a > i:first-child { color: #627087; font-size: 12px; text-align: center; }
.mm-trade-categories nav a:hover > i:first-child { color: var(--mm-brand); }
.mm-trade-categories nav a > i:last-child { color: #a8b1bf; font-size: 8px; }
.mm-trade-category-empty { display: flex; min-height: 112px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 16px 8px; color: #8a96a8; text-align: center; }
.mm-trade-category-empty > i { color: #aeb9c9; font-size: 20px; }
.mm-trade-category-empty > span { font-size: 11px; }
.mm-trade-category-empty > a { display: inline-flex !important; min-height: 0 !important; padding: 2px 0 !important; color: var(--mm-brand) !important; font-size: 10px !important; font-weight: 800; }
.mm-trade-categories-all { display: flex; align-items: center; justify-content: space-between; margin: auto 8px 0; padding-top: 12px; border-top: 1px solid var(--mm-line); color: var(--mm-brand); font-size: 11px; font-weight: 800; }

.mm-trade-dashboard { display: grid; gap: 14px; }
.mm-trade-panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 14px; }
.mm-trade-panel { min-width: 0; background: #fff; box-shadow: 0 5px 16px rgba(19, 35, 58, .04); }
.mm-trade-products-panel { padding: 18px; }
.mm-trade-products-panel > header { display: flex; align-items: center; justify-content: space-between; min-height: 38px; margin-bottom: 12px; }
.mm-trade-products-panel > header > div { display: grid; gap: 3px; }
.mm-trade-products-panel > header strong { color: var(--mm-ink); font-size: 17px; }
.mm-trade-products-panel > header span { color: var(--mm-muted); font-size: 10px; }
.mm-trade-products-panel > header a { color: #7c8798; font-size: 11px; }
.mm-trade-products-panel > header a:hover { color: var(--mm-brand); }
.mm-trade-mini-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mm-trade-mini-products > a { display: grid; grid-template-rows: 112px auto auto; gap: 5px; min-width: 0; padding: 8px; border-radius: 7px; color: var(--mm-ink); background: #f7f9fc; transition: transform .16s ease, box-shadow .16s ease; }
.mm-trade-mini-products > a:hover { color: var(--mm-ink); box-shadow: 0 8px 20px rgba(19, 35, 58, .1); transform: translateY(-2px); }
.mm-trade-mini-products img { width: 100%; height: 112px; object-fit: contain; mix-blend-mode: multiply; }
.mm-trade-mini-products span { overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mm-trade-mini-products strong { overflow: hidden; color: var(--mm-brand); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.mm-trade-empty-products { grid-column: 1 / -1; display: flex; min-height: 292px; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--mm-muted); background: #f7f9fc; font-size: 12px; }
.mm-trade-empty-products i { color: #a9b5c6; font-size: 28px; }

.mm-trade-rfq-panel { display: flex; min-height: 392px; flex-direction: column; padding: 24px; color: #fff; background: var(--mm-carbon); }
.mm-trade-rfq-panel > div > span { color: #91bfff; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.mm-trade-rfq-panel h2 { margin: 17px 0 10px; color: #fff; font-family: "Noto Serif SC", serif; font-size: 26px; }
.mm-trade-rfq-panel p { margin: 0; color: #c2cee0; font-size: 12px; line-height: 1.75; }
.mm-trade-rfq-panel ul { display: grid; gap: 10px; margin: 20px 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .13); list-style: none; }
.mm-trade-rfq-panel li { display: flex; align-items: center; gap: 8px; color: #e8eef7; font-size: 11px; }
.mm-trade-rfq-panel li i { color: #73abff; }
.mm-trade-rfq-panel > a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: auto; padding: 0 15px; border-radius: 5px; color: #fff; background: var(--mm-brand); font-size: 12px; font-weight: 800; }
.mm-trade-rfq-panel > a:hover { color: #fff; background: var(--mm-brand-dark); }

.mm-trade-service-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; box-shadow: 0 5px 16px rgba(19, 35, 58, .04); }
.mm-trade-service-row > a { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; border-right: 1px solid var(--mm-line); color: var(--mm-ink); }
.mm-trade-service-row > a:last-child { border-right: 0; }
.mm-trade-service-row > a:hover { color: var(--mm-brand); background: #f8fbff; }
.mm-trade-service-row > a > i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--mm-brand); background: var(--mm-brand-pale); font-size: 12px; }
.mm-trade-service-row span { display: grid; gap: 3px; }
.mm-trade-service-row strong { font-size: 11px; }
.mm-trade-service-row small { color: var(--mm-muted); font-size: 9px; }

.mm-trade-recommend { margin-top: 18px; padding: 20px; background: #fff; box-shadow: 0 5px 16px rgba(19, 35, 58, .04); }
.mm-trade-recommend > header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.mm-trade-recommend > header > div { display: flex; align-items: baseline; gap: 14px; }
.mm-trade-recommend h2 { margin: 0; color: var(--mm-ink); font-family: "Noto Serif SC", serif; font-size: 23px; }
.mm-trade-recommend > header span { color: var(--mm-muted); font-size: 11px; }
.mm-trade-recommend > header > a { display: inline-flex; align-items: center; gap: 8px; color: var(--mm-brand); font-size: 11px; font-weight: 800; }
.mm-trade-recommend-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mm-trade-recommend-grid .mm-product-card { border-radius: 7px; }
.mm-trade-recommend-grid .mm-product-image { min-height: 166px; aspect-ratio: 1 / 1; }
.mm-trade-recommend-grid .mm-product-image img { padding: 16px; }
.mm-trade-recommend-grid .mm-product-body { min-height: 224px; padding: 13px; }
.mm-trade-recommend-grid .mm-product-title { font-size: 13px; }
.mm-trade-recommend-grid .mm-product-code { font-size: 9px; }
.mm-trade-recommend-grid .mm-product-spec { font-size: 10px; }
.mm-trade-recommend-grid .mm-product-fulfilment { font-size: 10px; }
.mm-trade-recommend-empty { display: flex; align-items: center; gap: 12px; min-height: 160px; justify-content: center; color: var(--mm-muted); background: #f7f9fc; font-size: 12px; }
.mm-trade-recommend-empty i { color: #a7b2c2; font-size: 24px; }
.mm-trade-recommend-empty a { color: var(--mm-brand); font-weight: 800; }

@keyframes mm-search-glint {
    0%, 18% { left: -24%; opacity: 0; }
    24% { opacity: 1; }
    58% { left: 104%; opacity: .95; }
    64%, 100% { left: 104%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .mm-market-search .mm-search-form,
    .mm-market-search .mm-search-form input,
    .mm-market-search .mm-search-form button,
    .mm-market-search .mm-search-form button i { transition: none; }
    .mm-market-search .mm-search-form.has-search-motion::before { animation: none; }
}

@media (max-width: 1120px) {
    .mm-market-header-inner { grid-template-columns: 190px minmax(280px, 1fr) auto; gap: 20px; }
    .mm-trade-panel-grid { grid-template-columns: minmax(0, 1fr) 250px; }
    .mm-trade-mini-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mm-trade-mini-products > a:nth-child(n+5) { display: none; }
    .mm-trade-recommend-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .mm-market-header-inner { min-height: 124px; grid-template-columns: minmax(150px, 1fr) auto; padding-top: 10px; padding-bottom: 10px; }
    .mm-market-search { display: block; grid-column: 1 / -1; grid-row: 2; width: 100%; }
    .mm-market-search .mm-search-form { grid-template-columns: minmax(0, 1fr) 78px; height: 44px; }
    .mm-market-search .mm-search-form button, .mm-market-search .mm-search-form button:hover { width: 78px; height: 100%; }
    .mm-trade-topline > div { display: none; }
    .mm-trade-layout { grid-template-columns: 1fr; }
    .mm-trade-categories { min-height: 0; padding: 14px; }
    .mm-trade-categories nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
    .mm-trade-categories-all { margin-top: 6px; }
    .mm-trade-panel-grid { grid-template-columns: minmax(0, 1fr) 250px; }
    .mm-trade-recommend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .mm-trade-home { padding-bottom: 44px; }
    .mm-trade-topline { overflow-x: auto; }
    .mm-trade-topline nav { gap: 20px; white-space: nowrap; }
    .mm-trade-topline nav a.is-active::after { bottom: -14px; }
    .mm-trade-layout { width: 100%; gap: 10px; }
    .mm-trade-categories { border-radius: 0; box-shadow: none; }
    .mm-trade-categories nav { grid-template-columns: 1fr 1fr; }
    .mm-trade-categories nav a { min-height: 34px; font-size: 11px; }
    .mm-trade-panel-grid { grid-template-columns: 1fr; gap: 10px; }
    .mm-trade-products-panel { padding: 14px; }
    .mm-trade-mini-products > a { grid-template-rows: 96px auto auto; }
    .mm-trade-mini-products img { height: 96px; }
    .mm-trade-rfq-panel { min-height: 280px; }
    .mm-trade-service-row > a { padding: 0 10px; }
    .mm-trade-service-row small { display: none; }
    .mm-trade-recommend { width: 100%; margin-top: 10px; padding: 14px; border-radius: 0; box-shadow: none; }
    .mm-trade-recommend > header > div { align-items: flex-start; flex-direction: column; gap: 3px; }
    .mm-trade-recommend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .mm-trade-recommend-grid .mm-product-image { min-height: 138px; }
    .mm-trade-recommend-grid .mm-product-body { min-height: 216px; }
}
