/* ══════════════════════════════════════════════════
   TFC SHOP / PRODUCT ARCHIVE — grid matching tfcpeptides.com/products
   Relies on design tokens + base styles from tfc-home.css / tfc-product.css
   ══════════════════════════════════════════════════ */

body.tfc-shop-page {
  background: var(--tfc-concrete, #e8e8e2);
  color: var(--tfc-ink, #131312);
  font-family: 'Schibsted Grotesk', sans-serif;
}
/* hide Ustone chrome if it leaks */
body.tfc-shop-page .site-header,
body.tfc-shop-page .site-footer,
body.tfc-shop-page #masthead,
body.tfc-shop-page #colophon { display: none !important; }

/* ── CATALOG HERO ── */
.tfc-shop-hero {
  background: var(--tfc-ink, #131312);
  color: var(--tfc-concrete, #e8e8e2);
  border-bottom: 2px solid var(--tfc-ink, #131312);
  padding: 48px 24px 40px;
}
.tfc-shop-hero-inner { max-width: 1280px; margin: 0 auto; }
.tfc-shop-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--tfc-cobalt-light, #6b7cf0); margin: 0 0 10px;
}
.tfc-shop-hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02; margin: 0 0 12px; letter-spacing: -1px;
}
.tfc-shop-sub { font-size: 16px; opacity: .8; margin: 0 0 24px; max-width: 640px; }
.tfc-shop-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.tfc-shop-stat { display: flex; flex-direction: column; }
.tfc-shop-stat strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px; font-weight: 800; color: #fff;
}
.tfc-shop-stat span {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; opacity: .65;
}

/* ── FILTER BAR ── */
.tfc-shop-filters {
  background: var(--tfc-surface, #fbfbf7);
  border-bottom: 1px solid var(--tfc-ink, #131312);
  position: sticky; top: 0; z-index: 40;
}
.tfc-shop-filters-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.tfc-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tfc-filter-tab {
  font-family: 'Space Mono', monospace;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid var(--tfc-ink, #131312);
  color: var(--tfc-ink, #131312); text-decoration: none;
  background: transparent; transition: all .15s;
}
.tfc-filter-tab:hover { background: var(--tfc-ink, #131312); color: var(--tfc-surface, #fbfbf7); }
.tfc-filter-tab.active { background: var(--tfc-cobalt, #1f3ae0); color: #fff; border-color: var(--tfc-cobalt, #1f3ae0); }
.tfc-filter-row--sub { gap: 6px; }
.tfc-filter-chip {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid rgba(19,19,18,.3);
  color: rgba(19,19,18,.7); text-decoration: none; transition: all .15s;
}
.tfc-filter-chip:hover { border-color: var(--tfc-ink, #131312); color: var(--tfc-ink, #131312); }
.tfc-filter-chip.active { background: var(--tfc-ink, #131312); color: var(--tfc-surface, #fbfbf7); border-color: var(--tfc-ink, #131312); }

/* ── MAIN / GRID ── */
.tfc-shop-main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 60px; }
.tfc-shop-count {
  font-family: 'Space Mono', monospace; font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(19,19,18,.6); margin-bottom: 18px;
}
.tfc-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

/* ── PRODUCT CARD ── */
.tfc-shop-card {
  background: var(--tfc-surface, #fbfbf7);
  border: 1px solid var(--tfc-ink, #131312);
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.tfc-shop-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--tfc-ink, #131312);
}
.tfc-shop-card-img {
  display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-bottom: 1px solid var(--tfc-ink, #131312);
  background: #fff;
}
.tfc-shop-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tfc-shop-card-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: rgba(19,19,18,.15);
}
.tfc-shop-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 6px; padding: 10px 12px 0;
}
.tfc-shop-sku {
  font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700;
  letter-spacing: .5px; color: var(--tfc-cobalt, #1f3ae0);
}
.tfc-shop-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tfc-shop-badge {
  font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; padding: 3px 6px;
  border: 1px solid var(--tfc-ink, #131312); line-height: 1;
}
.tfc-shop-badge.stock { background: #e6f4ea; color: #1a7a3a; border-color: #1a7a3a; }
.tfc-shop-badge.new { background: var(--tfc-cobalt, #1f3ae0); color: #fff; border-color: var(--tfc-cobalt, #1f3ae0); }
.tfc-shop-badge.popular { background: #fff2d6; color: #8a5a00; border-color: #8a5a00; }
.tfc-shop-badge.best { background: var(--tfc-ink, #131312); color: #fff; }

.tfc-shop-card-body { display: block; padding: 8px 12px 12px; text-decoration: none; color: inherit; flex: 1; }
.tfc-shop-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px; font-weight: 700; margin: 4px 0 2px; line-height: 1.1;
}
.tfc-shop-spec {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: rgba(19,19,18,.6); margin: 0 0 10px;
}
.tfc-shop-pricing { margin-top: auto; }
.tfc-shop-price-main { display: flex; align-items: baseline; gap: 6px; }
.tfc-shop-price-label {
  font-family: 'Space Mono', monospace; font-size: 10px;
  text-transform: uppercase; color: rgba(19,19,18,.5);
}
.tfc-shop-price-val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--tfc-ink, #131312);
}
.tfc-shop-price-bulk {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: rgba(19,19,18,.7); margin-top: 3px;
}
.tfc-shop-save { color: var(--tfc-cobalt, #1f3ae0); font-weight: 700; }

.tfc-shop-card-actions {
  display: flex; gap: 0; border-top: 1px solid var(--tfc-ink, #131312);
}
/* high specificity to override WooCommerce/Ustone .button defaults */
.tfc-shop-card-actions a.tfc-shop-add,
.tfc-shop-card-actions a.tfc-shop-view {
  flex: 1; text-align: center; padding: 11px 8px !important; text-decoration: none;
  font-family: 'Space Mono', monospace !important; font-size: 11px !important; font-weight: 700 !important;
  letter-spacing: .5px; text-transform: uppercase; transition: all .15s;
  cursor: pointer; border: none; border-radius: 0 !important; margin: 0 !important;
  line-height: 1.2 !important; min-width: 0; width: auto;
}
.tfc-shop-card-actions a.tfc-shop-add {
  background: var(--tfc-cobalt, #1f3ae0) !important; color: #fff !important;
  border-right: 1px solid var(--tfc-ink, #131312) !important;
}
.tfc-shop-card-actions a.tfc-shop-add:hover { background: var(--tfc-ink, #131312) !important; }
.tfc-shop-card-actions a.tfc-shop-add.loading { opacity: .6; pointer-events: none; }
.tfc-shop-card-actions a.tfc-shop-add.added::after { content: ' ✓'; }
.tfc-shop-card-actions a.tfc-shop-view { background: var(--tfc-surface, #fbfbf7) !important; color: var(--tfc-ink, #131312) !important; }
.tfc-shop-card-actions a.tfc-shop-view:hover { background: var(--tfc-ink, #131312) !important; color: var(--tfc-surface, #fbfbf7) !important; }

.tfc-shop-empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  font-family: 'Space Mono', monospace; color: rgba(19,19,18,.5);
}

/* ── PAGINATION ── */
.tfc-shop-pagination { margin-top: 36px; display: flex; justify-content: center; }
.tfc-shop-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.tfc-shop-pagination a, .tfc-shop-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--tfc-ink, #131312); text-decoration: none;
  font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700;
  color: var(--tfc-ink, #131312); background: var(--tfc-surface, #fbfbf7);
  transition: all .15s;
}
.tfc-shop-pagination a:hover { background: var(--tfc-ink, #131312); color: var(--tfc-surface, #fbfbf7); }
.tfc-shop-pagination .current {
  background: var(--tfc-cobalt, #1f3ae0); color: #fff; border-color: var(--tfc-cobalt, #1f3ae0);
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .tfc-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tfc-shop-name { font-size: 15px; }
  .tfc-shop-price-val { font-size: 19px; }
  .tfc-shop-hero { padding: 32px 18px 28px; }
  .tfc-shop-stats { gap: 24px; }
}
@media (max-width: 400px) {
  .tfc-shop-grid { grid-template-columns: 1fr; }
}
