/*
 * Ulrich Motorsport 24.0 — shared design system and last-resort compatibility layer.
 * One font family, consistent readable sizes, deterministic layouts.
 * No geometry-juggling scripts, no remote webfont dependencies.
 * Footer layout is intentionally not modified.
 */
:root {
  --um-font-ui: system-ui, -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
  --um-ink: #171a20;
  --um-ink-muted: #545c69;
  --um-red: #e60029;
  --um-focus: #f0304b;
  --um-gap-products: 18px;
  --um-page-max: 1720px;
  --um-page-gutter: clamp(20px, 2.5vw, 48px);
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, button, input, select, textarea {
  font-family: var(--um-font-ui) !important;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  letter-spacing: normal;
}
body { font-size: 16px; line-height: 1.5; color: var(--um-ink); }
/* Keep icon-font glyphs intact: never assign --um-font-ui to .material-icons. */
body .material-icons, body .material-icons-outlined { font-family: 'Material Icons' !important; font-weight: normal !important; }
body p, body li, body .page-content { overflow-wrap: break-word; }
body input, body textarea, body select { font-size: 15px !important; line-height: 1.45; }
body button, body .btn, body .button, body .um-button { font-size: 14px; line-height: 1.35; }
body :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--um-focus); outline-offset: 3px; }
/* Harmonize ecommerce information: badges are allowed to be smaller than body text. */
body .product-miniature .product-title,
body .product-miniature .product-title a,
body #products .product-title,
body .featured-products .product-title,
body #products .product-title a,
body .featured-products .product-title a {
  font-family: var(--um-font-ui) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
  font-weight: 650 !important;
  text-shadow: none !important;
}
body .product-miniature .product-price-and-shipping .price,
body .featured-products .product-price-and-shipping .price {
  font-family: var(--um-font-ui) !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
}
body .product-miniature .product-reference,
body .product-miniature .product-description-short {
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: var(--um-ink-muted);
}
/* Header, navigation, and announcements: consistent crisp text. */
@media (min-width: 1200px) {
  html body .um-header-v6 .um-navigation-bar a,
  html body .um-header-v6 .um-navigation-bar span { font-size: 14px !important; line-height: 1.45 !important; letter-spacing: 0 !important; }
  html body .um-header-v6 .um-account-actions .um-account-label { font-size: 13px !important; font-weight: 650 !important; }
  html body .um-trust-bar .um-trust-inner { font-family: var(--um-font-ui) !important; font-size: 13px !important; }
  html body .um-trust-bar .um-trust-inner>span:last-child a strong { font-size: 15px !important; }
  html body .um-navigation-shell, html body .um-header-shell,
  html body .um-trust-inner { max-width: 1440px !important; }
}
html body .um-news-ticker[data-um-news-ticker] {
  position: relative !important;
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  left: auto !important;
  transform: none !important;
  background: #151719 !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--um-red) !important;
  box-shadow: none !important;
  isolation: isolate;
}
html body .um-news-ticker[data-um-news-ticker]::before,
html body .um-news-ticker[data-um-news-ticker]::after { display: none !important; }
html body .um-news-ticker[data-um-news-ticker]>.um-news-ticker__inner {
  box-sizing: border-box !important;
  width: calc(100% - 48px) !important;
  max-width: 1440px !important;
  min-height: 48px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 5px 0 !important;
  background: #151719 !important;
  border: 0 !important;
  box-shadow: none !important;
  left: auto !important;
  transform: none !important;
}
html body .um-news-ticker .um-news-ticker__label {
  font-family: var(--um-font-ui) !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 750 !important;
  letter-spacing: .02em !important;
}
html body .um-news-ticker .um-news-ticker__message,
html body .um-news-ticker .um-news-ticker__message a {
  font-family: var(--um-font-ui) !important;
  font-size: 16px !important;
  font-weight: 550 !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
  filter: none !important;
}
html body .um-news-ticker .um-news-ticker__message .material-icons { font-size: 18px !important; }
html body .um-news-ticker .um-news-ticker__controls button { min-width: 32px !important; min-height: 34px !important; }
/* The desktop merchandising area uses ONE width and ONE left edge. */
@media (min-width: 992px) {
  body#index #wrapper {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body#index #wrapper > .container,
  body#index #content-wrapper,
  body#index #main,
  body#index .page-home.um-home { width: 100% !important; max-width: none !important; min-width: 0 !important; }
  body#index .um-home > .um-main-content {
    box-sizing: border-box !important;
    width: calc(100% - 2 * var(--um-page-gutter)) !important;
    max-width: var(--um-page-max) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    --um-grid-columns: 3;
  }
  body#index .um-home .um-category-carousel,
  body#index .um-home .um-featured-showcase,
  body#index .um-home .um-featured-showcase .featured-products,
  body#index .um-home .um-featured-showcase .um-product-tabs,
  body#index .um-home .um-heading {
    box-sizing: border-box !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
  body#index .um-home .um-category-carousel__viewport { width: 100% !important; }
  body#index .um-home .um-category-carousel:not(.um-category-carousel--module) .um-categories { gap: 16px !important; }
  body#index .um-home .um-category-carousel:not(.um-category-carousel--module) .um-categories > .um-category {
    flex: 0 0 calc((var(--um-carousel-width, 100%) - (var(--um-grid-columns) - 1) * 16px) / var(--um-grid-columns)) !important;
  }
  body#index .um-home .um-featured-showcase .featured-products .products,
  body#index .um-home .um-featured-showcase .products.um-products-grid,
  body#index .um-home .um-featured-showcase .um-products-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--um-grid-columns), minmax(0, 1fr)) !important;
    gap: var(--um-gap-products) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
  }
  body#index .um-home .um-featured-showcase .products > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    flex: none !important;
  }
}
@media (min-width: 1200px) {
  body#index .um-home > .um-main-content { --um-grid-columns: 4; }
}
@media (min-width: 1440px) {
  body#index .um-home > .um-main-content { --um-grid-columns: 5; }
}
/* Show headings and three navigation links on the same natural left edge. */
body#index .um-home .um-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
}
body#index .um-home .um-heading h2 {
  font-family: var(--um-font-ui) !important;
  font-size: clamp(20px, 2vw, 28px) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
  text-shadow: none !important;
}
body#index .um-home .um-product-tabs {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
  border: 0 !important;
  text-align: left !important;
}
body#index .um-home .um-product-tabs > * {
  display: inline-flex !important;
  position: static !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-height: 40px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 9px 16px !important;
  border: 1px solid #dadee4 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #303641 !important;
  font-family: var(--um-font-ui) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
  text-transform: none !important;
  transform: none !important;
  white-space: nowrap;
  text-decoration: none !important;
}
body#index .um-home .um-product-tabs > .um-tab-current {
  background: var(--um-red) !important;
  border-color: var(--um-red) !important;
  color: #fff !important;
  font-weight: 750 !important;
}
body#index .um-home .um-product-tabs > a:hover {
  background: #fff1f3 !important;
  border-color: var(--um-red) !important;
  color: #a90020 !important;
}
body#index .um-home .um-category-carousel__caption h2 {
  font-family: var(--um-font-ui) !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
}
body#index .um-home .um-category > span strong { font-family: var(--um-font-ui) !important; font-weight: 750 !important; }
/* Module category grid uses its own pagination (4 items) — do not show 5 via CSS only. */
/* Readable controls and content on compact screens, preserving two product columns. */
@media (max-width: 1199px) {
  html body .um-news-ticker .um-news-ticker__message,
  html body .um-news-ticker .um-news-ticker__message a { font-size: 13px !important; }
}
@media (max-width: 767px) {
  html body .um-news-ticker>.um-news-ticker__inner {
    width: calc(100% - 20px) !important;
    min-height: 46px !important;
    padding: 5px 0 !important;
    gap: 7px !important;
  }
  html body .um-news-ticker .um-news-ticker__label { font-size: 10px !important; }
  html body .um-news-ticker .um-news-ticker__message,
  html body .um-news-ticker .um-news-ticker__message a { font-size: 12px !important; }
  body#index .um-home .um-product-tabs { gap: 6px !important; }
  body#index .um-home .um-product-tabs > * { font-size: 13px !important; padding: 8px 11px !important; min-height: 38px !important; }
  body#index .um-home .um-heading h2 { font-size: 19px !important; }
  body#index .um-home .product-miniature .product-title,
  body#index .um-home .product-miniature .product-title a { font-size: 13px !important; }
  body#index .um-home .product-miniature .price { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body#index .um-home .um-product-tabs > * { transition: none !important; }
}

