/**
 * Héjakút shared frontend and editor styles.
 *
 * Design tokens are defined in theme.json. This file contains component rules
 * that cannot be expressed reliably through Global Styles alone.
 */

:root {
  --Main-White: var(--wp--preset--color--white);
}

::selection {
    background-color: var(--wp--preset--color--primary-dark);
    color: var(--wp--preset--color--white);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

a {
  text-underline-offset: 0.18em;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--wp--preset--color--background);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--wp--preset--color--foreground);
}

.wp-element-button,
.wp-block-button__link {
  min-height: 3rem;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.wp-block-button .wp-element-button:hover,
.wp-block-button .wp-element-button:focus-visible,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible {
  background-color: var(--wp--preset--color--primary-dark);
  border-color: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-hejakut-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--wp--preset--color--primary);
  font-weight: 600;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border-width: 2px;
  font-weight: 600;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible,
.wp-block-button.is-style-hejakut-outline .wp-block-button__link:hover,
.wp-block-button.is-style-hejakut-outline .wp-block-button__link:focus-visible {
  background: var(--wp--preset--color--primary-dark);
  border-color: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-hejakut-text .wp-block-button__link {
  background: transparent;
  border-color: transparent;
  color: var(--wp--preset--color--primary);
  padding-inline: 0;
}

/* Shared 67px CTA treatment used by the Figma button variants. */
:is(
  .hk-product-store-cta__copy .wp-element-button,
  .hk-product-summary__cart .single_add_to_cart_button,
  .wp-block-button.is-style-outline.hk-button--light .wp-block-button__link,
  .wp-block-button.is-style-outline--2 .wp-block-button__link,
  .wp-block-button.is-style-outline--3 .wp-block-button__link,
  .wp-block-button__link.is-style-outline--2,
  .wp-block-button__link.is-style-outline--3,
  .hk-tea-families .wp-block-button__link,
  .hk-product-section__cta .wp-block-button__link,
  .wp-element-button,
  .wp-block-button__link,
  .hk-button-outline
) {
  align-items: center;
  border-style: solid;
  border-width: 2px;
  box-sizing: border-box;
  display: inline-flex;
  font-family: var(--wp--preset--font-family--ui);
  font-size: var(--wp--preset--font-size--h-6);
  font-weight: 500;
  height: 3.5rem;
  justify-content: center;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0 1.5rem;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

:is(
  .hk-product-store-cta__copy .wp-element-button,
  .hk-product-summary__cart .single_add_to_cart_button,
  .wp-block-button.is-style-outline.hk-button--light .wp-block-button__link,
  .wp-block-button.is-style-outline--2 .wp-block-button__link,
  .wp-block-button.is-style-outline--3 .wp-block-button__link,
  .wp-block-button__link.is-style-outline--2,
  .wp-block-button__link.is-style-outline--3,
  .hk-tea-families .wp-block-button__link,
  .hk-product-section__cta .wp-block-button__link,
  .wp-element-button,
  .wp-block-button__link,
  .hk-button-outline
):is(:hover, :focus-visible) {
  background-color: var(--wp--preset--color--primary-dark);
  border-color: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--white);
}

:root :where(.wp-element-button, .wp-block-button__link) {
  border-color: var(--wp--preset--color--primary);
}

.hk-main {
  padding-block: var(--wp--preset--spacing--section);
}

.hk-main--page > .wp-block-post-title,
.hk-main--listing > .wp-block-query-title {
  margin-block-end: var(--wp--preset--spacing--xl);
}

.hk-main--page {
  margin-block: 0;
  padding-block: 0;
}

.hk-page-content {
  background: var(--wp--preset--color--white);
  margin: 0;
  padding-block: calc(4.9375rem + var(--wp--preset--spacing--xl)) var(--wp--preset--spacing--section);
  padding-inline: var(--wp--custom--container--gutter);
}

.hk-page-content > .wp-block-post-content {
  margin-inline: auto;
  width: 100%;
}

.hk-main--page .hk-page-content h2 {
  font-size: var(--wp--custom--page--heading--h-2) !important;
}

.hk-main--page .hk-page-content h3 {
  font-size: var(--wp--custom--page--heading--h-3) !important;
}

.wp-site-blocks > .hk-main--error,
.hk-main--error {
  margin-block: 0;
  min-height: 55vh;
  padding-block: 0;
}

.hk-error-hero__lead {
  line-height: 1.7;
  max-width: 48rem;
}

.hk-error-content {
  background: var(--wp--preset--color--white);
  padding-block: calc(4.9375rem + var(--wp--preset--spacing--xl)) var(--wp--preset--spacing--section);
  padding-inline: var(--wp--custom--container--gutter);
}

.hk-error-content__inner {
  margin-inline: auto;
  max-width: var(--wp--style--global--wide-size);
  width: 100%;
}

.hk-error-actions {
  gap: var(--wp--preset--spacing--sm);
}

.hk-error-help {
  background: var(--wp--preset--color--surface-mint);
  border-radius: var(--wp--custom--radius--md);
  padding: var(--wp--preset--spacing--xl);
}

.hk-error-help h2 {
  font-size: var(--wp--preset--font-size--h-3);
  margin-block: 0 var(--wp--preset--spacing--lg);
  text-align: center;
}

.hk-error-help__action {
  justify-content: center;
}

.hk-error-help .wp-block-button__link {
  background: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}

.hk-error-help__links {
  display: grid;
  gap: var(--wp--preset--spacing--sm);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin-block: 0 var(--wp--preset--spacing--lg);
  padding: 0;
}

.hk-error-help__links li {
  background: var(--wp--preset--color--white);
  border-radius: var(--wp--custom--radius--sm);
  line-height: 1.6;
  padding: var(--wp--preset--spacing--md);
}

.hk-error-help__links a {
  color: var(--wp--preset--color--primary-dark);
  text-decoration: none;
}

.hk-error-help__links a:is(:hover, :focus-visible) {
  text-decoration: underline;
}

@media (max-width: 47.9375rem) {
  .hk-error-content {
    padding-block: calc(4.9375rem + var(--wp--preset--spacing--md)) var(--wp--preset--spacing--2-xl);
  }

  .hk-error-help {
    padding: var(--wp--preset--spacing--md);
  }

  .hk-error-help__links {
    grid-template-columns: 1fr;
  }
}

/* Shared botanical hero layers */

:where(
  .hk-botanical-hero,
  .hk-home-hero,
  .hk-shop-hero,
  .hk-page-hero,
  .hk-blog-hero,
  .hk-article-hero
) {
  isolation: isolate;
  overflow: visible;
  position: relative;
  z-index: 1;
}

:where(
  .hk-botanical-hero,
  .hk-home-hero,
  .hk-shop-hero,
  .hk-page-hero,
  .hk-blog-hero,
  .hk-article-hero
)::before {
  background: url("../images/fooldali-virag.webp") no-repeat right bottom / contain;
  bottom: -6.15rem;
  content: "";
  height: min(49.625rem, 51vw);
  mix-blend-mode: multiply;
  pointer-events: none;
  position: absolute;
  right: 0;
  width: min(59.0625rem, 50vw);
  z-index: 3;
}

:where(
  .hk-botanical-hero,
  .hk-home-hero,
  .hk-shop-hero,
  .hk-page-hero,
  .hk-blog-hero,
  .hk-article-hero
)::after {
  background: url("../images/hero-divider.svg") no-repeat center bottom / 100% 100%;
  bottom: -8.25rem;
  content: "";
  height: 8.3125rem;
  inset-inline: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.hk-home-hero__inner,
.hk-shop-hero .hk-shop-shell,
.hk-page-hero__inner,
.hk-blog-hero__inner,
.hk-article-hero__inner {
  position: relative;
  z-index: 3;
}

/* One breadcrumb type system for storefront and editorial heroes. */

:where(.hk-breadcrumbs, .hk-blog-hero__breadcrumbs, .hk-article-breadcrumbs) {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 400;
  gap: var(--wp--preset--spacing--xs);
  letter-spacing: 0;
  line-height: 1.4;
}

body :is(.hk-breadcrumbs, .hk-blog-hero__breadcrumbs, .hk-article-breadcrumbs) a {
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
}

body :is(.hk-breadcrumbs, .hk-blog-hero__breadcrumbs, .hk-article-breadcrumbs) a:is(:hover, :focus-visible) {
  text-decoration: none;
}

/* Insertable page-header pattern. Dynamic heroes reuse the same component. */

.hk-page-hero {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  margin: 0;
  min-height: 36rem;
  padding-block: clamp(5.5rem, 7vw, 7.5rem) clamp(6rem, 7.5vw, 8rem);
  text-align: left;
}

.hk-page-hero::before {
  bottom: -4rem;
  height: min(38rem, 43vw);
  width: min(48rem, 43vw);
}

.hk-page-hero::after {
  bottom: -4.9375rem;
  height: 5rem;
}

.hk-page-hero .hk-page-hero__inner :where(h1, h2, h3, p),
.hk-page-hero .hk-page-hero__inner .hk-breadcrumbs a {
  color: var(--wp--preset--color--white);
}

.hk-page-hero__inner {
  margin-inline: auto;
  max-width: var(--wp--style--global--wide-size);
  text-align: left;
  width: 100%;
}

.hk-page-hero__inner > * {
  margin-inline: 0 !important;
}

.hk-page-hero h1 {
  margin-block: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--md);
  max-width: 52rem;
}

.hk-page-hero__lead {
  max-width: 48rem;
}

.hk-page-hero__actions {
  margin-block-start: var(--wp--preset--spacing--xl);
}

.hk-page-hero .hk-button--inverse .wp-block-button__link {
  background: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--primary);
}

.hk-page-hero .hk-button--light .wp-block-button__link {
  background: transparent;
  border-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--white);
}

