/*
 Theme Name:   Purple Dolphin Farms
 Theme URI:    https://purpledolphinfarms.com
 Description:  Astra child theme for Purple Dolphin Farms — longevity foods education and e-commerce
 Author:       Purple Dolphin Farms
 Template:     astra
 Version:      2.10.0
 Text Domain:  purple-dolphin-farms
*/

/* ==========================================================================
   Purple Brand Design System
   Color palette: Clean White → Gentle Pink → Lavender → Grey/Pink → Pink/Purple → Bold Black
   ========================================================================== */

:root {
  /* Core Palette */
  --pdf-white: #FFFFFF;
  --pdf-gentle-pink: #F5D1E8;
  --pdf-lavender: #9B6BB0;
  --pdf-purple: #7B3FA0;
  --pdf-purple-dark: #5C2D82;
  --pdf-black: #1C1C1C;

  /* Gradients */
  --pdf-gradient-grey-pink: linear-gradient(135deg, #E8E0EC 0%, #F5D1E8 100%);
  --pdf-gradient-pink-purple: linear-gradient(135deg, #E8B4D8 0%, #7B3FA0 100%);

  /* Backgrounds */
  --pdf-bg: #FFFFFF;
  --pdf-bg-soft: #FAF6FC;
  --pdf-bg-pink: #FDF2F8;
  --pdf-bg-dark: #1C1C1C;

  /* Text */
  --pdf-text: #1C1C1C;
  --pdf-text-secondary: #6B7280;
  --pdf-text-on-dark: #FFFFFF;
  --pdf-text-on-purple: #FFFFFF;

  /* Pathway Badge Colors (from design — subtle purple-toned tags) */
  --pdf-pathway-inflammation: #C084D8;
  --pdf-pathway-mitochondrial: #9B6BB0;
  --pdf-pathway-oxidative: #B07CC6;
  --pdf-pathway-cellular: #7B3FA0;

  /* Accents */
  --pdf-accent-green: #4CAF50;
  --pdf-border: #E8E0EC;
  --pdf-border-light: #F0EAF4;

  /* Typography */
  --pdf-font-heading: 'Spectral', Georgia, 'Times New Roman', serif;
  --pdf-font-body: 'Overpass', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --pdf-section-padding: 80px 0;
  --pdf-section-padding-mobile: 48px 0;
  --pdf-container-width: 1200px;

  /* Radius */
  --pdf-radius-sm: 4px;
  --pdf-radius-md: 8px;
  --pdf-radius-lg: 16px;
  --pdf-radius-pill: 100px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

body {
  font-family: var(--pdf-font-body);
  font-size: 18px !important;
  color: var(--pdf-text);
  line-height: 1.6;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6,
p, li, blockquote {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pdf-font-heading);
  color: #3D1A5C;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* Keep white headings on dark/purple backgrounds */
.pdf-section-dark h1, .pdf-section-dark h2, .pdf-section-dark h3, .pdf-section-dark h4,
.pdf-stacks-hero h1,
.pdf-science-hero h1,
.pdf-about-hero h1,
.pdf-join-hero h1,
.pdf-home-hero h1,
.pdf-footer__title {
  color: var(--pdf-text-on-dark);
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 600; }
h3 { font-size: 1.625rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.pdf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--pdf-white);
  border-bottom: 1px solid var(--pdf-border-light);
}

.pdf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--pdf-container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

/* Logo */
.pdf-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.pdf-header__logo img {
  height: 44px;
  width: auto;
}

.pdf-header__wordmark {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pdf-text);
  letter-spacing: -0.01em;
}

/* Nav */
.pdf-header__nav {
  display: flex;
  align-items: center;
}

.pdf-header__menu {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pdf-header__menu li a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pdf-text);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 4px 0;
}

.pdf-header__menu li a:hover,
.pdf-header__menu li.current-menu-item a,
.pdf-header__menu li.current_page_item a {
  color: var(--pdf-purple);
}

.pdf-header__menu li.current-menu-item a,
.pdf-header__menu li.current_page_item a {
  border-bottom: 2px solid var(--pdf-purple);
}

/* Header Actions */
.pdf-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Header Icons (Search, Account, Cart) */
.pdf-header__icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  color: var(--pdf-text) !important;
  text-decoration: none !important;
  transition: color 0.2s ease, background 0.2s ease !important;
  cursor: pointer !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.pdf-header__icon:hover {
  color: var(--pdf-purple);
  background: var(--pdf-bg-soft);
}

/* Account Dropdown */
.pdf-account-dropdown {
  position: relative;
}

.pdf-account-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--pdf-white);
  border: 1.5px solid var(--pdf-border-light);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  z-index: 1000;
}

.pdf-account-dropdown--open .pdf-account-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pdf-account-dropdown__menu a {
  display: block !important;
  padding: 10px 14px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--pdf-text) !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: background 0.12s ease, color 0.12s ease !important;
  font-family: var(--pdf-font-body) !important;
}

.pdf-account-dropdown__menu a:hover {
  background: var(--pdf-bg-soft) !important;
  color: var(--pdf-purple) !important;
}

.pdf-account-dropdown__logout {
  color: #e53e3e !important;
}

.pdf-account-dropdown__logout:hover {
  background: #fef2f2 !important;
  color: #c53030 !important;
}

.pdf-account-dropdown__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pdf-text);
}

.pdf-account-dropdown__user img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover;
}

.pdf-account-dropdown__divider {
  height: 1px;
  background: var(--pdf-border-light);
  margin: 4px 8px;
}

.pdf-header__cart {
  position: relative;
}

.pdf-header__cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--pdf-purple);
  color: var(--pdf-text-on-purple);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* CTA */
.pdf-header__cta-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pdf-text-on-purple);
  background: var(--pdf-purple);
  border-radius: var(--pdf-radius-pill);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pdf-header__cta-btn:hover {
  background: var(--pdf-purple-dark);
  color: var(--pdf-white);
  transform: translateY(-1px);
}

/* Mobile toggle */
.pdf-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
  box-shadow: none !important;
}

.pdf-header__toggle:hover,
.pdf-header__toggle:focus,
.pdf-header__toggle:active,
.pdf-header__toggle[aria-expanded="true"] {
  background: transparent !important;
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.pdf-header__toggle:focus-visible {
  outline: 2px solid var(--pdf-purple) !important;
  outline-offset: 2px;
  border-radius: var(--pdf-radius-sm);
}

.pdf-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pdf-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Mobile open state — hamburger → X */
.pdf-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.pdf-header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.pdf-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.pdf-header__mobile-cta {
  display: none;
}

/* Mobile responsive */
@media (max-width: 960px) {
  .pdf-header__toggle { display: flex; }
  .pdf-header__actions .pdf-header__cta-btn { display: none; }
  .pdf-header__mobile-cta {
    display: block;
    margin-top: 16px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: var(--pdf-text-on-purple);
    background: var(--pdf-purple);
    border-radius: var(--pdf-radius-pill);
    text-decoration: none;
    transition: background 0.2s ease;
  }
  .pdf-header__mobile-cta:hover {
    background: var(--pdf-purple-dark);
    color: var(--pdf-white);
  }

  .pdf-header__nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--pdf-white);
    border-bottom: 1px solid var(--pdf-border);
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .pdf-header__nav--open {
    display: block;
  }

  .pdf-header__menu {
    flex-direction: column;
    gap: 0;
  }

  .pdf-header__menu li a {
    display: block;
    padding: 12px 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--pdf-border-light);
  }

  .pdf-header__menu li:last-child a {
    border-bottom: none;
  }

  /* Show CTA as last menu item on mobile */
  .pdf-header__nav--open::after {
    content: '';
    display: block;
    height: 16px;
  }
}

/* Hide Astra's default header when our custom header is present */
.ast-above-header-wrap,
.ast-main-header-wrap,
.ast-below-header-wrap,
#ast-desktop-header,
#ast-mobile-header,
.ast-primary-header-bar {
  display: none !important;
}

/* Back-to-top button — on-brand override */
.ast-scroll-top-icon,
#ast-scroll-top {
  background-color: var(--pdf-purple) !important;
  color: var(--pdf-white) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  box-shadow: 0 4px 12px rgba(123, 63, 160, 0.3) !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.ast-scroll-top-icon:hover,
#ast-scroll-top:hover {
  background-color: var(--pdf-purple-dark) !important;
  transform: translateY(-2px) !important;
}

.ast-scroll-top-icon svg,
#ast-scroll-top svg {
  fill: var(--pdf-white) !important;
}

/* ==========================================================================
   Links & Buttons
   ========================================================================== */

a {
  color: var(--pdf-purple);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pdf-purple-dark);
}

/* Primary button — solid purple */
.ast-button,
.wp-block-button__link,
.elementor-button,
input[type="submit"],
.pdf-btn-primary {
  background-color: var(--pdf-purple) !important;
  border-color: var(--pdf-purple) !important;
  color: var(--pdf-text-on-purple) !important;
  border-radius: var(--pdf-radius-pill) !important;
  padding: 12px 32px !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  letter-spacing: 0.02em;
  transition: all 0.2s ease !important;
}

.ast-button:hover,
.wp-block-button__link:hover,
.elementor-button:hover,
input[type="submit"]:hover,
.pdf-btn-primary:hover {
  background-color: var(--pdf-purple-dark) !important;
  border-color: var(--pdf-purple-dark) !important;
  transform: translateY(-1px);
}

/* Outline button — purple border on white */
.pdf-btn-outline {
  background-color: transparent !important;
  border: 2px solid var(--pdf-purple) !important;
  color: var(--pdf-purple) !important;
  border-radius: var(--pdf-radius-pill) !important;
  padding: 10px 30px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.pdf-btn-outline:hover {
  background-color: var(--pdf-purple) !important;
  color: var(--pdf-text-on-purple) !important;
}

/* ==========================================================================
   Pathway Badges — Soft purple-toned tags
   ========================================================================== */

.pathway-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--pdf-radius-pill);
  font-size: 0.778rem;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  color: var(--pdf-purple-dark);
  background-color: var(--pdf-bg-soft);
  border: 1px solid var(--pdf-border);
  margin: 2px 4px;
}

.pathway-badge--inflammation-reduction {
  background-color: #F3E8F9;
  border-color: var(--pdf-pathway-inflammation);
  color: #7B3FA0;
}

.pathway-badge--mitochondrial-support {
  background-color: #EDE4F3;
  border-color: var(--pdf-pathway-mitochondrial);
  color: #6B4D8A;
}

.pathway-badge--oxidative-stress {
  background-color: #F0E6F6;
  border-color: var(--pdf-pathway-oxidative);
  color: #8B5CA8;
}

.pathway-badge--cellular-regeneration {
  background-color: #EBE0F5;
  border-color: var(--pdf-pathway-cellular);
  color: #5C2D82;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

/* Soft pink/lavender background sections */
.pdf-section-soft {
  background-color: var(--pdf-bg-soft);
}

.pdf-section-pink {
  background-color: var(--pdf-bg-pink);
}

/* Gradient background sections */
.pdf-section-gradient-pink {
  background: var(--pdf-gradient-grey-pink);
}

.pdf-section-gradient-purple {
  background: var(--pdf-gradient-pink-purple);
  color: var(--pdf-text-on-dark);
}

.pdf-section-gradient-purple h1,
.pdf-section-gradient-purple h2,
.pdf-section-gradient-purple h3,
.pdf-section-gradient-purple p {
  color: var(--pdf-text-on-dark);
}

/* Dark sections — bold black */
.pdf-section-dark {
  background-color: var(--pdf-black);
  color: var(--pdf-text-on-dark);
}

.pdf-section-dark h1,
.pdf-section-dark h2,
.pdf-section-dark h3,
.pdf-section-dark h4,
.pdf-section-dark p,
.pdf-section-dark a {
  color: var(--pdf-text-on-dark);
}

.pdf-section-dark a:hover {
  color: var(--pdf-gentle-pink);
}

/* ==========================================================================
   Product Cards
   ========================================================================== */

.pdf-product-card {
  background: var(--pdf-white);
  border-radius: var(--pdf-radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.pdf-product-card:hover {
  box-shadow: 0 4px 20px rgba(123, 63, 160, 0.1);
}

.pdf-product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pdf-product-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 12px 0 4px;
}

.pdf-product-card__desc {
  font-size: 1rem;
  color: var(--pdf-text-secondary);
  margin-bottom: 8px;
}

.pdf-product-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pdf-purple);
}

/* ==========================================================================
   Purple Zone — Green checkmarks
   ========================================================================== */

.pdf-check-list {
  list-style: none;
  padding: 0;
}

.pdf-check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
}

.pdf-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--pdf-accent-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* Hide Astra's default footer */
.site-footer,
.ast-footer-overlay,
.ast-small-footer,
#ast-desktop-footer,
.ast-above-footer-wrap,
.ast-footer-copyright-wrap {
  display: none !important;
}

.pdf-footer {
  background-color: var(--pdf-black);
  padding: 64px 0 0;
  color: var(--pdf-text-on-dark);
}

.pdf-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.pdf-footer__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pdf-text-on-dark);
  margin-bottom: 16px;
}

/* Brand column */
.pdf-footer__brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pdf-footer__social {
  display: flex;
  gap: 16px;
}

.pdf-footer__social a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.pdf-footer__social a:hover {
  color: var(--pdf-gentle-pink);
}

/* Links column */
.pdf-footer__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pdf-footer__links li {
  margin-bottom: 10px;
}

.pdf-footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pdf-footer__links a:hover {
  color: var(--pdf-gentle-pink);
}

/* Signup column */
.pdf-footer__signup p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 16px;
}

.pdf-footer__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdf-footer__form input[type="email"] {
  padding: 12px 16px;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--pdf-radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--pdf-text-on-dark);
  font-family: var(--pdf-font-body);
  width: 100%;
}

.pdf-footer__form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.pdf-footer__form input[type="email"]:focus {
  outline: none;
  border-color: var(--pdf-gentle-pink);
  box-shadow: 0 0 0 3px rgba(245, 209, 232, 0.15);
}

.pdf-footer__form button {
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--pdf-font-body);
  color: var(--pdf-text-on-purple);
  background: var(--pdf-purple);
  border: 2px solid var(--pdf-purple);
  border-radius: var(--pdf-radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pdf-footer__form button:hover {
  background: var(--pdf-purple-dark);
  border-color: var(--pdf-purple-dark);
  color: var(--pdf-white);
}

/* Bottom bar */
.pdf-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
}

.pdf-footer__bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .pdf-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pdf-footer { padding: 48px 0 0; }
}

/* ==========================================================================
   Signup Notices
   ========================================================================== */

.pdf-signup-notice {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9998;
  padding: 16px 48px 16px 20px;
  border-radius: var(--pdf-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  animation: pdfSlideIn 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.pdf-signup-notice--success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.pdf-signup-notice--error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.pdf-signup-notice p {
  margin: 0;
}

.pdf-signup-notice__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none !important;
  border: none !important;
  font-size: 1.25rem;
  cursor: pointer;
  color: inherit !important;
  opacity: 0.6;
  line-height: 1;
  padding: 4px !important;
  border-radius: 4px !important;
}

.pdf-signup-notice__close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05) !important;
  color: inherit !important;
}

