/**
 * ==========================================================================
 * PRODUCT PAGES BASE — Shared styles for ALL product pages
 * ==========================================================================
 *
 * PURPOSE:  Minimal, safe component styles used by BOTH single-product
 *           and dual-product (system) pages. Only classes explicitly
 *           added to your Divi modules will activate — nothing is
 *           applied to bare HTML elements.
 *
 * SCOPE:    Loaded on all WooCommerce single-product pages
 *           (body.single-product)
 *
 * WARNING:  Keep this file LEAN. Anything specific to single products
 *           goes in single-product-template.css. Anything specific to
 *           dual/system products goes in dual-product-template.css.
 * ==========================================================================
 */

/* --------------------------------------------------------------------------
   Ritual Steps  (shared across all products)
   -------------------------------------------------------------------------- */
.ritual-steps {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: var(--mw-content, 860px);
  margin: 0 auto;
  text-align: center;
}

.ritual-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ritual-number {
  font-family: var(--ff-serif, Georgia, serif);
  font-style: italic;
  font-size: 16px;
  color: var(--co-subtle, #aaa);
}

.ritual-title {
  font-family: var(--ff-serif, Georgia, serif);
  font-size: var(--fs-h2, 20px);
  font-weight: 400;
  color: var(--co-dark, #1a1a1a);
  margin: 0;
}

.ritual-desc {
  font-size: var(--fs-body, 16px);
  color: var(--co-muted, #777);
  line-height: 1.6;
  margin: 0;
  max-width: 200px;
}

@media (max-width: 767px) {
  .ritual-steps {
    flex-direction: column;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   FAQ List  (shared across all products)
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: var(--mw-content, 860px);
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--co-border, #e8e0d5);
  padding: 28px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--co-border, #e8e0d5);
}

.faq-question {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 12px;
  cursor: pointer;
}

.faq-question span:first-child {
  font-family: var(--ff-serif, Georgia, serif);
  font-size: var(--fs-h2, 20px);
  font-weight: 400;
  color: var(--co-dark, #1a1a1a);
  line-height: 1.4;
}

.faq-toggle {
  color: var(--co-subtle, #aaa);
  font-size: var(--fs-h2, 20px);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.faq-answer p {
  font-size: var(--fs-small, 14px) !important;
  line-height: 1.75 !important;
  color: var(--co-body, #555) !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .faq-question span:first-child {
    font-size: var(--fs-body, 16px);
  }
}

/* --------------------------------------------------------------------------
   Timeline  (shared across all products)
   -------------------------------------------------------------------------- */
.timeline-list {
  max-width: var(--mw-content, 860px);
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 40px 0;
  border-top: 1px solid var(--co-border, #e8e0d5);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--co-border, #e8e0d5);
}

.timeline-week {
  font-family: var(--ff-serif, Georgia, serif);
  font-style: italic;
  font-size: 14px;
  color: var(--co-accent, #7f9c96);
  padding-top: 6px;
}

.timeline-title {
  font-family: var(--ff-serif, Georgia, serif) !important;
  font-size: var(--fs-h2, 20px) !important;
  font-weight: 400 !important;
  color: var(--co-dark, #1a1a1a) !important;
  margin: 0 0 12px 0 !important;
}

.timeline-desc {
  font-size: var(--fs-small, 14px) !important;
  line-height: 1.7 !important;
  color: var(--co-body, #555) !important;
  margin-bottom: 20px !important;
}

.timeline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.timeline-stat {
  font-size: 13px;
  color: var(--co-light-text, #888);
  letter-spacing: 0.02em;
}

/* Product-specific timeline accent colours */
.product_cat-clarify  .timeline-week { color: var(--co-clarify, #7f9c96); }
.product_cat-protect  .timeline-week { color: var(--co-protect, #b07d3a); }
.product_cat-radiance .timeline-week { color: var(--co-radiance, #c9a96e); }

@media (max-width: 767px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 0;
  }
  .timeline-week {
    padding-top: 0;
    margin-bottom: 4px;
  }
  .timeline-stats {
    gap: 12px;
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   Comparison Table  (shared across all products)
   -------------------------------------------------------------------------- */
.comparison-wrap {
  max-width: 1300px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--co-border, #e8e0d5);
}

.comparison-table thead th {
  font-family: var(--ff-serif, Georgia, serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--co-muted, #777);
  letter-spacing: 0.06em;
  padding-bottom: 14px;
}

.comparison-table .col-product {
  color: var(--co-dark, #1a1a1a);
  font-weight: 600;
}

.comparison-table .feature-label {
  font-family: var(--ff-serif, Georgia, serif);
  font-weight: 400;
  color: var(--co-dark, #1a1a1a);
  white-space: nowrap;
}

.comparison-table td:not(.feature-label) {
  color: var(--co-body, #555);
}

/* Product highlight colours for comparison */
.comparison-table .highlight-clarify  { color: var(--co-clarify, #7f9c96);  font-weight: 600; }
.comparison-table .highlight-radiance { color: var(--co-radiance, #c9a96e); font-weight: 600; }
.comparison-table .highlight-protect  { color: var(--co-protect, #b07d3a);  font-weight: 600; }

@media (max-width: 767px) {
  .comparison-table {
    font-size: 13px;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 14px 12px;
  }
}

/* --------------------------------------------------------------------------
   Upsell / Pairs With Cards  (shared across all products)
   -------------------------------------------------------------------------- */
.upsell-card {
  background: var(--co-bg-white, #fff);
  border: 1px solid var(--co-border, #e8e0d5);
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.upsell-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--co-radiance, #c9a96e);
  margin-bottom: 20px;
  display: block;
}

.upsell-title {
  font-family: var(--ff-serif, Georgia, serif) !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  color: var(--co-dark, #1a1a1a) !important;
  margin: 0 0 10px 0 !important;
}

.upsell-subtitle {
  font-family: var(--ff-serif, Georgia, serif) !important;
  font-style: italic !important;
  font-size: 14px !important;
  color: var(--co-light-text, #888) !important;
  margin-bottom: 40px !important;
  flex-grow: 1;
}

.upsell-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 20px;
  border-top: 1px solid #f2efeb;
}

.upsell-price {
  font-family: var(--ff-serif, Georgia, serif);
  font-size: 20px;
  color: var(--co-dark, #1a1a1a);
}

.upsell-link {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--co-dark, #1a1a1a);
  text-decoration: none;
  border-bottom: 1px solid var(--co-dark, #1a1a1a);
  padding-bottom: 2px;
  transition: opacity var(--ease-default, 0.3s ease);
}

.upsell-link:hover {
  opacity: 0.6;
}

.upsell-link::after {
  content: " →";
}

@media (max-width: 767px) {
  .upsell-card {
    padding: 30px;
  }
  .upsell-footer {
    flex-direction: row;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Midway Hero  (shared across all products)
   -------------------------------------------------------------------------- */
.midway-hero-title {
  font-family: var(--ff-serif, Georgia, serif);
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 20px;
}

.midway-hero-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 32px auto;
}

.midway-hero-text {
  font-family: var(--ff-serif, Georgia, serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--co-radiance, #c9a96e);
  text-align: center;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
