/* Components: map 1:1 to Elementor Atomic global classes (see design/tokens.md). */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 38px; padding: 0 var(--space-4); font-size: var(--text-base); }
.btn-block { width: 100%; }
.btn-quote { background: var(--color-amber-500); color: var(--color-navy-900); }
.btn-quote:hover { background: var(--color-amber-600); color: var(--color-navy-950); }
.btn-primary { background: var(--color-navy-800); color: var(--color-white); }
.btn-primary:hover { background: var(--color-navy-950); color: var(--color-white); }
.btn-outline { background: transparent; color: var(--color-navy-900); border-color: var(--color-navy-900); }
.btn-outline:hover { background: var(--color-navy-900); color: var(--color-white); }
.section--dark .btn-outline, .hero .btn-outline--light { color: var(--color-white); border-color: var(--color-white); }
.section--dark .btn-outline:hover { background: var(--color-white); color: var(--color-navy-900); }
.btn-whatsapp { background: var(--color-whatsapp); color: var(--color-whatsapp-ink); }
.btn-whatsapp:hover { filter: brightness(.95); color: var(--color-whatsapp-ink); }
.btn-ghost { background: transparent; color: var(--color-link); padding-inline: var(--space-2); text-transform: none; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; min-height: 36px; }
.btn-ghost:hover { color: var(--color-navy-900); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px var(--space-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  border-radius: var(--radius-sm); background: var(--color-blue-100); color: var(--color-navy-900);
}
.badge--navy { background: var(--color-navy-900); color: var(--color-white); }
.badge--outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-muted); }
.badge--sample { background: var(--color-amber-500); color: var(--color-navy-900); }
.pos-tag { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-sm); letter-spacing: .06em; text-transform: uppercase; color: var(--color-blue-600); }

/* ---------- Header ---------- */
.utility-bar { background: var(--color-navy-950); color: var(--color-navy-200); font-size: var(--text-sm); }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 38px; }
.utility-bar a { color: var(--color-white); text-decoration: none; }
.utility-bar .cluster { gap: var(--space-5); }
.region-switch { display: inline-flex; align-items: center; gap: var(--space-2); }
.region-switch select {
  background: transparent; color: var(--color-white); border: 1px solid rgb(255 255 255 / .25); border-radius: var(--radius-sm);
  padding: 2px var(--space-2); font-size: var(--text-sm); cursor: pointer;
}
.region-switch select option { color: var(--color-navy-900); }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header .container { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-height); }
.logo { flex: none; display: block; }
.logo img { height: 44px; width: auto; }
.nav { flex: 1; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); justify-content: center; }
.nav li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button {
  display: inline-flex; align-items: center; gap: 4px; height: var(--header-height); padding: 0 var(--space-3);
  background: none; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-navy-900); position: relative;
}
.nav > ul > li > a::after, .nav > ul > li > button::after {
  content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 18px; height: 3px;
  background: var(--color-blue-600); transform: scaleX(0) skewX(var(--slash-angle)); transform-origin: left; transition: transform var(--duration) var(--ease);
}
.nav > ul > li:hover > a::after, .nav > ul > li:hover > button::after, .nav a[aria-current="page"]::after { transform: scaleX(1) skewX(var(--slash-angle)); }
.nav .chev { width: 12px; height: 12px; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px; padding: var(--space-3); list-style: none; margin: 0;
  background: var(--color-white); border: 1px solid var(--color-border); border-top: 3px solid var(--color-navy-900);
  border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all var(--duration) var(--ease);
}
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); text-decoration: none; color: var(--color-navy-900); font-weight: 500; }
.dropdown a:hover { background: var(--color-slate-100); }
.dropdown small { display: block; color: var(--color-text-muted); font-size: var(--text-xs); }
.dropdown--brands { display: grid; grid-template-columns: repeat(2, 1fr); min-width: 360px; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.ql-toggle {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-3);
  background: var(--color-slate-100); border: 1px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 600; font-size: var(--text-sm); color: var(--color-navy-900);
}
.ql-toggle svg { width: 20px; height: 20px; }
.ql-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill);
  background: var(--color-navy-900); color: var(--color-white); font-size: var(--text-xs); display: inline-grid; place-items: center;
}
.ql-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); background: var(--color-amber-500); color: var(--color-navy-900); } }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-white); cursor: pointer; }
.menu-toggle svg { margin: auto; width: 24px; height: 24px; }

