/* ==========================================================================
   BodyShaping Habits — Components Stylesheet
   Interactive Tools, Modals, Cart Drawer, Cookies, Certificates & Checkout
   ========================================================================== */

/* 1. Slide-out Cart Drawer */
.cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 56, 44, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--bsh-white);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--bsh-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-family: var(--bsh-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bsh-pine);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bsh-text-muted);
  background: var(--bsh-sand);
  transition: var(--bsh-transition);
}

.cart-close-btn:hover {
  background: #e2ede7;
  color: var(--bsh-pine);
}

.cart-drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 10px;
  color: var(--bsh-text-muted);
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--bsh-sand);
  padding: 12px;
  border-radius: var(--bsh-radius-md);
  border: 1px solid var(--bsh-border);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--bsh-radius-sm);
  background: var(--bsh-white);
  object-fit: cover;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bsh-pine);
  margin-bottom: 4px;
}

.cart-item-bundle {
  font-size: 0.78rem;
  color: var(--bsh-sage);
  font-weight: 600;
  margin-bottom: 8px;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bsh-white);
  border: 1px solid var(--bsh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bsh-pine);
}

.qty-btn:hover {
  background: var(--bsh-sage-light);
  border-color: var(--bsh-sage);
}

.cart-qty-val {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.cart-item-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cart-item-price {
  font-family: var(--bsh-font-heading);
  font-weight: 800;
  color: var(--bsh-pine);
  font-size: 1.05rem;
}

.cart-item-remove {
  color: #a54b4b;
  font-size: 0.8rem;
  background: none;
  cursor: pointer;
}

.cart-item-remove:hover {
  text-decoration: underline;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--bsh-border);
  background: #fbfdfc;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--bsh-text-secondary);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bsh-pine);
}

.cart-checkout-btn {
  width: 100%;
  background: var(--bsh-pine);
  color: var(--bsh-white);
  padding: 14px;
  border-radius: var(--bsh-radius-pill);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  display: block;
  transition: var(--bsh-transition);
}

.cart-checkout-btn:hover {
  background: var(--bsh-sage);
}

.cart-shipping-notice {
  font-size: 0.78rem;
  color: var(--bsh-text-muted);
  text-align: center;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* 2. GDPR Cookie Consent Banner & Settings Modal */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 580px;
  margin: 0 auto;
  background: var(--bsh-white);
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-lg);
  padding: 24px;
  box-shadow: 0 12px 36px rgba(13, 56, 44, 0.18);
  z-index: 1050;
  display: none;
  animation: slideUp 0.35s ease;
}

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

.cookie-banner.show {
  display: block;
}

