/* ============================================
   BASALT BIO — CATALOG.CSS
   Shop, product detail, protocols, category pages
   ============================================ */

/* ---- Page hero ---- */
.page-hero {
  padding: var(--bb-sp-8) 0 var(--bb-sp-7);
  border-bottom: 1px solid var(--bb-border);
  position: relative;
  overflow: hidden;
}

.page-hero__inner { position: relative; z-index: 2; }

.page-hero__eyebrow {
  font-size: var(--bb-fs-xs);
  text-transform: lowercase;
  letter-spacing: 0.24em;
  color: var(--bb-forest-hot);
  font-weight: 600;
  margin-bottom: var(--bb-sp-4);
}

.page-hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: var(--bb-sp-5);
}

.page-hero__sub {
  max-width: 540px;
  font-size: var(--bb-fs-md);
  color: var(--bb-text-dim);
  line-height: 1.6;
}

/* ---- Filter bar ---- */
.filter-bar {
  position: sticky;
  top: calc(var(--bb-banner-h) + var(--bb-nav-h));
  z-index: 20;
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bb-border);
  padding: var(--bb-sp-4) 0;
}

.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--bb-sp-5);
  flex-wrap: wrap;
}

.filter-bar__filters {
  display: flex;
  gap: var(--bb-sp-2);
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 14px;
  font-size: var(--bb-fs-xs);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.14em;
  border: 1px solid var(--bb-border);
  color: var(--bb-text-dim);
  background: transparent;
  cursor: pointer;
  transition: all var(--bb-dur-fast) var(--bb-ease);
  border-radius: 2px;
}

.filter-chip:hover {
  border-color: var(--bb-border-hot);
  color: var(--bb-text);
}

.filter-chip.active {
  background: var(--bb-forest-hot);
  border-color: var(--bb-forest-hot);
  color: var(--bb-bg);
}

.filter-bar__search {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  position: relative;
  margin-left: auto;
}

.filter-bar__search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bb-surface-2);
  border: 1px solid var(--bb-border);
  color: var(--bb-text);
  font-size: var(--bb-fs-sm);
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: border-color var(--bb-dur-fast) var(--bb-ease);
}

.filter-bar__search input:focus {
  outline: none;
  border-color: var(--bb-forest-hot);
}

.filter-bar__search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--bb-text-muted);
}

/* ---- Shop grid ---- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bb-border);
  border: 1px solid var(--bb-border);
  margin: var(--bb-sp-7) 0;
}

@media (max-width: 900px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shop-grid { grid-template-columns: 1fr; } }

.shop-grid .compound-card { border: none; }

.shop-count {
  font-size: var(--bb-fs-sm);
  color: var(--bb-text-muted);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  padding: var(--bb-sp-5) 0;
}

.shop-empty {
  padding: var(--bb-sp-9) var(--bb-sp-5);
  text-align: center;
  border: 1px dashed var(--bb-border-hot);
}

.shop-empty__title {
  font-size: var(--bb-fs-xl);
  font-weight: 700;
  margin-bottom: var(--bb-sp-3);
}

.shop-empty__body {
  color: var(--bb-text-muted);
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.breadcrumb {
  display: flex;
  gap: var(--bb-sp-2);
  font-size: var(--bb-fs-xs);
  text-transform: lowercase;
  letter-spacing: 0.14em;
  color: var(--bb-text-muted);
  padding: var(--bb-sp-5) 0 var(--bb-sp-4);
  border-bottom: 1px solid var(--bb-border);
}

.breadcrumb a { color: var(--bb-text-muted); transition: color var(--bb-dur-fast) var(--bb-ease); }
.breadcrumb a:hover { color: var(--bb-forest-hot); }
.breadcrumb .sep { color: var(--bb-text-faint); }
.breadcrumb .current { color: var(--bb-text); }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bb-sp-8);
  padding: var(--bb-sp-7) 0 var(--bb-sp-9);
}

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: var(--bb-sp-6); }
}

/* Left: visual / molecule area */
.product-visual {
  position: sticky;
  top: calc(var(--bb-banner-h) + var(--bb-nav-h) + var(--bb-sp-5));
  align-self: start;
  aspect-ratio: 1;
  background:
    radial-gradient(ellipse at center, #1a1510 0%, #0a0908 75%);
  border: 1px solid var(--bb-border);
  border-top: 2px solid var(--bb-forest-hot);
  display: grid;
  place-items: center;
  padding: var(--bb-sp-7);
  position: relative;
  overflow: hidden;
}

.product-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(60deg, var(--bb-forest-hot) 1px, transparent 1px),
    linear-gradient(-60deg, var(--bb-forest-hot) 1px, transparent 1px);
  background-size: 60px 105px;
  opacity: 0.05;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}

