/* PartCourier v7 Stylesheet: Product-First Industrial Parcel Manila + Matte Carbon + WCAG AA/AAA Typography */
:root {
  --bg: #f3efe6;
  --bg-alt: #eae4d7;
  --surface: #ffffff;
  --ink: #141517;
  --ink-soft: #32353b;
  --ink-muted: #454952;
  --line: #18181b;
  --line-soft: #cec5b4;
  --amber: #a34500;
  --amber-text: #8f3c00;
  --amber-bright: #ff9c38;
  --amber-ink: #ffffff;
  --amber-tint: #fff4e5;
  --emerald: #0b615a;
  --emerald-tint: #e6f7f5;
  --deal: #b91c1c;
  --deal-tint: #fef2f2;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 3px 0 rgba(20, 21, 23, 0.92);
  --font-head: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

#htfb-btn { display: none !important; }
body.show-feedback #htfb-btn { display: inline-flex !important; }

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

.mono { font-family: var(--font-mono); }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius-sm);
}
.skip:focus { left: 12px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 90;
  background: var(--ink); color: #f8f6f0;
  border-bottom: 2px solid var(--amber-bright);
  width: 100%;
}
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px; padding-top: 6px; padding-bottom: 6px;
  min-width: 0;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 0; flex: 0 1 auto; min-height: 44px;
}
.logo-box { width: 38px; height: 38px; display: inline-flex; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; }
.logo-copy { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: 1.14rem;
  letter-spacing: 0.03em; color: #ffffff; white-space: nowrap;
}
.wordmark b { color: var(--amber-bright); font-weight: 700; }
.logo-sub { font-size: 0.74rem; letter-spacing: 0.04em; color: #ddd8ce; margin-top: 2px; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 10px; border-radius: var(--radius-sm);
  font-size: 0.86rem; font-weight: 600; color: #ece8df;
  transition: background 0.14s ease, color 0.14s ease;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.nav a.nav-shop-pill { background: var(--amber); color: #ffffff; }
.nav a.nav-shop-pill:hover, .nav a.nav-shop-pill.active { background: #853700; }
.nav a.nav-fast-pill { background: #0b615a; border: 1px solid #2dd4bf; color: #ffffff; }
.nav a.nav-fast-pill.active { background: #094f49; color: #ffffff; }
.nav a.nav-signal { color: #fecdd3; }

.top-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tool-key {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 44px;
  padding: 0 11px; border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm); font-size: 0.82rem; color: #f4f1ea;
  background: rgba(255, 255, 255, 0.07); white-space: nowrap;
}
.tool-key:hover { background: rgba(255, 255, 255, 0.16); }
.tool-key svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.saved-key em {
  font-style: normal; background: var(--amber); color: #ffffff;
  padding: 1px 7px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}

.menu-btn {
  display: none; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; min-width: 44px;
  padding: 0 11px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.32); background: transparent; color: #fff; cursor: pointer;
}
.menu-ico {
  width: 16px; height: 2px; background: #fff; position: relative; display: inline-block; flex-shrink: 0;
}
.menu-ico::before, .menu-ico::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: #fff;
}
.menu-ico::before { top: -5px; }
.menu-ico::after { top: 5px; }

/* Mobile Menu Sheet */
.menu-sheet {
  position: fixed; inset: 0; z-index: 140; background: rgba(20, 21, 23, 0.65);
  display: flex; justify-content: flex-end;
}
.menu-sheet[hidden] { display: none !important; }
.menu-panel {
  width: min(360px, 92vw); height: 100%; background: var(--bg); color: var(--ink);
  border-left: 2px solid var(--line); padding: 18px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
}
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.menu-top .wordmark { color: var(--ink); }
.menu-top .wordmark b { color: var(--amber-text); }
.menu-body { display: flex; flex-direction: column; gap: 6px; }
.menu-body a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); background: var(--surface); font-weight: 600;
}

/* Main View & Buttons */
.main-view { min-height: calc(100svh - 62px); padding: 0 0 56px; outline: none; max-width: 100%; }
.main-view > .wrap { padding-top: 18px; }
.main-view > .wrap.home-lower-wrap { padding-top: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; background: var(--surface); color: var(--ink);
  transition: transform 0.1s ease, background 0.14s ease;
  max-width: 100%; text-align: center;
}
.btn:hover { background: var(--bg-alt); }
.btn.primary { background: var(--amber); border-color: var(--line); color: #ffffff; box-shadow: var(--shadow); }
.btn.primary:hover { background: #853700; transform: translateY(-1px); }
.btn.fast { background: var(--emerald); border-color: var(--line); color: #ffffff; box-shadow: var(--shadow); }
.btn.fast:hover { background: #084c47; transform: translateY(-1px); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.btn.dark:hover { background: #27292e; }
.btn.signal { background: var(--deal); border-color: var(--line); color: #ffffff; }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.sm { min-height: 44px; padding: 0 12px; font-size: 0.83rem; }

/* Stamps */
.stamp {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 4px; font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  border: 1px solid var(--line); max-width: 100%;
}
.stamp.amber { background: var(--amber-tint); color: var(--amber-text); border-color: var(--amber); }
.stamp.emerald { background: var(--emerald-tint); color: #084c47; border-color: var(--emerald); }
.stamp.plain { background: var(--bg); color: var(--ink-soft); }

/* ---------------- Product-First Hero (#home) ---------------- */
.pc-hero {
  background: linear-gradient(180deg, #faf7f0 0%, var(--bg) 340px);
  padding: 18px 0 24px;
  border-bottom: 2px solid var(--line);
}
.pc-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 11px;
  min-width: 0;
}
.pc-hero-copy {
  flex: 1 1 310px;
  min-width: 0;
  max-width: 100%;
}
.pc-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.hero-stat-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-stat-pill a {
  color: var(--amber-text);
  text-decoration: underline;
  font-weight: 700;
}
.pc-hero-h {
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.pc-hero-h span {
  color: var(--amber-text);
}
.pc-hero-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 360px;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
}
.hero-search-box {
  position: relative;
  flex: 1 1 210px;
  min-width: 0;
  max-width: 100%;
}
.hero-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--amber-text);
  stroke-width: 2.2;
  stroke-linecap: round;
  pointer-events: none;
}
.hero-search-box .input {
  padding-left: 36px;
}
.pc-hero-controls .select {
  width: auto;
  flex: 0 0 auto;
}
.hero-sizer-btn {
  white-space: nowrap;
  flex: 0 0 auto;
}
.pc-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
}
.pc-filter-bar .chip-rail {
  flex: 1 1 auto;
}
.hero-live-count {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}
.hero-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero-more-wrap {
  margin-top: 22px;
  text-align: center;
}
.pc-home-feed {
  border-bottom: 0;
  padding-bottom: 18px;
}
.home-integrated-stream {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}
.feed-post {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
  max-width: 100%;
}
.feed-post-guide {
  background: linear-gradient(135deg, #fffdf8 0%, #eafaf7 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.feed-guide-copy {
  flex: 1 1 420px;
  min-width: 0;
}
.feed-guide-copy h2,
.feed-post-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1.9vw, 1.48rem);
  line-height: 1.2;
  margin: 6px 0 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.feed-post-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  min-width: 0;
}
.feed-post-sub {
  margin: 6px 0 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 70ch;
  overflow-wrap: anywhere;
}
.feed-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.feed-guide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex: 0 1 auto;
}
.feed-vid-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.feed-kit-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}
.feed-kit-thumb {
  background: #ffffff;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  transition: border-color 0.14s ease, transform 0.12s ease;
}
.feed-kit-thumb:hover {
  border-color: var(--line);
  transform: translateY(-1px);
}
.feed-kit-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.feed-kit-thumb span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.feed-kit-foot {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 680px) {
  .feed-post {
    padding: 14px;
  }
  .feed-vid-pair {
    grid-template-columns: 1fr;
  }
  .feed-kit-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 374px) {
  .feed-kit-mosaic {
    grid-template-columns: 1fr;
  }
}

.chip-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow-x: visible;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 2px;
}
.chip-rail .pill {
  flex: 0 1 auto;
}

