/* ============================================================
   Shared styles — health-solutions.php & ingredient-single.php
   ============================================================ */

/* ── Slick arrow icons ── */
.slick-arrow:before {
  font-family: "icomoon" !important;
  font-size: 16px !important;
  opacity: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  background-color: var(--color-primary) !important;
}
.slick-prev:before { content: "\e941" !important; }
.slick-next:before { content: "\e942" !important; }

/* ── Carousel card padding ── */
.fancybox-carousel .fancybox-item { padding: 20px 24px 24px !important; }

/* ── Arrow positioning ── */
.fancybox-carousel .slick-carousel { padding: 0 90px; }
.fancybox-carousel .slick-arrow.slick-prev { left: 15px; }
.fancybox-carousel .slick-arrow.slick-next { right: 15px; }

/* ── Equal-height cards ── */
.fancybox-carousel .slick-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}
.fancybox-carousel .slick-slide {
  float: none !important;
  height: auto !important;
  display: flex !important;
  align-items: stretch !important;
}
.fancybox-carousel .slick-slide > div {
  display: flex !important;
  width: 100% !important;
}
.fancybox-carousel .fancybox-item {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
.fancybox-carousel .fancybox-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}
.fancybox-carousel .fancybox-body .btn { margin-top: auto !important; }
.fancybox-carousel .fancybox-body img {
  max-height: 115px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}
.fancybox-carousel .slick-dots { margin-top: 24px; }

/* ── Related Ingredients list ── */
.related-ingredients-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e8e8e8;
  font-size: 14px;
  color: #555;
}
.related-ingredients-list li:first-child { border-top: 1px solid #e8e8e8; }
.request-info-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary) !important;
  text-decoration: none !important;
  white-space: nowrap;
  margin-left: 20px;
}
.request-info-link:hover { text-decoration: underline !important; }

/* ══════════════════════════════════════════════════════════
   Ingredient detail — AstaReal
   ══════════════════════════════════════════════════════════ */

/* Product name — the page's h1 */
.ing-name {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  color: #e8262d;
  margin-bottom: 32px;
}

/* Spec table */
.ing-spec {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  font-size: 14px;
}
.ing-spec th,
.ing-spec td {
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  padding: 12px 14px;
  vertical-align: top;
  line-height: 1.6;
}
.ing-spec th {
  width: 34%;
  font-weight: 700;
  color: var(--color-dark);
  text-align: left;
}
.ing-spec td { color: #444; }

/* Display headings */
.ing-display {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--color-dark);
}
/* Second line of the h1 — the design sets it smaller and in brand colours. */
.ing-display-sub {
  display: block;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 4px;
}
.ing-display-sub .t-blue { color: #1a1aa6; }
.ing-display-sub .t-red { color: #e8262d; }

.ing-lead {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.ing-h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin: 46px 0 16px;
  color: var(--color-dark);
}
.ing-h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 30px 0 10px;
  color: var(--color-dark);
}
.ing-p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 18px;
  text-align: justify;
}

/* Pillar cards */
.ing-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0 34px;
}
.ing-pillar {
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
}
.ing-pillar b {
  display: block;
  font-size: 15px;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.ing-pillar span {
  font-size: 12px;
  color: #777;
}

/* Figures */
.ing-figure { margin: 0 0 24px; }
.ing-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.ing-figure figcaption {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
}
.ing-figure figcaption a { color: #999; }

.ing-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ing-photo-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Health solutions split */
.ing-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 30px;
}
.ing-dotlist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ing-dotlist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-dark);
}
.ing-dotlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8262d;
}
.ing-solution-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ing-solution-photos img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Clickable study slides */
.ing-study {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
  cursor: zoom-in;
  display: block;
  position: relative;
}
.ing-study img {
  width: 100%;
  height: auto;
  display: block;
}
.ing-study::after {
  content: "\f00e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s linear;
}
.ing-study:hover::after { opacity: 1; }

/* Plain bullet lists */
.ing-bullets {
  padding-left: 20px;
  margin-bottom: 18px;
}
.ing-bullets li {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}

/* References */
.ing-refs {
  list-style: decimal;
  padding-left: 18px;
  margin: 0;
}
.ing-refs li {
  font-size: 11px;
  line-height: 1.7;
  color: #888;
  margin-bottom: 4px;
  word-break: break-word;
}

.ing-divider {
  border: 0;
  border-top: 1px solid #e8e8e8;
  margin: 46px 0 34px;
}

/* Lightbox */
.ing-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.ing-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ing-lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

@media (max-width: 767px) {
  .ing-name { font-size: 30px; }
  .ing-display { font-size: 32px; }
  .ing-display-sub { font-size: 24px; }
  .ing-h2 { font-size: 21px; }
  .ing-pillars { grid-template-columns: 1fr; }
  .ing-split { grid-template-columns: 1fr; }
  .ing-spec th { width: 40%; }
}

/* ══════════════════════════════════════════════════════════
   Health Solutions — category detail (Longevity)
   ══════════════════════════════════════════════════════════ */

.hs-banner {
  margin-bottom: 34px;
}
.hs-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Intro: description beside Key Focus */
.hs-intro {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 44px;
}
.hs-intro-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}
.hs-intro-lead {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}
.hs-intro-desc {
  font-size: 14px;
  line-height: 1.85;
  color: #444;
  margin: 0;
  text-align: justify;
}
.hs-focus-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}
.hs-focus-list {
  padding-left: 18px;
  margin: 0;
}
.hs-focus-list li {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
}

/* Brand cards */
.hs-brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 50px;
}
.hs-brand-card {
  border: 1px solid #ebebeb;
  border-radius: 8px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 10px;
}
.hs-brand-card img {
  max-height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
a.hs-brand-card { transition: border-color 0.2s linear; }
a.hs-brand-card:hover { border-color: var(--color-light-purple); }
.hs-brand-name {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
}

/* Related ingredients */
.hs-related-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-dark);
  margin-bottom: 16px;
}
.hs-ing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f5f5f5;
  border-radius: 8px;
}
.hs-ing-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  border-bottom: 1px solid #e6e6e6;
}
.hs-ing-list li:last-child { border-bottom: 0; }
.hs-ing-list img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.hs-ing-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.hs-ing-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 4px;
}
.hs-ing-focus {
  font-size: 13px;
  color: #555;
  margin: 0;
}
.hs-ing-focus b { color: var(--color-dark); }

@media (max-width: 767px) {
  .hs-intro { grid-template-columns: 1fr; gap: 24px; }
  .hs-brands { grid-template-columns: 1fr; }
  .hs-ing-list li { grid-template-columns: 64px 1fr; gap: 14px; padding: 18px 16px; }
  .hs-ing-list img { width: 64px; height: 64px; }
}

/* Sidebar link to the Branded Ingredients listing. Bold, and spaced away from
   the category list below so it does not read as one of those categories. */
.hs-brands-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-light-purple) !important;
  text-decoration: none !important;
  transition: color 0.2s linear;
}
.hs-brands-link i {
  font-size: 11px;
}
.hs-brands-link:hover {
  color: var(--color-primary) !important;
}
