.section.product-section {
  padding: 70px 20px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.product-hero-section {
  position: relative;
  background: var(--gradient-section-bg);
  padding: 70px 0 55px;
}

.product-hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: var(--gradient-divider);
}

.product-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto 22px auto;
  width: 100%;
}

.product-hero-inner {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 980px;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 18px;
}

.product-hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.product-hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.product-title {
  font-size: 38px;
  font-weight: 700;
  color: #0f241b;
  margin-top: 18px;
  margin-bottom: 0;
}


.product-section {
  position: relative;
  padding-top: 50px;
  padding-bottom: 50px;
}

.product-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: var(--gradient-divider);
}

.product-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: var(--gradient-divider);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 45px;
  align-items: start;
  margin-top: 35px;
  text-align: left;
  max-width: 1650px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 80px;
}


.product-description {
  color: #0f2c1f;
  line-height: 1.8;
  font-size: 15px;
}

.product-description h2 {
  font-size: 26px;
  margin-bottom: 14px;
  color: var(--clr-dark-text);
}

.product-description h3 {
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 10px;
  color: var(--clr-dark-text);
}

.product-description p {
  margin-bottom: 12px;
}

.product-description p.product-claim-primary {
  font-size: 1.2rem;
  line-height: 1.65;
}

.product-description ul {
  margin: 10px 0 10px 20px;
}

.product-description li {
  margin-bottom: 6px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}

.pharmacy-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  background: rgba(42, 124, 95, 0.06);
  border-left: 3px solid var(--clr-brand);
  border-radius: 0 8px 8px 0;
  color: #3a6d56;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.btn-back {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  color: var(--clr-brand);
  position: relative;
  padding-bottom: 2px;
  transition: 0.25s ease;
}

.btn-back:hover {
  color: #0e6b4f;
  text-decoration: underline;
}

.btn-medicare {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--clr-brand) 0%, #1a5a43 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(42, 124, 95, 0.3);
  transition: all 0.3s ease;
}

.btn-medicare:hover {
  background: linear-gradient(135deg, #1a5a43 0%, #0e4532 100%);
  box-shadow: 0 6px 20px rgba(42, 124, 95, 0.4);
  transform: translateY(-2px);
}

.btn-medicare svg {
  flex-shrink: 0;
}

.tiles-grid {
  display: grid;
  gap: 18px;
}

.tiles-grid--packshots {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.product-image--packshots {
  background: rgba(255,255,255,0.65);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: zoom-in;
}

.product-image--packshots:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.product-image--packshots img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.product-image--packshots figcaption {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.85;
  color: var(--clr-dark-text);
}

.product-ingredients-section {
  position: relative;
  background: var(--gradient-section-bg);
  padding: 60px 20px;
}

.product-ingredients-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: var(--gradient-divider);
}

.product-ingredients-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: var(--gradient-divider);
}

.tiles-grid--ingredients {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.product-image--ingredients {
  background: rgba(255,255,255,0.55);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.product-image--ingredients img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.product-image--ingredients figcaption {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.85;
  color: var(--clr-dark-text);
}

.product-tabs-section {
  position: relative;
  padding: 60px 20px;
  background: #fff;
}

.product-tabs-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: var(--gradient-divider);
}

.product-tabs-inner {
  max-width: 1650px;
  margin: 0 auto;
  padding: 0 80px;
}

.muted {
  max-width: 720px;
  margin: 0 auto 18px auto;
  opacity: 0.85;
  color: var(--clr-dark-text);
  line-height: 1.7;
}

/* ============================================
   Medicine Product Tabs
============================================ */

.product-tabs {
  width: 100%;
}

.product-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
  border-bottom: 2px solid rgba(42, 124, 95, 0.2);
  padding-bottom: 0;
}

.product-tab-btn {
  position: relative;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #5a7a6e;
  background: rgba(42, 124, 95, 0.05);
  border: 1px solid rgba(42, 124, 95, 0.15);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  white-space: normal;
  text-align: left;
}

.product-tab-btn:hover {
  background: rgba(42, 124, 95, 0.1);
  color: var(--clr-brand);
}

