/* ============================================================
   TRACK DAY SHOP — Design system
   Light, racing-inspired e-commerce CSS.
   Source: design/project/styles/main.css + index.html inline CSS,
   merged + extended with classes the existing PHP views need.
   ============================================================ */

:root {
  /* Surfaces */
  --bg-0: #ffffff;
  --bg-1: #fafaf7;
  --bg-2: #ffffff;
  --bg-3: #f3f3ee;
  --bg-4: #e9e9e3;
  --bg-dark: #0e0e10;
  --bg-dark-2: #1a1a1d;

  --line: #e9e9e3;
  --line-strong: #d8d8d0;

  /* Text */
  --fg-0: #0e0e10;
  --fg-1: #2a2a2e;
  --fg-2: #6b6b72;
  --fg-3: #9a9aa1;
  --fg-on-dark: #ffffff;
  --fg-on-dark-2: #c4c4c8;

  /* Brand */
  --red: #e30613;
  --red-hot: #ff1a2c;
  --red-deep: #b30410;
  --red-tint: rgba(227, 6, 19, 0.10);
  --red-glow: rgba(227, 6, 19, 0.25);

  --green: #0e9f5d;
  --amber: #d99000;
  --info: #2563eb;
  --danger: #dc2626;
  --success: #059669;
  --warning: #d99000;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(14,14,16,.06);
  --shadow-md: 0 6px 24px rgba(14,14,16,.08);
  --shadow-lg: 0 24px 60px rgba(14,14,16,.12);
  --shadow-red: 0 12px 36px rgba(227, 6, 19, 0.22);

  /* Type */
  --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Compatibility shims for older code paths still alive in admin / shared partials
     — they speak in --primary / --dark variable names. Remap to the TDS palette so
     legacy templates inherit the new look without per-file edits. */
  --primary: var(--red);
  --primary-dark: var(--red-deep);
  --primary-light: var(--red-hot);
  --primary-rgb: 227,6,19;
  --dark: var(--bg-1);
  --dark-1: var(--bg-1);
  --dark-2: var(--bg-2);
  --dark-3: var(--bg-3);
  --gray: var(--fg-2);
  --gray-light: var(--fg-3);
  --white: var(--fg-0);
  --accent: var(--red);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Full-bleed sekce (100vw + záporný margin-left) by jinak vyrobily horizontal
     scroll když má prohlížeč svislý scrollbar (100vw > available content width). */
  overflow-x: hidden;
  max-width: 100%;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }

button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--red); color: white; }

/* ============ Layout ============ */
.container { max-width: 1400px; margin: 0 auto; padding: 0 var(--s-5); }
.container-wide { max-width: 1600px; margin: 0 auto; padding: 0 var(--s-5); }

/* ============ Typography ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--red);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--fg-0);
}
.h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--fg-0);
  font-style: italic;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--fg-0);
  font-style: italic;
}
.h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--fg-0);
}
.text-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.site-header a { color: #fff; }

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.header-top a { color: rgba(255,255,255,0.7); }
.header-top a:hover { color: #fff; }
.header-top .left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.header-top .left .red-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; box-shadow: 0 0 8px var(--red-glow); display: inline-block; }
.header-top .right { display: flex; gap: 18px; flex-wrap: wrap; }

.header-main {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  padding: 16px 0;
}
.header-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 4px 0; }
.header-logo img { height: 34px; width: auto; display: block; }
.header-logo-fallback { font-family: var(--font-display); font-style: italic; font-size: 28px; color: #fff; letter-spacing: 0.02em; text-transform: uppercase; }
.header-logo-fallback em { color: var(--red); font-style: italic; }

.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 18px;
  gap: 12px;
  transition: border-color .15s, background .15s;
}
.header-search:focus-within {
  border-color: var(--red);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 4px var(--red-tint);
}
.header-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: #fff;
  min-width: 0;
}
.header-search input::placeholder { color: rgba(255,255,255,0.5); }
.header-search .search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: white;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 13px;
  transition: background .15s;
}
.header-search .search-btn:hover { background: var(--red-deep); }

.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .15s;
  color: #fff;
}
.icon-btn:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  background: var(--red);
  color: white;
  border-radius: var(--r-pill);
  height: 44px;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
}
.cart-btn:hover { background: var(--red-deep); }
.cart-btn .cart-count {
  background: white;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  min-width: 20px;
  text-align: center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 12px 0;
  flex-wrap: wrap;
}
.nav-link {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #fff; background: rgba(255,255,255,0.14); }
.nav-link.featured { background: var(--red); color: white; }
.nav-link.featured:hover { background: var(--red-hot); color: white; }

.mobile-menu-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  align-items: center;
  justify-content: center;
  color: #fff;
}
@media (max-width: 900px) {
  .mobile-menu-btn { display: inline-flex; }
  .header-search { display: none; }
  .main-nav { display: none; }
  .header-actions .cart-btn span:not(.cart-count) { display: none; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: all .15s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-hot); transform: translateY(-1px); box-shadow: var(--shadow-red); color: white; }
.btn-dark { background: var(--bg-dark); color: white; }
.btn-dark:hover { background: var(--bg-dark-2); transform: translateY(-1px); box-shadow: var(--shadow-md); color: white; }
.btn-secondary { background: var(--bg-2); color: var(--fg-0); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg-3); border-color: var(--fg-3); }
.btn-ghost { background: transparent; color: var(--fg-0); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-3); border-color: var(--fg-2); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; color: white; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ============ Cards ============ */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-body { padding: var(--s-5); }