@keyframes pdfSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pdfSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-md);
  padding: 12px 16px;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
  border-color: var(--pdf-lavender);
  outline: none;
  box-shadow: 0 0 0 3px rgba(155, 107, 176, 0.15);
}

/* ==========================================================================
   E-Commerce Toggle — Hide commerce UI when mode is OFF
   ========================================================================== */

body.ecommerce-off .woocommerce-Price-amount,
body.ecommerce-off .single_add_to_cart_button,
body.ecommerce-off .add_to_cart_button,
body.ecommerce-off .cart-icon-wrap,
body.ecommerce-off .woocommerce-cart-form,
body.ecommerce-off .wc-block-cart,
body.ecommerce-off .wc-block-checkout {
  display: none !important;
}

/* ==========================================================================
   Container
   ========================================================================== */

.pdf-container {
  max-width: var(--pdf-container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Blog — Page Hero
   ========================================================================== */

body.blog,
body.blog .pdf-blog {
  background-color: #ffffff;
}

.pdf-blog-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.pdf-blog-hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pdf-blog-hero__sub {
  font-size: 1.25rem;
  color: var(--pdf-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .pdf-blog-hero { padding: 40px 0 32px; }
  .pdf-blog-hero h1 { font-size: 2rem; }
}

/* ==========================================================================
   Blog — Featured Read
   ========================================================================== */

.pdf-blog-featured {
  padding-bottom: 48px;
}

.pdf-blog-featured__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pdf-text-secondary);
  margin-bottom: 16px;
}

.pdf-blog-featured__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--pdf-white);
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}

.pdf-blog-featured__card:hover {
  box-shadow: 0 4px 24px rgba(123, 63, 160, 0.08);
  color: inherit;
}

.pdf-blog-featured__image {
  aspect-ratio: 4 / 3;
  background: var(--pdf-bg-soft);
  overflow: hidden;
}

.pdf-blog-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdf-blog-featured__placeholder {
  width: 100%;
  height: 100%;
  background: var(--pdf-bg-soft);
}

.pdf-blog-featured__content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pdf-blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pdf-category-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--pdf-radius-pill);
  font-size: 0.778rem;
  font-weight: 600;
  background: var(--pdf-purple);
  color: var(--pdf-text-on-purple);
  text-transform: capitalize;
}

.pdf-read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
}

.pdf-blog-featured__title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.pdf-blog-featured__excerpt {
  font-size: 0.9375rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pdf-blog-featured__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdf-blog-featured__footer time {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
}

.pdf-blog-featured__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pdf-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .pdf-blog-featured__card {
    grid-template-columns: 1fr;
  }
  .pdf-blog-featured__image { aspect-ratio: 16 / 9; }
  .pdf-blog-featured__content { padding: 24px; }
  .pdf-blog-featured__title { font-size: 1.375rem; }
}

/* ==========================================================================
   Blog — Filter Pills
   ========================================================================== */

.pdf-blog-filters {
  padding-bottom: 40px;
}

.pdf-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdf-filter-pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--pdf-radius-pill);
  font-size: 0.778rem;
  font-weight: 500;
  border: 1px solid var(--pdf-border);
  background: var(--pdf-white);
  color: var(--pdf-text);
  text-decoration: none;
  transition: all 0.15s ease;
}

.pdf-filter-pill:hover {
  border-color: var(--pdf-purple);
  color: var(--pdf-purple);
}

.pdf-filter-pill--active {
  background: var(--pdf-black);
  border-color: var(--pdf-black);
  color: var(--pdf-text-on-dark);
}

.pdf-filter-pill--active:hover {
  background: var(--pdf-black);
  border-color: var(--pdf-black);
  color: var(--pdf-text-on-dark);
}

/* ==========================================================================
   Blog — Article Card Grid
   ========================================================================== */

.pdf-blog-grid-section {
  padding-bottom: 64px;
}

.pdf-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 960px) {
  .pdf-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .pdf-blog-grid { grid-template-columns: 1fr; }
}

/* --- Article Card --- */

.pdf-article-card {
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-lg);
  overflow: hidden;
  background: var(--pdf-white);
  transition: box-shadow 0.2s ease;
}

.pdf-article-card:hover {
  box-shadow: 0 4px 20px rgba(123, 63, 160, 0.08);
}

.pdf-article-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pdf-article-card__link:hover {
  color: inherit;
}

.pdf-article-card__image {
  aspect-ratio: 16 / 10;
  background: var(--pdf-bg-soft);
  overflow: hidden;
}

.pdf-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdf-article-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--pdf-bg-soft);
}

.pdf-article-card__body {
  padding: 20px 24px 24px;
}

.pdf-article-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pdf-article-card__category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pdf-text-secondary);
}

.pdf-article-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--pdf-text);
}

.pdf-article-card__excerpt {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.pdf-article-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdf-article-card__footer time {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
}

.pdf-article-card__arrow {
  font-size: 1rem;
  color: var(--pdf-text);
  transition: transform 0.15s ease;
}

.pdf-article-card:hover .pdf-article-card__arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Blog — Pagination
   ========================================================================== */

.pdf-blog-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 48px;
}

.pdf-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--pdf-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pdf-text);
  text-decoration: none;
  border: 1px solid var(--pdf-border);
  transition: all 0.15s ease;
}

.pdf-blog-pagination .page-numbers:hover {
  border-color: var(--pdf-purple);
  color: var(--pdf-purple);
}

.pdf-blog-pagination .page-numbers.current {
  background: var(--pdf-purple);
  border-color: var(--pdf-purple);
  color: var(--pdf-text-on-purple);
}

.pdf-blog-pagination .prev,
.pdf-blog-pagination .next {
  border: none;
  font-weight: 600;
}

/* ==========================================================================
   Blog — Newsletter CTA
   ========================================================================== */

.pdf-blog-newsletter {
  padding: 0 0 80px;
}

.pdf-newsletter-card {
  background: var(--pdf-bg-soft);
  border-radius: var(--pdf-radius-lg);
  padding: 64px 40px;
  text-align: center;
}

.pdf-newsletter-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pdf-newsletter-card > p {
  font-size: 0.9375rem;
  color: var(--pdf-text-secondary);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.pdf-newsletter-form__row {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.pdf-newsletter-form__row input[type="email"] {
  flex: 1;
  min-width: 0;
}

.pdf-newsletter-form__row .pdf-btn-primary {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .pdf-newsletter-card { padding: 40px 24px; }
  .pdf-newsletter-form__row {
    flex-direction: column;
  }
}

/* ==========================================================================
   Blog — Empty State
   ========================================================================== */

.pdf-blog-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--pdf-text-secondary);
  font-size: 1rem;
}

/* ==========================================================================
   Astra Overrides — Full-width custom templates
   ========================================================================== */

body.page-template-page-science .site-content > .ast-container,
body.page-template-page-home .site-content > .ast-container,
body.page-template-page-about .site-content > .ast-container,
body.page-template-page-products .site-content > .ast-container,
body.page-template-page-join .site-content > .ast-container,
body.page-template-page-stacks .site-content > .ast-container,
body.page-template-page-subscribe .site-content > .ast-container,
body.single-post .site-content > .ast-container,
body.single-product .site-content > .ast-container {
  max-width: 100%;
  padding: 0;
}

body.page-template-page-science #primary,
body.page-template-page-home #primary,
body.page-template-page-home-2 #primary,
body.page-template-page-about #primary,
body.page-template-page-products #primary,
body.page-template-page-join #primary,
body.page-template-page-stacks #primary,
body.page-template-page-farms #primary,
body.page-template-page-subscribe #primary,
body.post-type-archive-longevity_stack #primary,
body.single-post #primary,
body.single-product #primary,
body.single-product .site-content,
body.single-product .ast-container,
body.single-product #content {
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .entry-content {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ==========================================================================
   Science Page — Hero
   ========================================================================== */

.pdf-science-hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--pdf-black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pdf-science-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(92, 45, 130, 0.85) 0%,
    rgba(123, 63, 160, 0.75) 40%,
    rgba(155, 107, 176, 0.7) 70%,
    rgba(245, 209, 232, 0.6) 100%
  );
}

.pdf-science-hero__content {
  position: relative;
  z-index: 1;
}

.pdf-science-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--pdf-text-on-dark);
}

.pdf-science-hero__sub {
  font-size: 1.3125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .pdf-science-hero { padding: 72px 0 64px; }
  .pdf-science-hero h1 { font-size: 2rem; }
}

/* ==========================================================================
   Science Page — Shared Section
   ========================================================================== */

.pdf-science-section {
  padding: var(--pdf-section-padding);
}

.pdf-science-section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.pdf-science-section__header h2 {
  margin-bottom: 16px;
}

.pdf-science-section__header p {
  font-size: 1rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
}

.pdf-section-dark .pdf-science-section__header p {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  .pdf-science-section { padding: var(--pdf-section-padding-mobile); }
  .pdf-science-section__header { margin-bottom: 32px; }
}

/* ==========================================================================
   Science Page — Biological Aging Comparison Cards
   ========================================================================== */

.pdf-science-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.pdf-science-compare__card {
  background: var(--pdf-white);
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-lg);
  padding: 32px;
  text-align: center;
}

.pdf-science-compare__card--highlight {
  border-color: var(--pdf-lavender);
  background: var(--pdf-bg-soft);
}

.pdf-science-compare__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--pdf-border);
  margin: 0 auto 20px;
  color: var(--pdf-purple);
}

.pdf-science-compare__card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.pdf-science-compare__card p {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .pdf-science-compare { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Science Page — Trio Cards (Antioxidants, Role of Antioxidants)
   ========================================================================== */

.pdf-science-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pdf-science-trio__card {
  background: var(--pdf-white);
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-lg);
  padding: 32px 28px;
  text-align: center;
}

.pdf-science-trio__card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.pdf-science-trio__card p {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
}

.pdf-science-trio__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--pdf-radius-md);
  background: var(--pdf-bg-soft);
  margin: 0 auto 20px;
}

.pdf-science-trio__sources {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pdf-text-secondary);
  margin-bottom: 12px;
}

/* Dark variant */
.pdf-science-trio__card--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  text-align: left;
}

.pdf-science-trio__card--dark h3 {
  color: var(--pdf-text-on-dark);
}

.pdf-science-trio__card--dark p {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .pdf-science-trio { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Science Page — Research Section
   ========================================================================== */

.pdf-science-research {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.pdf-science-research__studies h3,
.pdf-science-research__experts h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  margin-bottom: 24px;
}

/* Study cards */
.pdf-science-study {
  background: var(--pdf-bg-soft);
  border-radius: var(--pdf-radius-md);
  padding: 24px;
  margin-bottom: 16px;
}

.pdf-science-study__journal {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pdf-text-secondary);
  margin-bottom: 8px;
}

.pdf-science-study__year {
  font-weight: 600;
  color: var(--pdf-purple);
  margin-left: 8px;
}

.pdf-science-study h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.pdf-science-study p {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
}

/* Expert quotes */
.pdf-science-quote {
  background: var(--pdf-bg-soft);
  border-left: 3px solid var(--pdf-purple);
  border-radius: 0 var(--pdf-radius-md) var(--pdf-radius-md) 0;
  padding: 24px;
  margin: 0 0 16px;
}

.pdf-science-quote p {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--pdf-text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pdf-science-quote footer {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pdf-text-secondary);
}

/* References */
.pdf-science-references {
  margin-top: 24px;
}

.pdf-science-references h4 {
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.pdf-science-references ol {
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .pdf-science-research { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Science Page — Our Approach
   ========================================================================== */

.pdf-science-approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pdf-science-approach__text h2 {
  margin-bottom: 20px;
}

.pdf-science-approach__text p {
  font-size: 0.9375rem;
  color: var(--pdf-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.pdf-science-approach__card {
  background: var(--pdf-white);
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-lg);
  padding: 32px;
}

.pdf-science-approach__card h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.pdf-science-approach__card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pdf-science-approach__card li {
  padding: 16px 0;
  border-top: 1px solid var(--pdf-border-light);
}

.pdf-science-approach__card li:first-child {
  border-top: none;
  padding-top: 0;
}

.pdf-science-approach__card li strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 4px;
  color: var(--pdf-text);
}

.pdf-science-approach__card li span {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .pdf-science-approach { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Science Page — Superfoods vs Longevity Comparison
   ========================================================================== */

.pdf-science-versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pdf-science-versus__col {
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-lg);
  padding: 32px;
  background: var(--pdf-white);
}

.pdf-science-versus__col--highlight {
  border-color: var(--pdf-lavender);
  background: var(--pdf-bg-soft);
}

.pdf-science-versus__heading {
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: 24px;
}

.pdf-science-versus__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pdf-science-versus__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  line-height: 1.5;
}

/* Generic — X marks */
.pdf-science-versus__list--generic li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--pdf-border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7280'%3E%3Cpath d='M18.3 5.71a1 1 0 00-1.41 0L12 10.59 7.11 5.7a1 1 0 00-1.41 1.42L10.59 12l-4.89 4.88a1 1 0 101.41 1.42L12 13.41l4.89 4.89a1 1 0 001.41-1.42L13.41 12l4.89-4.88a1 1 0 000-1.41z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Longevity — checkmarks */
.pdf-science-versus__list--longevity li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--pdf-purple);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 600px) {
  .pdf-science-versus { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Science Page — CTA
   ========================================================================== */

.pdf-science-cta {
  padding: var(--pdf-section-padding);
  text-align: center;
}

.pdf-science-cta h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.pdf-science-cta p {
  font-size: 1rem;
  color: var(--pdf-text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pdf-science-cta { padding: var(--pdf-section-padding-mobile); }
}

/* ==========================================================================
   About Page — Hero
   ========================================================================== */

.pdf-about-hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--pdf-black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pdf-about-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(92, 45, 130, 0.85) 0%,
    rgba(123, 63, 160, 0.75) 40%,
    rgba(155, 107, 176, 0.7) 70%,
    rgba(245, 209, 232, 0.6) 100%
  );
}

.pdf-about-hero__content {
  position: relative;
  z-index: 1;
}

.pdf-about-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--pdf-text-on-dark);
}

.pdf-about-hero > .pdf-container p {
  font-size: 1.3125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .pdf-about-hero { padding: 72px 0 64px; }
  .pdf-about-hero h1 { font-size: 2rem; }
}

/* ==========================================================================
   About Page — Divider
   ========================================================================== */

.pdf-about-divider hr {
  border: none;
  border-top: 1px solid var(--pdf-border);
  margin: 0;
}

/* ==========================================================================
   About Page — Shared Section
   ========================================================================== */

.pdf-about-section {
  padding: var(--pdf-section-padding);
}

@media (max-width: 768px) {
  .pdf-about-section { padding: var(--pdf-section-padding-mobile); }
}

/* ==========================================================================
   About Page — Long-Term Goal
   ========================================================================== */

.pdf-about-goal {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.pdf-about-goal h2 {
  margin-bottom: 20px;
}

.pdf-about-goal p {
  font-size: 1rem;
  color: var(--pdf-text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   About Page — Brand Pillars
   ========================================================================== */

.pdf-about-pillars__title {
  text-align: center;
  margin-bottom: 48px;
  color: var(--pdf-text-on-dark);
}

.pdf-about-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.pdf-about-pillar__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pdf-text-on-dark);
  margin-bottom: 20px;
}

.pdf-about-pillar h3 {
  font-size: 1.0625rem;
  color: var(--pdf-text-on-dark);
  margin-bottom: 10px;
}

.pdf-about-pillar p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pdf-about-pillars { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 480px) {
  .pdf-about-pillars { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About Page — Founder Story
   ========================================================================== */

/* --- Founder's Note --- */

.pdf-founder-note {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pdf-founder-note__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.pdf-founder-note__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--pdf-purple);
}

.pdf-founder-note__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdf-founder-note__avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--pdf-gradient-grey-pink);
}

.pdf-founder-note__identity {
  display: flex;
  flex-direction: column;
}

.pdf-founder-note__label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pdf-purple);
  font-weight: 600;
  margin-bottom: 4px;
}

