/* Strausz Gumi storefront: page frame. The tire blocks are styled by tires.css, shared with the nopCommerce theme. */
:root {
  --sg-navy: #111827;
  --sg-navy-soft: #1f2937;
  --sg-orange: #f59e0b;
  --sg-orange-dark: #d97706;
  --sg-line: #e5e7eb;
  --sg-muted: #6b7280;
  --sg-surface: #f9fafb;
  --sg-page: #f3f4f6;
  --sg-radius: 20px;
  /* role tokens: a storefront theme (wwwroot/themes) overrides these; the rules read them with these values as fallback */
  --sg-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sg-text: #111827;
  --sg-brand: #111827;
  --sg-brand-soft: #1f2937;
  --sg-on-brand: #fff;
  --sg-on-brand-muted: #d1d5db;
  --sg-on-brand-faint: #9ca3af;
  --sg-on-accent: #111827;
  --sg-card: #fff;
  --sg-hover: #f1f5f9;
  --sg-ok-bg: #dcfce7;
  --sg-ok-text: #166534;
  --sg-ok-strong: #16a34a;
  --sg-error-bg: #fee2e2;
  --sg-error-text: #991b1b;
  --sg-error-strong: #dc2626;
  --sg-error-message: #b91c1c;
  --sg-info-bg: #e0ecff;
  --sg-info-text: #1e3a8a;
  --sg-warning-bg: #fef3c7;
  --sg-selected-bg: #fffbeb;
  --sg-diff-bg: #fff7e6;
  --sg-diff-line: #f5d9a6;
  --sg-winter: #38bdf8;
  --sg-allseason: #16a34a;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sg-page);
  color: var(--sg-text, #111827);
  font-family: var(--sg-font);
  line-height: 1.5;
}

a { color: var(--sg-text, #111827); }
a:hover { color: var(--sg-orange-dark); }
h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.15; }
/* FocusOnNavigate moves the focus to the heading after every navigation for screen readers; the heading is not a control, so no ring */
h1:focus { outline: none; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; padding: 8px 14px; background: var(--sg-card, #fff); }

/* ---------- header: utility strip, logo row, main menu (as the nopCommerce Strausz theme) ---------- */
.site-header { background: var(--sg-brand, #111827); color: var(--sg-on-brand, #fff); }
.site-header-inner,
.site-footer-inner,
.site-main { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
/* the content column of the nopCommerce theme is 980 px wide; the header and the footer span 1200 px */
.site-main { max-width: 1012px; }
.site-header-upper .site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 46px; padding-block: 6px; }
.site-header-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 18px; font-size: 13px; }
.site-header-links a { color: var(--sg-on-brand-muted, #e5e7eb); text-decoration: none; }
.site-header-links a:hover { color: var(--sg-orange); }
.site-header-lower { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-block: 35px; }
.site-logo { flex: 0 1 auto; min-width: 0; line-height: 0; }
.site-logo img { display: block; width: 520px; max-width: 100%; height: auto; }
.site-search { display: flex; flex: 0 1 440px; min-width: 0; margin-left: auto; }
.site-search input {
  flex: 1; min-width: 0; height: 40px; padding: 0 16px;
  border: 1px solid var(--sg-brand-soft, #1f2937); border-right: 0; border-radius: 999px 0 0 999px;
  background: #fff; color: #111827; font: inherit; font-size: 14px;
}
.site-search button {
  height: 40px; padding: 0 20px; border: 0; border-radius: 0 999px 999px 0;
  background: var(--sg-orange); color: var(--sg-on-accent, #111827);
  font: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; cursor: pointer;
}
.site-search button:hover { background: var(--sg-orange-dark); }
.site-header-lower .tire-header-call { min-height: 44px; margin: 0; padding: 0 24px; font-size: 14px; }
.site-menu { border-top: 1px solid var(--sg-brand-soft, #1f2937); }
.site-menu .site-header-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; }
.site-menu a { display: block; padding: 30px 20px; color: var(--sg-on-brand-muted, #e5e7eb); font-size: 15px; font-weight: 700; text-decoration: none; }
.site-menu a:hover,
.site-menu a.active { color: var(--sg-orange); }

/* ---------- main ---------- */
.site-main { padding-block: 32px 56px; }
/* the shop layout fills the window: on a short page the footer stays at the bottom instead of below the content */
body:has(> .site-main) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(> .site-main) > .site-main { flex: 1 0 auto; width: 100%; }
.tire-search-page > h1 { margin: 0 0 20px; text-align: center; }
.breadcrumb { margin: 0 0 16px; color: var(--sg-muted); font-size: 14px; }
.breadcrumb a { color: var(--sg-muted); }
.no-result { padding: 32px; border: 1px dashed var(--sg-line); border-radius: 16px; background: var(--sg-card, #fff); color: var(--sg-muted); text-align: center; }
.site-message { max-width: 640px; margin: 40px auto; padding: 40px; border-radius: var(--sg-radius); background: var(--sg-card, #fff); text-align: center; }
.site-message h1 { margin-top: 0; }

/* ---------- picture placeholder until product pictures exist ---------- */
.tire-row-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sg-card, #fff) 0 34%, var(--sg-brand-soft, #1f2937) 35% 64%, var(--sg-brand, #111827) 65%);
  color: var(--sg-text, #111827);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
}
.tire-row-picture { text-decoration: none; }

/* ---------- product page ---------- */
.product-overview {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin: 0 0 32px;
  padding: 32px;
  border: 1px solid var(--sg-line);
  border-radius: 22px;
  background: var(--sg-card, #fff);
}
.product-gallery { display: grid; gap: 12px; max-width: 320px; }
.product-picture { display: block; aspect-ratio: 1; max-width: 320px; }
.product-picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-picture .tire-row-placeholder { font-size: 18px; }
.product-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.product-thumbnails a { display: block; width: 64px; height: 64px; border: 1px solid var(--sg-line); border-radius: 10px; background: var(--sg-card, #fff); }
.product-thumbnails a:hover, .product-thumbnails a:focus-visible { border-color: var(--sg-text, #111827); }
.product-thumbnails img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.product-main h1 { margin: 0 0 8px; }
.product-main .tire-labels { margin: 16px 0; }
.product-main .tire-row-price { margin: 12px 0 4px; font-size: 32px; }
.tire-product-sku { color: var(--sg-muted); font-size: 13px; }
.tire-product-section .tire-list { margin-bottom: 20px; }

/* ---------- footer: link columns and a copyright row (as the nopCommerce Strausz theme) ---------- */
.site-footer { background: var(--sg-brand, #111827); color: var(--sg-on-brand-muted, #d1d5db); font-size: 14px; }
.site-footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 32px; padding-block: 44px 36px; }
.site-footer h2 { margin: 0 0 14px; color: var(--sg-on-brand, #fff); font-size: 17px; font-weight: 700; }
.site-footer p { margin: 0 0 10px; }
.site-footer-links,
.site-footer-menu { display: flex; flex-direction: column; gap: 8px; }
.site-footer-links a,
.site-footer-menu a { color: var(--sg-on-brand-muted, #d1d5db); text-decoration: none; }
.site-footer-links a:hover,
.site-footer-menu a:hover { color: var(--sg-orange); }
.site-footer-phone { color: var(--sg-orange); font-size: 18px; font-weight: 800; text-decoration: none; }
.site-footer-phone:hover { color: var(--sg-orange-dark); }
.site-footer-lower { padding-block: 22px; border-top: 1px solid var(--sg-brand-soft, #1f2937); color: var(--sg-on-brand-faint, #9ca3af); font-size: 13px; text-align: right; }

/* ---------- cookie notice ---------- */
.cookie-notice {
  position: fixed; inset: auto 16px 16px 16px; z-index: 900; max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px;
  background: var(--sg-card, #fff); color: var(--sg-text, #111827); border-radius: 10px; box-shadow: 0 8px 28px rgba(15, 23, 42, .25); font-size: 14px;
}
.cookie-notice p { flex: 1 1 320px; margin: 0; }
.cookie-notice form { margin: 0; }

/* ---------- Blazor error bar ---------- */
#blazor-error-ui {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--sg-warning-bg, #fef3c7);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .2);
}
#blazor-error-ui .dismiss { position: absolute; right: 16px; cursor: pointer; }

@media (max-width: 760px) {
  .site-search { flex-basis: 100%; margin-left: 0; order: 3; }
  .site-header-lower { padding-block: 16px; }
  .site-menu a { padding: 10px 12px; font-size: 14px; }
  .site-footer-lower { text-align: left; }
  .product-overview { grid-template-columns: 1fr; padding: 20px; }
  .product-gallery, .product-picture { max-width: 200px; }
}