/* Custom Pill Selects, Desktop Filter Bar & Mobile Filter Drawer */
.pc-pill-select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-height: 42px;
  padding: 0 32px 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23141517' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 13px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.pc-pill-select:hover {
  background-color: var(--bg-alt);
}
.pc-desktop-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
}
.filter-bar .pc-desktop-filters {
  margin-bottom: 0;
}
.shop-search-box {
  flex: 1 1 auto;
  width: 100%;
}
.pc-mobile-actions {
  display: none;
}
.pc-flt-trigger {
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 7px;
  width: 100%;
}
.pc-flt-trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}
.flt-badge {
  font-style: normal;
  background: var(--amber);
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.reset-pill {
  border-style: dashed;
  border-color: var(--line);
}
.flt-drawer[hidden] {
  display: none !important;
}
.flt-drawer {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.flt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 23, 0.58);
}
.flt-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  background: var(--surface);
  color: var(--ink);
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
  border-right: 2px solid var(--line);
  border-radius: 14px 14px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 28px rgba(20, 21, 23, 0.28);
}
.flt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--line-soft);
}
.flt-head strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.flt-body {
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flt-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flt-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.flt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.flt-group .pc-pill-select {
  width: 100%;
}
.flt-foot {
  padding: 12px 16px;
  border-top: 1.5px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  background: var(--surface);
}

/* Section Headers */
.sec { margin-bottom: 32px; min-width: 0; max-width: 100%; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap; min-width: 0;
}
.eyebrow {
  display: block; font-family: var(--font-mono); font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--amber-text); margin-bottom: 3px;
}
.sec-head h2, .page-head h1 {
  font-family: var(--font-head); font-size: clamp(1.22rem, 2.1vw, 1.72rem);
  margin: 0; line-height: 1.16; letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.sec-sub, .lede { color: var(--ink-soft); margin: 4px 0 0; max-width: 68ch; font-size: 0.94rem; overflow-wrap: anywhere; }
.page-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1.5px solid var(--line); min-width: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }

/* In-House & PartsByFriday Banner + Product Cards */
.inhouse-banner {
  background: linear-gradient(90deg, #fffaf0 0%, #eefbf9 100%);
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  min-width: 0; max-width: 100%;
}
.inhouse-banner p { margin: 4px 0 0; font-size: 0.88rem; color: var(--ink-soft); }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.hero-prod-grid .pcard-top {
  aspect-ratio: 1 / 0.86;
  padding: 8px;
}
.hero-prod-grid .pcard-sizes {
  display: none;
}

.pcard {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); display: flex; flex-direction: column;
  overflow: hidden; position: relative; transition: transform 0.12s ease, box-shadow 0.12s ease;
  min-width: 0; max-width: 100%;
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pcard.first-party { border-width: 2px; background: #fffdf9; }
.pcard.first-party.pbf { background: #f8fffe; }

.pcard-top {
  position: relative; aspect-ratio: 1 / 1; background: #ffffff;
  border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center;
  padding: 10px; min-width: 0;
}
.pcard-top a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pcard-top img { width: 100%; height: 100%; object-fit: contain; }

.badge-row {
  position: absolute; top: 8px; left: 8px; right: 54px;
  display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none;
}
.pbadge {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pbadge.inhouse { background: var(--amber); color: #ffffff; border-color: var(--ink); }
.pbadge.fastship { background: var(--emerald); color: #ffffff; border-color: var(--ink); }
.pbadge.deal { background: var(--deal); color: #ffffff; border-color: var(--ink); }
.pbadge.cat { background: var(--bg); color: var(--ink-soft); border-color: var(--line-soft); }

.save-btn {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.96); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-muted);
}
.save-btn:hover { border-color: var(--line); color: var(--ink); }
.save-btn.on { background: var(--amber-tint); border-color: var(--amber); color: var(--amber-text); }
.save-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.save-btn.on svg { fill: currentColor; }

.pcard-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.pcard-brand {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-muted); font-weight: 600;
  min-width: 0;
}
.pcard-brand span { min-width: 0; overflow-wrap: anywhere; }
.pcard-title {
  font-family: var(--font-head); font-size: 0.96rem; line-height: 1.25; margin: 0; font-weight: 700;
  overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-desc {
  font-size: 0.82rem; color: var(--ink-soft); margin: 0; line-height: 1.38;
  overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-sizes {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft);
  background: var(--bg); padding: 4px 7px; border-radius: 4px; border: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
}
.pcard-foot {
  margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  min-width: 0;
}
.price-stack { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; }
.price-now { font-family: var(--font-head); font-size: 1.08rem; font-weight: 700; }
.price-was { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); text-decoration: line-through; }

/* Filter Bar, Inputs & Pills */
.filter-bar {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 12px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0; max-width: 100%;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; min-width: 0; }
.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-soft); background: var(--surface);
  font-size: 0.83rem; font-weight: 600; cursor: pointer; max-width: 100%;
  color: var(--ink);
}
.pill:hover { border-color: var(--line); background: var(--bg); }
.pill.on { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.pill.fast.on { background: var(--emerald); border-color: var(--line); color: #ffffff; }
.pill.deal-pill.on { background: var(--deal); border-color: var(--line); color: #ffffff; }

.input, .select {
  min-height: 44px; padding: 0 11px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface); font-size: 0.88rem;
  width: 100%; min-width: 0; max-width: 100%;
}

/* Fit Sizer Lab (#fit-lab) */
.fit-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; min-width: 0; }
.fit-workbench {
  background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 22px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start;
  min-width: 0; max-width: 100%;
}
.fit-controls { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.field-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-group label { font-weight: 600; font-size: 0.88rem; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.range-input { width: 100%; min-height: 44px; accent-color: var(--amber); cursor: pointer; }
.caliper-box {
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px; text-align: center; min-width: 0;
}
.caliper-svg { width: 100%; max-width: 300px; height: auto; margin: 0 auto 10px; }
.fit-verdict {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--emerald-tint); color: #084c47; font-weight: 600; font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.fit-verdict.warn { background: var(--amber-tint); color: #783300; }

.poly-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1.5px solid var(--line); font-size: 0.86rem;
}
.poly-table th, .poly-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left;
}
.poly-table th { background: var(--bg-alt); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; }
.poly-table tr.recommended { background: var(--emerald-tint); font-weight: 600; }

/* Kits & Brand Mosaics */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 16px; min-width: 0;
}
.kit-card {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px;
  min-width: 0; max-width: 100%;
}
.kit-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kit-thumbs a {
  aspect-ratio: 1 / 1; border: 1px solid var(--line-soft); border-radius: 4px;
  padding: 4px; background: #fff; display: flex; align-items: center; justify-content: center; min-width: 0;
}
.kit-items { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; min-width: 0; }
.kit-item-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 0; border-bottom: 1px dashed var(--line-soft); min-width: 0;
}
.kit-item-row a { min-width: 0; overflow-wrap: anywhere; }
.kit-item-row strong { flex-shrink: 0; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 16px; min-width: 0;
}
.brand-card {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px;
  min-width: 0; max-width: 100%;
}
.brand-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.brand-mosaic a {
  aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line-soft);
  border-radius: 4px; padding: 6px; display: flex; align-items: center; justify-content: center; min-width: 0;
}
.brand-meta { font-size: 0.82rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }

/* Video Player & Cards */
.player-stage {
  background: var(--ink); color: #fff; border: 2px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 18px;
  min-width: 0; max-width: 100%;
}
.player-frame-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: var(--radius-sm); overflow: hidden;
}
.player-frame-wrap iframe { width: 100%; height: 100%; border: 0; }
.vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px; min-width: 0;
}
.vid-card {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  min-width: 0; max-width: 100%;
}
.vid-thumb-btn {
  position: relative; aspect-ratio: 16 / 9; width: 100%; padding: 0; border: 0;
  background: #141517; cursor: pointer; overflow: hidden;
}
.vid-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.vid-play-pill {
  position: absolute; bottom: 8px; right: 8px; background: rgba(20, 21, 23, 0.92);
  color: #fff; padding: 5px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.75rem;
}
.vid-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vid-body h3 { font-family: var(--font-head); font-size: 0.94rem; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }

/* Creators & Social Icons */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px; min-width: 0;
}
.creator-card {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px;
  min-width: 0; max-width: 100%;
}
.soc-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.soc-ico-btn {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--soc, #141517); color: var(--soc-on, #fff);
  display: inline-flex; align-items: center; justify-content: center;
}
.soc-ico-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Legal, Partners & Intake */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px; min-width: 0;
}
.legal-card, .remove-box, .inhouse-intake {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 16px; min-width: 0; max-width: 100%;
  overflow-wrap: anywhere;
}
.legal-card code { overflow-wrap: anywhere; word-break: break-word; }
.legal-card h2, .remove-box h2 { font-family: var(--font-head); font-size: 1.12rem; margin: 0 0 8px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; min-width: 0; }
.faq-list details {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; min-width: 0; max-width: 100%;
}
.faq-list summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; overflow-wrap: anywhere; }
.fine { font-size: 0.82rem; color: var(--ink-muted); overflow-wrap: anywhere; }