.pdf-founder-note__name {
  font-size: 1.25rem;
  color: var(--pdf-text);
}

.pdf-founder-note__role {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Pull quote */
.pdf-founder-note__pullquote {
  border-left: 3px solid var(--pdf-purple);
  padding: 12px 0 12px 28px;
  margin: 0 0 28px;
}

.pdf-founder-note__pullquote p {
  font-size: 1.375rem;
  line-height: 1.6;
  color: var(--pdf-text);
  font-weight: 500;
  margin: 0;
}

.pdf-founder-note__pullquote em {
  color: var(--pdf-purple);
  font-style: italic;
}

/* Letter body */
.pdf-founder-note__body p {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.pdf-founder-note__mission {
  font-size: 1.0625rem !important;
  color: var(--pdf-text) !important;
  font-weight: 600;
  border-left: 3px solid var(--pdf-purple);
  padding-left: 20px;
  margin-top: 28px !important;
  margin-bottom: 28px !important;
}

.pdf-founder-note__welcome {
  font-size: 1.0625rem !important;
  color: var(--pdf-text) !important;
  margin-top: 32px !important;
}

/* Collapsible section */
.pdf-founder-note__more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
}

.pdf-founder-note__more.is-open {
  max-height: 2000px;
  opacity: 1;
}

/* Toggle button — rounded branded */
button.pdf-founder-note__toggle,
button.pdf-founder-note__toggle:focus,
button.pdf-founder-note__toggle:active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 24px;
  background: #7B3FA0 !important;
  border: none !important;
  border-radius: 999px;
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(123, 63, 160, 0.25);
}

button.pdf-founder-note__toggle:hover {
  background: #5C2D82 !important;
  transform: scale(1.04);
}

button.pdf-founder-note__toggle .pdf-founder-note__toggle-icon {
  transition: transform 0.3s ease;
  color: #fff !important;
}

button.pdf-founder-note__toggle[aria-expanded="true"] .pdf-founder-note__toggle-icon {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .pdf-founder-note__pullquote {
    padding-left: 20px;
  }
  .pdf-founder-note__pullquote p {
    font-size: 1.125rem;
  }
  .pdf-founder-note__avatar {
    width: 64px;
    height: 64px;
  }
}

/* ==========================================================================
   Single Post — Hero
   ========================================================================== */

.pdf-single-hero {
  padding: 64px 0 40px;
  text-align: center;
  background: var(--pdf-bg-soft);
}

.pdf-single-hero__back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pdf-text-secondary);
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.pdf-single-hero__back:hover {
  color: var(--pdf-purple);
}

.pdf-single-hero__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.pdf-single-hero__read-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
}

.pdf-single-hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--pdf-text);
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.2;
}

.pdf-single-hero__date {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
}

@media (max-width: 768px) {
  .pdf-single-hero { padding: 48px 0 32px; }
  .pdf-single-hero h1 { font-size: 1.75rem; }
}

/* ==========================================================================
   Single Post — Featured Image
   ========================================================================== */

.pdf-single-featured-image {
  padding: 0 0 8px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.pdf-single-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.pdf-single-featured-image .pdf-container {
  max-width: 100%;
  padding: 0;
}

@media (max-width: 768px) {
  .pdf-single-featured-image img {
    max-height: 280px;
    border-radius: var(--pdf-radius-md);
  }
}

/* ==========================================================================
   Single Post — Article Body
   ========================================================================== */

.pdf-single-body {
  padding: 64px 0 48px;
}

.pdf-single-body__container {
  max-width: 760px;
}

.pdf-single-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--pdf-text);
}

.pdf-single-content h2 {
  font-size: 1.75rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

.pdf-single-content h3 {
  font-size: 1.375rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.pdf-single-content p {
  margin-bottom: 20px;
}

.pdf-single-content ul,
.pdf-single-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.pdf-single-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.pdf-single-content blockquote {
  border-left: 3px solid var(--pdf-purple);
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--pdf-bg-soft);
  border-radius: 0 var(--pdf-radius-md) var(--pdf-radius-md) 0;
  font-style: italic;
  color: var(--pdf-text);
}

.pdf-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--pdf-radius-md);
  margin: 32px 0;
}

.pdf-single-content a {
  color: var(--pdf-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pdf-single-content a:hover {
  color: var(--pdf-purple-dark);
}

/* ==========================================================================
   Single Post — Tags
   ========================================================================== */

.pdf-single-tags {
  padding-bottom: 32px;
}

.pdf-single-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   Single Post — Post Navigation
   ========================================================================== */

.pdf-single-nav {
  padding: 48px 0;
  border-top: 1px solid var(--pdf-border);
}

.pdf-single-nav__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pdf-single-nav__link {
  display: block;
  padding: 20px 24px;
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdf-single-nav__link:hover {
  border-color: var(--pdf-purple);
  box-shadow: 0 2px 12px rgba(123, 63, 160, 0.08);
  color: inherit;
}

.pdf-single-nav__link--next {
  text-align: right;
}

.pdf-single-nav__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pdf-text-secondary);
  margin-bottom: 6px;
}

.pdf-single-nav__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pdf-text);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .pdf-single-nav__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Products Page — Hero
   ========================================================================== */

.pdf-products-hero {
  padding: 80px 0 48px;
  text-align: center;
  background-color: var(--pdf-bg-soft);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.pdf-products-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.6);
}

.pdf-products-hero[style*="background-image"] .pdf-container {
  position: relative;
  z-index: 2;
}

.pdf-products-hero[style*="background-image"] h1,
.pdf-products-hero[style*="background-image"] .pdf-products-hero__sub {
  color: var(--pdf-white) !important;
}

.pdf-products-hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pdf-products-hero__sub {
  font-size: 1.25rem;
  color: var(--pdf-text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pdf-products-hero { padding: 48px 0 32px; }
  .pdf-products-hero h1 { font-size: 2rem; }
}

/* ==========================================================================
   Products Page — Product Rows (Alternating)
   ========================================================================== */

.pdf-products-row {
  padding: var(--pdf-section-padding);
  scroll-margin-top: 96px;
}

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

/* Reversed: text left, image right */
.pdf-products-row--reversed .pdf-products-row__inner {
  direction: rtl;
}

.pdf-products-row--reversed .pdf-products-row__inner > * {
  direction: ltr;
}

/* Image */
.pdf-products-row__image {
  border-radius: var(--pdf-radius-lg);
  overflow: hidden;
  background: var(--pdf-bg-soft);
}

.pdf-products-row__image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3.15;
  object-fit: cover;
}

.pdf-products-row__image a {
  display: block;
}

.pdf-products-row__placeholder {
  aspect-ratio: 4 / 3;
  background: var(--pdf-bg-soft);
}

/* Content */
.pdf-products-row__content h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.pdf-products-row__content a {
  color: var(--pdf-purple);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pdf-products-row__content a:hover {
  color: var(--pdf-purple-dark);
}

.pdf-products-row__content a:visited {
  color: var(--pdf-purple);
}

.pdf-products-row__content h2 a {
  color: var(--pdf-text);
}

.pdf-products-row__content h2 a:hover {
  color: var(--pdf-purple);
}

.pdf-products-row__price a {
  color: var(--pdf-text) !important;
}

.pdf-products-row__price a:hover {
  color: var(--pdf-text) !important;
}

.pdf-products-row__desc {
  font-size: 1.0625rem;
  color: var(--pdf-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.pdf-products-row__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pdf-text);
  margin-bottom: 8px;
}

.pdf-products-row__badges {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px;
  margin-bottom: 20px;
}

.pdf-products-row__stacks {
  margin-top: 4px;
}

.pdf-products-row__stack-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdf-products-row__stack-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pdf-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pdf-products-row__stack-links a:hover {
  color: var(--pdf-purple-dark);
}

.pdf-products-row__stack-links span {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
}

.pdf-products-row__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pdf-text);
  margin-top: 8px;
}

.pdf-products-row__purchase {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pdf-products-row__meta {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(123, 63, 160, 0.03);
  border-radius: var(--pdf-radius-lg);
  border: 1px solid rgba(123, 63, 160, 0.06);
}

.pdf-products-row__meta .pdf-products-row__pathways {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(123, 63, 160, 0.06);
}

.pdf-products-row__meta .pdf-products-row__stacks {
  margin-bottom: 0;
  padding-top: 0;
}

.pdf-products-row__meta .pdf-products-row__label {
  margin-bottom: 4px;
}

/* ── Unified Quantity Counter (used on catalog + single product) ── */
.pdf-products-row__qty,
.pdf-single-product__add-to-cart .quantity {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--pdf-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--pdf-white);
}

.pdf-qty-btn {
  width: 40px;
  height: 44px;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pdf-text) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  line-height: 1 !important;
}

.pdf-qty-btn:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}

.pdf-qty-btn:focus,
.pdf-qty-btn:active {
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--pdf-text) !important;
  outline: none !important;
  box-shadow: none !important;
}

.pdf-qty-input,
.pdf-single-product__add-to-cart .quantity .qty {
  width: 40px !important;
  height: 44px !important;
  text-align: center !important;
  border: none !important;
  border-left: 1.5px solid var(--pdf-border) !important;
  border-right: 1.5px solid var(--pdf-border) !important;
  border-radius: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--pdf-text) !important;
  background: transparent !important;
  -moz-appearance: textfield !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pdf-qty-input::-webkit-outer-spin-button,
.pdf-qty-input::-webkit-inner-spin-button,
.pdf-single-product__add-to-cart .quantity .qty::-webkit-outer-spin-button,
.pdf-single-product__add-to-cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdf-qty-input:focus,
.pdf-single-product__add-to-cart .quantity .qty:focus {
  outline: none !important;
  box-shadow: none !important;
}

body.ecommerce-off .pdf-products-row__purchase {
  display: none !important;
}

.pdf-products-row__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.pdf-products-row__btn {
  font-size: 0.875rem;
  padding: 10px 20px;
}

.pdf-btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background-color: var(--pdf-purple) !important;
  border: 2px solid var(--pdf-purple) !important;
  border-radius: var(--pdf-radius-pill);
  color: var(--pdf-white) !important;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pdf-btn-cart:hover {
  background-color: var(--pdf-purple-dark) !important;
  border-color: var(--pdf-purple-dark) !important;
  color: var(--pdf-white) !important;
}

.pdf-btn-cart:visited {
  color: var(--pdf-white) !important;
}

.pdf-btn-cart:focus,
.pdf-btn-cart:active {
  outline: none !important;
  box-shadow: none !important;
  background-color: var(--pdf-purple-dark) !important;
  color: var(--pdf-white) !important;
}

.pdf-btn-cart svg {
  stroke: var(--pdf-white) !important;
}

body.ecommerce-off .pdf-products-row__price,
body.ecommerce-off .pdf-btn-cart {
  display: none !important;
}

@media (max-width: 768px) {
  .pdf-products-row { padding: var(--pdf-section-padding-mobile); }
  .pdf-products-row__inner { grid-template-columns: 1fr; gap: 24px; }
  .pdf-products-row--reversed .pdf-products-row__inner { direction: ltr; }
  .pdf-products-row__actions { flex-direction: column; }
  .pdf-products-row__purchase { width: 100%; }
  .pdf-products-row__btn { text-align: center; justify-content: center; width: 100%; }
}

/* ==========================================================================
   Products Page — Pathway Matrix Table
   ========================================================================== */

.pdf-products-matrix {
  padding: var(--pdf-section-padding);
}

.pdf-products-matrix__header {
  text-align: center;
  margin-bottom: 40px;
}

.pdf-products-matrix__header h2 {
  margin-bottom: 12px;
}

.pdf-products-matrix__header p {
  font-size: 1rem;
  color: var(--pdf-text-secondary);
}

.pdf-products-matrix__table-wrap {
  overflow: hidden;
  background: var(--pdf-white);
  border-radius: 16px;
  border: none !important;
  outline: none !important;
  box-shadow: 0 2px 16px rgba(123, 63, 160, 0.06);
}

.pdf-products-matrix__table-wrap,
.pdf-products-matrix__table {
  border: none !important;
  outline: none !important;
}

.pdf-products-matrix__table th,
.pdf-products-matrix__table td {
  border-left: none !important;
  border-top: none !important;
}

.pdf-products-matrix__table th:last-child,
.pdf-products-matrix__table td:last-child {
  border-right: none !important;
}

.pdf-products-matrix__table tbody tr:last-child td {
  border-bottom: none !important;
}

.pdf-products-matrix__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}

.pdf-products-matrix__table thead th {
  padding: 18px 24px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pdf-text-secondary);
  background: rgba(123, 63, 160, 0.04);
  border-bottom: 1px solid rgba(123, 63, 160, 0.10);
}

.pdf-products-matrix__table thead th:first-child {
  text-align: left;
}

.pdf-products-matrix__table thead th:not(:last-child) {
  border-right: 1px solid rgba(123, 63, 160, 0.06);
}

.pdf-products-matrix__table tbody tr {
  transition: background-color 0.2s ease;
}

.pdf-products-matrix__table tbody tr:nth-child(even) {
  background-color: rgba(123, 63, 160, 0.02);
}

.pdf-products-matrix__table tbody tr:hover {
  background-color: rgba(123, 63, 160, 0.06);
}

.pdf-products-matrix__table tbody td {
  padding: 20px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(123, 63, 160, 0.06);
}

.pdf-products-matrix__table tbody td:not(:last-child) {
  border-right: 1px solid rgba(123, 63, 160, 0.04);
}

.pdf-products-matrix__table tbody tr:last-child td {
  border-bottom: none;
}

.pdf-products-matrix__product {
  text-align: left !important;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--pdf-text);
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
}

.pdf-products-matrix__indicator {
  position: relative;
  cursor: pointer;
}

.pdf-products-matrix__indicator .pdf-matrix-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--pdf-text);
  color: var(--pdf-white);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.pdf-products-matrix__indicator .pdf-matrix-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--pdf-text);
}

