/* ==========================================================================
   TraxParts — Design System
   --------------------------------------------------------------------------
   Structure
   01. Tokens
   02. Bootstrap theming (via --bs-* variables, so no !important is needed)
   03. Base & typography
   04. Layout helpers
   05. Buttons
   06. Forms
   07. Badges, tables, alerts
   08. Header, navigation, mega menu
   09. Page head (breadcrumb banner)
   10. Hero
   11. Stats
   12. Section headings
   13. Cards: category, brand, article, checker
   14. Product detail
   15. CTA band
   16. Footer
   17. Utilities (toast, back to top)
   18. Motion preferences

   Accent rule: orange marks actions and state (buttons, focus, active,
   hover). It is not used as decoration on containers.
   ========================================================================== */

/* 01. TOKENS
   ========================================================================== */
:root {
    /* Brand */
    --navy: #183442;
    --navy-dark: #0f232d;
    --navy-deep: #0b171d;
    --accent: #f16b2b;
    /* fills + text on dark surfaces */
    --accent-hover: #d95a1c;
    --accent-ink: #bf4a13;
    /* orange text on light surfaces (5:1 on white) */
    --accent-on-dark: #ff874a;
    --accent-soft: rgba(241, 107, 43, 0.10);
    --accent-ring: rgba(241, 107, 43, 0.28);

    /* Neutrals */
    --ink: #10222c;
    /* headings */
    --body: #3d4d5c;
    /* body copy */
    --muted: #5a6b7f;
    /* secondary copy, meets AA */
    --line: #e3e8ee;
    --line-strong: #cfd8e3;
    --surface: #ffffff;
    --surface-2: #f7f9fb;
    --surface-3: #eef2f6;

    /* On dark surfaces */
    --on-dark: #ffffff;
    --on-dark-muted: #a8bccb;
    --line-dark: rgba(255, 255, 255, 0.12);

    /* Feedback */
    --ok: #157347;
    --ok-soft: #e7f4ec;
    --warn: #9a6700;
    --warn-soft: #fdf6e3;
    --danger: #b42318;
    --danger-soft: #fdecea;

    /* Radii — three steps only */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;

    /* Elevation — two steps only */
    --shadow-1: 0 1px 2px rgba(16, 34, 44, 0.05), 0 1px 3px rgba(16, 34, 44, 0.06);
    --shadow-2: 0 4px 10px rgba(16, 34, 44, 0.06), 0 12px 28px rgba(16, 34, 44, 0.08);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
    --fast: 140ms;
    --slow: 260ms;

    /* Type */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

    /* Legacy aliases kept so existing markup keeps working */
    --primary-color: var(--navy);
    --primary-dark: var(--navy-dark);
    --secondary-color: var(--accent);
    --dark-color: var(--navy-deep);
    --text-color: var(--body);
    --text-muted: var(--muted);
    --heading-color: var(--ink);
    --border-color: var(--line);
    --light-bg: var(--surface-2);
    --light-bg-alt: var(--surface-3);
}

/* 02. BOOTSTRAP THEMING
   Retheme Bootstrap at the source instead of fighting it with overrides.
   ========================================================================== */
:root,
[data-bs-theme="light"] {
    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--body);
    --bs-body-bg: var(--surface);
    --bs-secondary-color: var(--muted);
    --bs-emphasis-color: var(--ink);
    --bs-heading-color: var(--ink);

    --bs-primary: var(--navy);
    --bs-primary-rgb: 24, 52, 66;
    --bs-secondary: var(--navy);
    --bs-secondary-rgb: 24, 52, 66;
    --bs-link-color: var(--navy);
    --bs-link-color-rgb: 24, 52, 66;
    --bs-link-hover-color: var(--accent-ink);
    --bs-link-hover-color-rgb: 191, 74, 19;

    --bs-border-color: var(--line);
    --bs-border-color-translucent: var(--line);
    --bs-border-radius-sm: var(--r-sm);
    --bs-border-radius: var(--r-md);
    --bs-border-radius-lg: var(--r-lg);
    --bs-border-radius-xl: var(--r-lg);
    --bs-border-radius-2xl: var(--r-lg);

    --bs-box-shadow-sm: var(--shadow-1);
    --bs-box-shadow: var(--shadow-1);
    --bs-box-shadow-lg: var(--shadow-2);

    --bs-light: var(--surface-2);
    --bs-light-rgb: 247, 249, 251;
    --bs-dark: var(--navy-deep);
    --bs-dark-rgb: 11, 23, 29;

    --bs-success: var(--ok);
    --bs-danger: var(--danger);

    --bs-focus-ring-width: 3px;
    --bs-focus-ring-opacity: 0.28;
    --bs-focus-ring-color: var(--accent-ring);
}

