/* FERODO THAILAND theme — built by ferodo-tools/build-theme-css.php, do not edit here:
   design rules: ferodo-site/public/assets/css/app.css, WordPress-only rules: assets/css/wp.css */

/* Kanit (SIL Open Font License), self-hosted: thai + latin subsets */
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/kanit-300-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/kanit-300-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: 'Kanit'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/kanit-400-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/kanit-400-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: 'Kanit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/kanit-500-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/kanit-500-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: 'Kanit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/kanit-600-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/kanit-600-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: 'Kanit'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/kanit-700-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/kanit-700-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; }

/* =====================================================================
   FERODO THAILAND — Design System
   PRECISION IN EVERY BRAKE.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    /* brand */
    --red: #c1001f;              /* Ferodo red as used on ferodo.com */
    --red-600: #a3001a;
    --red-700: #8a0016;
    --red-glow: rgba(193, 0, 31, .18);

    /* neutrals — dark */
    --black: #0b0b0b;
    --ink: #242424;
    --graphite: #1a1a1a;
    --charcoal: #2b2b2b;
    --charcoal-2: #2a2e33;
    --steel: #8a9097;            /* metallic gray */
    --steel-light: #d3d7dc;
    --line-dark: rgba(255, 255, 255, .1);
    --line-dark-2: rgba(255, 255, 255, .18);
    --text-on-dark: #f3f4f5;
    --muted-on-dark: #cdd2d7;

    /* neutrals — light */
    --white: #ffffff;
    --paper: #f1f1f1;
    --paper-2: #e6e6e6;
    --line: #dddddd;
    --text: #242424;
    --muted: #4f4f4f;


    /* status: stays within the palette — red for warnings, black/gray for everything else */
    --danger-tint: #fdecee;
    --danger-line: #f3b9be;
    --danger-text: #7d000a;

    /* type */
    /* Kanit everywhere (Thai and Latin glyphs in one family). */
    --font-display: "Kanit", system-ui, sans-serif;
    --font-body: "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fs-xs: .8125rem;
    --fs-sm: .9375rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.3rem;
    --fs-h4: clamp(1.1rem, 1rem + .4vw, 1.3rem);
    --fs-h3: clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
    --fs-h2: clamp(1.45rem, 1.1rem + 1.6vw, 2.6rem);
    --fs-h1: clamp(1.5rem, 1.2rem + 1.5vw, 2.6rem);   /* page titles in the banner: ~25px phone, ~41px at 1440px */
    --fs-display: clamp(2.2rem, 1.4rem + 4vw, 5rem);

    /* spacing (4px base) */
    --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
    --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
    --section: clamp(2.25rem, 1.6rem + 1.8vw, 3.5rem);   /* top/bottom padding of every section (~52px desktop, ~36px phone) */

    /* layout */
    --container: 1440px;         /* content width (gutters are added outside it) */
    --gutter: clamp(16px, 3vw, 32px);
    --radius-sm: 0;
    --radius: 0;
    --radius-lg: 0;
    --header-h: 84px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .05);
    --shadow: 0 10px 30px rgba(0, 0, 0, .12);
    --shadow-dark: 0 20px 50px rgba(0, 0, 0, .55);
    --ease: cubic-bezier(.2, .7, .1, 1);
    --focus: 0 0 0 3px #fff, 0 0 0 6px var(--red);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--s-4); line-height: 1.15; font-weight: 700; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.icon { width: 1.2em; height: 1.2em; flex: none; }
