/**
 * Tusc Herbals — Components
 * Header, footer, product cards, homepage sections, cart drawer.
 */

/* ========================================================================
   1. ANNOUNCEMENT BAR
   ======================================================================== */
.th-announce {
  background: var(--th-purple-dark);
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  z-index: 1001;
}
.th-announce[hidden] { display: none !important; }
.th-announce__inner {
  max-width: var(--th-container-wide);
  margin-inline: auto;
  padding: 0 24px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.th-announce__msg {
  display: none;
  align-items: center;
  gap: 8px;
}
.th-announce__msg.is-active { display: flex; animation: thFadeIn 400ms var(--th-ease); }
@keyframes thFadeIn { from { opacity: 0 } to { opacity: 1 } }

/* ========================================================================
   2. HEADER UTILITIES (icons injected into Astra header)
   ======================================================================== */
.th-utils { display: flex; align-items: center; gap: 4px; }
.th-util {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  color: var(--th-text);
  cursor: pointer;
  border-radius: 50%;
  text-decoration: none;
  transition: all 180ms ease !important;
}
.th-util:hover {
  background: var(--th-lilac-mist, #F4EFF7) !important;
  color: var(--th-purple, #825B96) !important;
  transform: scale(1.08);
}
.th-util svg { width: 20px; height: 20px; }
.th-util__count {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--th-purple);
  color: #fff;
  font-family: var(--th-font-body);
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  box-sizing: border-box;
}
.th-util__count { display: none; }
.th-util__count[data-count]:not([data-count="0"]):not([data-count=""]) { display: block; }

/* Sticky shrink */
.th-sticky-on .th-announce { display: none !important; }
.th-sticky-on #masthead {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, .96) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--th-border) !important;
  box-shadow: var(--th-shadow-sm) !important;
  animation: thSlideDown 250ms var(--th-ease);
}
@keyframes thSlideDown { from { transform: translateY(-100%) } to { transform: none } }
.th-sticky-on #masthead,
.th-sticky-on .ast-primary-header-bar,
.th-sticky-on .site-primary-header-wrap,
.th-sticky-on .ast-builder-grid-row,
.th-sticky-on .site-header-primary-section-left,
.th-sticky-on .site-header-primary-section-right,
.th-sticky-on .ast-builder-menu-1,
.th-sticky-on .ast-main-header-bar-alignment,
.th-sticky-on .main-header-bar-navigation,
.th-sticky-on .site-navigation,
.th-sticky-on .main-navigation,
.th-sticky-on .main-header-menu {
  min-height: 68px !important;
  max-height: 68px !important;
  height: 68px !important;
}
.th-sticky-on #masthead .main-header-menu > li,
.th-sticky-on #masthead .main-header-menu > li > a {
  height: 68px !important;
  line-height: 68px !important;
  display: flex !important;
  align-items: center !important;
}
.th-sticky-on #masthead .main-header-menu > li > a::after {
  bottom: 14px !important;
}
.th-sticky-on #masthead .site-branding,
.th-sticky-on #masthead .site-logo-img {
  display: flex !important;
  align-items: center !important;
  height: 68px !important;
}
.th-sticky-on #masthead .site-logo-img img {
  max-height: 42px !important;
  width: auto !important;
  transition: max-height 250ms var(--th-ease);
}
.site-logo-img img { transition: max-height 250ms var(--th-ease); }

#masthead .main-header-menu > li > a {
  position: relative;
  font-family: var(--th-font-body) !important;
  font-weight: 500 !important;
  color: var(--th-deep-plum) !important;
  transition: color 180ms ease !important;
}
#masthead .main-header-menu > li:hover > a,
#masthead .main-header-menu > li > a:hover {
  color: var(--th-purple) !important;
}
#masthead .main-header-menu > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 2px !important;
  background: var(--th-purple) !important;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--th-ease);
}
#masthead .main-header-menu > li:hover > a::after,
#masthead .main-header-menu > li.current-menu-item > a::after { transform: scaleX(1); }

/* ========================================================================
   3. MEGA MENU
   ======================================================================== */
/* Rendered after </header>, so it is pinned to the viewport-anchored header
   offset rather than `top:100%` of an ancestor — and taken out of flow so it
/* ========================================================================
   3. REFINED "SHOP ALL" DROPDOWN
   ======================================================================== */
.th-mega {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  top: calc(var(--th-announce-h, 38px) + var(--th-header-h, 110px));
  width: min(680px, calc(100vw - 32px));
  background: var(--th-warm-white, #FFFFFF);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  box-shadow: 0 20px 48px rgba(46, 31, 39, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms var(--th-ease), transform 220ms var(--th-ease), visibility 220ms;
  z-index: 999;
}
.th-mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.th-sticky-on .th-mega {
  position: fixed;
  top: 66px;
}
.th-mega__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  padding: 24px 26px 22px;
}
.th-mega__eyebrow {
  display: block;
  font-family: var(--th-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--th-sage-dark);
  margin-bottom: 12px;
}
.th-mega__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.th-mega__link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--th-radius-md);
  text-decoration: none;
  transition: all 180ms var(--th-ease);
}
.th-mega__link:hover {
  background: var(--th-lilac-mist, #F4EFF7) !important;
  transform: translateX(4px);
}
.th-mega__link-title {
  font-family: var(--th-font-display);
  font-size: 15.5px;
  color: var(--th-purple-dark);
  font-weight: 500;
  margin-bottom: 1px;
}
.th-mega__link-desc {
  font-size: 12px;
  color: var(--th-text-muted);
  line-height: 1.4;
}
.th-mega__col--concerns {
  border-left: 1px solid var(--th-border);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.th-mega__concern-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.th-mega__concern-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--th-radius-sm);
  color: var(--th-text);
  font-size: 13.5px;
  text-decoration: none;
  transition: all 160ms ease;
}
.th-mega__concern-item:hover {
  color: var(--th-purple) !important;
  background: var(--th-lilac-mist, #F4EFF7) !important;
  transform: translateX(3px);
}
.th-mega__concern-icon {
  color: var(--th-sage-dark);
  display: flex;
  align-items: center;
}
.th-mega__cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--th-white);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-pill);
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--th-purple-dark);
  text-decoration: none;
  transition: all 180ms ease;
}
.th-mega__cta-btn:hover {
  border-color: var(--th-purple);
  background: var(--th-purple);
  color: #fff;
}
@media (max-width: 768px) {
  .th-mega { display: none; }
}

