/* ===== TOKENS ===== */
:root {
  --c-text:         #1c1a17;
  --c-text-muted:   #6b6660;
  --c-surface:      #ffffff;
  --c-surface-alt:  #f7f4f0;
  --c-surface-dark: #1c1a17;
  --c-border:       #e4dfd8;
  --c-accent:       #b5341c;
  --c-accent-dark:  #8c2714;
  --c-accent-text:  #ffffff;
  --c-instock:      #2d7a45;
  --c-outofstock:   #8a8480;
  --c-badge-bg:     #f0ede8;

  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 12px;

  --shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.08);

  --max-w: 1360px;
  --max-w-text: 740px;

  --transition: 180ms ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ===== LAYOUT HELPERS ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 640px)  { .container { padding-inline: var(--sp-6); } }
@media (min-width: 1024px) { .container { padding-inline: var(--sp-10); } }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--c-surface-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: 60px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span {
  color: var(--c-accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.site-nav::-webkit-scrollbar { display: none; }
.nav-link {
  color: rgba(255,255,255,.78);
  font-size: .875rem;
  font-weight: 500;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.btn-contact {
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-contact:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* ===== HERO ===== */
.hero {
  background: var(--c-surface-dark);
  color: #fff;
  padding: var(--sp-16) 0 var(--sp-12);
  text-align: center;
}
.hero-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--sp-5);
  max-width: 760px;
  margin-inline: auto;
}
.hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
  line-height: 1.7;
}
.hero-cta-group {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: .9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  line-height: 1;
  text-align: center;
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--c-accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline-dark {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.btn-outline-dark:hover { border-color: var(--c-text); }
.btn-disabled {
  background: var(--c-badge-bg);
  color: var(--c-text-muted);
  border: 1.5px solid var(--c-border);
  cursor: not-allowed;
  opacity: .75;
}
.btn-sm { font-size: .8125rem; padding: 0.5rem 1rem; }
.btn-full { width: 100%; }

/* ===== CATEGORY BAND (homepage) ===== */
.cat-band {
  padding: var(--sp-16) 0;
}
.cat-band + .cat-band { border-top: 1px solid var(--c-border); }
.cat-band.alt-bg { background: var(--c-surface-alt); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}
.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-2);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
}
.section-see-all {
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-accent);
  white-space: nowrap;
  transition: color var(--transition);
}
.section-see-all:hover { color: var(--c-accent-dark); }

/* ===== CATEGORY CARDS (homepage big cards) ===== */
.cat-card-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .cat-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-card-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); } }

.cat-card {
  position: relative;
  background: var(--c-badge-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  aspect-ratio: 3/4;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
}
.cat-card-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  color: #fff;
}
.cat-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: var(--sp-1);
}
.cat-card-count {
  font-size: .75rem;
  color: rgba(255,255,255,.7);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }
@media (min-width: 900px)  { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--c-surface-alt);
  aspect-ratio: 1 / 1;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--sp-3);
  transition: transform 240ms ease;
}
.product-card:hover .product-card-img { transform: scale(1.04); }

/* Grids of mostly wide signs (street signs are 32" x 6"). A square frame left the
   sign as a thin strip, so these grids use wider cards with a 2:1 frame. */
.product-grid--wide { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .product-grid--wide { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .product-grid--wide { grid-template-columns: repeat(3, 1fr); } }
.product-grid--wide .product-card-img-wrap { aspect-ratio: 2 / 1; }
.product-grid--wide .product-card-img { padding: var(--sp-2); }
.product-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-2);
  color: var(--c-text-muted);
  font-size: .8125rem;
}
.placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: .3;
}
.badge-outofstock {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.85);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}
.badge-needs-image {
  position: absolute;
  bottom: var(--sp-2);
  left: var(--sp-2);
  background: #f0c040;
  color: #5a4200;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
}
.product-card-body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-2);
}
.product-card-title {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.product-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-accent);
}
.product-card-sku {
  font-size: .7rem;
  color: var(--c-text-muted);
}