.muted { color: var(--muted); }
.text-red { color: var(--red); }
.mt-lg { margin-top: var(--s-6); }
.mt-xl { margin-top: var(--s-8); }
.link { color: var(--red-600); font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 3. Typography ---------- */
.h1, .h2, .h3, .product-title, .compound-hero-title, .error-code {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.005em;
    text-transform: uppercase;
    line-height: .98;
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.05; }
.h4 { font-size: var(--fs-h4); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.h5 { font-size: var(--fs-md); font-weight: 600; }
.display { font-size: var(--fs-display); }
:lang(th) .h1, :lang(th) .h2, :lang(th) .h3 { line-height: 1.12; }
.lead { font-size: var(--fs-md); color: var(--muted-on-dark); max-width: 62ch; }
.lead-dark, .section-light .lead { color: var(--muted); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .6em;
    font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
    letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.eyebrow-dark { color: var(--red-600); }
.kicker { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 600; letter-spacing: .3em; font-size: var(--fs-sm); color: var(--steel-light); margin-bottom: var(--s-5); }
.kicker-line { width: 48px; height: 2px; background: var(--red); }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.section { padding-block: var(--section); position: relative; }
.section-black { background: var(--black); color: var(--text-on-dark); }
.section-light { background: var(--white); color: var(--text); }
.section-flush-top { padding-top: 0; }
.section-divided { border-top: 1px solid var(--line); }
.section-black .link { color: #fff; }
.section-head { margin-bottom: var(--s-6); max-width: 820px; }
.section-head-split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5); }
.section-head-split .lead { margin-bottom: 0; }
.section-foot { margin-top: var(--s-6); text-align: center; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }

/* ---------- 5. Buttons ---------- */
.btn {
    --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 46px; padding: .65em 1.35em;
    font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd); border-radius: var(--radius-sm);
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
:lang(th) .btn { letter-spacing: .02em; font-family: var(--font-display); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-primary { --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--red); }
.btn-primary:hover { --btn-bg: var(--red-600); --btn-bd: var(--red-600); box-shadow: 0 8px 24px var(--red-glow); }
.btn-ghost { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); }
.btn-ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn-dark:hover { --btn-bg: var(--red); --btn-bd: var(--red); }
.btn-ghost-dark { --btn-fg: var(--text); --btn-bd: #c5cad0; }
.btn-ghost-dark:hover { --btn-bd: var(--ink); --btn-bg: var(--ink); --btn-fg: #fff; }
.section-black .btn-ghost-dark { --btn-fg: #fff; --btn-bd: var(--line-dark-2); }
.section-light .btn-ghost { --btn-fg: var(--text); --btn-bd: #c5cad0; }
.section-light .btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn-sm { min-height: 38px; padding: .4em .95em; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: .8em 1.7em; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-icon { padding-inline: .7em; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- 6. Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--line); color: var(--text);
}
.header-bar { display: flex; align-items: center; height: 100%; gap: var(--s-5); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 190px; height: auto; }
.brand-country { font-family: var(--font-display); font-weight: 600; letter-spacing: .32em; font-size: .72rem; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.main-nav a {
    display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px;
    font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none; color: var(--text); position: relative; border-radius: var(--radius-sm);
}
:lang(th) .main-nav a { letter-spacing: .01em; font-size: 1.15rem; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav a:hover { color: var(--red-600); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--text); }
.main-nav .nav-cta { background: var(--red); color: #fff; padding: 0 16px; margin-right: 8px; }
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover, .main-nav .nav-cta.is-active { background: var(--red-600); color: #fff; }
.main-nav .nav-cta .icon { width: 18px; height: 18px; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; padding: 0; }
.menu-icon { display: grid; gap: 6px; width: 24px; margin: auto; }
.menu-icon i { display: block; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

@media (max-width: 1279px) {
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .header-tools { margin-left: auto; }
}
@media (max-width: 480px) {
    :root { --header-h: 64px; }
    .brand img { width: 132px; }
    .brand-country { display: none; }
}

/* ---------- 7. Hero ---------- */
.home-banner img { width: 100%; height: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 8. Page heroes ---------- */
.page-hero { position: relative; padding: var(--s-7) 0 var(--s-6); background: var(--black); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 120px; background: var(--red); }
.page-hero-compact { padding-block: var(--s-6) var(--s-5); }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black) 10%, rgba(7, 7, 8, .6) 60%, rgba(7, 7, 8, .3)), linear-gradient(0deg, var(--black), transparent 50%); }
.page-hero-image { padding-bottom: var(--s-8); }
.page-hero-tall { min-height: 78svh; display: flex; align-items: flex-end; }
.page-hero-finder .page-hero-bg img { opacity: .35; }

/* ---------- 9. Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: var(--fs-sm); color: #d2d6db; margin-bottom: var(--s-5); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.section-light .breadcrumbs ol, .product-hero .breadcrumbs ol, .article-head .breadcrumbs ol { color: var(--muted); }
.section-light .breadcrumbs a:hover, .product-hero .breadcrumbs a:hover, .article-head .breadcrumbs a:hover { color: var(--text); }

/* ---------- 10. Forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; position: relative; }
.field > label, .field > legend { font-size: var(--fs-sm); font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 0; }
.step { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; font-family: var(--font-display); }
input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], select, textarea {
    width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
    background: #fff; color: var(--text); border: 1.5px solid #cfd4da;
    transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: #9da4ac; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
select:disabled, input:disabled { background: var(--paper-2); color: #8b929a; cursor: not-allowed; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.field-error { color: var(--red-600); font-size: var(--fs-sm); margin: 0; font-weight: 500; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; color: var(--muted); }
.select-wrap select { padding-right: 40px; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 44px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--line-dark-2); border-radius: var(--radius-sm); overflow: hidden; min-height: 50px; }
.segmented label { position: relative; display: grid; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: grid; place-items: center; padding: 0 10px; font-weight: 600; font-size: var(--fs-sm); color: var(--muted-on-dark); transition: background .2s, color .2s; }
.segmented label + label span { border-left: 1px solid var(--line-dark-2); }
.segmented input:checked + span { background: var(--red); color: #fff; }
.segmented input:focus-visible + span { box-shadow: inset 0 0 0 3px #fff; }
.segmented-light { border-color: #cfd4da; }
.segmented-light span { color: var(--muted); }
.segmented-light label + label span { border-color: #cfd4da; }
.radio-list { display: grid; gap: 4px; }
.radio-list label, .check { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); padding: 6px 0; cursor: pointer; }
.radio-list input, .check input { width: 18px; height: 18px; accent-color: var(--red); flex: none; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); margin-bottom: var(--s-5); }
.field-full { grid-column: 1 / -1; }
.req { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 11. Finder ---------- */
.section-finder { padding-top: var(--section); }
.finder-card { color: var(--text-on-dark); background: linear-gradient(160deg, #1b1d21, #121316); border: 1px solid var(--line-dark); border-top: 3px solid var(--red); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 2vw, 2.75rem); box-shadow: var(--shadow-dark); }
.finder-card-head { margin-bottom: var(--s-6); }
.finder-card-head .h2 { margin: 0 0 var(--s-3); font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.finder-card-head .lead { margin: 0; }
.finder-tabs { display: inline-flex; gap: 4px; padding: 4px; background: rgba(255, 255, 255, .05); border-radius: var(--radius); margin-bottom: var(--s-5); }
.finder-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent; color: var(--muted-on-dark); font-weight: 600; font-size: var(--fs-sm); }
.finder-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.finder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: var(--s-4); align-items: end; }
.finder .field > label, .finder .field > legend { color: #fff; }
.section-light .finder .field > label, .section-light .finder .field > legend { color: var(--text); }
.finder-submit .btn { width: 100%; }
.finder-hint { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted-on-dark); margin: var(--s-4) 0 0; }
.finder-hint .icon { margin-top: 3px; color: var(--steel-light); }
.code-search { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); align-items: end; }
.suggest { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin-top: 4px; list-style: none; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; max-height: 360px; overflow-y: auto; }
.suggest li a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-decoration: none; }
.suggest li img { width: 44px; height: 44px; object-fit: contain; background: var(--paper); border-radius: 4px; }
.suggest li strong { display: block; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .03em; }
.suggest li small { color: var(--muted); }
.suggest li[aria-selected="true"] a, .suggest li a:hover { background: var(--paper); }
.section-finder-page { padding-top: var(--s-6); }
.finder-results { margin-top: var(--s-6); }
.finder-results[aria-busy="true"] { opacity: .45; pointer-events: none; transition: opacity .2s; }
.theme-light-panel { background: var(--white); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-4); }
.results-title { font-size: var(--fs-h4); margin: 0; font-weight: 600; }
.results-title:focus { outline: none; }
.results-count { color: var(--muted); margin: 0; font-size: var(--fs-sm); }
.results-group { margin-top: var(--s-6); }
.results-group-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.results-group-title .count { margin-left: auto; font-size: .95rem; background: var(--ink); color: #fff; padding: 2px 10px; border-radius: 99px; }
.results-group-note { font-size: var(--fs-sm); color: var(--muted); }
.wheel-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.wheel-rear { background: var(--ink); }
.wheel-unknown { background: var(--steel); }
.results-foot { margin-top: var(--s-6); color: var(--muted); }
@media (max-width: 1100px) {
    .finder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-position, .finder-submit { grid-column: span 2; }
}
@media (max-width: 760px) {
    .finder-grid { grid-template-columns: minmax(0, 1fr); }
    .field-position, .finder-submit { grid-column: auto; }
    .code-search { grid-template-columns: minmax(0, 1fr); }
    .finder-tabs { display: flex; }
    .finder-tabs button { flex: 1; justify-content: center; }
}

/* ---------- 12. Notices / empty states / chips ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid; font-size: var(--fs-sm); line-height: 1.6; margin-bottom: var(--s-4); }
.notice p { margin: 0; }
.notice > .icon { margin-top: 2px; }
.notice-info { background: var(--paper); border-color: var(--line); color: var(--text); }
.notice-info > .icon { color: var(--ink); }
.notice-warn { background: var(--danger-tint); border-color: var(--danger-line); color: var(--danger-text); }
.notice-warn > .icon { color: var(--red); }
.notice-success { background: var(--paper); border-color: var(--ink); color: var(--text); }
.notice-success > .icon { color: var(--ink); }
.section-black .notice-info { background: rgba(255, 255, 255, .06); border-color: var(--line-dark-2); color: var(--text-on-dark); }
.section-black .notice-info > .icon { color: #fff; }
.notice-inline { display: inline-flex; }
.empty-state { text-align: center; padding: var(--s-8) var(--s-5); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state-sm { padding: var(--s-6) var(--s-4); }
.empty-icon { width: 48px; height: 48px; margin: 0 auto var(--s-4); color: var(--steel); }
.empty-state h2, .empty-state h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; }
.empty-state p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-5); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: .75rem; }
.count-pill { display: inline-block; font-size: .9rem; padding: 2px 10px; border-radius: 99px; background: var(--ink); color: #fff; vertical-align: middle; font-family: var(--font-body); }
.source-note { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
.section-black .source-note { color: var(--muted-on-dark); }
.source-note .icon { width: 15px; height: 15px; margin-top: 2px; }

/* ---------- 13. Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--s-5); margin-top: var(--s-5); }
.product-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.product-card { position: relative; display: flex; flex-direction: column; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.product-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent, var(--steel)); z-index: 1; }
.product-card:hover { border-color: #b7bdc4; box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card-media { position: relative; display: block; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--paper-2); }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform .45s var(--ease); }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.compound-tag { position: absolute; top: 12px; right: 12px; padding: 3px 9px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .08em; border-radius: 3px; border-left: 3px solid var(--red); }
.compound-tag-lg { font-size: 1.1rem; padding: 6px 14px; top: 20px; right: 20px; }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s-4) var(--s-4) var(--s-5); }
.product-card-kicker { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text, var(--muted)); margin: 0 0 2px; }
.product-card-title { font-family: var(--font-display); font-weight: 800; font-size: 1.65rem; letter-spacing: .02em; margin: 0 0 var(--s-3); line-height: 1.05; }
.product-card-title a { text-decoration: none; }
.product-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card-meta { list-style: none; display: grid; gap: 4px; font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.product-card-meta li { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.meta-label { color: var(--muted); font-size: var(--fs-xs); padding-top: 2px; }
.fit-verify { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-xs); padding: 8px 10px; border-radius: var(--radius-sm); margin-bottom: var(--s-4); line-height: 1.5; }
.fit-verify .icon { width: 15px; height: 15px; margin-top: 1px; }
.fit-verify.is-ok { background: var(--paper); color: var(--text); }
.fit-verify.is-warn { background: var(--danger-tint); color: var(--danger-text); }
.product-card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 2; }
.compound-xrac, .compound-cpro { --accent: var(--red); --accent-text: var(--red-600); }
.compound-st, .compound-ef, .compound-p, .compound-sg, .compound-zr { --accent: var(--ink); --accent-text: var(--text); }
.compound-card:not(.compound-xrac, .compound-cpro), .compound-hero:not(.compound-xrac, .compound-cpro), .compound-cpro) { --accent: #fff; }

/* ---------- 14. Compound cards ---------- */
.compound-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.compound-card { position: relative; color: var(--text-on-dark); background: var(--graphite); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.compound-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(.25); transform-origin: left; transition: transform .45s var(--ease); }
.compound-card:hover { transform: translateY(-6px); border-color: var(--line-dark-2); box-shadow: var(--shadow-dark); }
.compound-card:hover::after { transform: scaleX(1); }
.compound-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.compound-card-media { aspect-ratio: 1 / .82; background: #fff; overflow: hidden; }
.compound-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8% 12%; transition: transform .6s var(--ease); }
.compound-card:hover .compound-card-media img { transform: scale(1.06) rotate(-1.5deg); }
.compound-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s-5); }
.compound-card h3 { display: flex; flex-direction: column; margin-bottom: var(--s-3); }
.compound-code { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: .9; color: var(--accent); letter-spacing: .01em; }
.compound-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .1em; }
.compound-card p { color: var(--muted-on-dark); font-size: var(--fs-sm); }
.link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.compound-card:hover .link-arrow .icon { transform: translateX(6px); }
.compound-xrac .compound-code, .compound-cpro .compound-code, .compound-st .compound-code, .compound-ef .compound-code { color: var(--accent); }
@media (max-width: 1100px) { .compound-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .compound-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 15. Heritage ---------- */
.heritage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.heritage-media { margin: 0; }
.heritage-media img { width: 100%; border-radius: var(--radius-lg); }

/* ---------- 16. Technology explorer ---------- */
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.check-list .icon { color: var(--red); margin-top: 3px; width: 18px; height: 18px; }
.check-list-lg li { font-size: var(--fs-base); }

/* ---------- 17. Riding style ---------- */
@media (max-width: 1100px) { .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .style-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 18. Dealer locator ---------- */
.locator-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: var(--s-4); align-items: end; margin-bottom: var(--s-3); }
.locator .field > label { color: #fff; }
.locator-actions { display: flex; gap: var(--s-3); }
.locator-status { min-height: 1.6em; color: var(--muted-on-dark); font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.locator-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-4); height: 640px; }
.locator-preview .locator-body { grid-template-columns: minmax(0, 1fr); height: 480px; }
.locator-map { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #eeeeee; border: 1px solid var(--line); min-height: 320px; }
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted-on-dark); gap: 8px; }
.map-fallback .icon { width: 42px; height: 42px; color: var(--red); }
.dealer-list { list-style: none; overflow-y: auto; display: grid; align-content: start; gap: var(--s-3); padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--charcoal-2) transparent; }
.dealer-card { background: var(--graphite); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: var(--s-4); transition: border-color .2s, background .2s; }
.dealer-card.is-active, .dealer-card:hover { border-color: var(--red); background: var(--charcoal); }
.dealer-card-head { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.dealer-card h3 { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .02em; margin-bottom: 4px; }
.dealer-region { font-size: var(--fs-xs); color: var(--steel-light); white-space: nowrap; }
.dealer-distance { font-family: var(--font-display); color: var(--red); font-weight: 700; margin-left: 6px; }
.dealer-address { display: flex; gap: 8px; font-size: var(--fs-sm); color: var(--muted-on-dark); margin-bottom: var(--s-3); }
.dealer-address .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--steel); }
.dealer-hours { font-size: var(--fs-sm); margin-bottom: var(--s-3); color: var(--muted-on-dark); }
.dealer-hours summary { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.dealer-hours summary .icon { width: 16px; height: 16px; }
.dealer-hours dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 8px 0 0; }
.dealer-hours dd { margin: 0; }
.dealer-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dealer-actions .btn-dark { --btn-bg: var(--red); --btn-bd: var(--red); }
.section-locator { padding-top: var(--s-6); }
.section-light .locator .field > label { color: var(--text); }
.section-light .locator-status { color: var(--muted); }
.section-light .locator-map { border-color: var(--line); }
.section-light .dealer-list { scrollbar-color: #c5cad0 transparent; }
.section-light .dealer-card { background: var(--white); border-color: var(--line); }
.section-light .dealer-card.is-active, .section-light .dealer-card:hover { background: var(--paper); border-color: var(--red); }
.section-light .dealer-region, .section-light .dealer-address, .section-light .dealer-hours { color: var(--muted); }
/* Leaflet theming */
.locator-map.leaflet-container { background: #eeeeee; font-family: var(--font-body); }
.leaflet-tile-pane { filter: grayscale(1) brightness(1.06) contrast(.9); } /* light grey / white map so the red pins stand out */
.leaflet-control-attribution { background: rgba(255, 255, 255, .85) !important; color: #555; }
.leaflet-control-attribution a { color: #333; }
.leaflet-popup-content-wrapper { border-radius: var(--radius); }
.leaflet-popup-content { margin: 12px 14px; color: var(--text); line-height: 1.5; }
.leaflet-popup-content strong { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.leaflet-popup-content a { color: var(--red-600); font-weight: 600; }
.ferodo-pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--red); transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.ferodo-pin.is-active { background: #fff; border-color: var(--red); }
.user-pin { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 0 0 6px rgba(255, 255, 255, .3); }
@media (max-width: 1000px) {
    .locator-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .locator-filters .field:first-child, .locator-actions { grid-column: 1 / -1; }
    .locator-body { grid-template-columns: minmax(0, 1fr); height: auto; }
    .locator-map { height: 380px; }
    .dealer-list { max-height: none; overflow: visible; }
}
@media (max-width: 560px) { .locator-filters { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 19. Knowledge cards / articles ---------- */
.kb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.kb-card { position: relative; display: grid; gap: 6px; padding: var(--s-5); padding-right: 56px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.kb-card:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.kb-card > .icon:first-child { width: 28px; height: 28px; color: var(--red); margin-bottom: var(--s-2); }
.kb-title { font-weight: 600; font-size: var(--fs-md); }
.kb-text { color: var(--muted); font-size: var(--fs-sm); }
.kb-arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); transition: transform .2s var(--ease); }
.kb-card:hover .kb-arrow { transform: translate(4px, -50%); }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--s-5); }
.article-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease); color: var(--text); }
.article-card a:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.article-card-media { aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; }
.article-card-ph { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--charcoal), var(--black)); color: var(--red); }
.article-card-ph .icon { width: 48px; height: 48px; }
.article-card-body { padding: var(--s-4) var(--s-5) var(--s-5); }
.article-type { font-size: var(--fs-xs); color: var(--red-600); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.article-card h3 { font-size: var(--fs-md); line-height: 1.4; font-weight: 600; }
.article-card p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
@media (max-width: 900px) { .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kb-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 20. Catalog ---------- */
.catalog { padding-block: var(--s-6) var(--section); }
.catalog-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-6); }
.category-tabs { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.category-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; text-decoration: none; font-weight: 600; white-space: nowrap; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.category-tabs a span { font-size: var(--fs-xs); background: var(--paper-2); border-radius: 99px; padding: 1px 8px; color: var(--muted); }
.category-tabs a:hover { color: var(--text); }
.category-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--red); }
.filters-toggle { display: none; }
.filter-form { display: grid; gap: var(--s-5); padding: var(--s-5); background: var(--paper); border-radius: var(--radius-lg); } /* not sticky: it used to slide over the category list below it */
.filters-title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; margin: 0; }
.filter-actions { display: grid; gap: 8px; }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; align-items: center; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; font-size: var(--fs-sm); border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; }
.filter-chip .icon { width: 14px; height: 14px; }
.filter-chip:hover { background: var(--red); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: var(--s-7); }
.pagination a { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.pagination a:hover { border-color: var(--ink); }
.pagination a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 960px) {
    .catalog-layout { grid-template-columns: minmax(0, 1fr); }
    .filters-toggle { display: inline-flex; }
    .filter-form { display: none; position: static; max-height: none; margin-top: var(--s-3); }
    .filters.is-open .filter-form { display: grid; }
}

