/* PureCheckHQ Design System - Clinical Review Authority */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #94a3b8;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-sm: 6px;
  --max-w: 1200px;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6, p, a, span {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Header & Navigation */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.brand span.accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.top-alert-bar {
  background: var(--primary);
  color: #94a3b8;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.4rem 1rem;
  letter-spacing: 0.01em;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.top-alert-bar strong {
  color: #38bdf8;
}

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent-hover);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid #a7f3d0;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-badge-item svg {
  color: var(--accent);
}

/* Category Filters */
.category-filter-wrap, .category-filter-bar, .pills-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  padding: 1rem 0;
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.category-filter-wrap::-webkit-scrollbar,
.category-filter-bar::-webkit-scrollbar,
.pills-container::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
  width: 100%;
  box-sizing: border-box;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-light);
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}
.card-title a:hover {
  color: var(--accent);
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--warning);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.star-rating span.review-count {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.card-tag {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-footer {
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.price-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 2px 4px rgb(16 185 129 / 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 8px rgb(16 185 129 / 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-page);
  border-color: var(--border-focus);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 10px;
}

/* Callouts & Warnings */
.counterfeit-alert {
  background: var(--danger-light);
  border-left: 4px solid var(--danger);
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.75rem 0;
  color: #7f1d1d;
  font-size: 0.95rem;
  line-height: 1.5;
}

.counterfeit-alert strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #991b1b;
}

.guarantee-callout {
  background: var(--accent-light);
  border: 1px solid #a7f3d0;
  padding: 1.25rem;
  border-radius: var(--radius);
  margin: 1.75rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.guarantee-icon {
  font-size: 2.25rem;
}

.guarantee-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 0.2rem;
}

.guarantee-text p {
  font-size: 0.88rem;
  color: #047857;
}

/* Tables */
/* Specifications Box & Tables */
.specifications-box {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0 2.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

table.spec-table, .specifications-box table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
  background: #fff;
}

table.spec-table th, table.spec-table td,
.specifications-box table th, .specifications-box table td {
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  vertical-align: top;
}

table.spec-table th, .specifications-box table th {
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  width: 35%;
}

table.spec-table td, .specifications-box table td {
  width: 65%;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.55;
}

table.spec-table tr:last-child td, .specifications-box table tr:last-child td,
table.spec-table tr:last-child th, .specifications-box table tr:last-child th {
  border-bottom: none;
}

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  box-sizing: border-box;
}

.comparison-summaries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
  width: 100%;
  box-sizing: border-box;
}

.review-header-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.25rem 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Active Ingredient Profile */
.ingredients-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ingredients-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0.75rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.ingredients-list li {
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.6rem 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.4;
  box-sizing: border-box;
}

.ingredients-list li:before {
  content: "🌿";
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pricing-cost {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pricing-cost span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Pros and Cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
}

.pro-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.con-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.pro-box h3 {
  color: #166534;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.con-box h3 {
  color: #991b1b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pro-box ul, .con-box ul {
  list-style: none;
}

.pro-box li, .con-box li {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

/* FAQ Accordions */
.faq-wrap {
  margin: 2.5rem 0;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Sticky Mobile CTA Bar */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  z-index: 999;
  box-shadow: 0 -4px 10px rgb(0 0 0 / 0.08);
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  .container {
    padding: 1.25rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem 0.5rem;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .nav-links {
    width: 100%;
    max-width: 100%;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 1rem;
    padding-bottom: 0.35rem;
    box-sizing: border-box;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex-shrink: 0;
  }

  .top-alert-bar {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    line-height: 1.4;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero {
    padding: 2.25rem 1rem 1.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .trust-badges {
    gap: 1rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .trust-badges::-webkit-scrollbar {
    display: none;
  }

  .trust-badge-item {
    flex-shrink: 0;
    font-size: 0.8rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .comparison-summaries-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2rem 0;
    width: 100%;
  }

  .ingredients-list {
    columns: 1;
  }

  table.spec-table, .spec-table, .specifications-box table {
    white-space: normal !important;
  }

  table.spec-table th, table.spec-table td,
  .spec-table th, .spec-table td,
  .specifications-box table th, .specifications-box table td {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 10px 12px;
  }

  .card-body {
    padding: 1.25rem 1rem;
  }

  .review-header-card {
    padding: 1.5rem 1rem !important;
  }

  .sticky-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .sticky-info {
    font-size: 0.85rem;
  }
  .sticky-info strong {
    display: block;
    color: var(--primary);
  }
}

/* Footer */
.footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--primary-light);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 840px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

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

.disclaimer-box {
  background: #090d16;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.copyright {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
}

/* Mobile Specifications & Ingredients Stacked Layout */
@media (max-width: 640px) {
  table.spec-table, .specifications-box table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }

  table.spec-table tbody, .specifications-box table tbody {
    display: block;
    width: 100%;
  }

  table.spec-table tr, .specifications-box table tr {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
  }

  table.spec-table tr:last-child, .specifications-box table tr:last-child {
    border-bottom: none;
  }

  table.spec-table td, table.spec-table th,
  .specifications-box table td, .specifications-box table th {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    padding: 3px 14px;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }

  table.spec-table th, .specifications-box table th {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
    padding-bottom: 2px;
  }

  table.spec-table td, .specifications-box table td {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.5;
    padding-top: 2px;
  }

  .ingredients-box {
    padding: 1.25rem 1rem;
  }

  .ingredients-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .ingredients-list li {
    font-size: 0.88rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
}
