/* ============================================================
   Wellness Premium — WooCommerce overrides.

   Goal: every WC-driven page (single product, cart, checkout,
   my-account) inherits the editorial design system. We override
   WC's defaults with low-specificity rules scoped to .has-woo /
   .is-themed-product so they cannot leak onto Elementor pages
   or the homepage.

   Loaded after assets/main.css, so plain-class selectors win.
============================================================ */

/* ----------------------------------------------------------------
   1. Themed product (course / book / workshop / generic) —
   neutralise legacy single-product wrappers. Each layout is built
   from bespoke template parts, but WC can still inject `.product`,
   default summary/images, breadcrumbs and notices on edge states
   (out-of-stock, error). Hide them so we never render two product
   headers on top of each other.
---------------------------------------------------------------- */
.is-themed-product .woocommerce-notices-wrapper { display: none; }
.is-themed-product .product > .summary,
.is-themed-product .product > .images { display: none; }

/* Themed notices band, sat under the fixed header. */
.wellness-woo-notices {
  background: #F1F4F1;                 /* sage-50 */
  border-bottom: 1px solid rgba(72,107,87,0.12);
  color: #2C4034;                      /* sage-700 */
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
}
.wellness-woo-notices .woocommerce-message,
.wellness-woo-notices .woocommerce-info,
.wellness-woo-notices .woocommerce-error {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.wellness-woo-notices .woocommerce-message::before,
.wellness-woo-notices .woocommerce-info::before,
.wellness-woo-notices .woocommerce-error::before { display: none; }
.wellness-woo-notices .button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #C97B63;                /* terracotta */
  color: #fff;
  padding: 0.5rem 1.25rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-left: auto;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.wellness-woo-notices .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px rgba(201,123,99,.12);
}

/* ----------------------------------------------------------------
   2. Price markup — WC wraps the price in
      <span class="woocommerce-Price-amount amount">
      and uses <ins>/<del> for sale prices. Inherit the parent
      font so our serif/sage display is preserved verbatim.
---------------------------------------------------------------- */
.woocommerce-Price-amount,
.woocommerce-Price-amount.amount,
.woocommerce-Price-currencySymbol {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  letter-spacing: inherit;
}
ins .woocommerce-Price-amount,
ins.woocommerce-Price-amount { text-decoration: none; }
del,
del .woocommerce-Price-amount {
  text-decoration: line-through;
  opacity: 0.45;
  font-size: 0.55em;
  font-weight: 400;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.price ins { background: transparent; text-decoration: none; }

/* ----------------------------------------------------------------
   3. Mobile sticky CTA — the course hero ships its own
      price-aware sticky bar. Hide the generic one from header.php
      so they cannot stack on top of each other.
---------------------------------------------------------------- */
/* Every single-product template ships its own price-aware sticky CTA. */
.has-woo.single-product #sticky-mobile-cta,
.is-themed-product #sticky-mobile-cta { display: none !important; }

/* ----------------------------------------------------------------
   4. Cart / Checkout / My-Account — keep WC functional but
      restyled with the theme's tokens. Light-touch only; the rest
      we leave to WC's own (re-enqueued) layout sheets.
---------------------------------------------------------------- */
.has-woo.woocommerce-cart .woocommerce,
.has-woo.woocommerce-checkout .woocommerce,
.has-woo.woocommerce-account .woocommerce {
  max-width: 1200px;
  margin-inline: auto;
  padding: 2.5rem 1.5rem 5rem;
}
@media (min-width: 768px)  { .has-woo.woocommerce-cart .woocommerce,
                              .has-woo.woocommerce-checkout .woocommerce,
                              .has-woo.woocommerce-account .woocommerce { padding-inline: 2.5rem; } }
@media (min-width: 1024px) { .has-woo.woocommerce-cart .woocommerce,
                              .has-woo.woocommerce-checkout .woocommerce,
                              .has-woo.woocommerce-account .woocommerce { padding-inline: 3rem; padding-top: 5rem; } }

.is-woo-page h1, .is-woo-page h2, .is-woo-page h3, .is-woo-page h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  color: #2B2B2B;
}

