/* =============================================
   TrimX Product Review Page — Styles
   Extends best2buy-website/css/style.css
   ============================================= */

/* Topbar */
.trimx-topbar {
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  flex-wrap: wrap;
}

.topbar-btn {
  background: var(--white);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.topbar-btn:hover {
  opacity: 0.85;
}

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-light);
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 8px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--green-dark);
}

/* HERO */
.trimx-hero {
  padding: 56px 0 64px;
  background: var(--cream);
}

.trimx-hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
}

.trimx-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.trimx-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 3px;
  text-transform: uppercase;
}

.trimx-badge-green {
  background: var(--green-dark);
  color: var(--white);
}

.trimx-badge-outline {
  border: 1.5px solid var(--green-dark);
  color: var(--green-dark);
  background: transparent;
}

.trimx-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 10px;
}

.trimx-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.5;
}

.aeo-summary {
  background: var(--cream-dark);
  border-left: 3px solid var(--green-dark);
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 24px;
}

.aeo-summary p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* Score card */
.trimx-score-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.score-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
  flex-shrink: 0;
}

.score-number span {
  font-size: 1.2rem;
  color: var(--text-light);
}

.score-details {
  flex: 1;
}

.score-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.score-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-mid);
}

.score-bar-item span:first-child {
  width: 72px;
  flex-shrink: 0;
}

.score-bar-item span:last-child {
  width: 28px;
  text-align: right;
  font-weight: 600;
  color: var(--green-dark);
}

.bar-track {
  flex: 1;
  height: 5px;
  background: var(--cream-dark);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--green-dark);
  border-radius: 999px;
}

.trimx-stars {
  font-size: 1.2rem;
  color: #F59E0B;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trimx-stars span {
  font-size: 0.85rem;
  color: var(--text-mid);
  font-family: var(--font-sans);
}

.trimx-hero-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  margin-bottom: 16px;
}

.trimx-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-mid);
  font-weight: 500;
}

.trimx-trust-row span {
  color: var(--green-dark);
}

/* Hero image */
.trimx-hero-img-wrap {
  position: sticky;
  top: 80px;
}

.trimx-hero-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* SECTIONS */
.trimx-section {
  padding: 72px 0;
}

.trimx-section-alt {
  background: var(--white);
}

.trimx-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  max-width: 640px;
}

.trimx-section-sub {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 48px;
  max-width: 600px;
}

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

.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.benefit-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.how-content p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}

.how-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.how-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.how-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.how-list li div {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  padding-top: 4px;
}

.how-note {
  background: var(--cream-dark);
  border-left: 3px solid var(--green-dark);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  font-size: 0.88rem !important;
}

.how-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.how-stat-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 16px;
  text-align: center;
}

.how-stat-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.how-stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Ingredients */
.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.ingredient-card {
  display: flex;
  gap: 24px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  align-items: flex-start;
  transition: background var(--transition);
}

.ingredient-card:last-child {
  border-bottom: none;
}

.ingredient-card:hover {
  background: var(--cream);
}

.ingredient-num {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.06em;
  padding-top: 4px;
  min-width: 28px;
}

.ingredient-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.ingredient-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-mid);
  letter-spacing: 0.04em;
  margin-bottom: 8px !important;
}

.ingredient-body p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  transition: box-shadow var(--transition);
}

.review-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.review-featured {
  grid-column: span 1;
  background: var(--cream);
}