/* 03. BASE & TYPOGRAPHY
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    font-family: var(--font-body);
    color: var(--body);
    background-color: var(--surface);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv05" 1, "ss01" 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

h1,
.h1 {
    font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
}

h2,
.h2 {
    font-size: clamp(1.55rem, 1.25rem + 1vw, 2rem);
}

h3,
.h3 {
    font-size: 1.35rem;
}

h4,
.h4 {
    font-size: 1.2rem;
}

h5,
.h5 {
    font-size: 1.0625rem;
}

h6,
.h6 {
    font-size: 0.9375rem;
}

p {
    text-wrap: pretty;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--fast) var(--ease);
}

a:hover {
    color: var(--accent-ink);
}

small,
.small {
    font-size: 0.875rem;
}

strong,
b,
.fw-bold {
    font-weight: 650;
}

.fw-semibold {
    font-weight: 550;
}

.font-monospace,
code,
kbd {
    font-family: var(--font-mono);
    font-size: 0.9em;
    letter-spacing: -0.01em;
}

::selection {
    background-color: var(--accent);
    color: #fff;
}

/* One visible focus treatment for the whole site */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: none;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 2000;
    background: var(--navy);
    color: #fff;
    padding: 0.65rem 1rem;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: top var(--fast) var(--ease);
}

.skip-link:focus {
    top: 1rem;
    color: #fff;
}

img {
    max-width: 100%;
}

hr {
    border-color: var(--line);
    opacity: 1;
}

/* 04. LAYOUT HELPERS
   ========================================================================== */
@media (min-width: 992px) {

    /* Consistent vertical rhythm for every full-width band */
    section.py-5 {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }
}

.bg-primary-corporate {
    background-color: var(--navy) !important;
    color: #fff;
}

.bg-light-alt {
    background-color: var(--surface-2) !important;
}

.text-orange {
    color: var(--accent-ink) !important;
}

/* On dark surfaces the accent needs to be lighter, not darker */
.footer-main .text-orange,
.top-bar .text-orange,
.hero-section .text-orange,
.cta-contact-section .text-orange,
.bg-dark .text-orange,
.bg-primary-corporate .text-orange,
.panel-dark .text-orange,
.image-plate .text-orange,
.trax-toast .text-orange,
.text-white .text-orange,
.text-light .text-orange {
    color: var(--accent-on-dark) !important;
}

.text-navy {
    color: var(--navy) !important;
}

.text-muted {
    color: var(--muted) !important;
}

.rounded-lg {
    border-radius: var(--r-lg) !important;
}

.rounded-md {
    border-radius: var(--r-md) !important;
}

.rounded-sm {
    border-radius: var(--r-sm) !important;
}

.max-w-700 {
    max-width: 700px;
}

.max-w-800 {
    max-width: 800px;
}

.tabular {
    font-variant-numeric: tabular-nums;
}

/* 05. BUTTONS
   A single size scale: sm 34px · base 42px · lg 50px

   These map onto Bootstrap's own --bs-btn-* API instead of running a parallel
   set of custom properties. That matters: Bootstrap's `.btn:hover` rule sets
   `background-color: var(--bs-btn-hover-bg)`, and at specificity (0,2,0) it
   beats any plain `.btn { background-color: … }` we could write. Leaving those
   variables undefined made every button turn transparent on hover.
   ========================================================================== */
