/* ==========================================================================
   TITAN CARDS LTD - Official E-Commerce Storefront
   High-Contrast, Machine-Readable, OCR-Friendly E-Commerce Design Standard
   CRN: 11950585 | SIC: 47910 | Sutton Coldfield, West Midlands
   ========================================================================== */

:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --dark-slate: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --bg-page: #ffffff;
  --bg-card: #f8fafc;
  --badge-green: #15803d;
  --badge-green-bg: #dcfce7;
  --accent-gold: #b45309;
}

* {
  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;
}

/* Top Compliance & Audit Notification Bar */
.top-notice-bar {
  background-color: var(--dark-slate);
  color: #f1f5f9;
  font-size: 13px;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  flex-wrap: wrap;
  gap: 8px;
}

.notice-entity {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.notice-entity strong {
  color: #38bdf8;
}

.notice-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #4ade80;
}

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

/* Main Navigation */
.header-main {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.brand-logo-icon {
  background: var(--primary);
  color: #ffffff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 800;
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark-slate);
  margin: 0;
}

.brand-text p {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 4px;
  transition: color 0.15s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

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

.currency-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-slate);
}

.cart-btn {
  background: var(--dark-slate);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Machine-Readable Audit Data Table */
.audit-container {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
}

.audit-table-wrap {
  background: #ffffff;
  border: 2px solid var(--border-dark);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.audit-table-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-slate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.audit-spec-table th {
  background-color: #f1f5f9;
  color: var(--dark-slate);
  font-weight: 700;
  width: 20%;
}

.audit-spec-table td {
  color: var(--text-main);
  width: 30%;
  background-color: #ffffff;
}

.badge-active {
  display: inline-block;
  background: var(--badge-green-bg);
  color: var(--badge-green);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

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

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  width: fit-content;
}

.hero-heading {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark-slate);
  letter-spacing: -0.5px;
}

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

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

.kpi-box {
  display: flex;
  flex-direction: column;
}

.kpi-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}

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

.btn-secondary {
  background: #ffffff;
  color: var(--dark-slate);
  border: 1px solid var(--border-dark);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Hero Showcase Card */
.hero-slab-card {
  background: #ffffff;
  border: 2px solid var(--border-dark);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.cert-pill {
  background: #f1f5f9;
  border: 1px solid var(--border-dark);
  color: var(--dark-slate);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.slab-img-box {
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

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

.slab-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 6px;
}

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

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

.slab-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}

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

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

.section-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-slate);
}

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

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

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: var(--primary);
}

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

.card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

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

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 8px;
  line-height: 1.3;
}

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

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

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

.card-details-table td:last-child {
  color: var(--dark-slate);
  font-weight: 600;
  text-align: right;
}

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

.card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

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

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

/* Dispatch Ledger Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid var(--border-dark);
}

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

.data-table th {
  background: #f8fafc;
  color: var(--dark-slate);
  font-weight: 700;
}

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

.code-pill {
  font-family: monospace;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: #0369a1;
}

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

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

.review-stars {
  color: #059669;
  font-size: 16px;
  letter-spacing: 2px;
}

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

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

/* Footer */
.footer-main {
  background: var(--dark-slate);
  color: #94a3b8;
  font-size: 13px;
  padding: 48px 24px 24px;
  border-top: 2px solid #334155;
  margin-top: 60px;
}

.footer-container {
  max-width: 1280px;
  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-col h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 10px;
}

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

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

.footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: #38bdf8;
}

.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

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