/* Concept A — The Fix Library
   Clean, searchable catalog. Brand: navy #1F2A44, orange #F28C28, cream #F7F3EA. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Montserrat, "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #F7F3EA;
  color: #1F2A44;
  line-height: 1.5;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

/* Header */
.site-header {
  background: #F7F3EA;
  border-bottom: 1px solid #E4DCCE;
  padding: 16px 0;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}
.brand-tag {
  font-weight: 600;
  font-size: 12px;
  color: #F28C28;
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 14px;
  color: #1F2A44;
}
.nav a:hover { color: #F28C28; }
.nav .is-current { color: #F28C28; }

.disclose-bar {
  background: #EFE8D8;
  color: #5C6578;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.4;
}

/* Hero + search */
.hero { padding: 56px 0 40px; text-align: center; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F28C28;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
  margin: 0 auto 16px;
}
.hero .lede {
  font-size: 18px;
  color: #5C6578;
  font-weight: 500;
  max-width: 38em;
  margin: 0 auto 32px;
  line-height: 1.45;
}
.search {
  display: flex;
  width: min(640px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid #D9D1C3;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(31, 42, 68, 0.06);
}
.search input {
  flex: 1;
  border: 0;
  padding: 16px 22px;
  font: 500 16px/1.2 Montserrat, "Segoe UI", sans-serif;
  color: #1F2A44;
  background: transparent;
  min-width: 0;
  outline: none;
}
.search input::placeholder { color: #8A8490; }
.search button {
  border: 0;
  background: #F28C28;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 0 26px;
  cursor: pointer;
  white-space: nowrap;
}
.search button:hover { background: #dc7a1c; }

/* Categories */
.cats { padding: 12px 0 48px; }
.cats h2, .section h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cat {
  background: #fff;
  border: 1px solid #E4DCCE;
  border-radius: 16px;
  padding: 22px 16px 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(31, 42, 68, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cat:hover { transform: translateY(-2px); border-color: #F28C28; }
.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #F7F3EA;
  display: grid;
  place-items: center;
}
.cat-icon svg { width: 28px; height: 28px; }
.cat strong { font-size: 15px; font-weight: 700; display: block; }
.cat span { font-size: 12px; color: #5C6578; font-weight: 500; }

/* Fix cards */
.section { padding: 8px 0 56px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid #E4DCCE;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(31, 42, 68, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(31, 42, 68, 0.1); }
.card-img { background: #F7F3EA; }
.card-img img { width: 100%; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip {
  background: #F7F3EA;
  color: #1F2A44;
  border-radius: 999px;
  padding: 3px 8px;
}
.time { color: #5C6578; letter-spacing: 0.04em; }
.card h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.card p { font-size: 14px; color: #5C6578; font-weight: 500; line-height: 1.45; flex: 1; }
.shop-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #F28C28;
}
.shop-link::after { content: "→"; }

/* Fix page */
.fix-main { padding: 28px 0 64px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #5C6578;
  margin-bottom: 18px;
}
.back:hover { color: #1F2A44; }
.fix-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5C6578;
  margin-bottom: 10px;
}
.fix-kicker .chip { background: #F28C28; color: #fff; letter-spacing: 0.06em; }
.fix-kicker span { white-space: nowrap; }
.fix-main h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.fix-lede {
  font-size: 16px;
  color: #5C6578;
  font-weight: 500;
  margin-bottom: 22px;
  line-height: 1.5;
}
.fix-hero-img {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E4DCCE;
  background: #F7F3EA;
  margin-bottom: 32px;
}
.fix-main h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
}
.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1F2A44;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.steps h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; line-height: 1.3; }
.steps p { font-size: 14px; color: #5C6578; font-weight: 500; line-height: 1.45; }

.products { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.product {
  background: #fff;
  border: 1px solid #E4DCCE;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
}
.product-art {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: #F7F3EA;
}
.product-art img, .product-art svg { width: 72px; height: 72px; }
.product h3 { font-size: 16px; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.product .why { font-size: 13px; color: #5C6578; font-weight: 500; margin-bottom: 8px; line-height: 1.4; }
.price-line {
  font-size: 13px;
  font-weight: 700;
  color: #1F2A44;
  margin-bottom: 10px;
}
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid #1F2A44;
  background: #fff;
  color: #1F2A44;
  line-height: 1;
  white-space: nowrap;
}
.store.primary { background: #1F2A44; color: #fff; }
.note {
  font-size: 13px;
  color: #5C6578;
  font-weight: 500;
  margin: 0 0 28px;
  line-height: 1.45;
}

/* Footer */
.site-footer {
  background: #1F2A44;
  color: #F7F3EA;
  padding: 32px 0 28px;
}
.footer-inner { text-align: center; }
.footer-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-tag { color: #F28C28; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.footer-disclose, .footer-legal {
  font-size: 12px;
  color: #C9C3B8;
  font-weight: 500;
  max-width: 42em;
  margin: 0 auto 8px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .wrap { width: min(1180px, calc(100% - 32px)); }
  .nav { display: none; }
  .hero h1 { font-size: 30px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid .cat:last-child { grid-column: 1 / -1; }
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 28px; }
}

/* ===== Live site additions ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.disclose-bar a { color: #1F2A44; font-weight: 700; text-decoration: underline; }
.nav a.is-current { color: #F28C28; }
.wrap.narrow { width: min(720px, calc(100% - 40px)); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; border: 1.5px solid #D9D1C3; background: #fff; color: #1F2A44;
  border-radius: 999px; padding: 9px 16px; font: 700 14px/1 Montserrat, "Segoe UI", system-ui, sans-serif; cursor: pointer;
}
.chip:hover { border-color: #F28C28; }
.chip.is-on { background: #1F2A44; border-color: #1F2A44; color: #fff; }
.count { font-size: 14px; font-weight: 700; color: #5C6578; margin-bottom: 14px; }
.empty { font-size: 16px; color: #5C6578; padding: 24px 0; }
.empty a { color: #F28C28; font-weight: 700; }
.card-img img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { flex-wrap: wrap; }
.tag { background: #F7F3EA; border-radius: 999px; padding: 3px 8px; }
.card[hidden] { display: none; }
.fix-kicker .chip { padding: 5px 11px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; background: #F28C28; border-color: #F28C28; color: #fff; }
.fix-kicker .time { white-space: nowrap; }
.fix-hero-img { margin-bottom: 12px; }
.fix-hero-img img { width: 100%; height: auto; }
.seen { font-size: 13px; color: #5C6578; font-weight: 500; margin-bottom: 28px; }
.seen a { color: #F28C28; font-weight: 700; }
.safety { background: #FFF4E6; border-left: 5px solid #F28C28; border-radius: 12px; padding: 14px 16px; margin: -12px 0 32px; }
.safety strong { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.safety p { font-size: 15px; font-weight: 500; line-height: 1.45; }
.product { grid-template-columns: 1fr; }
.store.primary { background: #F28C28; border-color: #F28C28; }
.btn { display: inline-flex; background: #F28C28; color: #fff; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 999px; }
.btn:hover { background: #dc7a1c; }
.newsletter { background: #1F2A44; color: #F7F3EA; padding: 44px 0; margin-top: 16px; border-bottom: 1px solid rgba(247,243,234,.15); }
.nl-inner { width: min(720px, calc(100% - 40px)); margin: 0 auto; text-align: center; }
.newsletter h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.newsletter p { color: #D9D3C8; font-size: 15px; font-weight: 500; margin: 0 auto 18px; max-width: 34em; }
.fix-main + .site-footer, main + .site-footer { margin-top: 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.footer-nav a { color: #F7F3EA; text-decoration: underline; text-underline-offset: 3px; }
.footer-disclose { color: #F7F3EA; font-weight: 600; }
.prose p { font-size: 16px; color: #2F3A55; margin-bottom: 14px; font-weight: 500; }
.prose h2 { font-size: 20px; margin: 26px 0 10px; }
.prose a { color: #D4701A; font-weight: 700; text-decoration: underline; }
.prose a.btn { color: #fff; text-decoration: none; }
.updated { font-size: 13px !important; color: #5C6578 !important; }
@media (max-width: 900px) {
  .nav { display: flex; gap: 16px; font-size: 13px; }
  .header-row { flex-wrap: wrap; gap: 10px; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 15px; }
  .card p { display: none; }
  .card .meta .tag + .tag { display: none; }
  .fix-main h1 { font-size: 28px; }
}
@media (max-width: 420px) {
  .brand-tag { display: none; }
  .search button { padding: 0 16px; }
  .search input { padding: 14px 16px; font-size: 15px; }
}