@media (max-width: 1180px) {
  .nav { position: fixed; inset: calc(var(--header-height) + 38px) 0 0 0; background: var(--color-white); padding: var(--space-4) var(--container-gutter) 120px; overflow-y: auto; display: none; }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li > a, .nav > ul > li > button { height: 56px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--color-border); }
  .nav > ul > li > a::after, .nav > ul > li > button::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 var(--space-3) var(--space-3); min-width: 0; }
  .nav li.is-open > .dropdown { display: block; }
  .dropdown--brands { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: inline-grid; }
  .header-actions .btn-quote { display: none; }
  .site-header .container { justify-content: space-between; }
}
@media (max-width: 767px) {
  .utility-bar .hide-sm { display: none; }
  .logo img { height: 36px; }
  .ql-toggle .ql-label { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--color-navy-900); background: var(--color-slate-100); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(255 255 255 / .97) 0%, rgb(255 255 255 / .9) 34%, rgb(255 255 255 / .2) 62%, rgb(255 255 255 / 0) 80%); }
.hero .container { padding-block: clamp(3rem, 2rem + 6vw, 7rem) clamp(2rem, 1rem + 4vw, 4rem); }
.hero__content { max-width: 640px; }
.hero__rule { width: 64px; height: 4px; background: var(--color-blue-600); margin: var(--space-5) 0; }
.hero__tagline { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: var(--text-sm); }
.hero__tagline strong { color: var(--color-blue-600); }
@media (max-width: 767px) {
  .hero::before { background: linear-gradient(180deg, rgb(255 255 255 / .96) 0%, rgb(255 255 255 / .9) 55%, rgb(255 255 255 / .35) 100%); }
  .hero__media img { object-position: 78% center; }
}

/* Page header (inner pages) */
.page-hero { position: relative; isolation: isolate; background: var(--color-navy-900); color: var(--color-white); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(7 26 71 / .95) 0%, rgb(7 26 71 / .82) 45%, rgb(7 26 71 / .25) 100%); }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -40px; width: 340px; height: 120px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .06) 0 40px, transparent 40px 56px); transform: skewX(var(--slash-angle)); z-index: -1; }
.page-hero .container { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.page-hero h1 { color: var(--color-white); max-width: 18ch; }
.page-hero .lead { color: var(--color-navy-200); }
.page-hero .eyebrow { color: var(--color-amber-500); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-5); padding: 0; font-size: var(--text-sm); color: var(--color-navy-200); }
.breadcrumb a { color: var(--color-white); text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); opacity: .5; }

/* ---------- Find by Size ---------- */
.finder { background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border-top: 4px solid var(--color-navy-900); margin-top: var(--space-7); max-width: 980px; }
.finder__tabs { display: flex; border-bottom: 1px solid var(--color-border); }
.finder__tab {
  flex: 1; padding: var(--space-4); background: none; border: 0; cursor: pointer;
  font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.finder__tab[aria-selected="true"] { color: var(--color-navy-900); border-color: var(--color-blue-600); }
.finder__panel { padding: var(--space-5); display: grid; gap: var(--space-4); grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
.finder__panel[hidden] { display: none; }
@media (max-width: 767px) { .finder__panel { grid-template-columns: 1fr 1fr; } .finder__panel .btn { grid-column: 1 / -1; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--space-1); }
.field label, .field legend { font-size: var(--text-sm); font-weight: 600; color: var(--color-navy-900); }
.field .req { color: var(--color-error); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: var(--space-3); background: var(--color-white);
  border: 1px solid var(--color-input-border); border-radius: var(--radius-sm); font-size: var(--text-base);
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-blue-600); box-shadow: 0 0 0 3px var(--color-blue-100); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--color-error); }
.field .error-msg { display: none; color: var(--color-error); font-size: var(--text-xs); }
.field.has-error .error-msg { display: block; }
.hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.hp-field { position: absolute; left: -9999px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.form-grid__full { grid-column: 1 / -1; }
.file-input { padding: var(--space-3); border: 1px dashed var(--color-input-border); border-radius: var(--radius-sm); background: var(--color-slate-100); }
.file-input::file-selector-button { margin-right: var(--space-3); padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-sm); background: var(--color-navy-800); color: var(--color-white); font: inherit; font-weight: 600; cursor: pointer; }
.field.has-error .file-input { border-color: var(--color-error); }
.career-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: var(--space-8); align-items: start; }
.career-form { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.form-success { padding: var(--space-4); border-left: 4px solid var(--color-success); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-success) 10%, var(--color-white)); color: var(--color-navy-900); }
.form-success:focus { outline: 3px solid var(--color-focus); outline-offset: 3px; }
@media (max-width: 900px) { .career-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-grid__full { grid-column: auto; } }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); border: 0; padding: 0; margin: 0; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-card span {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-input-border); border-radius: var(--radius-md); font-weight: 600; font-size: var(--text-sm); background: var(--color-white);
}
.choice-card small { font-weight: 400; color: var(--color-text-muted); }
.choice-card input:checked + span { border-color: var(--color-blue-600); box-shadow: inset 0 0 0 2px var(--color-blue-600); background: var(--color-blue-100); }
.choice-card input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Cards ---------- */
.card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease), border-color var(--duration) var(--ease); }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.card__media { aspect-ratio: 4 / 3; background: var(--color-slate-100); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card__body > :last-child { margin-top: auto; }
.card h3 { margin: 0; }

/* Product card */
.product-card .card__media { aspect-ratio: 1 / 1; background: linear-gradient(180deg, var(--color-white), var(--color-slate-100)); display: grid; place-items: center; padding: var(--space-4); position: relative; }
.product-card .card__media img { object-fit: contain; width: 82%; height: 82%; }
.product-card .card__brand { position: absolute; top: var(--space-3); left: var(--space-3); height: 22px; max-width: 96px; object-fit: contain; }
.product-card .badge--sample { position: absolute; top: var(--space-3); right: var(--space-3); }
.product-card__pattern { font-family: var(--font-heading); font-size: var(--text-h3); font-weight: 800; text-transform: uppercase; line-height: 1; color: var(--color-navy-900); text-decoration: none; }
.product-card__pattern:hover { color: var(--color-blue-600); }
.product-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.product-card__sizes { font-family: var(--font-heading); font-size: var(--text-base); color: var(--color-text-muted); }
.product-card__actions { display: flex; gap: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
.product-card__actions .btn { flex: 1; }
.tyre-ph { width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--color-slate-100) 0 30%, var(--color-rubber) 31% 100%); box-shadow: inset 0 0 0 10px var(--color-rubber-rim), inset 0 0 0 24px var(--color-rubber); }

