/* Pneuservis Tatra – shared stylesheet */

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/worksans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/worksans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: oklch(0.19 0.01 50);
  --ink-soft: oklch(0.3 0.012 50);
  --muted: oklch(0.45 0.015 50);
  --navy: oklch(0.20 0.014 255);
  --navy-light: oklch(0.28 0.016 255);
  --navy-lighter: oklch(0.30 0.02 255);
  --accent: oklch(0.64 0.19 41);
  --accent-dark: oklch(0.55 0.18 41);
  --accent-soft: oklch(0.93 0.03 41);
  --accent-badge: oklch(0.8 0.16 41);
  --border: oklch(0.9 0.006 50);
  --border-strong: oklch(0.85 0.006 50);
  --bg: oklch(0.98 0.004 60);
  --bg-soft: oklch(0.95 0.008 50);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Work Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
}

details summary {
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* Responsive split sections (image/text 2-col heroes) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 44px;
  align-items: center;
}
.split-rev {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
}
.split-equal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
@media (max-width: 820px) {
  .split, .split-rev, .split-equal {
    grid-template-columns: 1fr;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Buttons (color handled here so :hover can win over base) */
.btn {
  display: inline-block;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid oklch(0.4 0.01 60);
}
.btn-outline-light:hover {
  background: var(--navy-light);
}
.btn-outline-dark {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-outline-dark:hover {
  background: var(--bg-soft);
}
.btn-dark {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}
.btn-dark:hover {
  background: var(--navy-light);
}

.card-link {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card-link:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px oklch(0.5 0.02 50 / 0.08);
}
.card-link-dark {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  transition: background .15s ease;
}
.card-link-dark:hover {
  background: var(--navy-light);
}

.nav-link:hover {
  color: var(--accent);
}
.footer-link:hover {
  color: var(--accent-badge);
}

/* Shop filter buttons */
.filter-btn {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Cart page rows */
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid oklch(0.93 0.006 50);
  gap: 16px;
  flex-wrap: wrap;
}
.cart-row-info {
  flex: 1;
  min-width: 160px;
}
.cart-row-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.cart-row-price {
  font-size: 13px;
  color: var(--muted);
}
.cart-row-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 6px;
  font-size: 15px;
}
.cart-row-total {
  font-weight: 700;
  min-width: 70px;
  text-align: right;
  color: var(--ink);
}
.cart-row-remove {
  border: none;
  background: none;
  color: oklch(0.55 0.02 30);
  font-size: 13px;
  text-decoration: underline;
}

/* Toast */
.toast {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  max-width: calc(100vw - 32px);
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px oklch(0.1 0.01 50 / 0.3);
  z-index: 100;
}
.toast a {
  color: var(--accent-badge);
}

/* Cookie consent bar */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--navy);
  color: oklch(0.9 0.006 60);
  padding: 16px 24px;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}
.cookie-bar a {
  color: var(--accent-badge);
  text-decoration: underline;
}
.cookie-bar-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.cookie-bar-btn:hover {
  background: var(--accent-dark);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  header nav {
    justify-content: flex-start !important;
  }
}