/* ---------- 21. Product detail ---------- */
.product-hero { padding-block: var(--s-5) var(--s-6); border-bottom: 1px solid var(--line); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.product-gallery-main { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 45%, #fff, #eef0f2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.product-thumbs { list-style: none; display: flex; gap: 8px; margin-top: var(--s-3); }
.product-thumbs button { width: 76px; height: 76px; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.product-thumbs button[aria-pressed="true"] { border-color: var(--red); }
.product-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-summary { position: sticky; top: calc(var(--header-h) + 24px); }
.product-title { font-size: clamp(2.6rem, 1.8rem + 3.2vw, 4.6rem); margin-bottom: var(--s-2); letter-spacing: .01em; }
.brand-word { color: var(--red); }
.product-subtitle { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: .14em; color: var(--muted); margin-bottom: var(--s-4); }
.product-intro { font-size: var(--fs-md); color: #3a4047; }
.key-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: var(--s-5) 0; }
.key-specs div { background: #fff; padding: 12px 16px; }
.key-specs dt { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.key-specs dd { margin: 2px 0 0; font-weight: 600; }
.product-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.no-shop-note { display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-3); }
.no-shop-note .icon { width: 15px; height: 15px; }
.product-details-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.spec-table, .fitment-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 500; color: var(--muted); background: var(--paper); }
.spec-table td { font-weight: 600; }
.fitment-list { display: grid; gap: var(--s-3); max-height: 760px; overflow-y: auto; padding-right: 4px; margin-top: var(--s-3); }
.fitment-make { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fitment-make summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .06em; background: var(--paper); cursor: pointer; }
.fitment-make summary .count { font-size: .85rem; font-family: var(--font-body); color: var(--muted); }
.fitment-table th, .fitment-table td { text-align: left; padding: 9px 16px; border-top: 1px solid var(--paper-2); }
.fitment-table th { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 900px) {
    .product-layout, .product-details-grid { grid-template-columns: minmax(0, 1fr); }
    .product-summary { position: static; }
}


/* ---------- 23. Compound page ---------- */
.compound-hero { position: relative; color: var(--text-on-dark); padding: var(--s-7) 0; background: radial-gradient(ellipse at 75% 40%, #2a2d32 0%, var(--black) 62%); overflow: hidden; }
.compound-hero::before { content: ""; position: absolute; right: -10%; top: 10%; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-dark); box-shadow: 0 0 0 80px rgba(255, 255, 255, .015), 0 0 0 160px rgba(255, 255, 255, .01); pointer-events: none; }
.compound-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.compound-hero-title { font-size: var(--fs-h1); }
.compound-hero-title span { display: block; font-size: 1.7em; color: var(--accent); line-height: .85; }
.compound-hero-media { background: #fff; border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; padding: 16%; box-shadow: var(--shadow-dark), 0 0 0 10px rgba(255, 255, 255, .03); }
.compound-hero-media img { width: 100%; height: 100%; object-fit: contain; }
.other-compounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.other-compound { display: flex; align-items: center; gap: 12px; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); text-decoration: none; transition: background .2s; }
.other-compound:hover { background: var(--paper); }
.other-compound strong { font-family: var(--font-display); font-size: 1.7rem; }
.other-compound span { font-size: var(--fs-xs); letter-spacing: .1em; color: var(--muted); }
.other-compound .icon { margin-left: auto; }
.topic { padding: var(--s-5); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .02); }
.topic h3 { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.7rem; text-transform: uppercase; }
.topic h3 .icon { color: var(--red); width: 26px; height: 26px; }
.topic p { color: var(--muted-on-dark); }
@media (max-width: 900px) {
    .compound-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .compound-hero-media { max-width: 360px; }
    .other-compounds { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 24. Motorsport ---------- */
.editorial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-7); align-items: center; }
.editorial-copy p:not(.source-note) { color: var(--muted); font-size: var(--fs-md); }
.section-black .editorial-copy p:not(.source-note) { color: var(--muted-on-dark); }
.editorial-media { margin: 0; }
.editorial-media img { border-radius: var(--radius-lg); }
.editorial-media figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-2); }
.section-black .editorial-media figcaption { color: var(--muted-on-dark); }
.timeline { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s-8); }

.timeline-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 var(--s-5); padding: 14px 0; border-top: 1px solid var(--line); break-inside: avoid; }


.timeline-year { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.5; color: var(--red-600); }
.timeline-item p { margin: 0; line-height: 1.65; }
.timeline-item p:not(.timeline-year) { color: var(--text); }
.section-black .timeline-item { border-color: var(--line-dark-2); }
.section-black .timeline-item p:not(.timeline-year) { color: var(--text-on-dark); }
.section-black .timeline-item .timeline-year { color: #ff4d57; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: var(--s-3); margin-top: var(--s-5); }
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-0 { grid-column: span 2; grid-row: span 2; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); align-items: start; margin-top: var(--s-5); }
.archive-grid figure { margin: 0; }
.archive-grid img { border-radius: var(--radius); filter: saturate(.9); }
.archive-grid figcaption { font-size: var(--fs-sm); color: var(--muted-on-dark); margin-top: var(--s-2); }
@media (max-width: 900px) {
    .editorial { grid-template-columns: minmax(0, 1fr); }
    .timeline { columns: 1; }
    .timeline-item { grid-template-columns: 76px minmax(0, 1fr); gap: 0 var(--s-4); }
    .timeline-year { font-size: 1.15rem; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
    .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 25. Support / FAQ / auth / contact ---------- */
.faq-list { display: grid; gap: var(--s-3); }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary { display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s var(--ease); color: var(--red); }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq[open] { border-color: var(--ink); }
.faq-body { padding: 0 var(--s-5) var(--s-4); color: #3a4047; }
.inquiry-product { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--paper); border-radius: var(--radius-sm); }

/* ---------- 26. Article / prose ---------- */
.article { background: #fff; color: var(--text); padding-bottom: var(--section); }
.article-head { padding: var(--s-7) 0 var(--s-5); }
.article-title { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2.2rem); line-height: 1.25; font-weight: 600; }
.article-cover { margin-block: 0 var(--s-6); }
.article-cover img { border-radius: var(--radius-lg); width: 100%; }
.prose { font-size: 1.075rem; line-height: 1.85; color: #2a2f35; }
.prose h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); margin-top: var(--s-6); font-weight: 600; line-height: 1.4; }
.prose h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); margin-top: var(--s-5); font-weight: 600; line-height: 1.4; }
.prose h4 { font-size: 1.1rem; margin-top: var(--s-5); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: var(--s-4); }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--radius); margin: var(--s-5) 0; }
.prose a { color: var(--red-600); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; font-size: var(--fs-sm); }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.article-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); }