/* Brand tile */
.brand-tile { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: var(--space-5); background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); text-decoration: none; transition: all var(--duration) var(--ease); }
.brand-tile img { max-height: 54px; width: auto; object-fit: contain; }
.brand-tile img:not(.logo-mono) { filter: grayscale(.15); }
.brand-tile:hover { border-color: var(--color-navy-900); box-shadow: var(--shadow-md); }
.brand-tile__name { font-family: var(--font-heading); font-weight: 800; font-size: var(--text-h3); color: var(--color-navy-900); text-transform: uppercase; }
.brand-strip { background: var(--color-white); border-block: 1px solid var(--color-border); }
.brand-strip .container { display: grid; grid-template-columns: repeat(5, 1fr); }
.brand-strip a { position: relative; display: grid; place-items: center; padding: var(--space-5) var(--space-4); border-left: 1px solid var(--color-border); min-height: 128px; }
.brand-strip__country { position: absolute; top: calc(50% + 12px); right: 2%; transform: skewX(-10deg); color: #111; font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-style: italic; font-weight: 900; letter-spacing: .18em; line-height: 1; white-space: nowrap; }
.brand-strip a:last-child { border-right: 1px solid var(--color-border); }
.brand-strip__logo { display: block; position: relative; width: min(160px, 100%); height: 64px; overflow: hidden; }
.brand-strip .brand-strip__logo img { position: absolute; left: 50%; top: 50%; width: 100%; height: auto; max-width: none; max-height: none; transform: translate(-50%, -50%); }
/* Compensate for whitespace within the supplied artwork. */
.brand-strip .brand-strip__logo--fortune img { width: 116%; }
.brand-strip .brand-strip__logo--tercelo img { width: 116%; transform: translate(-50%, -62%); }
.brand-strip .brand-strip__logo--roadlux img { width: 104%; }
@media (max-width: 900px) { .brand-strip .container { grid-template-columns: repeat(3, 1fr); } .brand-strip a { border-bottom: 1px solid var(--color-border); } }
@media (max-width: 480px) { .brand-strip .container { grid-template-columns: repeat(2, 1fr); } }

/* Pillars */
.pillars { background: var(--color-slate-100); }
.pillars .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-4); font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; line-height: 1.35; }
.pillar + .pillar { border-left: 1px solid var(--color-divider); }
.pillar svg { width: 36px; height: 36px; color: var(--color-blue-700); flex: none; }
@media (max-width: 900px) { .pillars .container { grid-template-columns: 1fr 1fr; } .pillar:nth-child(3) { border-left: 0; } }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.stat { padding-left: var(--space-5); border-left: 3px solid var(--color-amber-500); }
.stat__num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.5rem, 1.8rem + 2.5vw, 3.75rem); line-height: 1; color: var(--color-white); }
.stat__label { color: var(--color-navy-200); font-size: var(--text-sm); margin-top: var(--space-2); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; row-gap: var(--space-6); } }

