/* ==========================================================================
   INGREDIENTS & SUPPLEMENT FACTS PAGE
   Single source of truth â€” pill-tab card system
   ========================================================================== */

/* ---------- Hero ---------- */
.ingredients-hero{
  padding:72px 0 48px;
  background:#FAF7F2;
  text-align:center;
}
.ingredients-eyebrow{
  display:inline-block;
  font-family:'Inter', sans-serif;
  font-size:12px;
  font-weight:600;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:#444844;
  margin-bottom:20px;
}
.ingredients-title{
  font-family:'Playfair Display', Georgia, serif;
  font-size:48px;
  font-weight:400;
  line-height:1.15;
  color:#1A1C1C;
  letter-spacing:-.01em;
  margin-bottom:20px;
}
.ingredients-sub{
  font-family:'Inter', sans-serif;
  font-size:16px;
  line-height:1.75;
  color:#444844;
  max-width:620px;
  margin:0 auto;
}

/* ============================================================
   INGREDIENTS SECTION
   ============================================================ */
.ingredients-body {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Decorative background elements */
.ingredients-body::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(239, 123, 31, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ingredients-body::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(52, 85, 209, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.luxe-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
.ingredients-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgb(44 31 239 / 10%), rgb(155 117 230 / 5%));
  color: #7e4bc6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 12px;
  border: 1px solid rgb(57 31 239 / 15%);
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-title span {
  background: linear-gradient(135deg, #EF7B1F, #D8302F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 18px;
  color: #6b7a8f;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== SIDE-BY-SIDE LAYOUT ===== */
.ingredients-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

/* ===== TABS / NAVIGATION (vertical sidebar on desktop) ===== */
.product-tab-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: sticky;
  top: 24px;
  padding: 5px;
  background: #eef2fa;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.product-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7a8f;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-family: inherit;
  text-align: left;
  white-space: normal;
}

.product-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #1a2332;
  transform: translateX(2px);
}

.product-tab.active {
  background: #6b5ae2 !important;
  color: #1a2332;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.09), 0 1px 4px rgba(0, 0, 0, 0.05);
}

.product-tab:focus-visible {
  outline: 2px solid #EF7B1F;
  outline-offset: 2px;
}

.product-tab .tab-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 18%, transparent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-tab:hover .tab-dot {
  transform: scale(1.15);
}

.product-tab.active .tab-dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot) 26%, transparent);
}

.product-tab .tab-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* ===== PANELS ===== */
.product-panels {
  position: relative;
  min-height: 400px;
}

.product-panel {
  display: none;
  opacity: 0;
  animation: panelFadeIn 0.5s ease forwards;
}

.product-panel.active {
  display: block;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-grid {
  display: flex;
  gap: 50px;
  align-items: center;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  flex-direction: column;
}

/* Image Wrapper */
.panel-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8faff, #f0f4fb);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.panel-image-wrapper img {
  max-width: 100%;
  height: auto;
  max-height: 450px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.06));
}

.panel-image-wrapper:hover img {
  transform: scale(1.02);
}

/* Image badge */
.panel-image-wrapper::after {
  content: 'ðŸ“‹ Ingredients Label';
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.panel-image-wrapper:hover::after {
  opacity: 1;
}

/* Panel Info */
.panel-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a2332;
  line-height: 1.2;
  margin: 0;
}

.panel-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: linear-gradient(135deg, #EF7B1F, #D8302F);
  border-radius: 4px;
  margin-top: 12px;
}

.panel-description {
  font-size: 16px;
  color: #4a5a6f;
  line-height: 1.7;
  margin: 0;
}

.panel-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.panel-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1a2332;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.panel-features li:last-child {
  border-bottom: none;
}

.panel-features .check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #EF7B1F, #D8302F);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */

/* Tablets */
@media (max-width: 1024px) {
  .ingredients-body {
    padding: 60px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .ingredients-layout {
    grid-template-columns: 190px 1fr;
    gap: 20px;
  }

  .panel-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
  }

  .panel-title {
    font-size: 24px;
  }

  .panel-features {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .ingredients-hero{ padding:56px 0 36px; }
  .ingredients-title{ font-size:34px; }

  .ingredients-body {
    padding: 40px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .ingredients-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .product-tab-list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    overflow-x: auto;
    position: static;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-tab-list::-webkit-scrollbar {
    display: none;
  }

  .product-tab {
    padding: 10px 16px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .product-tab:hover {
    transform: translateY(-1px);
  }

  .product-tab .tab-label {
    font-size: 12px;
  }

  .product-tab .tab-dot {
    width: 8px;
    height: 8px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
    border-radius: 16px;
  }

  .panel-image-wrapper {
    padding: 16px;
  }

  .panel-image-wrapper img {
    max-height: 280px;
  }

  .panel-image-wrapper::after {
    display: none;
  }

  .panel-title {
    font-size: 22px;
  }

  .panel-title::after {
    width: 40px;
    height: 3px;
  }

  .panel-description {
    font-size: 15px;
  }

  .panel-features {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .panel-features li {
    font-size: 13px;
    padding: 6px 0;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .ingredients-body {
    padding: 30px 0;
  }

  .luxe-container {
    padding: 0 12px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-badge {
    font-size: 10px;
    padding: 4px 14px;
  }

  .product-tab {
    padding: 8px 12px;
    font-size: 11px;
    gap: 6px;
  }

  .product-tab .tab-label {
    font-size: 11px;
  }

  .product-tab .tab-dot {
    width: 6px;
    height: 6px;
  }

  .panel-grid {
    padding: 16px;
    gap: 16px;
  }

  .panel-image-wrapper img {
    max-height: 200px;
  }

  .panel-title {
    font-size: 19px;
  }

  .panel-description {
    font-size: 14px;
  }

  .panel-features li {
    font-size: 12px;
    padding: 4px 0;
  }

  .panel-features .check-icon {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
}

/* ===== UTILITY ===== */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}
