/* ===========================================================================
   Turbo Retail Suite — UNIFIED site chrome (header + footer on EVERY page)
   Single source: rendered from theme parts (parts/header.html, footer.html)
   on landing, home, legal, shop, account, 404 — everywhere. Reproduces the
   landing look, self-contained (no dependency on landing/styles.css vars).
   =========================================================================== */

/* ---------- HEADER ---------- */
/* Sticky must live on the WP template-part WRAPPER: its parent spans the whole
   page, whereas the inner .trs-site-header's parent (<header class=wp-block-
   template-part>) is only as tall as the bar, so position:sticky there scrolls
   away instantly. Anchors land just below the sticky bar via scroll-padding. */
html { scroll-padding-top: 84px; }
header.wp-block-template-part { position: sticky; top: 0; z-index: 90; }
.trs-site-header {
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 0;
}
.trs-site-header .trs-site-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.trs-site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.trs-site-logo img { width: 30px; height: 30px; display: block; }
.trs-grad {
  background: linear-gradient(135deg, #ff7a3a 0%, #ff5a1f 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.trs-site-nav { display: none; align-items: center; gap: 1.75rem; }
.trs-site-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.trs-site-nav a:hover { color: #ffffff; }
.trs-site-actions { display: flex; align-items: center; gap: 0.75rem; }
.trs-site-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0.5rem; padding: 0.5rem 1rem;
  font-size: 0.85rem; font-weight: 500; color: #cbd5e1;
  text-decoration: none; background: transparent; transition: all 0.2s ease;
}
.trs-site-btn-ghost:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.trs-site-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0.5rem; padding: 0.5rem 1rem;
  font-size: 0.85rem; font-weight: 600; color: #ffffff; text-decoration: none;
  background: linear-gradient(135deg, #ff5a1f 0%, #e63e0a 100%);
  box-shadow: 0 8px 24px -8px rgba(255, 90, 31, 0.6);
  transition: all 0.2s ease;
}
.trs-site-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -8px rgba(255, 90, 31, 0.85); }
.trs-site-cart,
.trs-site-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.trs-site-cart:hover,
.trs-site-account:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.trs-site-cart svg,
.trs-site-account svg { width: 20px; height: 20px; }
.trs-site-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #ff5a1f;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trs-site-cart-count[hidden] { display: none; }
@media (max-width: 1023px) { .trs-site-actions .trs-site-btn-ghost { display: none; } }
@media (min-width: 1024px) { .trs-site-nav { display: flex; } }

/* ---------- FOOTER ---------- */
.trs-site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b1120; /* opaque: stays dark & legible over white-bg pages too */
  padding: 4rem 0 2rem;
}
.trs-site-footer .trs-site-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.trs-site-fgrid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.trs-site-fbrand p {
  color: #94a3b8; margin-top: 1rem; max-width: 22rem;
  font-size: 0.95rem; line-height: 1.6;
}
.trs-site-fcol h4 { font-weight: 600; color: #ffffff; margin: 0 0 1rem; font-size: 0.95rem; }
.trs-site-fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.trs-site-fcol a { font-size: 0.875rem; color: #94a3b8; text-decoration: none; transition: color 0.2s ease; }
.trs-site-fcol a:hover { color: #ffffff; }
.trs-site-fbottom {
  margin-top: 3.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center; font-size: 0.85rem; color: #64748b;
}
@media (min-width: 768px) {
  .trs-site-fgrid { grid-template-columns: repeat(12, 1fr); }
  .trs-site-fbrand { grid-column: span 5; }
  .trs-site-fcol { grid-column: span 2; }
  .trs-site-fcol-wide { grid-column: span 3; }
}