.pdf-products-matrix__indicator:hover .pdf-matrix-tooltip {
  opacity: 1;
}

.pdf-products-matrix__strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pdf-purple);
  color: var(--pdf-white);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(123, 63, 160, 0.3);
  transition: transform 0.15s ease;
}

.pdf-products-matrix__indicator:hover .pdf-products-matrix__strong {
  transform: scale(1.1);
}

.pdf-products-matrix__support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(123, 63, 160, 0.10);
  color: var(--pdf-purple);
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.pdf-products-matrix__indicator:hover .pdf-products-matrix__support {
  transform: scale(1.1);
}

.pdf-products-matrix__none {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: var(--pdf-text-secondary);
  font-size: 0.875rem;
  opacity: 0.5;
}

/* --- Mobile cards (not used — keeping table with sticky column) --- */
.pdf-products-matrix__cards {
  display: none;
}

/* --- Mobile: sticky first column, scroll the rest --- */
@media (max-width: 768px) {
  .pdf-products-matrix__table-wrap {
    overflow: visible;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .pdf-products-matrix__table {
    min-width: 640px;
    table-layout: fixed;
  }

  .pdf-products-matrix__table thead th:first-child,
  .pdf-products-matrix__table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #FFFFFF;
  }

  .pdf-products-matrix__table thead th:first-child {
    background: #f8f5fa;
    z-index: 3;
  }

  .pdf-products-matrix__table tbody tr:nth-child(even) td:first-child {
    background: #faf8fc;
  }

  .pdf-products-matrix__table tbody tr:hover td:first-child {
    background: #f3eef7;
  }

  .pdf-products-matrix__table thead th:first-child::after,
  .pdf-products-matrix__table tbody td:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to right, rgba(123, 63, 160, 0.08), transparent);
    pointer-events: none;
  }

  .pdf-products-matrix__table thead th {
    padding: 14px 10px;
    font-size: 0.875rem;
  }

  .pdf-products-matrix__table thead th:first-child,
  .pdf-products-matrix__table tbody td:first-child {
    width: 120px;
    min-width: 120px;
  }

  .pdf-products-matrix__table thead th:nth-child(n+2),
  .pdf-products-matrix__table tbody td:nth-child(n+2) {
    min-width: 110px;
  }

  .pdf-products-matrix__table tbody td {
    padding: 14px 10px;
  }

  .pdf-products-matrix__product {
    font-size: 0.875rem;
    white-space: normal;
    word-wrap: break-word;
  }
}

/* ==========================================================================
   Join Purple Zone Page — Hero
   ========================================================================== */

.pdf-join-hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--pdf-purple-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pdf-join-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(92, 45, 130, 0.85) 0%,
    rgba(123, 63, 160, 0.75) 40%,
    rgba(155, 107, 176, 0.7) 70%,
    rgba(245, 209, 232, 0.6) 100%
  );
}

.pdf-join-hero__content {
  position: relative;
  z-index: 1;
}

.pdf-join-hero__eyebrow {
  display: inline-block;
  padding: 6px 20px;
  border-radius: var(--pdf-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

.pdf-join-hero h1 {
  font-size: 3.25rem;
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.1;
  color: var(--pdf-text-on-dark);
}

.pdf-join-hero__desc {
  font-size: 1.3125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.pdf-join-hero__cta {
  font-size: 1rem !important;
  padding: 14px 40px !important;
  background: var(--pdf-white) !important;
  color: var(--pdf-purple-dark) !important;
  border-color: var(--pdf-white) !important;
}

.pdf-join-hero__cta:hover {
  background: transparent !important;
  color: var(--pdf-white) !important;
  border-color: var(--pdf-white) !important;
}

@media (max-width: 768px) {
  .pdf-join-hero { padding: 80px 0 72px; }
  .pdf-join-hero h1 { font-size: 2.25rem; }
}

/* ==========================================================================
   Join Purple Zone — Value Section
   ========================================================================== */

.pdf-join-value {
  padding: var(--pdf-section-padding);
}

.pdf-join-value__title {
  text-align: center;
  margin-bottom: 48px;
}

.pdf-join-value__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pdf-join-value__card {
  text-align: center;
  padding: 32px 20px;
}

.pdf-join-value__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pdf-bg-soft);
  margin: 0 auto 20px;
}

.pdf-join-value__card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.pdf-join-value__card p {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .pdf-join-value__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .pdf-join-value__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .pdf-join-value { padding: var(--pdf-section-padding-mobile); }
}

/* ==========================================================================
   Join Purple Zone — Signup Form
   ========================================================================== */

.pdf-join-signup {
  padding: 0 0 96px;
}

.pdf-join-signup__card {
  background: var(--pdf-bg-soft);
  border-radius: var(--pdf-radius-lg);
  padding: 64px 40px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.pdf-join-signup__card h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.pdf-join-signup__card > p {
  font-size: 0.9375rem;
  color: var(--pdf-text-secondary);
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.pdf-join-form {
  max-width: 440px;
  margin: 0 auto;
}

.pdf-join-form__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdf-join-form__row input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.9375rem;
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-pill);
}

.pdf-join-form__btn {
  width: 100%;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--pdf-purple);
  color: var(--pdf-text-on-purple);
  border: 2px solid var(--pdf-purple);
  border-radius: var(--pdf-radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdf-join-form__btn:hover {
  background: var(--pdf-purple-dark);
  border-color: var(--pdf-purple-dark);
}

.pdf-join-form__note {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  margin-top: 12px;
}

@media (max-width: 600px) {
  .pdf-join-signup__card { padding: 40px 24px; }
}

/* ==========================================================================
   Stacks Page — Hero
   ========================================================================== */

.pdf-stacks-hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--pdf-black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.pdf-stacks-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 5, 25, 0.88) 0%,
    rgba(28, 12, 45, 0.82) 50%,
    rgba(40, 18, 60, 0.75) 100%
  );
}

.pdf-stacks-hero__content {
  position: relative;
  z-index: 1;
}

.pdf-stacks-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--pdf-text-on-dark);
  margin-bottom: 20px;
}

.pdf-stacks-hero__desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.pdf-stacks-hero__btn {
  border-color: var(--pdf-white) !important;
  color: var(--pdf-white) !important;
}

.pdf-stacks-hero__btn:hover {
  background: var(--pdf-white) !important;
  color: var(--pdf-black) !important;
}

@media (max-width: 768px) {
  .pdf-stacks-hero { padding: 72px 0 64px; }
  .pdf-stacks-hero h1 { font-size: 2rem; }
}

/* ==========================================================================
   Stacks Page — Pre-built Stacks Section
   ========================================================================== */

.pdf-stacks-section {
  padding: var(--pdf-section-padding);
}

.pdf-stacks-section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.pdf-stacks-section__header h2 {
  margin-bottom: 16px;
}

.pdf-stacks-section__header p {
  font-size: 1rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
}

/* Stack card grid */
.pdf-stacks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pdf-stacks-card {
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-lg);
  background: var(--pdf-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-stacks-card__image {
  aspect-ratio: 16 / 9;
  background: var(--pdf-bg-soft);
  overflow: hidden;
  border-bottom: 1px solid var(--pdf-border-light);
}

.pdf-stacks-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdf-stacks-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--pdf-gradient-grey-pink);
}

.pdf-stacks-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pdf-stacks-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pdf-stacks-card__schedule {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pdf-purple);
  margin-bottom: 12px;
  line-height: 1.5;
}

.pdf-stacks-card__desc {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pdf-stacks-card__btn {
  display: block;
  text-align: center;
  padding: 10px 24px !important;
  font-size: 0.875rem !important;
}

@media (max-width: 960px) {
  .pdf-stacks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .pdf-stacks-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .pdf-stacks-section { padding: var(--pdf-section-padding-mobile); }
}

/* ==========================================================================
   Homepage v2
   ========================================================================== */

/* ── Hero ── */
.pdf-home-hero {
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
  background-color: var(--pdf-black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pdf-home-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.55);
}

.pdf-home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.pdf-home-hero h1 {
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--pdf-text-on-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.pdf-home-hero__sub {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 32px;
  text-wrap: pretty !important;
}

/* Prevent orphaned words on all homepage text */
.pdf-home h1,
.pdf-home h2,
.pdf-home h3 {
  text-wrap: balance !important;
}

.pdf-home p,
.pdf-home li {
  text-wrap: pretty !important;
}

.pdf-home-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.pdf-home-hero__quiz-btn {
  border-color: var(--pdf-white) !important;
  color: var(--pdf-white) !important;
}

.pdf-home-hero__quiz-btn:hover {
  background: var(--pdf-white) !important;
  color: var(--pdf-black) !important;
}

@media (max-width: 768px) {
  .pdf-home-hero { padding: 80px 0 72px; }
  .pdf-home-hero h1 { font-size: 2.25rem; }
  .pdf-home-hero__actions { flex-direction: column; }
  .pdf-home-hero__actions a { text-align: center; }
}

/* ── Education Section ── */
.pdf-home-education {
  padding: 80px 0 0;
}

.pdf-home-education .pdf-container {
  text-align: center;
}

.pdf-home-education__text {
  max-width: 680px;
  margin: 0 auto 48px;
}

.pdf-home-education__text h2 {
  margin-bottom: 20px;
}

.pdf-home-education__text p {
  font-size: 0.9375rem;
  color: var(--pdf-text-secondary);
  line-height: 1.7;
}

.pdf-home-education__image {
  width: 60%;
  margin: 0 auto;
  max-height: 400px;
  overflow: hidden;
  border-radius: var(--pdf-radius-lg);
}

.pdf-home-education__image img {
  width: 100%;
  display: block;
  border-radius: var(--pdf-radius-lg);
  object-fit: cover;
}

.pdf-home-education__placeholder {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--pdf-gradient-grey-pink);
}

@media (max-width: 768px) {
  .pdf-home-education { padding: 48px 0 0; }
  .pdf-home-education__image {
    width: 100% !important;
    margin: 24px 0 0 !important;
    border-radius: 0 !important;
  }
  .pdf-home-education__image img {
    border-radius: 0 !important;
  }
}

/* ── Pathways Section ── */
.pdf-home-pathways {
  padding: var(--pdf-section-padding);
}

.pdf-home-pathways__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.pdf-home-pathways__header h2 {
  margin-bottom: 12px;
}

.pdf-home-pathways__header p {
  font-size: 1rem;
  color: var(--pdf-text-secondary);
}

.pdf-home-pathways__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.pdf-home-pathways__card {
  background: var(--pdf-white);
  border: 1px solid var(--pdf-border-light);
  border-radius: var(--pdf-radius-lg);
  padding: 32px;
}

.pdf-home-pathways__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pdf-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pdf-home-pathways__card-image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
}

.pdf-home-pathways__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdf-home-pathways__card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pdf-home-pathways__card p {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .pdf-home-pathways__grid { grid-template-columns: 1fr; }
  .pdf-home-pathways { padding: var(--pdf-section-padding-mobile); }
}

/* ── Featured Products ── */
.pdf-home-products {
  padding: var(--pdf-section-padding);
}

.pdf-home-products__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.pdf-home-products__header h2 {
  margin-bottom: 4px;
}

.pdf-home-products__header p {
  font-size: 0.9375rem;
  color: var(--pdf-text-secondary);
}

.pdf-home-products__viewall {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pdf-purple);
  text-decoration: none;
  white-space: nowrap;
  padding-top: 8px;
}

.pdf-home-products__viewall:hover {
  color: var(--pdf-purple-dark);
}

.pdf-home-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Product card */
.pdf-home-product-card {
  border: 1px solid var(--pdf-border-light);
  border-radius: var(--pdf-radius-lg);
  padding: 16px 16px 20px;
}

.pdf-home-product-card__image {
  aspect-ratio: 4 / 3;
  background: var(--pdf-bg-soft);
  border-radius: var(--pdf-radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.pdf-home-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdf-home-product-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--pdf-gradient-grey-pink);
}

.pdf-home-product-card__badges {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px;
  margin-bottom: 8px;
}

.pdf-home-product-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pdf-home-product-card__title a {
  color: var(--pdf-text);
  text-decoration: none;
}

.pdf-home-product-card__title a:hover {
  color: var(--pdf-purple);
}

.pdf-home-product-card__desc {
  font-size: 1rem;
  color: var(--pdf-text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.pdf-home-product-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pdf-purple);
  text-decoration: none;
}

.pdf-home-product-card__link:hover {
  color: var(--pdf-purple-dark);
}

@media (max-width: 768px) {
  .pdf-home-products { padding: var(--pdf-section-padding-mobile); }
  .pdf-home-products__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pdf-home-products__header { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .pdf-home-products__grid { grid-template-columns: 1fr; }
}

/* ── Quiz CTA ── */
.pdf-home-quiz {
  padding: 140px 0;
  position: relative;
  background-color: var(--pdf-black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.pdf-home-quiz__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(92, 45, 130, 0.9) 0%,
    rgba(123, 63, 160, 0.8) 50%,
    rgba(155, 107, 176, 0.7) 100%
  );
}

.pdf-home-quiz__content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.pdf-home-quiz__card {
  background: var(--pdf-white);
  border-radius: var(--pdf-radius-lg);
  padding: 67px 77px;
  text-align: center;
  max-width: 720px;
  width: 100%;
}

.pdf-home-quiz__card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #3D1A5C;
  margin-bottom: 16px;
}

.pdf-home-quiz__card p {
  font-size: 0.9375rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .pdf-home-quiz__card { padding: 40px 24px; }
  .pdf-home-quiz__card h2 { font-size: 1.5rem; }
}

/* ── Purple Zone CTA ── */
.pdf-home-founding {
  padding: 120px 0;
  position: relative;
  background-color: var(--pdf-bg-soft);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.pdf-home-founding__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 45%,
    rgba(255, 255, 255, 0.3) 100%
  );
  z-index: 1;
}