/* Toast & Footer */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 0.86rem; opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 160; border: 1px solid var(--amber-bright); max-width: calc(100vw - 24px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.foot {
  background: var(--ink); color: #ece8df; border-top: 2px solid var(--amber-bright);
  padding: 34px 0 44px; max-width: 100%;
}
.foot-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 24px; min-width: 0; }
.foot-brand { min-width: 0; }
.foot-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.foot-spec { font-size: 0.75rem; color: var(--amber-bright); }
.foot-tag { margin: 0 0 10px; color: #e2ddd2; max-width: 52ch; font-size: 0.9rem; overflow-wrap: anywhere; }
.foot-fine, .foot-fee { margin: 6px 0 0; font-size: 0.82rem; color: #cfc9bc; max-width: 56ch; overflow-wrap: anywhere; }
.foot-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr));
  gap: 4px 12px; align-content: start; min-width: 0;
}
.foot-nav a, .foot-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.85rem; color: #ece8df; background: none; border: 0; padding: 0;
  cursor: pointer; text-align: left; overflow-wrap: anywhere;
}
.foot-nav a:hover, .foot-link:hover { color: var(--amber-bright); text-decoration: underline; }
.foot-fb-dot {
  min-height: 44px; min-width: 44px; background: none; border: 0;
  color: #cfc9bc; cursor: pointer; font-size: 1.1rem; text-align: left;
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .fit-workbench, .foot-inner { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .pc-hero-copy,
  .pc-hero-controls {
    flex: 1 1 auto;
    width: 100%;
    justify-content: flex-start;
  }
  .hero-search-box {
    flex: 1 1 100%;
    width: 100%;
  }
  .hero-live-count {
    display: none;
  }
  .filter-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-controls .input {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .pc-desktop-filters,
  .hide-mobile-hero {
    display: none !important;
  }
  .pc-mobile-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }
  .filter-bar .pc-mobile-actions {
    margin-bottom: 0;
  }
  .pc-mobile-actions .pc-pill-select {
    width: 100%;
    min-height: 44px;
  }
  .pc-hero {
    padding: 12px 0 18px;
  }
  .pc-hero-top {
    gap: 8px;
    margin-bottom: 8px;
  }
  .pc-badge-row {
    margin-bottom: 4px;
  }
  .pc-hero-h {
    font-size: 1.32rem;
  }
}
@media (max-width: 680px) {
  .wrap { padding: 0 12px; }
  .hide-sm { display: none; }
  .logo-sub { display: none; }
  .top-inner { gap: 10px; min-height: 54px; }
  .wordmark { font-size: 1.02rem; }
  .tool-key { padding: 0 9px; }
  .menu-btn { padding: 0 10px; }
  .menu-btn span.mono { display: none; }
  .pc-hero { padding: 10px 0 16px; }
  .kit-grid, .brand-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pcard-brand .brand-secondary,
  .badge-row .pbadge.cat {
    display: none !important;
  }
  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pcard-top { padding: 8px; }
  .badge-row { top: 6px; left: 6px; right: 54px; }
  .pbadge { font-size: 0.75rem; padding: 2px 6px; }
  .pcard-body { padding: 10px; gap: 5px; }
  .pcard-brand { font-size: 0.75rem; }
  .pcard-title { font-size: 0.88rem; }
  .pcard-desc { display: none; }
  .pcard-sizes { font-size: 0.75rem; padding: 3px 6px; }
  .pcard-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 8px;
  }
  .pcard-foot .btn {
    width: 100%;
    padding: 0 8px;
    font-size: 0.8rem;
  }
  .price-now { font-size: 1rem; }
  .filter-controls { grid-template-columns: 1fr; }
  .pc-hero-controls .select {
    flex: 1 1 130px;
  }
}
@media (max-width: 374px) {
  .wrap { padding: 0 10px; }
  .logo-box, .logo-mark { width: 32px; height: 32px; }
  .wordmark { font-size: 0.96rem; }
  .tool-key { padding: 0 7px; }
  .menu-btn span.mono { display: none; }
  .grid-cards { grid-template-columns: 1fr; }
}

/* Keep the existing desktop filters in one row. */
@media (min-width: 769px) {
  .pc-desktop-filters { flex-wrap: nowrap; overflow-x: auto; }
  .pc-desktop-filters .pc-pill-select { width: auto; flex: 1 1 0; min-width: 0; }
  .pc-desktop-filters .pill { flex: 0 0 auto; }
}