.is-woo-page table.shop_table,
.is-woo-page .cart_totals table { border-collapse: collapse; width: 100%; background: #fff;
  border: 1px solid #EADBBE; border-radius: 16px; overflow: hidden; }
.is-woo-page table.shop_table th,
.is-woo-page table.shop_table td { padding: 1rem 1.25rem; border-bottom: 1px solid #EADBBE; font-size: 15px; }
.is-woo-page table.shop_table tr:last-child td { border-bottom: 0; }
.is-woo-page table.shop_table th { background: #FAF8F3; font-weight: 600; color: #2B2B2B; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }

/* WC default buttons → adopt theme btn-primary look. */
.is-woo-page .woocommerce #respond input#submit,
.is-woo-page .woocommerce a.button,
.is-woo-page .woocommerce button.button,
.is-woo-page .woocommerce input.button,
.is-woo-page .woocommerce a.button.alt,
.is-woo-page .woocommerce button.button.alt,
.is-woo-page .woocommerce input.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #C97B63;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.875rem 1.75rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.is-woo-page .woocommerce #respond input#submit:hover,
.is-woo-page .woocommerce a.button:hover,
.is-woo-page .woocommerce button.button:hover,
.is-woo-page .woocommerce input.button:hover,
.is-woo-page .woocommerce a.button.alt:hover,
.is-woo-page .woocommerce button.button.alt:hover,
.is-woo-page .woocommerce input.button.alt:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(201,123,99,.12);
  background: #C97B63;
}

.is-woo-page .woocommerce form .form-row input.input-text,
.is-woo-page .woocommerce form .form-row textarea,
.is-woo-page .woocommerce form .form-row select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #EADBBE;
  background: #fff;
  padding: 0.875rem 1.25rem;
  font-size: 16px;
  line-height: 1.5;
  color: #2B2B2B;
  transition: border-color .3s, box-shadow .3s;
}
.is-woo-page .woocommerce form .form-row input.input-text:focus,
.is-woo-page .woocommerce form .form-row textarea:focus,
.is-woo-page .woocommerce form .form-row select:focus {
  border-color: #486B57;
  box-shadow: 0 0 0 6px rgba(72,107,87,.12);
  outline: none;
}

/* My-account navigation. */
.is-woo-page .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.is-woo-page .woocommerce-MyAccount-navigation li { border-bottom: 1px solid #EADBBE; }
.is-woo-page .woocommerce-MyAccount-navigation li a { display: block; padding: 0.875rem 0; color: rgba(43,43,43,.75); font-size: 15px; transition: color .3s; }
.is-woo-page .woocommerce-MyAccount-navigation li.is-active a,
.is-woo-page .woocommerce-MyAccount-navigation li a:hover { color: #486B57; }

/* Themed breadcrumb when the page actually renders it. */
.is-woo-page .woocommerce-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43,43,43,.55);
}
@media (min-width: 1024px) { .is-woo-page .woocommerce-breadcrumb { padding-inline: 3rem; } }
.is-woo-page .woocommerce-breadcrumb a { color: inherit; transition: color .3s; }
.is-woo-page .woocommerce-breadcrumb a:hover { color: #486B57; }

/* Quantity input. */
.is-woo-page .woocommerce .quantity .qty {
  width: 4rem;
  text-align: center;
  border-radius: 12px;
  border: 1px solid #EADBBE;
  padding: 0.5rem;
  font-family: Inter, sans-serif;
}

/* Star ratings — align with theme warning amber. */
.is-woo-page .woocommerce .star-rating { color: #D9A441; }

/* Mini-cart / dropdown. */
.is-woo-page .widget_shopping_cart_content .buttons a { display: inline-flex; }

/* ----------------------------------------------------------------
   5. Themed price wrapper. Use .wellness-price on any element that
   contains $product->get_price_html(): it normalises WC's <ins>,
   <del>, currency symbol and amount markup into a single
   typographic rhythm — large sage current price, quiet strikethrough
   regular price beside it.
---------------------------------------------------------------- */
.wellness-price > * { display: inline-flex; align-items: baseline; }
.wellness-price ins { background: transparent; text-decoration: none; }
.wellness-price del {
  font-size: 0.42em;
  font-weight: 400;
  opacity: 0.45;
  text-decoration: line-through;
  color: currentColor;
  letter-spacing: 0;
  order: 2;
  margin-left: 0.5rem;
}
.wellness-price .woocommerce-Price-currencySymbol {
  font-size: 0.7em;
  font-weight: 400;
  margin-right: 0.1em;
  opacity: 0.85;
}

/* ----------------------------------------------------------------
   6. Header parity on WC pages.
   The home/hero pages have a near-ivory band immediately under the
   fixed glass header, so the unscrolled state reads correctly. Cart,
   checkout and my-account start on white WC tables — the unscrolled
   transparent header floats and looks "detached". Force the glassy
   state from the first frame on those routes.
---------------------------------------------------------------- */
.has-woo.woocommerce-cart #site-header,
.has-woo.woocommerce-checkout #site-header,
.has-woo.woocommerce-account #site-header {
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(234,219,190,0.6);
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

/* Add bottom padding under cart/checkout/account so the mobile sticky
   CTA (when present elsewhere) and the footer don't crowd the last row. */
.has-woo.woocommerce-cart main,
.has-woo.woocommerce-checkout main,
.has-woo.woocommerce-account main {
  padding-bottom: 3rem;
}

/* ----------------------------------------------------------------
   7. Course page — ensure the hero's sticky CTA never overlaps the
   purchase section bottom CTAs on small screens. Pad the page bottom
   so the last visible content clears the 72px sticky bar.
---------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  .is-themed-product main { padding-bottom: 5.5rem; }
}

/* ----------------------------------------------------------------
   8. Cart / checkout layout columns — give the order summary card
   the same surface treatment as the purchase card on the course page.
---------------------------------------------------------------- */
.is-woo-page .woocommerce-checkout #order_review,
.is-woo-page .woocommerce-cart .cart_totals,
.is-woo-page .woocommerce-cart-form__cart-item,
.is-woo-page .woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid #EADBBE;
  border-radius: 24px;
  padding: 1.75rem;
}
.is-woo-page .woocommerce-checkout #order_review { box-shadow: 0 4px 20px rgba(0,0,0,.04); }

.is-woo-page .woocommerce-checkout .col2-set,
.is-woo-page .woocommerce-cart .woocommerce > form {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .is-woo-page .woocommerce-checkout form.checkout.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

/* ============================================================
   9. TOAST — branded add-to-cart slide-in.
============================================================ */
#wellness-toast-host { position: fixed; inset: auto 0 0 0; z-index: 70; display: flex; justify-content: center;
  padding: 1rem; pointer-events: none; }
@media (min-width: 768px) {
  #wellness-toast-host { inset: auto 0 0 auto; justify-content: flex-end; padding: 1.5rem; }
}
.wellness-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-areas: 'thumb body close' 'thumb actions actions';
  gap: 0.5rem 1rem;
  align-items: center;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid rgba(234,219,190,0.7);
  border-radius: 20px;
  padding: 1rem 1rem 1rem 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .42s cubic-bezier(.22,1,.36,1), opacity .32s;
}
.wellness-toast.is-visible { transform: translateY(0); opacity: 1; }
.wellness-toast__thumb {
  grid-area: thumb;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: #FAF8F3 center/cover no-repeat;
  border: 1px solid rgba(234,219,190,0.7);
}
.wellness-toast__body { grid-area: body; min-width: 0; }
.wellness-toast__eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  font-family: Inter, sans-serif; font-weight: 600; color: #486B57; margin: 0;
}
.wellness-toast__title {
  margin: .25rem 0 0; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px; line-height: 1.3; color: #2B2B2B;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.wellness-toast__actions { grid-area: actions; display: flex; gap: 0.5rem; align-items: center; }
.wellness-toast__btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Inter, sans-serif; font-size: 13px; font-weight: 500;
  padding: 0.55rem 1rem; border-radius: 999px; transition: all .3s;
  text-decoration: none;
}
.wellness-toast__btn--ghost {
  color: #486B57; background: rgba(72,107,87,0.08);
}
.wellness-toast__btn--ghost:hover { background: rgba(72,107,87,0.15); }
.wellness-toast__btn--primary {
  color: #fff; background: #C97B63;
}
.wellness-toast__btn--primary:hover {
  background: #B26945; box-shadow: 0 0 0 5px rgba(201,123,99,.18);
}
.wellness-toast__close {
  grid-area: close;
  width: 28px; height: 28px; border-radius: 999px; border: 0;
  background: transparent; color: #2B2B2B; opacity: .45; cursor: pointer;
  font-size: 20px; line-height: 1;
}
.wellness-toast__close:hover { opacity: 1; background: rgba(0,0,0,.05); }