.product-tab-btn.active {
  background: #fff;
  color: var(--clr-dark-text);
  border-color: rgba(42, 124, 95, 0.2);
  border-bottom-color: #fff;
  bottom: -2px;
  z-index: 1;
}

.product-tab-panels {
  border: 1px solid rgba(42, 124, 95, 0.2);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: #fff;
  padding: 28px 28px 22px;
  min-height: 120px;
}

.product-tab-panel {
  display: none;
  color: #0f2c1f;
  line-height: 1.8;
  font-size: 15px;
}

.product-tab-panel.active {
  display: block;
}

.product-tab-panel h3 {
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 10px;
  color: var(--clr-dark-text);
}

.product-tab-panel h3:first-child {
  margin-top: 0;
}

.product-tab-panel p {
  margin-bottom: 12px;
}

.product-tab-panel ul {
  margin: 10px 0 10px 20px;
}

.product-tab-panel li {
  margin-bottom: 6px;
}

.supplement-registration-block {
  margin-top: 44px;
  text-align: left;
  color: #0f2c1f;
  line-height: 1.8;
  font-size: 15px;
}

.supplement-registration-block h3 {
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 10px;
  color: var(--clr-dark-text);
}

.supplement-registration-block h3:first-child {
  margin-top: 0;
}

.supplement-registration-block p {
  margin-bottom: 12px;
}

.medicine-registration-block {
  margin-top: 44px;
  text-align: left;
  color: #0f2c1f;
  line-height: 1.8;
  font-size: 15px;
}

.medicine-registration-block h3 {
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 10px;
  color: var(--clr-dark-text);
}

.medicine-registration-block h3:first-child {
  margin-top: 0;
}

.medicine-registration-block p {
  margin-bottom: 12px;
}

.medicine-safety-note {
  margin: 28px 0 30px;
  font-size: 16px;
  line-height: 2;
  padding: 0.5em 16px;
  border-left: 3px solid #c8a020;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 220, 100, 0.12);
  color: #5a4200;
  text-align: left;
}

.medicine-badge {
  display: inline-block;
  background: rgba(42, 124, 95, 0.08);
  border: 1px solid rgba(42, 124, 95, 0.2);
  color: var(--clr-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

@media (max-width: 1200px) {
  .product-layout { padding: 0 28px; }
  .product-tabs-inner { padding: 0 28px; }
}

@media (max-width: 992px) {
  .product-title { font-size: 34px; }
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .product-hero-img { max-height: min(52vh, 360px); }
}

@media (max-width: 768px) {
  .product-title { font-size: 30px; }
  .product-description { font-size: 14.5px; }
  .product-image--packshots img { height: 200px; }
  .tiles-grid--packshots { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .product-tab-btn { font-size: 12.5px; padding: 8px 12px; max-width: 160px; }
  .product-tab-panels { padding: 20px 16px 16px; }
}

@media (max-width: 480px) {
  .product-title { font-size: 26px; }
  .product-hero-inner { padding: 14px; }
  .product-hero-img { max-height: min(48vh, 320px); }
  .product-image--packshots img { height: 180px; }
}

/* ============================================
   Drug Warning
============================================ */

.medicine-drug-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: rgba(255, 220, 100, 0.12);
  border-left: 3px solid #c8a020;
  border-radius: 0 8px 8px 0;
  color: #5a4200;
  font-size: 13.5px;
  line-height: 1.55;
}

.medicine-drug-warning svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #c8a020;
}

.medicine-drug-warning p {
  margin: 0;
}

/* ============================================
   Image Lightbox
============================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: lbFadeIn .18s ease forwards;
}

.lightbox-overlay[hidden] {
  display: none;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-inner {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  display: block;
  background: #fff;
  animation: lbScaleIn .2s ease forwards;
}

@keyframes lbScaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  color: #333;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  z-index: 1;
}

.lightbox-close:hover {
  background: var(--clr-brand);
  color: #fff;
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .lightbox-close {
    top: -12px;
    right: -8px;
    width: 34px;
    height: 34px;
  }
}