.pdf-home-founding__grid,
.pdf-home-founding__content {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.pdf-home-founding__text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.pdf-home-founding__text > p {
  font-size: 0.9375rem;
  color: var(--pdf-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.pdf-home-founding__text .pdf-check-list,
.pdf-home-founding__content .pdf-check-list,
.pdf-home-founding .pdf-check-list {
  margin-bottom: 28px;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.pdf-home-founding__text .pdf-check-list li,
.pdf-home-founding__content .pdf-check-list li,
.pdf-home-founding .pdf-check-list li {
  padding-left: 28px !important;
  margin-left: 0 !important;
}

.pdf-home-founding__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 70%;
}

.pdf-home-founding__form input[type="email"] {
  padding: 14px 16px;
  font-size: 0.9375rem;
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-md);
  font-family: var(--pdf-font-body);
  width: 100%;
}

.pdf-home-founding__form input[type="email"]:focus {
  outline: none;
  border-color: var(--pdf-purple);
  box-shadow: 0 0 0 3px rgba(123, 63, 160, 0.1);
}

.pdf-home-founding__form .pdf-btn-primary {
  width: 100%;
  text-align: center;
}

/* Text on white overlay */
.pdf-home-founding h2 {
  color: var(--pdf-purple-dark) !important;
}

.pdf-home-founding p {
  color: var(--pdf-text-secondary) !important;
}

.pdf-home-founding .pdf-check-list li {
  color: var(--pdf-text) !important;
}

@media (max-width: 768px) {
  .pdf-home-founding { padding: 80px 0; background-image: none !important; }
  .pdf-home-founding__content { max-width: 100%; }
  .pdf-home-founding__form { max-width: 100% !important; }
  .pdf-home-founding__form input[type="email"],
  .pdf-home-founding__form .pdf-btn-primary {
    width: 100% !important;
  }
}

/* ==========================================================================
   Longevity Quiz — Modal
   ========================================================================== */

.pdf-quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(28, 28, 28, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.pdf-quiz-overlay[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.pdf-quiz-modal {
  position: relative;
  background: var(--pdf-white);
  border-radius: var(--pdf-radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.pdf-quiz-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--pdf-bg-soft);
  border: 1px solid var(--pdf-border-light);
  font-size: 1.125rem;
  color: var(--pdf-text-secondary);
  cursor: pointer;
  line-height: 1;
  z-index: 1;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pdf-quiz-modal__close:hover {
  background: var(--pdf-purple);
  border-color: var(--pdf-purple);
  color: var(--pdf-white);
}

.pdf-quiz-modal__inner {
  padding: 48px 40px 40px;
}

/* Progress bar */
.pdf-quiz-progress {
  height: 6px;
  background: var(--pdf-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.pdf-quiz-progress__bar {
  height: 100%;
  background: var(--pdf-purple);
  border-radius: 3px;
  transition: width 0.35s ease;
}

.pdf-quiz-progress__label {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

/* Step layout */
.pdf-quiz-step h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--pdf-text);
}

.pdf-quiz-step__label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pdf-purple);
  margin-bottom: 8px;
}

/* Intro */
.pdf-quiz-step--intro h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.pdf-quiz-step--intro p {
  font-size: 0.9375rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pdf-quiz-start {
  margin-top: 8px;
  width: 100%;
  padding: 14px 24px !important;
  font-size: 1rem !important;
}

/* Answer options */
.pdf-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.pdf-quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-family: var(--pdf-font-body);
  color: var(--pdf-text);
  background: var(--pdf-white);
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pdf-quiz-option:hover {
  border-color: var(--pdf-purple);
  background: var(--pdf-bg-soft);
  color: var(--pdf-text);
}

.pdf-quiz-option--selected {
  border-color: var(--pdf-purple);
  background: var(--pdf-purple);
  color: var(--pdf-white);
  font-weight: 600;
}

/* Result screen */
.pdf-quiz-step--result {
  text-align: center;
}

.pdf-quiz-result__heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3D1A5C;
  margin-bottom: 8px;
}

.pdf-quiz-result__intro {
  font-size: 0.9375rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.pdf-quiz-result__intro strong {
  color: var(--pdf-purple);
  font-weight: 700;
}

/* Stack card — elevated with gradient top border */
.pdf-quiz-result__card {
  position: relative;
  border: none;
  border-radius: var(--pdf-radius-lg);
  padding: 40px 32px 36px;
  margin-bottom: 28px;
  text-align: center;
  background: var(--pdf-bg-soft);
  overflow: hidden;
}

.pdf-quiz-result__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pdf-gradient-pink-purple);
}

.pdf-quiz-result__stack-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #3D1A5C;
  margin-bottom: 10px;
}

.pdf-quiz-result__schedule {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pdf-purple);
  background: rgba(123, 63, 160, 0.08);
  padding: 4px 14px;
  border-radius: var(--pdf-radius-pill);
  margin-bottom: 16px;
}

.pdf-quiz-result__desc {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Waitlist form inside card */
.pdf-quiz-waitlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}

.pdf-quiz-waitlist input[type="email"] {
  padding: 13px 16px;
  font-size: 0.875rem;
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-pill);
  font-family: var(--pdf-font-body);
  background: var(--pdf-white);
  width: 100%;
  text-align: center;
}

.pdf-quiz-waitlist input[type="email"]:focus {
  outline: none;
  border-color: var(--pdf-purple);
  box-shadow: 0 0 0 3px rgba(123, 63, 160, 0.1);
}

.pdf-quiz-waitlist__btn {
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--pdf-font-body);
  color: var(--pdf-text);
  background: var(--pdf-white);
  border: 2px solid var(--pdf-text);
  border-radius: var(--pdf-radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pdf-quiz-waitlist__btn:hover {
  background: var(--pdf-purple);
  border-color: var(--pdf-purple);
  color: var(--pdf-white);
}

.pdf-quiz-waitlist__btn:disabled {
  cursor: default;
}

/* Retake link */
.pdf-quiz-retake-link {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--pdf-purple);
  border-radius: var(--pdf-radius-pill);
  font-family: var(--pdf-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pdf-purple);
  cursor: pointer;
  padding: 10px 28px;
  transition: background 0.2s ease, color 0.2s ease;
}

.pdf-quiz-retake-link:hover {
  background: var(--pdf-purple);
  color: var(--pdf-white);
}

/* Disclaimer */
.pdf-quiz-disclaimer {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  font-style: italic;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
  .pdf-quiz-modal__inner { padding: 40px 24px 32px; }
  .pdf-quiz-step h2 { font-size: 1.25rem; }
  .pdf-quiz-step--intro h2 { font-size: 1.375rem; }
  .pdf-quiz-step--email h2 { font-size: 1.25rem; }
  .pdf-quiz-result__actions { flex-direction: column; }
}

/* ==========================================================================
   Single Product — Product Details Page
   ========================================================================== */

/* --- Breadcrumb --- */
body.single-product .pdf-single-product__breadcrumb {
  padding: 20px 0;
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
}

body.single-product .pdf-single-product__breadcrumb a {
  color: var(--pdf-purple);
  text-decoration: none;
  font-weight: 500;
}

body.single-product .pdf-single-product__breadcrumb a:hover {
  color: var(--pdf-purple-dark);
}

body.single-product .pdf-single-product__breadcrumb-sep {
  margin: 0 8px;
  color: var(--pdf-border);
}

/* --- Hero Grid: Image + Summary --- */
body.single-product .pdf-single-product__hero {
  padding: 0 0 48px;
}

body.single-product .pdf-single-product__hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

/* --- Gallery --- */
body.single-product .pdf-single-product__image-main {
  border-radius: var(--pdf-radius-lg);
  overflow: hidden;
  background: var(--pdf-bg-soft);
}

body.single-product .pdf-single-product__image-main img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

body.single-product .pdf-single-product__placeholder {
  aspect-ratio: 1 / 1;
  background: var(--pdf-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pdf-lavender);
}

body.single-product .pdf-single-product__placeholder svg {
  width: 30%;
  height: auto;
}

body.single-product .pdf-single-product__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

body.single-product .pdf-single-product__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--pdf-radius-md);
  overflow: hidden;
  border: 2px solid var(--pdf-border-light);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

body.single-product .pdf-single-product__thumb:hover,
body.single-product .pdf-single-product__thumb--active {
  border-color: var(--pdf-purple);
}

body.single-product .pdf-single-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Summary --- */
body.single-product .pdf-single-product__pathways {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

body.single-product .pdf-single-product__title {
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-bottom: 10px !important;
  text-wrap: pretty;
}

body.single-product .pdf-single-product__excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pdf-text-secondary);
  margin-bottom: 16px;
  text-wrap: pretty;
}

/* --- Price --- */
body.single-product .pdf-single-product__price {
  margin-bottom: 14px;
}

body.single-product .pdf-single-product__price .woocommerce-Price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pdf-text);
}

body.single-product .pdf-single-product__price del .woocommerce-Price-amount {
  font-size: 1rem;
  font-weight: 400;
  color: var(--pdf-text-secondary);
}

body.single-product .pdf-single-product__price ins {
  text-decoration: none;
}

/* --- Add to Cart --- */
body.single-product .pdf-single-product__add-to-cart {
  margin-bottom: 20px;
}

body.single-product .pdf-single-product__add-to-cart .quantity {
  margin-right: 12px;
}

body.single-product .pdf-single-product__add-to-cart .single_add_to_cart_button {
  background-color: var(--pdf-purple) !important;
  border-color: var(--pdf-purple) !important;
  color: var(--pdf-text-on-purple) !important;
  border-radius: var(--pdf-radius-pill) !important;
  padding: 12px 36px !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  transition: all 0.2s ease !important;
}

body.single-product .pdf-single-product__add-to-cart .single_add_to_cart_button:hover {
  background-color: var(--pdf-purple-dark) !important;
  border-color: var(--pdf-purple-dark) !important;
  transform: translateY(-1px);
}

/* --- Section Labels --- */
body.single-product .pdf-single-product__section-label {
  display: block !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--pdf-text) !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* --- Benefits List --- */
body.single-product .pdf-single-product__benefits {
  margin-bottom: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--pdf-border-light);
}

body.single-product .pdf-single-product__benefits-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.single-product .pdf-single-product__benefits-list li {
  position: relative !important;
  padding-left: 24px !important;
  margin-bottom: 8px !important;
  font-size: 0.9375rem !important;
  line-height: 1.5 !important;
  color: var(--pdf-text) !important;
  list-style: none !important;
}

body.single-product .pdf-single-product__benefits-list li::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 7px !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: var(--pdf-purple) !important;
  opacity: 0.3 !important;
}

body.single-product .pdf-single-product__benefits-list li::marker {
  content: none !important;
  display: none !important;
}

/* --- Recommended Stacks --- */
body.single-product .pdf-single-product__stacks {
  margin-bottom: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--pdf-border-light);
}

body.single-product .pdf-single-product__stack-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.single-product .pdf-single-product__stack-pill {
  display: inline-block !important;
  padding: 6px 16px !important;
  border-radius: var(--pdf-radius-pill) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  border: 1px solid var(--pdf-border) !important;
  color: var(--pdf-text) !important;
  background: var(--pdf-white) !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

body.single-product a.pdf-single-product__stack-pill:hover {
  border-color: var(--pdf-purple) !important;
  color: var(--pdf-purple) !important;
  background: var(--pdf-bg-soft) !important;
}

/* --- Mechanism of Action --- */
body.single-product .pdf-single-product__mechanism {
  padding: 76px 0 0;
  margin-bottom: 0;
}

body.single-product .pdf-single-product__mechanism-cta {
  text-align: center;
  padding: 41px 0 76px;
}

body.single-product .pdf-single-product__mechanism-inner {
  max-width: 780px;
  margin: 0 auto;
}

body.single-product .pdf-single-product__mechanism h2 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
  text-align: center;
  color: var(--pdf-text) !important;
}

body.single-product .pdf-single-product__mechanism-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--pdf-text-secondary);
  text-wrap: pretty;
}

body.single-product .pdf-single-product__mechanism-content p {
  margin-bottom: 16px;
}

body.single-product .pdf-single-product__mechanism-content ul,
body.single-product .pdf-single-product__mechanism-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

body.single-product .pdf-single-product__mechanism-content li {
  margin-bottom: 8px;
}

/* --- Back to Products --- */
/* back section removed — button moved into mechanism */

/* --- Responsive --- */
@media (max-width: 768px) {
  body.single-product .pdf-single-product__hero { padding-bottom: 32px; }
  body.single-product .pdf-single-product__hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  body.single-product .pdf-single-product__title { font-size: 1.5rem !important; }
  body.single-product .pdf-single-product__mechanism { padding: 32px 0; }
  body.single-product .pdf-single-product__mechanism-inner { max-width: 100%; }
}

/* --- Trace Your Food Button --- */
.pdf-single-product__trace-cta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--pdf-border-light);
}

.pdf-btn-trace {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent !important;
  border: 2px solid var(--pdf-purple) !important;
  border-radius: var(--pdf-radius-pill);
  color: var(--pdf-purple) !important;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  outline: none !important;
  box-shadow: none !important;
}

.pdf-btn-trace:hover {
  background: var(--pdf-purple) !important;
  border-color: var(--pdf-purple) !important;
  color: var(--pdf-white) !important;
}

.pdf-btn-trace:hover svg {
  stroke: var(--pdf-white) !important;
}

.pdf-btn-trace:focus,
.pdf-btn-trace:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--pdf-purple) !important;
}

.pdf-btn-trace:active {
  background: var(--pdf-purple-dark) !important;
  border-color: var(--pdf-purple-dark) !important;
  color: var(--pdf-white) !important;
  outline: none !important;
  box-shadow: none !important;
}

.pdf-btn-trace:visited {
  color: var(--pdf-purple) !important;
  border-color: var(--pdf-purple) !important;
}

/* --- Traceability Modal --- */
.pdf-trace-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.pdf-trace-overlay--active {
  opacity: 1;
  visibility: visible;
}

.pdf-trace-modal {
  background: var(--pdf-white);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.pdf-trace-overlay--active .pdf-trace-modal {
  transform: translateY(0);
}

.pdf-trace-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pdf-text-secondary);
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.pdf-trace-modal__close:hover {
  color: var(--pdf-text);
  background: rgba(0, 0, 0, 0.05);
}

.pdf-trace-modal__header {
  margin-bottom: 28px;
}

.pdf-trace-modal__eyebrow {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pdf-purple);
  margin-bottom: 8px;
}

.pdf-trace-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pdf-text);
  margin: 0;
}

.pdf-trace-modal__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pdf-trace-modal__section {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pdf-border-light);
}

.pdf-trace-modal__section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pdf-trace-modal__label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pdf-purple);
  margin: 0 0 8px;
}

.pdf-trace-modal__section p {
  font-size: 0.9375rem;
  color: var(--pdf-text);
  line-height: 1.6;
  margin: 0 0 4px;
}

.pdf-trace-modal__meta {
  font-size: 0.875rem !important;
  color: var(--pdf-text-secondary) !important;
  margin-top: 8px !important;
}

.pdf-trace-modal__quality {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdf-trace-modal__quality li {
  font-size: 0.9375rem;
  color: var(--pdf-text);
  padding-left: 24px;
  position: relative;
}

.pdf-trace-modal__quality li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--pdf-purple);
  font-weight: 700;
}

/* ── Trace Photo Slider ── */
.pdf-trace-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.pdf-trace-slider__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.pdf-trace-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pdf-trace-slider__slide--active {
  opacity: 1;
}

.pdf-trace-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.pdf-trace-slider__prev,
.pdf-trace-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease;
  outline: none !important;
  color: var(--pdf-text) !important;
}

.pdf-trace-slider__prev { left: 10px; }
.pdf-trace-slider__next { right: 10px; }

.pdf-trace-slider__prev:hover,
.pdf-trace-slider__next:hover {
  background: var(--pdf-white) !important;
}

.pdf-trace-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
}

.pdf-trace-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none !important;
  background: var(--pdf-border) !important;
  cursor: pointer;
  padding: 0 !important;
  transition: background 0.2s ease, transform 0.2s ease;
  outline: none !important;
  box-shadow: none !important;
}

.pdf-trace-slider__dot--active {
  background: var(--pdf-purple) !important;
  transform: scale(1.25);
}