/* Feature list */
.feature { display: flex; gap: var(--space-4); }
.feature__icon { flex: none; width: 52px; height: 52px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--color-blue-100); color: var(--color-blue-700); }
.feature__icon svg { width: 26px; height: 26px; }
.section--dark .feature__icon { background: rgb(255 255 255 / .08); color: var(--color-amber-500); }
.feature h3 { font-size: var(--text-h4); margin-bottom: var(--space-2); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checklist li::before { content: ""; flex: none; margin-top: 6px; width: 14px; height: 10px; border-left: 3px solid var(--color-blue-600); border-bottom: 3px solid var(--color-blue-600); transform: rotate(-45deg); }
.section--dark .checklist li::before { border-color: var(--color-amber-500); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.step { position: relative; padding-top: var(--space-6); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-heading); font-weight: 800; font-size: var(--text-h2); color: var(--color-blue-600); position: absolute; top: -10px; }
.step h3 { font-size: var(--text-h4); margin: var(--space-4) 0 var(--space-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Careers process: centered at every size, with an even mobile flow. */
.career-process .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; margin-inline: auto; }
.career-process .step { text-align: center; }
.career-process .step::before { left: 50%; transform: translateX(-50%); }
@media (max-width: 900px) {
  .career-process .steps { grid-template-columns: minmax(0, 560px); justify-content: center; gap: var(--space-7); }
}

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--color-navy-800); color: var(--color-white); }
.cta-band::before { content: ""; position: absolute; top: 0; bottom: 0; right: 8%; width: 46%; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .05) 0 64px, transparent 64px 88px); transform: skewX(var(--slash-angle)); }
.cta-band .container { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-8); }
.cta-band h2 { color: var(--color-white); margin: 0 0 var(--space-2); }
.cta-band p { color: var(--color-navy-200); margin: 0; }

/* ---------- Catalogue ---------- */
.catalogue { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.filters { position: sticky; top: calc(var(--header-height) + var(--space-4)); background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.filters__head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); }
.filters__head h2 { font-size: var(--text-h4); margin: 0; }
.filter-group { border-bottom: 1px solid var(--color-border); padding: var(--space-4) var(--space-5); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h3 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-3); }
.check { display: flex; align-items: center; gap: var(--space-2); padding: 4px 0; font-size: var(--text-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--color-navy-800); }
.check .count { margin-left: auto; color: var(--color-text-muted); font-size: var(--text-xs); }
.seg-tabs { display: inline-flex; background: var(--color-slate-100); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
.seg-tabs a { padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); text-decoration: none; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); }
.seg-tabs a[aria-current="page"] { background: var(--color-white); color: var(--color-navy-900); box-shadow: var(--shadow-sm); }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; background: var(--color-blue-100); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; border: 0; cursor: pointer; color: var(--color-navy-900); }
.chip::after { content: "×"; font-size: 14px; line-height: 1; }
.empty-state { text-align: center; padding: var(--space-8) var(--space-5); border: 2px dashed var(--color-border); border-radius: var(--radius-md); }
.filters-toggle { display: none; }
@media (max-width: 1024px) {
  .catalogue { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(360px, 92vw); z-index: 80; border-radius: 0; overflow-y: auto; transform: translateX(100%); transition: transform var(--duration) var(--ease); }
  .filters.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .filters-toggle { display: inline-flex; }
}