/* ---------- 27. Error ---------- */
.error-page { min-height: 70vh; display: grid; align-items: center; padding-block: var(--s-9); text-align: center; }
.error-code { font-size: clamp(4.5rem, 3rem + 8vw, 9rem); color: transparent; -webkit-text-stroke: 2px var(--red); margin: 0; }
.error-page .lead { margin-inline: auto; }
.error-page .hero-ctas { justify-content: center; }


/* ---------- 29. Cookie banner ---------- */
.cookie-banner { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; display: grid; gap: var(--s-3); padding: var(--s-5); background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); font-size: var(--fs-sm); border-top: 3px solid var(--red); }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--red-600); }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-banner .btn-ghost { --btn-fg: var(--text); --btn-bd: #c5cad0; }

/* ---------- 30. Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- 31. Mobile polish ---------- */
@media (max-width: 760px) {
    .hero-ctas .btn { flex: 1 1 100%; }
    .heritage-grid { grid-template-columns: minmax(0, 1fr); }
    .product-ctas .btn { flex: 1 1 100%; }
    .key-specs { grid-template-columns: minmax(0, 1fr); }
    .section-head-split { align-items: flex-start; }
}

/* ---------- 32. Print ---------- */
@media print {
    .site-header, .site-footer, .cookie-banner, .product-ctas, .locator-map { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ---------- 33. Small screens: let long Thai button labels wrap ---------- */
@media (max-width: 560px) {
    .btn { white-space: normal; text-align: center; line-height: 1.3; }
    .section-foot .btn { width: 100%; }
}

/* ---------- 34. Previous-site structure: dropdown menu ---------- */
.brand img { width: 190px; }
.main-nav .has-sub { position: relative; display: flex; align-items: center; }
.main-nav .sub-toggle { display: grid; place-items: center; width: 28px; height: 42px; margin-left: -8px; border: 0; background: transparent; color: var(--text); padding: 0; }
.main-nav .sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 240px; display: block; padding: 6px 0; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.main-nav .sub-menu li { position: relative; display: block; }
.main-nav .sub-menu a { display: flex; justify-content: space-between; width: 100%; height: auto; min-height: 44px; padding: 10px 18px; font-size: 1.05rem; letter-spacing: .04em; border-radius: 0; }
.main-nav .sub-menu a::after { display: none; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu a.is-active { background: var(--paper); color: var(--red-600); }
.main-nav .sub-menu a .icon { width: 14px; height: 14px; }
.main-nav .sub-menu-2 { top: -9px; left: 100%; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.main-nav .has-sub:hover > .sub-menu, .main-nav .has-sub:focus-within > .sub-menu, .main-nav .has-sub.is-open > .sub-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.main-nav .has-sub.is-open > .sub-toggle .icon { transform: rotate(180deg); }
@media (max-width: 480px) { .brand img { width: 150px; } }

/* ---------- 35. Imported pages (app/Support/Blocks.php) ---------- */
.block-section > .container > * + * { margin-top: var(--s-5); }
.block-section > .container > .block-heading.h2 + * { margin-top: var(--s-6); }
.section-photo { position: relative; isolation: isolate; background: var(--black) var(--section-bg) center / cover no-repeat; }
.section-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 7, 8, .9), rgba(7, 7, 8, .84) 50%, rgba(7, 7, 8, .9)); }
.section-photo .block-text, .section-photo .prose { color: #fff; }
.section-photo .block-heading, .section-photo .block-text { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.page-hero-photo { background: var(--black) var(--section-bg) center / cover no-repeat; }
.block-heading { margin: 0; }
.block-heading.h2 { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.4rem); }
.block-kicker { margin: 0 0 4px; font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-size: var(--fs-sm); }
.block-section > .container > .block-heading.h2 { text-align: center; }
.block-cols { display: grid; grid-template-columns: var(--cols); gap: var(--s-6); align-items: start; }
.block-row + *, * + .block-row { margin-top: var(--s-5); }
.block-col > * + * { margin-top: var(--s-4); }
.block-col > .block-text p { margin: 0; }
.block-text p + p, .block-col > .block-text p + p { margin-top: var(--s-4); }
.block-card { display: flex; flex-direction: column; height: 100%; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--text); text-align: center; }
.section-black .block-card { background: var(--graphite); border-color: var(--line-dark); color: var(--text-on-dark); }
.block-card .block-text:nth-of-type(1) p { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.05rem, .85rem + .7vw, 1.35rem); letter-spacing: .03em; overflow-wrap: anywhere; }
.block-card .block-button { margin-top: auto; padding-top: var(--s-4); }
.block-card .block-image img { margin-inline: auto; max-height: 260px; width: auto; }
.block-image img { width: auto; max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.block-col:has(> .block-heading) > .block-image:only-of-type, .block-section > .container > .block-image { text-align: center; }
.block-section > .container > .block-image img { margin-inline: auto; }
.block-col:has(> .block-icon) { text-align: center; }
.block-icon { display: block; width: 64px; height: 64px; margin-inline: auto; }
.section-black .block-icon { filter: brightness(0) invert(1); }
.block-button { margin: 0; }
.block-gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-4); align-items: center; }
.block-gallery img { width: 100%; height: auto; }
.block-gallery.is-large { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.block-video, .block-map { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius-sm); overflow: hidden; }
.block-map { aspect-ratio: auto; height: clamp(320px, 36vw, 520px); }
.block-video iframe, .block-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.block-divider { border: 0; height: 3px; width: 80px; background: var(--red); margin-block: var(--s-3); }
.block-text { max-width: none; }
.block-form { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.section-black .block-form { background: var(--graphite); border-color: var(--line-dark); }
@media (max-width: 900px) {
    .block-cols { grid-template-columns: minmax(0, 1fr); }
    .block-cols:has(> .block-card:nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* phones: product cards as horizontal rows (image left, text right), one per row */
@media (max-width: 600px) {
    .block-cols:has(> .block-card:nth-child(n)) { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
    .block-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: var(--s-4); row-gap: 4px; align-items: start; padding: var(--s-4); text-align: left; }
    .block-card > .block-image { grid-row: 1 / span 4; max-width: none !important; margin: 0; }
    .block-card > .block-image img { width: 100%; height: auto; max-height: 120px; object-fit: contain; }
    .block-card > :not(.block-image) { grid-column: 2; margin: 0; text-align: left; }
    .block-card .block-text:nth-of-type(1) p { font-size: 1rem; }
    .block-card .block-text p { font-size: .9rem; line-height: 1.55; }
    .block-card .block-button { padding-top: 8px; }
    .block-card .block-button .btn { min-height: 40px; padding: .45em 1em; font-size: .85rem; }
}
.block-card .block-button .btn { max-width: 100%; white-space: normal; text-align: center; }

/* ---------- 36. Catalog (/your-bike), product page ---------- */
.product-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.product-card-link:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.category-list { margin-top: var(--s-5); padding: var(--s-5); background: var(--paper); border-radius: var(--radius-lg); } /* same card as the "ระบุรุ่นรถของคุณ" form above */
.category-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.category-list ul ul { padding-left: var(--s-4); margin-top: 2px; }
.category-list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; text-decoration: none; border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.category-list a span { color: var(--muted); }
.category-list a:hover { background: #fff; }
.category-list a[aria-current] { background: var(--ink); color: #fff; }
.category-list a[aria-current] span { color: var(--steel-light); }
.filter-form .filters-title, .category-list .filters-title { font-size: 1.15rem; margin: var(--s-5) 0 var(--s-3); padding-bottom: 6px; border-bottom: 2px solid var(--red); }
.filter-form > .filters-title:first-of-type, .category-list > .filters-title { margin-top: 0; }
.product-contact { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.product-contact .h3 { margin: 0 0 var(--s-4); }
.contact-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: 8px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .icon { color: var(--red); }
.fitment-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--s-6); }
.product-fitment .fitment-table { width: 100%; border-collapse: collapse; background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.product-fitment .fitment-table th, .product-fitment .fitment-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.product-fitment .fitment-table thead th { background: var(--red); color: #fff; }
.section-black .prose, .section-black .block-card .prose { color: var(--text-on-dark); }
.section-black .prose a { color: #fff; }
.section-black .prose td, .section-black .prose th { border-color: var(--line-dark-2); }
@media (min-width: 1101px) { .finder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(220px, auto); } }
.block-section .finder { max-width: 1100px; margin-inline: auto; }
.block-col .block-heading.h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.block-divider { margin-inline: 0; }

/* ---------- 37. Review slider, dealer logo wall ---------- */
.review-slider { position: relative; }
.review-track {
    list-style: none; margin: 0; padding: 4px 2px 10px;
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--s-5)) / 3); gap: var(--s-5);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }
.review-track:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.review-card {
    scroll-snap-align: start; display: flex; flex-direction: column;
    padding: var(--s-6) var(--s-5) var(--s-5); background: var(--white); color: var(--text);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.review-mark { display: block; height: 2.4rem; font-family: Georgia, "Times New Roman", serif; font-size: 5rem; line-height: .9; color: var(--red); }
.review-card blockquote { flex: 1; margin: var(--s-3) 0 var(--s-5); }
.review-card blockquote p { margin: 0; line-height: 1.75; color: #2a2f35; }
.review-by { display: flex; align-items: center; gap: 12px; margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--line); font-weight: 600; }
.review-avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); }
.section-black .review-card { background: var(--graphite); border-color: var(--line-dark); color: var(--text-on-dark); box-shadow: none; }
.section-black .review-card blockquote p { color: var(--text-on-dark); }
.section-black .review-by { border-color: var(--line-dark); }
.slider-nav { display: flex; justify-content: center; gap: var(--s-3); margin-top: var(--s-5); }
.slider-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.slider-btn .icon { width: 20px; height: 20px; }
.slider-btn:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }
.slider-btn:disabled { opacity: .35; cursor: default; }
.section-black .slider-btn { border-color: var(--line-dark-2); color: #fff; }
.review-slider.is-static .slider-nav { display: none; }
@media (max-width: 1000px) { .review-track { grid-auto-columns: calc((100% - var(--s-5)) / 2); } }
@media (max-width: 640px) { .review-track { grid-auto-columns: 88%; gap: var(--s-4); } }

.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: var(--s-3); }
.logo-wall li { display: grid; place-items: center; aspect-ratio: 1; padding: 6%; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s var(--ease), box-shadow .2s; }
.logo-wall li:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--red); }
.logo-wall img { width: 100%; height: 100%; object-fit: contain; }
.logo-wall.is-collapsed li:nth-child(n+31) { display: none; }
.logo-wall-more { margin: var(--s-6) 0 0; text-align: center; }
.logo-wall-more .btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
@media (max-width: 1100px) {
    .logo-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .logo-wall.is-collapsed li:nth-child(n+19) { display: none; }
}
@media (max-width: 640px) {
    .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .logo-wall.is-collapsed li:nth-child(n+13) { display: none; }
}