/* ========================================================================
   4. SEARCH OVERLAY & LIVE RESULTS
   ======================================================================== */
.th-search {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(63, 58, 61, .45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms var(--th-ease), visibility 250ms;
}
.th-search.is-open { opacity: 1; visibility: visible; }
.th-search__panel {
  background: var(--th-warm-white, #FFFFFF);
  padding: 40px 24px 44px;
  transform: translateY(-18px);
  transition: transform 250ms var(--th-ease);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.th-search.is-open .th-search__panel { transform: none; }
.th-search__inner { max-width: 720px; margin-inline: auto; }
.th-search__form { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--th-purple); padding-bottom: 12px; }
.th-search__input {
  flex: 1;
  border: 0;
  background: none;
  font-family: var(--th-font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--th-text);
  outline: none;
}
.th-search__input::placeholder { color: rgba(113, 107, 112, .6); }

/* Search live results */
.th-search__results {
  margin-top: 20px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.th-search__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 620px) {
  .th-search__grid { grid-template-columns: 1fr; }
}
.th-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--th-white);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-md);
  text-decoration: none;
  transition: all 180ms ease;
}
.th-search-item:hover {
  border-color: var(--th-purple);
  box-shadow: 0 4px 14px rgba(133, 93, 155, 0.12);
  transform: translateY(-1px);
}
.th-search-item__img {
  width: 48px;
  height: 48px;
  min-width: 48px;
  object-fit: cover;
  border-radius: var(--th-radius-sm);
  border: 1px solid var(--th-border);
}
.th-search-item__info {
  flex: 1;
  min-width: 0;
}
.th-search-item__cat {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--th-sage-dark);
  margin-bottom: 2px;
}
.th-search-item__title {
  font-family: var(--th-font-display);
  font-size: 14px;
  color: var(--th-text);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.th-search-item__price {
  font-size: 12.5px;
  color: var(--th-purple-dark);
  font-weight: 600;
}
.th-search-item__arrow {
  color: var(--th-text-muted);
  font-size: 15px;
  transition: transform 180ms ease, color 180ms ease;
}
.th-search-item:hover .th-search-item__arrow {
  color: var(--th-purple);
  transform: translateX(3px);
}
.th-search__all-link {
  text-align: center;
  margin-top: 14px;
}
.th-search__all-link a {
  font-size: 13px;
  font-weight: 500;
  color: var(--th-purple);
  text-decoration: underline;
}
.th-search__loading,
.th-search__empty {
  padding: 24px;
  text-align: center;
  color: var(--th-text-muted);
  font-size: 14px;
}

.th-search__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.th-search__chips-label { font-size: 12px; color: var(--th-text-muted); margin-right: 4px; }
.th-search__chip {
  border: 1px solid var(--th-border);
  background: var(--th-white);
  border-radius: var(--th-radius-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--th-text);
  text-decoration: none;
  transition: all 180ms var(--th-ease);
}
.th-search__chip:hover { border-color: var(--th-purple); color: var(--th-purple); }

/* Category & Concern Two-Tier Filters on Shop Archive */
.th-cat-bar-wrap {
  background: var(--th-warm-white, #FFFFFF);
  border-bottom: 1px solid var(--th-border);
  padding: 16px 0;
}
.th-cat-bar-wrap .th-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.th-filter-tier {
  display: flex;
  align-items: center;
  gap: 14px;
}
.th-filter-tier__label {
  font-family: var(--th-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--th-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
}
.th-cat-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.th-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--th-radius-pill);
  border: 1px solid var(--th-border);
  background: var(--th-white);
  color: var(--th-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 180ms var(--th-ease);
  white-space: nowrap;
}
.th-cat-pill:not(.is-active):hover {
  border-color: var(--th-purple, #825B96) !important;
  color: var(--th-purple, #825B96) !important;
  background: var(--th-lilac-mist, #F4EFF7) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(130, 91, 150, 0.15) !important;
}
.th-cat-pill.is-active {
  background: var(--th-deep-plum, #49334E) !important;
  color: #ffffff !important;
  border-color: var(--th-deep-plum, #49334E) !important;
}
.th-cat-pill.is-active:hover {
  background: var(--th-purple, #825B96) !important;
  border-color: var(--th-purple, #825B96) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(130, 91, 150, 0.25) !important;
}
.th-cat-pill.is-active .th-cat-pill__icon {
  color: #ffffff;
}
.th-cat-pill__count {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 600;
}
.th-cat-pill--concern .th-cat-pill__icon {
  display: inline-flex;
  align-items: center;
  color: var(--th-sage);
  transition: color 180ms var(--th-ease);
}
.th-cat-pill--concern .th-cat-pill__icon svg {
  width: 13px;
  height: 13px;
}
.th-cat-pill--concern:hover .th-cat-pill__icon {
  color: var(--th-purple);
}

@media (max-width: 921px) {
  .th-cat-bar-wrap {
    padding: 12px 0;
  }
  .th-cat-bar-wrap .th-container {
    gap: 10px;
    padding-inline: 16px;
  }
  .th-filter-tier {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }
  .th-filter-tier__label {
    min-width: unset;
    font-size: 10.5px;
  }
  .th-cat-bar {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .th-cat-bar::-webkit-scrollbar {
    display: none;
  }
  .th-cat-pill {
    flex-shrink: 0;
    font-size: 12.5px;
    padding: 6px 12px;
  }
}

/* ========================================================================
   5. CART DRAWER
   ======================================================================== */
.th-drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(63, 58, 61, .35);
  opacity: 0;
  visibility: hidden;
  z-index: 1190;
  transition: opacity 300ms var(--th-ease), visibility 300ms;
}
.th-drawer-scrim.is-open { opacity: 1; visibility: visible; }
.th-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--th-warm-white);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms var(--th-ease);
  box-shadow: -8px 0 40px rgba(63, 58, 61, .12);
}
.th-drawer.is-open { transform: none; }
.th-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--th-border);
}
.th-drawer__close {
  background: transparent !important;
  border: 1px solid transparent !important;
  font-size: 22px !important;
  cursor: pointer !important;
  color: var(--th-deep-plum, #49334E) !important;
  line-height: 1 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: all 180ms ease !important;
}
.th-drawer__close:hover,
.th-drawer__close:focus {
  background: var(--th-lilac-mist, #F4EFF7) !important;
  color: var(--th-purple, #825B96) !important;
  border-color: rgba(130, 91, 150, 0.25) !important;
  transform: rotate(90deg) scale(1.08) !important;
  box-shadow: 0 2px 8px rgba(130, 91, 150, 0.2) !important;
}
/* The body is the AJAX-refreshed region; it holds a scrolling area and the
   pinned footer so both update together after add-to-cart. */
.th-drawer__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.th-drawer__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 22px; }
.th-drawer__foot { border-top: 1px solid var(--th-border); padding: 18px 22px 22px; background: var(--th-white); flex: none; }

/* Free-shipping progress — highest-ROI AOV element */
.th-ship {
  background: var(--th-lavender);
  border-radius: var(--th-radius-md);
  padding: 13px 15px;
  margin-bottom: 18px;
}
.th-ship__msg { font-size: 12.5px; color: var(--th-purple-dark); margin: 0 0 9px; }
.th-ship__msg strong { font-weight: 600; }
.th-ship__track { height: 4px; background: rgba(133, 93, 155, .18); border-radius: 999px; overflow: hidden; }
.th-ship__fill { height: 100%; background: var(--th-purple); border-radius: 999px; transition: width 400ms var(--th-ease); }

.th-drawer__empty { text-align: center; padding: 40px 0; color: var(--th-text-muted); }
.th-drawer__sub { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 15px; }
.th-drawer__sub strong { font-family: var(--th-font-display); font-size: 22px; color: var(--th-purple-dark); }
.th-drawer__trust {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 13px;
  font-size: 11px;
  color: var(--th-text-muted);
  letter-spacing: .03em;
}
.th-drawer .th-btn { width: 100%; }

/* Drawer item list & interactive controls */
.th-drawer__items {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.th-drawer__item {
  display: flex !important;
  gap: 14px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid var(--th-border) !important;
  align-items: flex-start !important;
  transition: opacity 0.2s ease !important;
}
.th-drawer__item:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.th-drawer__item-thumb {
  width: 70px !important;
  height: 70px !important;
  min-width: 70px !important;
  flex-shrink: 0 !important;
  border-radius: var(--th-radius-sm) !important;
  overflow: hidden !important;
  border: 1px solid var(--th-border) !important;
  background: var(--th-warm-white) !important;
}
.th-drawer__item-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.th-drawer__item-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.th-drawer__item-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 8px !important;
}
.th-drawer__item-title {
  margin: 0 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}
.th-drawer__item-title a {
  color: var(--th-text) !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}
.th-drawer__item-title a:hover {
  color: var(--th-purple) !important;
}
.th-drawer__item-remove {
  background: transparent !important;
  border: 0 !important;
  cursor: pointer !important;
  color: var(--th-text-muted) !important;
  padding: 3px !important;
  margin: -3px -3px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.15s ease !important;
  width: 24px !important;
  height: 24px !important;
}
.th-drawer__item-remove:hover {
  color: var(--th-error, #a34848) !important;
  background: rgba(163, 72, 72, 0.08) !important;
}
.th-drawer__item-price {
  font-size: 12.5px !important;
  color: var(--th-text-muted) !important;
}
.th-drawer__item-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 8px !important;
}
.th-drawer__qty {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid var(--th-border) !important;
  border-radius: 999px !important;
  background: var(--th-white) !important;
  height: 30px !important;
  padding: 0 4px !important;
  user-select: none !important;
}
.th-drawer__qty-btn {
  background: transparent !important;
  border: 0 !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  line-height: 1 !important;
  color: var(--th-purple-dark) !important;
  cursor: pointer !important;
  border-radius: 50% !important;
  transition: background 0.15s ease !important;
  padding: 0 !important;
}
.th-drawer__qty-btn:hover {
  background: var(--th-lavender) !important;
}
.th-drawer__qty-val {
  min-width: 24px !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--th-text) !important;
}
.th-drawer__item-total {
  font-family: var(--th-font-display) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--th-purple-dark) !important;
}
.th-drawer__foot-btns {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}
.th-drawer__btn-cart {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 14px !important;
  border: 1.5px solid var(--th-purple) !important;
  background: var(--th-white) !important;
  color: var(--th-purple-dark) !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.th-drawer__btn-cart:hover {
  background: var(--th-lavender) !important;
  color: var(--th-purple-dark) !important;
}
.th-drawer__btn-checkout {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 14px !important;
  border: 1.5px solid var(--th-purple) !important;
  background: var(--th-purple) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.th-drawer__btn-checkout:hover {
  background: var(--th-purple-dark) !important;
  border-color: var(--th-purple-dark) !important;
  color: #ffffff !important;
}
.th-drawer__empty-icon {
  margin-bottom: 12px !important;
  color: var(--th-purple) !important;
  opacity: 0.6 !important;
}
.th-drawer__empty-title {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--th-text) !important;
  margin: 0 0 6px !important;
}
.th-drawer__empty-desc {
  font-size: 13.5px !important;
  color: var(--th-text-muted) !important;
  margin: 0 0 18px !important;
}

body.admin-bar .th-drawer {
  top: 32px !important;
  height: calc(100vh - 32px) !important;
}
@media (max-width: 782px) {
  body.admin-bar .th-drawer {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
  }
}
@media (max-width: 480px) { .th-drawer { width: 100vw; } }

/* ========================================================================
   6. PRODUCT CARDS
   ======================================================================== */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  background: var(--th-white, #FFFFFF);
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease !important;
}
ul.products li.product:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(73, 51, 78, 0.08) !important;
  border-color: transparent !important;
}

/* Media — Soft Ice white/Lilac mist tile with gallery carousel */
ul.products li.product .th-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--th-card-media-bg, #F4F8FA);
  overflow: hidden;
  border-radius: 0;
  display: block;
}
.th-card__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.th-card__track::-webkit-scrollbar {
  display: none;
}
.th-card__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  text-decoration: none !important;
}
.th-card__slide img,
.th-card__slide svg {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  display: block;
  margin: 0;
  border-radius: 0;
  transition: transform 0.3s ease;
}
ul.products li.product:hover .th-card__slide img {
  transform: scale(1.04);
}

/* Badge pill (Best Seller / Sale) */
.th-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--th-deep-plum, #49334E);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  pointer-events: none;
  white-space: nowrap;
}

/* Carousel Navigation Arrows */
.th-card__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  transition: opacity 0.2s, transform 0.15s, background-color 0.15s, box-shadow 0.15s !important;
}
.th-card__arrow:hover:not([disabled]) {
  background: var(--th-deep-plum, #49334E) !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(73, 51, 78, 0.3) !important;
}
.th-card__arrow:hover:not([disabled]) svg {
  stroke: #FFFFFF !important;
}
.th-card__arrow:active {
  transform: translateY(-50%) scale(0.92);
}
.th-card__arrow.prev {
  left: 8px;
}
.th-card__arrow.next {
  right: 8px;
}
.th-card__arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--th-slate-blue, #657E8D);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.th-card__arrow[disabled] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* Carousel Pagination Dots */
.th-card__dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}
.th-card__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--th-mist-blue, #DCE8ED);
  transition: background-color 0.2s;
  display: inline-block;
}
.th-card__dots i.is-active {
  background: var(--th-deep-plum, #49334E);
}

/* Card Body */
ul.products li.product .th-card__body {
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  background: transparent;
}

/* Product Title (Manrope) */
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--th-font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--th-deep-plum, #49334E) !important;
  line-height: 1.3 !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  transition: color 180ms ease !important;
}
ul.products li.product .woocommerce-loop-product__title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 180ms ease !important;
}
ul.products li.product:hover .woocommerce-loop-product__title,
ul.products li.product:hover .woocommerce-loop-product__title a,
ul.products li.product .woocommerce-loop-product__title a:hover {
  color: var(--th-purple, #825B96) !important;
}

/* Concern / Benefit subtitle */
.th-card__concern {
  font-size: 13px;
  line-height: 1.35;
  color: var(--th-plum-muted, #77677B);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

/* Star Rating */
.th-card__rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1;
}
.th-card__rating svg {
  width: 14px;
  height: 14px;
}
.th-card__rating .star-filled {
  fill: var(--th-deep-plum, #49334E);
}
.th-card__rating .star-empty {
  fill: none;
  stroke: var(--th-slate-blue, #657E8D);
  stroke-width: 1.6;
}
.th-card__rating-count {
  font-size: 11px;
  color: var(--th-plum-muted, #77677B);
  margin-left: 4px;
}

/* Price */
.th-card__price,
ul.products li.product .price {
  display: flex !important;
  align-items: baseline;
  gap: 8px;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--th-deep-plum, #49334E) !important;
  margin: 0 0 10px !important;
  line-height: 1.2 !important;
  font-family: inherit !important;
}
ul.products li.product .price ins {
  text-decoration: none !important;
  font-weight: 600 !important;
  color: var(--th-deep-plum, #49334E) !important;
}
ul.products li.product .price del {
  opacity: 1 !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  color: var(--th-plum-muted, #77677B) !important;
  text-decoration: line-through !important;
}

/* Variant / Size Pills */
.th-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  margin-top: auto;
}
.th-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--th-slate-blue, #657E8D);
  background: #FFFFFF;
  color: var(--th-deep-plum, #49334E);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  transition: all 180ms ease !important;
}
.th-card__pill:not(.is-active):hover {
  border-color: var(--th-purple, #825B96) !important;
  color: var(--th-purple, #825B96) !important;
  background: var(--th-lilac-mist, #F4EFF7) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(130, 91, 150, 0.18) !important;
}
.th-card__pill.is-active {
  background: var(--th-deep-plum, #49334E);
  border-color: var(--th-deep-plum, #49334E);
  color: #FFFFFF;
}
.th-card__pill.is-active:hover {
  background: var(--th-purple, #825B96) !important;
  border-color: var(--th-purple, #825B96) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Full-width Flat Square "Add to cart" CTA */
ul.products li.product .button,
ul.products li.product .added_to_cart {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  text-align: center;
  border-radius: 0 !important;
  background: var(--th-deep-plum, #49334E) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: normal;
  line-height: 1.25 !important;
  text-decoration: none !important;
  text-transform: none !important;
  transition: background-color 180ms ease, transform 150ms ease, box-shadow 180ms ease !important;
  box-shadow: none !important;
  cursor: pointer;
}
ul.products li.product .button:hover,
ul.products li.product .added_to_cart:hover,
ul.products li.product .button:focus {
  background: var(--th-purple, #825B96) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(130, 91, 150, 0.35) !important;
}
ul.products li.product .button:active {
  transform: scale(0.99);
}
ul.products li.product .button.loading {
  opacity: 0.75;
}
ul.products li.product .added_to_cart {
  background: var(--th-purple, #825B96) !important;
  margin-top: 4px !important;
}

@media (max-width: 992px) {
  ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (max-width: 768px) {
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 14px !important;
  }
  ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
  }
  .th-card__concern {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .th-card__pill {
    font-size: 11px;
    padding: 4px 10px;
  }
  ul.products li.product .button {
    padding: 10px 8px !important;
    font-size: 13.5px !important;
  }
}

/* ========================================================================
   7. BOTANICAL TILES (category / concern)
   ======================================================================== */
.th-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.th-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
  padding: 24px;
  border-radius: var(--th-radius-lg);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--th-border);
  transition: transform var(--th-dur) var(--th-ease), box-shadow var(--th-dur) var(--th-ease);
}
.th-tile:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-md); }
.th-tile__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #FAF7F2; }
.th-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.th-tile:hover .th-tile__img {
  transform: scale(1.06);
}
.th-tile__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 247, 242, 0) 0%, rgba(250, 247, 242, 0.25) 45%, rgba(250, 247, 242, 0.88) 78%, rgba(250, 247, 242, 0.98) 100%);
  pointer-events: none;
  transition: background 300ms ease;
}
.th-tile:hover .th-tile__art::after {
  background: linear-gradient(180deg, rgba(250, 247, 242, 0) 0%, rgba(250, 247, 242, 0.20) 40%, rgba(250, 247, 242, 0.84) 75%, rgba(250, 247, 242, 0.96) 100%);
}
.th-tile__label {
  position: relative;
  font-family: var(--th-font-display);
  font-size: 21px;
  color: var(--th-purple-dark);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.th-tile__count { position: relative; font-size: 12px; color: var(--th-text-muted); margin-top: 5px; }
.th-tile__go {
  position: relative;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--th-purple);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.th-tile__go span { transition: transform 250ms var(--th-ease); display: inline-block; }
.th-tile:hover .th-tile__go span { transform: translateX(4px); }
.th-tiles--concern { grid-template-columns: repeat(5, 1fr); }
.th-tiles--concern .th-tile { min-height: 150px; justify-content: center; text-align: center; align-items: center; }
@media (max-width: 992px) { .th-tiles, .th-tiles--concern { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .th-tiles { grid-template-columns: 1fr; } .th-tiles--concern { grid-template-columns: repeat(2, 1fr); } }

/* ========================================================================
   8. HOMEPAGE SECTIONS
   ======================================================================== */
/* Hero — asymmetric, generous negative space */
.th-hero { position: relative; overflow: hidden; }
.th-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
  min-height: 560px;
  padding-block: 88px;
}
.th-hero__title { margin: 0 0 22px; max-width: 15ch; }
.th-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.th-hero__art { position: relative; display: flex; align-items: center; justify-content: center; }
.th-hero__art svg { width: 100%; max-width: 430px; height: auto; }
.th-hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  font-size: 12.5px;
  color: var(--th-text-muted);
}
@media (max-width: 921px) {
  .th-hero__grid { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding-block: 52px; text-align: left; }
  .th-hero__art { order: -1; }
  .th-hero__art svg { max-width: 250px; }
  .th-hero__title { max-width: none; }
}

/* Trust strip */
.th-trust { border-block: 1px solid var(--th-border); background: var(--th-white); }
.th-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 28px;
}
.th-trust__item { display: flex; align-items: center; gap: 12px; justify-content: center; text-align: left; }
.th-trust__item svg { width: 22px; height: 22px; color: var(--th-sage); flex: none; }
.th-trust__t { font-size: 13px; font-weight: 500; color: var(--th-text); display: block; line-height: 1.3; }
.th-trust__s { font-size: 11.5px; color: var(--th-text-muted); }
@media (max-width: 768px) {
  .th-trust__grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; padding-block: 22px; }
  .th-trust__item { justify-content: flex-start; }
}

/* Certifications row — monochrome by design */
.th-certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.th-cert {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-pill);
  padding: 11px 22px;
  background: var(--th-white);
}
.th-cert svg { width: 17px; height: 17px; color: var(--th-sage); }
.th-cert span { font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--th-text); font-weight: 500; }

/* Story — asymmetric */
.th-story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.th-story__art svg { width: 100%; max-width: 400px; height: auto; }
.th-story__points { list-style: none; margin: 26px 0 32px; padding: 0; }
.th-story__points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--th-border);
  font-size: 14.5px;
}
.th-story__points li:last-child { border-bottom: 0; }
.th-story__points svg { width: 17px; height: 17px; color: var(--th-sage); flex: none; margin-top: 3px; }
.th-story__points strong { font-weight: 600; color: var(--th-text); }
@media (max-width: 921px) { .th-story__grid { grid-template-columns: 1fr; gap: 32px; } .th-story__art { order: -1; } .th-story__art svg { max-width: 220px; } }

/* Rituals — Everyday Herbal Care */
.th-ritual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.th-ritual__card,
.th-ritual__step {
  background: var(--th-white);
  border: 1px solid rgba(229, 221, 208, 0.85);
  border-radius: 18px;
  padding: 36px 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(63, 58, 61, 0.035);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.th-ritual__card:hover,
.th-ritual__step:hover {
  transform: translateY(-4px);
  border-color: rgba(133, 93, 155, .35);
  box-shadow: 0 16px 36px rgba(44, 30, 50, .08);
}
.th-ritual__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--th-purple);
  margin-bottom: 16px;
}
.th-ritual__badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--th-lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--th-purple);
  flex-shrink: 0;
}
.th-ritual__badge-icon svg {
  width: 14px;
  height: 14px;
}
.th-ritual__card h3,
.th-ritual__step h3 {
  font-family: var(--th-font-display);
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--th-text);
  line-height: 1.28;
}
.th-ritual__blurb,
.th-ritual__step p {
  font-size: 14px;
  color: var(--th-text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
}
.entry-content ul.th-ritual__steps,
.th-ritual__steps {
  list-style: none !important;
  margin: 0 0 20px !important;
  padding: 20px 0 0 !important;
  border-top: 1px solid var(--th-border) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}
.entry-content li.th-ritual__step-item,
.th-ritual__step-item {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}
.th-ritual__step-num,
.th-ritual__n {
  font-family: var(--th-font-display);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--th-purple);
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  background: var(--th-lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  border: none;
}
.th-ritual__step-info {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--th-text-muted);
}
.th-ritual__step-info strong {
  color: var(--th-text);
  font-weight: 600;
  margin-right: 4px;
}
.th-ritual__action {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--th-border);
}
.th-ritual__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--th-purple);
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
  padding: 2px 0;
}
.th-ritual__link:hover {
  gap: 12px;
  color: var(--th-purple-dark, #53335e);
}
@media (max-width: 921px) {
  .th-ritual { grid-template-columns: 1fr; gap: 20px; }
  .th-ritual__card,
  .th-ritual__step { padding: 30px 22px 24px; }
}

/* Reviews */
.th-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.th-review {
  background: var(--th-white);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.th-review__stars { color: var(--th-purple); font-size: 13px; letter-spacing: .18em; margin-bottom: 14px; }
.th-review__q { font-family: var(--th-font-display); font-size: 18px; line-height: 1.45; color: var(--th-text); margin: 0 0 18px; }
.th-review__who { font-size: 12.5px; color: var(--th-text-muted); margin-top: auto; }
@media (max-width: 921px) { .th-reviews { grid-template-columns: 1fr; } }

/* Newsletter band */
.th-news__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.th-news h2 { color: #fff; margin: 0 0 12px; }
.th-news p { color: rgba(255, 255, 255, .78); margin: 0; font-size: 15px; max-width: 46ch; }
.th-news__form { display: flex; gap: 10px; flex-wrap: wrap; }
.th-news__form input[type="email"] {
  flex: 1;
  min-width: 210px;
  height: 50px;
  border-radius: var(--th-radius-pill);
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  padding: 0 22px;
  font-family: var(--th-font-body);
  font-size: 14px;
  outline: none;
}
.th-news__form input[type="email"]::placeholder { color: rgba(255, 255, 255, .55); }
.th-news__form input[type="email"]:focus { border-color: rgba(255, 255, 255, .7); }
.th-news__fine { font-size: 11.5px; color: rgba(255, 255, 255, .5); margin-top: 12px; }
@media (max-width: 921px) { .th-news__grid { grid-template-columns: 1fr; gap: 26px; } }

/* ========================================================================
   9. FOOTER
   ======================================================================== */
.th-footer { background: var(--th-warm-white); border-top: 1px solid var(--th-border); }
.th-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.15fr;
  gap: 48px;
  padding-block: 72px 56px;
}
.th-footer__logo { max-width: 152px; height: auto; margin-bottom: 16px; }
.th-footer__about { font-size: 13.5px; color: var(--th-text-muted); line-height: 1.7; max-width: 34ch; margin: 0 0 20px; }
.th-footer h4 {
  font-family: var(--th-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--th-sage-dark);
  margin: 0 0 18px;
}
.th-footer__links { list-style: none; margin: 0; padding: 0; }
.th-footer__links li { margin-bottom: 10px; }
.th-footer__links a {
  color: var(--th-text);
  text-decoration: none;
  font-size: 14px;
  transition: color 180ms var(--th-ease);
}
.th-footer__links a:hover { color: var(--th-purple); }
.th-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.th-footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--th-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--th-text);
  transition: all 200ms var(--th-ease);
}
.th-footer__social a:hover { border-color: var(--th-purple); color: var(--th-purple); }
.th-footer__social svg { width: 16px; height: 16px; }