/* ---------- Spec table ---------- */
.spec-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); }
.spec-table { width: 100%; min-width: 860px; font-size: var(--text-sm); }
.spec-table--summary { min-width: 0; table-layout: fixed; }
.spec-table.spec-table--summary th, .spec-table.spec-table--summary td { white-space: normal; overflow-wrap: break-word; }
.spec-table--summary caption { padding: 12px; text-align: left; color: var(--color-text-muted); }
.spec-table th, .spec-table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.spec-table thead th { background: var(--color-navy-900); color: var(--color-white); font-family: var(--font-heading); font-size: var(--text-base); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; position: sticky; top: 0; }
.spec-table tbody tr:nth-child(even) td { background: var(--color-slate-100); }
.spec-table tbody tr:hover td { background: var(--color-blue-100); }
.spec-table td.size { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; color: var(--color-navy-900); }
.spec-table .sticky-1, .spec-table .sticky-2 { position: sticky; z-index: 1; background: var(--color-white); }
.spec-table thead .sticky-1, .spec-table thead .sticky-2 { z-index: 2; background: var(--color-navy-900); }
.spec-table .sticky-1 { left: 0; }
.spec-table .sticky-2 { left: 150px; box-shadow: 6px 0 8px -6px rgb(10 36 99 / .25); }
.spec-table td.sticky-1 { min-width: 150px; }
.spec-table tbody tr:nth-child(even) .sticky-1, .spec-table tbody tr:nth-child(even) .sticky-2 { background: var(--color-slate-100); }
.spec-table [data-tip] { border-bottom: 1px dotted currentColor; cursor: help; position: relative; }
.spec-table [data-tip]:hover::after, .spec-table [data-tip]:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--color-navy-950); color: var(--color-white); padding: 4px 8px; border-radius: var(--radius-sm); font-size: var(--text-xs); white-space: nowrap; z-index: 5;
}
.spec-table .add-row { min-height: 34px; }
.spec-table .add-row.is-added { background: var(--color-success); color: var(--color-white); border-color: var(--color-success); }
.na { color: var(--color-text-disabled); }
.official-specs { display: grid; gap: var(--space-6); margin-top: var(--space-5); }
.official-spec { margin: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: var(--color-white); }
.official-spec img { display: block; width: 100%; height: auto; }
.official-spec figcaption { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: var(--text-sm); }
.source-integrity { padding: var(--space-6); border: 1px solid var(--color-amber-500); border-radius: var(--radius-md); background: #fff9eb; }
.source-integrity h3 { margin-bottom: var(--space-2); }
.source-integrity p { color: var(--color-text-muted); }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.pdp__gallery { background: linear-gradient(180deg, var(--color-white), var(--color-slate-100)); border: 1px solid var(--color-border); border-radius: var(--radius-lg); aspect-ratio: 1; display: grid; place-items: center; padding: var(--space-6); position: relative; }
.pdp__gallery img { max-height: 100%; object-fit: contain; }
.pdp__gallery .badge--sample { position: absolute; top: var(--space-4); right: var(--space-4); }
.pdp__gallery:has(.product-gallery) { aspect-ratio: auto; background: var(--color-white); }
.product-gallery { width: 100%; min-width: 0; }
.pdp__gallery .product-gallery__main { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.product-gallery__views { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.product-gallery__view { display: grid; justify-items: center; gap: 5px; width: 88px; padding: 6px; background: white; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text); cursor: pointer; font: inherit; font-size: 12px; }
.product-gallery__view[aria-pressed="true"] { border: 2px solid var(--color-navy-900); padding: 5px; background: var(--color-slate-100); }
.product-gallery__view:focus-visible { outline: 3px solid var(--color-blue-600); outline-offset: 3px; }
.pdp__gallery .product-gallery__view img { width: 64px; height: 64px; object-fit: contain; }
.product-gallery__caption { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--color-text-muted); }
.pdp__brand { height: 32px; width: auto; margin-bottom: var(--space-4); }
.pdp h1 { font-size: var(--text-display); margin-bottom: var(--space-2); }
.pdp__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.pdp__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin: var(--space-5) 0; padding: var(--space-5) 0; border-block: 1px solid var(--color-border); }
.pdp__facts dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.pdp__facts dd { margin: 2px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); text-transform: uppercase; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ---------- Quote List drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgb(7 26 71 / .5); z-index: 90; opacity: 0; visibility: hidden; transition: all var(--duration) var(--ease); }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--color-white); z-index: 100; display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--duration) var(--ease); box-shadow: var(--shadow-lg); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-5); border-bottom: 1px solid var(--color-border); }
.drawer__head h2 { font-size: var(--text-h3); margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-5); }
.drawer__foot { padding: var(--space-5); border-top: 1px solid var(--color-border); display: grid; gap: var(--space-3); background: var(--color-slate-100); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; color: var(--color-navy-900); }
.icon-btn svg { width: 20px; height: 20px; }
.ql-item { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.ql-item__name { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); line-height: 1.1; }
.ql-item__meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-input-border); border-radius: var(--radius-sm); height: 38px; }
.qty button { width: 34px; height: 100%; background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--color-navy-900); }
.qty input { width: 56px; height: 100%; border: 0; border-inline: 1px solid var(--color-border); text-align: center; font-weight: 600; -moz-appearance: textfield; }