.btn {
    --bs-btn-color: var(--navy);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;

    --bs-btn-hover-color: var(--bs-btn-color);
    --bs-btn-hover-bg: var(--bs-btn-bg);
    --bs-btn-hover-border-color: var(--bs-btn-border-color);

    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: var(--bs-btn-hover-bg);
    --bs-btn-active-border-color: var(--bs-btn-hover-border-color);
    --bs-btn-active-shadow: none;

    --bs-btn-disabled-color: var(--bs-btn-color);
    --bs-btn-disabled-bg: var(--bs-btn-bg);
    --bs-btn-disabled-border-color: var(--bs-btn-border-color);
    --bs-btn-disabled-opacity: 0.55;

    --bs-btn-padding-y: 0.5rem;
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-font-family: var(--font-body);
    --bs-btn-font-size: 0.9375rem;
    --bs-btn-font-weight: 600;
    --bs-btn-line-height: 1.25;
    --bs-btn-border-width: 1px;
    --bs-btn-border-radius: var(--r-sm);
    --bs-btn-box-shadow: none;
    --bs-btn-focus-box-shadow: 0 0 0 3px var(--accent-ring);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    text-align: center;
    transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease),
        color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.btn-sm,
.btn-group-sm>.btn {
    --bs-btn-padding-y: 0.35rem;
    --bs-btn-padding-x: 0.85rem;
    --bs-btn-font-size: 0.85rem;
    --bs-btn-border-radius: var(--r-sm);
    min-height: 34px;
}

.btn-lg,
.btn-group-lg>.btn {
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-padding-x: 1.6rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-border-radius: var(--r-sm);
    min-height: 50px;
}

.btn i {
    font-size: 1em;
    line-height: 1;
}

/* Primary — the only orange button on the page */
.btn-trax-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--accent-hover);
    --bs-btn-hover-border-color: var(--accent-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c44f18;
    --bs-btn-active-border-color: #c44f18;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--accent);
    --bs-btn-disabled-border-color: var(--accent);
}

/* Navy — equal weight, quieter tone */
.btn-trax-navy {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--navy);
    --bs-btn-border-color: var(--navy);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--navy-dark);
    --bs-btn-hover-border-color: var(--navy-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--navy-deep);
    --bs-btn-active-border-color: var(--navy-deep);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--navy);
    --bs-btn-disabled-border-color: var(--navy);
}

/* Outline — secondary actions */
.btn-trax-outline {
    --bs-btn-color: var(--navy);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-color: var(--navy);
    --bs-btn-hover-bg: var(--surface-3);
    --bs-btn-hover-border-color: var(--line-strong);
    --bs-btn-active-color: var(--navy);
    --bs-btn-active-bg: var(--surface-3);
    --bs-btn-active-border-color: var(--muted);
    --bs-btn-disabled-color: var(--muted);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--line);
}

.btn-trax-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(255, 255, 255, 0.35);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.6);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, 0.2);
    --bs-btn-active-border-color: rgba(255, 255, 255, 0.7);
    --bs-btn-disabled-color: rgba(255, 255, 255, 0.6);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: rgba(255, 255, 255, 0.2);
}

/* Navy filled, used by the vehicle selector */
.btn-vehicle-filter {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--navy);
    --bs-btn-border-color: var(--navy);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--navy-dark);
    --bs-btn-hover-border-color: var(--navy-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--navy-deep);
    --bs-btn-active-border-color: var(--navy-deep);
    --bs-btn-font-size: 0.875rem;
    min-height: 38px;
}

.btn-outline-secondary {
    --bs-btn-color: var(--body);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: var(--surface-3);
    --bs-btn-hover-border-color: var(--line-strong);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: var(--surface-3);
    --bs-btn-active-border-color: var(--muted);
}

.btn-link {
    --bs-btn-color: var(--navy);
    --bs-btn-hover-color: var(--accent-ink);
    --bs-btn-active-color: var(--accent-ink);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    min-height: 0;
    text-decoration: none;
}

.btn-link:hover,
.btn-link:focus {
    text-decoration: none;
}