.th-footer__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  padding-block: 24px;
  border-top: 1px solid var(--th-border);
}
.th-footer__trust span {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--th-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.th-footer__trust svg { width: 15px; height: 15px; color: var(--th-sage); }

.th-footer__legal {
  border-top: 1px solid var(--th-border);
  padding-block: 22px;
  font-size: 11.5px;
  color: var(--th-text-muted);
  line-height: 1.7;
}
.th-footer__legal strong { color: var(--th-text); font-weight: 600; }
.th-footer__pay { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.th-footer__pay span {
  border: 1px solid var(--th-border);
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: .06em;
  background: var(--th-white);
  color: var(--th-text-muted);
}
@media (max-width: 921px) {
  .th-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; padding-block: 48px 34px; }
  .th-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .th-footer__grid { grid-template-columns: 1fr; } }

/* Astra copyright row */
.ast-footer-copyright { font-size: 12px; color: var(--th-text-muted); }
.ast-footer-copyright a { color: var(--th-purple); text-decoration: none; }
.site-below-footer-wrap { background: var(--th-warm-white) !important; border-top: 1px solid var(--th-border); padding-block: 6px; }

/* ========================================================================
   10. SHOP ARCHIVE + PDP
   ======================================================================== */
.th-shop-hero { background: var(--th-cream); padding-block: 56px 48px; border-bottom: 1px solid var(--th-border); }
.th-shop-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 46px); }
.th-shop-hero p { max-width: 60ch; color: var(--th-text-muted); margin: 0; font-size: 15px; }
.woocommerce .woocommerce-result-count { font-size: 13px; color: var(--th-text-muted); margin: 0; }
.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-pill);
  padding: 9px 16px;
  font-size: 13px;
  font-family: var(--th-font-body);
  background: var(--th-white);
  color: var(--th-text);
  transition: all 180ms ease;
  cursor: pointer;
}
.woocommerce .woocommerce-ordering select:hover {
  border-color: var(--th-purple, #825B96);
  box-shadow: 0 0 0 3px rgba(130, 91, 150, 0.12);
}
.woocommerce .woocommerce-ordering select:focus {
  border-color: var(--th-purple, #825B96);
  outline: none;
  box-shadow: 0 0 0 3px rgba(130, 91, 150, 0.2);
}
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; background: var(--th-white); padding: 7px; border-radius: var(--th-radius-pill); box-shadow: var(--th-shadow-sm); }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 38px;
  height: 38px;
  line-height: 38px;
  padding: 0 12px;
  border-radius: var(--th-radius-pill);
  font-size: 14px;
  color: var(--th-text);
  transition: all 180ms var(--th-ease);
  text-decoration: none;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--th-deep-plum, #49334E); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--th-purple, #825B96) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(130, 91, 150, 0.25);
}