/* ===== PRODUCT PAGE ===== */
.product-page {
  padding: var(--sp-10) 0 var(--sp-16);
}
.product-layout {
  display: grid;
  gap: var(--sp-10);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 768px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: var(--sp-12); }
}
@media (min-width: 1024px) {
  .product-layout { grid-template-columns: 5fr 4fr; gap: var(--sp-16); }
}
.product-img-wrap {
  position: sticky;
  top: 80px;
  background: var(--c-surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--sp-8);
}
/* A wide sign sets the frame's shape itself, so there is no empty square around it. */
.product-img-wrap:has(.product-img-main--wide) { aspect-ratio: auto; }
.product-img-main--wide { height: auto; padding: var(--sp-4); }
.product-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-text-muted);
  padding: var(--sp-16);
  text-align: center;
}
.product-details { display: flex; flex-direction: column; gap: var(--sp-5); }
.product-breadcrumb {
  font-size: .8125rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.product-breadcrumb a { color: var(--c-accent); }
.product-breadcrumb a:hover { text-decoration: underline; }
.product-breadcrumb span { opacity: .5; }
.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
}
.product-price-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
}
.product-stock {
  font-size: .8125rem;
  font-weight: 600;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 20px;
}
.stock-in  { background: #e6f4eb; color: var(--c-instock); }
.stock-out { background: var(--c-badge-bg); color: var(--c-outofstock); }
.product-desc {
  font-size: .9375rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-4);
}
.product-desc strong { color: var(--c-text); }
.product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.spec-item {
  background: var(--c-surface-alt);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
}
.spec-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c-text-muted); margin-bottom: var(--sp-1); }
.spec-value { font-size: .9375rem; font-weight: 600; }
.buy-section { display: flex; flex-direction: column; gap: var(--sp-3); }
.buy-note {
  font-size: .8125rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.product-cats {
  font-size: .8125rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-4);
}
.product-cats a {
  color: var(--c-accent);
  font-weight: 500;
}
.product-cats a:hover { text-decoration: underline; }

/* ===== CATEGORY PAGE ===== */
.cat-page { padding: var(--sp-10) 0 var(--sp-16); }
.cat-page-head { margin-bottom: var(--sp-8); }
.cat-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  margin-bottom: var(--sp-2);
}
.cat-page-desc {
  font-size: 1rem;
  color: var(--c-text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.cat-page-meta {
  font-size: .875rem;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: var(--sp-5);
}
.cat-page-meta strong { color: var(--c-text); }
.subcats {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}
.subcat-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-text);
  transition: all var(--transition);
}
.subcat-pill:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.subcat-pill-count { color: var(--c-text-muted); font-weight: 400; }
.subcat-pill:hover .subcat-pill-count { color: rgba(255,255,255,.7); }

/* ===== CONTENT PAGES ===== */
.content-page { padding: var(--sp-12) 0 var(--sp-16); }
.content-page-inner { max-width: var(--max-w-text); }
.content-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin-bottom: var(--sp-6);
}
.content-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}
.content-body p { margin-bottom: var(--sp-4); color: var(--c-text-muted); line-height: 1.75; }
.content-body a { color: var(--c-accent); text-decoration: underline; }
.content-body ul { margin-bottom: var(--sp-4); padding-left: var(--sp-5); }
.content-body li { margin-bottom: var(--sp-2); color: var(--c-text-muted); line-height: 1.7; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; gap: var(--sp-10); }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-5); }
.contact-item-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-1);
}
.contact-item-value { font-size: 1rem; font-weight: 600; }
.contact-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.form-label { font-size: .875rem; font-weight: 600; display: block; margin-bottom: var(--sp-2); }
.form-input, .form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  font: inherit;
  font-size: .9375rem;
  transition: border-color var(--transition);
  background: var(--c-surface);
  color: var(--c-text);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--c-accent);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: var(--c-surface-alt);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-3) 0;
}
.breadcrumb {
  font-size: .8125rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: .4; font-size: .7rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--c-surface-dark);
  color: rgba(255,255,255,.65);
  padding: var(--sp-12) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: var(--sp-3);
}
.footer-brand-tagline {
  font-size: .875rem;
  line-height: 1.65;
  max-width: 300px;
}
.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: var(--sp-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-link {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-copy { font-size: .8125rem; }
.footer-made { font-size: .8125rem; }

/* ===== PAGE BANNER ===== */
.page-banner {
  background: var(--c-surface-dark);
  color: #fff;
  padding: var(--sp-10) 0 var(--sp-8);
}
.page-banner-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}
.page-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: var(--sp-3);
}
.page-banner-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  max-width: 560px;
}

/* ===== UTILS ===== */
.text-muted { color: var(--c-text-muted); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
