/* GTRS Wheel Collection — Phase 1 Editorial Catalog System */
:root {
  --ink: #181e20;
  --muted: #63706c;
  --line: #dce2de;
  --soft: #eff2ef;
  --warm: #f6f6f3;
  --graphite: #181e20;
  --white: #ffffff;
  --warm-accent: #8c867c;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 14px/1.6 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 3px;
}

.wrap {
  width: min(1360px, calc(100% - 88px));
  margin: 0 auto;
}

.cta {
  background: var(--graphite);
  color: #ffffff;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border: 1px solid var(--graphite);
  white-space: nowrap;
  transition: background 0.18s ease;
}
.cta.ghost {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}
.cta:hover {
  background: #2b3538;
}

.eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.title {
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.02;
  font-size: clamp(40px, 5vw, 74px);
  color: var(--ink);
}

.lede {
  color: #546062;
  max-width: 680px;
  font-size: 15.5px;
  line-height: 1.85;
}

.crumb {
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.crumb strong {
  color: var(--ink);
  font-weight: 600;
}

.intro {
  padding: 56px 0 44px;
}
.intro h1 {
  margin: 14px 0 20px;
}

.counter {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.counter strong {
  color: var(--ink);
  font-size: 22px;
  display: block;
  letter-spacing: -0.03em;
  margin-bottom: 3px;
}

/* Sticky Filter & Search Toolbar */
.toolbar {
  position: sticky;
  top: 88px;
  z-index: 25;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.tools {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid var(--line);
  background: var(--white);
  color: #556160;
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.16s ease;
}
.filter:hover {
  border-color: var(--graphite);
  color: var(--ink);
}
.filter.active {
  background: var(--graphite);
  color: #ffffff;
  border-color: var(--graphite);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.search {
  border: 1px solid var(--line);
  background: var(--warm);
  width: min(100%, 300px);
  min-width: 240px;
  height: 42px;
  padding: 0 14px;
  font-size: 12.5px;
  color: var(--ink);
}
.search:focus {
  background: var(--white);
  border-color: var(--graphite);
}
.note {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

/* Product Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 40px auto 72px;
}
.card {
  border: 1px solid var(--line);
  background: var(--white);
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--muted);
  box-shadow: 0 18px 42px rgba(24, 30, 32, 0.06);
}
.card-image {
  position: relative;
  background: var(--soft);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.28s ease;
}
.card:hover .card-image img {
  transform: scale(1.03);
}

.card-label {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gtrs-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.gtrs-badge-construction {
  background: var(--ink);
  color: #ffffff;
  padding: 4px 8px;
}
.gtrs-badge-family {
  background: var(--warm);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 4px 8px;
}

.card-label h3 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 730;
  margin: 2px 0 10px;
}
.card-label h3 a:hover {
  color: var(--muted);
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
  align-items: center;
}
.gtrs-spec-meta {
  color: var(--muted);
  font-weight: 600;
}
.gtrs-configure-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--warm);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.card:hover .gtrs-configure-cta,
.gtrs-configure-cta:hover {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #ffffff;
}

/* Empty Results State */
.empty {
  grid-column: 1 / -1;
  padding: 64px 24px;
  background: var(--warm);
  border: 1px solid var(--line);
  text-align: center;
}
.empty-box {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-box h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 0;
}
.empty-box p {
  font-size: 13.5px;
  color: #5b6766;
  margin: 0 0 8px;
}

/* Bottom Section */
.roadmap {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  background: var(--warm);
}
.roadrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.roadrow h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
  margin: 10px 0 12px;
}
.roadrow p {
  font-size: 14px;
  color: #596564;
  max-width: 680px;
  line-height: 1.8;
  margin: 0;
}

.hidden {
  display: none !important;
}

/* Tablet Responsive (<= 1080px, including 768px) */
@media (max-width: 1080px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .toolbar {
    position: static;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .roadrow {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile Responsive (<= 680px, including 390px) */
@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .intro {
    padding: 36px 0 28px;
  }
  .counter {
    gap: 20px;
  }
  .tools,
  .toolbar-right {
    width: 100%;
  }
  .gtrs-search-label {
    width: 100%;
  }
  .search {
    width: 100%;
    min-width: 0;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 28px auto 52px;
  }
  .roadrow .cta {
    width: 100%;
  }
}