/* PDP */
.single-product div.product .product_title { font-size: clamp(28px, 3.6vw, 40px); margin: 6px 0 14px; }
.single-product div.product .price { font-family: var(--th-font-display); font-size: 26px; color: var(--th-purple-dark); }
.single-product div.product .woocommerce-product-details__short-description { font-size: 15.5px; color: var(--th-text-muted); line-height: 1.7; }
.single-product div.product form.cart .button {
  background: var(--th-purple) !important;
  color: #fff !important;
  border-radius: var(--th-radius-pill) !important;
  min-height: 52px;
  padding: 15px 36px !important;
  font-family: var(--th-font-body) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  letter-spacing: .03em;
  transition: all 200ms var(--th-ease) !important;
}
.single-product div.product form.cart .button:hover {
  background: var(--th-purple, #825B96) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(130, 91, 150, 0.35) !important;
}
.single-product .quantity input.qty {
  height: 52px;
  width: 74px;
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-pill);
  text-align: center;
  font-family: var(--th-font-body);
  background: var(--th-white);
  color: var(--th-text);
}
.th-pdp-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.th-pdp-benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--th-border);
  background: var(--th-white);
  border-radius: var(--th-radius-pill);
  padding: 8px 15px;
  font-size: 12px;
  color: var(--th-text);
}
.th-pdp-benefit svg { width: 14px; height: 14px; color: var(--th-sage); }
.th-pdp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.th-pdp-meta span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--th-sage-dark);
  background: rgba(124, 131, 98, .1);
  border-radius: var(--th-radius-pill);
  padding: 5px 12px;
}
.th-ritual-steps { list-style: none; margin: 0; padding: 0; counter-reset: rstep; }
.th-ritual-steps li {
  counter-increment: rstep;
  position: relative;
  padding: 0 0 18px 42px;
  font-size: 14.5px;
  color: var(--th-text);
  line-height: 1.6;
}
.th-ritual-steps li::before {
  content: counter(rstep);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(133, 93, 155, .3);
  color: var(--th-purple);
  font-family: var(--th-font-display);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.woocommerce-tabs .wc-tabs { border-bottom: 1px solid var(--th-border) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--th-border); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0 22px 0 0;
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--th-font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--th-text-muted);
  padding: 14px 0;
  border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--th-purple-dark); border-bottom-color: var(--th-purple); }

