/* Strausz Gumi tire module. Colors come from the Strausz theme variables, with standalone fallbacks. */
.tire-hero,
.tire-rescue,
.tire-search-page,
.tire-product-overview,
.tire-product-section,
.tire-home-section,
.tire-box-info,
.tire-header-call {
  --tire-navy: var(--sg-navy, #111827);
  --tire-navy-soft: var(--sg-navy-soft, #1f2937);
  --tire-orange: var(--sg-orange, #f59e0b);
  --tire-line: var(--sg-line, #e5e7eb);
  --tire-muted: var(--sg-muted, #6b7280);
  --tire-surface: var(--sg-surface, #f9fafb);
  text-align: left;
}

/* ---------- buttons ---------- */
/* also outside the tire blocks (e.g. on the not found page), hence the fallbacks to the shop variables */
.tire-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.tire-button-primary { background: var(--tire-orange, var(--sg-orange, #f59e0b)); color: var(--sg-on-accent, #111827); }
.tire-button-dark { background: var(--sg-brand, #111827); color: var(--sg-on-brand, #fff); }
.tire-button-ghost { background: var(--sg-card, #fff); border-color: var(--tire-line, var(--sg-line, #e5e7eb)); color: var(--sg-text, #111827); }
.tire-button-block { width: 100%; text-transform: uppercase; letter-spacing: .04em; }
.tire-button:hover { filter: brightness(.95); }

/* ---------- selectors ---------- */
.tire-selectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tire-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--tire-muted); }
.tire-field select,
.tire-search-bar-options select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--tire-line);
  border-radius: 12px;
  background: var(--tire-surface);
  color: var(--sg-text, #111827);
  font-size: 15px;
}
.tire-field-brand { grid-column: 1 / -1; }

/* ---------- home hero + quick search ---------- */
.tire-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin: 0 0 32px;
  padding: 56px 48px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--sg-brand, #111827) 0%, var(--sg-brand-soft, #1f2937) 100%);
  color: var(--sg-on-brand, #fff);
}
.tire-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--tire-orange);
  color: var(--sg-on-accent, #111827);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tire-hero h1 { margin: 20px 0 16px; color: var(--sg-on-brand, #fff); font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; line-height: 1.05; }
.tire-hero-text p { max-width: 480px; color: var(--sg-on-brand-muted, #d1d5db); font-size: 17px; line-height: 1.6; }
.tire-quick-search { padding: 32px; border-radius: 22px; background: var(--sg-card, #fff); color: var(--sg-text, #111827); }
.tire-quick-search h2 { margin: 0; color: var(--sg-text, #111827); font-size: 22px; font-weight: 700; }
.tire-quick-search-subtitle { margin: 6px 0 20px; color: var(--tire-muted); font-size: 13px; }
.tire-quick-search .tire-button-block { margin-top: 20px; min-height: 54px; }

/* ---------- rescue call to action ---------- */
.tire-rescue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 40px;
  padding: 32px 40px;
  border-radius: 22px;
  background: var(--tire-orange);
  color: var(--sg-on-accent, #111827);
}
.tire-rescue h2 { margin: 0 0 6px; color: var(--sg-on-accent, #111827); font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
.tire-rescue p { margin: 0; font-size: 17px; }
.tire-rescue .tire-button { min-height: 52px; padding: 0 36px; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- home blocks ---------- */
.tire-home-section { margin: 0 0 40px; }
.tire-home-section > h2 { margin: 0 0 18px; color: var(--sg-text, #111827); font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.tire-home-paths,
.tire-home-grid { display: grid; gap: 20px; }
.tire-home-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tire-home-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tire-home-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tire-home-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--tire-line);
  border-radius: 20px;
  background: var(--sg-card, #fff);
  color: var(--sg-text, #111827);
  text-decoration: none;
}
.tire-home-card h3 { margin: 0; color: inherit; font-size: 19px; font-weight: 800; }
.tire-home-card p { margin: 0; color: var(--tire-muted); font-size: 14px; line-height: 1.55; }
.tire-home-card-link { margin-top: auto; color: inherit; font-size: 14px; font-weight: 700; }
.tire-home-card-link::after { content: " →"; }
a.tire-home-card:hover { border-color: var(--tire-orange); color: var(--sg-text, #111827); }
.tire-home-card-dark { border-color: var(--sg-brand, #111827); background: var(--sg-brand, #111827); color: var(--sg-on-brand, #fff); }
.tire-home-card-dark p { color: var(--sg-on-brand-muted, #d1d5db); }
a.tire-home-card-dark:hover { color: var(--tire-orange); }
.tire-home-card-muted { background: var(--tire-surface); }
.tire-home-season { min-height: 130px; border-top: 6px solid var(--tire-orange); }
.tire-home-season-winter { border-top-color: var(--sg-winter, #38bdf8); }
.tire-home-season-allseason { border-top-color: var(--sg-allseason, #16a34a); }
.tire-home-booking {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 40px;
  border-radius: 22px;
  background: var(--sg-brand, #111827);
  color: var(--sg-on-brand, #fff);
}
.tire-home-booking h2 { margin: 0 0 6px; color: var(--sg-on-brand, #fff); font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.tire-home-booking p { margin: 0; color: var(--sg-on-brand-muted, #d1d5db); font-size: 16px; }
.tire-home-booking .tire-button { min-height: 52px; padding: 0 32px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- product box (standard catalog lists) ---------- */
.tire-box-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.tire-box-size { color: var(--tire-muted); font-size: 13px; }

/* ---------- header call button ---------- */
.tire-header-call {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-left: 12px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--tire-orange);
  color: var(--sg-on-accent, #111827) !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- search page ---------- */
.tire-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--tire-line);
  border-radius: 20px;
  background: var(--sg-card, #fff);
}
.tire-search-bar .tire-selectors { flex: 1 1 420px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tire-search-bar .tire-button { min-height: 46px; text-transform: uppercase; letter-spacing: .04em; }

.tire-search-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.tire-filters { padding: 26px; border: 1px solid var(--tire-line); border-radius: 20px; background: var(--sg-card, #fff); }
.tire-filters h2 { margin: 0 0 18px; color: var(--sg-text, #111827); font-size: 22px; font-weight: 800; }
.tire-filters fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.tire-filters legend { margin-bottom: 10px; padding: 0; color: var(--sg-text, #111827); font-size: 15px; font-weight: 700; }
.tire-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--sg-text, #111827); font-size: 14px; cursor: pointer; }
.tire-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--tire-orange); }
.tire-check-inline { display: flex; flex-wrap: wrap; gap: 4px 18px; }

.tire-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.tire-results-head h2 { display: inline; margin: 0 12px 0 0; color: var(--sg-text, #111827); font-size: 28px; font-weight: 800; }
.tire-results-head span { color: var(--tire-muted); font-size: 14px; }
.tire-results-head select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--tire-line);
  border-radius: 999px;
  background: var(--sg-card, #fff);
  color: var(--sg-text, #111827);
  font-size: 14px;
}
.tire-results-head a { color: var(--sg-text, #111827); font-size: 14px; font-weight: 700; }

.tire-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.tire-pager a,
.tire-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--tire-line);
  border-radius: 999px;
  background: var(--sg-card, #fff);
  color: var(--sg-text, #111827);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.tire-pager .tire-pager-current { border-color: var(--sg-brand, #111827); background: var(--sg-brand, #111827); color: var(--sg-on-brand, #fff); }
.tire-pager .tire-pager-gap { border-color: transparent; background: transparent; }

/* ---------- product page ---------- */
.tire-product-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.tire-product-size { margin: 0; color: var(--tire-muted); font-size: 18px; }
.tire-product-section { margin: 0 0 32px; padding: 32px; border: 1px solid var(--tire-line); border-radius: 22px; background: var(--sg-card, #fff); }
.tire-product-section > h2 { margin: 0 0 20px; color: var(--sg-text, #111827); font-size: 28px; font-weight: 800; }
.tire-parameters { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 0; }
.tire-parameters > div { padding: 10px 16px; border: 1px solid var(--tire-line); border-radius: 12px; background: var(--tire-surface); }
.tire-parameters dt { color: var(--tire-muted); font-size: 12px; }
.tire-parameters dd { margin: 2px 0 0; color: var(--sg-text, #111827); font-size: 15px; font-weight: 600; }

.tire-list { display: flex; flex-direction: column; gap: 16px; }
.tire-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  grid-template-areas: "picture info buy" "picture actions actions";
  gap: 14px 24px;
  align-items: center;
  padding: 22px 28px;
  border: 1px solid var(--tire-line);
  border-radius: 20px;
  background: var(--sg-card, #fff);
}
.tire-row-picture { grid-area: picture; display: block; width: 96px; height: 96px; }
.tire-row-picture img { width: 100%; height: 100%; object-fit: contain; }
.tire-row-info { grid-area: info; }
.tire-row-info h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.tire-row-info h3 a { color: var(--sg-text, #111827); text-decoration: none; }
.tire-row-size { margin: 0 0 12px; color: var(--tire-muted); font-size: 14px; }
.tire-labels { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tire-labels li {
  min-width: 64px;
  padding: 7px 10px;
  border: 1px solid var(--tire-line);
  border-radius: 8px;
  background: var(--tire-surface);
  color: var(--sg-text, #111827);
  font-size: 13px;
  font-weight: 700;
}
.tire-row-buy { grid-area: buy; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tire-row-price { color: var(--sg-text, #111827); font-size: 22px; font-weight: 800; white-space: nowrap; }
.tire-row-price small { font-size: 14px; font-weight: 600; }
.tire-row-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--tire-line); }

/* ---------- stock badges ---------- */
.tire-stock { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tire-stock-plenty { background: var(--sg-ok-strong, #16a34a); color: var(--sg-on-brand, #fff); }
.tire-stock-limited { background: var(--sg-ok-bg, #dcfce7); color: var(--sg-ok-text, #166534); }
.tire-stock-onorder { background: var(--tire-orange); color: var(--sg-on-accent, #111827); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .tire-hero { grid-template-columns: 1fr; padding: 36px 24px; }
  .tire-search-layout { grid-template-columns: 1fr; }
  .tire-home-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tire-hero { margin-inline: -10px; border-radius: 0; }
  .tire-quick-search { padding: 22px; }
  .tire-rescue { padding: 24px; }
  .tire-home-paths,
  .tire-home-grid-3,
  .tire-home-grid-4 { grid-template-columns: 1fr; }
  .tire-home-booking { padding: 24px; }
  .tire-home-booking .tire-button { width: 100%; }
  .tire-search-bar .tire-selectors { grid-template-columns: 1fr; }
  .tire-rescue .tire-button { width: 100%; }
  .tire-row { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "picture info" "buy buy" "actions actions"; gap: 14px 16px; padding: 18px; }
  .tire-row-picture { width: 72px; height: 72px; }
  .tire-row-buy { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .tire-row-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .tire-row-actions .tire-button { width: 100%; }
  .tire-row-actions .shop-add { grid-column: 1 / -1; flex-wrap: nowrap; order: -1; }
  .tire-row-actions .shop-add .tire-button { flex: 1; width: auto; }
  .tire-search-bar .tire-button { width: 100%; }
  .tire-product-section { padding: 20px; }
}

/* ---------- product boxes in a grid (featured products), as the catalog boxes of the nopCommerce theme ---------- */
.tire-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tire-card {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  border: 1px solid var(--sg-line, #e5e7eb); border-radius: var(--sg-radius, 20px); background: var(--sg-card, #fff); color: var(--sg-text, #111827);
}
.tire-card-picture { display: block; width: 72%; aspect-ratio: 1; margin: 4px auto 8px; text-decoration: none; }
.tire-card-picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tire-card-picture .tire-row-placeholder { font-size: 13px; }
.tire-card h3 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.3; }
.tire-card h3 a { color: inherit; text-decoration: none; }
.tire-card h3 a:hover { color: var(--sg-orange-dark, #d97706); }
.tire-card .tire-box-info { margin: 0; }
.tire-card-price { margin-top: auto; font-size: 20px; font-weight: 800; }
.tire-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tire-card-actions .compare-form { margin: 0; }
.tire-filters .tire-text { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--tire-line); border-radius: 12px; background: var(--sg-card, #fff); color: var(--sg-text, #111827); font: inherit; font-size: 14px; }
