/* BIOVA THEME - Product Page */


    .product-hero { padding-top: 90px; background: var(--ivory); min-height: 100vh; }
    .product-inner { max-width: 1100px; margin: 0 auto; padding: 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
    .product-img-wrap { position: sticky; top: 90px; background: var(--ivory); padding: 2rem; display: flex; align-items: center; justify-content: center; }
    .product-img-main { width: 100%; max-height: 560px; object-fit: contain; display: block; }
    .product-brand { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); margin-bottom: 0.75rem; }
    .product-title { font-family: 'Cormorant Garant', serif; font-size: clamp(2.5rem,5vw,4rem); font-weight: 300; line-height: 1.1; margin-bottom: 0.5rem; }
    .product-subtitle { font-family: 'Cormorant Garant', serif; font-size: 1.2rem; font-weight: 300; font-style: italic; color: var(--taupe); margin-bottom: 2rem; }
    .product-price-block { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--warm-beige); }
    .product-price-main { font-family: 'Cormorant Garant', serif; font-size: 2.5rem; font-weight: 400; }
    .product-price-note { font-size: 0.78rem; color: rgba(43,42,46,0.5); }
    .product-desc { font-size: 0.9rem; line-height: 1.85; color: rgba(43,42,46,0.72); margin-bottom: 2rem; }
    .product-benefits { margin-bottom: 2rem; }
    .benefit-item { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; }
    .benefit-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--taupe); flex-shrink: 0; margin-top: 0.55rem; }
    .benefit-text { font-size: 0.85rem; line-height: 1.65; color: rgba(43,42,46,0.75); }
    .order-form { background: var(--white); padding: 2rem; margin-top: 1rem; }
    .order-form h3 { font-family: 'Cormorant Garant', serif; font-size: 1.5rem; font-weight: 300; margin-bottom: 1.5rem; }
    .form-group { margin-bottom: 1.25rem; }
    .form-group label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(43,42,46,0.6); margin-bottom: 0.4rem; }
    .form-group input, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--warm-beige); background: var(--ivory); font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--charcoal); outline: none; transition: border-color 0.2s; }
    .form-group input:focus, .form-group textarea:focus { border-color: var(--taupe); }
    .form-group textarea { resize: vertical; min-height: 80px; }
    .form-note { font-size: 0.75rem; color: rgba(43,42,46,0.45); margin-top: 1rem; line-height: 1.6; }
    .cod-badge { display: flex; align-items: center; gap: 0.6rem; background: rgba(164,140,122,0.1); padding: 0.75rem 1rem; margin-bottom: 1.5rem; }
    .cod-badge svg { width: 18px; height: 18px; stroke: var(--taupe); fill: none; stroke-width: 1.5; flex-shrink: 0; }
    .cod-badge span { font-size: 0.78rem; color: var(--taupe); font-weight: 500; letter-spacing: 0.04em; }
    .back-link { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; color: var(--taupe); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2rem; }
    .back-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }
    @media (max-width: 900px) { .product-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; } .product-img-wrap { position: static; } }
  
/* ── Fluent Forms — BIOVA design integration ─────────────────
   Targets only Fluent Forms elements within .product-info.
   Minimal overrides — inherits theme fonts via functions.php.
   ──────────────────────────────────────────────────────────── */

/* Form wrapper */
.product-info .ff-el-group {
  margin-bottom: 1.25rem;
}

/* Labels */
.product-info .ff-el-input--label label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(43,42,46,0.6);
  font-weight: 400;
  margin-bottom: 0.4rem;
}

/* Required asterisk */
.product-info .ff-el-input--label .ff-el-is-required {
  color: var(--taupe);
}

/* Text inputs, email, tel, textarea, select */
.product-info .ff-el-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--warm-beige);
  background: var(--ivory);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--charcoal);
  outline: none;
  border-radius: 0;
  box-shadow: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.product-info .ff-el-form-control:focus {
  border-color: var(--taupe);
  box-shadow: none;
}

/* Select dropdown arrow */
.product-info select.ff-el-form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A48C7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Textarea */
.product-info textarea.ff-el-form-control {
  resize: vertical;
  min-height: 80px;
}

/* Checkbox — marketing consent */
.product-info .ff-el-form-check-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(43,42,46,0.65);
  font-weight: 300;
  line-height: 1.5;
  cursor: pointer;
}

