:root {
  --sg-radius: 12px;
  --sg-page: #f3e7d2;
  --sg-surface: #ead9bb;
  --sg-card: #fff8ea;
  --sg-line: #b99a72;
  --sg-text: #2b1915;
  --sg-muted: #64503b;
  --sg-navy: #281910;
  --sg-navy-soft: #422516;
  --sg-brand: #210f0e;
  --sg-brand-soft: #421b19;
  --sg-on-brand: #fff3dc;
  --sg-on-brand-muted: #f5dab5;
  --sg-orange: #edac59;
  --sg-orange-dark: #8d4013;
  --sg-on-accent: #24120b;
  --sg-hover: #f5e1c6;
  --sg-selected-bg: #f5dfc2;
  --sg-heading-font: Georgia, serif;
  --sg-tread: none;
  --sg-showcase-grid: "photo photo" "intro search" / minmax(0, .85fr) minmax(0, 1.15fr);
  --sg-showcase-bg: linear-gradient(147deg, #130d0a 10%, #421316 100%);
  --sg-showcase-text: #fff2d6;
  --sg-showcase-line: #b78751;
  --sg-showcase-heading: Georgia, serif;
  --sg-showcase-photo-radius: 10px;
  --sg-showcase-photo-fit: contain;
  --sg-showcase-category-ratio: 1.55;
  --sg-showcase-action-color: #ffd498;
  --steam-iron: #24120e;
  --steam-enamel: #561f21;
  --steam-brass-edge: #936237;
  --steam-brass-light: #edbd79;
  --steam-rail: linear-gradient(180deg, #6e4026, #e8bb7e 38%, #a66a3b 60%, #472319);
  --steam-screw-head: radial-gradient(circle closest-side, #e7ba7c 0 54%, #f8d8a0 62%, #ae7644 73%, #653d25 82%, rgb(101 61 37 / .35) 91%, transparent 100%);
  --steam-screw-slot: linear-gradient(135deg, transparent 37%, #9a6037 42%, #4f2c1a 47% 54%, #ffe1a0 60%, transparent 66%);
  --steam-paper: linear-gradient(145deg, #fff8eb 15%, #faefd9 76%, #f2e1c4);
  --steam-casing-shadow: inset 0 0 0 2px #f7dfb4, inset 0 0 0 3px #d5ac72, 0 4px 12px rgb(61 30 16 / .13);
  --steam-button: linear-gradient(180deg, #f8d59c, #edac59 49%, #d98c3f 52%, #eeb56a);
}

.tire-hero.tire-showcase {
  box-shadow: inset 0 0 0 4px #2c1511, inset 0 0 0 5px #9d713f;
}
.tire-showcase .tire-showcase-photo {
  background: #070604 url("gozgumi-muhely.jpg") center / contain no-repeat;
  min-height: 0;
  aspect-ratio: 2.55;
}
.tire-hero.tire-showcase .tire-hero-text .steam-hero-line {
  display: block;
  max-width: 39ch;
  color: #ffd498;
  font-family: var(--sg-heading-font);
  font-size: clamp(16px, 2vw, 22px);
  font-style: italic;
  opacity: 1;
}
.tire-showcase .tire-quick-search { border: 2px solid #bd8f55; }
.tire-showcase .tire-quick-search h2,
.tire-home-section > h2,
.tire-services h2 { font-family: var(--sg-heading-font); }
.tire-services,
.tire-home-booking {
  border: 1px solid #ad7947;
  background: linear-gradient(125deg, #23130e, #411516);
}
.site-footer::after {
  content: "";
  display: block;
  width: min(94%, 680px);
  margin-inline: auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.site-footer { isolation: isolate; }
.site-footer::after {
  aspect-ratio: 3;
  background-image: url("gozgumi-kerek.jpg");
  mix-blend-mode: screen;
}
/* Engraved picture panels for the Gőzgumi storefront. */
.tire-home-season-summer { --steam-art: url("gozgumi-summer.jpg"); }
.tire-home-season-winter { --steam-art: url("gozgumi-winter.jpg"); }
.tire-home-season-allseason { --steam-art: url("gozgumi-allseason.jpg"); }
.tire-home-vehicle-passenger { --steam-art: url("gozgumi-passenger.jpg"); }
.tire-home-vehicle-suv { --steam-art: url("gozgumi-suv.jpg"); }
.tire-home-vehicle-lighttruck { --steam-art: url("gozgumi-van.jpg"); }

.tire-home-grid .tire-home-card:is(.tire-home-season, .tire-home-vehicle) {
  border-color: #b88b57;
  background: #fff3da;
  box-shadow: 0 4px 14px rgb(65 21 22 / .12);
}
.tire-home-grid .tire-home-card:is(.tire-home-season, .tire-home-vehicle)::before {
  background: #110b08 var(--steam-art) center / cover no-repeat;
  border-bottom: 2px solid #b88b57;
}
.tire-home-grid .tire-home-card:is(.tire-home-season, .tire-home-vehicle) h3 {
  font-family: var(--sg-heading-font);
}

section.tire-services .tire-services-photo {
  background: #110b08 url("gozgumi-szerviz.jpg") center 42% / cover no-repeat;
  border: 1px solid #a3693a;
}

.tire-home-booking {
  background: linear-gradient(90deg, #281611 12%, rgb(40 22 17 / .89) 51%, rgb(40 22 17 / .58) 100%),
    #281611 url("gozgumi-idopont.jpg") right center / auto 160% no-repeat;
}

/* The shop floor: an etched grid beneath the ivory work surfaces. */
body:has(> .site-main) {
  background-color: var(--sg-page);
  background-image:
    radial-gradient(ellipse at 50% 0, rgb(255 249 234 / .8), transparent 68%),
    linear-gradient(rgb(124 80 46 / .09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(124 80 46 / .09) 1px, transparent 1px);
  background-size: 100% 1050px, 32px 32px, 32px 32px;
  background-repeat: no-repeat, repeat, repeat;
}

.site-header,
.site-footer {
  background-color: var(--steam-iron);
  background-image:
    radial-gradient(ellipse at 50% 0, rgb(121 40 38 / .6), transparent 75%),
    repeating-linear-gradient(110deg, transparent 0 3px, rgb(255 216 163 / .027) 3px 4px);
}
.site-header { isolation: isolate; }
.site-header-lower { gap: 8px 24px; padding-block: 4px 8px; }
.site-logo-steam {
  position: relative;
  display: grid;
  place-items: center;
  width: min(335px, 100%);
  aspect-ratio: 2.6;
  color: #ffdf9f;
  font: 700 clamp(16px, 2.2vw, 23px) / 1.12 var(--sg-heading-font);
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 2px #1c0906;
}
.site-logo-steam::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("gozgumi-tabla.jpg") center / contain no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}
.site-logo-steam span {
  position: relative;
  width: 66%;
  overflow-wrap: anywhere;
}
.site-logo-steam:hover,
.site-logo-steam:focus-visible { color: #fff4d2; }

@media (max-width: 640px) {
  .site-header-lower { justify-content: center; padding-block: 0 10px; }
  .site-logo-steam { width: min(246px, 100%); font-size: 17px; }
  .site-header-lower .site-search { margin-inline: auto; }
}

.site-main :is(.catalog-rims-heading, .catalog-accessories-heading) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(108px, 42%, 320px);
  align-items: center;
  gap: 12px;
  padding: clamp(8px, 2vw, 18px);
  border: 1px solid var(--steam-brass-edge);
  border-radius: var(--sg-radius);
  background: linear-gradient(120deg, var(--steam-iron), var(--steam-enamel));
  color: var(--sg-on-brand);
  box-shadow: inset 0 0 0 3px rgb(224 165 90 / .45);
}
.site-main :is(.catalog-rims-heading, .catalog-accessories-heading)::after {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--steam-brass-edge);
  border-radius: 10px;
  background: #281611 var(--steam-catalog-art) center / cover no-repeat;
}
.catalog-rims-heading { --steam-catalog-art: url("gozgumi-felnik.jpg"); }
.catalog-accessories-heading { --steam-catalog-art: url("gozgumi-tartozekok.jpg"); }

.site-main :is(.catalog-empty, .cart-empty)::before {
  content: "";
  display: block;
  height: clamp(110px, 24vw, 175px);
  margin: 0 auto 12px;
  background: var(--steam-empty-art) center / contain no-repeat;
}
.catalog-empty { --steam-empty-art: url("gozgumi-nincs-talalat.png"); }
.cart-empty { --steam-empty-art: url("gozgumi-ures-kosar.png"); }
.catalog-empty .tire-button { margin-top: 12px; }

.site-menu,
.site-footer { border-top: 4px solid transparent; border-image: var(--steam-rail) 1; }
.site-menu a.active,
.site-menu a[aria-current="page"] { box-shadow: inset 0 -2px var(--steam-brass-light); }
.site-menu .site-submenu {
  border: 1px solid var(--steam-brass-edge);
  background: var(--steam-paper);
  box-shadow: var(--steam-casing-shadow), 0 12px 24px rgb(34 17 12 / .24);
}

@media (min-width: 1100px) {
  .site-menu :is(.site-header-inner, .site-menu-group) > a { padding-inline: 12px; }
  .site-menu-group:nth-last-child(-n + 3) .site-submenu {
    left: auto;
    right: 0;
    transform: translateY(6px);
  }
  .site-menu-group:nth-last-child(-n + 3):is(:hover, :focus-within) .site-submenu { transform: none; }
}

.site-main :is(h1, h2, .shop-card legend, .tire-filters > summary) {
  font-family: var(--sg-heading-font);
}

/* Recessed plate edges and slotted screws. Backgrounds keep the controls and focus rings clear. */
.site-main :is(.tire-search-bar, .tire-filters, .tire-quick-search, .tire-card, .tire-row, .product-overview, .shop-card, .site-message, .no-result) {
  min-width: 0;
  border-color: var(--steam-brass-edge);
  border-radius: var(--sg-radius);
  background:
    var(--steam-screw-slot) top 11px left 11px / 6px 6px no-repeat,
    var(--steam-screw-slot) top 11px right 11px / 6px 6px no-repeat,
    var(--steam-screw-slot) bottom 11px left 11px / 6px 6px no-repeat,
    var(--steam-screw-slot) bottom 11px right 11px / 6px 6px no-repeat,
    var(--steam-screw-head) top 8px left 8px / 12px 12px no-repeat,
    var(--steam-screw-head) top 8px right 8px / 12px 12px no-repeat,
    var(--steam-screw-head) bottom 8px left 8px / 12px 12px no-repeat,
    var(--steam-screw-head) bottom 8px right 8px / 12px 12px no-repeat,
    var(--steam-paper);
  box-shadow: var(--steam-casing-shadow);
}
.site-main :is(.tire-card, .tire-row):focus-within {
  border-color: #642623;
  box-shadow: var(--steam-casing-shadow), 0 0 0 2px #642623;
}
.site-main .tire-results-head {
  padding: 10px 16px;
  border-block: 4px solid transparent;
  border-image: var(--steam-rail) 1;
  background: linear-gradient(120deg, var(--steam-iron), var(--steam-enamel));
}
.site-main .tire-results-head :is(h2, a) { color: var(--sg-on-brand); }
.site-main .tire-results-head span { color: var(--sg-on-brand-muted); }
.site-main .tire-results-head .tire-button-ghost { border-color: #cf9e67; }
.site-main .tire-results-head .tire-button-ghost:hover {
  color: var(--steam-iron);
  background: var(--steam-brass-light);
}

/* Instrument dials show through the transparent wheel illustrations. */
.site-main :is(.tire-row-picture, .tire-card-picture, .product-picture, .comparison-picture):has(.tire-illustration) {
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px #b58b55;
  background:
    radial-gradient(circle closest-side, #f6e8ce 0 80%, transparent 81%),
    radial-gradient(circle closest-side, transparent 89%, #eddbbd 90%),
    repeating-conic-gradient(from 6deg, #b59263 0 1deg, #efddbf 1deg 12deg);
}
.site-main .tire-illustration-label {
  border: 1px solid #c29965;
  background: #fff3dc;
  color: #54301d;
}
.site-main .tire-size-chip {
  border: 1px solid #c39b65;
  background: #f3e0ba;
  box-shadow: inset 0 1px rgb(255 255 255 / .65);
}
.site-main .tire-card .tire-season-badge {
  border-color: var(--steam-brass-edge);
  box-shadow: inset 0 0 0 2px #e6c997, 0 2px 3px rgb(46 22 15 / .2);
}
.site-main .tire-product-section:has(.tire-parameters) {
  border-color: var(--steam-brass-edge);
  box-shadow: var(--steam-casing-shadow);
}
.site-main .tire-parameters > div {
  border-color: #b48651;
  border-radius: 6px;
  background: linear-gradient(168deg, #f8e6bf, #f0d7a7 55%, #f8e6bf);
  box-shadow: inset 0 0 0 2px rgb(255 246 217 / .65);
}
.site-main .tire-parameters dt { color: #633d26; }
.site-main .tire-parameters dd {
  font-family: var(--sg-heading-font);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.site-main .comparison-table thead th {
  background: var(--steam-enamel);
  border-block: 2px solid #ba8c58;
  color: var(--sg-on-brand);
}
.site-main .comparison-table thead :is(.comparison-name, .shop-link-button) { color: var(--sg-on-brand); }
.site-main .comparison-table thead :is(.comparison-name, .shop-link-button):hover { color: var(--steam-brass-light); }
.site-main .comparison-table .comparison-differs > th { box-shadow: inset 3px 0 #9c5230; }
.site-main .comparison-legend::before {
  box-shadow: inset 3px 0 #9c5230;
}

.site-search button,
.site-main .tire-button-primary,
.tire-mobile-bar-booking {
  border: 1px solid #a3693a;
  background: var(--steam-button);
  color: var(--steam-iron);
  box-shadow: inset 0 1px rgb(255 242 203 / .75), inset 0 -2px rgb(92 45 21 / .23);
}
.site-search button:hover,
.site-main .tire-button-primary:not(:disabled):hover,
.tire-mobile-bar-booking:hover {
  background: linear-gradient(#ffe3b2, #f3b965);
  color: var(--steam-iron);
}
.site-main .tire-pager .tire-pager-current,
.site-main .fitting-calendar-day.fitting-calendar-day-chosen,
.site-main .fitting-calendar-slot:has(input:checked) {
  border-color: var(--steam-brass-edge);
  background: var(--steam-enamel);
  color: var(--sg-on-brand);
  box-shadow: inset 0 0 0 2px #b2834f;
}
.site-main .fitting-calendar-head {
  padding: 9px 12px;
  border-block: 2px solid #bf905c;
  background: var(--steam-enamel);
  color: var(--sg-on-brand);
}
.site-main .fitting-calendar-head span { color: var(--sg-on-brand-muted); }
.site-main .shop-summary > dl {
  padding: 9px 10px;
  border-block: 1px solid #c69b66;
  background: #f1dfbd;
}
.site-main .fitting-calendar-choice {
  padding: 12px 16px;
  border: 1px dashed #956339;
  border-inline: 5px double #956339;
  border-radius: 4px;
  background: #f8e5bb;
  color: var(--steam-iron);
  font: 700 17px / 1.4 var(--sg-heading-font);
  font-variant-numeric: tabular-nums;
}
.site-main .shop-summary .checkout-preview {
  margin-block: 3px;
  border: 1px solid var(--steam-brass-edge);
  border-radius: 6px;
  background: var(--steam-enamel);
  color: var(--sg-on-brand);
  align-items: baseline;
}
.site-main .shop-summary .checkout-preview output {
  font: 700 23px / 1.2 var(--sg-heading-font);
  font-variant-numeric: tabular-nums;
}
.site-main .shop-summary .checkout-preview p {
  padding-top: 6px;
  border-top: 1px dashed #ca9d69;
  color: var(--sg-on-brand-muted);
}
.site-main .content-cards a {
  border-color: #c69b66;
  background: var(--steam-paper);
  box-shadow: inset 0 0 0 2px #f7dfb4;
}

@media (forced-colors: active) {
  .site-main .tire-results-head,
  .site-main .fitting-calendar-head { border-image: none; border-color: CanvasText; }
  .site-main .tire-pager .tire-pager-current,
  .site-main .fitting-calendar-day.fitting-calendar-day-chosen,
  .site-main .fitting-calendar-slot:has(input:checked) { border: 2px solid Highlight; }
}