/* Restored functionality from absent V23.40 / V23.11 assets. */
@media (max-width: 767px) {
 body#product .um-tax-inline-price { display:flex!important; align-items:baseline!important; gap:9px!important; flex-wrap:wrap!important; }
 body#product .um-tax-inline-label { display:inline-block!important; position:static!important; margin:0!important; padding:0!important; font-size:13px!important; color:#646b74!important; white-space:nowrap!important; }
 body#cart .cart-item .product-line-grid-right.product-line-actions { margin-top:5px!important; padding:0!important; width:100%!important; }
 body#cart .cart-item .product-line-grid-right > .row { display:grid!important; grid-template-columns:minmax(0,1fr) 42px!important; align-items:center!important; gap:8px!important; margin:0!important; padding:0!important; }
 body#cart .cart-item .product-line-grid-right > .row > .col-md-10,
 body#cart .cart-item .product-line-grid-right > .row > .col-xs-6:not(.text-xs-right) { grid-column:1!important; margin:0!important; padding:0!important; width:100%!important; min-width:0!important; }
 body#cart .cart-item .product-line-grid-right > .row > .col-md-2,
 body#cart .cart-item .product-line-grid-right > .row > .text-xs-right { grid-column:2!important; justify-self:end!important; margin:0!important; padding:0!important; width:42px!important; }
 body#cart .cart-item .product-line-grid-right .remove-from-cart { display:inline-flex!important; align-items:center!important; justify-content:center!important; min-width:42px!important; min-height:44px!important; }
 body#cart .cart-item .product-line-grid-right .price .product-price { font-size:16px!important; font-weight:750!important; }
}