/* ============ Product card (matches partials/product-card.php structure) ============ */
.product-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all .2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card .pc-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.product-card .image-wrap {
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}
.product-card .image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .image-wrap img { transform: scale(1.04); }
.product-card .no-image {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-3);
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-4) 100%);
}
.product-card .badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
  z-index: 2;
  max-width: calc(100% - 60px);
}
.product-card .badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: white;
  background: var(--fg-2);
}
.product-card .badge-new { background: var(--red); color: white; }
.product-card .badge-sale, .product-card .sale-badge { background: #f5b400; color: #1a1a1a; }
.product-card .badge-tip { background: var(--green); color: white; }
.product-card .badge-sold { background: var(--fg-2); color: white; }
.product-card .flash-badge { background: var(--red); color: white; }
.product-card .flash-cd { font-family: var(--font-mono); margin-left: 4px; opacity: 0.8; }
.product-card .pc-cat-chip {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--fg-1);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  z-index: 2;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card .info { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-0);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.product-card .pc-footer-row {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.product-card .stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-card .stock::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.product-card .stock.stock-in { color: var(--green); }
.product-card .stock.stock-out { color: var(--fg-3); }
.product-card .stock.stock-order { color: var(--amber); }
.product-card .pc-price-col { display: flex; flex-direction: column; align-items: flex-end; }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.product-card .price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--fg-0);
  line-height: 1;
}
.product-card .old-price {
  font-size: 12px;
  color: var(--fg-3);
  text-decoration: line-through;
}
.product-card .price-prefix {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  color: var(--fg-2);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-card .price-novat { font-size: 11px; color: var(--fg-3); margin-top: 2px; font-family: var(--font-mono); }
.product-card .pc-quick-add { padding: 0 16px 16px; }
.product-card .pc-qa-soldout {
  text-align: center;
  padding: 10px;
  background: var(--bg-3);
  color: var(--fg-3);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-card .pc-qa-detail {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--bg-3);
  color: var(--fg-0);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all .15s;
}
.product-card .pc-qa-detail:hover { background: var(--bg-dark); color: white; }
.product-card .pc-qa-form { display: flex; gap: 6px; align-items: center; }
.product-card .pc-qa-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--bg-2);
}
.product-card .pc-qa-qtybtn {
  width: 30px; height: 36px;
  background: transparent;
  color: var(--fg-1);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.product-card .pc-qa-qtybtn:hover { background: var(--bg-3); }
.product-card .pc-qa-qtyval {
  width: 36px;
  height: 36px;
  border: none;
  text-align: center;
  background: transparent;
  font-weight: 600;
  outline: none;
}
.product-card .pc-qa-add {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  height: 36px;
  background: var(--red);
  color: white;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background .15s;
  cursor: pointer;
}
.product-card .pc-qa-add:hover { background: var(--red-deep); }

/* ============ Section badges (free-floating) ============ */
.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.badge-new { background: var(--red); color: white; }
.badge-sale { background: #f5b400; color: #1a1a1a; }
.badge-gift { background: var(--green); color: white; }
.badge-stock { background: var(--bg-3); color: var(--fg-1); border: 1px solid var(--line); }

/* ============ Grids ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-4);
}
.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 1100px) { .product-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .product-grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-dark);
  color: var(--fg-on-dark-2);
  margin-top: var(--s-9);
}
/* ============ FOOTER — auto-collapsing grid ============
   Default je `auto-fit` minmax(220px, 1fr) — sloupce se zalomí podle SKUTEČNÉ
   šířky kontejneru, ne viewportu. Žádné @media queries, žádný viewport meta
   trable, žádné PHP inline-style přebíjení. Když je containeru < 880px (4×220),
   automaticky to dropne na 3, pak 2, pak 1 sloupec.
   Desktop nad 900px respektuje `--footer-cols` z admina (např. "2fr 1fr 1fr 1fr"). */
.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--s-6);
  padding: var(--s-8) 0 var(--s-7);
}
@media (min-width: 900px) {
  .footer-main { grid-template-columns: var(--footer-cols, 1.4fr 1fr 1fr 1fr 1fr); }
}
.site-footer { width: 100%; overflow-x: hidden; }
.footer-col { min-width: 0; }
.footer-col a, .footer-col p, .footer-col li { overflow-wrap: anywhere; word-break: break-word; }
/* PHP inlinuje style="height:100px;width:auto;" na logo — !important to
   trumfne aby se logo dalo na úzkých sloupcích zmenšit. */