.btn-close:focus {
    box-shadow: none;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
/* 06. FORMS
   ========================================================================== */
.form-control,
.form-select {
    min-height: 44px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9375rem;
    color: var(--ink);
    background-color: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    box-shadow: none;
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.form-control-sm,
.form-select-sm {
    min-height: 38px;
    padding: 0.4rem 0.7rem;
    font-size: 0.875rem;
    border-radius: var(--r-sm);
}

.form-control::placeholder {
    color: #93a2b1;
}

.form-control:hover,
.form-select:hover {
    border-color: #b9c5d2;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
    outline: none;
}

.form-control:disabled,
.form-select:disabled {
    background-color: var(--surface-3);
    color: var(--muted);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.form-label .text-danger {
    color: var(--accent-ink) !important;
    font-weight: 600;
}

.input-group>.form-control,
.input-group>.form-select {
    border-radius: var(--r-sm);
}

.input-group-text {
    background-color: var(--surface);
    border: 1px solid var(--line-strong);
    border-right: 0;
    color: var(--muted);
    border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.input-group>.form-control:not(:first-child) {
    border-left: 0;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Keep the group looking like one field when the inner control is focused */
.input-group:focus-within {
    border-radius: var(--r-sm);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text {
    border-color: var(--accent);
    box-shadow: none;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--danger);
    background-image: none;
}

.was-validated .form-control:invalid:focus {
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.2);
}

.request-benefit-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.request-benefit-list li {
    padding: 0.7rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--line);
}

.request-benefit-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 07. BADGES, TABLES, ALERTS
   Tonal badges instead of saturated blocks.
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    border-radius: var(--r-sm);
}

.badge.bg-success {
    background-color: var(--ok-soft) !important;
    color: #0f5132 !important;
}

.badge.bg-primary-corporate {
    background-color: var(--surface-3) !important;
    color: var(--navy) !important;
}

.badge.bg-light {
    background-color: var(--surface-3) !important;
    color: var(--body) !important;
}

.badge.bg-dark {
    background-color: var(--navy) !important;
    color: #fff !important;
}

.badge.bg-secondary {
    background-color: var(--navy) !important;
    color: #fff !important;
}

/* Badges sitting on the dark footer read as outlines, not blocks */
.footer-main .badge {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--line-dark) !important;
    color: #dbe4ec !important;
    font-weight: 550;
}

.table {
    --bs-table-color: var(--body);
    --bs-table-border-color: var(--line);
    --bs-table-hover-bg: var(--surface-2);
    margin-bottom: 0;
    font-variant-numeric: tabular-nums;
}

.table> :not(caption)>*>* {
    padding: 0.7rem 1rem;
}

.table th {
    font-weight: 500;
    color: var(--muted);
    background-color: var(--surface-2);
}

.table td {
    color: var(--ink);
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--r-md);
    padding: 0.9rem 1rem;
    font-size: 0.9375rem;
}

.alert-success {
    background-color: var(--ok-soft);
    border-color: #cbe6d6;
    color: #0f5132;
}

.alert-warning {
    background-color: var(--warn-soft);
    border-color: #f0e0b6;
    color: #6b4c00;
}

.alert-danger {
    background-color: var(--danger-soft);
    border-color: #f3c9c5;
    color: #842029;
}

/* 08. HEADER, NAVIGATION, MEGA MENU
   ========================================================================== */
.top-bar {
    background-color: var(--navy-deep);
    color: var(--on-dark-muted);
    font-size: 0.8125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line-dark);
    position: relative;
    z-index: 1060;
}

.top-bar a {
    color: #cbd8e3;
}

.top-bar a:hover {
    color: var(--accent-on-dark);
}

.top-bar .dropdown-menu {
    z-index: 1070;
}

.header-main {
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: box-shadow var(--slow) var(--ease), background-color var(--slow) var(--ease);
}

.header-sticky {
    box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(16, 34, 44, 0.07);
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(12px);
}

.brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar-brand {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.nav-link {
    font-weight: 550;
    font-size: 0.9375rem;
    color: var(--body);
    padding: 1.35rem 0.9rem !important;
    position: relative;
    transition: color var(--fast) var(--ease);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--ink);
}

.nav-link.active {
    color: var(--ink);
    font-weight: 650;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0.9rem;
    right: 0.9rem;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--slow) var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-main .dropdown-toggle::after {
    display: none;
}

.navbar-toggler {
    border: 0;
    padding: 0.4rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
    padding: 0.4rem;
    font-size: 0.9375rem;
}

.dropdown-item {
    border-radius: var(--r-sm);
    padding: 0.5rem 0.75rem;
    color: var(--body);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--surface-3);
    color: var(--ink);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--navy);
    color: #fff;
}

/* Mega menu */
.mega-menu-dropdown {
    width: 640px;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
}

.mega-menu-item {
    padding: 0.6rem 0.7rem;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--body);
    font-size: 0.9rem;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.mega-menu-item:hover {
    background-color: var(--surface-3);
    color: var(--ink);
}

.mega-menu-item .fw-bold {
    color: var(--ink);
    font-weight: 600;
}

.mega-menu-item small {
    font-size: 0.78rem;
}

.mega-menu-icon {
    width: 34px;
    height: 34px;
    background-color: var(--surface-3);
    color: var(--navy);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.mega-menu-item:hover .mega-menu-icon {
    background-color: var(--navy);
    color: #fff;
}

/* Offcanvas mobile menu */
.offcanvas {
    border-right: 1px solid var(--line);
}

.offcanvas .nav-link {
    padding: 0.7rem 0 !important;
    border-bottom: 1px solid var(--line);
}

.offcanvas .nav-link::after {
    display: none;
}

.offcanvas .nav-item.ms-3 .nav-link {
    border-bottom: 0;
    padding: 0.3rem 0 !important;
}

/* 09. PAGE HEAD (breadcrumb banner on inner pages)
   ========================================================================== */
.page-head {
    background-color: var(--surface-2);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0;
}

.page-head .breadcrumb-trail,
.page-head .small {
    font-size: 0.8125rem;
    color: var(--muted);
}

.page-head a {
    color: var(--muted);
}

.page-head a:hover {
    color: var(--accent-ink);
}

.page-head h1 {
    margin: 0.5rem 0 0;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
}

.page-head p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.9375rem;
    max-width: 70ch;
}

/* 10. HERO
   ========================================================================== */
.hero-section {
    position: relative;
    background-color: var(--navy-deep);
    color: #fff;
    padding: 4.5rem 0 5.5rem;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    opacity: 0.75;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(11, 23, 29, 0.55) 0%, rgba(11, 23, 29, 0.25) 45%, rgba(11, 23, 29, 0.85) 100%),
        linear-gradient(90deg, rgba(11, 23, 29, 0.55) 0%, rgba(11, 23, 29, 0.1) 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0 3.5rem;
    }

    /* keep the truck in frame when the viewport crops the wide photo */
    .hero-bg-img {
        object-position: 32% center;
        opacity: 0.85;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 550;
    color: #dbe4ec;
    backdrop-filter: blur(6px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 1.25rem 0 1rem;
    text-wrap: balance;
}

.hero-description {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #c3d1dd;
    max-width: 58ch;
    margin-bottom: 2rem;
}

.text-center .hero-description {
    margin-left: auto;
    margin-right: auto;
}

.hero-search-card {
    background-color: rgba(11, 23, 29, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-lg);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
}

.hero-search-card .form-label {
    color: #c3d1dd;
    font-size: 0.8125rem;
    font-weight: 550;
}

.hero-search-card .form-control,
.hero-search-card .form-select,
.hero-search-card .input-group-text {
    min-height: 48px;
    border-color: transparent;
}

.hero-search-card .btn {
    min-height: 48px;
}

/* 11. STATS
   ========================================================================== */
.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -2.75rem;
    background-color: var(--surface-2);
    padding-bottom: 1.5rem;
}

.stats-card-wrapper {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
    padding: 1.75rem 1.25rem;
}