/* Home photo wall: local parts, carbon shade, and the PartCourier amber. */
.wall-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  min-height: calc(100svh - 62px);
  display: flex;
  align-items: flex-end;
}
.photo-wall {
  position: absolute;
  z-index: -2;
  inset: -30% -7% -40%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  transform: rotate(-7deg);
}
.photo-wall-column { animation: parts-drift 76s linear infinite; will-change: transform; }
.photo-wall-column:nth-child(2) { animation-duration: 88s; animation-direction: reverse; }
.photo-wall-column:nth-child(3) { animation-duration: 64s; }
.photo-wall-column:nth-child(4) { animation-duration: 82s; animation-direction: reverse; }
.photo-wall-column:nth-child(5) { animation-duration: 70s; }
.photo-wall-group { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; }
.photo-wall-cell { display: block; flex: none; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: #fff; }
.photo-wall-cell img { width: 100%; height: 100%; object-fit: contain; }
@keyframes parts-drift { to { transform: translate3d(0, -50%, 0); } }
.wall-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20,21,23,.36), rgba(20,21,23,.76) 40%, rgba(20,21,23,.97));
}
.wall-hero-inner { padding: 170px 40px 48px; }
.wall-heading {
  max-width: 1100px;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(68px, 8.2vw, 120px);
  line-height: 1.02;
  letter-spacing: -.055em;
  color: var(--bg);
}
.wall-heading span { display: block; color: var(--amber-bright); }
.wall-heading .wall-lead { display: inline; color: var(--bg); }
.wall-sub { max-width: 46ch; font-size: 20px; line-height: 1.5; margin: 24px 0; color: var(--bg); }
.wall-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wall-actions .btn { min-height: 48px; padding: 10px 22px; border-radius: 6px; box-shadow: none; font-size: 16px; }
.wall-shop { background: var(--amber-bright); color: var(--ink); border-color: var(--amber-bright); }
.wall-videos { background: var(--ink); color: var(--bg); border-color: var(--bg); }
.wall-deals { background: var(--amber-bright); color: var(--ink); border: 2px solid var(--amber-bright); }
.deal-preview, .black-friday { padding-top: 32px; padding-bottom: 32px; }
.deal-preview-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.deal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.deal-card .pcard-body { gap: 12px; }
.deal-card .pcard-top img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.deal-prices { display: flex; flex-wrap: wrap; gap: 10px; }
.deal-read { font-size: 14px; }
.deal-filters { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.deal-filters label { display: grid; gap: 6px; max-width: 100%; }
.deal-filters select { min-height: 44px; max-width: 100%; padding: 8px; font: inherit; }
@media (max-width: 1000px) { .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .deal-grid { grid-template-columns: minmax(0, 1fr); } }
.wall-actions .btn:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.wall-actions .btn:focus-visible { outline: 3px solid var(--bg); outline-offset: 4px; }
.wall-disclosure { max-width: 60ch; font-size: 13px; margin: 18px 0 0; }
.wall-disclosure a { text-decoration: underline; }
@media (max-width: 680px) {
  .main-view { min-height: calc(100svh - 56px); }
  .wall-hero { min-height: calc(100svh - 56px); }
  .photo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); inset: -22% -18% -30%; gap: 10px; }
  .photo-wall-column:nth-child(n+4) { display: none; }
  .photo-wall-group { gap: 10px; padding-bottom: 10px; }
  .photo-wall-cell { border-radius: 8px; }
  .wall-hero-inner { padding: 180px 16px 32px; }
  .wall-heading { font-size: clamp(48px, 15vw, 64px); line-height: 1.05; letter-spacing: -.045em; }
  .wall-heading .wall-lead { display: block; }
  .wall-sub { font-size: 17px; margin: 22px 0; max-width: 35ch; }
  .wall-actions { gap: 10px; }
  .wall-actions .btn { padding: 10px 16px; }
}
@media (max-width: 374px) {
  .logo { gap: 6px; }
  .wordmark { font-size: .86rem; }
  .saved-key em { display: none; }
  .wall-hero-inner { padding: 150px 12px 24px; }
  .wall-actions .btn { padding: 10px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-wall-column { animation: none; will-change: auto; }
}

.feed-shortcut { min-width:0; }
.feed-shortcut h2 { font-family:var(--font-head); }
.feed-shortcut-links { display:flex; flex-wrap:wrap; gap:10px; }
.feed-shortcut-links .pill { white-space:normal; text-align:left; max-width:100%; }
.gift-photos { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:16px; }
.gift-photos img { width:100%; aspect-ratio:1; object-fit:contain; background:white; border-radius:var(--radius); }