.footer-col img { max-width: 100% !important; height: auto !important; }
.footer-col table { width: 100% !important; max-width: 100%; display: block; overflow-x: auto; }
.footer-col iframe, .footer-col video { max-width: 100% !important; }
@media (max-width: 560px) {
  .footer-main { gap: var(--s-5); padding: var(--s-7) 0 var(--s-5); }
  .footer-col img { max-height: 60px; }
}
.footer-bottom { flex-wrap: wrap; }
.footer-bottom > * { min-width: 0; max-width: 100%; }
.footer-bottom span, .footer-bottom a { overflow-wrap: anywhere; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg-on-dark);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-col a { color: var(--fg-on-dark-2); font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: white; }
.footer-col p { color: var(--fg-on-dark-2); font-size: 13px; line-height: 1.6; max-width: 280px; }

.footer-brand img { height: 32px; margin-bottom: 16px; }

.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  color: white;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--s-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-on-dark-2);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--fg-on-dark-2); }
.footer-bottom a:hover { color: white; }

/* ============ Section ============ */
.section { padding: var(--s-8) 0; }
.section-tight { padding: var(--s-7) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--s-5);
  gap: var(--s-5);
  flex-wrap: wrap;
}
.section-head .section-head-text { max-width: 600px; }
.section-head .h2 { margin-top: 8px; }

/* ============ USP strip ============ */
.usp-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 800px) { .usp-strip { grid-template-columns: repeat(2, 1fr); } }
.usp-item {
  background: var(--bg-2);
  padding: 22px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.usp-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.usp-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--fg-0); }
.usp-text span { font-size: 12px; color: var(--fg-2); }

/* ============ Breadcrumbs ============ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--fg-2); transition: color .15s; }
.breadcrumbs a:hover { color: var(--fg-0); }
.breadcrumbs .sep { color: var(--line-strong); }
.breadcrumbs .current { color: var(--fg-0); }

/* ============ Image placeholder ============ */
.img-ph {
  position: relative;
  background: linear-gradient(135deg, #f3f3ee 0%, #e9e9e3 100%);
  overflow: hidden;
}
.img-ph::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 18px, rgba(14,14,16,0.025) 18px 36px);
}
.img-ph::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}
.img-ph.with-accent::before {
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(14,14,16,0.025) 18px 36px),
    linear-gradient(135deg, transparent 60%, var(--red-tint) 60.2%, var(--red-tint) 62%, transparent 62.2%);
}
.img-ph.dark { background: linear-gradient(135deg, #1a1a1d 0%, #0e0e10 100%); }
.img-ph.dark::before { background: repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,0.025) 18px 36px); }
.img-ph.dark::after { color: rgba(255,255,255,0.5); }