.pdf-trace-slider__dot:hover {
  background: var(--pdf-purple) !important;
}

@media (max-width: 640px) {
  .pdf-trace-modal {
    padding: 28px 20px;
    max-height: 90vh;
  }

  .pdf-trace-modal__title {
    font-size: 1.25rem;
  }

  .pdf-trace-slider__track {
    aspect-ratio: 4 / 3;
  }
}

/* E-commerce off — hide price/cart on single product too */
body.ecommerce-off .pdf-single-product__price,
body.ecommerce-off .pdf-single-product__add-to-cart {
  display: none !important;
}

/* ==========================================================================
   Cart Drawer — Slide-out Side Panel
   ========================================================================== */

/* Overlay */
.pdf-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.4);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pdf-cart-overlay--visible {
  opacity: 1;
  visibility: visible;
}

/* Drawer */
.pdf-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--pdf-white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
}

.pdf-cart-drawer--open {
  transform: translateX(0);
}

/* Header */
.pdf-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--pdf-border-light);
  flex-shrink: 0;
}

.pdf-cart-drawer__title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: var(--pdf-text);
  font-family: var(--pdf-font-heading);
}

.pdf-cart-drawer__close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border: none !important;
  background: none !important;
  color: var(--pdf-text-secondary) !important;
  cursor: pointer !important;
  border-radius: 50% !important;
  transition: background 0.2s ease, color 0.2s ease !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.pdf-cart-drawer__close:hover {
  background: var(--pdf-bg-soft) !important;
  color: var(--pdf-text) !important;
}

/* Body — scrollable items */
.pdf-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

/* Empty state */
.pdf-cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--pdf-text-secondary);
  gap: 16px;
}

.pdf-cart-drawer__empty p {
  font-size: 0.9375rem;
  margin: 0;
}

.pdf-cart-drawer__empty .pdf-btn-primary {
  margin-top: 8px;
}

/* Cart item */
.pdf-cart-drawer__item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pdf-border-light);
  position: relative;
}

.pdf-cart-drawer__item:last-child {
  border-bottom: none;
}

/* Item image */
.pdf-cart-drawer__item-image {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--pdf-radius-md);
  overflow: hidden;
  background: var(--pdf-bg-soft);
  border: 1px solid var(--pdf-border-light);
}

.pdf-cart-drawer__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Item details */
.pdf-cart-drawer__item-details {
  flex: 1;
  min-width: 0;
}

.pdf-cart-drawer__item-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pdf-text) !important;
  text-decoration: none !important;
  margin-bottom: 4px;
  line-height: 1.3;
}

.pdf-cart-drawer__item-name:hover {
  color: var(--pdf-purple) !important;
}

.pdf-cart-drawer__item-price {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  margin-bottom: 8px;
}

/* Quantity controls */
.pdf-cart-drawer__item-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pdf-border);
  border-radius: var(--pdf-radius-md);
  overflow: hidden;
}

.pdf-cart-drawer__qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--pdf-text);
  transition: background 0.15s ease;
  font-family: var(--pdf-font-body);
}

.pdf-cart-drawer__qty-btn:hover {
  background: var(--pdf-bg-soft);
}

.pdf-cart-drawer__qty-value {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pdf-text);
}

/* Remove button */
.pdf-cart-drawer__item-remove {
  position: absolute;
  top: 16px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pdf-text-secondary);
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}

.pdf-cart-drawer__item-remove:hover {
  background: var(--pdf-bg-soft);
  color: var(--pdf-text);
}

/* Footer */
.pdf-cart-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--pdf-border-light);
  flex-shrink: 0;
}

/* Totals */
.pdf-cart-drawer__totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pdf-cart-drawer__totals-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pdf-text);
}

.pdf-cart-drawer__totals-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pdf-text);
}

/* Checkout button */
.pdf-cart-drawer__checkout {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  text-decoration: none !important;
  margin-bottom: 8px;
}

/* View full cart link */
.pdf-cart-drawer__view-cart {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pdf-purple) !important;
  text-decoration: none !important;
  padding: 8px;
}

.pdf-cart-drawer__view-cart:hover {
  color: var(--pdf-purple-dark) !important;
  text-decoration: underline !important;
}

/* Responsive */
@media (max-width: 480px) {
  .pdf-cart-drawer { width: 100%; max-width: 100vw; }
}

/* ==========================================================================
   WooCommerce Shared — Inputs, Buttons, Notices (Account, Cart, Checkout)
   ========================================================================== */

/* Shared form input styling */
body.woocommerce-account .input-text,
body.woocommerce-account select,
body.woocommerce-cart .input-text,
body.woocommerce-cart select,
body.woocommerce-checkout .input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea {
  width: 100% !important;
  padding: 14px 16px !important;
  font-size: 0.9375rem !important;
  font-family: var(--pdf-font-body) !important;
  border: 1.5px solid var(--pdf-border) !important;
  border-radius: 12px !important;
  background: var(--pdf-white) !important;
  color: var(--pdf-text) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
}

body.woocommerce-account .input-text:focus,
body.woocommerce-cart .input-text:focus,
body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout textarea:focus {
  border-color: var(--pdf-purple) !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(123, 63, 160, 0.08) !important;
}

/* Shared form labels */
body.woocommerce-account label,
body.woocommerce-checkout label {
  display: block !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--pdf-text) !important;
  margin-bottom: 6px !important;
  font-family: var(--pdf-font-body) !important;
}

/* Shared primary buttons */
body.woocommerce-account button[type="submit"],
body.woocommerce-cart button[type="submit"],
body.woocommerce-checkout button[type="submit"],
body.woocommerce-checkout #place_order {
  padding: 14px 36px !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  font-family: var(--pdf-font-body) !important;
  background: var(--pdf-purple) !important;
  color: var(--pdf-text-on-purple) !important;
  border: none !important;
  border-radius: var(--pdf-radius-pill) !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  letter-spacing: 0.02em !important;
}

body.woocommerce-account button[type="submit"]:hover,
body.woocommerce-cart button[type="submit"]:hover,
body.woocommerce-checkout button[type="submit"]:hover,
body.woocommerce-checkout #place_order:hover {
  background: var(--pdf-purple-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(123, 63, 160, 0.2) !important;
}

/* Shared notices */
body.woocommerce-page .woocommerce-message,
body.woocommerce-page .woocommerce-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 16px 24px !important;
  border-radius: 12px !important;
  font-size: 0.875rem !important;
  border-top: none !important;
  border-left: 4px solid var(--pdf-purple) !important;
  background: var(--pdf-bg-soft) !important;
  color: var(--pdf-text) !important;
  margin-bottom: 24px !important;
  font-family: var(--pdf-font-body) !important;
}

body.woocommerce-page .woocommerce-message::before,
body.woocommerce-page .woocommerce-info::before {
  color: var(--pdf-purple) !important;
  position: static !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  top: auto !important;
  left: auto !important;
  line-height: 1 !important;
}

body.woocommerce-page .woocommerce-error {
  padding: 16px 24px !important;
  border-radius: 12px !important;
  font-size: 0.875rem !important;
  border-top: none !important;
  border-left: 4px solid #e53e3e !important;
  background: #fef2f2 !important;
  color: var(--pdf-text) !important;
  margin-bottom: 24px !important;
}

/* Required asterisk */
body.woocommerce-page .required {
  color: var(--pdf-purple) !important;
}

/* ==========================================================================
   My Account — Modern Login & Dashboard
   ========================================================================== */

/* Full-width container */
body.woocommerce-account .site-content > .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

body.woocommerce-account #primary {
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide default Astra page title */
body.woocommerce-account .entry-header {
  display: none !important;
}

/* Container */
body.woocommerce-account .entry-content {
  max-width: var(--pdf-container-width) !important;
  margin: 0 auto !important;
  padding: 60px 24px 80px !important;
  font-family: var(--pdf-font-body) !important;
}

/* ── Login Page ── */

/* Login heading — icon above */
body.woocommerce-account .woocommerce > h2 {
  text-align: center !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  font-family: var(--pdf-font-heading) !important;
  color: var(--pdf-text) !important;
  margin-bottom: 8px !important;
}

/* Centre the login form and heading */
body.woocommerce-account .entry-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

body.woocommerce-account .entry-content .woocommerce {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Login form card */
body.woocommerce-account .woocommerce .woocommerce-form-login {
  max-width: 464px !important;
  width: 464px !important;
  margin: 0 auto !important;
  padding: 44px 44px 36px !important;
  background: var(--pdf-white);
  border: 1.5px solid var(--pdf-border-light);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(123, 63, 160, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.woocommerce-account .woocommerce-form-login .form-row {
  margin-bottom: 20px !important;
}

/* Remember me */
body.woocommerce-account .woocommerce-form-login__rememberme {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.875rem !important;
  color: var(--pdf-text-secondary) !important;
  cursor: pointer !important;
}

body.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--pdf-purple) !important;
  border-radius: 4px !important;
}

/* Login button */
body.woocommerce-account .woocommerce-form-login__submit {
  width: 100% !important;
  display: block !important;
  margin-top: 28px !important;
}

/* Lost password */
body.woocommerce-account .lost_password {
  text-align: center !important;
  margin-top: 20px !important;
}

body.woocommerce-account .lost_password a {
  font-size: 0.875rem !important;
  color: var(--pdf-text-secondary) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

body.woocommerce-account .lost_password a:hover {
  color: var(--pdf-purple) !important;
}

/* ── Dashboard (Logged-in) ── */

/* Single-column layout — no sidebar */
body.woocommerce-account .woocommerce {
  display: block !important;
  width: 100% !important;
  float: none !important;
}

/* Content takes full width */
body.woocommerce-account .woocommerce-MyAccount-content {
  width: 100% !important;
  float: none !important;
  max-width: 100% !important;
}

/* Kill Astra's flex on account container */
body.woocommerce-account .site-content .ast-container {
  display: block !important;
}

body.woocommerce-account #primary {
  width: 100% !important;
  float: none !important;
}

/* Hide sidebar/tab navigation — replaced by dropdown + breadcrumbs */
body.woocommerce-account .woocommerce-MyAccount-navigation {
  display: none !important;
}

/* Account breadcrumbs */
.pdf-account-breadcrumb {
  margin-bottom: 28px;
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  font-family: var(--pdf-font-body);
}

.pdf-account-breadcrumb a {
  color: var(--pdf-purple) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.pdf-account-breadcrumb a:hover {
  color: var(--pdf-purple-dark) !important;
}

.pdf-account-breadcrumb__sep {
  margin: 0 8px;
  color: var(--pdf-border);
}

.pdf-account-breadcrumb__current {
  color: var(--pdf-text);
  font-weight: 600;
}

/* Content area — full width below tabs */
body.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  font-size: 0.9375rem !important;
  line-height: 1.7 !important;
  color: var(--pdf-text) !important;
  min-width: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content p {
  color: var(--pdf-text-secondary) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content a {
  color: var(--pdf-purple) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-content a:hover {
  color: var(--pdf-purple-dark) !important;
  text-decoration: underline !important;
}

/* Account form rows */
body.woocommerce-account .woocommerce-EditAccountForm .form-row,
body.woocommerce-account .woocommerce-address-fields .form-row {
  margin-bottom: 20px !important;
}

/* Orders table */
body.woocommerce-account .woocommerce-orders-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.875rem !important;
  border: 1.5px solid var(--pdf-border-light) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

body.woocommerce-account .woocommerce-orders-table thead th {
  padding: 14px 16px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--pdf-text-secondary) !important;
  background: var(--pdf-bg-soft) !important;
  border-bottom: 1.5px solid var(--pdf-border-light) !important;
  text-align: left !important;
}

body.woocommerce-account .woocommerce-orders-table tbody td {
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--pdf-border-light) !important;
  color: var(--pdf-text) !important;
  vertical-align: middle !important;
}

body.woocommerce-account .woocommerce-orders-table tbody tr:last-child td {
  border-bottom: none !important;
}

body.woocommerce-account .woocommerce-orders-table .woocommerce-button {
  padding: 8px 18px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: var(--pdf-radius-pill) !important;
  background: var(--pdf-purple) !important;
  color: var(--pdf-text-on-purple) !important;
  border: none !important;
  text-decoration: none !important;
}

/* All WooCommerce buttons on account pages */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button,
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
body.woocommerce-account .woocommerce-MyAccount-content a.button {
  display: inline-block !important;
  padding: 10px 24px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  font-family: var(--pdf-font-body) !important;
  background: var(--pdf-purple) !important;
  color: var(--pdf-text-on-purple) !important;
  border: none !important;
  border-radius: var(--pdf-radius-pill) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  letter-spacing: 0.02em !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button:hover,
body.woocommerce-account .woocommerce-MyAccount-content a.button:hover {
  background: var(--pdf-purple-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(123, 63, 160, 0.2) !important;
  color: var(--pdf-text-on-purple) !important;
}

/* Responsive — Account */
@media (max-width: 768px) {
  body.woocommerce-account .woocommerce-form-login {
    padding: 32px 24px;
    border-radius: 16px;
  }

  body.woocommerce-account .entry-content {
    padding: 40px 20px 60px !important;
  }
}

/* ==========================================================================
   Cart Page — Modern Styling
   ========================================================================== */

/* Full-width container */
body.woocommerce-cart .site-content > .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

body.woocommerce-cart #primary {
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-cart .entry-header .entry-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  font-family: var(--pdf-font-heading) !important;
  color: var(--pdf-text) !important;
  text-align: center !important;
  margin-bottom: 8px !important;
}

body.woocommerce-cart .entry-content {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 40px 24px 80px !important;
  font-family: var(--pdf-font-body) !important;
}

/* Empty cart */
body.woocommerce-cart .cart-empty {
  text-align: center !important;
  padding: 48px 24px !important;
  font-size: 1rem !important;
  color: var(--pdf-text-secondary) !important;
  border: none !important;
  background: none !important;
}

body.woocommerce-cart .return-to-shop {
  text-align: center !important;
}

body.woocommerce-cart .return-to-shop .button {
  display: inline-block !important;
  padding: 14px 36px !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  background: var(--pdf-purple) !important;
  color: var(--pdf-text-on-purple) !important;
  border: none !important;
  border-radius: var(--pdf-radius-pill) !important;
  text-decoration: none !important;
}

body.woocommerce-cart .return-to-shop .button:hover {
  background: var(--pdf-purple-dark) !important;
}

/* Cart table */
body.woocommerce-cart table.shop_table {
  border: 1.5px solid var(--pdf-border-light) !important;
  border-radius: 16px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  font-size: 0.9375rem !important;
}

body.woocommerce-cart table.shop_table thead th {
  padding: 16px 20px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--pdf-text-secondary) !important;
  background: var(--pdf-bg-soft) !important;
  border-bottom: 1.5px solid var(--pdf-border-light) !important;
}

body.woocommerce-cart table.shop_table td {
  padding: 20px !important;
  border-top: 1px solid var(--pdf-border-light) !important;
  vertical-align: middle !important;
}

body.woocommerce-cart table.shop_table img {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  border: 1px solid var(--pdf-border-light) !important;
}

body.woocommerce-cart table.shop_table .product-name a {
  color: var(--pdf-text) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.woocommerce-cart table.shop_table .product-name a:hover {
  color: var(--pdf-purple) !important;
}

/* Quantity input */
body.woocommerce-cart .quantity .qty {
  width: 64px !important;
  height: 44px !important;
  text-align: center !important;
  border: 1.5px solid var(--pdf-border) !important;
  border-radius: 10px !important;
  font-size: 0.9375rem !important;
  font-family: var(--pdf-font-body) !important;
}

/* Remove item */
body.woocommerce-cart table.shop_table .product-remove a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  color: var(--pdf-text-secondary) !important;
  font-size: 1.25rem !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

body.woocommerce-cart table.shop_table .product-remove a:hover {
  background: #fef2f2 !important;
  color: #e53e3e !important;
}

/* Coupon section */
body.woocommerce-cart .coupon {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

body.woocommerce-cart .coupon #coupon_code {
  max-width: 200px !important;
  border-radius: 10px !important;
}

body.woocommerce-cart .coupon .button {
  padding: 14px 24px !important;
  border-radius: var(--pdf-radius-pill) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  background: var(--pdf-white) !important;
  color: var(--pdf-purple) !important;
  border: 1.5px solid var(--pdf-purple) !important;
}

body.woocommerce-cart .coupon .button:hover {
  background: var(--pdf-purple) !important;
  color: var(--pdf-text-on-purple) !important;
}

/* Cart totals */
body.woocommerce-cart .cart_totals {
  margin-top: 32px !important;
  float: none !important;
  width: 100% !important;
  max-width: 400px !important;
  margin-left: auto !important;
}

body.woocommerce-cart .cart_totals h2 {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  font-family: var(--pdf-font-heading) !important;
  color: var(--pdf-text) !important;
  margin-bottom: 16px !important;
}

body.woocommerce-cart .cart_totals table {
  border: 1.5px solid var(--pdf-border-light) !important;
  border-radius: 12px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
  padding: 16px 20px !important;
  border-top: 1px solid var(--pdf-border-light) !important;
  font-size: 0.9375rem !important;
}

body.woocommerce-cart .cart_totals table th {
  font-weight: 600 !important;
  color: var(--pdf-text) !important;
  background: var(--pdf-bg-soft) !important;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
}

/* Proceed to checkout button */
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  padding: 16px 36px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  background: var(--pdf-purple) !important;
  color: var(--pdf-text-on-purple) !important;
  border: none !important;
  border-radius: var(--pdf-radius-pill) !important;
  text-decoration: none !important;
  margin-top: 16px !important;
  transition: all 0.2s ease !important;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--pdf-purple-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(123, 63, 160, 0.25) !important;
}

/* ==========================================================================
   Checkout Page — Modern Styling
   ========================================================================== */

/* Full-width container */
body.woocommerce-checkout .site-content > .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

body.woocommerce-checkout #primary {
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout .entry-header .entry-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  font-family: var(--pdf-font-heading) !important;
  color: var(--pdf-text) !important;
  text-align: center !important;
  margin-top: 40px !important;
  margin-bottom: 8px !important;
}

body.woocommerce-checkout .entry-content {
  max-width: var(--pdf-container-width) !important;
  margin: 0 auto !important;
  padding: 40px 24px 80px !important;
  font-family: var(--pdf-font-body) !important;
}

/* Ensure all checkout form rows fill width */
body.woocommerce-checkout .form-row {
  margin-bottom: 16px !important;
  width: 100% !important;
  float: none !important;
}

body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .form-row select {
  width: 100% !important;
}

/* Select2 overrides */
body.woocommerce-checkout .select2-container {
  width: 100% !important;
}

body.woocommerce-checkout .select2-container .select2-selection--single {
  height: 48px !important;
  border: 1.5px solid var(--pdf-border) !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
}

body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 1.4 !important;
  padding: 0 !important;
  color: var(--pdf-text) !important;
  font-family: var(--pdf-font-body) !important;
  font-size: 0.9375rem !important;
}