/* ---------- News & Insights ---------- */
.insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.insight-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.insight-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-slate-100); }
.insight-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration) var(--ease); }
.insight-card:hover .insight-card__media img { transform: scale(1.025); }
.insight-card__body { display: flex; flex: 1; flex-direction: column; padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.insight-card h2, .insight-card h3 { margin: var(--space-3) 0; }
.insight-card h2 a, .insight-card h3 a { color: inherit; text-decoration: none; }
.insight-card p { color: var(--color-text-muted); }
.insight-card .text-link { margin-top: auto; }
.insight-card--featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.insight-card--featured .insight-card__media { aspect-ratio: auto; min-height: 420px; }
.article-meta, .article-byline { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; color: var(--color-text-muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.article-meta span + span::before, .article-meta time::before, .article-byline span::before { content: "•"; margin-right: 1.15rem; color: var(--color-blue-600); }

.article-header { padding: clamp(3rem, 6vw, 6.5rem) 0 clamp(2.5rem, 5vw, 5rem); background: linear-gradient(135deg, var(--color-navy-950), var(--color-navy-800)); color: var(--color-white); }
.article-header .breadcrumb, .article-header .breadcrumb a, .article-header .lead { color: var(--color-navy-200); }
.article-header .eyebrow { color: var(--color-amber-500); }
.article-header h1 { max-width: 1000px; color: var(--color-white); font-size: clamp(2.5rem, 2rem + 3vw, 5rem); }
.article-header .lead { max-width: 860px; }
.article-byline { margin-top: var(--space-6); color: var(--color-navy-200); }
.article-byline strong { color: var(--color-white); }
.article-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(240px, 320px); justify-content: space-between; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.article-main { min-width: 0; }
.article-lead-image { margin: 0 0 var(--space-8); }
.article-lead-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.article-lead-image figcaption { margin-top: var(--space-2); color: var(--color-text-muted); font-size: var(--text-xs); }
.article-copy { font-size: 1.1rem; line-height: 1.75; }
.article-copy h2 { margin-top: clamp(2rem, 5vw, 3.5rem); }
.article-copy a { font-weight: 650; }
.article-copy .article-table { margin-block: var(--space-5); }
.article-checklist { display: grid; gap: var(--space-3); padding-left: 1.35rem; }
.article-checklist li { padding-left: .35rem; }
.article-table-wrap { overflow-x: auto; margin: var(--space-7) 0; }
.article-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.article-table th, .article-table td { padding: .9rem 1rem; text-align: left; vertical-align: top; border: 1px solid var(--color-border); }
.article-table th { background: var(--color-navy-900); color: var(--color-white); font-family: var(--font-heading); font-size: var(--text-base); text-transform: uppercase; letter-spacing: .03em; }
.article-table tbody tr:nth-child(even) td { background: var(--color-slate-100); }
.article-options, .article-faq, .article-sources { margin-top: clamp(3rem, 6vw, 5rem); padding-top: var(--space-7); border-top: 1px solid var(--color-border); }
.article-options__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.article-option { padding: var(--space-5); background: var(--color-slate-100); border-radius: var(--radius-md); border-top: 3px solid var(--color-blue-600); }
.article-option h3 { font-size: var(--text-h4); }
.article-option h3 a { color: inherit; }
.article-option p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.article-faq details { border-top: 1px solid var(--color-border); }
.article-faq details:last-child { border-bottom: 1px solid var(--color-border); }
.article-faq summary { padding: var(--space-4) 2rem var(--space-4) 0; font-family: var(--font-heading); font-size: var(--text-h4); font-weight: 700; cursor: pointer; }
.article-faq details p { padding: 0 0 var(--space-5); }
.article-sources li { margin-bottom: var(--space-2); }
.article-aside { position: sticky; top: calc(var(--header-height) + var(--space-5)); }
.article-rfq { display: grid; gap: var(--space-4); padding: var(--space-6); }
.article-rfq h2, .article-rfq p { margin: 0; }

@media (max-width: 900px) {
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card--featured { grid-template-columns: 1fr; }
  .insight-card--featured .insight-card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}
@media (max-width: 600px) {
  .article-header h1 { font-size: clamp(2.15rem, 10vw, 3.2rem); }
  .article-options__grid { grid-template-columns: 1fr; }
  .article-table { min-width: 620px; }
  .article-meta span + span::before, .article-meta time::before, .article-byline span::before { display: none; }
}
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ql-empty { text-align: center; padding: var(--space-8) var(--space-4); color: var(--color-text-muted); }

/* ---------- Floating WhatsApp + mobile bar ---------- */
.wa-float { position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--color-whatsapp); color: var(--color-whatsapp-ink); display: grid; place-items: center; box-shadow: var(--shadow-lg); text-decoration: none; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.05); }
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .wa-float { display: none; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--color-white); border-top: 1px solid var(--color-border); box-shadow: 0 -6px 18px rgb(10 36 99 / .1); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 62px; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; color: var(--color-navy-900); background: none; border: 0; cursor: pointer; }
  .mobile-bar svg { width: 22px; height: 22px; }
  .mobile-bar .mb-wa { background: var(--color-whatsapp); color: var(--color-whatsapp-ink); }
  .mobile-bar .ql-count { position: absolute; transform: translate(14px, -14px); }
  .mobile-bar button { position: relative; }
  body { padding-bottom: 62px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy-950); color: var(--color-navy-200); font-size: var(--text-sm); }