/* ============ Forms ============ */
.form-group { margin-bottom: var(--s-4); }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--fg-1); margin-bottom: 6px; letter-spacing: 0.02em; text-transform: uppercase; font-family: var(--font-mono); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--fg-0);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-tint);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-help { font-size: 12px; color: var(--fg-3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; font-weight: 600; }
.form-row { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

/* ============ Mobile menu drawer ============ */
.mm-overlay {
  position: fixed; inset: 0;
  background: rgba(14,14,16,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.mm-overlay.open { opacity: 1; pointer-events: auto; }
.mm-drawer {
  position: fixed; top: 0; right: 0;
  width: min(360px, 88vw); height: 100%;
  background: var(--bg-dark);
  color: white;
  z-index: 201;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.mm-drawer.open { transform: translateX(0); }
.mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mm-head .header-logo img { height: 28px; }
.mm-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  display: flex; align-items: center; justify-content: center;
}
.mm-body { flex: 1; overflow-y: auto; padding: 16px 0; }
.mm-search {
  display: flex; gap: 6px; padding: 0 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 12px;
}
.mm-search input {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-pill); padding: 10px 16px; color: white; font-size: 14px; outline: none;
}
.mm-search input::placeholder { color: rgba(255,255,255,0.5); }
.mm-search button {
  background: var(--red); color: white; border-radius: var(--r-pill);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}
.mm-item { display: flex; flex-direction: column; }
.mm-item > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 14px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mm-item > a:hover { background: rgba(255,255,255,0.04); color: white; }
.mm-item .mm-arrow { width: 14px; height: 14px; transition: transform .2s; }
.mm-item.mm-expanded .mm-arrow { transform: rotate(180deg); }
.mm-sub { display: none; padding: 0 20px 12px; flex-direction: column; gap: 4px; }
.mm-item.mm-expanded .mm-sub { display: flex; }
.mm-sub a {
  padding: 8px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  border-left: 2px solid rgba(255,255,255,0.1);
}
.mm-sub a:hover { color: white; border-color: var(--red); }
.mm-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 12px;
}

/* ============ Infobar / Top announcement ============
   Background + color sets inline from admin/infobar settings. Default fallback
   is here just for safety — should never visibly trigger because PHP always
   inlines the values when rendering the bar. */
.infobar {
  background: #e30613;
  color: #fff;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  padding: 8px 0;
  position: relative;
}
.infobar--bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; box-shadow: 0 -4px 18px rgba(0,0,0,0.18); }
.infobar-inner { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; }
.infobar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.infobar-close {
  position: absolute; top: 50%; right: 16px; transform: translateY(-50%);
  background: transparent; color: inherit; opacity: 0.7; cursor: pointer; font-size: 18px; line-height: 1; border: none;
}
.infobar-close:hover { opacity: 1; }

/* ============ Floating banner (CTA above footer) ============ */
.floating-banner {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--bg-dark);
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  padding: 10px 14px 10px 20px;
  display: flex; align-items: center; gap: 14px;
  z-index: 90;
  max-width: calc(100vw - 32px);
}
.floating-banner-text { font-size: 13px; font-weight: 500; line-height: 1.3; }
.floating-banner .btn-sm { padding: 6px 14px; }
.floating-banner-close { color: rgba(255,255,255,0.5); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.floating-banner-close:hover { color: white; background: rgba(255,255,255,0.08); }

/* ============ Utilities ============ */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-5 { gap: 24px; } .gap-6 { gap: 32px; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 32px; }
.mt-7 { margin-top: 48px; } .mt-8 { margin-top: 64px; }
.mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 24px; }
.mb-6 { margin-bottom: 32px; } .mb-7 { margin-bottom: 48px; }
.full-width, .w-full { width: 100%; }

/* ============ Scrollbar ============ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-3); }