.cookie-banner-content h4 {
  font-family: var(--bsh-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bsh-pine);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner-content p {
  font-size: 0.88rem;
  color: var(--bsh-text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.cookie-banner-content a {
  color: var(--bsh-sage);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn-cookie-accept {
  background: var(--bsh-pine);
  color: var(--bsh-white);
  padding: 9px 18px;
  border-radius: var(--bsh-radius-pill);
  font-weight: 700;
  font-size: 0.86rem;
  transition: var(--bsh-transition);
}

.btn-cookie-accept:hover {
  background: var(--bsh-sage);
}

.btn-cookie-essential {
  background: var(--bsh-sand);
  color: var(--bsh-pine);
  border: 1px solid var(--bsh-border);
  padding: 9px 16px;
  border-radius: var(--bsh-radius-pill);
  font-weight: 600;
  font-size: 0.86rem;
  transition: var(--bsh-transition);
}

.btn-cookie-essential:hover {
  background: #e2ede7;
}

.btn-cookie-settings {
  background: none;
  color: var(--bsh-text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 12px;
  text-decoration: underline;
}

/* Cookie Settings Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 56, 44, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-backdrop.open {
  display: flex;
}

.cookie-modal {
  background: var(--bsh-white);
  max-width: 540px;
  width: 100%;
  border-radius: var(--bsh-radius-lg);
  box-shadow: var(--bsh-shadow-lg);
  border: 1px solid var(--bsh-border);
  overflow: hidden;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cookie-modal-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--bsh-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-header h3 {
  font-family: var(--bsh-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bsh-pine);
}

.cookie-modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cookie-type-row {
  background: var(--bsh-sand);
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-md);
  padding: 16px;
}

.cookie-type-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cookie-type-top h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--bsh-pine);
}

.cookie-type-row p {
  font-size: 0.84rem;
  color: var(--bsh-text-secondary);
  line-height: 1.5;
}

.cookie-modal-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--bsh-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #fbfdfc;
}

/* 3. Interactive Quizzes & Calculators */
.calc-wrapper {
  background: var(--bsh-white);
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-lg);
  box-shadow: var(--bsh-shadow-md);
  padding: 40px;
  margin-bottom: 50px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.calc-input-group {
  margin-bottom: 22px;
}

.calc-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bsh-pine);
  margin-bottom: 8px;
}

.calc-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-md);
  background: var(--bsh-sand);
  color: var(--bsh-text-primary);
  font-weight: 600;
}

.calc-input:focus {
  outline: none;
  border-color: var(--bsh-sage);
  background: var(--bsh-white);
}

.calc-range-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-range-slider {
  flex-grow: 1;
  accent-color: var(--bsh-sage);
}

.calc-range-value {
  font-family: var(--bsh-font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bsh-pine);
  min-width: 60px;
  text-align: right;
}

.calc-result-box {
  background: linear-gradient(135deg, var(--bsh-sage-light) 0%, #dbeae3 100%);
  border: 1px solid rgba(39, 111, 87, 0.2);
  border-radius: var(--bsh-radius-lg);
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.water-glass-graphic {
  width: 90px;
  height: 140px;
  border: 4px solid var(--bsh-pine);
  border-top: none;
  border-radius: 0 0 20px 20px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  margin: 18px 0;
}

.water-fill-level {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(180deg, #5ec3e7 0%, #2f88b8 100%);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0 0 16px 16px;
}

.calc-result-num {
  font-family: var(--bsh-font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--bsh-pine);
  line-height: 1;
  margin-bottom: 4px;
}

.calc-result-unit {
  font-size: 0.95rem;
  color: var(--bsh-text-secondary);
  font-weight: 600;
  margin-bottom: 16px;
}

.hydration-timeline {
  width: 100%;
  text-align: left;
  background: var(--bsh-white);
  padding: 16px;
  border-radius: var(--bsh-radius-md);
  font-size: 0.82rem;
  color: var(--bsh-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Step-by-Step Metabolic Quiz */
.quiz-box {
  background: var(--bsh-white);
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-lg);
  box-shadow: var(--bsh-shadow-md);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
}

.quiz-progress-bar {
  height: 8px;
  background: var(--bsh-sand);
  border-radius: var(--bsh-radius-pill);
  overflow: hidden;
  margin-bottom: 30px;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--bsh-sage);
  width: 20%;
  transition: width 0.3s ease;
}

.quiz-step-title {
  font-family: var(--bsh-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bsh-pine);
  margin-bottom: 22px;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.quiz-option-btn {
  text-align: left;
  background: var(--bsh-sand);
  border: 2px solid var(--bsh-border);
  border-radius: var(--bsh-radius-md);
  padding: 16px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--bsh-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--bsh-transition);
}

.quiz-option-btn:hover, .quiz-option-btn.selected {
  border-color: var(--bsh-sage);
  background: var(--bsh-sage-light);
  color: var(--bsh-pine);
}

.quiz-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-result-card {
  text-align: center;
  padding: 20px;
}

.quiz-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bsh-sage-light);
  border: 6px solid var(--bsh-sage);
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quiz-score-val {
  font-family: var(--bsh-font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bsh-pine);
  line-height: 1;
}

.quiz-score-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bsh-sage);
  text-transform: uppercase;
}

/* 4. Interactive Certificates & Batch Verification Portal */
.cert-portal-box {
  background: var(--bsh-white);
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-lg);
  box-shadow: var(--bsh-shadow-md);
  padding: 36px;
  margin-bottom: 40px;
}

.cert-lookup-bar {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 36px;
}