.stat-box {
    text-align: center;
    padding: 0.75rem 1rem;
    border-right: 1px solid var(--line);
}

.stat-box:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.25rem);
    font-weight: 650;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 550;
    color: var(--muted);
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
}

@media (max-width: 767.98px) {
    .stat-box {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 1.1rem 0;
    }

    .stat-box:last-child {
        border-bottom: none;
    }
}

/* Stat tiles used on the About page */
.stat-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.25rem 1rem;
    height: 100%;
}

.stat-tile .stat-tile-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 650;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat-tile .stat-tile-label {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

/* 12. SECTION HEADINGS
   ========================================================================== */
.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-ink);
    font-size: 0.75rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.1rem);
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.section-intro {
    color: var(--muted);
    max-width: 62ch;
}

.text-center .section-intro {
    margin-left: auto;
    margin-right: auto;
}

/* 13. CARDS
   One card treatment across the site: hairline border, quiet lift on hover.
   ========================================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.card.shadow-sm {
    box-shadow: var(--shadow-1) !important;
}

.card.shadow-lg {
    box-shadow: var(--shadow-2) !important;
}

.feature-card,
.category-card,
.tecdoc-article-card,
.brand-grid-card,
.info-card {
    transition: border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease),
        transform var(--slow) var(--ease);
}

.feature-card:hover,
.category-card:hover,
.tecdoc-article-card:hover,
.brand-grid-card:hover,
.info-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
}

/* Feature card (why us / core values) */
.feature-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.75rem 1.5rem;
    height: 100%;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: var(--surface-3);
    color: var(--navy);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card.text-center .feature-icon {
    margin-left: auto;
    margin-right: auto;
}

.feature-title {
    font-size: 1.0625rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
}

/* Product category card */
.category-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-img-wrapper {
    position: relative;
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.category-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform var(--slow) var(--ease);
}

.category-card:hover .category-img {
    transform: scale(1.03);
}

.category-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-title {
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--ink);
    margin-bottom: 0.15rem;
}

.category-en-title {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 550;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.category-card p {
    font-size: 0.875rem;
    color: var(--muted);
}

.category-link {
    margin-top: auto;
    padding-top: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.category-link i {
    transition: transform var(--slow) var(--ease);
}

.category-card:hover .category-link {
    color: var(--accent-ink);
}

.category-card:hover .category-link i {
    transform: translateX(3px);
}

/* Brand logo tiles */
.brand-grid-card {
    height: 88px;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.brand-grid-card img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.72;
    transition: filter var(--slow) var(--ease), opacity var(--slow) var(--ease);
}

.brand-grid-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Brand detail card (merken.html) */
.brand-detail-logo {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1.25rem;
}

.brand-detail-logo img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

/* Vehicle selector widget */
.vehicle-checker-card {
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1rem;
}

.vehicle-checker-card .form-select {
    background-color: var(--surface);
    border-color: var(--line-strong);
}

/* .btn-vehicle-filter is styled with the other buttons in section 05. */

/* Catalog category tree */
.tecdoc-category-tree .list-group-item {
    border: 0;
    background: transparent;
    padding: 0.6rem 0.75rem !important;
    border-radius: var(--r-sm) !important;
    margin-bottom: 0.15rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--body);
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.tecdoc-category-tree .list-group-item:hover {
    background-color: var(--surface-3);
    color: var(--ink);
}

.tecdoc-category-tree .list-group-item.active {
    background-color: var(--surface-3) !important;
    color: var(--ink) !important;
    font-weight: 650;
    box-shadow: inset 2px 0 0 var(--accent);
}

.tecdoc-category-tree .badge {
    background-color: var(--surface-3) !important;
    color: var(--muted) !important;
    font-variant-numeric: tabular-nums;
    font-weight: 550;
}

.tecdoc-category-tree .list-group-item.active .badge {
    background-color: var(--surface) !important;
    color: var(--navy) !important;
}

/* Catalog article card */
.tecdoc-article-card {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background-color: var(--surface);
    overflow: hidden;
}

.tecdoc-article-card .article-media {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tecdoc-article-card .article-media img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.tecdoc-article-card h6 {
    font-size: 0.9375rem;
    line-height: 1.35;
    color: var(--ink);
}

/* The card's stretched link covers the whole surface, so the button inside it
   never receives :hover itself — drive its hover state from the card. */
.tecdoc-article-card:hover .btn-trax-outline {
    background-color: var(--surface-3);
    border-color: var(--line-strong);
    color: var(--navy);
}

.oe-ref {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: -0.01em;
}

.oe-ref strong {
    color: var(--ink);
    font-weight: 600;
}

.catalog-search-bar {
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.catalog-search-bar .form-control,
.catalog-search-bar .input-group-text {
    background-color: var(--surface);
}

/* Info card (contact page tiles) */
.info-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.5rem;
    height: 100%;
}

.info-card.text-center .info-icon {
    margin-left: auto;
    margin-right: auto;
}

.info-card .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--surface-3);
    color: var(--navy);
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
}

/* Dark panel used for callouts */
.panel-dark {
    background-color: var(--navy);
    color: #fff;
    border-radius: var(--r-md);
    padding: 1.25rem;
}

.panel-dark h5,
.panel-dark h6,
.panel-dark .h5,
.panel-dark .h6 {
    color: #fff;
}

.panel-dark li,
.panel-dark p {
    color: #d5e0e9;
}

.panel-dark .rounded-circle {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--accent-on-dark) !important;
}

