/* The facts of a tire at a glance, the same in both variants: season icons, the EU label as small badges and as a full label,
   the XL and run-flat marks, the price of a set and the icon tiles of the home page; the calls to action and size chips of the
   hero, the "where do I find the size?" guide and the call / booking bar of phones. This file is
   blazor/src/Strausz.Web/wwwroot/css/tire-info.css and, byte for byte, the nop plugin's Content/tire-info.css (a test compares them).
   Colors come from the theme variables, with fallbacks; the EU classes keep the colors of the label in every theme. */

.tire-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- line icons in the text color ---------- */
.tire-icon,
.tire-season-icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.2em;
}
.tire-season-summer .tire-season-icon,
.tire-season-badge-summer,
.tire-home-season-summer .tire-tile-icon { color: #b45309; }
.tire-season-winter .tire-season-icon,
.tire-season-badge-winter,
.tire-home-season-winter .tire-tile-icon { color: #0369a1; }
.tire-season-allseason .tire-season-icon,
.tire-season-badge-allseason,
.tire-home-season-allseason .tire-tile-icon { color: #15803d; }

/* ---------- product boxes: the season in the corner of the picture ---------- */
.tire-card,
.item-box .product-item { position: relative; }
.tire-season-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--tire-line, var(--sg-line, #e5e7eb));
  border-radius: 50%;
  background: var(--sg-card, #fff);
  box-shadow: 0 2px 6px rgba(17, 24, 39, .08);
}
.tire-season-badge .tire-season-icon { width: 22px; height: 22px; }

/* the size as on the sidewall, with the load and speed index */
.tire-size-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--sg-page, #f3f4f6);
  color: var(--sg-text, #111827);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}
.tire-card .tire-size-chip,
.tire-card .tire-stock { align-self: flex-start; margin: 0; }
.tire-row-season { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ---------- EU label values and marks as badges ---------- */
.tire-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.tire-card .tire-tags { margin: 0; }
.tire-eu-chip,
.tire-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px 0 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.tire-eu-chip { background: var(--eu, #e5e7eb); color: var(--eu-text, #111827); }
.tire-eu-chip.tire-eu-noise { border: 1px solid var(--tire-line, var(--sg-line, #e5e7eb)); background: var(--sg-card, #fff); color: var(--sg-text, #111827); }
.tire-flag { padding: 0 8px; border: 1px solid currentColor; background: var(--sg-card, #fff); color: var(--sg-text, #111827); letter-spacing: .03em; }

/* the colors of the EU label: fuel efficiency from green to red, wet grip in blues */
:is(.tire-eu-fuel.tire-eu-grade-a, .tire-eu-fuel .tire-eu-grade-a) { --eu: #00843d; --eu-text: #fff; }
:is(.tire-eu-fuel.tire-eu-grade-b, .tire-eu-fuel .tire-eu-grade-b) { --eu: #51b62f; --eu-text: #0b1f0b; }
:is(.tire-eu-fuel.tire-eu-grade-c, .tire-eu-fuel .tire-eu-grade-c) { --eu: #c3d600; --eu-text: #1a1d00; }
:is(.tire-eu-fuel.tire-eu-grade-d, .tire-eu-fuel .tire-eu-grade-d) { --eu: #ffd500; --eu-text: #1f1a00; }
:is(.tire-eu-fuel.tire-eu-grade-e, .tire-eu-fuel .tire-eu-grade-e) { --eu: #f6a500; --eu-text: #1f1400; }
:is(.tire-eu-fuel.tire-eu-grade-f, .tire-eu-fuel .tire-eu-grade-f) { --eu: #ef7d00; --eu-text: #1f0f00; }
:is(.tire-eu-fuel.tire-eu-grade-g, .tire-eu-fuel .tire-eu-grade-g) { --eu: #e30613; --eu-text: #fff; }
:is(.tire-eu-wet.tire-eu-grade-a, .tire-eu-wet .tire-eu-grade-a) { --eu: #003d7c; --eu-text: #fff; }
:is(.tire-eu-wet.tire-eu-grade-b, .tire-eu-wet .tire-eu-grade-b) { --eu: #0a5ba8; --eu-text: #fff; }
:is(.tire-eu-wet.tire-eu-grade-c, .tire-eu-wet .tire-eu-grade-c) { --eu: #5b9bd5; --eu-text: #0b1f33; }
:is(.tire-eu-wet.tire-eu-grade-d, .tire-eu-wet .tire-eu-grade-d) { --eu: #94c1e8; --eu-text: #0b1f33; }
:is(.tire-eu-wet.tire-eu-grade-e, .tire-eu-wet .tire-eu-grade-e) { --eu: #c6def3; --eu-text: #0b1f33; }
:is(.tire-eu-wet.tire-eu-grade-f, .tire-eu-wet .tire-eu-grade-f) { --eu: #dfecf8; --eu-text: #0b1f33; }
:is(.tire-eu-wet.tire-eu-grade-g, .tire-eu-wet .tire-eu-grade-g) { --eu: #eef5fb; --eu-text: #0b1f33; }

/* ---------- the EU label of the product page ---------- */
.tire-eu-label {
  max-width: 560px;
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--tire-line, var(--sg-line, #e5e7eb));
  border-radius: var(--sg-radius, 16px);
  background: var(--sg-card, #fff);
  color: var(--sg-text, #111827);
}
.tire-eu-label figcaption {
  margin: 0 0 12px;
  color: var(--tire-muted, var(--sg-muted, #6b7280));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tire-eu-label-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 22px; align-items: start; }
.tire-eu-scale-title { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; }
.tire-eu-scale ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.tire-eu-step { display: flex; align-items: center; gap: 6px; }
.tire-eu-bar {
  display: block;
  height: 18px;
  padding: 0 14px 0 7px;
  background: var(--eu);
  color: var(--eu-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
}
.tire-eu-step:nth-child(1) .tire-eu-bar { width: 34%; }
.tire-eu-step:nth-child(2) .tire-eu-bar { width: 44%; }
.tire-eu-step:nth-child(3) .tire-eu-bar { width: 54%; }
.tire-eu-step:nth-child(4) .tire-eu-bar { width: 64%; }
.tire-eu-step:nth-child(5) .tire-eu-bar { width: 74%; }
.tire-eu-step:nth-child(6) .tire-eu-bar { width: 84%; }
.tire-eu-step:nth-child(7) .tire-eu-bar { width: 94%; }
.tire-eu-marker {
  display: inline-block;
  height: 22px;
  padding: 0 8px 0 14px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 22px;
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%);
}
.tire-eu-noise-block { display: flex; align-items: center; gap: 10px; }
.tire-eu-noise-block .tire-icon { width: 34px; height: 34px; }
.tire-eu-noise-block p { margin: 0; color: var(--tire-muted, var(--sg-muted, #6b7280)); font-size: 13px; }
.tire-eu-noise-block strong { display: block; color: var(--sg-text, #111827); font-size: 24px; font-weight: 800; line-height: 1.1; }

/* ---------- the price of a set under the unit price ---------- */
.tire-set-price { display: block; color: var(--tire-muted, var(--sg-muted, #6b7280)); font-size: 13px; font-weight: 600; }
.tire-card-price small { color: var(--tire-muted, var(--sg-muted, #6b7280)); font-size: 13px; font-weight: 600; }

/* ---------- home page tiles with an icon ---------- */
.tire-tile-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--sg-page, #f3f4f6);
  color: var(--sg-text, #111827);
}
.tire-tile-icon svg { width: 30px; height: 30px; }

/* ---------- the hero: two calls to action, a photo when the theme gives one (--sg-hero-image), the popular sizes ---------- */
.tire-hero { position: relative; isolation: isolate; overflow: hidden; }
.tire-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sg-hero-image, none) center / cover no-repeat;
  opacity: var(--sg-hero-image-opacity, .35);
  pointer-events: none;
}
.tire-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tire-size-chips { margin-top: 16px; }
.tire-size-chips p { margin: 0 0 8px; color: var(--tire-muted, var(--sg-muted, #6b7280)); font-size: 13px; font-weight: 600; }
.tire-size-chips ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tire-size-chips a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--tire-line, var(--sg-line, #e5e7eb));
  border-radius: 999px;
  background: var(--sg-page, #f3f4f6);
  color: var(--sg-text, #111827);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.tire-size-chips a:hover,
.tire-size-chips a:focus-visible { border-color: var(--sg-orange, #f59e0b); }

/* ---------- where do I find the size: the marking of a sidewall with its parts ---------- */
.tire-size-guide { margin-top: 14px; color: var(--sg-text, #111827); font-size: 14px; }
.tire-size-guide summary { font-weight: 700; cursor: pointer; }
.tire-size-guide-body { margin-top: 12px; }
.tire-size-guide-body > p:first-child { margin: 0 0 10px; color: var(--tire-muted, var(--sg-muted, #6b7280)); font-size: 13px; }
.tire-sidewall {
  margin: 0 0 12px;
  padding: 14px 18px 12px;
  border-radius: 60px 60px 14px 14px / 30px 30px 14px 14px;
  background: radial-gradient(120% 90% at 50% 0%, #374151 0%, #111827 70%);
  color: #d1d5db;
  font-family: var(--sg-heading-font, inherit);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .18), 0 -1px 0 rgba(0, 0, 0, .6);
}
.tire-sidewall span { padding: 0 2px; border-radius: 4px; transition: background-color .15s, color .15s; }
.tire-size-parts { display: grid; gap: 2px; margin: 0 0 10px; }
.tire-size-parts div { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: baseline; padding: 4px 6px; border-radius: 6px; }
.tire-size-parts div:hover { background: var(--sg-page, #f3f4f6); }
.tire-size-parts dt { font-weight: 800; font-variant-numeric: tabular-nums; }
.tire-size-parts dd { margin: 0; color: var(--tire-muted, var(--sg-muted, #6b7280)); font-size: 13px; line-height: 1.45; }
.tire-size-guide-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 13px; }
.tire-size-guide-links a { color: var(--sg-text, #111827); font-weight: 700; }

/* lit: the part of the focused size select of the same form, or of the hovered explanation */
:is(form:has(select[name="w"]:focus), .tire-size-guide:has(.tire-size-parts .tire-part-w:hover)) .tire-sidewall .tire-part-w,
:is(form:has(select[name="h"]:focus), .tire-size-guide:has(.tire-size-parts .tire-part-h:hover)) .tire-sidewall .tire-part-h,
:is(form:has(select[name="r"]:focus), .tire-size-guide:has(.tire-size-parts .tire-part-r:hover)) .tire-sidewall .tire-part-r,
.tire-size-guide:has(.tire-size-parts .tire-part-c:hover) .tire-sidewall .tire-part-c,
.tire-size-guide:has(.tire-size-parts .tire-part-li:hover) .tire-sidewall .tire-part-li,
.tire-size-guide:has(.tire-size-parts .tire-part-si:hover) .tire-sidewall .tire-part-si { background: var(--sg-orange, #f59e0b); color: #111827; text-shadow: none; }
form:has(select[name="w"]:focus) .tire-size-parts .tire-part-w,
form:has(select[name="h"]:focus) .tire-size-parts .tire-part-h,
form:has(select[name="r"]:focus) .tire-size-parts .tire-part-r { background: var(--sg-page, #f3f4f6); box-shadow: inset 3px 0 0 var(--sg-orange, #f59e0b); }

/* ---------- the promotion ribbon at the top of the home page ---------- */
.tire-promo {
  margin: 0 0 18px;
  padding: 10px 18px;
  border-radius: var(--sg-radius, 12px);
  background: var(--sg-tread, none), var(--sg-brand, #111827);
  border-left: 6px solid var(--sg-orange, #f59e0b);
  color: var(--sg-on-brand, #fff);
  font-weight: 700;
  text-align: center;
}
.tire-promo p { margin: 0; }
.tire-promo a { color: inherit; text-decoration: underline; text-decoration-color: var(--sg-orange, #f59e0b); text-underline-offset: 3px; }
.tire-promo a::after { content: " →"; }

/* ---------- the trust bar under the hero: a few short claims with an icon ---------- */
.tire-trust { margin: 0 0 40px; }
.tire-trust ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tire-trust li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--tire-line, var(--sg-line, #e5e7eb));
  border-radius: var(--sg-radius, 14px);
  background: var(--sg-card, #fff);
}
.tire-trust-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--sg-page, #f3f4f6); color: var(--sg-orange, #f59e0b); }
.tire-trust-icon .tire-icon { width: 24px; height: 24px; }
.tire-trust-text { color: var(--tire-muted, var(--sg-muted, #6b7280)); font-size: 13px; line-height: 1.45; }
.tire-trust-text strong { display: block; color: var(--sg-text, #111827); font-size: 15px; }

/* ---------- the dark services block: service group tiles and how a visit goes ---------- */
.tire-services {
  margin: 0 0 40px;
  padding: 36px 40px;
  border-radius: 22px;
  background: var(--sg-tread, none), var(--sg-brand, #111827);
  color: var(--sg-on-brand, #fff);
}
.tire-services h2 { margin: 0 0 8px; color: var(--sg-on-brand, #fff); font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.tire-services-lead { margin: 0 0 24px; color: var(--sg-on-brand-muted, #d1d5db); }
.tire-service-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.tire-service-tiles a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--sg-radius, 14px);
  background: rgba(255, 255, 255, .06);
  color: var(--sg-on-brand, #fff);
  font-weight: 800;
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.tire-service-tiles a:hover,
.tire-service-tiles a:focus-visible { border-color: var(--sg-orange, #f59e0b); background: rgba(255, 255, 255, .1); }
.tire-services .tire-tile-icon { background: var(--sg-orange, #f59e0b); color: var(--sg-on-accent, #111827); }
.tire-services h3.tire-steps-title { margin: 0 0 14px; color: var(--sg-on-brand, #fff); font-size: 18px; font-weight: 800; }
.tire-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: tire-step;
}
.tire-steps li { position: relative; display: grid; gap: 4px; padding-left: 0; counter-increment: tire-step; }
.tire-steps li::before {
  content: counter(tire-step);
  position: absolute;
  top: -6px;
  left: 40px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sg-on-brand, #fff);
  color: var(--sg-brand, #111827);
  font-size: 13px;
  font-weight: 800;
}
.tire-steps strong { color: var(--sg-on-brand, #fff); font-size: 16px; }
.tire-steps span:last-child { color: var(--sg-on-brand-muted, #d1d5db); font-size: 14px; line-height: 1.5; }
.tire-services-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.tire-services .tire-button-ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: var(--sg-on-brand, #fff); }

/* ---------- the brand strip: the brands with the most tires as type, with their lowest price ---------- */
.tire-brands ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tire-brands a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--tire-line, var(--sg-line, #e5e7eb));
  border-radius: var(--sg-radius, 14px);
  background: var(--sg-card, #fff);
  color: var(--sg-text, #111827);
  text-align: center;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.tire-brands strong {
  font-family: var(--sg-heading-font, inherit);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tire-brands span { color: var(--tire-muted, var(--sg-muted, #6b7280)); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tire-brands a:hover,
.tire-brands a:focus-visible { border-color: var(--sg-orange, #f59e0b); box-shadow: 0 6px 18px rgba(17, 24, 39, .08); }

/* ---------- contact at the bottom of the home page: the facts and a map loaded on a click ---------- */
.tire-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  margin: 0 0 40px;
  padding: 28px;
  border: 1px solid var(--tire-line, var(--sg-line, #e5e7eb));
  border-radius: 22px;
  background: var(--sg-card, #fff);
}
.tire-contact:not(:has(.tire-map)) { grid-template-columns: 1fr; }
.tire-contact h2 { margin: 0 0 14px; color: var(--sg-text, #111827); font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.tire-contact dl { display: grid; gap: 12px; margin: 0; }
.tire-contact dt { color: var(--tire-muted, var(--sg-muted, #6b7280)); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tire-contact dd { margin: 2px 0 0; color: var(--sg-text, #111827); font-size: 16px; font-weight: 600; }
.tire-contact dd a { color: inherit; }
.tire-contact dd ul { margin: 0; padding: 0; list-style: none; }
.tire-map { display: flex; flex-direction: column; gap: 8px; }
.tire-map-load {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 240px;
  padding: 20px;
  border: 1px dashed var(--tire-line, var(--sg-line, #d1d5db));
  border-radius: var(--sg-radius, 14px);
  background: var(--sg-page, #f3f4f6);
  color: var(--sg-text, #111827);
  font: inherit;
  cursor: pointer;
}
.tire-map-load:hover,
.tire-map-load:focus-visible { border-color: var(--sg-orange, #f59e0b); }
.tire-map-load .tire-icon { width: 36px; height: 36px; color: var(--sg-orange, #f59e0b); }
.tire-map-load small { color: var(--tire-muted, var(--sg-muted, #6b7280)); font-size: 13px; }
.tire-map-frame { flex: 1; width: 100%; min-height: 300px; border: 0; border-radius: var(--sg-radius, 14px); }
.tire-map-link { margin: 0; font-size: 13px; }
.tire-map-link a { color: var(--sg-text, #111827); font-weight: 700; }

/* ---------- phones: call and booking fixed to the bottom ---------- */
.tire-mobile-bar { display: none; }
@media (max-width: 767.98px) {
  .tire-mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 800;
    display: flex;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--tire-line, var(--sg-line, #e5e7eb));
    background: var(--sg-card, #fff);
    box-shadow: 0 -6px 18px rgba(17, 24, 39, .08);
  }
  .tire-mobile-bar a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
  }
  .tire-mobile-bar .tire-icon { width: 20px; height: 20px; }
  .tire-mobile-bar-call { background: var(--sg-brand, #111827); color: var(--sg-on-brand, #fff); }
  .tire-mobile-bar-booking { background: var(--sg-orange, #f59e0b); color: var(--sg-on-accent, #111827); }
  body:has(.tire-mobile-bar) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body:has(.tire-mobile-bar) :is(.cookie-notice, .eu-cookie-bar-notification) { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tire-services { padding: 24px 18px; }
  .tire-service-tiles { grid-template-columns: 1fr 1fr; }
  .tire-contact { grid-template-columns: 1fr; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .tire-sidewall span { transition: none; }
  .tire-service-tiles a { transition: none; }
  .tire-brands a { transition: none; }
}

@media print {
  .tire-eu-chip,
  .tire-eu-bar,
  .tire-eu-marker { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tire-mobile-bar { display: none !important; }
  .tire-map { display: none; }
}


/* Home page photography and layout. The images are decorative; all links keep their text labels. */
:root {
  --sg-photo-strausz: url("editorial/strausz.jpg");
  --sg-photo-muhely: url("editorial/muhely.jpg");
  --sg-photo-rajtracs: url("editorial/rajtracs.jpg");
  --sg-photo-jelzes: url("editorial/jelzes.jpg");
  --sg-photo-grafit: url("editorial/grafit.jpg");
  --sg-photo-ejszaka: url("editorial/ejszaka.jpg");
  --sg-photo-tenger: url("editorial/tenger.jpg");
}

.tire-hero.tire-showcase {
  display: grid;
  grid-template: var(--sg-showcase-grid, "intro photo" "search photo" / minmax(0, 1fr) minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2.5vw, 36px);
  margin: 0 0 clamp(24px, 4vw, 48px);
  padding: clamp(16px, 3vw, 42px);
  border: 1px solid var(--sg-showcase-line, var(--sg-line, #e5e7eb));
  border-radius: var(--sg-showcase-radius, 24px);
  background: var(--sg-showcase-bg, var(--sg-surface, #f8fafc));
  color: var(--sg-showcase-text, var(--sg-text, #18181b));
}

.tire-hero.tire-showcase::before { content: none; }
.tire-showcase .tire-hero-text { grid-area: intro; min-width: 0; }
.tire-showcase .tire-hero-text .tire-pill { display: none; }
.tire-showcase .tire-hero-text h1 {
  margin: 0;
  color: inherit;
  font-family: var(--sg-showcase-heading, var(--sg-font, system-ui, sans-serif));
  font-size: clamp(30px, 4.5vw, 61px);
  font-weight: var(--sg-showcase-weight, 750);
  font-style: normal;
  letter-spacing: -.035em;
  line-height: 1.07;
  text-transform: none;
  text-wrap: balance;
}

.tire-showcase .tire-hero-text p {
  margin: 12px 0 0;
  color: inherit;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.55;
  opacity: .84;
}

.tire-showcase .tire-hero-actions { margin-top: 12px; }
.tire-showcase:has(.tire-quick-search) .tire-hero-actions .tire-button-primary { display: none; }
.tire-showcase .tire-hero-actions .tire-button-ghost {
  min-height: 44px;
  padding-inline: var(--sg-showcase-action-padding, 0);
  border: 0;
  background: var(--sg-showcase-action-bg, transparent);
  color: var(--sg-showcase-action-color, currentColor);
  font-style: normal;
  text-transform: none;
  text-decoration: var(--sg-showcase-action-decoration, underline);
  text-underline-offset: 4px;
}

.tire-showcase .tire-showcase-photo {
  grid-area: photo;
  align-self: stretch;
  min-height: var(--sg-showcase-photo-height, 280px);
  border-radius: var(--sg-showcase-photo-radius, 16px);
  background: #27272a var(--sg-showcase-image, var(--sg-photo-strausz)) var(--sg-showcase-photo-position, center) / cover no-repeat;
}

.tire-showcase .tire-quick-search {
  grid-area: search;
  min-width: 0;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--sg-line, #e5e7eb);
  border-radius: var(--sg-showcase-photo-radius, 16px);
  background: var(--sg-card, #fff);
  color: var(--sg-text, #18181b);
}

.tire-showcase .tire-quick-search h2 { color: inherit; }
.tire-showcase .tire-quick-search .tire-button-block { min-height: 46px; }
.tire-showcase .tire-size-chips a { padding-block: 9px; }
.tire-showcase .tire-size-guide summary { min-height: 24px; }

body:has(.tire-showcase .tire-quick-search) .tire-home-section:has(> .tire-home-paths) { display: none; }

.tire-home-grid .tire-home-card:is(.tire-home-season, .tire-home-vehicle) {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0 26px 24px;
  border-radius: var(--sg-showcase-photo-radius, 16px);
  background: var(--sg-card, #fff);
}

.tire-home-grid .tire-home-card:is(.tire-home-season, .tire-home-vehicle)::before {
  content: "";
  align-self: stretch;
  display: block;
  flex: none;
  aspect-ratio: var(--sg-showcase-category-ratio, 2.15);
  margin: 0 -26px;
  background: var(--sg-surface, #f1f5f9) var(--sg-category-photo) center / cover no-repeat;
}

.tire-home-grid .tire-home-card:is(.tire-home-season, .tire-home-vehicle):hover,
.tire-home-grid .tire-home-card:is(.tire-home-season, .tire-home-vehicle):focus-visible {
  border-color: var(--sg-orange, #f59e0b);
}

.tire-home-grid .tire-home-card h3 {
  font-style: normal;
  letter-spacing: -.015em;
  text-transform: none;
}

.tire-home-season-summer { --sg-category-photo: url("editorial/summer.jpg"); }
.tire-home-season-winter { --sg-category-photo: url("editorial/winter.jpg"); }
.tire-home-season-allseason { --sg-category-photo: url("editorial/all-season.jpg"); }
.tire-home-vehicle-passenger { --sg-category-photo: url("editorial/passenger.jpg"); }
.tire-home-vehicle-suv { --sg-category-photo: url("editorial/suv.jpg"); }
.tire-home-vehicle-lighttruck { --sg-category-photo: url("editorial/van.jpg"); }

.tire-services .tire-services-photo {
  min-height: 190px;
  aspect-ratio: 3.5;
  margin: 20px 0;
  border-radius: var(--sg-showcase-photo-radius, 16px);
  background: #27272a url("editorial/service.jpg") center 48% / cover no-repeat;
}

@media (max-width: 820px) {
  .tire-hero.tire-showcase { grid-template: "intro" "search" "photo" / minmax(0, 1fr); }
  .tire-showcase .tire-showcase-photo { min-height: 0; aspect-ratio: 2; }
}