.product-info .ff-el-form-check-input {
  width: 16px;
  height: 16px;
  border: 1px solid var(--warm-beige);
  border-radius: 0;
  accent-color: var(--taupe);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Validation errors */
.product-info .ff-el-is-error .ff-el-form-control {
  border-color: #c0392b;
}

.product-info .text-danger {
  font-size: 0.75rem;
  color: #c0392b;
  margin-top: 0.25rem;
  font-family: 'Inter', sans-serif;
}

/* Submit button */
.product-info .ff-btn-submit {
  width: 100%;
  padding: 0.95rem 2rem;
  background: var(--taupe) !important;
  color: var(--white);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.25s;
}

.product-info .ff-btn-submit:hover,
.product-info .ff-btn-submit:focus {
  background: #8f7868 !important;
}

/* Success message */
.product-info .ff-message-success {
  background: rgba(164,140,122,0.1);
  border-left: 3px solid var(--taupe);
  padding: 1rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.65;
}

/* Form section heading */
.product-info .ff-section-break-cont h3 {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

/* Mobile */
@media (max-width: 600px) {
  .product-info .ff-el-form-control {
    font-size: 16px; /* Prevents iOS zoom on input focus */
  }
}

/* ── Product Detail Section ───────────────────────────────────
   Reusable across all three product pages.
   Sits below .product-inner, full width within .product-hero.
   ──────────────────────────────────────────────────────────── */

.product-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem;
  border-top: 1px solid var(--warm-beige);
}

.product-detail-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.product-detail-images img {
  width: 100%;
  height: auto;
  display: block;
}

.product-detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-detail-intro {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(43,42,46,0.75);
}

.product-detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.product-detail-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(43,42,46,0.75);
}

.product-detail-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--taupe);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.product-detail-dosage {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--warm-beige);
  font-size: 0.85rem;
  color: rgba(43,42,46,0.6);
  line-height: 1.7;
}

.product-detail-dosage strong {
  color: var(--charcoal);
  font-weight: 500;
}

@media (max-width: 900px) {
  .product-detail {
    padding: 3rem 1.5rem;
  }

  .product-detail-images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .product-detail-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Order form — bottom of page */
.product-order-bottom {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 4rem 6rem;
  border-top: 1px solid var(--warm-beige);
  padding-top: 4rem;
}

@media (max-width: 900px) {
  .product-order-bottom {
    padding: 3rem 1.5rem 4rem;
  }
}

/* ── Product Image Gallery ────────────────────────────────────
   Reusable for all three product pages.
   ──────────────────────────────────────────────────────────── */

.product-img-wrap.has-gallery {
  flex-direction: column;
  align-items: stretch;
  padding: 1rem;
  gap: 1rem;
}

.product-gallery-main {
  width: 100%;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
}

.product-gallery-main img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.product-gallery-main img.is-switching {
  opacity: 0;
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.product-gallery-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  background: var(--ivory);
  cursor: pointer;
  padding: 4px;
  transition: border-color 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-gallery-thumb.is-active {
  border-color: var(--taupe);
}

.product-gallery-thumb:hover {
  border-color: var(--warm-beige);
}

.product-gallery-thumb.is-active:hover {
  border-color: var(--taupe);
}

@media (max-width: 900px) {
  .product-img-wrap.has-gallery {
    padding: 0.5rem;
  }
  .product-gallery-main {
    height: 300px;
  }
  .product-gallery-main img {
    max-height: 300px;
  }
   .product-gallery-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .product-gallery-thumbs {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
}

/* ── Lightbox ─────────────────────────────────────────────────
   Generic — works across all three product pages.
   ──────────────────────────────────────────────────────────── */

.product-gallery-main img {
  cursor: zoom-in;
}

.biova-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(43,42,46,0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.biova-lightbox.is-open {
  display: flex;
}

.biova-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 9001;
}

.biova-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 9002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.biova-lightbox-close:hover,
.biova-lightbox-close:focus {
  opacity: 1;
}

.biova-lightbox-close svg {
  width: 28px;
  height: 28px;
  stroke: var(--ivory);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .biova-lightbox {
    padding: 1rem;
  }
  .biova-lightbox-img {
    max-width: 96vw;
    max-height: 88vh;
  }
  .biova-lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}
/* ── Product right-column reusable classes ────────────────────
   Replaces inline styles in product page templates.
   ──────────────────────────────────────────────────────────── */

.product-section-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.product-clinical {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--warm-beige);
}

.product-clinical-intro {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(43,42,46,0.72);
  margin-bottom: 0.75rem;
}

.product-clinical .benefit-text {
  font-size: 0.85rem;
}

.product-clinical-disclaimer {
  font-size: 0.75rem;
  color: rgba(43,42,46,0.45);
  line-height: 1.6;
  margin-top: 0.75rem;
}
/* ── Order form button — Biova styling ────────────────────────
   Targets .product-order-bottom where the form now lives.
   ──────────────────────────────────────────────────────────── */

.product-order-bottom .ff-btn.ff-btn-submit {
  width: 100%;
  padding: 0.95rem 2rem;
  background: var(--taupe) !important;
  color: var(--white) !important;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.25s;
}

.product-order-bottom .ff-btn.ff-btn-submit:hover,
.product-order-bottom .ff-btn.ff-btn-submit:focus {
  background: #8f7868 !important;
}

.product-order-bottom .fluentform input,
.product-order-bottom .fluentform textarea,
.product-order-bottom .fluentform select {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
}