/* Image caption plate (about sections) */
.image-plate {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background-color: rgba(11, 23, 29, 0.92);
    color: #fff;
    padding: 0.9rem 1.1rem;
    border-radius: var(--r-md);
    backdrop-filter: blur(6px);
}

.image-plate .image-plate-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 650;
    color: #fff;
    line-height: 1.2;
}

.image-plate small {
    color: #b9c9d6;
    font-size: 0.8rem;
}

/* 14. PRODUCT DETAIL
   ========================================================================== */
.product-gallery-main {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.product-gallery-main img {
    max-height: 320px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-gallery-thumb {
    width: 64px;
    height: 64px;
    padding: 0.25rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    object-fit: contain;
    cursor: pointer;
    transition: border-color var(--fast) var(--ease);
}

.product-gallery-thumb:hover {
    border-color: var(--line-strong);
}

.product-gallery-thumb.active {
    border-color: var(--navy);
    box-shadow: 0 0 0 1px var(--navy);
}

.product-oe {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--body);
    letter-spacing: -0.01em;
}

.oem-link {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
}

.oem-link:hover {
    color: var(--accent-ink);
    border-bottom-color: currentColor;
}

.collapse-head {
    cursor: pointer;
}

.collapse-head[aria-expanded="false"] .bi-chevron-up {
    transform: rotate(180deg);
}

.collapse-head .bi-chevron-up {
    transition: transform var(--slow) var(--ease);
}

/* 15. CTA BAND
   ========================================================================== */
.cta-contact-section {
    position: relative;
    background:
        linear-gradient(rgba(11, 23, 29, 0.86), rgba(11, 23, 29, 0.86)),
        url('../img/about/belgian-warehouse.jpg') no-repeat center center / cover;
    color: #fff;
}

.cta-contact-section h2 {
    color: #fff;
    font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
}

.cta-contact-section p {
    color: #c3d1dd;
}

/* 16. FOOTER
   ========================================================================== */
.footer-main {
    background-color: var(--navy-deep);
    color: #c3d1dd;
    font-size: 0.9rem;
    padding-top: 3.5rem;
    padding-bottom: 1.75rem;
    border-top: 1px solid var(--line-dark);
}

.footer-main p,
.footer-main li,
.footer-main .text-muted {
    color: #a8bccb !important;
}

.footer-main a.text-white {
    color: #dbe4ec !important;
}

.footer-main a.text-white:hover {
    color: var(--accent-on-dark) !important;
}

.footer-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    margin-bottom: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #a8bccb;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--line-dark);
    margin-top: 2.75rem;
    padding-top: 1.25rem;
    font-size: 0.8125rem;
    color: #8fa3b5;
}