/* Sticky mobile add-to-cart */
.th-sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--th-border);
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 280ms var(--th-ease);
}
.th-sticky-atc.is-in { transform: none; }
.th-sticky-atc__info { flex: 1; min-width: 0; }
.th-sticky-atc__name { font-size: 13px; font-weight: 500; color: var(--th-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-sticky-atc__price { font-family: var(--th-font-display); font-size: 16px; color: var(--th-purple-dark); }
.th-sticky-atc .th-btn { flex: none; }
@media (max-width: 768px) { .single-product .th-sticky-atc { display: flex; } }


/* Hide the duplicate front-page title */
.home .entry-header, .home .ast-archive-description { display: none; }
.home #primary, .home .site-content > .ast-container { margin: 0; padding: 0; max-width: none; }
.home #content .ast-container { max-width: none; padding: 0; }

/* ========================================================================
   11. FIXES — verified against the live render
   ======================================================================== */

/* Product media aspect ratio matching the reference card design */
ul.products li.product .th-card__media { aspect-ratio: 4 / 5; }
.th-pdp-tile svg { width: 100%; height: auto; display: block; }

/* Astra underlines content links; the design system manages its own affordances. */
.th-btn, .th-btn:hover,
.th-tile, .th-tile:hover,
.th-card__media,
.th-mega__list a, .th-footer__links a, .th-search__chip,
ul.products li.product .button,
ul.products li.product a,
.th-util, .th-cert, .th-trust__item a {
  text-decoration: none !important;
  box-shadow: none !important;
}
.th-link { text-decoration: none !important; }

/* Logo: Astra renders it very large and repeats the site title beside it. */
#masthead .site-logo-img img,
#masthead .custom-logo-link img {
  max-height: 62px !important;
  width: auto !important;
}
#masthead .ast-site-title-wrap,
#masthead .site-title,
#masthead .site-description { display: none !important; }

/* Trim the empty band Astra leaves between header and content. */
.home .site-content { padding-top: 0 !important; }
.home #content > .ast-container { padding-block: 0 !important; }
.ast-plain-container.ast-no-sidebar #primary { padding-block: 0 !important; margin-block: 0 !important; }

/* Utilities cluster alignment inside the builder row. */
#masthead .th-utils { margin-left: 12px; }
#masthead .ast-builder-layout-element[data-section="title_tagline"] { padding-right: 8px; }

/* Astra's own search toggle duplicates ours — hide only the theme's element,
   never our own utilities cluster. */
#masthead .ast-builder-layout-element.ast-header-search { display: none !important; }
#masthead .th-utils { display: flex !important; }
#masthead .th-utils .th-util { display: inline-flex !important; }

/* Keep the primary nav on one line at desktop widths. */
@media (min-width: 1200px) {
  #masthead .main-header-menu > li > a { padding-inline: 12px; font-size: 15px; }
}

/* Hero & Story art: soft botanical panel */
.th-hero__art { position: relative; display: flex; align-items: center; justify-content: center; }
.th-hero__art svg,
.th-hero-art-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 13 / 14;
  object-fit: cover;
  border-radius: 260px 260px var(--th-radius-xl) var(--th-radius-xl);
  box-shadow: 0 20px 48px -12px rgba(80, 50, 100, 0.22), 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(133, 93, 155, 0.12);
  display: block;
}
.th-hero__art::after {
  content: "";
  position: absolute;
  inset: auto -6% -7% 12%;
  height: 62%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(133,93,155,.12), transparent 68%);
  filter: blur(26px);
  z-index: -1;
}
@media (max-width: 921px) {
  .th-hero__art svg,
  .th-hero-art-img {
    max-width: 240px;
    border-radius: 150px 150px var(--th-radius-lg) var(--th-radius-lg);
  }
}