.review-stars {
  color: #F59E0B;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-card blockquote {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.review-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.review-meta {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

.pricing-card-featured {
  border-color: var(--green-dark);
  border-width: 2px;
}

.pricing-best-badge {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px;
}

.pricing-header {
  padding: 24px;
  text-align: center;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.pricing-duration {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 16px;
}

.pricing-header img {
  max-height: 160px;
  object-fit: contain;
  margin: 0 auto;
}

.pricing-body {
  padding: 24px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.price-current {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.price-current span {
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: var(--font-sans);
  font-weight: 400;
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.pricing-body .btn {
  width: 100%;
  margin-top: auto;
}

/* Guarantee */
.trimx-guarantee {
  background: var(--green-dark);
  padding: 56px 0;
}

.guarantee-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.guarantee-badge {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.guarantee-inner h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
  max-width: none;
}

.guarantee-inner p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 20px;
}

.guarantee-btn {
  background: var(--white);
  color: var(--green-dark);
}

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

/* CTA Banner */
.trimx-cta-banner {
  background: var(--cream-dark);
  padding: 72px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.trimx-cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.trimx-cta-banner p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 32px;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  z-index: 99;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-inner span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* Responsive */
@media (max-width: 900px) {
  .trimx-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .trimx-hero-img-wrap {
    position: static;
    max-width: 360px;
    margin: 0 auto;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

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

  .guarantee-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .how-visual {
    grid-template-columns: 1fr 1fr;
  }

  .sticky-inner {
    flex-direction: column;
    text-align: center;
  }

  .sticky-inner .btn {
    width: 100%;
  }
}

/* ── What is TrimX section ──────────────────────────────────────────── */
.trimx-what-is {
  background: #0a1a10;
  color: #fff;
}
.trimx-what-is .section-label {
  color: #52b788;
}
.what-is-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
.what-is-content h2 {
  font-size: 2.4rem;
  color: #fff;
  margin: 10px 0 20px;
}
.trimx-highlight {
  color: #52b788;
}
.what-is-content > p {
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 24px;
}
.what-is-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.what-is-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}
.wi-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #1b4332;
  color: #52b788;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 1px;
}
.what-is-img-wrap {
  position: relative;
}
.what-is-img-wrap a {
  display: block;
}
.what-is-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}
.what-is-img-wrap a:hover .what-is-img {
  transform: scale(1.02);
}

/* ── Ingredient images ──────────────────────────────────────────────── */
.ingredient-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e9f5ee;
  flex-shrink: 0;
  margin-right: 20px;
  float: left;
  shape-outside: circle();
}
.ingredient-card {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.ingredient-card::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .what-is-grid {
    grid-template-columns: 1fr;
  }
  .what-is-img-wrap {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
  .what-is-content h2 {
    font-size: 1.8rem;
  }
}

/* ── How to Use section ─────────────────────────────────────────────── */
.howto-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0 24px;
}
.howto-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
}
.howto-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #1B4332;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.howto-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1B4332;
  margin: 0 0 6px;
}
.howto-body p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}
.howto-note {
  background: #f0fdf4;
  border-left: 4px solid #1B4332;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.6;
}

/* ── Social Share Bar ───────────────────────────────────────────────── */
.share-bar-wrap {
  background: #f5f1eb;
  border-bottom: 1px solid #e5e0d8;
  padding: 12px 0;
}
.share-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.share-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.share-fb  { background: #1877f2; color: #fff; }
.share-fb:hover  { background: #1558b0; }
.share-x   { background: #000; color: #fff; }
.share-x:hover   { background: #333; }
.share-wa  { background: #25d366; color: #fff; }
.share-wa:hover  { background: #1aaa52; }
.share-copy { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
.share-copy:hover { background: #e5e7eb; }
.share-copy.copied { background: #1B4332; color: #fff; border-color: #1B4332; }

@media (max-width: 600px) {
  .share-btn span { display: none; }
  .share-btn { padding: 8px 12px; border-radius: 50%; }
}
/* ── How to Use section ─────────────────────────────────────────────── */
.howto-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0 24px;
}
.howto-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
}
.howto-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #1B4332;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.howto-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1B4332;
  margin: 0 0 6px;
}
.howto-body p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}
.howto-note {
  background: #f0fdf4;
  border-left: 4px solid #1B4332;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.6;
}

/* ── Social Share Bar ───────────────────────────────────────────────── */
.share-bar-wrap {
  background: #f5f1eb;
  border-bottom: 1px solid #e5e0d8;
  padding: 12px 0;
}
.share-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.share-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.share-fb  { background: #1877f2; color: #fff; }
.share-fb:hover  { background: #1558b0; }
.share-x   { background: #000; color: #fff; }
.share-x:hover   { background: #333; }
.share-wa  { background: #25d366; color: #fff; }
.share-wa:hover  { background: #1aaa52; }
.share-copy { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
.share-copy:hover { background: #e5e7eb; }
.share-copy.copied { background: #1B4332; color: #fff; border-color: #1B4332; }

@media (max-width: 600px) {
  .share-btn span { display: none; }
  .share-btn { padding: 8px 12px; border-radius: 50%; }
}