.hk-page-hero :where(.hk-button--inverse, .hk-button--light) .wp-block-button__link:is(:hover, :focus-visible) {
  background: var(--wp--preset--color--primary-dark);
  border-color: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--white);
}

/* Shared fitoterapeuta pattern */

.hk-stats {
  background: var(--wp--preset--color--surface-mint);
  margin-block: 0;
  overflow: clip;
  padding-block: var(--wp--preset--spacing--section);
  padding-inline: var(--wp--custom--container--gutter);
  position: relative;
}

.hk-stats > .alignwide {
  margin-inline: auto;
  max-width: var(--wp--style--global--wide-size);
}

.hk-stats__layout {
  align-items: stretch;
  display: grid;
  gap: var(--wp--preset--spacing--2-xl);
  grid-template-areas: "content portrait";
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hk-stats__portrait {
  grid-area: portrait;
  margin: 0;
}

.hk-stats__portrait img {
  border-radius: var(--wp--custom--radius--md);
  display: block;
  height: 100%;
  max-height: 39.1875rem;
  object-fit: cover;
  width: 100%;
}

.hk-stats__content {
  align-self: center;
  grid-area: content;
}

.hk-stats__content > * {
  margin-inline: 0 !important;
  max-width: none;
}

.hk-stats__grid {
  display: grid;
  gap: var(--wp--preset--spacing--sm);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: var(--wp--preset--spacing--2-xl);
}

.hk-stat {
  margin-block: 0 !important;
  padding: 0;
}

.hk-stat h3 {
  color: var(--wp--preset--color--primary);
  font-size: 2.1875rem;
  margin: 0;
}

.hk-stat p {
  margin-block: var(--wp--preset--spacing--xs) 0;
}

.hk-stats .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

/* Header */

.hk-site-header-wrap,
header.wp-block-template-part:has(> .hk-site-header) {
  position: relative;
  z-index: 30;
}

.hk-sticky-ready .hk-site-header-wrap,
.hk-sticky-ready header.wp-block-template-part:has(> .hk-site-header) {
  position: sticky;
  top: 0;
  transition: opacity 240ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

body.admin-bar.hk-sticky-ready .hk-site-header-wrap,
body.admin-bar.hk-sticky-ready header.wp-block-template-part:has(> .hk-site-header) {
  top: 32px;
}

html.hk-smooth-scroll {
  scroll-behavior: auto;
}

.hk-sticky-ready .hk-site-header-wrap.is-sticky-hidden,
.hk-sticky-ready header.wp-block-template-part:has(> .hk-site-header).is-sticky-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.hk-sticky-ready .hk-site-header-wrap.is-sticky-visible,
.hk-sticky-ready header.wp-block-template-part:has(> .hk-site-header).is-sticky-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hk-site-header {
  color: var(--wp--preset--color--white);
  min-height: 5.4375rem;
  padding-block: var(--wp--preset--spacing--sm);
  position: relative;
  z-index: 30;
}

.hk-site-header a {
  color: inherit;
}

.is-sticky-visible .hk-site-header {
  background: var(--wp--preset--color--white) !important;
  box-shadow: 0 0.375rem 1.5rem rgb(0 80 70 / 12%);
  color: var(--wp--preset--color--primary) !important;
}

.is-sticky-visible .hk-primary-nav,
.is-sticky-visible .hk-primary-nav .wp-block-navigation-item__content {
  color: var(--wp--preset--color--primary) !important;
}

.is-sticky-visible .wp-block-hejakut-theme-logo img,
.is-sticky-visible .wp-block-hejakut-account-link img {
  filter: brightness(0) saturate(100%) invert(38%) sepia(72%) saturate(1322%) hue-rotate(137deg) brightness(93%) contrast(101%);
}

@supports (mask-image: url("../images/hejakut-logo.svg")) or (-webkit-mask-image: url("../images/hejakut-logo.svg")) {
  .is-sticky-visible .wp-block-hejakut-theme-logo,
  .is-sticky-visible .wp-block-hejakut-account-link {
    position: relative;
  }

  .is-sticky-visible .wp-block-hejakut-theme-logo img,
  .is-sticky-visible .wp-block-hejakut-account-link img {
    opacity: 0;
  }

  .is-sticky-visible .wp-block-hejakut-theme-logo::after,
  .is-sticky-visible .wp-block-hejakut-account-link::after {
    background-color: var(--wp--preset--color--primary);
    content: "";
    display: block;
    pointer-events: none;
    position: absolute;
  }

  .is-sticky-visible .wp-block-hejakut-theme-logo::after {
    inset: 0;
    -webkit-mask: url("../images/hejakut-logo.svg") no-repeat center / contain;
    mask: url("../images/hejakut-logo.svg") no-repeat center / contain;
  }

  .is-sticky-visible .wp-block-hejakut-account-link::after {
    height: 1.3125rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    -webkit-mask: url("../images/account-user.svg") no-repeat center / contain;
    mask: url("../images/account-user.svg") no-repeat center / contain;
  }
}

.is-sticky-visible .wp-block-hejakut-account-link,
.is-sticky-visible .hk-header-cart .wc-block-mini-cart__button {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

.is-sticky-visible .hk-header-cart .wc-block-mini-cart__quantity-badge {
  background-image: url("../images/shopping-cart-primary.svg");
}

.hk-site-header__inner {
  gap: var(--wp--preset--spacing--lg);
  min-height: 3.4375rem;
}

.hk-site-header__right {
  flex: 1 1 auto;
  gap: 1.25rem;
  justify-content: flex-end;
  min-width: 0;
}

.hk-primary-nav {
  flex: 0 1 auto;
}

.hk-primary-nav .wp-block-navigation-item__content {
  padding: 0.75rem 0.5rem;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.hk-primary-nav .wp-block-navigation-item__content::before {
  background: currentColor;
  bottom: 0.35rem;
  content: "";
  height: 2px;
  inset-inline: 0.5rem;
  position: absolute;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 400ms ease-in-out;
}

.hk-primary-nav .wp-block-navigation-item__content:hover::before,
.hk-primary-nav .wp-block-navigation-item__content:focus-visible::before,
.hk-primary-nav .current-menu-item > .wp-block-navigation-item__content::before {
  transform: scaleX(1);
}

.hk-site-header__actions {
  flex: 0 0 auto;
  gap: var(--wp--preset--spacing--md);
}

/*
 * A korábbi Site Editor fejléc-verzió a WooCommerce fiókblokkot a
 * navigáció mellé mentette. A kanonikus, Gitben lévő fejléc a
 * hejakut/account-link blokkot használja; ez az átmeneti védelem a mentett
 * felülírás visszaállításáig megakadályozza a dupla fiókikont.
 */
.hk-site-header__right > .wp-block-woocommerce-customer-account {
  display: none;
}

.hk-header-cart {
  height: 3rem;
  width: 3rem;
}

.hejakut-commerce-header-cart .hk-header-cart.wc-block-mini-cart,
body:has(.hk-cart-page) .hk-header-cart.wc-block-mini-cart,
body:has(.hk-checkout-page) .hk-header-cart.wc-block-mini-cart {
  display: none !important;
}

.hk-header-cart .wc-block-mini-cart__button {
  align-items: center;
  border: 2px solid var(--wp--preset--color--white);
  border-radius: var(--wp--custom--radius--pill);
  color: var(--wp--preset--color--white);
  display: flex;
  height: 3rem;
  justify-content: center;
  min-width: 3rem;
  padding: 0.6875rem;
  width: 3rem;
}

.hk-header-cart .wc-block-mini-cart__quantity-badge {
  background: url("../images/shopping-cart.svg") center / 1.4375rem 1.4375rem no-repeat;
  display: block;
  height: 1.4375rem;
  width: 1.4375rem;
}

.hk-header-cart .wc-block-mini-cart__icon {
  display: none;
}

.hk-header-cart .wc-block-mini-cart__badge {
  background: var(--wp--custom--product-family--rose)!important;
  color: var(--wp--preset--color--background)!important;
  top: -6px;
  left:126%;
}

.hk-site-header__actions .wp-block-hejakut-product-search > summary,
.hk-site-header__actions .hk-header-cart .wc-block-mini-cart__button,
.hk-site-header__actions .hk-header-cart--page-link,
.hk-site-header__actions .wp-block-hejakut-account-link {
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.hk-site-header__actions .wp-block-hejakut-product-search > summary:is(:hover, :focus-visible),
.hk-site-header__actions .hk-header-cart .wc-block-mini-cart__button:is(:hover, :focus-visible),
.hk-site-header__actions .hk-header-cart--page-link:is(:hover, :focus-visible),
.hk-site-header__actions .wp-block-hejakut-account-link:is(:hover, :focus-visible) {
  background-color: var(--wp--preset--color--primary-dark);
  border-color: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--white);
}

.is-sticky-visible .hk-site-header__actions .wp-block-hejakut-product-search > summary:is(:hover, :focus-visible),
.is-sticky-visible .hk-site-header__actions .hk-header-cart .wc-block-mini-cart__button:is(:hover, :focus-visible),
.is-sticky-visible .hk-site-header__actions .hk-header-cart--page-link:is(:hover, :focus-visible),
.is-sticky-visible .hk-site-header__actions .wp-block-hejakut-account-link:is(:hover, :focus-visible) {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}

.is-sticky-visible .hk-header-cart .wc-block-mini-cart__button:is(:hover, :focus-visible) .wc-block-mini-cart__quantity-badge {
  background-image: url("../images/shopping-cart.svg");
}

.is-sticky-visible .wp-block-hejakut-account-link:is(:hover, :focus-visible)::after {
  background-color: var(--wp--preset--color--white);
}

.is-sticky-visible .wp-block-hejakut-account-link:is(:hover, :focus-visible) img {
  filter: none;
}

/* WooCommerce Mini-Cart drawer */

.wc-block-mini-cart__drawer {
  color: var(--wp--preset--color--body-text);
  font-family: var(--wp--preset--font-family--body);
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__title {
  color: var(--wp--preset--color--foreground);
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--h-5);
  font-weight: 700;
  line-height: 1.1;
}

.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-title-items-counter-block {
  display: none;
}

.wc-block-mini-cart__drawer .wc-block-components-product-name {
  color: var(--wp--preset--color--foreground);
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600 !important;
  line-height: 1.2;
  text-decoration: none;
}

.wc-block-mini-cart__drawer .wc-block-components-product-name:hover,
.wc-block-mini-cart__drawer .wc-block-components-product-name:focus-visible {
  color: var(--wp--preset--color--primary-dark);
  text-decoration: none;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__image img {
  transform: scale(1.1);
  transform-origin: center;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector {
  background: var(--wp--preset--color--surface-mint);
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: var(--wp--custom--radius--pill);
  color: var(--wp--preset--color--foreground);
  font-family: var(--wp--preset--font-family--body);
  min-height: 2.25rem;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__button {
  color: var(--wp--preset--color--primary);
  font-size: 1.125rem;
  min-height: 2.25rem;
  min-width: 2.25rem;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__input {
  color: var(--wp--preset--color--foreground);
  font-family: var(--wp--preset--font-family--body);
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal {
  border-top: 0;
  box-shadow: none;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__label,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-formatted-money-amount,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__description {
  color: var(--wp--preset--color--foreground);
  font-family: var(--wp--preset--font-family--body) !important;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions a {
  align-items: center;
  border: 2px solid var(--wp--preset--color--primary);
  border-radius: var(--wp--custom--radius--pill);
  display: inline-flex;
  font-family: var(--wp--preset--font-family--ui);
  font-weight: 500;
  justify-content: center;
  letter-spacing: 0.05em;
  min-height: 3.5rem;
  text-decoration: none;
  text-transform: uppercase;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart {
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--primary);
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions a:hover,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions a:focus-visible {
  background: var(--wp--preset--color--primary-dark);
  border-color: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--white);
}

/* Footer */

.hk-site-footer {
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--body);
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--wp--preset--spacing--section);
  position: relative;
}

.hk-site-footer::after {
  background: url("../images/footer-botanical-optimized.webp") no-repeat right bottom / contain;
  bottom: -0.75rem;
  content: "";
  height: min(23.75rem, 58vw);
  mix-blend-mode: multiply;
  pointer-events: none;
  position: absolute;
  right: -1.25rem;
  width: min(21.9375rem, 48vw);
  z-index: -1;
}

.hk-site-footer a {
  color: inherit;
  text-decoration: none;
}

.hk-site-footer a:hover,
.hk-site-footer a:focus-visible {
  text-decoration: none;
}

.hk-site-footer__columns {
  align-items: start;
  display: grid;
  gap: var(--wp--preset--spacing--xl);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hk-site-footer__column {
  align-self: start;
  margin: 0;
}

.hk-site-footer__columns > .hk-site-footer__column {
  margin-block-start: 0 !important;
}

.hk-site-footer__column > * + * {
  margin-block-start: var(--wp--preset--spacing--sm);
}

.hk-site-footer__column h3 {
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--h-4);
  font-style: normal;
  font-weight: 700;
  line-height: 110%;
  margin: 0 0 var(--wp--preset--spacing--sm);
}

.hk-footer-nav {
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--body);
  letter-spacing: 0;
  text-transform: none;
}

.hk-footer-nav .wp-block-navigation__container {
  align-items: flex-start;
  gap: var(--wp--preset--spacing--sm);
  width: 100%;
}

.hk-footer-nav .wp-block-navigation-item__content {
  padding: 0;
}

.hk-cookie-settings {
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--body);
  margin-block: var(--wp--preset--spacing--sm) 0;
}

.hk-cookie-settings a {
  color: inherit;
  text-decoration: none;
}

.hk-cookie-settings a:is(:hover, :focus-visible) {
  text-decoration: underline;
}

.hk-site-footer__contact p {
  font-family: var(--wp--preset--font-family--body);
  margin-block: var(--wp--preset--spacing--sm);
}

.hk-footer-socials {
  align-items: center;
  display: flex;
  gap: var(--wp--preset--spacing--sm);
  margin-block-start: var(--wp--preset--spacing--lg) !important;
}

.hk-footer-socials__link {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  height: 3.125rem;
  transition: opacity 180ms ease, transform 180ms ease;
  width: 3.0625rem;
}

.hk-footer-socials__link:hover,
.hk-footer-socials__link:focus-visible {
  opacity: 0.86;
  transform: scale(1.04);
}

.hk-footer-socials__link--facebook {
  background-image: url("../images/facebook.svg");
}

.hk-footer-socials__link--instagram {
  background-image: url("../images/instagram.svg");
}

.hk-site-footer__bottom {
  font-size: var(--wp--preset--font-size--body);
  margin-block-start: var(--wp--preset--spacing--xl);
  min-height: 1.5rem;
}

.hk-site-footer__bottom p {
  margin: 0;
}

.hk-site-footer .hk-site-footer__bottom {
  column-gap: var(--wp--preset--spacing--xs);
  justify-content: flex-start;
  row-gap: var(--wp--preset--spacing--2-xs);
}

.hk-site-footer__credit-separator {
  margin-inline-end: var(--wp--preset--spacing--xs);
}

@media (max-width: 83.75rem) {
  .hk-site-header__right {
    gap: var(--wp--preset--spacing--xs);
  }

  .hk-site-header__actions {
    order: 1;
  }

  .hk-site-header__actions > .hk-header-cart {
    order: 1;
  }

  .hk-site-header__actions > .wp-block-hejakut-account-link {
    order: 2;
  }

  .hk-primary-nav {
    order: 2;
  }

  .hk-primary-nav .wp-block-navigation__responsive-container-open {
    align-items: center;
    color: currentColor;
    display: flex;
    height: 3rem;
    justify-content: center;
    padding: 0;
    width: 3rem;
  }

  .hk-primary-nav .wp-block-navigation__responsive-container-open svg {
    display: none;
  }

  .hk-primary-nav .wp-block-navigation__responsive-container-open::before {
    background: currentColor;
    box-shadow: 0 -0.4375rem 0 currentColor, 0 0.4375rem 0 currentColor;
    content: "";
    display: block;
    height: 2px;
    width: 1.5rem;
  }

  .hk-primary-nav
    .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  .hk-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    color: var(--wp--preset--color--white);
    height: 100vh;
    height: 100dvh;
    inset: 0;
    max-height: none;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    padding: var(--wp--preset--spacing--lg);
    position: fixed;
    width: 100vw;
  }

  .hk-primary-nav
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-close,
  .hk-primary-nav
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-dialog,
  .hk-primary-nav
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content {
    height: 100% !important;
    width: 100% !important;
  }

  .hk-primary-nav
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-close {
    max-width: none !important;
  }

  .hk-primary-nav
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-dialog {
    display: flex;
    flex-direction: column;
  }

  .hk-primary-nav
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content {
    align-items: center !important;
    box-sizing: border-box;
    justify-content: center !important;
    min-height: 100%;
    padding: 3.5rem 0 1rem !important;
  }

  .is-sticky-visible
    .hk-primary-nav
    .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white) !important;
  }

  .is-sticky-visible
    .hk-primary-nav
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content {
    color: var(--wp--preset--color--white) !important;
  }

  .hk-primary-nav
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container {
    align-items: center !important;
    gap: var(--wp--preset--spacing--xs) !important;
    justify-content: center !important;
    margin: auto !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hk-primary-nav
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item {
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .hk-primary-nav
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content {
    display: inline-flex !important;
    justify-content: center !important;
    padding: 0.625rem 0.75rem !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .hk-primary-nav
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content::before {
    bottom: 0.2rem;
    inset-inline: 0.75rem;
  }
}

@media (max-width: 64rem) {
  .hk-site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hk-stats__layout {
    grid-template-areas:
      "content"
      "portrait";
    grid-template-columns: 1fr;
  }

  .hk-stats__portrait img {
    max-height: 38rem;
  }
}

@media (max-width: 47.9375rem) {
  /* One mobile density scale keeps editorial and component spacing in sync. */
  :root {
    --wp--preset--font-size--body: 14px;
    --wp--preset--font-size--sm: var(--wp--custom--mobile--small-text);
    --wp--preset--font-size--h-1: var(--wp--custom--mobile--heading--h-1);
    --wp--preset--font-size--h-2: var(--wp--custom--mobile--heading--h-2);
    --wp--preset--font-size--h-3: var(--wp--custom--mobile--heading--h-3);
    --wp--preset--font-size--h-4: var(--wp--custom--mobile--heading--h-4);
    --wp--preset--font-size--h-5: var(--wp--custom--mobile--heading--h-5);
    --wp--preset--spacing--2-xs: var(--wp--custom--mobile--spacing--xxs);
    --wp--preset--spacing--xs: var(--wp--custom--mobile--spacing--xs);
    --wp--preset--spacing--sm: var(--wp--custom--mobile--spacing--sm);
    --wp--preset--spacing--md: var(--wp--custom--mobile--spacing--md);
    --wp--preset--spacing--lg: var(--wp--custom--mobile--spacing--lg);
    --wp--preset--spacing--xl: var(--wp--custom--mobile--spacing--xl);
    --wp--preset--spacing--2-xl: var(--wp--custom--mobile--spacing--xxl);
    --wp--preset--spacing--3-xl: var(--wp--custom--mobile--spacing--xxxl);
    --wp--preset--spacing--section: var(--wp--custom--mobile--spacing--section);
    --wp--custom--page--heading--h-2: var(--wp--custom--mobile--heading--h-2);
    --wp--custom--page--heading--h-3: var(--wp--custom--mobile--heading--h-3);
  }

  body {
    font-size: var(--wp--preset--font-size--body)!important;
  }

  body p {
    font-size: 14px !important;
  }

  main :where(h1, .has-h-1-font-size) {
    font-size: var(--wp--custom--mobile--heading--h-1) !important;
  }

  main :where(h2, .has-h-2-font-size) {
    font-size: var(--wp--custom--mobile--heading--h-2) !important;
  }

  main :where(h3, .has-h-3-font-size) {
    font-size: var(--wp--custom--mobile--heading--h-3) !important;
  }

  main :where(h4, .has-h-4-font-size) {
    font-size: var(--wp--custom--mobile--heading--h-4) !important;
  }

  main :where(h5, .has-h-5-font-size) {
    font-size: var(--wp--custom--mobile--heading--h-5) !important;
  }

  main .wp-block-buttons > .wp-block-button,
  main .wp-block-buttons > .wp-block-button > .wp-block-button__link {
    width: 100%;
  }

  main .wp-block-buttons > .wp-block-button > .wp-block-button__link {
    height: auto;
    min-height: 3rem;
    font-size: var(--wp--preset--font-size--body);
    padding-block: var(--wp--preset--spacing--xs);
    text-align: center;
    white-space: normal;
  }

  main :is(.wp-element-button, .hk-button-outline):not(.wp-block-button__link) {
    font-size: var(--wp--preset--font-size--body);
    height: 3rem;
    min-height: 3rem;
  }

  .wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions a {
    font-size: var(--wp--preset--font-size--body);
    min-height: 3rem;
  }

  :where(
    .hk-botanical-hero,
    .hk-home-hero,
    .hk-shop-hero,
    .hk-page-hero,
    .hk-blog-hero,
    .hk-article-hero
  )::before {
    bottom: calc(-4rem + var(--wp--preset--spacing--2-xs));
    height: 17rem;
    right: 0;
    width: 100%;
  }

  :where(
    .hk-botanical-hero,
    .hk-home-hero,
    .hk-shop-hero,
    .hk-page-hero,
    .hk-blog-hero,
    .hk-article-hero
  )::after {
    bottom: -4rem;
    height: 4rem;
  }

  .hk-page-hero {
    min-height: 25.2rem;
    padding-block: 4rem 5.2rem;
  }

  .hk-page-hero::before {
    bottom: -3rem;
    height: 14rem;
    width: min(24rem, 88vw);
  }

  .hk-page-hero::after {
    bottom: -3.5rem;
    height: 3.5rem;
  }

  .hk-page-hero__actions,
  .hk-page-hero__actions .wp-block-button,
  .hk-page-hero__actions .wp-block-button__link {
    width: 100%;
  }

  .hk-page-content {
    padding-block: calc(2.8rem + var(--wp--preset--spacing--lg)) var(--wp--preset--spacing--2-xl);
  }

  .hk-stats {
    padding-block: var(--wp--preset--spacing--lg);
  }

  .hk-stats__layout {
    gap: var(--wp--preset--spacing--lg);
    grid-template-areas:
      "portrait"
      "content";
  }

  .hk-stats__grid {
    gap: var(--wp--preset--spacing--sm);
    margin-block: var(--wp--preset--spacing--lg);
  }

  .wp-block-hejakut-theme-logo {
    max-width: 8.4rem;
  }

  .hk-site-header,
  .hk-site-header__inner {
    min-height: 3.6rem;
  }

  .hk-site-header__inner,
  .hk-site-header__right {
    gap: var(--wp--preset--spacing--sm);
  }

  .hk-site-header__actions {
    gap: var(--wp--preset--spacing--xs);
  }

  .hk-site-footer__columns {
    grid-template-columns: 1fr;
  }

  .hk-site-footer__bottom {
    margin-block-start: var(--wp--preset--spacing--lg);
  }
}

@media (max-width: 48.875rem) {
  body.admin-bar.hk-sticky-ready .hk-site-header-wrap,
  body.admin-bar.hk-sticky-ready header.wp-block-template-part:has(> .hk-site-header) {
    top: 46px;
  }
}

@media (max-width: 37.5rem) {
  body.admin-bar.hk-sticky-ready .hk-site-header-wrap,
  body.admin-bar.hk-sticky-ready header.wp-block-template-part:has(> .hk-site-header) {
    top: 0;
  }
}

@media (max-width: 40rem) {
  .hk-site-header .hk-site-header__inner,
  .hk-site-header .hk-site-header__right,
  .hk-site-header .hk-site-header__actions {
    gap: var(--wp--custom--header--mobile-gap);
  }

  .hk-site-header__inner {
    justify-content: space-between;
  }

  .hk-site-header__right {
    flex: 0 0 auto;
    min-width: 0;
  }

  .hk-site-header__actions {
    flex: 0 0 auto;
  }

  .is-sticky-visible .wp-block-hejakut-theme-logo::after {
    -webkit-mask: url("../images/hejakut-logo-mark.svg") no-repeat center / contain;
    mask: url("../images/hejakut-logo-mark.svg") no-repeat center / contain;
  }
}

@media (max-width: 21.875rem) {
  .hk-site-header .hk-site-header__inner,
  .hk-site-header .hk-site-header__right,
  .hk-site-header .hk-site-header__actions {
    gap: var(--wp--custom--mobile--spacing--xxs);
  }
}

@media (max-width: 30rem) {
  .hk-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hk-footer-socials__link:hover,
  .hk-footer-socials__link:focus-visible {
    transform: none;
  }

  .hk-need-card {
    padding: var(--wp--preset--spacing--md);
  }

  .hk-home p,
  .hk-section-heading h2 + p,
  .hk-need-card--featured p,
  .hk-section-heading > p:not(.hk-eyebrow),
  .hk-product-section .hk-product-card__description,
  .hk-ebook__description p,
  .hk-product-section__heading h2 + p {
     font-size: 14px!important;
  }

}
