/* EmaRob Certified Mobile V5 — Dark Obsidian / Steel Executive Storefront */
:root {
  --bg-canvas: #090D16;
  --bg-surface: #0F172A;
  --bg-surface-2: #131C2E;
  --bg-topbar: #05080F;
  --bg-header: #0B1120;
  --border-subtle: #1E293B;
  --border-strong: #334155;
  --cyan-primary: #0284C7;
  --cyan-bright: #38BDF8;
  --emerald: #10B981;
  --emerald-deep: #059669;
  --amber: #F59E0B;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background-color: #090D16;
  color: #F8FAFC;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: "JetBrains Mono", "Consolas", "SFMono-Regular", monospace; }
.text-cyan { color: #38BDF8; }
.text-emerald { color: #10B981; }
.text-amber { color: #F59E0B; }

.container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Compliance Bar */
.compliance-bar {
  background-color: #05080F;
  border-bottom: 1px solid #1E293B;
  padding: 7px 0;
  font-size: 11.5px;
  color: #94A3B8;
}
.compliance-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.compliance-inner strong { color: #E2E8F0; font-weight: 700; }

/* Main Header */
.site-header {
  background-color: #0B1120;
  border-bottom: 1px solid #1E293B;
  padding: 11px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-crest {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0284C7 0%, #0F172A 100%);
  border: 1.5px solid #38BDF8;
  color: #F8FAFC;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.4px;
}
.brand-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.3px;
  line-height: 1.15;
}
.brand-text span {
  display: block;
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.nav-links a {
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #CBD5E1;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
  background: #131C2E;
  color: #F8FAFC;
}
.nav-links a.active {
  background: #131C2E;
  color: #38BDF8;
  border: 1px solid #0284C7;
}
.header-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.pill-emerald {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid #059669;
  color: #34D399;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 8px;
  white-space: nowrap;
}
.pill-cyan {
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid #0284C7;
  color: #38BDF8;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 8px;
  white-space: nowrap;
}
.basket-btn {
  background: #0284C7;
  border: 1px solid #38BDF8;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.basket-count {
  background: #090D16;
  color: #38BDF8;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
}

/* Hero Executive Card (Home /) */
.hero-wrap { padding: 18px 0 14px; }
.hero-card {
  background: linear-gradient(135deg, #0F172A 0%, #131D33 65%, #0D1628 100%);
  border: 1px solid #263449;
  border-radius: 14px;
  padding: 24px 30px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.hero-eyebrow {
  display: inline-block;
  background: #0284C7;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.hero-title {
  font-size: 31px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.4px;
  line-height: 1.18;
  margin-bottom: 8px;
}
.hero-sub {
  font-size: 14px;
  color: #CBD5E1;
  max-width: 1080px;
  line-height: 1.52;
  margin-bottom: 16px;
}
.hero-sub strong { color: #F8FAFC; }
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kpi-box {
  background: #090D16;
  border: 1px solid #1E293B;
  border-radius: 10px;
  padding: 13px 16px;
  text-align: center;
}
.kpi-val {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 3px;
}
.kpi-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Section Headers */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head h1, .section-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: -0.25px;
}
.section-head p {
  font-size: 13px;
  color: #94A3B8;
  margin-top: 2px;
}

/* Product Cards */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.sku-card {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.sku-card:hover { border-color: #38BDF8; }
.sku-img-wrap {
  background: #090D16;
  padding: 10px 10px 0;
}
.sku-img-wrap img {
  width: 100%;
  height: 152px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  border: 1px solid #1E293B;
}
.sku-body {
  padding: 11px 14px 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sku-badges-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.badge-grade {
  background: #059669;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 5px;
}
.badge-code {
  font-size: 10.5px;
  color: #94A3B8;
  font-weight: 600;
}
.sku-title {
  font-size: 15px;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 3px;
  line-height: 1.25;
}
.sku-meta {
  font-size: 11.5px;
  color: #94A3B8;
  margin-bottom: 10px;
  line-height: 1.38;
}
.sku-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #1E293B;
}
.sku-price {
  font-size: 18px;
  font-weight: 900;
  color: #38BDF8;
}
.sku-rrp {
  font-size: 11.5px;
  color: #64748B;
  text-decoration: line-through;
  margin-left: 5px;
}
.stock-pill {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid #059669;
  color: #34D399;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.add-bag-btn {
  background: #0284C7;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.add-bag-btn:hover { background: #0369A1; }

/* Dark Obsidian Elevated Panel */
.obs-panel {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 18px 22px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.data-table th {
  text-align: left;
  padding: 8px 11px;
  background: #131C2E;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #334155;
}
.data-table td {
  padding: 8px 11px;
  color: #E2E8F0;
  border-bottom: 1px solid #1E293B;
}
.data-table tr.total-row td {
  background: #131C2E;
  color: #38BDF8;
  font-weight: 800;
  border-top: 1px solid #0284C7;
  border-bottom: none;
}

/* Split Portal Cards (/sales top view for 02) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.portal-card {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 13px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.portal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pill-ebay {
  background: #0284C7;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 6px;
}
.pill-tp {
  background: #10B981;
  color: #052E16;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 6px;
}
.portal-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.portal-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.portal-meta {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.45;
  margin-bottom: 13px;
}
.portal-meta strong { color: #E2E8F0; }
.ebay-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 14px;
}
.ebay-kpi-box {
  background: #090D16;
  border: 1px solid #1E293B;
  border-radius: 9px;
  padding: 13px 12px;
  text-align: center;
}
.ebay-kpi-val {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 3px;
}
.ebay-kpi-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.fb-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 10px 0 8px;
}
.fb-card {
  background: #090D16;
  border: 1px solid #1E293B;
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 8px;
}
.fb-card:last-child { margin-bottom: 0; }
.fb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 3px;
}
.fb-copy {
  font-size: 11.5px;
  color: #94A3B8;
  line-height: 1.4;
}

/* Filter Bar (/collections) */
.filter-bar {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  background: #131C2E;
  border: 1px solid #334155;
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 7px;
  cursor: pointer;
}
.filter-btn.active {
  background: #0284C7;
  border-color: #38BDF8;
  color: #FFFFFF;
}

/* Reviews (/reviews) */
.tp-banner {
  background: linear-gradient(135deg, #0F172A 0%, #131E33 100%);
  border: 1px solid #263449;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.tp-score-num {
  font-size: 38px;
  font-weight: 900;
  color: #10B981;
  line-height: 1;
}
.tp-star-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #00B67A;
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
}
.review-card {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 11px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}
.review-body {
  font-size: 12.5px;
  color: #CBD5E1;
  line-height: 1.5;
  margin: 8px 0 12px;
  flex: 1;
}
.review-foot {
  border-top: 1px solid #1E293B;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748B;
}

/* Footer */
.site-footer {
  background: #05080F;
  border-top: 1px solid #1E293B;
  padding: 28px 0 18px;
  margin-top: 40px;
  font-size: 12.5px;
  color: #94A3B8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 24px;
  margin-bottom: 18px;
}
.footer-grid h4 {
  color: #F8FAFC;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 4px; }
.footer-grid a:hover { color: #38BDF8; }
.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 10px;
}

/* Basket Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.78);
  display: none;
  justify-content: flex-end;
  z-index: 9999;
}
.drawer-backdrop.open { display: flex; }
.drawer-panel {
  width: 390px;
  max-width: 94vw;
  background: #0F172A;
  border-left: 1px solid #334155;
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