.cert-input {
  flex-grow: 1;
  padding: 12px 18px;
  border: 2px solid var(--bsh-border);
  border-radius: var(--bsh-radius-pill);
  font-weight: 600;
}

.cert-input:focus {
  outline: none;
  border-color: var(--bsh-sage);
}

.cert-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.cert-seal-card {
  background: var(--bsh-sand);
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-md);
  padding: 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--bsh-transition);
}

.cert-seal-card:hover {
  transform: translateY(-4px);
  border-color: var(--bsh-sage);
  box-shadow: var(--bsh-shadow-sm);
}

.cert-seal-icon {
  width: 64px;
  height: 64px;
  background: var(--bsh-white);
  border: 2px solid var(--bsh-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.cert-seal-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bsh-pine);
  margin-bottom: 6px;
}

.cert-seal-card p {
  font-size: 0.85rem;
  color: var(--bsh-text-secondary);
  margin-bottom: 12px;
}

.cert-status-badge {
  background: #e8f5e9;
  color: var(--bsh-success);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--bsh-radius-pill);
  text-transform: uppercase;
}

/* Certificate of Analysis Interactive Table */
.lab-analysis-table-wrapper {
  overflow-x: auto;
  margin-top: 24px;
  border-radius: var(--bsh-radius-md);
  border: 1px solid var(--bsh-border);
}

.lab-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bsh-white);
  font-size: 0.92rem;
  text-align: left;
}

.lab-table th {
  background: var(--bsh-sage-light);
  color: var(--bsh-pine);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--bsh-border);
}

.lab-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--bsh-border-light);
  color: var(--bsh-text-primary);
}

.lab-table tr:hover td {
  background: #fbfdfc;
}

.status-pass {
  font-weight: 700;
  color: var(--bsh-success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 5. Products Catalog Page */
.product-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 52px;
  align-items: center;
  margin-bottom: 72px;
}

.product-gallery-card {
  background: var(--bsh-white);
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-lg);
  padding: 24px;
  box-shadow: var(--bsh-shadow-md);
  text-align: center;
}

.product-main-img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  margin-bottom: 16px;
}

.bundle-selection-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.bundle-card {
  background: var(--bsh-sand);
  border: 2px solid var(--bsh-border);
  border-radius: var(--bsh-radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  transition: var(--bsh-transition);
  position: relative;
}

.bundle-card.recommended {
  border-color: var(--bsh-sage);
  background: var(--bsh-sage-light);
}

.bundle-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--bsh-gold);
  color: var(--bsh-white);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--bsh-radius-pill);
}

.bundle-radio {
  accent-color: var(--bsh-sage);
  width: 20px;
  height: 20px;
}

.bundle-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bsh-pine);
  margin-bottom: 4px;
}

.bundle-info p {
  font-size: 0.85rem;
  color: var(--bsh-text-secondary);
}

.bundle-cta-cell {
  text-align: right;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0;
}

.ingredient-item {
  background: var(--bsh-white);
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-md);
  padding: 20px;
  text-align: center;
}

.ingredient-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bsh-pine);
  margin-bottom: 6px;
}

.ingredient-item p {
  font-size: 0.82rem;
  color: var(--bsh-text-muted);
}

/* 6. Checkout Page */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 48px;
  margin-bottom: 60px;
}

.checkout-card {
  background: var(--bsh-white);
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-lg);
  padding: 36px;
  box-shadow: var(--bsh-shadow-sm);
  margin-bottom: 28px;
}

.checkout-card-title {
  font-family: var(--bsh-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bsh-pine);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bsh-pine);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-md);
  background: var(--bsh-sand);
  color: var(--bsh-text-primary);
  font-size: 0.95rem;
  transition: var(--bsh-transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--bsh-sage);
  background: var(--bsh-white);
}

.shipping-method-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shipping-option-card {
  border: 2px solid var(--bsh-border);
  border-radius: var(--bsh-radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--bsh-sand);
  transition: var(--bsh-transition);
}

.shipping-option-card:hover, .shipping-option-card.active {
  border-color: var(--bsh-sage);
  background: var(--bsh-sage-light);
}