/* Hide ALL stock WC "added to cart" success messages globally —
   we always show our toast instead. */
.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message { display: none !important; }

/* Keep error / info notices (those still show via our notice templates). */

/* Loading shimmer on intercepted [data-wellness-add] links. */
[data-wellness-add].is-loading { opacity: 0.7; pointer-events: none; position: relative; }
[data-wellness-add].is-loading::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4), transparent 70%);
  animation: wellness-shimmer 1.1s linear infinite;
  border-radius: inherit; pointer-events: none;
}
@keyframes wellness-shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}

/* ============================================================
  10. BRANDED INLINE NOTICES (success/error/info templates).
============================================================ */
.wellness-notice {
  display: flex; gap: 0.875rem; align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  font-family: Inter, sans-serif;
  font-size: 15px; line-height: 1.5;
  margin: 0 0 1rem;
}
.wellness-notice__icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}
.wellness-notice__body { margin: 0; padding: 0; list-style: none; flex: 1; }
.wellness-notice__body li { list-style: none; }
.wellness-notice__body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.wellness-notice--success { background: #F1F4F1; color: #2C4034; }
.wellness-notice--success .wellness-notice__icon { background: #486B57; color: #fff; }
.wellness-notice--error   { background: #FBEEEB; color: #883519; }
.wellness-notice--error   .wellness-notice__icon { background: #C25232; color: #fff; }
.wellness-notice--info    { background: #FAF1ED; color: #5D3D33; }
.wellness-notice--info    .wellness-notice__icon { background: #C97B63; color: #fff; }

/* ============================================================
  11. CART page premium layout.
============================================================ */
.wellness-cart-grid {
  display: grid; gap: 2.5rem;
}
@media (min-width: 1024px) {
  .wellness-cart-grid { grid-template-columns: 1.55fr 1fr; align-items: start; gap: 3.5rem; }
}
.wellness-cart-list {
  background: #fff;
  border: 1px solid #EADBBE;
  border-radius: 24px;
  padding: 0.5rem 1rem;
}
.wellness-cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  grid-template-areas: 'thumb body qty subtotal actions';
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid #EADBBE;
}
.wellness-cart-item:last-child { border-bottom: 0; }
@media (max-width: 640px) {
  .wellness-cart-item {
    grid-template-columns: 80px 1fr auto;
    grid-template-areas:
      'thumb body actions'
      'thumb qty  subtotal';
  }
}
.wellness-cart-item__thumb { grid-area: thumb; }
.wellness-cart-item__thumb a, .wellness-cart-item__thumb img {
  display: block; width: 80px; height: 80px; object-fit: cover;
  border-radius: 14px; background: #FAF8F3;
}
.wellness-cart-item__body { grid-area: body; min-width: 0; }
.wellness-cart-item__kind {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: #486B57; font-weight: 600; margin: 0 0 0.25rem;
}
.wellness-cart-item__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px; line-height: 1.25; color: #2B2B2B; margin: 0;
}
.wellness-cart-item__title a { color: inherit; transition: color .3s; }
.wellness-cart-item__title a:hover { color: #486B57; }
.wellness-cart-item__price {
  margin: 0.35rem 0 0; font-size: 13px; color: rgba(43,43,43,.55);
}
.wellness-cart-item__qty { grid-area: qty; }
.wellness-cart-item__qty .quantity { display: inline-flex; }
.wellness-cart-item__qty .quantity .qty {
  width: 56px; height: 40px; padding: 0; text-align: center;
  border: 1px solid #EADBBE; border-radius: 12px; background: #FAF8F3;
  font-family: Inter, sans-serif; font-size: 15px;
}
.wellness-cart-item__subtotal {
  grid-area: subtotal;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; color: #486B57; min-width: 60px; text-align: right;
}
.wellness-cart-item__actions { grid-area: actions; }
.wellness-cart-item__remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px;
  color: rgba(43,43,43,.45); text-decoration: none; font-size: 22px; line-height: 1;
  transition: all .3s;
}
.wellness-cart-item__remove:hover { background: #FBEEEB; color: #C25232; }

.wellness-cart-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  margin-top: 1.5rem;
}
.wellness-cart-actions .coupon { display: flex; gap: 0.5rem; flex: 1; min-width: 280px; }
.wellness-cart-actions .coupon input { flex: 1; }
.wellness-cart-actions .coupon .btn-secondary { padding: 0.65rem 1.25rem; font-size: 14px; }

.wellness-cart-grid__summary { position: sticky; top: 110px; }
.wellness-totals {
  background: #fff; border: 1px solid #EADBBE; border-radius: 24px; padding: 1.75rem;
}
.wellness-totals__title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; margin: 0 0 1rem; color: #2B2B2B; }
.wellness-totals__rows { margin: 0; padding: 0; }
.wellness-totals__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid #EADBBE; margin: 0;
}
.wellness-totals__row:last-of-type { border-bottom: 0; }
.wellness-totals__row dt { font-size: 14px; color: rgba(43,43,43,.7); margin: 0; }
.wellness-totals__row dd { font-size: 15px; color: #2B2B2B; font-weight: 500; margin: 0; text-align: right; }
.wellness-totals__row--total {
  border-top: 1px solid #2B2B2B33; padding-top: 1rem; margin-top: 0.5rem;
}
.wellness-totals__row--total dt { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; color: #2B2B2B; }
.wellness-totals__row--total dd { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; color: #486B57; }
.wc-proceed-to-checkout { margin-top: 1.5rem; }

.wellness-trust-row {
  display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center;
  margin-top: 1.5rem; font-size: 12px; color: rgba(43,43,43,.55);
}
.wellness-trust-row span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ============================================================
  12. CHECKOUT page premium layout.
============================================================ */
.wellness-checkout__steps {
  display: flex; gap: 0; align-items: center; margin: 1.5rem 0 0; padding: 0; list-style: none;
  font-size: 13px; color: rgba(43,43,43,.55);
}
.wellness-checkout__steps li { display: flex; align-items: center; gap: 0.5rem; }
.wellness-checkout__steps li + li::before {
  content: ''; width: 36px; height: 1px; background: #EADBBE; margin: 0 0.75rem;
}
.wellness-checkout__steps li span {
  width: 26px; height: 26px; border-radius: 999px; background: #FAF8F3; border: 1px solid #EADBBE;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.wellness-checkout__steps .is-done span { background: #486B57; color: #fff; border-color: #486B57; }
.wellness-checkout__steps .is-active { color: #2B2B2B; font-weight: 600; }
.wellness-checkout__steps .is-active span { background: #C97B63; color: #fff; border-color: #C97B63; }

.wellness-checkout__grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .wellness-checkout__grid { grid-template-columns: 1.4fr 1fr; align-items: start; gap: 3rem; }
}
.wellness-checkout__card {
  background: #fff; border: 1px solid #EADBBE; border-radius: 24px;
  padding: 1.75rem; margin-bottom: 1.5rem;
}
.wellness-checkout__card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; margin: 0 0 1.25rem; color: #2B2B2B;
}
.wellness-checkout__aside { position: sticky; top: 110px; }
.wellness-checkout__summary table.shop_table {
  width: 100%; border: 0; background: transparent; border-radius: 0; overflow: visible;
}
.wellness-checkout__summary table.shop_table th,
.wellness-checkout__summary table.shop_table td {
  border-bottom: 1px solid #EADBBE; padding: 0.75rem 0; background: transparent;
}
.wellness-checkout__summary table.shop_table tfoot th { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; }
.wellness-checkout__summary table.shop_table tfoot .order-total td { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; color: #486B57; }

#payment ul.payment_methods {
  background: transparent; border: 0; padding: 0; margin: 0 0 1rem;
}
#payment ul.payment_methods li {
  padding: 1rem; border: 1px solid #EADBBE; border-radius: 16px; margin-bottom: 0.75rem; background: #FAF8F3;
  list-style: none;
}
#payment div.payment_box {
  background: #fff; border-radius: 12px; padding: 1rem; margin-top: 0.75rem;
  border: 1px solid #EADBBE; color: #2B2B2B;
}
#payment div.payment_box::before { display: none; }
#place_order { width: 100%; margin-top: 1rem; }

/* ============================================================
  13. MY-ACCOUNT layout.
============================================================ */
.wellness-account__grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .wellness-account__grid { grid-template-columns: 240px 1fr; gap: 3.5rem; align-items: start; }
}
.wellness-account__sidebar { position: sticky; top: 110px; }
.wellness-account-nav ul {
  list-style: none; padding: 0; margin: 0;
  background: #fff; border: 1px solid #EADBBE; border-radius: 20px; overflow: hidden;
}
.wellness-account-nav li { border-bottom: 1px solid #EADBBE; }
.wellness-account-nav li:last-child { border-bottom: 0; }
.wellness-account-nav li a {
  display: block; padding: 0.9rem 1.25rem; color: rgba(43,43,43,.7); font-size: 14px;
  transition: all .3s;
}
.wellness-account-nav li a:hover { background: #FAF8F3; color: #486B57; }
.wellness-account-nav li.is-active a { background: #486B57; color: #fff; font-weight: 500; }

.wellness-account-dashboard span.eyebrow + h1 .text-sage { color: #486B57; }

/* ============================================================
  14. GENERIC PRODUCT GALLERY + LIGHTBOX.
============================================================ */
.wellness-gallery__stage img { transition: opacity .3s; }

.wellness-lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20,18,15,0.86);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; transition: opacity .3s;
}
.wellness-lightbox.is-open { opacity: 1; }
.wellness-lightbox img {
  max-width: min(96vw, 1100px); max-height: 92vh; object-fit: contain;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.wellness-lightbox__close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.15); color: #fff; cursor: pointer;
  font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.wellness-lightbox__close:hover { background: rgba(255,255,255,.28); }

/* ============================================================
  15. 3D BOOK MOUNT for single-book hero.
============================================================ */
.wellness-book-stage {
  perspective: 2200px;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center;
}
.wellness-book {
  position: relative;
  width: 78%;
  aspect-ratio: 2/3;
  transform: rotateY(-22deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(.22,1,.36,1);
}
.wellness-book-stage:hover .wellness-book { transform: rotateY(-10deg) rotateX(2deg) translateY(-6px); }
.wellness-book__cover {
  position: absolute; inset: 0;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,.25), inset -3px 0 6px rgba(0,0,0,.15);
  background: #fff;
  transform: translateZ(20px);
}
.wellness-book__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wellness-book__pages {
  position: absolute; top: 1.5%; bottom: 1.5%; right: -18px; width: 20px;
  background: linear-gradient(to bottom, #fff 0%, #f1eadd 25%, #fff 50%, #f1eadd 75%, #fff 100%);
  background-size: 2px 100%;
  border-radius: 0 4px 4px 0;
  transform: translateZ(0px);
  box-shadow: 1px 0 3px rgba(0,0,0,.1);
}
.wellness-book__spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 20px;
  background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0));
  transform: translateZ(20px) translateX(-1px);
  border-radius: 4px 0 0 4px;
  pointer-events: none;
}
.wellness-book__shadow {
  position: absolute; left: 4%; right: 4%; bottom: -18px; height: 30px;
  background: radial-gradient(closest-side, rgba(0,0,0,.35), rgba(0,0,0,0));
  filter: blur(6px);
}

/* Mini book card on related-books row. */
.wellness-book-mini {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #FAF8F3 0%, #F1EADD 100%);
  border-radius: 16px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.wellness-book-mini img {
  width: 70%; height: auto; aspect-ratio: 2/3; object-fit: cover;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
  transform: rotateY(-12deg);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.group:hover .wellness-book-mini { box-shadow: 0 14px 32px rgba(0,0,0,.1); }
.group:hover .wellness-book-mini img { transform: rotateY(-4deg) translateY(-4px); }

/* Book preview drop-cap effect. */
.wellness-book-preview .prose p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.5em; line-height: 0.85;
  float: left; padding: 0.1em 0.15em 0 0;
  color: #486B57; font-weight: 500;
}

/* ============================================================
  16. WORKSHOP timeline accents — handled inline in template.
  17. CART/ACCOUNT button alignment fixes.
============================================================ */
.is-woo-page .button.alt[disabled] { opacity: .6; }
.is-woo-page .woocommerce-form-coupon .button { padding: 0.75rem 1.5rem; font-size: 14px; }
.is-woo-page .woocommerce-error,
.is-woo-page .woocommerce-info,
.is-woo-page .woocommerce-message {
  /* These get re-rendered by our themed notice templates. */
  list-style: none; padding: 0;
}

/* Style WC's native add-to-cart form inside .wellness-add-form
   (generic single product hero). */
.wellness-add-form .quantity { display: inline-flex; vertical-align: middle; margin-right: 1rem; }
.wellness-add-form .quantity .qty {
  width: 64px; height: 48px; padding: 0; text-align: center;
  border: 1px solid #EADBBE; border-radius: 999px; background: #FAF8F3;
  font-family: Inter, sans-serif; font-size: 16px;
}
.wellness-add-form button.single_add_to_cart_button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #C97B63; color: #fff; border: 0; border-radius: 999px;
  padding: 0.875rem 1.75rem; font-family: Inter, sans-serif; font-size: 16px;
  font-weight: 500; letter-spacing: 0.02em; line-height: 1.5;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
  cursor: pointer;
}
.wellness-add-form button.single_add_to_cart_button:hover {
  transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(201,123,99,.12);
}

/* Variations table. */
.wellness-add-form table.variations { border: 0; }
.wellness-add-form table.variations th, .wellness-add-form table.variations td {
  padding: 0.5rem 0.5rem 0.5rem 0; border: 0; background: transparent;
}
.wellness-add-form table.variations select {
  border: 1px solid #EADBBE; border-radius: 12px; padding: 0.5rem 0.875rem;
  background: #fff; font-family: Inter, sans-serif; font-size: 14px;
}
.wellness-add-form .reset_variations { font-size: 12px; color: rgba(43,43,43,.55); }