.footer-bottom a {
    color: #a8bccb !important;
}

.footer-bottom a:hover {
    color: #fff !important;
}

/* 17. UTILITIES: toast + back to top
   ========================================================================== */
.toast-container-custom {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: min(420px, calc(100vw - 3rem));
}

.trax-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: var(--r-md);
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow-2);
    border: 1px solid var(--line-dark);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}

.trax-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.trax-toast .trax-toast-icon {
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--accent-on-dark);
}

.trax-toast--error {
    background: #7a1d16;
}

.trax-toast--error .trax-toast-icon {
    color: #ffb4a8;
}

.trax-toast strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.1rem;
}

.trax-toast span {
    font-size: 0.8375rem;
    color: #d5e0e9;
}

.trax-toast .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.6;
}

#backToTop {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background-color: var(--navy);
    color: #fff;
    border: 1px solid var(--line-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease),
        background-color var(--fast) var(--ease), visibility var(--slow);
    z-index: 1030;
    box-shadow: var(--shadow-2);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background-color: var(--navy-dark);
    color: #fff;
}

.is-hidden {
    display: none !important;
}

/* 18. MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .feature-card:hover,
    .category-card:hover,
    .tecdoc-article-card:hover,
    .brand-grid-card:hover,
    .info-card:hover,
    .category-card:hover .category-img {
        transform: none;
    }
}
/* Live catalog results: supplier photos come straight from the catalog CDN. */
.live-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 2px;
}

/* A category with no published products shows a muted zero, never an estimate. */
.tecdoc-category-tree .badge-empty {
    opacity: 0.45;
    font-weight: 500;
}

/* Products imported without a supplier photo (watermark policy) fall back to
   the house logo — shown a little smaller and softer so it reads as branding
   rather than as a photo of the part. */
.article-media .is-logo-fallback,
.product-gallery-main .is-logo-fallback {
    max-width: 55%;
    max-height: 55%;
    opacity: 0.55;
    filter: grayscale(1);
}

.product-gallery-main .is-logo-fallback {
    max-width: 40%;
}

/* Manufacturer logos are trademarked and may not be reproduced, so brands are
   set in type instead. Keeps the grid rhythm of the old logo band. */
.brand-wordmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--navy);
    text-align: center;
    line-height: 1.25;
}

.brand-grid-card.brand-wordmark:hover {
    color: var(--accent-ink);
}

.brand-detail-logo .brand-wordmark {
    font-size: 1.15rem;
}

/* Pagination — Bootstrap compiles its own blue into --bs-pagination-*, so the
   design tokens have to be mapped here or the active page stays default blue. */
.pagination {
    --bs-pagination-color: var(--body);
    --bs-pagination-bg: var(--surface);
    --bs-pagination-border-color: var(--line);
    --bs-pagination-border-radius: var(--r-sm);
    --bs-pagination-padding-x: 0.7rem;
    --bs-pagination-padding-y: 0.35rem;
    --bs-pagination-font-size: 0.875rem;

    --bs-pagination-hover-color: var(--ink);
    --bs-pagination-hover-bg: var(--surface-3);
    --bs-pagination-hover-border-color: var(--line-strong);

    --bs-pagination-focus-color: var(--ink);
    --bs-pagination-focus-bg: var(--surface-3);
    --bs-pagination-focus-box-shadow: 0 0 0 3px var(--accent-ring);

    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--navy);
    --bs-pagination-active-border-color: var(--navy);

    --bs-pagination-disabled-color: var(--line-strong);
    --bs-pagination-disabled-bg: var(--surface);
    --bs-pagination-disabled-border-color: var(--line);

    gap: 0.25rem;
}

.pagination .page-link {
    min-width: 38px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease),
        color var(--fast) var(--ease);
}

.pagination .page-ellipsis {
    border-color: transparent;
    background: transparent;
    padding-inline: 0.35rem;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .pagination .page-link {
        min-width: 34px;
        padding-inline: 0.5rem;
    }
}
