/* ==========================================================================
   BATH TCG LTD - Machine-Scannable Registry & Storefront Standard
   CRN: 14183067 | SIC: 47650 | 4 Victoria Buildings, Bath, BA2 3EH
   Optimized for Automated Web Parsers, OCR Systems, and Official Verification
   ========================================================================== */

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --blue-primary: #0284c7;
  --blue-hover: #0369a1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-strong: #94a3b8;
  --border-light: #cbd5e1;
  --bg-page: #ffffff;
  --bg-alt: #f8fafc;
  --green-verified: #15803d;
  --green-bg: #dcfce7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 1. Official Government & Commercial Verification Strip */
.gov-compliance-strip {
  background-color: #0b0c0c;
  color: #ffffff;
  font-size: 13px;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--blue-primary);
  flex-wrap: wrap;
  gap: 10px;
}

.gov-compliance-strip a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4ade80;
  font-weight: 700;
  font-size: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
}

/* 2. Primary Navigation Bar */
.main-nav-bar {
  background: #ffffff;
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.brand-logo-box {
  background: var(--navy);
  color: #ffffff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  border-radius: 4px;
  border: 2px solid var(--blue-primary);
}

.brand-info h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.brand-info p {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-btn {
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.nav-btn:hover, .nav-btn.active {
  background: var(--bg-alt);
  border-color: var(--border-light);
  color: var(--blue-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.currency-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 4px;
}

.cart-link {
  background: var(--navy);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* 3. Machine-Scannable OCR Audit Matrix */
.audit-matrix-section {
  max-width: 1320px;
  margin: 20px auto 0;
  padding: 0 24px;
}

.matrix-container {
  background: #ffffff;
  border: 2px solid var(--navy);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 24px;
}

.matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.matrix-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-verified {
  background: var(--green-bg);
  color: var(--green-verified);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--green-verified);
  border-radius: 4px;
}

.ocr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ocr-table th, .ocr-table td {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  text-align: left;
}

.ocr-table th {
  background-color: #f1f5f9;
  color: var(--navy);
  font-weight: 800;
  width: 22%;
}

.ocr-table td {
  color: var(--text-main);
  width: 28%;
}

.mono-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #0369a1;
}

/* 4. Hero Section */
.hero-layout {
  max-width: 1320px;
  margin: 0 auto 36px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 4px;
  width: fit-content;
}

.hero-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.hero-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  margin: 8px 0;
}

.kpi-card h4 {
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
}

.kpi-card p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.cta-group {
  display: flex;
  gap: 16px;
}

.btn-solid {
  background: var(--navy);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-solid:hover {
  background: var(--blue-primary);
}

.btn-outline {
  background: #ffffff;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 5. Hero Product Slab Card */
.hero-slab-showcase {
  background: #ffffff;
  border: 2px solid var(--navy);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.slab-status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.slab-photo-wrap {
  width: 100%;
  height: 380px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.slab-photo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.slab-meta-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.slab-meta-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.slab-price-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.slab-amount {
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
}

/* 6. Product Grid Catalog */
.content-section {
  max-width: 1320px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.content-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
}

.content-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.grid-catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.slab-item-card {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.slab-item-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.slab-thumbnail {
  width: 100%;
  height: 240px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.slab-thumbnail img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.slab-tag-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.slab-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.spec-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 12px;
}

.spec-grid-table td {
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
}

.spec-grid-table td:first-child {
  color: var(--text-muted);
  width: 45%;
}

.spec-grid-table td:last-child {
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}

.card-action-bar {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
}

.card-unit-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
}

.btn-buy-mini {
  background: var(--navy);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.btn-buy-mini:hover {
  background: var(--blue-primary);
}

/* 7. Data Tables (Ledger, Reviews, SOP) */
.full-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
}

.full-data-table th, .full-data-table td {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  text-align: left;
}

.full-data-table th {
  background: #f8fafc;
  color: var(--navy);
  font-weight: 800;
}

.full-data-table tr:nth-child(even) {
  background: #fbfcfe;
}

/* 8. Reviews Grid */
.reviews-grid-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-cell {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stars-row {
  color: #059669;
  font-size: 16px;
  font-weight: 700;
}

.review-quote {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
}

.review-signature {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
}

/* 9. Official Footer */
.footer-strip {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 13px;
  padding: 48px 24px 24px;
  border-top: 3px solid var(--blue-primary);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #334155;
}

.footer-block h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-block p {
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-block ul {
  list-style: none;
}

.footer-block ul li {
  margin-bottom: 8px;
}

.footer-block ul li a {
  color: #93c5fd;
  text-decoration: none;
}

.footer-bottom-line {
  max-width: 1320px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; }
  .grid-catalog { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-catalog, .reviews-grid-box { grid-template-columns: 1fr; }
  .ocr-table th, .ocr-table td { display: block; width: 100%; }
}