/* ---------- 38. Footer ---------- */
.site-footer { position: relative; background: var(--black); color: var(--text-on-dark); padding-top: var(--s-8); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s-7); padding-bottom: var(--s-7); }
.footer-logo { display: inline-block; }
.footer-logo img { width: 200px; height: auto; }
.footer-note { margin: var(--s-5) 0; max-width: 38ch; line-height: 1.7; color: var(--muted-on-dark); }
.footer-col h2 { position: relative; margin: 0 0 var(--s-5); padding-bottom: 12px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.footer-col h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--red); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
nav.footer-col a { color: var(--muted-on-dark); text-decoration: none; transition: color .2s; }
nav.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact-list { gap: 14px; }
.footer-contact-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; line-height: 1.6; color: var(--muted-on-dark); }
.footer-contact-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--red); }
.footer-contact-list address { font-style: normal; }
.footer-contact-list a { color: #fff; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; margin: 0; padding: var(--s-4) 0; border-top: 1px solid var(--line-dark); font-size: .8rem; line-height: 1.6; text-align: center; color: #c9ced4; }
.footer-bottom > span + span::before { content: "·"; margin-right: 14px; color: #8a8a8a; }
.footer-bottom a { color: var(--steel-light); font-size: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-partners { font-size: inherit; color: #c9ced4; }
.footer-partners a { color: var(--steel-light); }
.footer-partners a:hover { color: #fff; }
@media (max-width: 1100px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .site-footer { padding-top: var(--s-7); }
    .footer-main { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding-bottom: var(--s-7); }
    .footer-bottom > span + span::before { display: none; }
}

/* ---------- 39. Contact page: head-office details beside a tall map, then quick links ---------- */
.contact-hq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: stretch; }
.contact-hq-name { margin: 0 0 var(--s-3); font-size: clamp(1.3rem, 1.1rem + .9vw, 2rem); font-weight: 700; line-height: 1.3; }
.contact-hq-address { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; margin: 0 0 var(--s-4); color: #3a3a3a; line-height: 1.7; }
.contact-hq-address .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--red); }
.contact-hq-nav { margin: 0 0 var(--s-6); }
.contact-hq-nav .icon { width: 18px; height: 18px; }
.contact-hq-list { margin: 0; border-top: 1px solid var(--line); }
.contact-hq-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s-4); padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-hq-row dt { display: flex; align-items: center; gap: 10px; align-self: start; padding-top: 2px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.contact-hq-row dt .icon { width: 20px; height: 20px; color: var(--red); flex: none; }
.contact-hq-row dd { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.contact-hq-line { display: block; }
.contact-hq-line + .contact-hq-line { margin-top: 4px; }
.contact-hq-row dd a { color: var(--text); font-weight: 500; text-decoration: none; }
.contact-hq-row dd a:hover { color: var(--red); text-decoration: underline; }
.contact-hq-big { font-size: 1.35rem; font-weight: 700 !important; letter-spacing: .01em; }
.contact-hq-tag { display: inline-block; margin-left: 6px; padding: 1px 10px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 600; vertical-align: 3px; }
.contact-hq-map { position: relative; min-height: 520px; background: var(--paper-2); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.contact-hq-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.contact-links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.contact-link { display: flex; align-items: center; gap: var(--s-4); height: 100%; padding: var(--s-5); background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); transition: box-shadow .2s, transform .2s var(--ease); }
.contact-link:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .16); transform: translateY(-2px); }
.contact-link-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; background: var(--red); color: #fff; }
.contact-link-icon .icon { width: 24px; height: 24px; }
.contact-link-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.contact-link-text strong { font-size: 1.05rem; font-weight: 600; }
.contact-link-text small { font-size: .88rem; color: var(--muted); }
.contact-link > .icon { width: 20px; height: 20px; flex: none; color: var(--red); transition: transform .2s var(--ease); }
.contact-link:hover > .icon { transform: translateX(4px); }

@media (max-width: 1000px) {
    .contact-hq-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-hq-map { min-height: 380px; }
    .contact-links-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .contact-hq-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ---------- 40. Call-to-action band (heading + button row) ---------- */
.block-row:has(> .block-cta) { margin-top: var(--s-8); }
.block-cta {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-7);
    padding: var(--s-6) var(--s-7); background: var(--paper); border: 1px solid var(--line);
    border-left: 4px solid var(--red); border-radius: var(--radius-lg);
}
.section-black .block-cta { background: var(--graphite); border-color: var(--line-dark); border-left-color: var(--red); }
.block-cta > .block-col { flex: 0 1 auto; }
.block-cta > .block-col:first-child { flex: 1 1 auto; }
.block-cta .block-heading { margin: 0; line-height: 1.3; }
.block-cta .block-button { white-space: nowrap; }
@media (max-width: 640px) {
    .block-cta { flex-direction: column; align-items: flex-start; padding: var(--s-5); }
}

/* ---------- 41. Product card (image, range, name, price) ---------- */
.product-card { border-radius: var(--radius-lg); }
.product-card::before { display: none; }
.product-card:hover { border-color: var(--red); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.product-card-media { background: #fff; border-bottom: 1px solid var(--paper-2); }
.product-card-media img { padding: 8%; }
.product-card-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 14px 16px 16px; }
.product-card-kicker { margin: 0; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red-700); }
.product-card-title {
    margin: 0; font-family: var(--font-body); font-size: .95rem; font-weight: 500; letter-spacing: 0; line-height: 1.45; color: var(--text); text-transform: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.product-card-price { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.product-card-more { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; color: var(--text); transition: background .2s, border-color .2s, color .2s; }
.product-card-more .icon { width: 16px; height: 16px; }
.product-card-link:hover .product-card-more { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- 42. Product page: range, smaller title, price ---------- */
.product-range { margin: 0 0 6px; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red-700); }
.product-title { font-size: clamp(1.3rem, 1.1rem + 1vw, 2rem); font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; margin-bottom: var(--s-4); }
:lang(th) .product-title { line-height: 1.35; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 var(--s-4); font-size: clamp(1.4rem, 1.25rem + .6vw, 1.9rem); font-weight: 700; color: var(--text); }
.product-price-label { font-size: .95rem; font-weight: 500; color: var(--muted); }
.product-contact .h3 { font-size: 1.2rem; font-weight: 600; text-transform: none; line-height: 1.4; }

/* ---------- 43. /products ---------- */
.section-paper { background: var(--paper); color: var(--text); }
.products-nav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.products-nav ul { display: flex; gap: var(--s-6); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.products-nav ul::-webkit-scrollbar { display: none; }
.products-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 16px 0 13px; border-bottom: 3px solid transparent; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; }
.products-nav a:hover { border-bottom-color: var(--red); }
.products-nav-n { padding: 0 8px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .78rem; line-height: 1.6; }
html:has(.page-products) { scroll-padding-top: calc(var(--header-h) + 72px); }

.range-group + .range-group { margin-top: var(--s-7); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.range-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--s-4) var(--s-7); align-items: end; margin-bottom: var(--s-5); }
.range-title { margin: 0; font-size: clamp(1.3rem, 1.1rem + 1vw, 2.1rem); font-weight: 700; line-height: 1.25; }
.range-intro p { margin: 0; color: #40464d; line-height: 1.75; }
.range-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.range-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.range-card:hover { border-color: var(--red); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.range-card:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.range-card-media { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 7%; background: var(--paper); }
.range-card-media img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.range-card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: var(--s-4) var(--s-5) var(--s-5); }
.range-card-name { margin: 0; font-size: 1.1rem; font-weight: 600; line-height: 1.35; letter-spacing: .01em; }
.range-card-name a { color: var(--text); text-decoration: none; }
.range-card-name a::after { content: ""; position: absolute; inset: 0; }
.range-card-name a:focus-visible { outline: none; }
.range-card-desc { color: #40464d; font-size: .95rem; line-height: 1.6; }
.range-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--s-3); color: var(--red-600); font-weight: 600; font-size: .95rem; }
.range-card-more .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.range-card:hover .range-card-more .icon { transform: translateX(4px); }
.range-note { margin-top: var(--s-7); text-align: center; color: #40464d; }
.range-note p { margin: 0; }

.products-all-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-bottom: var(--s-5); }
.products-all-sub { margin: 6px 0 0; }
.products-all-sub .link { display: inline-flex; align-items: center; gap: 6px; }
.products-all-sub .icon { width: 16px; height: 16px; }
.products-search label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.products-search-field { position: relative; display: block; }
.products-search-field .icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.products-search input { width: min(100%, 340px); height: 48px; padding: 0 14px 0 44px; background: #fff; border: 1px solid #b9bfc6; border-radius: var(--radius); }
.products-search input:focus { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-4); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; background: #fff; border: 1px solid #b9bfc6; border-radius: 99px; color: var(--text); font-size: .95rem; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chip span { font-size: .8rem; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] span { color: #d2d6db; }
.products-count { margin: 0 0 var(--s-4); color: var(--muted); font-size: .95rem; }
.products-all .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--s-4); margin-top: 0; }
.products-empty { padding: var(--s-7) 0; text-align: center; color: var(--muted); }

.products-guide .range-title { color: var(--text); }
.guide-main { margin: var(--s-6) 0 0; }
.guide-main img, .guide-item img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-5); }
.guide-item { margin: 0; }
.guide-item figcaption { margin-top: var(--s-3); font-size: 1.05rem; font-weight: 600; color: var(--text); }

