@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-strong: #111820;
    --text: #17202a;
    --muted: #52657a;
    --border: #d9e0e7;
    --hairline: #e6ebf0;
    --accent: #b7d51e;
    --accent-dark: #8fac14;
    /* AA-safe deep lime for foreground use: white text on it (button :hover) and it
       as text on white both reach ~5.8:1. --accent-dark (#8fac14) is a mid-tone that
       only reaches 2.6:1 in those roles, so it stays for borders/decoration only. */
    --accent-strong: #5c6d06;
    --accent-ink: #1c2405;
    --brand-gray: #47505a;
    --blue: #0b5cab;
    --blue-dark: #094a8c;
    --green: #14804a;
    --amber: #9a5a00;
    --danger: #c1121f;
    --danger-soft: #fbeef0;
    --eyebrow: #5f7a08;

    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.09);
    --shadow-md: 0 6px 18px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.14);
    --shadow: var(--shadow-md);

    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.price,
.metric-row strong,
.totals-list dd,
.line-total,
.admin-card strong,
.param-table td {
    font-variant-numeric: tabular-nums;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 3px;
}

.service-bar :focus-visible,
.category-nav :focus-visible,
.site-footer :focus-visible,
.mega-menu-aside :focus-visible {
    outline-color: #ffffff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 1000;
    width: auto;
    height: auto;
    margin: 12px;
    padding: 10px 14px;
    clip: auto;
    color: #ffffff;
    background: var(--surface-strong);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.service-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 24px;
    color: #ffffff;
    background: var(--surface-strong);
    font-size: 13px;
}