/* -----------------------------------------------------------------------
   MRH 24.0.3 — Typographie commerciale, règles finales centralisées.
   Ne modifie ni le footer ni la grille cinq colonnes.
   ----------------------------------------------------------------------- */
:root {
  --mrh-type-caption: 12px;
  --mrh-type-meta: 12px;
  --mrh-type-action: 13px;
  --mrh-type-product: 15px;
}
@media (min-width: 992px) {
  body#index .um-home .um-featured-showcase .product-miniature .product-title,
  body#index .um-home .um-featured-showcase .product-miniature .product-title a {
    font-family: var(--um-font-ui) !important;
    font-size: var(--mrh-type-product) !important;
    line-height: 1.42 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
  }
  body#index .um-home .um-featured-showcase .um-product-card .um-product-ref {
    font-size: var(--mrh-type-meta) !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    color: #525c6c !important;
  }
  body#index .um-home .um-featured-showcase .um-product-card .um-stock-status {
    font-size: var(--mrh-type-caption) !important;
    line-height: 1.35 !important;
    font-weight: 650 !important;
    padding: 4px 8px !important;
    max-width: 100%;
  }
  body#index .um-home .um-featured-showcase .um-product-card .um-product-card__details {
    font-family: var(--um-font-ui) !important;
    font-size: var(--mrh-type-action) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
  }
  body#index .um-home .um-featured-showcase .um-product-card .price {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
  }
  body#index .um-home .um-featured-showcase .um-product-card .regular-price {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }
  body#index .um-category-carousel__eyebrow,
  body#index .um-home .um-overline {
    font-size: 12px !important;
    line-height: 1.3 !important;
    letter-spacing: .10em !important;
    font-weight: 750 !important;
  }
  body#index .um-home .um-category-carousel .um-category small {
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
    text-shadow: none !important;
  }
  body#index .um-home .um-category-carousel .um-category strong {
    font-size: clamp(17px, 1.35vw, 23px) !important;
    line-height: 1.17 !important;
    letter-spacing: -.01em !important;
    text-shadow: none !important;
  }
  body#index .um-home .um-heading-side {
    font-family: var(--um-font-ui) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #525c69 !important;
  }
  body#index .um-home .um-product-tabs > * {
    font-size: 14px !important;
    font-weight: 700 !important;
  }
  body#index #wrapper .um-home .um-values .um-value-content strong {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  body#index #wrapper .um-home .um-values .um-value-content small,
  body#index #wrapper .um-home .um-values .um-value-content a {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }
}
@media (max-width: 991px) {
  body#index .um-home .um-featured-showcase .um-product-card .um-product-ref {
    font-size: 11px !important;
    color: #525c6c !important;
  }
  body#index .um-home .um-featured-showcase .um-product-card .um-stock-status {
    font-size: 11px !important;
  }
  body#index .um-home .um-featured-showcase .um-product-card .um-product-card__details {
    font-size: 12px !important;
    font-weight: 700 !important;
  }
}

/* MRH 24.0.7 — wordmark recadré pour améliorer sa taille perçue.
   Le slogan partage la zone du logo ; aucune colonne supplémentaire.
   Header desktop uniquement : footer et tailles mobiles préservés. */
@media (min-width: 1200px) {
  #header .um-header-v6 .um-header-main > .um-brand-block {
    position: relative !important;
    box-sizing: border-box !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 96px !important;
    min-height: 96px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
  }
  #header .um-header-v6 .um-brand-block .um-brand {
    position: absolute !important;
    top: 10px !important;
    left: 0 !important;
    width: min(100%, 410px) !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 0 !important;
  }
  #header .um-header-v6 .um-brand-block img.um-header-racing-logo {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 75px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }
  #header .um-header-v6 .um-brand-block .um-brand-tagline {
    position: absolute !important;
    bottom: 3px !important;
    left: 0 !important;
    width: min(100%, 410px) !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
    font-family: var(--um-font-ui) !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    color: #eceff1 !important;
    font-style: italic !important;
    white-space: nowrap !important;
    pointer-events: none !important;
  }
}
@media (min-width: 1200px) and (max-width: 1279px) {
  #header .um-header-v6 .um-brand-block .um-brand { top: 29px !important; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  #header .um-header-v6 .um-brand-block img.um-header-racing-logo {
    display: block !important;
    width: 190px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 70px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  #header .um-header-v6 .um-brand-block .um-brand-tagline {
    margin: 0 !important;
    width: 190px !important;
    max-width: 100% !important;
    text-align: center !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }
}
@media (max-width: 767px) {
  #header .um-mobile-toolbar .um-mobile-controls .um-mobile-brand img.um-header-racing-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(165px, 100%) !important;
    max-height: 51px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
}
/* Réassertion légère : le contenu commercial doit rester centré après les
   règles historiques 100vw, sans déborder sur les bords de la fenêtre. */
@media (min-width: 992px) {
  body#index .page-home.um-home > .um-main-content {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