.product-visual__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.product-visual__watermark {
  font-size: clamp(2rem, 9vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--bb-forest-hot);
  opacity: 0.15;
  text-transform: lowercase;
}

.product-visual__vial {
  display: inline-block;
  width: 180px;
  height: 260px;
  position: relative;
  margin: var(--bb-sp-6) 0;
}

/* Right: info */
.product-info { display: flex; flex-direction: column; gap: var(--bb-sp-5); }

.product-info__cat { align-self: flex-start; }

.product-info__name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--bb-text);
}

.product-info__sci {
  font-size: var(--bb-fs-md);
  color: var(--bb-text-muted);
  letter-spacing: 0.02em;
}

.product-info__desc {
  font-size: var(--bb-fs-base);
  color: var(--bb-text-dim);
  line-height: 1.7;
  max-width: 520px;
}

.product-info__specs {
  margin-top: var(--bb-sp-3);
  padding: var(--bb-sp-5);
  background: var(--bb-surface-1);
  border: 1px solid var(--bb-border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bb-sp-4);
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec__label {
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.18em;
  color: var(--bb-text-muted);
  font-weight: 600;
}

.spec__value {
  font-size: var(--bb-fs-sm);
  color: var(--bb-text);
  font-weight: 500;
  font-feature-settings: 'tnum';
}

.product-info__coa {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--bb-sp-2);
  padding: 8px 14px;
  border: 1px solid var(--bb-forest-hot);
  color: var(--bb-forest-hot);
  font-size: var(--bb-fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  border-radius: 2px;
}
.product-info__coa svg { width: 14px; height: 14px; }

.product-info__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--bb-sp-4);
  padding-top: var(--bb-sp-4);
  border-top: 1px solid var(--bb-border);
}

.product-info__price {
  font-size: var(--bb-fs-2xl);
  font-weight: 800;
  color: var(--bb-forest-hot);
  letter-spacing: -0.025em;
  font-feature-settings: 'tnum';
}

.product-info__price-size {
  font-size: var(--bb-fs-sm);
  color: var(--bb-text-muted);
  text-transform: lowercase;
  letter-spacing: 0.12em;
}

.product-info__size-picker {
  display: flex;
  gap: var(--bb-sp-2);
  flex-wrap: wrap;
}

.size-option {
  padding: 10px 16px;
  border: 1px solid var(--bb-border);
  font-size: var(--bb-fs-sm);
  color: var(--bb-text);
  cursor: pointer;
  transition: all var(--bb-dur-fast) var(--bb-ease);
  background: transparent;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.size-option:hover { border-color: var(--bb-forest-dim); }
.size-option.active { border-color: var(--bb-forest-hot); background: var(--bb-forest-glow); color: var(--bb-forest-hot); }

.product-info__qty {
  display: flex;
  align-items: center;
  gap: var(--bb-sp-3);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bb-border);
}

.qty-stepper button {
  width: 40px;
  height: 44px;
  color: var(--bb-text-dim);
  font-size: var(--bb-fs-md);
  font-weight: 500;
  transition: color var(--bb-dur-fast);
}
.qty-stepper button:hover { color: var(--bb-forest-hot); }

.qty-stepper input {
  width: 50px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--bb-text);
  font-size: var(--bb-fs-base);
  font-weight: 600;
  height: 44px;
}
.qty-stepper input:focus { outline: none; }

.product-info__cta-row {
  display: flex;
  gap: var(--bb-sp-3);
  margin-top: var(--bb-sp-3);
}

.product-info__cta-row .btn { flex: 1; }

.product-info__disclaimer {
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.14em;
  color: var(--bb-text-faint);
  padding-top: var(--bb-sp-4);
  border-top: 1px solid var(--bb-border);
  line-height: 1.7;
}

.product-info__disclaimer strong { color: var(--bb-forest-dim); font-weight: 600; }

/* Tabs below */
.product-tabs {
  padding: var(--bb-sp-7) 0;
  border-top: 1px solid var(--bb-border);
}

.tabs-nav {
  display: flex;
  gap: var(--bb-sp-5);
  border-bottom: 1px solid var(--bb-border);
  margin-bottom: var(--bb-sp-6);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: var(--bb-sp-4) 0;
  font-size: var(--bb-fs-xs);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.16em;
  color: var(--bb-text-muted);
  position: relative;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--bb-dur-fast);
}

.tab-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--bb-forest-hot);
  transition: width var(--bb-dur) var(--bb-ease);
}

.tab-btn.active { color: var(--bb-forest-hot); }
.tab-btn.active::after { width: 100%; }
.tab-btn:hover { color: var(--bb-text); }

.tab-panel {
  display: none;
  max-width: 720px;
  font-size: var(--bb-fs-base);
  color: var(--bb-text-dim);
  line-height: 1.8;
}
.tab-panel.active { display: block; }