.price-mode-toggle {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.price-mode-toggle .price-mode-label {
    padding: 0 6px;
    color: #dbe3ea;
    font-size: 12px;
    font-weight: 800;
}

.price-mode-toggle button {
    min-height: 24px;
    padding: 2px 8px;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.price-mode-toggle button.active,
.price-mode-toggle button:hover {
    color: #1c2405;
    background: var(--accent);
}

.price-mode-toggle small {
    padding: 0 7px 0 3px;
    color: #c7d1dc;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.header-main {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(260px, 1fr) auto;
    gap: 22px;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 28px;
}

.brand {
    display: inline-flex;
    align-items: flex-end;
    flex-wrap: wrap;
    column-gap: 1px;
    max-width: 100%;
}

.brand img {
    width: 150px;
    height: auto;
}

.brand > span {
    color: #565b60;
    font-size: 30px;
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.015em;
    transform: translateY(-7px);
}

.brand small {
    flex-basis: 100%;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.header-search,
.inline-search {
    display: flex;
    min-width: 0;
}

.header-search input,
.inline-search input,
.b2b-form input,
.b2b-form select {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
}

.header-search input,
.inline-search input {
    height: 46px;
    padding: 0 14px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.header-search button,
.inline-search button,
.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.header-search button,
.primary-button {
    color: #1c2405;
    background: var(--accent);
}

.header-search button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.primary-button:hover,
.header-search button:hover {
    color: #ffffff;
    background: var(--accent-strong);
}

.ghost-button {
    color: var(--surface-strong);
    background: #ffffff;
    border-color: var(--border);
}

.ghost-button:hover {
    border-color: var(--surface-strong);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cart-link {
    gap: 8px;
}

.cart-link span {
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--blue);
    border-radius: 999px;
    font-size: 12px;
}

.admin-lang-bar {
    display: flex;
    max-width: 1440px;
    margin: 14px auto 0;
    padding: 8px 28px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.admin-lang-toggle {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-lang-toggle .admin-lang-label {
    padding: 0 6px;
    color: #dbe3ea;
    font-size: 12px;
    font-weight: 800;
}

.admin-lang-toggle button {
    min-height: 24px;
    padding: 2px 8px;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.admin-lang-toggle button.active,
.admin-lang-toggle button:hover {
    color: #1c2405;
    background: var(--accent);
}

.flash-message {
    max-width: 1440px;
    margin: 14px auto 0;
    padding: 12px 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--surface-strong);
    font-weight: 800;
}

.flash-message.ok {
    border-color: rgba(20, 128, 74, 0.45);
}

.flash-message.error {
    border-color: rgba(193, 18, 31, 0.45);
}

.category-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px 12px;
    overflow-x: auto;
}

.category-nav a,
.mega-menu summary {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
    padding: 9px 12px;
    color: #303b45;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.mega-menu summary small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.category-nav a.active,
.category-nav a:hover,
.mega-menu[open] summary,
.mega-menu summary:hover {
    color: #ffffff;
    border-color: var(--blue);
    background: var(--blue);
}

.mega-menu[open] summary small,
.mega-menu summary:hover small {
    color: rgba(255, 255, 255, 0.82);
}

.mega-menu {
    position: relative;
    flex: 0 0 auto;
}

.mega-menu summary {
    list-style: none;
    cursor: pointer;
}

.mega-menu summary::-webkit-details-marker {
    display: none;
}

.menu-glyph {
    display: inline-grid;
    gap: 3px;
    width: 20px;
}

.menu-glyph span {
    display: block;
    height: 3px;
    background: var(--blue);
    border-radius: 999px;
}

.category-thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    padding: 4px;
    background: #ffffff;
    border: 1px solid #e7edf3;
    border-radius: 6px;
}

.category-thumb.small {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    padding: 3px;
    border-radius: 5px;
}

.category-copy {
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
}

.category-copy > span {
    min-width: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.category-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
}

.category-arrow {
    flex: 0 0 auto;
    color: #b8c2cc;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.mega-menu-panel {
    position: fixed;
    left: 28px;
    right: 28px;
    top: var(--mega-menu-top, 138px);
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
    gap: 22px;
    max-width: 1384px;
    max-height: calc(100vh - var(--mega-menu-top, 138px) - 18px);
    margin: 0 auto;
    padding: 22px;
    overflow: auto;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.mega-menu-aside {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: 18px;
    color: #ffffff;
    background: var(--surface-strong);
    border-radius: 8px;
}

.mega-menu-aside .eyebrow {
    color: var(--accent);
}

.mega-menu-aside strong {
    font-size: 22px;
    line-height: 1.12;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
}

.mega-menu-department {
    min-width: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border);
}

.mega-menu-panel a {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    padding: 7px 0;
    color: #3b4651;
    border: 0;
    background: transparent;
    white-space: normal;
}

.mega-menu-panel a:hover {
    color: var(--blue);
    background: transparent;
}

.mega-menu-panel .mega-menu-heading {
    align-items: center;
    padding: 0 0 8px;
    color: var(--surface-strong);
    font-size: 16px;
    font-weight: 900;
    border-bottom: 2px solid var(--accent);
}

.mega-menu-group {
    padding: 9px 0;
    border-bottom: 1px solid #edf1f5;
}

.mega-menu-group:last-child {
    border-bottom: 0;
}

.mega-menu-group-title {
    color: #24313d !important;
    font-weight: 900;
}

.mega-menu-subgrid {
    display: grid;
    gap: 2px;
    margin-top: 4px;
}

.mega-menu-subgrid a {
    padding: 4px 0 4px 10px;
    color: #596776;
    font-size: 13px;
    line-height: 1.25;
    border-left: 2px solid #e6ebf0;
}

.mega-menu-panel small {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.mega-menu-all,
.mega-menu-service {
    min-height: 42px;
    justify-content: center !important;
    border-radius: 6px;
    font-weight: 900;
}

.mega-menu-all {
    color: #1c2405 !important;
    background: var(--accent) !important;
}

.mega-menu-service {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
}

main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px;
}

.catalog-entry {
    display: grid;
    grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.category-panel,
.banner-stage,
.setup-panel,
.b2b-form,
.b2b-note,
.validation-result,
.empty-state,
.detail-image {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.category-panel {
    padding: 22px;
}

.category-panel-menu {
    position: relative;
    z-index: 6;
    padding: 0;
    overflow: visible;
}

.category-panel-title {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
}

.category-panel-title h1 {
    font-size: 16px;
    font-weight: 900;
}

.section-heading {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading.compact {
    display: block;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--eyebrow);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--surface-strong);
    line-height: 1.15;
    letter-spacing: -0.012em;
    text-wrap: balance;
}

h1 {
    font-size: 38px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 26px;
}

h3 {
    font-size: 17px;
}

.category-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.category-list-link,
.subcat-strip a,
.manufacturer-strip a,
.category-card-main {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
}

.category-list-item {
    position: relative;
    min-width: 0;
}

.category-list-link {
    min-height: 54px;
    padding: 7px 12px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-weight: 700;
}

.category-list-item:last-child .category-list-link {
    border-bottom: 0;
}

.category-list-link:hover,
.category-list-item:focus-within > .category-list-link,
.category-list-item.active > .category-list-link,
.subcat-strip a:hover,
.manufacturer-strip a:hover,
.category-card:hover .category-card-main {
    border-color: var(--blue);
}

.category-list-link:hover .category-arrow,
.category-list-item:focus-within > .category-list-link .category-arrow,
.category-list-item.active > .category-list-link .category-arrow {
    color: var(--blue);
}

.category-list-item.active > .category-list-link {
    color: var(--blue);
    background: #f2f8ff;
}

.category-list .category-copy small,
.subcat-strip small,
.manufacturer-strip small,
.category-card small {
    color: var(--muted);
    font-weight: 700;
}

.text-link {
    color: var(--blue);
    font-weight: 800;
}

.category-panel-link {
    display: block;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}

.home-mega-panel {
    position: absolute;
    top: -1px;
    left: 100%;
    z-index: 25;
    display: none;
    width: min(920px, calc(100vw - 430px));
    min-height: calc(100% + 2px);
    max-height: min(680px, calc(100vh - 185px));
    overflow: auto;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow);
}

.category-list-item:hover > .home-mega-panel,
.category-list-item:focus-within > .home-mega-panel {
    display: block;
}

.home-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 18px;
}

.home-mega-group {
    min-width: 0;
}

.home-mega-title {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 50px;
    padding: 7px 0;
    color: #25313d;
    border-bottom: 1px solid #e8edf2;
    font-weight: 900;
}

.home-mega-title:hover,
.home-mega-title.active,
.home-mega-subgrid a:hover,
.home-mega-subgrid a.active {
    color: var(--blue);
}

.home-mega-subgrid {
    display: grid;
    gap: 2px;
    margin: 7px 0 0 42px;
}

.home-mega-subgrid a {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 34px;
    padding: 4px 0;
    color: #596776;
    font-size: 13px;
    line-height: 1.2;
}

.banner-stage {
    position: relative;
    aspect-ratio: 3696 / 1220;
    overflow: hidden;
    background: #ffffff;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Banner is now a plain clickable image that links to a URL — the promotional
   copy box was removed (edited only through image + target URL in admin). */
.banner-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

/* Three portada tiles under the banner: Novedades / Listas de precios / Catálogos.
   Whole card links; text left (green title) + illustration right, ergate.at style. */
.home-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-tile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.home-tile:hover,
.home-tile:focus-visible {
    transform: translateY(-2px);
    border-color: var(--accent-dark);
    box-shadow: var(--shadow-md);
}

.home-tile-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.home-tile-eyebrow {
    color: var(--eyebrow);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-tile-title {
    color: var(--eyebrow);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.home-tile-text {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}

.home-tile-cta {
    margin-top: 4px;
    color: var(--surface-strong);
    font-size: 13px;
    font-weight: 800;
}

.home-tile-cta span {
    color: var(--accent-strong);
    font-weight: 900;
}

.home-tile-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    color: var(--accent-dark);
    background: linear-gradient(135deg, #f4f8e2, #eef4d4);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.home-tile-media svg {
    width: 40px;
    height: 40px;
}

.home-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    top: 22px;
    right: 22px;
    display: flex;
    gap: 8px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(217, 224, 231, 0.86);
    border-radius: 999px;
}

.banner-dots button {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #a8b2bd;
    cursor: pointer;
}

.banner-dots button.active {
    background: var(--accent);
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.metric-row div {
    min-height: 94px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.metric-row strong {
    display: block;
    color: var(--surface-strong);
    font-size: 30px;
    line-height: 1.1;
}

.metric-row span {
    color: var(--muted);
    font-weight: 700;
}

.service-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.service-band div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon text";
    column-gap: 12px;
    row-gap: 2px;
    align-content: start;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.service-band svg {
    grid-area: icon;
    align-self: center;
    width: 28px;
    height: 28px;
    color: var(--blue);
}

.service-band strong {
    grid-area: title;
    color: var(--surface-strong);
    font-size: 15px;
}

.service-band span {
    grid-area: text;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 820px) {
    .service-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    .service-band {
        grid-template-columns: 1fr;
    }
}

.content-section {
    margin-top: 34px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    display: grid;
    grid-template-rows: 190px minmax(178px, 1fr) auto;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.product-card:hover {
    border-color: #aeb9c5;
    box-shadow: var(--shadow);
}

.product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f8fafb;
    border-bottom: 1px solid var(--border);
}

.product-media img {
    width: 100%;
    height: 158px;
    object-fit: contain;
}

.product-body {
    padding: 14px 14px 8px;
}

.product-meta {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.product-body h3 a:hover {
    color: var(--blue);
}

.product-body p {
    margin: 10px 0 0;
    color: #586674;
    font-size: 14px;
}

.product-footer {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
}

.product-purchase-line {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
}

.card-add-form {
    display: grid;
}

.quantity-input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 8px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-variant-numeric: tabular-nums;
}

.card-add-form button {
    min-height: 44px;
    border: 1px solid var(--accent-dark);
    border-radius: var(--radius-sm);
    color: var(--accent-ink);
    background: var(--accent);
    font-weight: 800;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}

.card-add-form button:hover {
    color: #ffffff;
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.price {
    color: var(--surface-strong);
    font-weight: 800;
}

.price small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.stock {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.stock.in-stock {
    color: #ffffff;
    background: var(--green);
}

.stock.on-request {
    color: #ffffff;
    background: var(--amber);
}

.stock.partial-stock {
    color: #ffffff;
    background: var(--blue);
}

.stock.not-checked {
    color: var(--surface-strong);
    background: #e5ebf1;
}

.line-stock-note {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.split-section p {
    color: #4d5a66;
}

.manufacturer-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.manufacturer-strip a {
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 92px;
    padding: var(--sp-4) var(--sp-3);
    text-align: center;
}

/* Homepage: banner column also carries the brand wall, filling the space
   that the tall category rail would otherwise leave empty under the banner. */
.catalog-entry-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.home-brand-wall {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px 22px 22px;
}

.home-brand-wall-head {
    margin-bottom: 16px;
}

.home-brand-wall-head h2 {
    margin: 2px 0 4px;
    font-size: 20px;
}

.home-brand-wall-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.home-brand-wall .manufacturer-strip {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
    align-content: stretch;
    flex: 1 1 auto;
}

/* B2B model note: single-row band (text + CTA) now the logos moved up. */
.home-b2b-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.home-b2b-note > div {
    max-width: 760px;
    min-width: 0;
}

.home-b2b-note h2 {
    margin: 4px 0 8px;
}

.home-b2b-note p {
    margin: 0;
    color: #4d5a66;
}

/* ---- Manufacturer brand logos -------------------------------------- */

.mfr-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

img.mfr-logo {
    max-width: 100%;
}

.mfr-logo--text {
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.manufacturer-strip .mfr-logo {
    max-height: 38px;
    max-width: 148px;
}

.manufacturer-strip .mfr-logo--text {
    font-size: 16px;
}

.manufacturer-strip small {
    font-size: 12px;
    font-weight: 700;
}

/* Filter panel: manufacturer logo chips */
.filter-label {
    margin: 0 0 var(--sp-2);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.filter-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
}

.filter-brand-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    padding: var(--sp-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-decoration: none;
}

.filter-brand-chip .mfr-logo {
    max-height: 24px;
    max-width: 100%;
}

.filter-brand-chip .mfr-logo--text {
    font-size: 12px;
    text-align: center;
    line-height: 1.15;
}

.filter-brand-chip small {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.filter-brand-all {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.filter-brand-chip:hover,
.filter-brand-chip:focus-visible {
    border-color: var(--blue);
}

.filter-brand-chip.active {
    border-color: var(--blue);
    box-shadow: inset 0 0 0 1px var(--blue);
    background: #f2f8ff;
}

/* Product card / list-row / PDP brand mark — logo prominente y autónomo (estilo
   automation24). Muestra solo el logo cuando existe; wordmark de texto como fallback. */
.product-brand {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    text-decoration: none;
}

.product-brand[href]:hover {
    opacity: 0.82;
}

.product-brand .mfr-logo {
    width: auto;
    max-height: 30px;
    max-width: min(160px, 100%);
    object-fit: contain;
}

.product-brand .mfr-logo--text {
    font-size: 15px;
    line-height: 1.1;
    color: var(--surface-strong);
}

/* Ficha en cuadrícula: columna estrecha → logo algo menor */
.product-card .product-brand {
    margin-bottom: 8px;
}

.product-card .product-brand .mfr-logo {
    max-height: 24px;
    max-width: min(128px, 100%);
}

.product-card .product-brand .mfr-logo--text {
    font-size: 14px;
}

/* Detalle de producto: marca destacada sobre el código/EAN */
.product-brand--detail {
    margin-bottom: 14px;
}

.product-brand--detail .mfr-logo {
    max-height: 46px;
    max-width: min(200px, 100%);
}

.product-brand--detail .mfr-logo--text {
    font-size: 22px;
    font-weight: 800;
}

/* Prominent manufacturer hero */
.mfr-hero {
    /* Per-brand accent, overridden inline from manufacturer_content(); falls back
       to the ERGATE house accent so unbranded manufacturers keep the site look. */
    --mfr-accent: var(--accent);
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    padding: var(--sp-5) var(--sp-6);
    border: 1px solid var(--border);
    border-top: 3px solid var(--mfr-accent);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.mfr-hero--page {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--sp-5);
    padding: var(--sp-6);
    background: var(--surface); /* fallback for browsers without color-mix() */
    background: radial-gradient(120% 150% at 0% 0%,
        color-mix(in srgb, var(--mfr-accent) 16%, var(--surface)) 0%,
        var(--surface) 60%);
}

/* Optional wide brand image behind the hero (public/assets/manufacturers/<slug>-hero.*).
   Absent by default → the accent gradient above is used. */
.mfr-hero--image {
    background: var(--mfr-accent); /* fallback */
    background:
        linear-gradient(90deg,
            color-mix(in srgb, var(--mfr-accent) 82%, transparent) 0%,
            color-mix(in srgb, var(--mfr-accent) 42%, transparent) 60%,
            color-mix(in srgb, var(--mfr-accent) 12%, transparent) 100%),
        var(--mfr-hero-image) center / cover no-repeat,
        var(--surface);
}

.mfr-hero--image .eyebrow,
.mfr-hero--image .mfr-hero-copy h1,
.mfr-hero--image .mfr-hero-tagline,
.mfr-hero--image .mfr-hero-meta,
.mfr-hero--image .mfr-hero-facts,
.mfr-hero--image .mfr-hero-facts .text-link {
    color: #fff;
}

.mfr-hero--image .mfr-hero-tagline {
    border-left-color: rgba(255, 255, 255, 0.65);
}

.mfr-hero--filter {
    margin-bottom: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    flex-wrap: wrap;
}

.mfr-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 240px;
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
}

.mfr-hero--page .mfr-hero-logo {
    min-height: 96px;
}

.mfr-hero-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.mfr-hero--page .mfr-hero-logo img {
    max-height: 72px;
}

.mfr-hero--filter .mfr-hero-logo {
    min-width: 96px;
    padding: var(--sp-2) var(--sp-3);
}

.mfr-hero--filter .mfr-hero-logo img {
    max-height: 40px;
}

.mfr-hero-wordmark {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.mfr-hero-copy {
    min-width: 0;
}

.mfr-hero-copy h1 {
    margin: 4px 0 6px;
    font-size: 30px;
}

.mfr-hero-name {
    margin: 2px 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.mfr-hero-meta {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.mfr-hero-tagline {
    margin: 0 0 6px;
    padding-left: 10px;
    border-left: 3px solid var(--mfr-accent);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.mfr-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.mfr-hero-facts > span,
.mfr-hero-facts > a {
    position: relative;
}

.mfr-hero-facts > span + span::before,
.mfr-hero-facts > span + a::before {
    content: "·";
    position: absolute;
    left: -10px;
    color: var(--border);
}

/* Brand editorial block on the dedicated /fabricante/<slug> page */
.mfr-about {
    --mfr-accent: var(--accent);
    margin-bottom: var(--sp-5);
    padding: var(--sp-4) var(--sp-5);
    border: 1px solid var(--border);
    border-left: 3px solid var(--mfr-accent);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.mfr-about-body {
    max-width: 820px;
    color: var(--text);
}

.mfr-about-body > :first-child {
    margin-top: 0;
}

.mfr-about-body > :last-child {
    margin-bottom: 0;
}

.mfr-about-body p {
    margin: 0 0 12px;
    line-height: 1.6;
    color: #3a4653;
}

.mfr-about-body h2,
.mfr-about-body h3 {
    font-size: 18px;
    margin: 18px 0 8px;
}

.mfr-about-body ul {
    margin: 0 0 12px;
    padding-left: 20px;
    color: #3a4653;
}

.mfr-about-body li {
    margin-bottom: 4px;
}

.mfr-hero-clear {
    margin-left: auto;
    align-self: center;
    white-space: nowrap;
}

.page-title {
    max-width: 920px;
    margin-bottom: 24px;
}

.page-title p:not(.eyebrow) {
    color: #53616e;
    font-size: 18px;
}

.static-title {
    max-width: 980px;
}

.static-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 28px;
    align-items: start;
}

.static-content {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.static-section {
    padding: 0 0 22px;
    border-bottom: 1px solid var(--border);
}

.static-section:last-child {
    border-bottom: 0;
}

.contact-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 28px;
    align-items: start;
}

.contact-form-panel {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.contact-info-grid .static-section {
    padding: 0;
    border-bottom: 0;
}

.static-section h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.static-section p,
.static-section li,
.static-aside p {
    color: #4f5d6a;
}

.static-section p {
    max-width: 880px;
}

.static-section ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 20px;
}

.static-aside {
    position: sticky;
    top: 160px;
    display: grid;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.static-aside h2 {
    font-size: 19px;
}

.static-link-list {
    display: grid;
    gap: 8px;
}

.static-link-list a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 12px;
    color: var(--surface-strong);
    font-weight: 850;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f8fafb;
}

.static-link-list a:hover {
    color: #1c2405;
    border-color: var(--accent);
    background: #f5fad7;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.category-browser-layout {
    display: grid;
    grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.category-browser-layout .catalog-rail,
.catalog-layout-with-rail .catalog-rail {
    position: sticky;
    top: 164px;
}

.category-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.category-card-main {
    min-height: 78px;
    padding: 16px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 18px;
    font-weight: 800;
}

.category-card-links {
    display: grid;
    padding: 10px 16px 16px;
}

.category-card-links a {
    display: flex;
    gap: 9px;
    align-items: center;
    min-height: 34px;
    padding: 6px 0;
    color: #44505c;
    font-size: 14px;
    font-weight: 750;
}

.category-card-links a:hover {
    color: var(--blue);
}

.subcat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.subcat-strip a {
    justify-content: flex-start;
    min-height: 52px;
    padding: 10px 12px;
    font-weight: 800;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 24px;
}

.catalog-layout-with-rail {
    grid-template-columns: minmax(270px, 310px) minmax(230px, 270px) minmax(0, 1fr);
}

.catalog-results {
    min-width: 0;
}

/* Categorías flyout toggle on catalog listing pages (overlay, no fixed rail column) */
.catalog-catbar {
    margin: 24px 0 14px;
}

.catalog-category-menu {
    display: inline-block;
}

.catalog-category-menu[open] .menu-glyph span,
.catalog-category-menu summary:hover .menu-glyph span {
    background: #ffffff;
}

.catalog-category-panel {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1180px;
}

.catalog-category-head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.catalog-category-head .eyebrow {
    margin: 0;
}

.catalog-category-panel a.active,
.catalog-category-panel .mega-menu-heading.active {
    color: var(--blue) !important;
}

.catalog-category-panel .mega-menu-heading.active {
    border-bottom-color: var(--blue);
}

.catalog-layout .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-toolbar {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    margin-bottom: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px 8px 0 0;
}

.catalog-toolbar h2 {
    font-size: 22px;
}

.catalog-toolbar-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.catalog-toolbar-notes span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    color: #30404f;
    background: #f2f6f9;
    border: 1px solid #e1e8ee;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.product-list {
    display: grid;
    gap: 10px;
}

.product-list-row {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) minmax(210px, 250px);
    gap: 16px;
    align-items: stretch;
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.product-list-row:hover {
    border-color: #aeb9c5;
    box-shadow: var(--shadow);
}

.product-list-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 168px;
    padding: 14px;
    background: #f8fafb;
    border-right: 1px solid var(--border);
    border-radius: 8px 0 0 8px;
}

.product-list-media img {
    width: 100%;
    height: 136px;
    object-fit: contain;
}

.product-list-main {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    padding: 16px 0;
}

.product-list-main h3 {
    font-size: 18px;
}

.product-list-main h3 a:hover {
    color: var(--blue);
}

.product-list-main p {
    max-width: 760px;
    margin: 0;
    color: #465461;
    font-size: 14px;
}

.product-list-meta {
    justify-content: flex-start;
    margin: 0;
}

.product-list-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    background: #f3f6f8;
    border-radius: 5px;
}

.product-list-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    color: #647282;
    font-size: 13px;
    font-weight: 800;
}

.product-list-links a {
    color: var(--blue);
}

.product-list-buy {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 16px;
    border-left: 1px solid var(--border);
}

.product-list-buy .price {
    font-size: 20px;
}

.product-list-buy .stock {
    justify-self: start;
}

.product-list-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.product-list-form .quantity-input {
    width: 96px;
    max-width: 100%;
    justify-self: start;
}

.product-list-form button {
    white-space: nowrap;
}

.filter-panel {
    position: sticky;
    top: 164px;
    /* Cap to the space below the sticky header so a filter list taller than the
       viewport scrolls inside its own pinned box, instead of only revealing its
       bottom once you reach the end of the product list. */
    max-height: calc(100vh - 164px - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    min-width: 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.filter-heading {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.filter-heading h2 {
    font-size: 19px;
}

.filter-panel form {
    display: grid;
    gap: 12px;
}

.filter-panel label {
    color: #32404c;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel select,
.filter-panel input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.filter-check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #f7f9fb;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.filter-check input {
    width: 18px;
    height: 18px;
    padding: 0;
}

.filter-price-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* Collapsible disclosure: a "Filtrar" button on mobile, an always-open panel on
   desktop (see the min-width override below). */
.filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
    list-style: none;
}

.filter-summary::-webkit-details-marker {
    display: none;
}

.filter-summary::marker {
    content: "";
}

.filter-summary-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    background: var(--blue);
    border-radius: 999px;
}

.filter-summary-caret {
    transition: transform 0.15s ease;
}

.filter-shell[open] .filter-summary-caret {
    transform: rotate(180deg);
}

.filter-body {
    margin-top: 14px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
    background: #f2f8ff;
    border: 1px solid var(--blue);
    border-radius: 999px;
    text-decoration: none;
}

.filter-chip:hover,
.filter-chip:focus-visible {
    background: #e4f0ff;
}

.filter-chip-x {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    color: var(--blue);
}

.filter-empty {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

/* Manufacturer page: the categories this brand appears in — one-click drill-down
   into "brand + category". Sits at the top of the filter panel. */
.filter-catnav {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.filter-catnav-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.filter-catnav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.filter-catnav-item:hover,
.filter-catnav-item:focus-visible {
    background: #f2f8ff;
}

.filter-catnav-name {
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.filter-catnav-context {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.filter-catnav-count {
    flex: none;
    min-width: 24px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: var(--muted);
    background: #eef3f8;
    border-radius: 999px;
}

/* Parametric attribute facet groups (Phase B) */
.attr-facet {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.attr-facet-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #32404c;
    cursor: pointer;
    list-style: none;
}

.attr-facet-summary::-webkit-details-marker {
    display: none;
}

.attr-facet-summary::after {
    content: "▾";
    font-size: 11px;
    color: var(--muted);
    transition: transform 0.15s ease;
}

.attr-facet[open] .attr-facet-summary::after {
    transform: rotate(180deg);
}

.attr-facet-options {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    max-height: 220px;
    overflow-y: auto;
}

.filter-panel .attr-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.filter-panel .attr-option input {
    width: 18px;
    height: 18px;
    padding: 0;
}

.attr-option-label {
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.attr-option-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.attr-facet-options .attr-option[hidden] {
    display: none;
}

.filter-panel .attr-facet-search {
    width: 100%;
    height: 34px;
    margin: 10px 0 4px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.attr-facet-more {
    margin-top: 6px;
    padding: 2px 0;
    background: none;
    border: 0;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.attr-facet-more:hover,
.attr-facet-more:focus-visible {
    text-decoration: underline;
}

.attr-facet-more[hidden] {
    display: none;
}

/* Desktop: the disclosure is always open and the toggle button is hidden. */
@media (min-width: 1181px) {
    .filter-summary {
        display: none;
    }

    .filter-shell > .filter-body {
        display: block;
        margin-top: 0;
    }
}

.catalog-result-heading {
    min-height: 54px;
}

.catalog-result-heading > p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.home-solutions-section {
    margin-top: 24px;
}

.solutions-overview,
.solution-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 1440px;
    margin: 0 auto 24px;
    padding: 0 28px;
}

.solution-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.solution-card.compact {
    min-height: 245px;
}

.solution-card h2,
.solution-card h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.22;
}

.solution-card h2 a:hover,
.solution-card h3 a:hover {
    color: var(--blue);
}

.solution-card p {
    margin: 0;
    color: #465461;
}

.solution-brand-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.solution-brand-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    color: #263440;
    background: #eef2f6;
    border: 1px solid #dce3ea;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.solution-brand-row.large span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.solution-b2b-band {
    align-items: center;
}

.solution-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.solution-steps span {
    min-height: 46px;
    padding: 12px;
    color: #263440;
    background: #f7f9fb;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 850;
}

.solution-title .page-title-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.solution-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 1440px;
    margin: 0 auto 26px;
    padding: 0 28px;
}

.solution-panel {
    min-width: 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.solution-panel h2 {
    margin-bottom: 14px;
    font-size: 21px;
}

.solution-check-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.solution-check-list li {
    position: relative;
    padding-left: 25px;
    color: #354250;
    font-weight: 650;
}

.solution-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-weight: 950;
}

.solution-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.solution-category-link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.solution-category-link:hover {
    border-color: #aeb9c5;
}

.category-solution-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto 20px;
    padding: 20px 28px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.category-solution-teaser h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.category-solution-teaser p:last-child {
    max-width: 920px;
    margin: 0;
    color: #465461;
}

.category-solution-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: start;
}

/* La columna del panel de compra (precio + garantías) es más alta que la foto y
   dejaba ~410px vacíos debajo de la imagen. En escritorio la galería sigue el scroll
   (sticky) para acompañar al panel; el offset iguala la altura del header sticky
   (~252px) para no quedar oculta tras él. Bajo 1180px el detalle es de una columna. */
@media (min-width: 1181px) {
    .product-gallery {
        position: sticky;
        top: 268px;
        align-self: start;
    }
}

.detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    padding: 28px;
}

.detail-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.thumb-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.thumb-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 86px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 120ms ease;
}

.thumb-button:hover {
    border-color: #aeb9c5;
}

.thumb-button.active {
    border-color: var(--blue);
    box-shadow: inset 0 0 0 1px var(--blue);
}

.thumb-row img {
    max-height: 100%;
    object-fit: contain;
}

.product-summary {
    padding: 10px 0;
}

.product-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-topline span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    color: #334454;
    background: #f2f6f9;
    border: 1px solid #e0e7ee;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.product-summary h1 {
    margin-bottom: 10px;
}

.lead {
    color: #46525f;
    font-size: 18px;
}

.lead.lead--clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--sp-1);
    font-size: 16px;
    line-height: 1.4;
}

.label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.price-mode-inline {
    margin-top: 12px;
    width: fit-content;
    border-color: var(--border);
    background: #eef2f6;
}

.price-mode-inline button {
    color: var(--surface-strong);
    font-size: 12px;
    font-weight: 800;
}

.price-mode-inline button.active,
.price-mode-inline button:hover {
    color: var(--accent-ink);
    background: var(--accent);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-trust {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 16px;
    list-style: none;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.product-trust li {
    position: relative;
    padding-left: 26px;
    color: #354250;
    font-size: 14px;
    font-weight: 600;
}

.product-trust li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-weight: 900;
}

/* ===== PDP buy card — one cohesive panel that keeps the CTA above the fold =====
   Reemplaza .product-b2b-strip + las 3 tarjetas .product-buy-box + el .detail-add-panel
   por un único panel: precio (neto principal por defecto, según el conmutador) +
   disponibilidad + cantidad + "Añadir al pedido", todo visible sin hacer scroll. */
.buy-card {
    display: grid;
    gap: var(--sp-3);
    margin: var(--sp-4) 0 var(--sp-5);
    padding: var(--sp-4) var(--sp-5) var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.buy-card-price {
    display: grid;
    gap: 2px;
}

.buy-price-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    margin-bottom: 2px;
}

.buy-price-eyebrow {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Conmutador /precios embebido (tema claro .price-mode-inline); anula su margin-top */
.buy-price-toggle.price-mode-inline {
    margin-top: 0;
}

.buy-price-figure {
    display: block;
    color: var(--surface-strong);
    font-size: 32px;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.buy-price-tag {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.buy-price-second {
    display: flex;
    align-items: baseline;
    gap: var(--sp-1);
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.buy-price-second strong {
    color: #34404b;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.buy-price-note {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.buy-avail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin: 0;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--hairline);
    font-size: 13px;
}

.buy-avail .stock {
    white-space: nowrap;
}

.buy-avail-detail {
    color: var(--muted);
    font-weight: 600;
}

.buy-card-form {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: var(--sp-3);
    align-items: end;
    margin: 0;
}

.buy-qty {
    display: grid;
    gap: var(--sp-1);
    color: #33404d;
    font-size: 12px;
    font-weight: 900;
}

.buy-qty input {
    width: 100%;
    height: 50px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.buy-cta {
    width: 100%;
    height: 50px;
    min-height: 50px;
    font-size: 16px;
}

.buy-quote {
    width: 100%;
}

.buy-trust-line {
    margin: 0;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 560px) {
    .buy-card-form {
        grid-template-columns: 1fr;
    }

    .buy-price-figure {
        font-size: 28px;
    }
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.breadcrumb-list a {
    padding: 7px 10px;
    color: var(--blue);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 700;
}

.product-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 24px;
}

.product-info > div {
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.technical-description-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.technical-description-list li {
    position: relative;
    min-height: 34px;
    padding: 8px 10px 8px 28px;
    color: #354250;
    background: #f8fafc;
    border: 1px solid #e2e8ef;
    border-radius: 6px;
    line-height: 1.35;
}

.technical-description-list li::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 12px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.technical-downloads {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.technical-downloads h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.technical-downloads ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.technical-downloads a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 11px;
    color: var(--blue);
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    font-weight: 800;
}

.technical-downloads a::before {
    content: "PDF";
    margin-right: 10px;
    padding: 3px 6px;
    color: #ffffff;
    background: var(--accent);
    border-radius: 4px;
    font-size: 11px;
    line-height: 1;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
}

.param-table th,
.param-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.param-table th {
    width: 44%;
    color: #34404b;
    font-weight: 800;
}

.inline-search {
    max-width: 680px;
    margin-top: 18px;
}

.b2b-layout,
.checkout-layout,
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.checkout-reconciliation {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    background: #fff7e6;
    border: 1px solid #f0d9a8;
    border-radius: 8px;
}

.checkout-reconciliation h2 {
    margin: 0;
    color: #8a5a00;
    font-size: 18px;
}

.checkout-reconciliation > p {
    margin: 0;
    color: #4f5d6a;
}

.reconciliation-line {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #ecd9ad;
    border-radius: 8px;
}

.reconciliation-line .rec-product {
    font-weight: 800;
    color: var(--surface-strong);
}

.reconciliation-line .rec-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    align-items: start;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    cursor: pointer;
}

.reconciliation-line .rec-option:first-of-type {
    border-top: 0;
}

.reconciliation-line .rec-option input {
    grid-row: 1 / span 2;
    margin-top: 3px;
}

.reconciliation-line .rec-option strong {
    color: var(--surface-strong);
}

.reconciliation-line .rec-option small {
    color: var(--muted);
    font-size: 13px;
}

.rec-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    vertical-align: middle;
}

.checkout-reconciliation .rec-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.account-form label {
    display: grid;
    gap: 5px;
    margin-bottom: 12px;
}

.account-order-list {
    display: grid;
    gap: 8px;
}

.account-order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.account-order-row strong {
    grid-column: 1;
    color: var(--surface-strong);
}

.account-order-row span {
    grid-column: 1;
    color: var(--muted);
    font-size: 13px;
}

.account-order-row span:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-weight: 800;
    color: var(--surface-strong);
}

.header-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 860px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
}

.checkout-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px;
}

.checkout-flow div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    min-width: 0;
    padding: 13px 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.checkout-flow div.active {
    border-color: rgba(11, 92, 171, 0.42);
    box-shadow: inset 4px 0 0 var(--blue);
}

.checkout-flow span {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    background: var(--blue);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.checkout-flow strong,
.checkout-flow small {
    min-width: 0;
}

.checkout-flow strong {
    color: var(--surface-strong);
    line-height: 1.1;
}

.checkout-flow small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.checkout-layout > *,
.cart-layout > *,
.summary-panel {
    min-width: 0;
}

.b2b-form,
.b2b-note,
.checkout-panel,
.cart-panel,
.contact-form-panel,
.summary-panel,
.order-confirmation,
.validation-result,
.setup-panel,
.empty-state {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.panel-title-row {
    display: flex;
    gap: 16px;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-title-row h2 {
    margin: 0;
}

.panel-title-row > span {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: #22313f;
    background: #eef6dc;
    border: 1px solid #dceab1;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.panel-title-row.section-row {
    margin-top: 24px;
}

.checkout-error-summary,
.company-validation-card {
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.checkout-error-summary {
    margin-bottom: 16px;
    border-color: rgba(193, 18, 31, 0.35);
}

.checkout-error-summary h2 {
    margin-bottom: 6px;
    color: #a32020;
    font-size: 18px;
}

.checkout-error-summary p,
.company-validation-card p {
    margin: 0;
    color: #4f5d6a;
}

.checkout-error-summary ul {
    margin: 8px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 4px;
    color: #7a2230;
}

.checkout-error-summary li {
    font-weight: 700;
}

.checkout-reassurance {
    display: grid;
    gap: 3px;
    margin: 4px 0 12px;
    padding: 12px 14px;
    background: #eef6e6;
    border: 1px solid #d3e6bf;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.checkout-reassurance strong {
    color: #1f5d16;
}

.checkout-reassurance a {
    color: var(--blue);
    font-weight: 700;
}

.company-validation-card {
    margin: 0 0 18px;
    background: #f8fafc;
}

.company-validation-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--surface-strong);
}

.company-validation-card.error {
    border-color: rgba(193, 18, 31, 0.35);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.b2b-form label,
.contact-form-panel label,
.checkout-panel label,
.checkout-summary label {
    display: grid;
    gap: 7px;
    color: #34404b;
    font-weight: 800;
}

.b2b-form input,
.b2b-form select,
.contact-form-panel input,
.contact-form-panel select,
.contact-form-panel textarea,
.checkout-panel input,
.checkout-panel select,
.checkout-panel textarea,
.checkout-summary select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 400;
}

.contact-form-panel textarea {
    min-height: 150px;
    padding: 10px 12px;
    resize: vertical;
}

.checkout-panel .checkbox-line {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 44px;
    margin: 0;
    font-weight: 800;
}

.checkout-panel .checkbox-line input {
    width: 18px;
    height: 18px;
    padding: 0;
}

.payment-method-list {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 0;
    border: 0;
}

.payment-method-list legend {
    margin-bottom: 2px;
    color: #34404b;
    font-weight: 800;
}

.payment-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.payment-option:has(input:checked) {
    border-color: var(--blue);
    box-shadow: inset 0 0 0 1px var(--blue);
}

.payment-option.disabled {
    cursor: not-allowed;
    opacity: 0.66;
}

.payment-option input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.payment-option strong,
.payment-option small {
    display: block;
}

.payment-option small {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
}

.checkout-panel textarea {
    min-height: 92px;
    padding: 10px 12px;
    resize: vertical;
}

.checkout-panel h2,
.checkout-summary h2,
.cart-panel h2,
.summary-panel h2 {
    margin-bottom: 16px;
}

.cart-table {
    display: grid;
    gap: 12px;
}

.cart-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 120px 130px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.cart-row h2 {
    font-size: 17px;
}

.cart-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 76px;
    padding: 8px;
    background: #f8fafb;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.cart-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.muted,
.small-note {
    color: var(--muted);
}

.small-note {
    margin: 12px 0 0;
    font-size: 13px;
}

.summary-checklist {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.summary-checklist span {
    display: block;
    padding: 9px 10px;
    color: #344453;
    background: #f8fafc;
    border: 1px solid #e2e8ee;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

.qty-field {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.qty-field input {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.line-total {
    text-align: right;
}

.cart-line-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-remove-form {
    display: none;
}

.cart-remove {
    padding: 0;
    color: var(--danger);
    background: none;
    border: 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.cart-remove:hover {
    text-decoration: underline;
}

.cart-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.totals-list {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.totals-list div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.totals-list dt {
    color: var(--muted);
    font-weight: 800;
}

.totals-list dd {
    margin: 0;
    color: var(--surface-strong);
    font-weight: 800;
}

.totals-list .grand {
    border-bottom: 0;
    font-size: 18px;
}

.full-button {
    width: 100%;
}

.mini-lines {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.mini-lines div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.mini-lines small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.checkout-summary {
    position: sticky;
    top: 168px;
}

.order-confirmation {
    margin-bottom: 24px;
}

.order-confirmation > p:not(.eyebrow) {
    max-width: 820px;
    color: #4d5a66;
}

.order-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.order-status-grid div {
    padding: 14px;
    background: #f8fafb;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.order-status-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.order-status-grid strong {
    overflow-wrap: anywhere;
}

.order-next-steps,
.admin-review-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.admin-review-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-next-steps div,
.admin-review-board div {
    min-width: 0;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.order-next-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    color: #ffffff;
    background: var(--blue);
    border-radius: 999px;
    font-weight: 900;
}

.order-next-steps strong,
.admin-review-board strong {
    display: block;
    color: var(--surface-strong);
}

.order-next-steps small,
.admin-review-board small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.admin-review-board span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.order-row {
    grid-template-columns: minmax(0, 1fr) 100px 150px;
}

.admin-login-panel {
    max-width: 520px;
    margin: 60px auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-login-panel p:not(.eyebrow) {
    color: var(--muted);
}

.admin-login-panel form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.admin-login-panel label {
    display: grid;
    gap: 7px;
    color: #34404b;
    font-weight: 800;
}

.admin-login-panel input {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.admin-title-row {
    display: flex;
    gap: 20px;
    align-items: start;
    justify-content: space-between;
    max-width: none;
}

.admin-title-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-card,
.admin-table-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-card {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.admin-refresh-card {
    align-content: start;
}

.admin-refresh-card button {
    justify-self: start;
    margin-top: 6px;
}

.admin-card span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-card strong {
    color: var(--surface-strong);
    font-size: 22px;
}

.admin-card p {
    margin: 0;
    color: var(--muted);
}

.admin-card:hover {
    border-color: var(--blue);
}

.muted-card {
    opacity: 0.78;
}

.admin-table-panel {
    display: grid;
    overflow: hidden;
}

.admin-banner-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.admin-banner-row:last-child {
    border-bottom: 0;
}

.admin-title-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-banner-actions form {
    margin: 0;
}

.button-danger {
    color: var(--danger);
    border-color: var(--danger-soft);
}

.button-danger:hover {
    background: var(--danger-soft);
    border-color: var(--danger);
}

.admin-banner-row h2 {
    margin-bottom: 6px;
    font-size: 22px;
}

.admin-banner-row p:not(.eyebrow) {
    margin: 0 0 6px;
    color: #4d5a66;
}

.admin-banner-preview,
.admin-preview-banner {
    background: #f8fafb;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.admin-banner-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 12px;
}

.admin-banner-preview img {
    width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.admin-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.admin-preview-banner {
    padding: 18px;
}

.admin-preview-banner img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.admin-preview-banner h3 {
    margin-bottom: 8px;
}

.admin-preview-banner p {
    color: #53616e;
}

.admin-preview-banner span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    color: #ffffff;
    background: var(--accent);
    border-radius: 6px;
    font-weight: 800;
}

.admin-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 220px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-filter-bar.order-filter-bar {
    grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(155px, 0.8fr)) auto auto;
}

.admin-filter-bar label {
    display: grid;
    gap: 7px;
    color: #34404b;
    font-weight: 800;
}

.admin-filter-bar input,
.admin-filter-bar select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 400;
}

.translation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.translation-row:last-child {
    border-bottom: 0;
}

.translation-row h2 {
    margin-bottom: 6px;
    font-size: 21px;
}

.source-line {
    margin: 0;
    color: #53616e;
}

.translation-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.translation-status.reviewed {
    background: var(--green);
}

.translation-status.reviewed_stale {
    background: var(--amber);
}

.translation-status.draft_glossary {
    background: var(--blue);
}

.translation-status.pending_vies,
.translation-status.pending_external,
.translation-status.reverse_charge_pending {
    background: var(--amber);
}

.translation-status.pending_company_review,
.translation-status.pending_manual_review {
    background: var(--blue);
}

.translation-status.new {
    background: var(--blue);
}

.translation-status.in_review {
    color: #5c3b00;
    background: #fff3d8;
}

.translation-status.closed {
    color: #0d5d38;
    background: #e5f6ed;
}

.translation-row small {
    display: block;
    margin-top: 8px;
}

.qa-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.qa-summary-grid a {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 800;
}

.qa-summary-grid a:hover {
    border-color: var(--blue);
}

.qa-summary-grid span {
    color: #3d4954;
}

.qa-summary-grid strong {
    color: var(--accent);
    font-size: 22px;
}

.qa-issue-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.qa-issue-list li {
    padding: 5px 8px;
    color: #5c3b00;
    background: #fff4dd;
    border: 1px solid #f1d39b;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.admin-import-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.order-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px 140px auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.order-admin-row:last-child {
    border-bottom: 0;
}

.contact-admin-row {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) 180px minmax(280px, 1fr) 170px;
    gap: 18px;
    align-items: start;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.contact-admin-row:last-child {
    border-bottom: 0;
}

.contact-admin-row h2 {
    margin-bottom: 6px;
    font-size: 22px;
}

.contact-admin-row p:not(.eyebrow) {
    margin: 0 0 6px;
    color: #53616e;
}

.audit-details {
    margin-top: 10px;
}

.audit-details summary {
    color: var(--blue);
    font-weight: 800;
    cursor: pointer;
}

.audit-details pre {
    margin: 10px 0 0;
    white-space: pre-wrap;
}

.admin-inline-form {
    display: grid;
    gap: 10px;
}

.admin-inline-form select {
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
}

.order-admin-row h2 {
    margin-bottom: 6px;
    font-size: 22px;
}

.order-admin-row p:not(.eyebrow) {
    margin: 0;
    color: #53616e;
}

.admin-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.audit-box {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafb;
}

.audit-box + .audit-box {
    margin-top: 12px;
}

.audit-box h3 {
    margin-bottom: 8px;
}

.audit-box p:not(.eyebrow) {
    color: #53616e;
}

.audit-box pre {
    margin-top: 12px;
    white-space: pre-wrap;
}

.payment-event-list,
.notification-list {
    display: grid;
    gap: 12px;
}

.payment-event-list .audit-box,
.notification-list .audit-box {
    margin: 0;
}

.payment-action-panel {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.review-action-panel {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.logistics-action-panel {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.fulfillment-action-panel {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.review-action-panel label,
.logistics-action-panel label,
.fulfillment-action-panel label {
    display: grid;
    gap: 6px;
    color: #53616e;
    font-size: 13px;
    font-weight: 700;
}

.review-action-panel textarea,
.logistics-action-panel textarea,
.fulfillment-action-panel textarea {
    min-height: 96px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    resize: vertical;
}

.logistics-action-panel input,
.logistics-action-panel select,
.fulfillment-action-panel input,
.fulfillment-action-panel select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
}

.review-event-list {
    display: grid;
    gap: 12px;
}

.notification-action-panel {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.notification-action-panel label {
    display: grid;
    gap: 6px;
    color: #53616e;
    font-size: 13px;
    font-weight: 700;
}

.notification-action-panel input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
}

.notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.audit-box.compact {
    margin-bottom: 12px;
}

.translation-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: start;
}

.large-textarea {
    min-height: 240px;
}

.source-panel h3 {
    margin-bottom: 14px;
}

.source-panel h4 {
    margin: 18px 0 6px;
    color: var(--surface-strong);
}

.source-panel p:not(.eyebrow) {
    color: #53616e;
}

.check-line {
    grid-template-columns: 18px 1fr;
    align-items: start;
    margin: 4px 0 20px;
    font-weight: 700;
}

.check-line input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 1px var(--danger);
}

.b2b-note ul {
    margin: 14px 0 0;
    padding-left: 20px;
}

.b2b-note li {
    margin-bottom: 9px;
}

.validation-result {
    margin-top: 24px;
}

.validation-result.ok {
    border-color: rgba(20, 128, 74, 0.45);
}

.validation-result.error {
    border-color: rgba(193, 18, 31, 0.45);
}

.validation-result dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.validation-result dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.validation-result dd {
    margin: 0;
    font-weight: 700;
}

.setup-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr);
    gap: 24px;
    align-items: center;
}

.setup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.setup-actions span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.setup-result.ok h2 {
    color: #16794a;
}

.setup-result.fail h2 {
    color: #b42318;
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.diagnostic-list {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.diagnostic-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f8fafc;
}

.diagnostic-row strong,
.diagnostic-row span {
    min-width: 0;
}

.diagnostic-row span {
    overflow-wrap: anywhere;
    color: #536171;
}

.diagnostic-row em {
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.diagnostic-row.ok em {
    color: #16794a;
}

.diagnostic-row.warn em {
    color: #9a5a00;
}

.diagnostic-row.fail em {
    color: #b42318;
}

pre {
    margin: 0;
    overflow: auto;
    padding: 18px;
    color: #ffffff;
    background: var(--surface-strong);
    border-radius: 8px;
}

.page-empty {
    max-width: 720px;
    margin: 70px auto;
    text-align: center;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1440px;
    margin: 30px auto 0;
    padding: 30px 28px 42px;
    color: #d6dde5;
    background: var(--surface-strong);
}

.site-footer > div {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
}

.site-footer p {
    margin: 8px 0 0;
    color: #aeb9c5;
}

.site-footer a {
    color: #d6dde5;
    font-weight: 750;
}

.site-footer a:hover {
    color: var(--accent);
}

.footer-contact {
    display: grid;
    gap: 4px;
    margin-top: 12px;
}

.footer-contact a,
.footer-contact span {
    color: #aeb9c5;
    font-size: 14px;
    font-weight: 700;
}

.footer-contact a {
    width: fit-content;
    color: #eaf0f5;
    font-weight: 750;
}

.footer-contact a:hover {
    color: var(--accent);
}

.contact-direct {
    margin: 0 0 4px;
}

.static-aside .contact-direct a {
    color: var(--blue);
}

.static-aside .contact-direct span {
    color: var(--muted);
}

.breadcrumb-trail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.breadcrumb-trail a {
    color: var(--blue);
}

.breadcrumb-trail a:hover {
    text-decoration: underline;
}

.breadcrumb-trail span[aria-hidden] {
    color: #aab4bf;
}

.breadcrumb-trail span[aria-current] {
    color: var(--surface-strong);
    font-weight: 800;
}

.catalog-sort {
    display: flex;
    gap: 8px;
    align-items: center;
}

.catalog-sort label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.catalog-sort select {
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}

.pager {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.pager-status {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.pager-more {
    min-width: 260px;
    justify-content: center;
}

.pager-more[hidden] {
    display: none;
}

.pager-more.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.pager-controls[hidden] {
    display: none;
}

.pager-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pager-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

a.pager-link:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.pager-link.current {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
}

.pager-step {
    font-size: 20px;
}

.pager-gap {
    color: var(--muted);
    padding: 0 2px;
}

.empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}

.page-empty .inline-search {
    margin-left: auto;
    margin-right: auto;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    color: var(--surface-strong);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.banner-arrow:hover {
    background: #ffffff;
    border-color: #aeb9c5;
}

.banner-arrow-prev {
    left: 16px;
}

.banner-arrow-next {
    right: 16px;
}

/* ---- Mobile header: hamburger + off-canvas drawer (activated <=1180) ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 46px;
    height: 46px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--surface-strong);
    border-radius: 2px;
}

.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(16, 24, 40, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    width: min(360px, 86vw);
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
}

body.drawer-open {
    overflow: hidden;
}

body.drawer-open .mobile-drawer {
    transform: translateX(0);
    visibility: visible;
}

body.drawer-open .drawer-backdrop {
    opacity: 1;
    visibility: visible;
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.drawer-head strong {
    font-size: 18px;
}

.drawer-close {
    width: 42px;
    height: 42px;
    color: var(--surface-strong);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.drawer-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.drawer-cta,
.drawer-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    font-weight: 800;
}

.drawer-cta {
    justify-content: center;
    color: var(--accent-ink);
    background: var(--accent);
}

.drawer-cta:hover {
    background: var(--accent-strong);
    color: #ffffff;
}

.drawer-link {
    color: var(--surface-strong);
    background: #ffffff;
    border: 1px solid var(--border);
    font-weight: 700;
}

.drawer-link:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.drawer-section-title {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drawer-categories {
    display: grid;
    gap: 2px;
}

.drawer-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 8px 12px;
    color: #303b45;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.drawer-categories a:hover {
    color: var(--blue);
    background: #f2f6f9;
}

.drawer-categories small {
    color: var(--muted);
    font-weight: 800;
}

.drawer-all {
    margin-top: 6px;
    color: var(--blue) !important;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .header-main {
        grid-template-columns: 1fr;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .catalog-entry,
    .category-browser-layout,
    .catalog-layout,
    .product-detail,
    .b2b-layout,
    .checkout-layout,
    .cart-layout,
    .admin-edit-layout,
    .admin-import-layout,
    .translation-edit-layout,
    .admin-order-layout,
    .static-page-layout,
    .contact-page-layout,
    .setup-panel {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .filter-panel {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .category-browser-layout .catalog-rail,
    .catalog-layout-with-rail .catalog-rail {
        position: relative;
        top: auto;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .solutions-overview,
    .solution-card-grid,
    .solution-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-flow {
        grid-template-columns: 1fr;
    }

    .order-next-steps,
    .admin-review-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-list-row {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .product-list-buy {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) auto minmax(220px, 260px);
        align-items: center;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .mega-menu-panel {
        grid-template-columns: 1fr;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-mega-panel {
        display: none !important;
    }

    .static-aside {
        position: static;
    }
}

@media (max-width: 820px) {
    .service-bar {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .header-main,
    main,
    .category-nav {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 30px;
    }

    .home-tiles {
        grid-template-columns: 1fr;
    }

    .banner-dots {
        top: 14px;
        right: 14px;
    }

    .metric-row,
    .contact-info-grid,
    .subcat-strip,
    .product-info,
    .solutions-overview,
    .solution-card-grid,
    .solution-detail-grid,
    .solution-category-grid,
    .category-solution-teaser,
    .field-row,
    .filter-price-row,
    .admin-filter-bar,
    .site-footer,
    .split-section,
    .manufacturer-strip,
    .admin-grid,
    .qa-summary-grid,
    .validation-result dl,
    .order-status-grid {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .catalog-layout .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .order-next-steps,
    .admin-review-board {
        grid-template-columns: 1fr;
    }

    .cart-row,
    .order-row,
    .admin-banner-row,
    .translation-row,
    .order-admin-row,
    .contact-admin-row {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .cart-row .qty-field,
    .cart-row .line-total,
    .order-row > span,
    .order-row .line-total {
        grid-column: 2;
    }

    .line-total {
        text-align: left;
    }

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

    .admin-title-row {
        display: grid;
    }

    .admin-title-actions {
        justify-content: flex-start;
    }

    .panel-title-row {
        display: grid;
    }

    .product-card {
        grid-template-rows: 210px auto auto;
    }

    .catalog-toolbar,
    .catalog-toolbar-notes,
    .product-list-buy {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .solutions-overview,
    .solution-card-grid,
    .solution-detail-grid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .category-solution-teaser {
        padding-left: 16px;
        padding-right: 16px;
    }

    .category-solution-actions {
        justify-content: flex-start;
    }

    .solution-steps {
        grid-template-columns: 1fr;
    }

    .product-list-row {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 12px;
    }

    .product-list-media {
        min-height: 140px;
    }

    .product-list-media img {
        height: 108px;
    }

    .product-list-main {
        padding: 12px 12px 12px 0;
    }

    .product-list-main h3 {
        font-size: 16px;
    }

    .mega-menu-panel {
        left: 16px;
        right: 16px;
        grid-template-columns: 1fr;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .inline-search,
    .product-actions,
    .page-title-actions,
    .category-solution-actions,
    .cart-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cart-row,
    .order-row,
    .admin-banner-row,
    .translation-row,
    .order-admin-row,
    .contact-admin-row {
        grid-template-columns: 1fr;
    }

    .cart-row .qty-field,
    .cart-row .line-total,
    .order-row > span,
    .order-row .line-total {
        grid-column: auto;
    }

    .cart-media {
        width: 100%;
    }

    .admin-title-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-banner-preview {
        width: 100%;
    }

    .product-list-row {
        grid-template-columns: 1fr;
    }

    .product-list-media {
        min-height: 180px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        border-radius: 8px 8px 0 0;
    }

    .product-list-media img {
        height: 142px;
    }

    .product-list-main {
        padding: 14px;
    }

    .product-list-buy {
        grid-column: auto;
        padding: 14px;
    }

    .product-list-form {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .header-search input,
    .inline-search input,
    .header-search button,
    .inline-search button {
        border-radius: 6px;
    }

    .brand img {
        width: 136px;
    }

    .brand > span {
        font-size: 27px;
    }

    .detail-image {
        min-height: 320px;
    }

    .thumb-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 460px) {
    .product-grid,
    .catalog-layout .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Mobile header activation (compact bar + hamburger drawer) ---- */
@media (max-width: 1180px) {
    .nav-toggle {
        display: inline-flex;
        grid-area: toggle;
    }

    .mobile-drawer,
    .drawer-backdrop {
        display: block;
    }

    .service-bar > span {
        display: none;
    }

    .service-bar {
        justify-content: center;
        gap: 12px;
    }

    .header-main {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "toggle brand cart"
            "search search search";
        gap: 12px 14px;
        align-items: center;
    }

    .brand {
        grid-area: brand;
    }

    .brand img {
        width: 112px;
    }

    .brand > span {
        font-size: 24px;
        transform: translateY(-5px);
    }

    .brand small {
        display: none;
    }

    .header-search {
        grid-area: search;
    }

    .header-actions {
        grid-area: cart;
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }

    .desktop-action {
        display: none;
    }

    .category-nav {
        display: none;
    }
}

/* ---------- Search autocomplete (live suggestions) ---------- */
.header-search.has-suggest,
.inline-search.has-suggest {
    position: relative;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 300;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: min(72vh, 480px);
    overflow-y: auto;
    text-align: left;
}

.search-suggest[hidden] {
    display: none;
}

.search-suggest-heading {
    margin: 0;
    padding: 8px 10px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
    background: var(--hairline);
}

.search-suggest-thumb {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2px;
}

.search-suggest-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.search-suggest-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggest-cat .search-suggest-name {
    font-weight: 700;
}

.search-suggest-sub {
    font-size: 0.8rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggest-meta {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
}

.search-suggest-cat .search-suggest-meta {
    min-width: 1.75rem;
    text-align: right;
}

.search-suggest-all {
    display: block;
    margin-top: 4px;
    padding: 10px;
    border-top: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    color: var(--blue);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.search-suggest-all:hover,
.search-suggest-all.is-active {
    background: var(--hairline);
}