.th-story__art svg,
.th-story-art-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  border-radius: var(--th-radius-xl);
  box-shadow: 0 20px 48px -12px rgba(80, 50, 100, 0.18), 0 4px 14px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(133, 93, 155, 0.12);
  display: block;
}

/* ========================================================================
   12. HEADER UTILITIES — overlay cluster
   `astra_header_after` renders outside </header>, and Astra HFB exposes no
   dependable insertion point inside the primary bar. The cluster is therefore
   pinned to the page and vertically centred on the header row, which is stable
   across Astra layouts and needs no JS DOM surgery.
   ======================================================================== */
body:not(.th-sticky-on) #masthead {
  position: relative;
}

.th-utils-bar,
#masthead .th-utils-bar {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99 !important;
  pointer-events: none !important;
}

.th-utils-bar .th-utils,
#masthead .th-utils-bar .th-utils {
  pointer-events: auto !important;
  position: absolute !important;
  right: max(24px, calc((100vw - var(--th-container-wide)) / 2 + 24px)) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Astra's own account / search / cart would duplicate ours. */
#masthead .ast-builder-layout-element.ast-header-search,
#masthead .ast-builder-layout-element.ast-header-account,
#masthead .ast-builder-layout-element.ast-header-woo-cart,
#masthead .ast-header-account-wrap,
#masthead .ast-site-header-cart { display: none !important; }

