/* ===================================================================
   Centax Vitamins & Minerals — stylesheet
   Brand palette + component styles for index.html
   =================================================================== */

:root{
  --cx-primary: #165bc6;
  --cx-primary-dark: #0e3f8d;
  --cx-accent: #16a394;
  --cx-cream: #f4f7fb;
  --cx-gray: #6c757d;
  --cx-dark: #1c2530;

  --cx-az: #c1272d;
  --cx-az-dark: #8f1a1f;
  --cx-b-active: #a01120;
  --cx-b-active-dark: #740c17;
  --cx-b-plus: #003d82;
  --cx-b-plus-dark: #002a5c;
  --cx-c-zink: #bc611a;
  --cx-c-zink-dark: #8c4711;
  --cx-d-k: #c46928;
  --cx-d-k-dark: #94501e;
  --cx-d3: #dc910f;
  --cx-d3-dark: #a66c0a;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--cx-dark);
  background-color: #ffffff;
}

h1, h2, h3, h4, .navbar-brand{ font-weight: 700; }
a{ text-decoration: none; }
section{ scroll-margin-top: 90px; }

.text-cx-primary{ color: var(--cx-primary); }
.text-cx-accent{ color: var(--cx-accent); }
.text-cx-az{ color: var(--cx-az); }
.text-cx-b-active{ color: var(--cx-b-active); }
.text-cx-b-plus{ color: var(--cx-b-plus); }
.text-cx-c-zink{ color: var(--cx-c-zink); }
.text-cx-d-k{ color: var(--cx-d-k); }
.text-cx-d3{ color: var(--cx-d3); }
.bg-cx-cream{ background-color: var(--cx-cream); }

/* ---------- Navbar ---------- */
.navbar{
  background-color: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.navbar-brand{
  color: var(--cx-dark);
  font-size: 1.4rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.navbar-brand span{ color: var(--cx-primary); }
.nav-link{
  font-weight: 500;
  color: var(--cx-dark) !important;
  margin: 0 .35rem;
  font-size: .92rem;
}
.nav-link:hover, .nav-link.active{ color: var(--cx-primary) !important; }

.btn-cx-primary{
  background-color: var(--cx-primary);
  border-color: var(--cx-primary);
  color: #fff;
  font-weight: 600;
}
.btn-cx-primary:hover{
  background-color: var(--cx-primary-dark);
  border-color: var(--cx-primary-dark);
  color: #fff;
}
.btn-cx-outline{
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 600;
  background: transparent;
}
.btn-cx-outline:hover{ background-color: #ffffff; color: var(--cx-primary); }

/* ---------- Hero (full-bleed photo carousel) ---------- */
.hero-badge{
  display:inline-flex; align-items:center; gap:.5rem;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 50px; padding: .4rem 1rem;
  font-size: .82rem; font-weight: 600; letter-spacing:.3px;
  margin-bottom: 1.25rem;
  color: #fff;
}

.photo-hero{
  position: relative;
  min-height: 620px;
  overflow: hidden;
}
.photo-hero-carousel,
.photo-hero-carousel .carousel-inner,
.photo-hero-carousel .carousel-item{
  position: absolute;
  inset: 0;
  height: 100%;
}
.photo-hero-carousel img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14,63,141,0.90) 0%, rgba(14,63,141,0.58) 45%, rgba(14,63,141,0.15) 75%);
  z-index: 2;
}
.photo-hero-content{
  position: relative;
  z-index: 3;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}
.photo-hero h1{
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
}
.photo-hero p.lead{ font-size: 1.1rem; color: rgba(255,255,255,0.92); max-width: 560px; }

.photo-hero-indicators{
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: .6rem;
  margin: 0;
}
.photo-hero-indicators [data-bs-target]{
  width: 32px;
  height: 5px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.9);
  background-color: rgba(0,0,0,0.35);
  opacity: 1;
  padding: 0;
  margin: 0;
  text-indent: -9999px;
  transition: background-color .2s ease;
}
.photo-hero-indicators [data-bs-target].active{
  background-color: #fff;
}

.section-eyebrow{
  text-transform: uppercase; letter-spacing: 2px;
  font-size: .8rem; font-weight: 700; color: var(--cx-accent);
}
.section-title{ font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }

/* ---------- Focus selector (goal-based, not sequential) ---------- */
.focus-track{ position: relative; }
.focus-step{ position: relative; z-index: 1; text-align: center; }
.focus-dot{
  width: 68px; height: 68px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 .5rem 1.2rem rgba(0,0,0,0.12);
}