.site-footer a { color: var(--color-navy-200); text-decoration: none; }
.site-footer a:hover { color: var(--color-white); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr; gap: var(--space-7); padding-block: var(--space-8) var(--space-7); }
.site-footer h3 { color: var(--color-white); font-size: var(--text-lg); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer-logo img { height: 46px; margin-bottom: var(--space-4); }
.socials { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .2); border-radius: var(--radius-sm); }
.socials a:hover { background: var(--color-white); color: var(--color-navy-900); }
.socials svg { width: 18px; height: 18px; }
.footer-office strong { display: block; color: var(--color-white); }
.footer-office + .footer-office { margin-top: var(--space-4); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-5); }
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Office card ---------- */
.office-card { padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); display: flex; flex-direction: column; gap: var(--space-3); border-top: 4px solid var(--color-navy-900); }
.office-card--gcc { border-top-color: var(--color-blue-600); }
.office-card h3 { margin: 0; }
.office-card address { font-style: normal; color: var(--color-text-muted); }
.office-card .cluster { margin-top: auto; }
.placeholder-note { display: inline-block; font-size: var(--text-xs); background: var(--color-notice-bg); color: var(--color-notice-text); padding: 2px 8px; border-radius: var(--radius-sm); }

/* ---------- Docs / downloads ---------- */
.doc-card { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); }
.doc-card__icon { flex: none; width: 48px; height: 58px; background: var(--color-navy-900); color: var(--color-white); clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); display: grid; place-items: end center; padding-bottom: 8px; font-size: 10px; font-weight: 700; }
.doc-card__body { flex: 1; min-width: 0; }
.doc-card__title { font-weight: 600; }
.doc-card__meta { font-size: var(--text-xs); color: var(--color-text-muted); }

.verified { display: inline-flex; align-items: center; gap: 6px; color: var(--color-success); font-weight: 700; font-size: var(--text-sm); }
.verified svg { width: 18px; height: 18px; }

/* Misc */
.notice { background: var(--color-notice-bg); color: var(--color-notice-text); border-left: 4px solid var(--color-amber-500); padding: var(--space-3) var(--space-4); font-size: var(--text-sm); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.stepper { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); }
.stepper span { flex: 1; height: 4px; background: var(--color-border); border-radius: 2px; }
.stepper span.is-active { background: var(--color-blue-600); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--color-navy-950); color: var(--color-white); padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill); font-size: var(--text-sm); z-index: 120; opacity: 0; transition: all var(--duration) var(--ease); pointer-events: none; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame figcaption { position: absolute; left: var(--space-3); bottom: var(--space-3); background: rgb(7 26 71 / .75); color: var(--color-white); font-size: var(--text-xs); padding: 2px 8px; border-radius: var(--radius-sm); }
.media-slash { position: relative; }
.media-slash::before { content: ""; position: absolute; left: -18px; top: 24px; bottom: -18px; width: 60%; background: var(--color-navy-900); transform: skewX(var(--slash-angle)); z-index: -1; border-radius: var(--radius-sm); }

