/* AutoSpace: hero rules loaded with the page (2026-10-22). The same rules are in autospace.css, which loads
   later; having them here stops the homepage jumping when that file arrives (Clarity CLS 0.45). */
.section-hero { background: #111314; align-items: flex-start; padding-top: 48px; padding-bottom: 48px; }
.section-hero > .absolute { display: none; }
.section-hero .theme-container { gap: 32px; max-width: 1200px; width: 100%; }
.section-hero span.text-foreground { color: #B6BFC1; font-size: 13px; letter-spacing: 0; text-transform: none; }
.section-hero h1 { color: #fff; font-size: 34px; line-height: 1.25; letter-spacing: 0; }
.section-hero p.text-foreground { color: #B6BFC1; font-size: 17px; line-height: 1.7; max-width: 46ch; }
@media (min-width: 768px) {
  .section-hero { padding-top: 72px; padding-bottom: 72px; }
  .section-hero h1 { font-size: 48px; }
}
/* Space for the phone car bar and the car picker, reserved before autospace.js adds them, so the page
   does not jump (Clarity: two shifts, 0.45 and 0.40). Each box goes when the real element arrives. */
.section-hero a[href="#as-car"] { display: none; }
@media (max-width: 767px) {
  div.sticky:has(> header):not(:has(> .as-chip-bar))::after {
    content: ""; display: block; height: 44px; background: #F4F6F6;
    border-top: 1px solid #DDE1E2; border-bottom: 1px solid #DDE1E2;
  }
  body:has(#mobile-drawer-dialog[open]) div.sticky::after { display: none; }
}
html:not(.as-has-picker) .section-hero .theme-container::after {
  content: ""; display: block; width: 100%; height: 412px; box-sizing: border-box;
  background: #1B1E20; border: 1px solid #34393C; border-radius: 16px;
}
@media (min-width: 768px) {
  html:not(.as-has-picker) .section-hero .theme-container::after { height: 182px; }
}
/* Product cards: room for the part-number line autospace.js adds under the title (19.5px + 2px margin
   + 8px gap), so the grid does not jump when it arrives (Clarity CLS 0.29 on category pages). */
.group .flex.flex-col.gap-2:not(:has(> .as-card-sku)) > h3 { margin-bottom: 29.5px; }
/* Type, the same rules as autospace.css: set here too so every page draws in the brand font from the
   start instead of reflowing when autospace.css arrives (cold loads jumped 0.37 + 0.37). */
html, body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, a, span, li, label {
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif !important;
}
body { font-weight: 400; -webkit-font-smoothing: antialiased; }
header nav a, header nav button { font-weight: 500; }
h1 { font-weight: 700 !important; }
h2, h3 { font-weight: 600; }
.btn { font-weight: 600; }
/* phones: two products per row from first paint (same rule as autospace.css) */
/* Phones: 2 products per row. Zid serves data-grid="four" and switches to "one" after load; both get
   the same layout so the switch moves nothing (cold-load CLS on car pages 0.5-0.6 -> 0.001, 2026-11-14). */
@media (max-width:767px){[data-grid-root][data-grid="four"],[data-grid-root][data-grid="one"]{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:28px}[data-grid-root][data-grid="four"] h3,[data-grid-root][data-grid="four"] h2,[data-grid-root][data-grid="one"] h3,[data-grid-root][data-grid="one"] h2{font-size:14px;line-height:1.45}}
/* Card photos: square box reserved before the photo loads (4:3 photos fit inside on white). */
[data-grid-root]:not([data-grid="list"]) [data-product-card] > a > img{aspect-ratio:1/1;height:auto;object-fit:contain;background:#fff}
/* Desktop logo: fixed size, so the header does not grow while the logo loads or is swapped for the SVG. */
@media (min-width:768px){header a.shrink-0 > img{width:253px;height:66px;max-height:none;object-fit:contain}}