body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  right: 12px !important;
}

/* Coupon toggle bar */
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: var(--pdf-bg-soft) !important;
  border-left: 4px solid var(--pdf-purple) !important;
  border-top: none !important;
  border-radius: 12px !important;
  padding: 14px 20px 14px 20px !important;
  font-size: 0.875rem !important;
  position: relative !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
  color: var(--pdf-purple) !important;
  position: static !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  top: auto !important;
  left: auto !important;
  line-height: 1 !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a {
  color: var(--pdf-purple) !important;
  font-weight: 600 !important;
}

/* Order notes textarea */
body.woocommerce-checkout #order_comments {
  min-height: 100px !important;
  resize: vertical !important;
}

/* Add "Your order" heading inside the review panel */
body.woocommerce-checkout #order_review::before {
  content: 'Your order';
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--pdf-font-heading);
  color: var(--pdf-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--pdf-border-light);
}

/* ── Inline field pairs ── */

/* State + ZIP side by side */
@media (min-width: 769px) {
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_state_field,
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_postcode_field {
    grid-column: auto !important;
  }

  /* Phone + Email side by side */
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_phone_field,
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_email_field {
    grid-column: auto !important;
  }

  /* City + Country side by side */
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_city_field,
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper #billing_country_field {
    grid-column: auto !important;
  }
}

/* Two-column layout */
body.woocommerce-checkout #customer_details.col2-set {
  float: none !important;
  width: 100% !important;
  margin-right: 0 !important;
}

body.woocommerce-checkout #customer_details.col2-set .col-1,
body.woocommerce-checkout #customer_details.col2-set .col-2 {
  float: none !important;
  width: 100% !important;
}

/* Section headings */
body.woocommerce-checkout h3 {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  font-family: var(--pdf-font-heading) !important;
  color: var(--pdf-text) !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1.5px solid var(--pdf-border-light) !important;
}

/* Form rows */
body.woocommerce-checkout .form-row {
  margin-bottom: 16px !important;
}

/* Checkout layout — billing + order side by side on desktop */
@media (min-width: 769px) {
  /* The <form> is the parent of both #customer_details and #order_review */
  body.woocommerce-checkout form.checkout.woocommerce-checkout {
    display: grid !important;
    grid-template-columns: 1fr 400px !important;
    gap: 48px !important;
    align-items: start !important;
  }

  /* Billing/shipping spans left column */
  body.woocommerce-checkout form.checkout #customer_details {
    grid-column: 1 !important;
    grid-row: 1 !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* Hide separate heading — we'll use the panel's own styling */
  body.woocommerce-checkout form.checkout #order_review_heading {
    grid-column: 2 !important;
    grid-row: 1 !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    align-self: start !important;
  }

  /* Order review panel — sticky, starts right at top of right column */
  body.woocommerce-checkout form.checkout #order_review {
    grid-column: 2 !important;
    grid-row: 1 / -1 !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    position: sticky !important;
    top: 96px !important;
  }

  /* Push heading into the panel visually */
  body.woocommerce-checkout form.checkout #order_review_heading {
    display: none !important;
  }

  /* Additional info spans left column */
  body.woocommerce-checkout form.checkout .woocommerce-additional-fields {
    grid-column: 1 !important;
  }

  /* Notices span full width */
  body.woocommerce-checkout .woocommerce .woocommerce-notices-wrapper {
    grid-column: 1 / -1 !important;
  }

  /* Coupon notice full width */
  body.woocommerce-checkout .woocommerce-form-coupon-toggle {
    grid-column: 1 / -1 !important;
  }

  body.woocommerce-checkout .checkout_coupon {
    grid-column: 1 / -1 !important;
  }

  /* Billing field grid */
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1 !important;
  }

  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first {
    grid-column: 1 !important;
  }

  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last {
    grid-column: 2 !important;
  }

  /* col2-set override */
  body.woocommerce-checkout #customer_details.col2-set {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
  }

  body.woocommerce-checkout #customer_details.col2-set .col-1,
  body.woocommerce-checkout #customer_details.col2-set .col-2 {
    float: none !important;
    width: 100% !important;
  }
}

/* Order review panel */
body.woocommerce-checkout #order_review_heading {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: var(--pdf-text) !important;
  margin-bottom: 16px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

body.woocommerce-checkout #order_review {
  float: none !important;
  width: 100% !important;
  margin-right: 0 !important;
  background: var(--pdf-bg-soft) !important;
  border-radius: 20px !important;
  padding: 28px !important;
  border: 1.5px solid var(--pdf-border-light) !important;
}

/* Order table */
body.woocommerce-checkout .woocommerce-checkout-review-order-table {
  border: none !important;
  margin-bottom: 20px !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
  padding: 10px 0 !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--pdf-text-secondary) !important;
  border-bottom: 1px solid var(--pdf-border) !important;
  background: transparent !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table th {
  padding: 12px 0 !important;
  border-top: 1px solid var(--pdf-border-light) !important;
  background: transparent !important;
  font-size: 0.9375rem !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: var(--pdf-text) !important;
  border-top: 2px solid var(--pdf-border) !important;
  padding-top: 16px !important;
}

/* Payment methods */
body.woocommerce-checkout #payment {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
  padding: 0 !important;
  border: none !important;
  list-style: none !important;
}

body.woocommerce-checkout #payment ul.payment_methods li {
  padding: 16px !important;
  margin-bottom: 8px !important;
  border: 1.5px solid var(--pdf-border) !important;
  border-radius: 12px !important;
  background: var(--pdf-white) !important;
  transition: border-color 0.2s ease !important;
}

body.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
  border-color: var(--pdf-purple) !important;
  background: var(--pdf-white) !important;
}

body.woocommerce-checkout #payment ul.payment_methods li label {
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  cursor: pointer !important;
  margin-bottom: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
  accent-color: var(--pdf-purple) !important;
  margin-right: 8px !important;
}

body.woocommerce-checkout #payment .payment_box {
  background: var(--pdf-bg-soft) !important;
  border-radius: 10px !important;
  padding: 16px !important;
  margin-top: 12px !important;
  font-size: 0.875rem !important;
  color: var(--pdf-text-secondary) !important;
}

body.woocommerce-checkout #payment .payment_box::before {
  display: none !important;
}

/* Place order */
body.woocommerce-checkout #place_order {
  width: 100% !important;
  display: block !important;
  padding: 18px 36px !important;
  font-size: 1rem !important;
  margin-top: 20px !important;
}

/* Privacy text */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-top: 16px !important;
  font-size: 0.875rem !important;
  color: var(--pdf-text-secondary) !important;
}

/* Responsive — Cart */
@media (max-width: 768px) {
  body.woocommerce-cart .entry-content {
    padding: 24px 16px 60px !important;
  }

  body.woocommerce-cart table.shop_table {
    border-radius: 12px !important;
  }

  body.woocommerce-cart table.shop_table thead {
    display: none !important;
  }

  body.woocommerce-cart table.shop_table td {
    display: block !important;
    padding: 8px 16px !important;
    text-align: right !important;
  }

  body.woocommerce-cart table.shop_table td::before {
    content: attr(data-title);
    float: left;
    font-weight: 600;
    color: var(--pdf-text);
  }

  body.woocommerce-cart table.shop_table td.product-thumbnail {
    text-align: center !important;
  }

  body.woocommerce-cart .cart_totals {
    max-width: 100% !important;
  }

  body.woocommerce-cart .coupon {
    flex-direction: column !important;
  }

  body.woocommerce-cart .coupon #coupon_code {
    max-width: 100% !important;
  }
}

/* Responsive — Checkout */
@media (max-width: 768px) {
  body.woocommerce-checkout .entry-content {
    padding: 24px 16px 60px !important;
  }

  body.woocommerce-checkout #order_review {
    border-radius: 16px !important;
    padding: 20px !important;
  }
}

/* ==========================================================================
   My Account — Dashboard Tab (Custom Template)
   ========================================================================== */

/* Welcome banner */
.pdf-account-welcome {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--pdf-bg-soft) 0%, var(--pdf-bg-pink) 100%);
  border-radius: 20px;
  margin-bottom: 28px;
  border: 1.5px solid var(--pdf-border-light);
}

.pdf-account-welcome__avatar img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid var(--pdf-purple);
}

.pdf-account-welcome__text h2 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--pdf-text) !important;
  margin: 0 0 4px !important;
  font-family: var(--pdf-font-heading) !important;
}

.pdf-account-welcome__text p {
  font-size: 0.875rem !important;
  color: var(--pdf-text-secondary) !important;
  margin: 0 !important;
}

/* Quick stats */
.pdf-account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.pdf-account-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--pdf-white);
  border: 1.5px solid var(--pdf-border-light);
  border-radius: 16px;
  text-align: center;
}

.pdf-account-stat__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pdf-text);
  margin-bottom: 4px;
  word-break: break-all;
}

.pdf-account-stat__label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pdf-text-secondary);
}

/* Quick link cards */
.pdf-account-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pdf-account-link-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--pdf-white);
  border: 1.5px solid var(--pdf-border-light);
  border-radius: 16px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pdf-account-link-card:hover {
  border-color: var(--pdf-purple);
  box-shadow: 0 4px 20px rgba(123, 63, 160, 0.08);
  transform: translateY(-2px);
}

.pdf-account-link-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pdf-bg-soft);
  color: var(--pdf-purple);
  margin-bottom: 16px;
}

.pdf-account-link-card h3 {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: var(--pdf-text) !important;
  margin: 0 0 4px !important;
}

.pdf-account-link-card p {
  font-size: 0.875rem !important;
  color: var(--pdf-text-secondary) !important;
  margin: 0 !important;
}

/* ==========================================================================
   My Account — Orders Tab Enhancements
   ========================================================================== */

/* No orders message */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
  text-align: center !important;
  padding: 48px 24px !important;
  background: var(--pdf-bg-soft) !important;
  border: none !important;
  border-left: none !important;
  border-radius: 16px !important;
  font-size: 1rem !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before {
  display: block !important;
  margin: 0 auto 12px !important;
  font-size: 2rem !important;
}

/* Order status badges */
body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-status {
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  text-transform: capitalize !important;
}

/* ==========================================================================
   My Account — Addresses Tab
   ========================================================================== */

/* Reset ALL Astra address styles first */
body.woocommerce-account .col2-set,
body.woocommerce-account .col2-set *,
body.woocommerce-account .u-columns,
body.woocommerce-account .u-columns * {
  float: none !important;
}

/* Two-column grid */
body.woocommerce-account .col2-set.addresses,
body.woocommerce-account .col2-set,
body.woocommerce-account .u-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: start !important;
}

/* Each column = a card */
body.woocommerce-account .col2-set .col-1,
body.woocommerce-account .col2-set .col-2,
body.woocommerce-account .u-columns > div {
  width: 100% !important;
  padding: 28px !important;
  margin: 0 !important;
  background: var(--pdf-white) !important;
  border: 1.5px solid var(--pdf-border-light) !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
}

/* Force billing first, shipping second */
body.woocommerce-account .col2-set .col-1 {
  grid-column: 1 !important;
  grid-row: 1 !important;
  order: 1 !important;
}

body.woocommerce-account .col2-set .col-2 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  order: 2 !important;
}