/* Fixes after first visual review */
.logo-mono { filter: brightness(0); opacity: .82; }
.brand-strip a, .brand-tile { text-decoration: none; }
.region-switch { white-space: nowrap; }
.card__body > .badge, .card__body > .eyebrow { align-self: flex-start; }
.office-card .eyebrow::before { display: none; }
.product-card .card__media img.card__brand { position: absolute; top: var(--space-3); left: var(--space-3); width: auto; height: 22px; max-width: 96px; object-fit: contain; mix-blend-mode: normal; }
.product-card .card__media img:not(.card__brand), .pdp__gallery img { mix-blend-mode: multiply; }
/* Completed tyre images retain their neutral studio background. */
.product-card .card__media:has(.product-image--completed), .pdp__gallery:has(.product-image--completed) { background: var(--color-white); }
.product-card .card__media img.product-image--completed, .pdp__gallery img.product-image--completed { mix-blend-mode: normal; }
.breadcrumb--light { color: var(--color-text-muted); }
.breadcrumb--light a { color: var(--color-link); }
.cta-band .btn-outline, .page-hero .btn-outline { color: var(--color-white); border-color: var(--color-white); }
.cta-band .btn-outline:hover, .page-hero .btn-outline:hover { background: var(--color-white); color: var(--color-navy-900); }
.grid-segments { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 767px) { .grid-segments { grid-template-columns: 1fr; } }
.pillars .container { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .pillars .container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pillar { padding-inline: var(--space-2); font-size: var(--text-xs); } .pillar svg { width: 28px; height: 28px; } }
.mobile-bar { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Center brand cards on About and solution pages, including wrapped rows. */
[data-brand-grid] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
[data-brand-grid] .brand-tile {
  flex: 0 0 calc((100% - 5 * var(--grid-gap)) / 6);
  min-width: 0;
}
@media (max-width: 1024px) {
  [data-brand-grid] .brand-tile { flex-basis: calc((100% - 2 * var(--grid-gap)) / 3); }
}
@media (max-width: 767px) {
  [data-brand-grid] .brand-tile { flex-basis: calc((100% - var(--grid-gap)) / 2); }
}

/* Preserve Hifly brand colour on light surfaces and contrast on dark ones. */
.brand-tile img[src$="hifly-blue.svg"] { filter: none; }
.section--dark img[src$="hifly-blue.svg"],
.page-hero img[src$="hifly-blue.svg"] { filter: brightness(0) invert(1); }

/* Balance the visible size of wide and padded logos on tyre cards. */
.product-card .card__media img.card__brand[src$="fortune.jpg"] {
  width: 112px;
  height: auto;
  max-width: calc(100% - 100px);
}
.product-card .card__media img.card__brand[src$="longmarch.jpg"],
.product-card .card__media img.card__brand[src$="roadlux.png"] {
  width: 104px;
  height: auto;
  max-width: calc(100% - 100px);
}

.product-card .card__media img.card__brand[src$="tercelo.png"] {
  width: 104px;
  height: auto;
  max-width: calc(100% - 100px);
}

/* Reserve a logo row so taller brand marks never cover the tyre. */
.product-card .card__media:has(.card__brand[src$="fortune.jpg"]),
.product-card .card__media:has(.card__brand[src$="tercelo.png"]) {
  grid-template-rows: 60px minmax(0, 1fr);
}
.product-card .card__media:has(.card__brand[src$="fortune.jpg"]) > img:not(.card__brand),
.product-card .card__media:has(.card__brand[src$="tercelo.png"]) > img:not(.card__brand) {
  grid-row: 2;
  height: 100%;
  min-height: 0;
}

/* Trim excess yellow above the Tercelo wordmark on all tyre cards. */
.product-card .card__media img.card__brand[src$="tercelo.png"] {
  clip-path: inset(24% 0 0 0);
  transform: translateY(-12px);
}

/* Larger Tercelo detail-page logo with the approved top trim. */
body[data-page="product"] .pdp__brand[src$="tercelo.png"] {
  width: 112px;
  height: auto;
  clip-path: inset(24% 0 0 0);
  margin-top: -12px;
}

/* A consistent logo area aligns branding and headings on every tyre detail. */
body[data-page="product"] [data-brand-logo] {
  height: 60px;
  display: flex;
  align-items: center;
  margin-bottom: var(--space-4);
}
body[data-page="product"] .pdp__brand {
  display: block;
  width: 112px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0;
}
body[data-page="product"] .pdp__brand[src$="fortune.jpg"] {
  width: 128px;
}

/* Align the visible Fortune mark on all tyre cards, excluding image padding. */
.product-card .card__media img.card__brand[src$="fortune.jpg"] {
  clip-path: inset(20% 4% 18% 4%);
  transform: translate(-5px, -12px);
}

/* Supplied print artwork is wider than the previous wordmark. */
.logo img { width: 220px; height: auto; }
.footer-logo img { width: 220px; height: auto; }
@media (max-width: 1180px) { .logo img { width: 190px; height: auto; } }
@media (max-width: 480px) { .logo img { width: 175px; height: auto; } }