.tab-panel h4 {
  font-size: var(--bb-fs-md);
  color: var(--bb-text);
  margin: var(--bb-sp-5) 0 var(--bb-sp-3);
  letter-spacing: -0.01em;
}

.tab-panel p { margin-bottom: var(--bb-sp-4); }

/* Related */
.related {
  padding: var(--bb-sp-7) 0 var(--bb-sp-9);
  border-top: 1px solid var(--bb-border);
}

/* ============================================
   PROTOCOLS PAGE
   ============================================ */
.protocols-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bb-sp-4);
  padding: var(--bb-sp-7) 0;
}

@media (max-width: 800px) { .protocols-page-grid { grid-template-columns: 1fr; } }

.protocol-card-lg {
  position: relative;
  padding: var(--bb-sp-7);
  background: var(--bb-surface-1);
  border: 1px solid var(--bb-border);
  border-left: 3px solid var(--bb-forest-hot);
  display: flex;
  flex-direction: column;
  gap: var(--bb-sp-5);
  text-decoration: none;
  color: inherit;
  transition: all var(--bb-dur) var(--bb-ease);
  overflow: hidden;
}

.protocol-card-lg::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--bb-forest-glow), transparent 60%);
  opacity: 0;
  transition: opacity var(--bb-dur);
  pointer-events: none;
}

.protocol-card-lg:hover {
  transform: translateX(3px);
  border-color: var(--bb-border-hot);
}
.protocol-card-lg:hover::before { opacity: 1; }

.protocol-card-lg__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--bb-sp-4);
}

.protocol-card-lg__name {
  font-size: var(--bb-fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.protocol-card-lg__tagline {
  font-size: var(--bb-fs-base);
  color: var(--bb-forest-hot);
  font-weight: 500;
  margin-top: var(--bb-sp-2);
}

.protocol-card-lg__objective {
  font-size: var(--bb-fs-sm);
  color: var(--bb-text-dim);
  line-height: 1.7;
}

.protocol-card-lg__components {
  padding: var(--bb-sp-3) var(--bb-sp-4);
  background: var(--bb-bg);
  border: 1px solid var(--bb-border);
  font-size: var(--bb-fs-xs);
  text-transform: lowercase;
  letter-spacing: 0.14em;
  color: var(--bb-text-dim);
  font-weight: 500;
}

.protocol-card-lg__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bb-sp-3);
  margin-top: auto;
  padding-top: var(--bb-sp-3);
}

.protocol-card-lg__price {
  font-size: var(--bb-fs-lg);
  color: var(--bb-forest-hot);
  font-weight: 700;
  font-feature-settings: 'tnum';
}

/* Build your own CTA */
.build-own {
  padding: var(--bb-sp-8) 0;
  text-align: center;
  border-top: 1px solid var(--bb-border);
}
.build-own__title {
  font-size: clamp(1.5rem, 4vw, var(--bb-fs-2xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--bb-sp-3);
}
.build-own__body {
  max-width: 480px;
  margin: 0 auto var(--bb-sp-5);
  color: var(--bb-text-dim);
}

/* ============================================
   PRODUCT DETAIL — PRE-ORDER PRICE CARD
   ============================================ */
.product-info__preorder {
  margin: var(--bb-sp-5) 0;
  padding: var(--bb-sp-5);
  border: 1px solid var(--bb-border);
  border-top: 2px solid var(--bb-forest-hot);
  background: rgba(26, 42, 71, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.product-info__preorder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--bb-sp-4);
}

.product-info__preorder-ship {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--bb-text-dim);
  font-weight: 600;
}

.product-info__preorder-rows {
  display: flex;
  flex-direction: column;
  gap: var(--bb-sp-2);
}

.product-info__preorder-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--bb-fs-sm);
  color: var(--bb-text-dim);
  padding: 6px 0;
}

.product-info__preorder-row > span:last-child {
  font-feature-settings: 'tnum';
  color: var(--bb-text);
  font-weight: 600;
}

.product-info__preorder-strike {
  text-decoration: line-through;
  color: var(--bb-text-muted) !important;
  font-weight: 400 !important;
}

.product-info__preorder-discounted {
  color: var(--bb-forest-hot) !important;
  font-size: var(--bb-fs-md);
  font-weight: 700 !important;
}

.product-info__preorder-row--total {
  padding-top: var(--bb-sp-3);
  border-top: 1px solid var(--bb-border);
  margin-top: 4px;
}

.product-info__preorder-fine {
  font-size: var(--bb-fs-xs);
  letter-spacing: 0.04em;
  color: var(--bb-text-muted);
  text-transform: lowercase;
  line-height: 1.55;
  margin-top: var(--bb-sp-4);
  padding-top: var(--bb-sp-4);
  border-top: 1px solid var(--bb-border);
}