/* Address title header row */
body.woocommerce-account .woocommerce-Address-title,
body.woocommerce-account .col2-set header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border: none !important;
  border-bottom: 1px solid var(--pdf-border-light) !important;
  background: none !important;
  border-radius: 0 !important;
}

/* Address heading text */
body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3,
body.woocommerce-account .col2-set h2,
body.woocommerce-account .col2-set h3,
body.woocommerce-account .u-columns h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--pdf-text) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  font-family: var(--pdf-font-heading) !important;
}

/* Edit / Add button */
body.woocommerce-account .woocommerce-Address-title .edit,
body.woocommerce-account .col2-set .edit,
body.woocommerce-account .u-columns .edit {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--pdf-purple) !important;
  text-decoration: none !important;
  padding: 6px 16px !important;
  border: 1.5px solid var(--pdf-purple) !important;
  border-radius: var(--pdf-radius-pill) !important;
  transition: all 0.15s ease !important;
  background: none !important;
  display: inline-block !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

body.woocommerce-account .woocommerce-Address-title .edit:hover,
body.woocommerce-account .col2-set .edit:hover {
  background: var(--pdf-purple) !important;
  color: var(--pdf-text-on-purple) !important;
}

/* Address text */
body.woocommerce-account .col2-set address,
body.woocommerce-account .woocommerce-Address address {
  font-style: normal !important;
  font-size: 0.9375rem !important;
  line-height: 1.8 !important;
  color: var(--pdf-text-secondary) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

/* Intro text above addresses */
body.woocommerce-account .woocommerce-MyAccount-content > p {
  font-size: 0.9375rem !important;
  color: var(--pdf-text-secondary) !important;
  margin-bottom: 24px !important;
}

/* ==========================================================================
   My Account — Account Details Tab
   ========================================================================== */

/* Form wrapper */
body.woocommerce-account .woocommerce-EditAccountForm {
  max-width: 600px;
}

/* Fieldset */
body.woocommerce-account .woocommerce-EditAccountForm fieldset {
  border: 1.5px solid var(--pdf-border-light) !important;
  border-radius: 16px !important;
  padding: 28px !important;
  margin: 28px 0 !important;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset legend {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: var(--pdf-text) !important;
  padding: 0 12px !important;
}

/* Two-column name fields */
body.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
body.woocommerce-account .woocommerce-EditAccountForm .form-row-last {
  width: 48% !important;
  display: inline-block !important;
}

body.woocommerce-account .woocommerce-EditAccountForm .form-row-first {
  float: left !important;
}

body.woocommerce-account .woocommerce-EditAccountForm .form-row-last {
  float: right !important;
}

/* Save button */
body.woocommerce-account .woocommerce-EditAccountForm .woocommerce-Button {
  margin-top: 8px !important;
}

/* ==========================================================================
   My Account — Downloads Tab
   ========================================================================== */

/* No downloads message */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message--info {
  text-align: center !important;
  padding: 48px 24px !important;
  background: var(--pdf-bg-soft) !important;
  border-radius: 16px !important;
  border: none !important;
  font-size: 1rem !important;
  color: var(--pdf-text-secondary) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message--info .woocommerce-Button {
  display: inline-block !important;
  margin-top: 16px !important;
}

/* Responsive — Dashboard */
@media (max-width: 768px) {
  .pdf-account-welcome {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .pdf-account-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pdf-account-stat {
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 20px;
  }

  .pdf-account-links {
    grid-template-columns: 1fr;
  }

  body.woocommerce-account .woocommerce-Addresses,
  body.woocommerce-account .col2-set,
  body.woocommerce-account .col2-set.addresses,
  body.woocommerce-account .u-columns {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
  body.woocommerce-account .woocommerce-EditAccountForm .form-row-last {
    width: 100% !important;
    float: none !important;
  }
}

/* ==========================================================================
   404 — Page Not Found
   ========================================================================== */

body.error404 .site-content > .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

body.error404 #primary {
  margin: 0 !important;
  padding: 0 !important;
}

body.error404 .pdf-site-content {
  min-height: 80vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* Hide Astra's default title */
body.error404 .entry-header {
  display: none !important;
}

.pdf-404 {
  padding: 80px 0 120px !important;
  text-align: center;
}

.pdf-404__content {
  max-width: 520px;
  margin: 0 auto;
}

.pdf-404__code {
  display: block;
  font-size: 7rem;
  font-weight: 800;
  font-family: var(--pdf-font-heading);
  background: var(--pdf-gradient-pink-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.pdf-404__heading {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--pdf-text) !important;
  margin-bottom: 12px !important;
}

.pdf-404__message {
  font-size: 1rem;
  color: var(--pdf-text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  text-wrap: pretty;
}

.pdf-404__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.pdf-404__links {
  padding-top: 32px;
  border-top: 1px solid var(--pdf-border-light);
}

.pdf-404__links p {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  margin-bottom: 12px;
}

.pdf-404__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.pdf-404__links ul li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pdf-purple);
  text-decoration: none;
}

.pdf-404__links ul li a:hover {
  color: var(--pdf-purple-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .pdf-404 { padding: 80px 0; }
  .pdf-404__code { font-size: 5rem; }
  .pdf-404__heading { font-size: 1.375rem !important; }
  .pdf-404__actions { flex-direction: column; }
  .pdf-404__links ul { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ==========================================================================
   Farms Page
   ========================================================================== */

/* ── Hero ── */
.pdf-farms-hero {
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--pdf-purple-dark);
  background-size: cover;
  background-position: center;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.pdf-farms-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(60, 20, 90, 0.75) 0%, rgba(60, 20, 90, 0.55) 100%);
}

.pdf-farms-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.pdf-farms-hero h1 {
  color: var(--pdf-white);
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.pdf-farms-hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3125rem;
  margin: 0 0 32px;
  font-weight: 400;
}

.pdf-farms-hero__arrow {
  color: rgba(255, 255, 255, 0.5);
  animation: pdf-farms-bounce 2s infinite;
}

@keyframes pdf-farms-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Trust Stats Bar ── */
.pdf-farms-stats {
  background: var(--pdf-bg-soft);
  padding: 40px 0;
  border-bottom: 1px solid var(--pdf-border-light);
}

.pdf-farms-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.pdf-farms-stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdf-farms-stats__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pdf-purple);
  line-height: 1.2;
}

.pdf-farms-stats__label {
  font-size: 0.875rem;
  color: var(--pdf-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ── Story (centred) ── */
.pdf-farms-story {
  padding: 60px 0;
}

.pdf-farms-story .pdf-container {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.pdf-farms-story__image {
  flex: 0 0 360px;
  border-radius: 12px;
  overflow: hidden;
}

.pdf-farms-story__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.pdf-farms-story__content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.pdf-farms-story__image + .pdf-farms-story__content {
  text-align: left;
  margin: 0;
  flex: 1;
}

.pdf-farms-story__content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--pdf-text);
}

.pdf-farms-story__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--pdf-text-secondary);
}

.pdf-farms-story__body p {
  margin-bottom: 16px;
}

.pdf-farms-story__body p:last-child {
  margin-bottom: 0;
}

/* ── Sourcing Regions ── */

/* ── Standards (2x3 icon cards) ── */
.pdf-farms-standards {
  padding: 60px 0;
}

.pdf-farms-standards__heading {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 40px;
  color: var(--pdf-text);
}

.pdf-farms-standards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pdf-farms-standards__card {
  background: var(--pdf-white);
  border: 1px solid var(--pdf-border-light);
  border-radius: var(--pdf-radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pdf-farms-standards__card:hover {
  box-shadow: 0 6px 24px rgba(123, 63, 160, 0.1);
  transform: translateY(-2px);
}

.pdf-farms-standards__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pdf-bg-soft);
  margin-bottom: 16px;
}

.pdf-farms-standards__card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--pdf-text);
}

.pdf-farms-standards__card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--pdf-text-secondary);
  margin: 0;
}

/* ── Farm Gallery (featured layout) ── */
.pdf-farms-gallery {
  padding: 60px 0;
  background: var(--pdf-bg-soft);
}

.pdf-farms-gallery__heading {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 40px;
  color: var(--pdf-text);
}

.pdf-farms-gallery__featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pdf-farms-gallery__large img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: var(--pdf-radius-lg);
}

.pdf-farms-gallery__large {
  position: relative;
}

.pdf-farms-gallery__small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pdf-farms-gallery__small img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: var(--pdf-radius-lg);
}

.pdf-farms-gallery__small {
  position: relative;
}

.pdf-farms-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--pdf-white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  border-radius: 0 0 var(--pdf-radius-lg) var(--pdf-radius-lg);
  margin: 0;
}

/* ── CTA ── */
.pdf-farms-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--pdf-purple) 0%, var(--pdf-purple-dark) 100%);
  text-align: center;
}

.pdf-farms-cta__content h2 {
  color: var(--pdf-white);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.pdf-farms-cta__content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.pdf-farms-cta .pdf-btn-primary {
  background-color: var(--pdf-white) !important;
  color: var(--pdf-purple) !important;
  border-color: var(--pdf-white) !important;
  font-weight: 700;
  padding: 14px 32px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pdf-farms-cta .pdf-btn-primary:hover {
  background-color: transparent !important;
  color: var(--pdf-white) !important;
  border-color: var(--pdf-white) !important;
}

/* ── Farms responsive ── */
@media (max-width: 768px) {
  .pdf-farms-hero {
    padding: 100px 0 70px;
    min-height: 320px;
  }
  .pdf-farms-hero h1 { font-size: 1.75rem; }
  .pdf-farms-hero__subtitle { font-size: 1rem; }

  .pdf-farms-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .pdf-farms-stats__number { font-size: 1.5rem; }

  .pdf-farms-story { padding: 40px 0; }
  .pdf-farms-story .pdf-container { flex-direction: column; gap: 24px; }
  .pdf-farms-story__image { flex: none; width: 100%; }
  .pdf-farms-story__image + .pdf-farms-story__content { text-align: center; }

  .pdf-farms-standards__grid {
    grid-template-columns: 1fr 1fr;
  }

  .pdf-farms-gallery__featured {
    grid-template-columns: 1fr;
  }
  .pdf-farms-gallery__large img { min-height: 280px; }

  .pdf-farms-cta__content h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .pdf-farms-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .pdf-farms-standards__grid { grid-template-columns: 1fr; }
  .pdf-farms-gallery__small-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SUBSCRIBE & SAVE PAGE
   ============================================================ */

/* ── Shared eyebrow label ── */
.pdf-subscribe-eyebrow {
  display: inline-block;
  font-family: var(--pdf-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pdf-purple);
  margin-bottom: 14px;
}

/* ── Hero: vibrant purple gradient, centered, supports bg image ── */
.pdf-subscribe-hero {
  position: relative;
  background: linear-gradient(135deg, var(--pdf-purple-dark) 0%, var(--pdf-purple) 50%, var(--pdf-lavender) 100%);
  background-size: cover;
  background-position: center;
  padding: 110px 0 90px;
  overflow: hidden;
}

.pdf-subscribe-hero__shape {
  position: absolute;
  bottom: -60px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

/* Overlay ensures text stays readable over any background image */
.pdf-subscribe-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,10,50,0.72) 0%, rgba(92,45,130,0.85) 50%, rgba(28,10,50,0.90) 100%);
  z-index: 0;
}

.pdf-subscribe-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.pdf-subscribe-hero .pdf-subscribe-eyebrow {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.12);
  padding: 4px 12px;
  border-radius: var(--pdf-radius-pill);
  letter-spacing: 0.1em;
}

.pdf-subscribe-hero__content h1 {
  color: var(--pdf-text-on-dark);
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.pdf-subscribe-hero__desc {
  color: rgba(255,255,255,0.84);
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 560px;
}

/* ── Longevity Bundles: clean white ── */
.pdf-subscribe-bundles {
  padding: var(--pdf-section-padding);
  background: var(--pdf-bg);
}

.pdf-subscribe-bundles__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.pdf-subscribe-bundles__text .pdf-subscribe-eyebrow {
  color: var(--pdf-purple);
}

.pdf-subscribe-bundles__text h2 {
  margin: 4px 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.pdf-subscribe-bundles__text p {
  color: var(--pdf-text-secondary);
  line-height: 1.75;
  margin: 0;
}

/* Goal cards: 2-col grid on the right */
.pdf-subscribe-goals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pdf-subscribe-goal-card {
  background: var(--pdf-bg-soft);
  border: 1.5px solid var(--pdf-border-light);
  border-radius: var(--pdf-radius-md);
  padding: 20px;
}

.pdf-subscribe-goal-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--pdf-radius-sm);
  background: var(--pdf-bg-pink);
  color: var(--pdf-purple);
  margin-bottom: 12px;
}

.pdf-subscribe-goal-card h3 {
  font-family: var(--pdf-font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pdf-text);
  margin: 0 0 6px;
}

.pdf-subscribe-goal-card p {
  font-size: 0.82rem;
  color: var(--pdf-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Fifth card spans full width */
.pdf-subscribe-goal-card:last-child {
  grid-column: 1 / -1;
}

/* ── Quarterly Subscriptions: soft lavender/pink, NOT dark ── */
.pdf-subscribe-quarterly {
  padding: var(--pdf-section-padding);
  background: var(--pdf-gradient-grey-pink);
}

.pdf-subscribe-quarterly__header {
  max-width: 640px;
  margin-bottom: 56px;
}

.pdf-subscribe-quarterly__header h2 {
  margin: 4px 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--pdf-text);
}

.pdf-subscribe-quarterly__header p {
  color: var(--pdf-text);
  line-height: 1.75;
  margin: 0;
}

/* Benefits 5-card grid */
.pdf-subscribe-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pdf-subscribe-benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--pdf-white);
  border: 1.5px solid var(--pdf-border-light);
  border-radius: var(--pdf-radius-md);
  padding: 24px;
}

.pdf-subscribe-benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--pdf-radius-sm);
  background: linear-gradient(135deg, var(--pdf-bg-pink) 0%, #EDD9F5 100%);
  color: var(--pdf-purple);
  flex-shrink: 0;
}

.pdf-subscribe-benefit h3 {
  font-family: var(--pdf-font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pdf-text);
  margin: 0 0 6px;
}

.pdf-subscribe-benefit p {
  font-size: 0.82rem;
  color: var(--pdf-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Remove Astra's injected bottom gap before footer */
body.page-template-page-subscribe #content,
body.page-template-page-subscribe .pdf-site-content,
body.page-template-page-subscribe .entry-content,
body.page-template-page-subscribe .ast-container {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.page-template-page-subscribe .pdf-subscribe {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.page-template-page-subscribe .pdf-subscribe-quarterly {
  margin-bottom: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .pdf-subscribe-bundles__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pdf-subscribe-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pdf-subscribe-hero {
    padding: 72px 0 60px;
  }

  .pdf-subscribe-goals-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pdf-subscribe-benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pdf-subscribe-goals-grid {
    grid-template-columns: 1fr;
  }

  .pdf-subscribe-goal-card:last-child {
    grid-column: auto;
  }
}