/* Keep the nav clear of the cluster. */
@media (min-width: 922px) {
  #masthead .main-header-menu { padding-right: 120px; }
}

@media (max-width: 921px) {
  .th-utils-bar .th-utils,
  #masthead .th-utils-bar .th-utils {
    right: 64px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .th-utils button.th-util,
  .th-utils-bar button.th-util,
  .th-utils .th-util,
  .th-utils-bar .th-util {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .menu-toggle.main-header-menu-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }
  .ast-button-wrap {
    display: flex !important;
    align-items: center !important;
  }
}

/* Sticky: stays relative to fixed masthead, automatically centered at 50% height */
.th-sticky-on .th-utils-bar,
.th-sticky-on #masthead .th-utils-bar {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1001 !important;
  pointer-events: none !important;
}
.th-sticky-on .th-utils-bar .th-utils,
.th-sticky-on #masthead .th-utils-bar .th-utils {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: auto !important;
  right: max(24px, calc((100vw - var(--th-container-wide)) / 2 + 24px)) !important;
}

@media (max-width: 921px) {
  .th-sticky-on .th-utils-bar .th-utils,
  .th-sticky-on #masthead .th-utils-bar .th-utils {
    right: 64px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

/* The search control is a <button>; Astra/Woo button resets collapse it while
   the sibling <a> icons render. Pin its box explicitly. */
.th-utils button.th-util,
.th-utils-bar button.th-util {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: var(--th-text) !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  appearance: none;
  -webkit-appearance: none;
}
.th-utils button.th-util:hover {
  background: var(--th-lilac-mist, #F4EFF7) !important;
  color: var(--th-purple, #825B96) !important;
  transform: scale(1.08) !important;
}
.th-utils button.th-util svg { width: 20px !important; height: 20px !important; display: block !important; }

/* Equal-height cards: pin the meta row and CTA to the bottom regardless of
   how long the benefit line runs. */
ul.products li.product .th-card__body { justify-content: flex-start; }
.th-card__benefit { min-height: 2.9em; }
@media (max-width: 768px) { .th-card__benefit { min-height: 0; } }

/* Astra reserves space for footer widget rows that are empty on this site. */
.site-footer .site-primary-footer-wrap:empty,
.site-footer .site-above-footer-wrap:empty { display: none; }
.site-primary-footer-wrap .ast-builder-grid-row:empty,
.site-above-footer-wrap .ast-builder-grid-row:empty { display: none; }
.site-footer > .ast-builder-grid-row-container:not(.site-below-footer-wrap):has(.ast-builder-grid-row:empty) { display: none; }
#colophon { padding-bottom: 0; }

/* ========================================================================
   13. ABOUT & CONTACT EDITORIAL PAGES
   ======================================================================== */
.th-about-page,
.th-contact-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  color: var(--th-text);
}
.th-page-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}
.th-page-header h1 {
  font-family: var(--th-font-display);
  font-size: clamp(34px, 5vw, 50px);
  color: var(--th-purple-dark);
  margin: 12px 0 18px;
  line-height: 1.16;
  letter-spacing: -0.01em;
}
.th-page-header p {
  font-size: 17.5px;
  color: var(--th-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* About Page Grids */
.th-about__story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.th-about__story-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 48px -12px rgba(80, 50, 100, 0.18), 0 4px 14px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(133, 93, 155, 0.12);
  display: block;
}
.th-about__stats {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--th-border);
}
.th-about__stat-num {
  font-family: var(--th-font-display);
  font-size: 32px;
  color: var(--th-purple);
  font-weight: 600;
  line-height: 1;
}
.th-about__stat-label {
  font-size: 12.5px;
  color: var(--th-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 5px;
}
.th-about__standards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}
.th-about__standard-card {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: 18px;
  padding: 32px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.th-about__standard-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--th-shadow-md);
}
.th-about__ingredients-box {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: 24px;
  padding: 48px 36px;
  margin-bottom: 72px;
}
.th-about__ingredients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .th-about__story-grid { grid-template-columns: 1fr; gap: 36px; }
  .th-about__standards { grid-template-columns: repeat(2, 1fr); }
  .th-about__ingredients-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .th-about__standards { grid-template-columns: 1fr; }
  .th-about__ingredients-grid { grid-template-columns: 1fr; }
}

/* Contact Page Grids */
.th-contact__channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.th-contact__channel-card {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: 20px;
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease;
}
.th-contact__channel-card:hover { transform: translateY(-3px); }
.th-contact__channel-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}
.th-contact__main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 80px;
}
.th-contact__form-card {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}
.th-contact__side-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.th-contact__side-card {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: 20px;
  padding: 32px 28px;
}
.th-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}
.th-faq-item {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: 14px;
  padding: 20px 24px;
  cursor: pointer;
}
.th-faq-item summary {
  font-weight: 600;
  color: var(--th-purple-dark);
  font-size: 16px;
  outline: none;
}
.th-faq-item p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--th-text-muted);
  line-height: 1.65;
}

@media (max-width: 860px) {
  .th-contact__channels { grid-template-columns: 1fr; }
  .th-contact__main-grid { grid-template-columns: 1fr; }
}