/* ---------- Product feature sections ---------- */
.product-feature{ position: relative; }
.product-feature + .product-feature{ border-top: 1px solid #e8edf3; }

.feature-az{ background: linear-gradient(180deg, rgba(193,39,45,0.06), rgba(193,39,45,0) 60%); }
.feature-b-active{ background: linear-gradient(180deg, rgba(160,17,32,0.06), rgba(160,17,32,0) 60%); }
.feature-b-plus{ background: linear-gradient(180deg, rgba(0,61,130,0.06), rgba(0,61,130,0) 60%); }
.feature-c-zink{ background: linear-gradient(180deg, rgba(188,97,26,0.08), rgba(188,97,26,0) 60%); }
.feature-d-k{ background: linear-gradient(180deg, rgba(196,105,40,0.08), rgba(196,105,40,0) 60%); }
.feature-d3{ background: linear-gradient(180deg, rgba(220,145,15,0.09), rgba(220,145,15,0) 60%); }

/* ---------- Product image gallery ---------- */
.product-gallery{
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 1.5rem;
  padding: 1.1rem;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 1.25rem 2.5rem rgba(28,37,48,0.08);
}

.product-gallery-main{
  position: relative;
  background: var(--cx-cream);
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
}
.product-gallery-main img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .5rem;
  cursor: zoom-in;
}
.product-gallery-main img.is-photo{ object-fit: cover; padding: 0; }