@media (max-width: 1000px) {
    .range-head { grid-template-columns: minmax(0, 1fr); }
    .range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .products-nav ul { gap: var(--s-5); }
    .range-grid { gap: var(--s-3); }
    .range-card-body { padding: var(--s-3) var(--s-4) var(--s-4); }
    .range-card-name { font-size: 1rem; }
    .products-all .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
    .product-card-body { padding: 10px 12px 12px; }
    .product-card-title { font-size: .875rem; }
    .product-card-price { font-size: 1rem; }
    .product-card-more { display: none; }
    .products-search, .products-search input { width: 100%; }
}
.article-card .link-arrow { color: var(--red-600); }
.section-black .text-red, .section-photo .text-red, .page-hero .text-red { color: #ff3a45; }

/* =====================================================================
   44. ferodo.com theme layer
   White and light-grey sections with soft diagonal light bands, black bands with red diagonal stripes,
   crimson #c1001f, square corners, uppercase letter-spaced buttons, red "find my part" block in the header.
   ===================================================================== */

/* sections */
.section-grey {
    color: var(--text);
    background:
        linear-gradient(118deg, transparent 0 22%, rgba(255, 255, 255, .75) 22% 30%, transparent 30% 100%),
        linear-gradient(118deg, transparent 0 64%, rgba(255, 255, 255, .55) 64% 69%, transparent 69% 100%),
        var(--paper);
}
.section-light + .section-grey, .section-grey + .section-light { border-top: 0; }
.section-photo::before {
    background:
        linear-gradient(118deg, transparent 0 80%, rgba(193, 0, 31, .95) 80% 82.5%, transparent 82.5% 85%, rgba(193, 0, 31, .55) 85% 86%, transparent 86%),
        linear-gradient(118deg, rgba(193, 0, 31, .75) 0 3%, transparent 3% 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .82) 50%, rgba(0, 0, 0, .9));
}
/* red band between the banner / page heroes and the content, as on ferodo.com */
.home-banner { border-bottom: 3px solid var(--red); }
.page-hero::after { width: 100%; height: 3px; }
.page-hero-photo::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(118deg, transparent 0 84%, rgba(193, 0, 31, .9) 84% 86%, transparent 86% 88.5%, rgba(193, 0, 31, .5) 88.5% 89.5%, transparent 89.5%),
        linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .45) 70%, rgba(0, 0, 0, .3));
}

