/* Evolve Essence storefront design tokens matched to the Shopify reference. */
:root {
  --ee-theme-background: #ffffff;
  --ee-theme-foreground: #333030;
  --ee-theme-heading: #1a371a;
  --ee-theme-title: #20362a;
  --ee-theme-primary: #11462b;
  --ee-theme-primary-hover: #1a5635;
  --ee-theme-primary-text: #e2f78e;
  --ee-theme-muted: #4d5e55;
  --ee-theme-soft: #f5f8e5;
  --ee-theme-section: #f4f5f4;
}

.ee-offer-bar {
  animation: ee-offer-gradient 15s ease infinite;
  background: linear-gradient(-45deg, #2a4d2a, #2a4d2a, #547954, #2a4d2a);
  background-size: 400% 400%;
  color: #fff;
  min-height: 54px;
  width: 100%;
}
.ee-offer-bar__inner {
  align-items: center;
  display: flex;
  gap: 17px;
  justify-content: center;
  margin: 0 auto;
  min-height: 54px;
  padding: 8px 20px;
}
.ee-offer-bar__label { color: #fff; font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap; }
.ee-offer-bar__timer { align-items: center; display: flex; gap: 2px; }
.ee-offer-bar__timer > span { align-items: center; background: #2a4d2a; border-radius: 3px; display: flex; flex-direction: column; min-width: 32px; padding: 3px 1px; }
.ee-offer-bar__timer b { color: #fff; font-size: 16px; font-weight: 600; line-height: 1; }
.ee-offer-bar__timer small { color: var(--ee-theme-primary-text); font-size: 9px; font-weight: 600; line-height: 1; margin-top: 2px; }
.ee-offer-bar__timer i { color: #fff; font-size: 12px; font-style: normal; font-weight: 700; line-height: 1; }
@keyframes ee-offer-gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

body,
body .site,
body .site-content {
  background-color: var(--ee-theme-background);
  color: var(--ee-theme-foreground);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

body h1,
body .entry-title,
body .elementor-heading-title.elementor-size-default:is(h1) {
  color: var(--ee-theme-title);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

body h2,
body .elementor-heading-title.elementor-size-default:is(h2) {
  color: var(--ee-theme-heading);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.3;
}

body h3,
body .elementor-heading-title.elementor-size-default:is(h3) {
  color: var(--ee-theme-heading);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

body p,
body .elementor-widget-text-editor,
body .elementor-widget-icon-list {
  color: var(--ee-theme-foreground);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
}

body :where(a:not(.button):not(.elementor-button)) { color: var(--ee-theme-heading); }

body .site-content img { border-radius: 8px; }

body :where(
  a.button,
  button.button,
  input[type='submit'],
  input[type='button'],
  .wp-element-button,
  .elementor-button,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button
) {
  align-items: center;
  appearance: none;
  background: var(--ee-theme-primary) !important;
  border: 1px solid var(--ee-theme-primary) !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 11px rgb(17 70 43 / 14%);
  color: var(--ee-theme-primary-text) !important;
  display: inline-flex;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: normal;
  min-height: 53px;
  padding: 17px 20px;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body :where(
  a.button,
  button.button,
  input[type='submit'],
  input[type='button'],
  .wp-element-button,
  .elementor-button,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button
):hover,
body :where(
  a.button,
  button.button,
  input[type='submit'],
  input[type='button'],
  .wp-element-button,
  .elementor-button,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button
):focus-visible {
  background: var(--ee-theme-primary-hover) !important;
  border-color: var(--ee-theme-primary-hover) !important;
  box-shadow: 0 8px 18px rgb(17 70 43 / 20%);
  color: var(--ee-theme-primary-text) !important;
  transform: translateY(-1px);
}

body :where(button, .button, .elementor-button):focus-visible {
  outline: 3px solid var(--ee-theme-primary-text);
  outline-offset: 3px;
}

/* Minimal rounded-line storefront header icons. */
body .ast-header-account-link,
body .ast-header-woo-cart .cart-container,
body .main-header-menu-toggle {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: var(--ee-theme-heading) !important;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  min-height: 44px;
  padding: 8px !important;
  width: 44px;
}
body .ast-header-account-link:hover,
body .ast-header-woo-cart .cart-container:hover,
body .main-header-menu-toggle:hover {
  background: var(--ee-theme-soft) !important;
  transform: none;
}
body .ee-header-line-icon {
  display: block;
  height: 28px;
  object-fit: contain;
  width: 28px;
}
body .ast-header-account-link .ahfb-svg-iconset,
body .ast-header-woo-cart .ast-icon.icon-bag {
  align-items: center !important;
  display: flex !important;
  flex: 0 0 28px !important;
  height: 28px !important;
  justify-content: center !important;
  line-height: 1 !important;
  width: 28px !important;
}
body .ast-header-woo-cart .ast-addon-cart-wrap,
body .ast-header-woo-cart .astra-icon,
body .ast-header-woo-cart .ast-icon.icon-bag {
  align-items: center !important;
  border: 0 !important;
  display: flex !important;
  height: 28px !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 28px !important;
}
body .ee-header-menu-icons { display: grid; height: 26px; place-items: center; width: 26px; }
body .ee-header-menu-icons .ee-header-line-icon { grid-area: 1 / 1; }
body .ee-header-menu-icons .ee-header-line-icon:last-child { display: none; }
body .main-header-menu-toggle.toggled .ee-header-menu-icons .ee-header-line-icon:first-child,
body .main-header-menu-toggle[aria-expanded='true'] .ee-header-menu-icons .ee-header-line-icon:first-child { display: none; }
body .main-header-menu-toggle.toggled .ee-header-menu-icons .ee-header-line-icon:last-child,
body .main-header-menu-toggle[aria-expanded='true'] .ee-header-menu-icons .ee-header-line-icon:last-child { display: block; }
body .ast-header-woo-cart .astra-icon::after {
  align-items: center;
  background: var(--ee-theme-heading) !important;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff !important;
  display: flex;
  font-size: 10px !important;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  line-height: 1;
  min-width: 20px;
  right: -8px !important;
  top: -8px !important;
}

/* Astra gives the desktop cart a 60px text line while the account control is
   a 44px flex box. Keep both visible icons on the same physical centerline. */
@media (min-width: 922px) {
  body #ast-desktop-header .ast-site-header-cart,
  body #ast-desktop-header .ast-site-header-cart-li,
  body #ast-desktop-header .ast-header-woo-cart {
    align-items: center !important;
    display: flex !important;
    height: 44px !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body #ast-desktop-header .ast-header-woo-cart .cart-container {
    align-self: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: relative !important;
  }
}

/* Polished Astra off-canvas cart, used sitewide. */
body #astra-mobile-cart-drawer .astra-cart-drawer-header {
  align-items: center;
  background: #fff;
  border-bottom: 0;
  min-height: 72px;
  padding: 18px 22px;
}
body #astra-mobile-cart-drawer .astra-cart-drawer-title {
  color: var(--ee-theme-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
body #astra-mobile-cart-drawer .astra-cart-drawer-content { padding: 72px 22px 22px; }
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item {
  border-bottom: 0;
  min-height: 0;
  padding: 20px 38px 20px 0 !important;
  position: relative;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) {
  align-items: start;
  color: var(--ee-theme-foreground);
  display: grid !important;
  font-size: 15px;
  font-weight: 600;
  gap: 14px;
  grid-template-columns: 84px minmax(0, 1fr);
  line-height: 1.35;
  padding-right: 18px;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item > .ee-cart-item-link {
  padding-right: 0;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) img {
  aspect-ratio: 1;
  border-radius: 8px;
  float: none !important;
  height: 84px !important;
  inset: auto !important;
  margin: 0 !important;
  object-fit: cover;
  position: static !important;
  transform: none !important;
  width: 84px !important;
}
body #astra-mobile-cart-drawer .ee-cart-item-copy {
  align-content: start;
  display: grid;
  gap: 6px;
  min-width: 0;
}
body #astra-mobile-cart-drawer .ee-cart-item-title {
  color: var(--ee-theme-foreground);
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
body #astra-mobile-cart-drawer .ee-cart-item-copy > .quantity {
  color: var(--ee-theme-foreground);
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 !important;
}
body #astra-mobile-cart-drawer .ee-cart-item-copy > .ee-cart-purchase-details {
  display: block;
  margin: 3px 0 0 !important;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item > .quantity,
body #astra-mobile-cart-drawer .ee-cart-purchase-details {
  display: block;
  margin-left: 98px;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item > .quantity {
  color: var(--ee-theme-foreground);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  margin-top: -22px;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item .remove {
  align-items: center;
  border: 1px solid rgb(26 55 26 / 30%);
  border-radius: 50%;
  color: var(--ee-theme-muted) !important;
  display: flex;
  height: 28px;
  justify-content: center;
  right: 0;
  top: 20px;
  width: 28px;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item .remove svg { height: 16px; width: 16px; }
body #astra-mobile-cart-drawer .ee-cart-purchase-details { margin-top: 9px; }
body #astra-mobile-cart-drawer .ee-cart-plan {
  background: #edf2e8;
  border-radius: 999px;
  color: var(--ee-theme-heading);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 9px;
}
body #astra-mobile-cart-drawer .ee-cart-plan--subscription { background: var(--ee-theme-primary-text); }
body #astra-mobile-cart-drawer .ee-cart-subscription-upsell {
  background: var(--ee-theme-soft);
  border: 1px solid rgb(17 70 43 / 18%);
  border-radius: 8px;
  color: var(--ee-theme-heading);
  display: grid;
  font-size: 12px;
  gap: 3px;
  line-height: 1.35;
  margin-top: 9px;
  padding: 10px 11px;
}
body #astra-mobile-cart-drawer .ee-cart-subscription-upsell a { font-size: 12px; font-weight: 700; text-decoration: underline; }
body #astra-mobile-cart-drawer .woocommerce-mini-cart__total {
  align-items: center;
  border: 0 !important;
  color: var(--ee-theme-heading);
  display: flex;
  font-size: 17px;
  justify-content: space-between;
  margin: 18px 0 !important;
  padding: 0 !important;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart__buttons {
  display: grid;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart__buttons .button {
  align-items: center !important;
  display: flex !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  min-height: 56px;
  padding: 0 20px !important;
  text-align: center !important;
  width: 100% !important;
}

/* Astra keeps the mobile header through its tablet breakpoint. Normalize the
   complete icon cluster there too, so 768px does not inherit mixed line boxes. */
@media (max-width: 921px) {
  body #ast-mobile-header .site-header-primary-section-right {
    align-items: center !important;
    gap: 2px;
    justify-content: flex-end !important;
  }
  body #ast-mobile-header .site-header-primary-section-right > .ast-builder-layout-element {
    align-items: center !important;
    display: flex !important;
    height: 44px !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 44px !important;
  }
  body #ast-mobile-header .ast-header-account-wrap,
  body #ast-mobile-header .ast-header-account-inner-wrap,
  body #ast-mobile-header .ast-site-header-cart,
  body #ast-mobile-header .ast-site-header-cart-li {
    align-items: center !important;
    display: flex !important;
    height: 44px !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body #ast-mobile-header .ast-header-account-link,
  body #ast-mobile-header .ast-header-woo-cart .cart-container,
  body #ast-mobile-header .main-header-menu-toggle {
    align-self: center !important;
    height: 44px !important;
    inset: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 44px !important;
    padding: 8px !important;
    position: relative !important;
    vertical-align: middle !important;
    width: 44px !important;
  }
  body #ast-mobile-header .ast-header-account-link .ee-header-line-icon,
  body #ast-mobile-header .ast-header-woo-cart .ee-header-line-icon { height: 28px; width: 28px; }
  body #ast-mobile-header .main-header-menu-toggle .ee-header-line-icon { height: 24px; width: 24px; }
  body #ast-mobile-header .ast-header-woo-cart .astra-icon::after {
    height: 18px;
    min-width: 18px;
    right: -5px !important;
    top: -5px !important;
  }
}

@media (max-width: 767px) {
  .ee-offer-bar__inner { gap: 10px; padding: 8px 10px; }
  .ee-offer-bar__label { font-size: 16px; }
  .ee-offer-bar__timer { gap: 3px; }
  .ee-offer-bar__timer > span { min-width: 24px; }
  .ee-offer-bar__timer b { font-size: 12px; }
  .ee-offer-bar__timer small { font-size: 8px; margin-top: 1px; }
  .ee-offer-bar__timer i { font-size: 9px; }
  body h1,
  body .entry-title,
  body .elementor-heading-title.elementor-size-default:is(h1) { font-size: 36px; }

  body h2,
  body .elementor-heading-title.elementor-size-default:is(h2) { font-size: 40px; line-height: 1.1; }

  /* Match the compact Shopify icon cluster and keep every control on one axis. */
  body #ast-mobile-header .site-header-primary-section-right {
    align-items: center !important;
    gap: 2px;
    justify-content: flex-end !important;
  }
  body #ast-mobile-header .site-header-primary-section-right > .ast-builder-layout-element {
    align-items: center !important;
    display: flex !important;
    height: 44px !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 44px !important;
  }
  body #ast-mobile-header .ast-header-account-wrap,
  body #ast-mobile-header .ast-header-account-inner-wrap,
  body #ast-mobile-header .ast-site-header-cart,
  body #ast-mobile-header .ast-site-header-cart-li {
    align-items: center !important;
    display: flex !important;
    height: 44px !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body #ast-mobile-header .ast-header-account-link,
  body #ast-mobile-header .ast-header-woo-cart .cart-container,
  body #ast-mobile-header .main-header-menu-toggle {
    align-self: center !important;
    height: 44px !important;
    inset: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 44px !important;
    padding: 8px !important;
    position: relative !important;
    vertical-align: middle !important;
    width: 44px !important;
  }
  body #ast-mobile-header .ast-header-account-link .ee-header-line-icon,
  body #ast-mobile-header .ast-header-woo-cart .ee-header-line-icon {
    height: 28px;
    width: 28px;
  }
  body #ast-mobile-header .main-header-menu-toggle .ee-header-line-icon {
    height: 24px;
    width: 24px;
  }
  body #ast-mobile-header .ast-header-woo-cart .astra-icon::after {
    height: 18px;
    min-width: 18px;
    right: -5px !important;
    top: -5px !important;
  }

  body #astra-mobile-cart-drawer .astra-cart-drawer-content { padding: 72px 16px 16px; }
  body #astra-mobile-cart-drawer .woocommerce-mini-cart-item { padding-right: 34px !important; }
  body #astra-mobile-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) { gap: 11px; grid-template-columns: 72px minmax(0, 1fr); }
  body #astra-mobile-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) img { height: 72px !important; width: 72px !important; }
  body #astra-mobile-cart-drawer .woocommerce-mini-cart-item > .quantity,
  body #astra-mobile-cart-drawer .ee-cart-purchase-details { margin-left: 83px; }
}
