/* Scatalog-specific styles. Loaded after /v2/style.css.
   Inherits the brutalist palette: --paper white, --ink charcoal, --bob navy.
   GET ORDAINED button stays red. */

/* ---------- Hero ---------- */
.scatalog-hero {
  padding: 60px 20px 40px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(0,0,0,0.025) 22px 23px),
    var(--paper);
  border-bottom: var(--rule);
}
.scatalog-hero h1 {
  font-size: clamp(56px, 12vw, 140px);
  margin: 0 auto 18px;
  max-width: 12ch;
  line-height: 0.95;
}
.scatalog-lede {
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: clamp(17px, 2.2vw, 21px);
}

/* ---------- TOC (sticky horizontal scroller) ---------- */
.scatalog-toc {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
}
.toc-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.toc-inner::-webkit-scrollbar { display: none; }
.toc-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  color: var(--paper);
  text-decoration: none;
  font-family: "Impact", "Haettenschweiler", sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
  transition: background 80ms, color 80ms;
}
.toc-link:hover, .toc-link:focus { background: var(--bob); color: #fff; }
.toc-link.active { background: var(--bob); color: #fff; }
.toc-count {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0;
}
.toc-link.active .toc-count { background: rgba(255,255,255,0.25); }

/* ---------- Category sections ---------- */
.cat-section {
  padding: 60px 20px;
  border-bottom: var(--rule);
  scroll-margin-top: 60px;       /* offset for sticky TOC */
}
.cat-header {
  text-align: center;
  margin-bottom: 40px;
}
.cat-header h2 {
  font-size: clamp(40px, 7vw, 72px);
  margin: 0 auto 12px;
  max-width: 14ch;
  line-height: 1;
}
.cat-blurb {
  max-width: 50ch;
  margin: 0 auto;
  font-style: italic;
  font-size: clamp(15px, 1.8vw, 18px);
  color: #555;
}

/* The Vault gets a slightly different background to feel archival */
.cat-vault {
  background: #f0ece4;       /* warm cream tone */
}
.cat-vault .cat-blurb { color: #6a5d44; font-style: italic; }
.cat-vault .card { background: #fffbf2; border-color: #4a3f2a; box-shadow: 6px 6px 0 #4a3f2a; }

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 980px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* ---------- Individual card ---------- */
.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-img {
  display: block;
  background: #faf8f4;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  text-decoration: none;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.card-img.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-style: italic;
  font-size: 13px;
}

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

.card-title {
  font-family: "Impact", "Haettenschweiler", sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.01em;
}
.card-price {
  font-family: "Impact", sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  color: #e63946;
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1;
}
.card-note, .card-intl {
  font-size: 13px;
  color: #555;
  font-style: italic;
  margin: 0;
  line-height: 1.4;
}
.card-intl { color: var(--bob); font-style: normal; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

.card-form { margin: 12px 0 0; }
.card-buy {
  display: block;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 12px 14px;
  font-family: "Impact", sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 80ms;
}
.card-buy:hover, .card-buy:focus {
  background: #e63946;
  color: #fff;
}

/* ---------- Floating "View Cart" button ---------- */
.viewcart-float {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  margin: 0;
}
.viewcart-float button {
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 20px;
  font-family: "Impact", sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 80ms;
}
.viewcart-float button:hover, .viewcart-float button:focus {
  background: #e63946;
  border-color: var(--ink);
}
.viewcart-float button:active {
  transform: translate(2px, 2px);
}

@media (max-width: 720px) {
  /* On mobile, center the view-cart button at top of the social row area */
  .viewcart-float {
    bottom: 158px;     /* clears the social-floater + sticky-cta room (we don't have a sticky CTA on this page but social row is 90px up) */
    left: 16px;
  }
  .viewcart-float button { padding: 10px 16px; font-size: 14px; }
}
@media (max-width: 480px) {
  .viewcart-float button { font-size: 13px; padding: 9px 13px; }
}

/* ===== scatalog v2: socials and view-cart re-positioned for no-sticky-CTA page ===
   The shared v2/style.css positions the social floater at bottom:90px on
   mobile assuming a sticky GET ORDAINED button is sitting at bottom:16px.
   The scatalog page has NO sticky CTA (it's a catalog, not a single-button
   page), so the 90px gap was visible empty space. Drop everything to the
   floor here. */

@media (max-width: 720px) {
  /* Socials: bottom row, just above where the view-cart button would land */
  .socials {
    bottom: 16px !important;
    left: 78px !important;            /* leaves room for VIEW CART button on the left */
    right: 16px !important;
  }
  /* View Cart: bottom-left corner, square footprint */
  .viewcart-float {
    bottom: 16px !important;
    left: 16px !important;
  }
  .viewcart-float button {
    padding: 12px 14px;
    font-size: 13px;
  }
  /* Footer doesn't need 160px of bottom padding now since stuff sits at 16px */
  footer { padding-bottom: 90px !important; }
}

@media (max-width: 480px) {
  /* On narrow phones the 5 social icons + VIEW CART would crowd. Stack: 
     - VIEW CART along the left
     - socials taking the rest of the row, slightly tighter */
  .socials a { width: 38px; height: 38px; }
  .socials { gap: 6px; }
  .viewcart-float button { padding: 10px 12px; font-size: 12px; }
}