.gallery-zoom-btn{
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e8edf3;
  background: rgba(255,255,255,0.92);
  color: var(--cx-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 .35rem .9rem rgba(28,37,48,0.14);
  transition: background .15s ease;
}
.gallery-zoom-btn:hover{ background: #ffffff; }

.product-gallery-thumbs{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
}

.gallery-thumb{
  aspect-ratio: 1 / 1;
  border-radius: .65rem;
  border: 2px solid transparent;
  overflow: hidden;
  padding: 0;
  background: var(--cx-cream);
}
.gallery-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
button.gallery-thumb{ cursor: pointer; transition: border-color .15s ease; }
button.gallery-thumb:hover{ border-color: #cfdcec; }

.feature-az .gallery-thumb.active{ border-color: var(--cx-az); box-shadow: 0 0 0 2px rgba(193,39,45,.25); }
.feature-b-active .gallery-thumb.active{ border-color: var(--cx-b-active); box-shadow: 0 0 0 2px rgba(160,17,32,.25); }
.feature-b-plus .gallery-thumb.active{ border-color: var(--cx-b-plus); box-shadow: 0 0 0 2px rgba(0,61,130,.25); }
.feature-c-zink .gallery-thumb.active{ border-color: var(--cx-c-zink); box-shadow: 0 0 0 2px rgba(188,97,26,.25); }
.feature-d-k .gallery-thumb.active{ border-color: var(--cx-d-k); box-shadow: 0 0 0 2px rgba(196,105,40,.25); }
.feature-d3 .gallery-thumb.active{ border-color: var(--cx-d3); box-shadow: 0 0 0 2px rgba(220,145,15,.25); }

.gallery-thumb-placeholder{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  color: var(--cx-gray);
  font-size: .62rem;
  line-height: 1.2;
  text-align: center;
  padding: .25rem;
}
.gallery-thumb-placeholder i{ font-size: 1.05rem; opacity: .7; }

/* ---------- Image zoom modal ---------- */
#imageZoomModal .modal-content{ background: transparent; border: none; }
#imageZoomModal .btn-close{ opacity: .9; }
#imageZoomModal .btn-close:hover{ opacity: 1; }
#imageZoomModal img{
  max-height: 85vh;
  width: auto;
  margin: 0 auto;
  display: block;
  border-radius: 1rem;
  box-shadow: 0 2rem 4rem rgba(0,0,0,0.4);
}

/* ---------- Media carousel (product teasers + company/quality photos) ---------- */
.media-carousel{
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 2.5rem rgba(28,37,48,0.14);
}
.media-carousel-img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.media-carousel-caption{
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: rgba(28,37,48,0.75);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 50px;
  backdrop-filter: blur(2px);
}
.media-carousel .carousel-control-prev,
.media-carousel .carousel-control-next{
  width: 3rem;
}
.media-carousel .carousel-control-prev-icon,
.media-carousel .carousel-control-next-icon{
  width: 1.75rem;
  height: 1.75rem;
  background-color: rgba(28,37,48,0.55);
  border-radius: 50%;
  padding: .4rem;
  background-size: 60%;
}
.media-carousel .carousel-indicators{ margin-bottom: .75rem; }
.media-carousel .carousel-indicators [data-bs-target]{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
  opacity: .6;
  margin: 0 4px;
}
.media-carousel .carousel-indicators .active{ opacity: 1; }

.product-feature-title{
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: .75rem;
}

.product-feature-desc{
  font-size: 1.05rem;
  color: var(--cx-gray);
  max-width: 520px;
  margin-bottom: 0;
}

.stage-badge{
  display:inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing:.3px;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.stage-badge-az{ background: rgba(193,39,45,0.12); color: var(--cx-az); }
.stage-badge-b-active{ background: rgba(160,17,32,0.12); color: var(--cx-b-active); }
.stage-badge-b-plus{ background: rgba(0,61,130,0.12); color: var(--cx-b-plus); }
.stage-badge-c-zink{ background: rgba(188,97,26,0.14); color: var(--cx-c-zink); }
.stage-badge-d-k{ background: rgba(196,105,40,0.14); color: var(--cx-d-k); }
.stage-badge-d3{ background: rgba(220,145,15,0.16); color: var(--cx-d3-dark); }

.comp-table{ font-size: .88rem; }
.comp-table td{ padding: .4rem .25rem; vertical-align: top; }
.comp-table tr:not(:last-child) td{ border-bottom: 1px dashed #e2e8ef; }
.comp-table td:first-child{ width: 55%; }
.comp-table td:nth-child(2){ text-align:right; }
.comp-table td:last-child{ text-align:right; font-weight:600; white-space: nowrap; }
.comp-table thead th{
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--cx-gray);
  font-weight: 700;
  padding: .5rem .25rem;
  border-bottom: 2px solid #e2e8ef;
  text-align: left;
}
.comp-table thead th:not(:first-child){ text-align: right; }
.comp-table td.comp-subrow{ padding-left: 1.25rem; color: var(--cx-gray); font-style: italic; }
.comp-footnote{ font-size: .78rem; color: var(--cx-gray); margin-top: .6rem; }
.source-note{ font-size: .8rem; color: var(--cx-gray); }

/* ---------- Product story ---------- */
.story-img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 2.5rem rgba(28,37,48,0.12);
}
.story-text p{ color: #3d4753; margin-bottom: 1rem; }
.story-text p:last-child{ margin-bottom: 0; }

.benefit-list li{
  display:flex; align-items:flex-start; gap:.5rem;
  font-size: .92rem; color: #3d4753;
  margin-bottom: .55rem;
}
.benefit-list i{ margin-top: .2rem; flex-shrink:0; }
.feature-az .benefit-list i{ color: var(--cx-az); }
.feature-b-active .benefit-list i{ color: var(--cx-b-active); }
.feature-b-plus .benefit-list i{ color: var(--cx-b-plus); }
.feature-c-zink .benefit-list i{ color: var(--cx-c-zink); }
.feature-d-k .benefit-list i{ color: var(--cx-d-k); }
.feature-d3 .benefit-list i{ color: var(--cx-d3-dark); }

.dosage-box{
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: .8rem;
  padding: .9rem 1rem;
  font-size: .88rem;
  display:flex; align-items:flex-start; gap:.6rem;
}

.btn-panel-az{ background: var(--cx-az); border-color: var(--cx-az); }
.btn-panel-b-active{ background: var(--cx-b-active); border-color: var(--cx-b-active); }
.btn-panel-b-plus{ background: var(--cx-b-plus); border-color: var(--cx-b-plus); }
.btn-panel-c-zink{ background: var(--cx-c-zink); border-color: var(--cx-c-zink); }
.btn-panel-d-k{ background: var(--cx-d-k); border-color: var(--cx-d-k); }
.btn-panel-d3{ background: var(--cx-d3-dark); border-color: var(--cx-d3-dark); }
.btn-panel-az, .btn-panel-b-active, .btn-panel-b-plus, .btn-panel-c-zink, .btn-panel-d-k, .btn-panel-d3{ color:#fff; font-weight:600; }
.btn-panel-az:hover{ background: var(--cx-az-dark); border-color: var(--cx-az-dark); color:#fff; }
.btn-panel-b-active:hover{ background: var(--cx-b-active-dark); border-color: var(--cx-b-active-dark); color:#fff; }
.btn-panel-b-plus:hover{ background: var(--cx-b-plus-dark); border-color: var(--cx-b-plus-dark); color:#fff; }
.btn-panel-c-zink:hover{ background: var(--cx-c-zink-dark); border-color: var(--cx-c-zink-dark); color:#fff; }
.btn-panel-d-k:hover{ background: var(--cx-d-k-dark); border-color: var(--cx-d-k-dark); color:#fff; }
.btn-panel-d3:hover{ background: #7d5407; border-color: #7d5407; color:#fff; }

/* ---------- Trust / feature icons ---------- */
.feature-icon{
  width: 68px; height: 68px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--cx-primary), var(--cx-accent));
  color: #fff;
  display:flex; align-items:center; justify-content:center;
  font-size: 1.6rem;
  margin: 0 auto 1.1rem;
}

/* ---------- FAQ / contact ---------- */
.accordion-button:not(.collapsed){
  background-color: rgba(22,91,198,0.08);
  color: var(--cx-primary);
  box-shadow: none;
}
.accordion-button:focus{ box-shadow: none; border-color: rgba(22,91,198,0.2); }

/* ---------- Footer ---------- */
footer{ background: var(--cx-dark); color: rgba(255,255,255,0.75); }
footer h6{ color:#fff; font-weight:700; margin-bottom:1.1rem; }
footer a{ color: rgba(255,255,255,0.65); }
footer a:hover{ color:#fff; }
.footer-social a{
  width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,0.08); border-radius:50%; margin-right:.5rem;
  transition: background .2s ease;
}
.footer-social a:hover{ background: var(--cx-primary); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.1); font-size:.85rem; }
.footer-mfr-logo{
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .85;
}

/* ---------- Product detail pages ---------- */
.detail-hero{ padding: 7rem 0 3rem; }

.breadcrumb-nav{ font-size: .88rem; }
.breadcrumb-nav a{ color: var(--cx-gray); font-weight: 500; }
.breadcrumb-nav a:hover{ color: var(--cx-primary); }
.breadcrumb-nav .current{ color: var(--cx-dark); font-weight: 600; }

.meta-pill{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  border: 1px solid #e2e8ef;
  border-radius: 50px;
  padding: .45rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--cx-dark);
}

.detail-section{ padding: 3.5rem 0; }
.detail-section + .detail-section{ border-top: 1px solid #e8edf3; }

.ingredient-note{
  background: var(--cx-cream);
  border-radius: .8rem;
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: var(--cx-gray);
}

.crosssell-card{
  display: block;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.crosssell-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 1.5rem 2.5rem rgba(28,37,48,0.1);
}
.crosssell-card img{
  max-height: 120px;
  width: auto;
  margin: 0 auto 1.1rem;
  display: block;
}
.crosssell-card h5{ color: var(--cx-dark); margin-bottom: .4rem; }

.cta-banner{
  background: linear-gradient(120deg, var(--cx-primary) 0%, var(--cx-accent) 100%);
  color: #fff;
  border-radius: 1.5rem;
  padding: 3rem;
}

/* ---------- Legal pages ---------- */
.legal-hero{
  padding: 7rem 0 2.5rem;
  background: var(--cx-cream);
}
.legal-hero .last-updated{
  font-size: .85rem;
  color: var(--cx-gray);
}
.legal-content{
  max-width: 800px;
}
.legal-content h2{
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cx-primary);
  margin-top: 0;
}
.legal-content h3{
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.5rem;
}
.legal-content p, .legal-content li{
  color: #3d4753;
  line-height: 1.7;
}
.legal-content ul{ padding-left: 1.25rem; }
.legal-content .accordion-button{ font-weight: 700; }
.legal-toc{
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  padding: 1.5rem;
}
.legal-toc a{ color: var(--cx-dark); font-size: .92rem; }
.legal-toc a:hover{ color: var(--cx-primary); }

/* ---------- Company & Quality section ---------- */
.made-in-germany-badge{
  max-width: 150px;
  width: 100%;
  height: auto;
}
.centax-brand-logo{
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
}
.cert-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 767px){ .cert-grid{ grid-template-columns: repeat(2, 1fr); } }
.cert-card{
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1.1rem;
  padding: 1rem;
  text-align: center;
  display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cert-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 1.25rem 2rem rgba(28,37,48,0.1);
}
.cert-thumb{
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  object-position: top center;
  border-radius: .6rem;
  border: 1px solid #e8edf3;
  margin-bottom: .85rem;
}
.cert-card h6{
  font-size: .9rem;
  font-weight: 700;
  color: var(--cx-dark);
  margin-bottom: .15rem;
}
.cert-card span{
  font-size: .78rem;
  color: var(--cx-primary);
  font-weight: 600;
}

/* ---------- Cookie notice ---------- */
.cookie-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  background: var(--cx-dark);
  color: rgba(255,255,255,0.88);
  padding: 1.1rem 0;
  box-shadow: 0 -0.75rem 2rem rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-banner.show{ transform: translateY(0); }
.cookie-banner .container{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}
.cookie-banner p{
  margin: 0;
  font-size: .88rem;
  max-width: 640px;
}
.cookie-banner a{ color: #fff; text-decoration: underline; }
.cookie-banner .btn{ white-space: nowrap; flex-shrink: 0; }

/* ---------- Language switcher ---------- */
.lang-switch{
  display: inline-block;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .3px;
  color: var(--cx-dark) !important;
  border: 1px solid #d9e1ea;
  border-radius: 50px;
  padding: .3rem .75rem;
}
.lang-switch:hover{ color: var(--cx-primary) !important; border-color: var(--cx-primary); }