/* type: uppercase, bold, slightly tracked headings in #242424 */
.h1, .h2, .h3, .block-heading, .range-title, .contact-company, .contact-form-title { font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.section-light .block-heading, .section-grey .block-heading, .range-title, .contact-company, .contact-form-title { color: var(--text); }
.block-heading .text-red, .range-title .text-red { color: var(--red); }

/* buttons: square, crimson, small caps-style label with wide tracking */
.btn { min-height: 54px; padding: .9em 2.2em; font-family: var(--font-body); font-size: .9rem; font-weight: 500; letter-spacing: .2em; border-width: 0; border-radius: 0; }
:lang(th) .btn { letter-spacing: .06em; font-size: .98rem; }
.btn-primary:hover { box-shadow: none; }
.btn-sm { min-height: 40px; padding: .5em 1.2em; font-size: .85rem; letter-spacing: .1em; }
.btn-lg { min-height: 58px; padding: 1em 2.4em; }
.btn-ghost, .btn-ghost-dark { border-width: 1px; }
.section-grey .btn-ghost { --btn-fg: var(--text); --btn-bd: #9a9a9a; }
.section-grey .btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }

/* header: white bar, tracked uppercase menu, red full-height "find my part" block */
.site-header { border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0, 0, 0, .03); }
.header-bar { gap: var(--s-4); }
.main-nav a { font-family: var(--font-body); font-weight: 500; letter-spacing: .1em; color: var(--text); border-radius: 0; }
:lang(th) .main-nav a { letter-spacing: .02em; }
.main-nav a::after { left: 14px; right: 14px; bottom: 0; height: 3px; }
.main-nav a:hover { color: var(--red); }
.header-cta {
    display: inline-flex; align-items: center; gap: 10px; align-self: stretch; flex: none;
    padding: 0 26px; background: var(--red); color: #fff; text-decoration: none;
    font-weight: 500; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; transition: background .2s;
}
:lang(th) .header-cta { letter-spacing: .02em; }
.header-cta .icon { width: 20px; height: 20px; }
.header-cta:hover, .header-cta.is-active { background: var(--red-600); color: #fff; }
.header-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.sub-menu { border-radius: 0; border-top: 3px solid var(--red); }
@media (max-width: 1279px) {
    .header-cta { margin-left: auto; padding: 0 16px; }
    .header-tools { margin-left: 0; }
}
@media (max-width: 640px) {
    .header-cta { padding: 0 14px; }
    .header-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* cards: square, white, soft shadow */
.product-card, .range-card, .contact-card, .contact-form-card, .contact-map-card, .review-card, .article-card a, .block-cta, .logo-wall li, .dealer-card {
    border-radius: 0; border-color: #e2e2e2; box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
}
.product-card:hover, .range-card:hover, .article-card a:hover { border-color: #e2e2e2; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
.product-card-kicker, .range-card-more, .product-range { color: var(--red); }
.range-card-name, .product-card-title { text-transform: uppercase; letter-spacing: .02em; }
.product-card-title { text-transform: none; letter-spacing: 0; }
/* tout images: product on a grey shape with slanted rounded corners */
.range-card-media { margin: 14px 14px 0; border-radius: 0 44px 0 44px; background: linear-gradient(135deg, #f4f4f4, #e3e3e3); }
.block-cta { background: #fff; border-left: 6px solid var(--red); }
.review-card { border: 0; }
.slider-btn { border-color: var(--ink); }

/* products page tabs and chips */
.products-nav a { letter-spacing: .06em; text-transform: uppercase; }
.chip { border-radius: 0; }
.products-nav-n { border-radius: 0; background: var(--red); }

/* footer: charcoal like ferodo.com */
.site-footer { background: #242424; }
.site-footer::before { height: 3px; }
.footer-col h2 { letter-spacing: .14em; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .14); }

/* small details */
.timeline-item { border-top-color: #d6d6d6; }
.cookie-banner { border-radius: 0; }

/* Footer Facebook: long button with the Facebook icon */
.footer-fb { --btn-bg: #1263d0; --btn-fg: #fff; --btn-bd: #1263d0; display: flex; width: 100%; max-width: 360px; justify-content: center; gap: 12px; }
.footer-fb .icon { width: 22px; height: 22px; }
.footer-fb:hover { --btn-bg: #0d4fa8; --btn-bd: #0d4fa8; }
.footer-fb:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) { .footer-fb { max-width: none; } }

/* ---------- 45. Feature list ("ทำไมคุณต้องเลือกผ้าเบรก FERODO"): icon left, quiet title, light text, thin rules ---------- */
.block-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s-7); }
.block-row:has(> .block-features) + .block-row:has(> .block-features) { margin-top: 0; }
.block-section > .container > .block-heading.h2 + .block-row:has(> .block-features) { margin-top: var(--s-6); }
.block-feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-4); align-content: start; padding: var(--s-5) 0; border-top: 1px solid var(--line); text-align: left; }
.block-feature .block-icon { grid-row: span 2; width: 40px; height: 40px; margin: 4px 0 0; opacity: .9; }
.block-feature .block-heading.h3 {
    margin: 0 0 4px; font-family: var(--font-body); font-size: 1.1rem; font-weight: 500; line-height: 1.45;
    letter-spacing: 0; text-transform: none; text-shadow: none; color: inherit;
}
.block-feature .block-text { margin: 0; font-size: .95rem; font-weight: 300; line-height: 1.65; color: var(--muted); text-shadow: none; }
.block-feature .block-text p { margin: 0; }
.section-black .block-feature, .section-photo .block-feature { border-top-color: rgba(255, 255, 255, .2); }
.section-black .block-feature .block-text, .section-photo .block-feature .block-text { color: #d4d4d4; }
.section-photo .block-heading.h2 { text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
@media (max-width: 900px) { .block-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); } }
@media (max-width: 600px) { .block-features { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 46. /products "สินค้าทั้งหมด": filter sidebar + grid ---------- */
.shop-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.shop-filters {
    display: grid; gap: var(--s-5); padding: var(--s-5);
    background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
}
/* stays in view while scrolling only when the whole card fits on screen (no inner scrollbar) */
@media (min-width: 901px) and (min-height: 880px) { .shop-filters { position: sticky; top: calc(var(--header-h) + 16px); } }
.shop-search label, .shop-group-title {
    position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 0;
    font-family: var(--font-body); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text);
}
.shop-search label::before, .shop-group-title::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--red); }
.shop-search-field { position: relative; display: block; }
.shop-search-field .icon { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.shop-search input { min-height: 46px; padding-left: 40px; }
.shop-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.shop-options a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px;
    color: var(--text); font-size: .95rem; line-height: 1.4; text-decoration: none;
    transition: background .15s, border-color .15s;
}
.shop-options a:hover { background: var(--paper); }
.shop-options a.is-on { background: var(--ink); color: #fff; font-weight: 500; }
.shop-options a.is-on .n { color: #d6d6d6; }
.shop-options .n { flex: none; min-width: 28px; text-align: right; font-size: .8rem; color: var(--muted); }
.shop-options a:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.shop-bike { margin: 0; }
.shop-bike .btn { white-space: normal; text-align: left; line-height: 1.35; }
.shop-bike .icon { width: 22px; height: 22px; flex: none; }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-4); }
.shop-count { margin: 0; color: var(--muted); }
.shop-sort { display: flex; align-items: center; gap: 10px; }
.shop-sort label { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.shop-sort select { min-height: 44px; width: auto; min-width: 190px; padding-block: 8px; }
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--s-4); margin-top: 0; }
.shop-grid .product-card { height: 100%; }
.product-card-media img { padding: 4%; }

@media (max-width: 900px) {
    .shop-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
    .shop-filters { position: static; max-height: none; overflow: visible; gap: var(--s-4); padding: var(--s-4); min-width: 0; }
    .shop-filters > *, .shop-group, .shop-search { min-width: 0; }
    .shop-options { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .shop-options::-webkit-scrollbar { display: none; }
    .shop-options a { white-space: nowrap; padding: 8px 14px; border: 1px solid #b9bfc6; }
    .shop-options a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
    .shop-options a.is-on .n { color: #d6d6d6; }
    .shop-options .n { min-width: 0; }
}
@media (max-width: 640px) {
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
    .shop-sort { width: 100%; }
    .shop-sort .select-wrap { flex: 1; }
    .shop-sort select { width: 100%; min-width: 0; }
}

/* /your-bike: "สำหรับรถ Yamaha YZF-R3 ปี 2020" heading above the results */
.catalog-bike { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; font-size: clamp(1.2rem, 1.05rem + .8vw, 1.7rem); font-weight: 700; line-height: 1.35; color: var(--text); }
.catalog-bike-name { color: var(--red); }
.catalog-bike-pos { padding: 2px 10px; font-size: .9rem; font-weight: 500; background: var(--ink); color: #fff; }
.catalog-main .results-count { margin-bottom: var(--s-4); }

/* Dealer logos (cards + map popups); shops without a logo show their initial */
.dealer-card-head { justify-content: flex-start; align-items: center; gap: 14px; }
.dealer-logo { flex: none; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.dealer-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.dealer-logo.is-initial { background: var(--ink); border-color: var(--ink); color: #fff; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.dealer-card-title { display: grid; gap: 2px; min-width: 0; }
.dealer-card-title h3 { margin: 0; }

/* ---------- 47. Range pages as catalog pages (/products/{range}) ---------- */
.range-tabs { background: #fff; border-bottom: 1px solid var(--line); }
.range-tabs ul { display: flex; align-items: stretch; gap: var(--s-5); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.range-tabs ul::-webkit-scrollbar { display: none; }
.range-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 16px 0 13px; border-bottom: 3px solid transparent; color: var(--text); font-weight: 500; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.range-tabs a:hover { color: var(--red); }
.range-tabs a[aria-current="page"] { border-bottom-color: var(--red); font-weight: 600; }
.range-tabs-all { margin-left: auto; }
.range-tabs-all a { color: var(--red-600); }
.range-tabs-all .icon { width: 16px; height: 16px; }

.range-overview-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.range-media-main { display: grid; place-items: center; aspect-ratio: 1; padding: 8%; background: linear-gradient(135deg, #f4f4f4, #e4e4e4); border-radius: 0 64px 0 64px; }
.range-media-main img { width: 100%; height: 100%; object-fit: contain; }
.range-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.range-thumbs button { display: grid; place-items: center; width: 84px; height: 84px; padding: 6px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.range-thumbs button[aria-pressed="true"] { border: 2px solid var(--red); }
.range-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.range-name { margin: 0 0 var(--s-4); font-size: clamp(1.35rem, 1.15rem + 1vw, 2.2rem); font-weight: 700; line-height: 1.25; letter-spacing: .01em; text-transform: uppercase; }
.range-intro p { margin: 0 0 var(--s-3); color: #3a3a3a; line-height: 1.8; }
.range-sub { margin: var(--s-5) 0 var(--s-3); font-size: 1.05rem; font-weight: 600; }
.range-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--s-5); margin: 0; padding: 0; list-style: none; }
.range-features li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.55; }
.range-features .icon { width: 22px; height: 22px; padding: 3px; background: var(--red); color: #fff; }
.range-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.range-ctas .icon { width: 18px; height: 18px; }

.range-products-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.range-products-head .range-title { margin-bottom: 4px; }
.range-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.range-search input { min-height: 44px; width: 240px; padding-left: 40px; }

.range-details-title { text-align: center; }
.range-details .block-image { text-align: center; }
.range-details .block-image img { margin-inline: auto; }
.range-details .block-text { max-width: 900px; margin-inline: auto; }
.range-details .block-heading { text-align: center; }

@media (max-width: 900px) {
    .range-overview-grid { grid-template-columns: minmax(0, 1fr); }
    .range-media { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 600px) {
    .range-features { grid-template-columns: minmax(0, 1fr); }
    .range-tools, .range-search, .range-search input { width: 100%; }
    .range-tools .shop-sort { width: 100%; }
    .range-tools .shop-sort .select-wrap { flex: 1; }
    .range-tools .shop-sort select { width: 100%; min-width: 0; }
    .range-tabs-all { margin-left: 0; }
}

/* ---------- 48. Range facts strip (count, starting price) ---------- */
.range-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: var(--s-5) 0 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.range-fact { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 0; }
.range-fact + .range-fact { padding-left: 18px; border-left: 1px solid var(--line); }
.range-fact-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: #fbe9ec; color: var(--red); font-size: 1.25rem; font-weight: 700; }
.range-fact-icon .icon { width: 22px; height: 22px; }
.range-fact dt { margin: 0; font-size: .82rem; letter-spacing: .04em; color: var(--muted); }
.range-fact dd { margin: 0; font-size: .95rem; color: var(--text); }
.range-fact dd strong { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.range-fact-price { color: var(--red); }

/* ---------- 49. Product page: "fits these motorcycles" (make cards with model lists) ---------- */
.fit-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.fit-title { margin: 0; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.8rem); font-weight: 700; line-height: 1.3; }
.fit-sub { margin: 4px 0 0; color: var(--muted); }
.fit-search input { min-height: 44px; width: 280px; padding-left: 40px; }
.fit-pos + .fit-pos { margin-top: var(--s-6); }
.fit-pos-title { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--s-4); font-size: 1rem; font-weight: 500; }
.fit-pos-badge { padding: 4px 14px; background: var(--ink); color: #fff; font-weight: 600; letter-spacing: .02em; }
.fit-pos-count { color: var(--muted); }
.fit-makes { columns: 4 240px; column-gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.fit-make { display: block; margin: 0 0 var(--s-4); break-inside: avoid; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.fit-make[hidden] { display: none; }
.fit-make-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 12px 16px; border-bottom: 2px solid var(--red); font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fit-make-name span { min-width: 26px; padding: 0 8px; background: var(--paper); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: center; line-height: 1.8; }
.fit-models { margin: 0; padding: 6px 16px 10px; list-style: none; }
.fit-models li { position: relative; padding: 7px 0 7px 16px; font-size: .95rem; line-height: 1.45; border-bottom: 1px solid #efefef; }
.fit-models li:last-child { border-bottom: 0; }
.fit-models li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; background: var(--red); transform: translateY(-50%); }
@media (max-width: 600px) {
    .fit-search, .fit-search input { width: 100%; }
    .range-fact { padding-right: 10px; }
    .range-fact + .range-fact { padding-left: 12px; }
}

/* ---------- 50. Dealer page: filter card, sticky map, white dealer cards ---------- */
.section-locator .locator .field > label { color: var(--text); }
.section-locator .locator-filters { margin-bottom: var(--s-4); padding: var(--s-5); background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.section-locator .locator-status { margin: 0 0 var(--s-3); color: var(--text); font-weight: 600; }
.section-locator .locator-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-5); height: auto; align-items: start; }
.section-locator .locator-map {
    position: sticky; top: calc(var(--header-h) + 16px);
    height: calc(100vh - var(--header-h) - 32px); min-height: 420px; max-height: 760px;
    border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
}
.section-locator .dealer-list { max-height: none; overflow: visible; padding: 0; gap: var(--s-3); }
.section-locator .dealer-card { position: relative; padding: 18px; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); cursor: pointer; transition: box-shadow .2s; }
.section-locator .dealer-card:hover { background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.section-locator .dealer-card.is-active { background: #fff; box-shadow: inset 4px 0 0 var(--red), 0 6px 18px rgba(0, 0, 0, .14); }
.section-locator .dealer-logo { width: 56px; height: 56px; }
.section-locator .dealer-card h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.section-locator .dealer-region { display: inline-block; width: max-content; padding: 1px 8px; background: var(--paper); color: var(--muted); font-size: .78rem; }
.section-locator .dealer-distance { margin-left: 8px; color: var(--red); font-family: var(--font-body); }
.section-locator .dealer-address { margin: 12px 0 6px; color: #3a3a3a; line-height: 1.6; }
.section-locator .dealer-address .icon { color: var(--red); }
.section-locator .dealer-hours { margin-bottom: 12px; color: var(--muted); }
.section-locator .dealer-hours summary .icon { color: var(--red); }
.section-locator .dealer-actions { gap: 8px; padding-top: 12px; border-top: 1px solid #efefef; }
.section-locator .dealer-actions .btn { min-height: 40px; }
@media (max-width: 960px) {
    .section-locator .locator-body { grid-template-columns: minmax(0, 1fr); }
    .section-locator .locator-map { position: relative; top: auto; height: 360px; min-height: 0; }
}
@media (max-width: 560px) {
    .section-locator .locator-filters { padding: var(--s-4); }
}
.locator-map { isolation: isolate; } /* keep Leaflet controls (z-index 400-1000) under the sticky header */
@media (max-width: 560px) {
    .section-locator .dealer-actions .btn-dark { flex: 1 1 100%; }
    .section-locator .dealer-actions .btn-ghost-dark:not(.btn-icon) { flex: 1 1 auto; }
}

/* ---------- 51. Dealer map popup: dark header with logo + name, address, call / directions buttons ---------- */
.dealer-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 0; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.dealer-popup .leaflet-popup-content { margin: 0; line-height: 1.5; font-family: var(--font-body); }
.dealer-popup .leaflet-popup-tip { box-shadow: none; }
.leaflet-container .dealer-popup a.leaflet-popup-close-button { top: 8px; right: 8px; width: 26px; height: 26px; color: #fff; font: 400 22px/26px var(--font-body); text-align: center; }
.leaflet-container .dealer-popup a.leaflet-popup-close-button:hover { color: #fff; background: var(--red); }
.dpop-head { display: flex; align-items: center; gap: 12px; padding: 14px 42px 14px 14px; background: var(--ink); color: #fff; border-bottom: 3px solid var(--red); }
.dpop-logo { flex: none; width: 48px; height: 48px; padding: 3px; background: #fff; object-fit: contain; }
.dpop-logo.is-initial { display: grid; place-items: center; padding: 0; background: var(--red); color: #fff; font-size: 1.3rem; font-weight: 700; }
.dpop-name { display: block; font-size: 1rem; font-weight: 700; line-height: 1.3; color: #fff; font-family: var(--font-body); }
.leaflet-popup-content .dpop-name { font-family: var(--font-body); font-size: 1rem; }
.dpop-prov { display: inline-block; margin-top: 4px; padding: 0 8px; background: rgba(255, 255, 255, .14); font-size: .75rem; color: #e6e6e6; }
.dpop-body { padding: 12px 14px 14px; background: #fff; }
.dpop-addr { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; margin: 0 0 12px !important; font-size: .88rem; line-height: 1.55; color: #3a3a3a; }
.dpop-addr .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--red); }
.dpop-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.dpop-actions.is-single { grid-template-columns: minmax(0, 1fr); }
.leaflet-popup-content .dpop-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 10px;
    border: 1px solid #c9c9c9; color: var(--text); font-size: .9rem; font-weight: 600; white-space: nowrap; text-decoration: none; min-height: 40px;
    transition: background .2s, border-color .2s, color .2s;
}
.leaflet-popup-content .dpop-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.leaflet-popup-content .dpop-btn.is-call { background: var(--red); border-color: var(--red); color: #fff; }
.leaflet-popup-content .dpop-btn.is-call:hover { background: var(--red-600); border-color: var(--red-600); }
.dpop-btn .icon { width: 15px; height: 15px; flex: none; }
/* "ใกล้ฉัน" (near me) button: dark outline on the white filter card */
.section-locator .btn-ghost { --btn-fg: var(--text); --btn-bd: #9a9a9a; }
.section-locator .locator-actions .btn { min-height: 0; height: 53px; padding-block: 0; }
.section-locator .btn-ghost .icon { color: var(--red); }
.section-locator .btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.section-locator .btn-ghost:hover .icon { color: #fff; }
@media (max-width: 960px) { .section-locator .locator-actions .btn { flex: 1; } }
/* /your-bike on phones/tablets: categories + reset live inside the "ตัวกรอง" toggle so results come first */
@media (max-width: 960px) {
    .filters:not(.is-open) .category-list, .filters:not(.is-open) > p { display: none; }
    .filters.is-open .category-list { margin-top: var(--s-3); }
    .filters-toggle { width: 100%; justify-content: center; }
}
/* every product grid: two cards per row on phones */
@media (max-width: 640px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }

/* ---------- 52. Phones: smaller type everywhere (15px base, compact headings) ---------- */
@media (max-width: 600px) {
    html { font-size: 93.75%; }
    :root { --fs-h1: 1.4rem; --fs-h2: 1.3rem; --fs-h3: 1.1rem; --fs-h4: 1rem; }
    .block-heading.h2, .range-title, .fit-title { font-size: 1.25rem; }
    .range-name, .contact-hq-name, .product-title { font-size: 1.2rem; }
    .article-title { font-size: 1.3rem; }
    .catalog-bike { font-size: 1.1rem; }
    .product-price { font-size: 1.3rem; }
    .contact-hq-big { font-size: 1.15rem; }
    .range-fact dd strong { font-size: 1.25rem; }
    .timeline-year { font-size: 1rem; }
    .prose h2 { font-size: 1.15rem; }
    .prose h3 { font-size: 1.05rem; }
    .footer-col h2 { font-size: 1.05rem; }
    .block-feature .block-heading.h3 { font-size: 1rem; }
    .error-code { font-size: 4rem; }
    .prose, .block-text, .block-text p, .range-intro p, .lead, .article-body { font-size: 1rem; }
}
/* phones: shorter page banners */
@media (max-width: 600px) {
    .page-hero, .page-hero-compact { padding: 22px 0 20px; }
    .page-hero .breadcrumbs ol { margin-bottom: 6px; font-size: .85rem; }
    .page-hero .h1 { margin-bottom: 0; }
}
/* phones: home finder sits close to its heading */
@media (max-width: 600px) { .block-section > .container > .block-heading.h2 + .block-row:has(.finder) { margin-top: 12px; } }

/* ---------- 53. Mobile / tablet header: menu ☰ left, logo centred, compact red search button right ---------- */
@media (max-width: 1279px) {
    .header-bar { gap: 8px; }
    .header-tools { order: -1; margin: 0; }
    .menu-toggle { width: 44px; height: 44px; margin-left: -8px; }
    .header-bar { position: relative; }
    .brand { position: absolute; left: 50%; transform: translateX(-50%); }
    .header-cta { margin-left: auto !important; }
    .header-cta { order: 2; margin-left: 0; align-self: center; height: 42px; padding: 0 14px; font-size: .95rem; }
}
@media (max-width: 640px) {
    .header-cta { width: 42px; padding: 0; justify-content: center; }
}

/* ---------- 54. Mobile menu: slide-in panel from the left over a dimmed page ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 300; }
.mobile-menu[hidden] { display: none; }
.mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: mm-fade .25s ease both; }
.mobile-menu-panel {
    position: absolute; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column;
    width: min(88vw, 380px); background: #fff; color: var(--text); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 8px 0 30px rgba(0, 0, 0, .25); animation: mm-slide .28s var(--ease) both;
}
@keyframes mm-slide { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes mm-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mobile-menu-panel, .mobile-menu-backdrop { animation: none; } }

.mobile-menu-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 12px 0 18px; background: #fff; border-bottom: 3px solid var(--red); }
.mobile-menu-logo img { width: 140px; height: auto; }
.mobile-menu-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; color: var(--text); cursor: pointer; }
.mobile-menu-close .icon { width: 24px; height: 24px; }
.mobile-menu-close:hover { color: var(--red); }

.mobile-menu-nav { padding: 6px 18px 18px; }
.mm-list { margin: 0; padding: 0; list-style: none; }
.mm-list > li { border-bottom: 1px solid #ececec; }
.mm-link {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 0 2px;
    color: var(--text); font-size: 1rem; font-weight: 500; text-decoration: none; cursor: pointer; list-style: none;
}
.mm-link::-webkit-details-marker { display: none; }
.mm-link .icon { width: 18px; height: 18px; color: #9a9a9a; transition: transform .2s var(--ease); }
.mm-link[aria-current="page"] { color: var(--red); font-weight: 600; }
.mm-link[aria-current="page"] .icon { color: var(--red); }
.mm-acc[open] > .mm-link { color: var(--red); font-weight: 600; }
.mm-acc[open] > .mm-link .icon { transform: rotate(180deg); color: var(--red); }

.mm-sub { padding: 2px 0 16px; }
.mm-all { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 12px 14px; background: var(--paper); color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none; }
.mm-all .icon { width: 16px; height: 16px; color: var(--red); }
.mm-group + .mm-group { margin-top: 12px; }
.mm-group-title { display: block; margin: 0 0 6px; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
a.mm-group-title { color: var(--text); font-size: .9rem; text-transform: none; letter-spacing: 0; }
a.mm-group-title[aria-current="page"] { color: var(--red); }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mm-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #d4d4d4; color: var(--text); font-size: .85rem; text-decoration: none; }
.mm-chips a:hover { border-color: var(--ink); }
.mm-chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.mm-cta { margin-top: 18px; }
.mm-cta .icon { width: 18px; height: 18px; }

.mobile-menu-contact { margin-top: auto; padding: 16px 18px 22px; background: var(--paper); }
.mm-contact-title { margin: 0 0 8px; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mm-contact { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--text); font-weight: 600; text-decoration: none; }
.mm-contact-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: var(--red); color: #fff; }
.mm-contact-icon .icon { width: 16px; height: 16px; }
.mm-contact:hover { color: var(--red); }
/* phones/tablets: narrow images inside columns (e.g. the Pata Yamaha logo) sit centred */
@media (max-width: 900px) { .block-col > .block-image[style*="max-width"] { margin-inline: auto; } }

/* ---------- 55. Back-to-top button ---------- */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; background: var(--red); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); cursor: pointer; transition: background .2s, transform .2s var(--ease); animation: mm-fade .2s ease both; }
.to-top[hidden] { display: none; }
.to-top .icon { width: 22px; height: 22px; transform: rotate(180deg); }
.to-top:hover { background: var(--red-600); transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (min-width: 1280px) { .to-top { right: 24px; bottom: 24px; width: 50px; height: 50px; } }
@media print { .to-top { display: none !important; } }

/* ---------- 56. Page-change loading: thin red bar, spinner only when the next page is slow ---------- */
.page-loader { position: fixed; inset: 0 0 auto; z-index: 500; height: 3px; pointer-events: none; }
.page-loader-bar { display: block; width: 0; height: 100%; background: var(--red); box-shadow: 0 0 8px rgba(193, 0, 31, .5); opacity: 0; }
.page-loader-spin { position: fixed; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 3px solid rgba(193, 0, 31, .18); border-top-color: var(--red); border-radius: 50%; opacity: 0; visibility: hidden; }
.is-leaving .page-loader-bar { opacity: 1; animation: pl-bar 2.4s cubic-bezier(.1, .7, .2, 1) forwards; }
.is-leaving .page-loader-spin { visibility: visible; animation: pl-fade .2s ease .5s forwards, pl-spin .8s linear infinite; }
.is-leaving body { cursor: progress; }
@keyframes pl-bar { from { width: 0; } to { width: 85%; } }
@keyframes pl-fade { to { opacity: 1; } }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-leaving .page-loader-bar { animation: none; width: 85%; } .is-leaving .page-loader-spin { animation: pl-fade .2s ease .5s forwards; } }
@media print { .page-loader { display: none; } }


/* =====================================================================
   WordPress-only rules (appended to the design by ferodo-tools/build-theme-css.php)
   ===================================================================== */

/* WordPress' own screen-reader class (comment forms, widgets, Yoast) = .sr-only */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* admin bar (logged-in staff only): keep the sticky header and sticky parts below it */
.admin-bar { --wp-bar: 32px; }
.admin-bar .site-header { top: var(--wp-bar); }
.admin-bar .mobile-menu { top: var(--wp-bar); }
@media (max-width: 782px) { .admin-bar { --wp-bar: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } .admin-bar .mobile-menu { top: 0; } #wpadminbar { position: absolute; } }

/* content written in the block editor (pages, articles); spacing comes from .prose, as on ferodo-site */
.wp-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.wp-content .alignleft { float: left; margin: 0 var(--s-5) var(--s-4) 0; }
.wp-content .alignright { float: right; margin: 0 0 var(--s-4) var(--s-5); }
.wp-content::after { content: ""; display: table; clear: both; }
.wp-content figure { margin: var(--s-5) 0; }
.wp-content figure img { margin: 0; }
.wp-content figcaption, .wp-element-caption { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.wp-content img { max-width: 100%; height: auto; }
.wp-content iframe { max-width: 100%; }
.wp-block-embed__wrapper { position: relative; }
.wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.wp-block-columns { display: grid; gap: var(--s-5); }
@media (min-width: 782px) { .wp-block-columns { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }

/* blog list paging (paginate_links: <a class="page-numbers"> / <span class="page-numbers current">) */
.pagination span.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; }
.pagination span.current { background: var(--ink); color: #fff; border-color: var(--ink); }