.shipping-option-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-method-card {
  border: 2px solid var(--bsh-border);
  border-radius: var(--bsh-radius-md);
  padding: 16px;
  cursor: pointer;
  background: var(--bsh-sand);
  transition: var(--bsh-transition);
  text-align: center;
}

.payment-method-card:hover, .payment-method-card.active {
  border-color: var(--bsh-sage);
  background: var(--bsh-sage-light);
}

.ssl-guarantee-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--bsh-text-muted);
  margin-top: 20px;
  text-align: center;
}

/* 7. Thank You / Order Tracking Page */
.thankyou-card {
  background: var(--bsh-white);
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-lg);
  padding: 48px;
  box-shadow: var(--bsh-shadow-md);
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.success-badge-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e8f5e9;
  color: var(--bsh-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
}

.tracking-box {
  background: var(--bsh-sand);
  border: 1px dashed var(--bsh-sage);
  border-radius: var(--bsh-radius-md);
  padding: 18px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tracking-code-val {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bsh-pine);
  letter-spacing: 1px;
}

/* 4-Step Tracker Timeline */
.tracker-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 36px 0 24px;
}

.tracker-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--bsh-border);
  z-index: 1;
}

.tracker-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
}

.tracker-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bsh-white);
  border: 4px solid var(--bsh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bsh-text-muted);
  margin-bottom: 8px;
}

.tracker-step.done .tracker-dot {
  border-color: var(--bsh-success);
  background: var(--bsh-success);
  color: var(--bsh-white);
}

.tracker-step.current .tracker-dot {
  border-color: var(--bsh-sage);
  background: var(--bsh-white);
  color: var(--bsh-sage);
  box-shadow: 0 0 0 4px var(--bsh-sage-light);
}

.tracker-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bsh-text-secondary);
  text-align: center;
}

/* Coach Greeting Box */
.coach-advice-box {
  background: var(--bsh-sage-light);
  border-radius: var(--bsh-radius-md);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  text-align: left;
  margin-top: 30px;
  border: 1px solid rgba(39, 111, 87, 0.2);
}

.coach-thumb-mini {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--bsh-white);
}

/* 8. Legal & Long-form Content Layout */
.prose-content {
  background: var(--bsh-white);
  border: 1px solid var(--bsh-border);
  border-radius: var(--bsh-radius-lg);
  padding: 48px;
  box-shadow: var(--bsh-shadow-sm);
  max-width: 880px;
  margin: 0 auto;
}

.prose-content h1 {
  font-family: var(--bsh-font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bsh-pine);
  line-height: 1.3;
  margin-bottom: 20px;
}

.prose-content h2 {
  font-family: var(--bsh-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bsh-pine);
  margin: 36px 0 16px;
}

.prose-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bsh-pine);
  margin: 24px 0 12px;
}

.prose-content p {
  font-size: 1.02rem;
  color: var(--bsh-text-primary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.prose-content ul, .prose-content ol {
  margin: 16px 0 24px 28px;
  color: var(--bsh-text-primary);
  font-size: 1rem;
  line-height: 1.7;
}

.prose-callout {
  background: var(--bsh-sage-light);
  border-left: 4px solid var(--bsh-sage);
  padding: 20px 24px;
  border-radius: 0 var(--bsh-radius-md) var(--bsh-radius-md) 0;
  margin: 28px 0;
  font-size: 0.98rem;
  color: var(--bsh-pine);
}

.scientific-sources-box {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--bsh-border);
  font-size: 0.85rem;
  color: var(--bsh-text-muted);
}

.scientific-sources-box ol {
  margin-left: 20px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .product-showcase-grid {
    grid-template-columns: 1fr;
  }
  .cert-card-grid {
    grid-template-columns: 1fr;
  }
  .ingredients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .payment-method-grid {
    grid-template-columns: 1fr;
  }
  .ingredients-grid {
    grid-template-columns: 1fr;
  }
  .prose-content {
    padding: 28px 20px;
  }
  .coach-advice-box {
    flex-direction: column;
    text-align: center;
  }
  .tracker-step {
    font-size: 0.7rem;
  }
}
