:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --accent: #0284c7;
  --gold: #d97706;
  --emerald: #059669;
  --navy: #0b132b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Sticky Entity & TikTok Verification Ribbon */
.entity-verification-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, #0b132b 0%, #172554 55%, #0f172a 100%);
  color: #e2e8f0;
  font-size: 12px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  padding: 8px 16px;
}
.evb-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.evb-left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.evb-badge {
  background: rgba(29, 78, 216, 0.45);
  border: 1px solid #60a5fa;
  color: #eff6ff;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.evb-tiktok {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid #fbbf24;
  color: #fef3c7;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.evb-meta { color: #cbd5e1; }
.evb-meta strong { color: #ffffff; }

/* Header & Navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 36px;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}
.brand-text strong { display: block; font-size: 15.5px; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand-text span { display: block; font-size: 11px; color: var(--muted); font-weight: 500; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; }
.nav-links a {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.nav-links a:hover, .nav-links a.active {
  background: #eff6ff;
  color: var(--primary);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border-color: #cbd5e1; color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.cart-pill {
  background: #0f172a;
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0b132b 0%, #1e3a8a 60%, #1d4ed8 100%);
  color: #fff;
  padding: 52px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.35);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #dbeafe;
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero p.lead {
  color: #dbeafe;
  font-size: 16px;
  margin: 0 0 24px;
  max-width: 600px;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric-box {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
}
.metric-box strong { display: block; font-size: 20px; color: #ffffff; }
.metric-box span { font-size: 11.5px; color: #bfdbfe; }

.hero-showcase {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(8px);
}
.hero-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-photo-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  color: var(--ink);
}
.hero-photo-card img {
  width: 100%;
  height: 136px;
  object-fit: cover;
}
.hero-photo-card .cap {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-photo-card .cap span { color: var(--primary); }

/* Trust & Compliance Strip */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}
.trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.trust-item strong { display: block; color: var(--ink); font-size: 13.5px; }
.trust-item span { color: var(--muted); font-size: 12px; }

/* Sections & Cards */
.section { padding: 48px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); font-size: 14.5px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-img-wrap {
  position: relative;
  height: 220px;
  background: #f1f5f9;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grade-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
}
.stock-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
}
.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 4px;
}
.product-title { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.product-specs {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 14px;
  flex: 1;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.price { font-size: 20px; font-weight: 800; color: var(--ink); }
.price small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

/* Account Linkage & Page Hero */
.page-hero {
  background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  padding: 40px 0;
}
.page-hero h1 { margin: 0 0 8px; font-size: 32px; }
.page-hero p { margin: 0; color: #cbd5e1; max-width: 780px; }

.account-linkage-callout {
  background: #eff6ff;
  border: 2px solid #2563eb;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.account-linkage-callout h3 { margin: 0 0 6px; font-size: 17px; color: #1e3a8a; }
.account-linkage-callout p { margin: 0; font-size: 13.5px; color: #1e293b; }
.linkage-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.linkage-pill {
  background: #1e3a8a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
}

/* Tables & Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.kpi-card .label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.kpi-card .val { font-size: 26px; font-weight: 800; color: var(--ink); margin: 6px 0 4px; }
.kpi-card .sub { font-size: 12.5px; color: var(--emerald); font-weight: 600; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.data-table th, table.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
table.data-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr.total-row td {
  background: #eff6ff;
  font-weight: 800;
  color: #1e3a8a;
  border-top: 2px solid #93c5fd;
}

.bar-row { margin-bottom: 14px; }
.bar-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bar-track { height: 11px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #1d4ed8, #0ea5e9); border-radius: 999px; }

/* Reviews */
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.stars { color: #10b981; font-weight: 800; letter-spacing: 2px; font-size: 15px; margin-bottom: 8px; }
.review-meta { font-size: 12px; color: var(--muted); margin-top: 12px; display: flex; justify-content: space-between; }

/* Order Tracking Box */
.track-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.track-box input {
  flex: 1;
  min-width: 240px;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
}
.track-result {
  width: 100%;
  font-size: 13.5px;
  padding: 12px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 10px;
  display: none;
}

/* Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 90;
  display: none;
  justify-content: flex-end;
}
.drawer-backdrop.open { display: flex; }
.drawer-panel {
  width: 380px;
  max-width: 100%;
  background: #fff;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Footer */
.site-footer {
  background: #0b132b;
  color: #cbd5e1;
  padding: 46px 0 28px;
  margin-top: 48px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a:hover { color: #60a5fa; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 960px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .product-grid, .trust-grid, .footer-grid, .hero-metrics {
    grid-template-columns: 1fr;
  }
}
