/* Exceptional Marketplace — storefront styles
   Name, listings, and contact link are controlled in /js/data.js */

:root {
  --bg: #f7f9fd;
  --bg-2: #ffffff;
  --ink: #122348;
  --text: #122348;
  --muted: #4d5a73;
  --faint: #7a8496;
  --line: rgba(18, 35, 72, 0.1);
  --line-strong: rgba(18, 35, 72, 0.18);
  --accent: #1a56c4;
  --accent-2: #123a7a;
  --accent-3: #d4a017;
  --accent-soft: #e8eefb;
  --accent-dim: rgba(26, 86, 196, 0.14);
  --gold: #f0c44a;
  --gold-ink: #3d3208;
  --shadow: 0 16px 40px rgba(18, 35, 72, 0.1);
  --shadow-lift: 0 22px 44px rgba(18, 35, 72, 0.14);
  --radius: 22px;
  --header-h: 72px;
  --font-display: "Syne", "Oswald", "Arial Narrow", "Futura", sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1180px;
}

[data-accent="coral"] {
  --cat: #1a56c4;
  --cat-soft: #e4edfb;
  --cat-ink: #143a86;
  --cat-panel: linear-gradient(150deg, #3b7bef 0%, #1648b8 100%);
  --cat-shadow: rgba(26, 86, 196, 0.2);
  --cat-on: #fff;
}

[data-accent="magenta"] {
  --cat: #2563c8;
  --cat-soft: #e8eefb;
  --cat-ink: #1a3f8a;
  --cat-panel: linear-gradient(150deg, #5b8ee6 0%, #1e56b8 100%);
  --cat-shadow: rgba(30, 86, 184, 0.2);
  --cat-on: #fff;
}

[data-accent="blue"] {
  --cat: #123a7a;
  --cat-soft: #e2e9f3;
  --cat-ink: #0f2c5c;
  --cat-panel: linear-gradient(150deg, #4a7ab8 0%, #123a7a 100%);
  --cat-shadow: rgba(18, 58, 122, 0.2);
  --cat-on: #fff;
}

[data-accent="violet"] {
  --cat: #1d6fd6;
  --cat-soft: #e6f0fc;
  --cat-ink: #154a96;
  --cat-panel: linear-gradient(150deg, #62a0f0 0%, #1a5dcc 100%);
  --cat-shadow: rgba(26, 93, 204, 0.2);
  --cat-on: #fff;
}

[data-accent="teal"] {
  --cat: #3a5a78;
  --cat-soft: #e6edf2;
  --cat-ink: #274155;
  --cat-panel: linear-gradient(150deg, #6d8aa6 0%, #3a5a78 100%);
  --cat-shadow: rgba(58, 90, 120, 0.2);
  --cat-on: #fff;
}

[data-accent="gold"] {
  --cat: #d4a017;
  --cat-soft: #fff4cc;
  --cat-ink: #5c4508;
  --cat-panel: linear-gradient(150deg, #e8b83a 0%, #c89620 100%);
  --cat-shadow: rgba(200, 150, 32, 0.22);
  --cat-on: #122348;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-image: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-2);
}

button,
input {
  font: inherit;
}

h1, h2, h3, p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
  font-weight: 600;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 249, 253, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(26, 86, 196, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-handle {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.header-nav a:not(.btn):hover,
.header-nav a:not(.btn):focus-visible {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(105deg, #1d6fd6 0%, #123a7a 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(18, 58, 122, 0.22);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: shine 3.6s ease-in-out infinite;
  pointer-events: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(105deg, #f5cc3a 0%, #e8b31a 100%);
  color: #122348;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(200, 150, 32, 0.28);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

.btn-small {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-bgword {
  position: absolute;
  right: -4%;
  top: 8%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(8rem, 28vw, 20rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(27, 16, 48, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cat-ink, #143a86);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #f0c44a, #1a56c4);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 18ch;
  background: linear-gradient(105deg, #123a7a 0%, #1a56c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin-top: 18px;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--ink);
}

.blurb {
  margin-top: 14px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .btn-primary {
  padding: 0.9rem 1.4rem;
  font-size: 1.02rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.pill {
  border: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(27, 16, 48, 0.06);
}

.pill:nth-child(1) { background: #fff4cc; color: #5c4508; }
.pill:nth-child(2) { background: #e4edfb; color: #143a86; }
.pill:nth-child(3) { background: #e2e9f3; color: #0f2c5c; }

.hero-rule {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 48px;
  color: rgba(26, 86, 196, 0.28);
}

/* ----- Badges ----- */
.badge {
  display: inline-flex;
  align-items: center;
  background: #122348;
  color: #fff;
  border: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.badge-deal {
  background: #f0c44a;
  color: #122348;
  box-shadow: 0 4px 10px rgba(200, 150, 32, 0.28);
}

.badge-just-in {
  background: #f5cc3a;
  color: #122348;
  box-shadow: 0 4px 10px rgba(200, 150, 32, 0.28);
  animation: badge-pop 2.8s ease-in-out infinite;
}

.badge-sample {
  background: rgba(18, 35, 72, 0.82);
  color: #fff;
  backdrop-filter: blur(8px);
}

.card-photo .badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 1;
}

/* ----- Listings ----- */
.listings {
  padding: 10px 0 80px;
}

.sample-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff7d6;
  border: 1px solid #f6d56b;
  color: #854d0e;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  padding: 12px 0 16px;
  background: linear-gradient(180deg, rgba(247, 249, 253, 0.96) 70%, rgba(247, 249, 253, 0));
}

.search {
  position: relative;
  width: 100%;
}

.search input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  outline: none;
  box-shadow: 0 6px 18px rgba(27, 16, 48, 0.05);
}

.search input:focus {
  border-color: #1a56c4;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.search input::placeholder {
  color: var(--faint);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--faint);
  pointer-events: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: #fff;
  color: var(--cat-ink, var(--muted));
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(27, 16, 48, 0.05);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.filter-btn[data-accent] {
  background: var(--cat-soft);
  color: var(--cat-ink);
}

.filter-btn:hover,
.filter-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px var(--cat-shadow, rgba(27, 16, 48, 0.1));
}

.filter-btn[aria-pressed="true"] {
  background: var(--cat, var(--ink));
  color: var(--cat-on, #fff);
  box-shadow: 0 8px 18px var(--cat-shadow, rgba(27, 16, 48, 0.16));
}

.results-meta {
  color: var(--faint);
  font-size: 0.85rem;
  margin: 4px 0 28px;
}

.category-block {
  margin-bottom: 52px;
}

.category-block[hidden] {
  display: none;
}

.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--cat-soft, var(--line));
}

.category-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-head h2::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: var(--cat-panel, var(--accent));
  box-shadow: 0 4px 10px var(--cat-shadow, transparent);
  flex: none;
}

.category-count {
  color: var(--cat-ink, var(--faint));
  font-size: 0.85rem;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* ----- Cards ----- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-lift), 0 12px 28px var(--cat-shadow, rgba(26, 86, 196, 0.12));
}

.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cat-panel, linear-gradient(150deg, #3b7bef, #1648b8));
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 8px 16px rgba(27, 16, 48, 0.18));
}

.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-cat {
  color: var(--cat-ink, var(--accent));
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.subtitle,
.fits,
.notes,
.condition {
  color: var(--muted);
  font-size: 0.9rem;
}

.fits,
.notes,
.condition {
  font-size: 0.84rem;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.price {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #122348;
  background: #f0c44a;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(200, 150, 32, 0.28);
}

.price.is-ask {
  background: var(--cat-soft, #e8eefb);
  color: var(--cat-ink, #143a86);
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.empty[hidden] {
  display: none;
}

/* ----- CTA / Footer ----- */
.cta {
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(110deg, #123a7a 0%, #1a56c4 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  position: relative;
}

.cta p {
  color: rgba(255, 255, 255, 0.92);
  margin: 12px auto 24px;
  max-width: 28rem;
  position: relative;
  font-weight: 500;
}

.cta .btn-primary {
  background: #f0c44a;
  color: #122348;
  box-shadow: 0 12px 28px rgba(18, 35, 72, 0.18);
}

.cta .btn-primary::after {
  display: none;
}

.cta .btn-primary:hover,
.cta .btn-primary:focus-visible {
  color: #122348;
  background: #ffe072;
}

.site-footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-cta-short {
  display: none;
}

@keyframes shine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

@keyframes badge-pop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .header-links,
  .header-cta-full,
  .header-cta-short {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 9.2vw, 3.4rem);
    max-width: none;
  }

  .hero-bgword {
    font-size: clamp(7rem, 42vw, 12rem);
    top: 18%;
    right: -8%;
  }

  .toolbar {
    padding-top: 8px;
  }

  .hero-actions .btn {
    padding-inline: 0.9rem;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .btn,
  .filter-btn {
    transition: none;
  }

  .card:hover,
  .card:focus-within,
  .btn-primary:hover,
  .filter-btn:hover {
    transform: none;
  }

  .btn-primary::after,
  .badge-just-in {
    animation: none;
  }
}
.was-price{font-size:.8em;font-weight:500;opacity:.55;margin-left:.35em}
.card-photo img{object-fit:cover}
