/* STOREFRONT LAYOUT & MEDIA
 * Stable presentation refinements for shared storefront surfaces.
 * WooCommerce remains owner of product, variation, cart, checkout, payment,
 * order, stock and customer state.
 */

/* IMAGE ROLES + RESPONSIVE FOCAL DISCIPLINE */
body.home .mahamu-product-hero-image,
body.home .mahamu-collection-discovery figure,
body.home .mahamu-gift-feature figure,
.mahamu-product-archive .wc-block-components-product-image,
.mahamu-product-page .mahamu-product-gallery {
  overflow: hidden;
  background: var(--wp--custom--color--surface--editorial);
}
body.home .mahamu-product-hero-image img,
.mahamu-product-archive .wc-block-components-product-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain !important;
  object-position: 50% 50%;
  background: var(--wp--custom--color--surface--editorial);
}
.mahamu-product-archive .wc-block-components-product-image img {
  border-radius: 0 !important;
}
.mahamu-product-page .mahamu-product-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain !important;
  object-position: 50% 50%;
  background: var(--wp--custom--color--surface--editorial);
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.home .mahamu-collection-discovery figure img,
body.home .mahamu-gift-feature figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: 50% 50%;
  background: var(--wp--custom--color--surface--editorial);
}
body.home .mahamu-story-band figure { overflow: hidden; margin: 0; }
body.home .mahamu-story-band figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 42%;
}

/* PRODUCT GRID / HAIRLINE DISCIPLINE */
.mahamu-product-archive .wc-block-product-template {
  column-gap: clamp(16px, 2vw, 28px) !important;
  row-gap: clamp(28px, 4vw, 48px) !important;
}
.mahamu-product-archive .wc-block-product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-top: var(--wp--custom--space--md);
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.mahamu-product-archive .wc-block-components-product-image { margin-bottom: 0 !important; }
.mahamu-product-archive .wp-block-post-title { margin: 14px 0 4px !important; line-height: 1.38 !important; }
.mahamu-product-archive .mahamu-product-card-descriptor { min-height: 2.9em; }
.mahamu-product-archive .wp-block-woocommerce-product-button .wp-element-button { margin-top: 4px; }

@media (max-width: 782px) {
  .mahamu-product-archive {
    padding-top: 28px !important;
    padding-bottom: var(--wp--custom--space--xxl) !important;
  }
  .mahamu-product-archive .wc-block-product-template {
    grid-template-columns: repeat(2, minmax(156px, 1fr)) !important;
  }
  .mahamu-product-archive .mahamu-shop-categories {
    display: flex !important;
    width: 100%;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
    gap: var(--wp--custom--space--xs) !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: inline proximity;
    padding-bottom: 4px;
  }
  .mahamu-product-archive .mahamu-shop-categories::-webkit-scrollbar { display: none; }
  .mahamu-product-archive .mahamu-shop-categories .wp-block-button { flex: 0 0 auto; scroll-snap-align: start; }
  .mahamu-product-archive .mahamu-shop-categories .wp-element-button { min-height: var(--wp--custom--size--tap-target-min); white-space: nowrap; }
}

/* HOMEPAGE EDITORIAL-COMMERCE RHYTHM */
body.home .mahamu-home-hero > .wp-block-columns { align-items: center !important; }
body.home .mahamu-hero-product-pair {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center !important;
  gap: clamp(10px, 1.6vw, 20px) !important;
}
body.home .mahamu-hero-product-pair > .wp-block-column { width: auto !important; flex-basis: auto !important; }
body.home .mahamu-hero-product-pair > .wp-block-column:nth-child(2) { transform: translateY(6%); }
body.home .mahamu-collection-discovery > .wp-block-columns,
body.home .mahamu-gift-feature > .wp-block-columns,
body.home .mahamu-story-band > .wp-block-columns { gap: clamp(28px, 5vw, 72px) !important; }
body.home .mahamu-collection-card + .mahamu-collection-card { padding-top: 28px; border-top: 1px solid var(--wp--custom--color--border--subtle); }
body.home .mahamu-featured-products,
body.home .mahamu-journal-preview { border-top: 1px solid var(--wp--custom--color--border--subtle); }

/* Keep the approved desktop hero copy within a readable three-line measure. */
@media (min-width: 783px) {
  body.home .mahamu-home-hero > .wp-block-columns > .wp-block-column:first-child {
    flex-basis: 46% !important;
  }
  body.home .mahamu-home-hero > .wp-block-columns > .wp-block-column:nth-child(2) {
    flex-basis: 54% !important;
  }
  body.home .mahamu-home-hero h1 {
    max-width: none;
    font-size: clamp(40px, 4.2vw, 60px) !important;
  }
}

/* HOMEPAGE V2 — OWNER-APPROVED MOCKUP, DURABLE THEME OWNER */
.mahamu-home-v2-shell {
  --mh-home-max: var(--wp--custom--layout--content-brand);
  --mh-home-commerce: var(--wp--custom--layout--content-commerce);
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  color: var(--wp--custom--color--text--primary);
  background: var(--wp--custom--color--surface--canvas);
}
.mahamu-home-v2-shell * { box-sizing: border-box; }
.mahamu-home-v2-shell a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mahamu-home-v2-shell .mahamu-home-v2-inner:not(.mahamu-layout-frame) {
  width: min(calc(100% - 64px), var(--mh-home-max));
  max-width: none !important;
  margin-inline: auto;
}
.mahamu-home-v2-shell .mahamu-home-v2-inner-commerce:not(.mahamu-layout-frame) {
  width: min(calc(100% - 64px), var(--mh-home-commerce));
  max-width: none !important;
  margin-inline: auto;
}
.mahamu-home-v2-shell .mahamu-home-v2-eyebrow {
  margin: 0 0 var(--wp--custom--space--md);
  color: var(--wp--custom--color--text--secondary);
  font-family: var(--wp--custom--font--family--ui);
  font-size: 12px;
  font-weight: var(--wp--custom--font--weight--medium);
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mahamu-home-v2-shell h1,
.mahamu-home-v2-shell h2,
.mahamu-home-v2-shell h3 {
  font-family: var(--wp--custom--font--family--ui);
  font-weight: var(--wp--custom--font--weight--medium);
  text-wrap: balance;
}
.mahamu-home-v2-shell p { font-family: var(--wp--custom--font--family--ui); }

.mahamu-home-v2-hero {
  padding: 0 !important;
  background: var(--wp--custom--color--surface--canvas) !important;
}
.mahamu-home-v2-hero > .wp-block-columns {
  width: min(100vw, var(--mh-home-max));
  max-width: none !important;
  min-height: 520px;
  margin: 0 auto !important;
  gap: 0 !important;
  align-items: stretch !important;
}
.mahamu-home-v2-hero .mahamu-home-v2-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 40px 64px 64px;
}
.mahamu-home-v2-hero h1 {
  max-width: 560px;
  margin: 0 0 22px !important;
  font-size: 52px !important;
  line-height: 1.08 !important;
}
.mahamu-home-v2-hero .mahamu-home-v2-lede {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--wp--custom--color--text--primary);
  font-size: 17px;
  line-height: 1.65;
}
.mahamu-home-v2-hero .wp-block-buttons { margin: 0; }
.mahamu-home-v2-hero .wp-element-button {
  display: inline-flex;
  min-height: var(--wp--custom--size--control-min-height);
  align-items: center;
  gap: var(--wp--custom--space--sm);
  padding: 12px 22px;
  border-radius: var(--wp--custom--radius--control);
  background: var(--wp--custom--color--action--primary);
  color: var(--wp--custom--color--text--on-action);
  box-shadow: none;
}
.mahamu-home-v2-hero .mahamu-home-v2-hero-media,
.mahamu-home-v2-hero .mahamu-home-v2-hero-media figure { height: 100%; margin: 0; }
.mahamu-home-v2-hero .mahamu-home-v2-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  background: var(--wp--custom--color--surface--editorial);
}

/* HOMEPAGE HERO V3 — full-bleed editorial surface.
 * Gutenberg owns content; this theme block owns presentation only.
 */
body.home .mahamu-home-v3-hero {
  position: relative;
  display: grid;
  width: 100vw;
  max-width: none !important;
  min-height: clamp(640px, 78svh, 820px);
  margin-inline: calc(50% - 50vw) !important;
  padding: 0 !important;
  overflow: hidden;
  isolation: isolate;
  background: var(--wp--custom--color--surface--editorial);
}
body.home .mahamu-home-v3-hero > .mahamu-home-v3-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}
body.home .mahamu-home-v3-hero > .mahamu-home-v3-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
body.home .mahamu-home-v3-hero .mahamu-home-v3-hero-content {
  display: flex;
  align-items: center;
  width: min(100%, var(--mh-home-max));
  min-height: inherit;
  margin-inline: auto;
  padding-inline: var(--wp--custom--space--gutter-desktop);
  box-sizing: border-box;
}
body.home .mahamu-home-v3-hero .mahamu-home-v3-hero-copy {
  width: min(100%, 440px);
  max-width: 34.5vw;
  color: var(--wp--custom--color--text--primary);
  transform: translateY(clamp(-40px, -3vw, -24px));
}
body.home .mahamu-home-v3-hero h1 {
  max-width: 440px;
  margin: 0 0 var(--wp--custom--space--lg) !important;
  font-family: var(--wp--custom--font--family--ui);
  font-size: clamp(44px, 4.1vw, 56px) !important;
  font-weight: var(--wp--custom--font--weight--medium);
  line-height: 1.06 !important;
  text-wrap: balance;
}
body.home .mahamu-home-v3-hero .mahamu-home-v3-lede {
  max-width: 400px;
  margin: 0 0 var(--wp--custom--space--lg) !important;
  color: var(--wp--custom--color--text--primary);
  font-family: var(--wp--custom--font--family--ui);
  font-size: 17px;
  line-height: 1.65;
}
body.home .mahamu-home-v3-hero .wp-block-buttons { margin: 0; }
body.home .mahamu-home-v3-hero .wp-element-button {
  display: inline-flex;
  min-height: var(--wp--custom--size--control-min-height);
  align-items: center;
  padding: 12px 22px;
  border: 1px solid var(--wp--custom--color--action--primary);
  border-radius: var(--wp--custom--radius--control);
  background: var(--wp--custom--color--action--primary);
  color: var(--wp--custom--color--text--on-action);
  box-shadow: none;
  font-family: var(--wp--custom--font--family--ui);
  font-weight: var(--wp--custom--font--weight--medium);
}
@media (max-width: 1024px) {
  body.home .mahamu-home-v3-hero .mahamu-home-v3-hero-content {
    padding-inline: var(--wp--custom--space--gutter-tablet);
  }
}
@media (max-width: 900px) {
  body.home .mahamu-home-v3-hero {
    display: block;
    width: 100vw;
    min-height: 0;
    overflow: visible;
    background: var(--wp--custom--color--surface--canvas);
  }
  body.home .mahamu-home-v3-hero > .mahamu-home-v3-hero-media {
    position: relative;
    inset: auto;
    z-index: auto;
    width: 100%;
    height: auto;
  }
  body.home .mahamu-home-v3-hero > .mahamu-home-v3-hero-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 58% center;
  }
  body.home .mahamu-home-v3-hero .mahamu-home-v3-hero-content {
    display: block;
    width: 100%;
    min-height: 0;
    padding-block: clamp(22px, 3.5vw, 30px) clamp(30px, 4vw, 38px);
    background: var(--wp--custom--color--surface--canvas);
  }
  body.home .mahamu-home-v3-hero .mahamu-home-v3-hero-copy {
    width: 100%;
    max-width: none;
    transform: none;
  }
  body.home .mahamu-home-v3-hero h1 {
    max-width: 100%;
    margin-bottom: var(--wp--custom--space--sm) !important;
    font-size: clamp(34px, 5vw, 40px) !important;
    line-height: 1.1 !important;
  }
  body.home .mahamu-home-v3-hero .mahamu-home-v3-lede {
    max-width: 100%;
    margin-bottom: 18px !important;
    font-size: 16px;
    line-height: 1.55;
  }
  body.home .mahamu-home-v3-hero .wp-element-button {
    min-height: var(--wp--custom--size--control-min-height);
    padding: 11px 18px;
  }
}
@media (max-width: 640px) {
  body.home .mahamu-home-v3-hero .mahamu-home-v3-hero-content {
    padding-inline: var(--wp--custom--space--gutter-mobile);
  }
}

.mahamu-home-v2-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100vw, var(--mh-home-max));
  max-width: none !important;
  margin: 0 auto;
  border-block: 1px solid var(--wp--custom--color--border--subtle);
  background: var(--wp--custom--color--surface--transaction);
}
.mahamu-home-v2-trust-item {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: var(--wp--custom--space--sm);
  padding: 12px 18px;
  font-family: var(--wp--custom--font--family--ui);
  font-size: 13px;
  font-weight: var(--wp--custom--font--weight--medium);
  line-height: 1.35;
  text-align: center;
}
.mahamu-home-v2-trust-item + .mahamu-home-v2-trust-item { border-left: 1px solid var(--wp--custom--color--border--subtle); }
.mahamu-home-v2-trust svg,
.mahamu-home-v2-navigator-card svg {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mahamu-home-v2-navigator {
  padding: 68px 0 58px !important;
  background: var(--wp--custom--color--surface--canvas);
}
.mahamu-home-v2-navigator h2 {
  margin: 0 0 38px !important;
  font-size: 32px !important;
  line-height: 1.16 !important;
  text-align: center;
}
.mahamu-home-v2-navigator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(calc(100% - 64px), var(--mh-home-commerce));
  margin: 0 auto;
}
.mahamu-home-v2-navigator-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--wp--custom--space--xs);
  padding: 10px 28px 8px;
  color: inherit;
  text-align: center;
  text-decoration: none !important;
}
.mahamu-home-v2-navigator-card + .mahamu-home-v2-navigator-card { border-left: 1px solid var(--wp--custom--color--border--subtle); }
.mahamu-home-v2-navigator-card svg { width: 36px; height: 36px; margin-bottom: var(--wp--custom--space--xs); }
.mahamu-home-v2-navigator-title {
  font-family: var(--wp--custom--font--family--ui);
  font-size: 16px;
  font-weight: var(--wp--custom--font--weight--medium);
  line-height: 1.35;
}
.mahamu-home-v2-navigator-meta {
  color: var(--wp--custom--color--text--secondary);
  font-family: var(--wp--custom--font--family--ui);
  font-size: 12.5px;
  font-weight: var(--wp--custom--font--weight--regular);
  line-height: 1.45;
}

.mahamu-home-v2-products {
  padding: 20px 0 82px !important;
  background: var(--wp--custom--color--surface--canvas);
}
.mahamu-home-v2-products > .mahamu-home-v2-inner:not(.mahamu-layout-frame) { width: min(calc(100% - 64px), var(--mh-home-max)); }
.mahamu-home-v2-products .mahamu-home-v2-products-heading {
  margin: 0 0 var(--wp--custom--space--lg) !important;
  font-size: 26px !important;
  line-height: 1.2 !important;
  letter-spacing: .08em;
}
.mahamu-home-v2-product-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}
.mahamu-home-v2-product-grid > *,
.mahamu-home-v2-familiar-grid > *,
.mahamu-home-v2-balms-grid > *,
.mahamu-home-v2-place-gift-grid > * { margin-block-start: 0 !important; }
.mahamu-home-v2-product-card { min-width: 0; }
.mahamu-home-v2-product-card .wc-block-components-product-image {
  overflow: hidden;
  margin: 0 0 14px !important;
  background: var(--wp--custom--color--surface--editorial);
}
.mahamu-home-v2-product-card .wc-block-components-product-image img {
  display: block;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  background: var(--wp--custom--color--surface--editorial);
}
.mahamu-home-v2-product-card .wp-block-post-title {
  min-height: 2.7em;
  margin: 0 0 5px !important;
  font-family: var(--wp--custom--font--family--ui) !important;
  font-size: 14px !important;
  font-weight: var(--wp--custom--font--weight--semibold) !important;
  line-height: 1.35 !important;
}
.mahamu-home-v2-product-card .wp-block-post-title a { color: inherit; text-decoration: none !important; }
.mahamu-home-v2-product-card .mahamu-home-product-descriptor {
  min-height: 3.35em;
  margin: 0 0 7px;
  color: var(--wp--custom--color--text--secondary);
  font-size: 11.5px;
  line-height: 1.45;
}
.mahamu-home-v2-product-card .wc-block-components-product-price {
  margin: 0 0 5px;
  font-family: var(--wp--custom--font--family--ui);
  font-size: 14px;
  font-weight: var(--wp--custom--font--weight--semibold);
  line-height: 1.35;
}
.mahamu-home-v2-product-card .wc-block-components-product-rating { margin: 0 !important; font-size: 12px; }
.mahamu-home-v2-products-mobile-cta { display: none !important; }

.mahamu-home-v2-signature {
  padding: 0 !important;
  background: var(--wp--custom--color--surface--editorial) !important;
}
.mahamu-home-v2-signature > .wp-block-columns {
  width: min(100%, var(--mh-home-max));
  margin: 0 auto !important;
  gap: 0 !important;
  align-items: stretch !important;
}
.mahamu-home-v2-signature figure { height: 100%; margin: 0 !important; }
.mahamu-home-v2-signature img { display: block; width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.mahamu-home-v2-signature .mahamu-home-v2-signature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px;
}
.mahamu-home-v2-signature h2 { margin: 0 0 22px !important; font-size: 34px !important; line-height: 1.16 !important; }
.mahamu-home-v2-signature p { max-width: 560px; margin: 0 0 20px; font-size: 16px; line-height: 1.7; }

.mahamu-home-v2-familiar {
  padding: var(--wp--custom--space--section-commerce) 0 0 !important;
  background: var(--wp--custom--color--surface--canvas);
}
.mahamu-home-v2-familiar > .mahamu-home-v2-inner:not(.mahamu-layout-frame) { width: min(calc(100% - 64px), var(--mh-home-max)); }
.mahamu-home-v2-familiar > .mahamu-home-v2-inner > h2 { margin: 0 0 var(--wp--custom--space--xl) !important; font-size: 32px !important; line-height: 1.16 !important; }
.mahamu-home-v2-familiar-grid {
  display: block;
  max-width: var(--wp--custom--layout--content-reading);
}
.mahamu-home-v2-familiar-item {
  display: block;
  padding-top: var(--wp--custom--space--lg);
  border-top: 1px solid var(--wp--custom--color--border--subtle);
}
.mahamu-home-v2-familiar-item:nth-child(n+2) { display: none; }
.mahamu-home-v2-familiar-item figure { display: none; }
.mahamu-home-v2-familiar-item h3 { margin: 0 0 5px !important; font-size: 19px !important; line-height: 1.3 !important; }
.mahamu-home-v2-familiar-item .mahamu-home-v2-familiar-kicker { margin: 0 0 var(--wp--custom--space--xs); font-size: 15px; font-weight: var(--wp--custom--font--weight--medium); line-height: 1.5; }
.mahamu-home-v2-familiar-item p { margin: 0 0 var(--wp--custom--space--xs); color: var(--wp--custom--color--text--secondary); font-size: 14px; line-height: 1.65; }

.mahamu-home-v2-balms {
  padding: var(--wp--custom--space--section-commerce) 0 !important;
  background: var(--wp--custom--color--surface--canvas);
}
.mahamu-home-v2-balms > .mahamu-home-v2-inner-commerce:not(.mahamu-layout-frame) { width: min(calc(100% - 64px), var(--mh-home-commerce)); }
.mahamu-home-v2-balms h2 { margin: 0 0 var(--wp--custom--space--lg) !important; font-size: 32px !important; line-height: 1.16 !important; text-align: center; }
.mahamu-home-v2-balms-grid {
  display: grid;
  width: min(100%, 1040px);
  margin-inline: auto !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  border: 0;
}
.mahamu-home-v2-balm { min-width: 0; padding: 0 0 var(--wp--custom--space--lg); }
.mahamu-home-v2-balm + .mahamu-home-v2-balm { border: 0; }
.mahamu-home-v2-balm h3 { margin: 0 0 var(--wp--custom--space--xs) !important; font-size: 17px !important; line-height: 1.35 !important; }
.mahamu-home-v2-balm p { margin: 0; color: var(--wp--custom--color--text--secondary); font-size: 13px; line-height: 1.6; }

.mahamu-home-v2-reviews {
  padding: 64px 0 !important;
  background: var(--wp--custom--color--surface--editorial) !important;
}
.mahamu-home-v2-reviews > .mahamu-home-v2-inner-commerce:not(.mahamu-layout-frame) { width: min(calc(100% - 64px), var(--mh-home-commerce)); }
.mahamu-home-v2-reviews h2 { margin: 0 0 10px !important; font-size: 32px !important; line-height: 1.16 !important; }
.mahamu-home-v2-review-note { margin: 0 0 26px !important; color: var(--wp--custom--color--text--secondary); font-size: 13px !important; }
.mahamu-home-v2-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--custom--space--xl); }
.mahamu-home-v2-review-grid blockquote { margin: 0; padding: 22px 0 0; border-top: 1px solid var(--wp--custom--color--border--subtle); }
.mahamu-home-v2-review-grid blockquote p { margin: 0 0 var(--wp--custom--space--sm); font-size: 16px; line-height: 1.75; }
.mahamu-home-v2-review-grid cite {
  color: var(--wp--custom--color--text--secondary);
  font-family: var(--wp--custom--font--family--ui);
  font-size: 12px;
  font-weight: var(--wp--custom--font--weight--regular);
  line-height: 1.5;
}

.mahamu-home-v2-place-gift {
  padding: 72px 0 92px !important;
  background: var(--wp--custom--color--surface--canvas);
}
.mahamu-home-v2-place-gift > .mahamu-home-v2-inner:not(.mahamu-layout-frame) { width: min(calc(100% - 64px), var(--mh-home-max)); }
.mahamu-home-v2-place-gift-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--custom--space--xl); }
.mahamu-home-v2-place-gift-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  min-width: 0;
  gap: 0;
  background: var(--wp--custom--color--surface--editorial);
}
.mahamu-home-v2-place-gift-card figure { height: 100%; margin: 0 !important; }
.mahamu-home-v2-place-gift-card img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.mahamu-home-v2-place-gift-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px 30px; }
.mahamu-home-v2-place-gift-copy h2 { margin: 0 0 14px !important; font-size: 27px !important; line-height: 1.18 !important; }
.mahamu-home-v2-place-gift-copy p { margin: 0 0 14px; color: var(--wp--custom--color--text--secondary); font-size: 14px; line-height: 1.65; }

@media (max-width: 1024px) {
  .mahamu-home-v2-hero .mahamu-home-v2-hero-copy { padding: 52px 36px; }
  .mahamu-home-v2-hero h1 { font-size: 44px !important; }
  .mahamu-home-v2-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mahamu-home-v2-product-card:nth-child(n+5),
  .mahamu-home-v2-product-card[data-product-id="20"],
  .mahamu-home-v2-product-card[data-product-id="36"] { display: none; }
  .mahamu-home-v2-products-mobile-cta { display: flex !important; margin-top: var(--wp--custom--space--lg); }
  .mahamu-home-v2-place-gift-grid { grid-template-columns: 1fr; }
  .mahamu-home-v2-place-gift-card { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
  .mahamu-home-v2-shell .mahamu-home-v2-inner,
  .mahamu-home-v2-shell .mahamu-home-v2-inner-commerce { width: calc(100% - 32px); }
  .mahamu-home-v2-hero > .wp-block-columns { display: flex !important; min-height: 0; flex-direction: column !important; }
  .mahamu-home-v2-hero .mahamu-home-v2-hero-media { order: 1; }
  .mahamu-home-v2-hero .mahamu-home-v2-hero-copy { order: 2; padding: 22px 16px 30px; }
  .mahamu-home-v2-hero .mahamu-home-v2-hero-media img { height: auto; min-height: 0; aspect-ratio: 390 / 186; object-fit: cover; }
  .mahamu-home-v2-shell .mahamu-home-v2-eyebrow { display: none; }
  .mahamu-home-v2-hero h1 { margin-bottom: var(--wp--custom--space--sm) !important; font-size: 36px !important; line-height: 1.1 !important; }
  .mahamu-home-v2-hero .mahamu-home-v2-lede { margin-bottom: 18px; font-size: 16px; line-height: 1.55; }
  .mahamu-home-v2-hero .wp-element-button { min-height: var(--wp--custom--size--control-min-height); padding: 11px 18px; }
  .mahamu-home-v2-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mahamu-home-v2-trust-item { min-height: 70px; flex-direction: column; gap: 5px; padding: 9px 4px; font-size: 10px; }
  .mahamu-home-v2-trust-item + .mahamu-home-v2-trust-item { border-left: 1px solid var(--wp--custom--color--border--subtle); }
  .mahamu-home-v2-trust svg { width: 20px; height: 20px; }
  .mahamu-home-v2-navigator { padding: 34px 0 46px !important; }
  .mahamu-home-v2-navigator h2 { margin-bottom: 18px !important; font-size: 27px !important; }
  .mahamu-home-v2-navigator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 32px); gap: 3px; }
  .mahamu-home-v2-navigator-card { min-height: 126px; padding: 15px 10px; background: var(--wp--custom--color--surface--editorial); }
  .mahamu-home-v2-navigator-card + .mahamu-home-v2-navigator-card { border-left: 0; }
  .mahamu-home-v2-navigator-card svg { width: 30px; height: 30px; margin-bottom: 2px; }
  .mahamu-home-v2-navigator-title { font-size: 16px; }
  .mahamu-home-v2-navigator-meta { font-size: 10.5px; line-height: 1.35; }
  .mahamu-home-v2-products { padding: 4px 0 56px !important; }
  .mahamu-home-v2-products > .mahamu-home-v2-inner:not(.mahamu-layout-frame) { width: calc(100% - 32px); }
  .mahamu-home-v2-products .mahamu-home-v2-products-heading { margin-bottom: 14px !important; font-size: 24px !important; }
  .mahamu-home-v2-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .mahamu-home-v2-product-card:nth-child(n+5) { display: none; }
  .mahamu-home-v2-product-card .wc-block-components-product-image { margin-bottom: 9px !important; }
  .mahamu-home-v2-product-card .wp-block-post-title { min-height: 0; margin-bottom: 4px !important; font-size: 16px !important; }
  .mahamu-home-v2-product-card .mahamu-home-product-descriptor { min-height: 0; margin-bottom: 5px; font-size: 13px; line-height: 1.45; }
  .mahamu-home-v2-product-card .wc-block-components-product-price { font-size: 16px; }
  .mahamu-home-v2-products-mobile-cta { display: flex !important; margin-top: 22px; }
  .mahamu-home-v2-products-mobile-cta .wp-element-button {
    display: flex;
    width: 100%;
    min-height: var(--wp--custom--size--control-min-height);
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--wp--custom--radius--control);
    background: var(--wp--custom--color--surface--editorial);
    color: var(--wp--custom--color--text--primary);
  }
  .mahamu-home-v2-signature > .wp-block-columns { display: flex !important; flex-direction: column !important; }
  .mahamu-home-v2-signature .wp-block-column:first-child { order: 1; }
  .mahamu-home-v2-signature .mahamu-home-v2-signature-copy { order: 2; padding: 34px 16px 42px; }
  .mahamu-home-v2-signature img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .mahamu-home-v2-signature h2 { font-size: 28px !important; }
  .mahamu-home-v2-signature p { font-size: 15px; }
  .mahamu-home-v2-familiar { padding: var(--wp--custom--space--section-mobile) 0 0 !important; }
  .mahamu-home-v2-familiar > .mahamu-home-v2-inner:not(.mahamu-layout-frame) { width: calc(100% - 32px); }
  .mahamu-home-v2-familiar > .mahamu-home-v2-inner > h2 { margin-bottom: var(--wp--custom--space--lg) !important; font-size: 27px !important; }
  .mahamu-home-v2-familiar-grid { display: grid; }
  .mahamu-home-v2-familiar-item { display: grid; }
  .mahamu-home-v2-familiar-item h3 { font-size: 17px !important; }
  .mahamu-home-v2-familiar-item .mahamu-home-v2-familiar-kicker { font-size: 14px; }
  .mahamu-home-v2-familiar-item p { font-size: 13px; }
  .mahamu-home-v2-balms { padding: var(--wp--custom--space--section-mobile) 0 !important; }
  .mahamu-home-v2-balms > .mahamu-home-v2-inner-commerce:not(.mahamu-layout-frame) { width: calc(100% - 32px); }
  .mahamu-home-v2-balms h2 { margin-bottom: var(--wp--custom--space--lg) !important; font-size: 27px !important; }
  .mahamu-home-v2-balms-grid { border: 0; }
  .mahamu-home-v2-balm { padding: 0 0 var(--wp--custom--space--md); }
  .mahamu-home-v2-balm + .mahamu-home-v2-balm { border: 0; }
  .mahamu-home-v2-reviews { padding: 44px 0 !important; }
  .mahamu-home-v2-reviews > .mahamu-home-v2-inner-commerce:not(.mahamu-layout-frame) { width: calc(100% - 32px); }
  .mahamu-home-v2-reviews h2 { font-size: 27px !important; }
  .mahamu-home-v2-review-grid { grid-template-columns: 1fr; gap: 28px; }
  .mahamu-home-v2-place-gift { padding: 48px 0 64px !important; }
  .mahamu-home-v2-place-gift > .mahamu-home-v2-inner:not(.mahamu-layout-frame) { width: calc(100% - 32px); }
  .mahamu-home-v2-place-gift-grid { grid-template-columns: 1fr; gap: 18px; }
  .mahamu-home-v2-place-gift-card { grid-template-columns: 1fr; }
  .mahamu-home-v2-place-gift-card img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .mahamu-home-v2-place-gift-copy { padding: 24px 20px 28px; }
  .mahamu-home-v2-place-gift-copy h2 { font-size: 25px !important; }
}
/* Grid & Whitespace v1.1 Homepage migration.
 * The legacy Homepage width rules remain as rollback compatibility until every
 * supported saved revision has the shared frame classes. Migrated Gutenberg
 * wrappers use the canonical responsive gutters and max-width owner below.
 */
.mahamu-home-v2-shell .mahamu-layout-frame.mahamu-layout-frame--guttered {
  width: min(
    calc(100% - var(--mahamu-layout-gutter) - var(--mahamu-layout-gutter)),
    var(--mahamu-layout-frame-max)
  ) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

/* HOMEPAGE V2 END */

/* PDP DECISION ZONE */
.mahamu-product-page .mahamu-product-gallery,
.mahamu-product-page .mahamu-product-buy-panel { align-self: start; }
.mahamu-product-page .mahamu-product-gallery :where(img) { background: var(--wp--custom--color--surface--editorial); border-radius: 0 !important; box-shadow: none !important; }
.mahamu-product-page .mahamu-product-shipping-summary {
  margin-top: 20px;
  padding: var(--wp--custom--space--md) 0;
  border-width: 1px 0 !important;
  border-color: var(--wp--custom--color--border--subtle) !important;
}
.mahamu-product-page :where(.mahamu-product-details,.mahamu-product-reviews,.mahamu-related-products) {
  margin-top: 64px !important;
  padding-top: 28px;
}
.mahamu-product-page .mahamu-product-details .wp-block-woocommerce-product-description { max-width: var(--wp--custom--layout--content-reading); line-height: 1.7; }

/* Typography craft — keep approved families; refine measure/rhythm only. */
body.home :where(.mahamu-home-hero,.mahamu-story-band,.mahamu-gift-feature) p,
.mahamu-product-page .mahamu-product-buy-panel .wp-block-post-excerpt,
.mahamu-product-archive .wp-block-term-description { text-wrap: pretty; }
body.home :where(.mahamu-home-hero h1,.mahamu-story-band h2,.mahamu-gift-feature h2),
.mahamu-product-page .mahamu-product-buy-panel .wp-block-post-title,
.mahamu-product-archive .wp-block-query-title { text-wrap: balance; }

@media (max-width: 782px) {
  body.home .mahamu-hero-product-pair { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 10px !important; }
  body.home .mahamu-hero-product-pair > .wp-block-column:nth-child(2) { transform: translateY(4%); }
  body.home .mahamu-product-hero-image img { aspect-ratio: 4 / 5; }
  body.home .mahamu-collection-discovery figure img,
  body.home .mahamu-gift-feature figure img,
  body.home .mahamu-story-band figure img { aspect-ratio: 4 / 3; }
  .mahamu-product-archive .wc-block-product { padding-top: var(--wp--custom--space--sm); }
  .mahamu-product-archive .mahamu-product-card-descriptor { min-height: 0; }
  .mahamu-product-page :where(.mahamu-product-details,.mahamu-product-reviews,.mahamu-related-products) { margin-top: var(--wp--custom--space--section-mobile) !important; padding-top: 22px; }
}
@media (max-width: 390px) {
  body.home .mahamu-hero-product-pair > .wp-block-column:nth-child(2) { transform: translateY(3%); }
  .mahamu-product-archive .wc-block-product-template { gap: var(--wp--custom--space--lg) var(--wp--custom--space--md) !important; }
}
@media (max-width: 350px) {
  .mahamu-product-archive .wc-block-product-template { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .mahamu-hero-product-pair > .wp-block-column:nth-child(2) { transform: none; }
}


/* SHOP ARCHITECTURE V1 */
.mahamu-shop-root-only { display: none; }
body.woocommerce-shop .mahamu-shop-root-only { display: block; }

.mahamu-shop-intro {
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: var(--wp--custom--space--lg);
}
.mahamu-shop-kicker {
  margin: 0 0 var(--wp--custom--space--xs);
  color: var(--wp--custom--color--text--secondary);
  font-size: 12px;
  font-weight: var(--wp--custom--font--weight--medium);
  letter-spacing: .12em;
}
.mahamu-shop-intro h1 {
  max-width: 18ch;
  margin: 0 0 var(--wp--custom--space--sm);
  font-family: var(--wp--custom--font--family--ui);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
}
.mahamu-shop-lede {
  max-width: 42rem;
  margin: 0;
  color: var(--wp--custom--color--text--secondary);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: var(--wp--custom--font--line-height--body);
}

.mahamu-shop-guide {
  margin-top: var(--wp--custom--space--section-commerce);
  padding-block: var(--wp--custom--space--xl) 0;
  border-top: 1px solid var(--wp--custom--color--border--subtle);
}
.mahamu-shop-guide > h2,
.mahamu-shop-category-heading,
.mahamu-shop-products-title,
.mahamu-product-search-intro .wp-block-query-title {
  margin-top: 0;
  font-family: var(--wp--custom--font--family--ui);
}
.mahamu-shop-guide > h2 {
  margin-bottom: var(--wp--custom--space--xs);
  font-size: clamp(22px, 2.2vw, 28px);
}
.mahamu-shop-guide > p {
  max-width: 54rem;
  margin: 0 0 var(--wp--custom--space--md);
  color: var(--wp--custom--color--text--secondary);
}
.mahamu-shop-guide .mahamu-guided-discovery__choices--shop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-block: 1px solid var(--wp--custom--color--border--subtle);
}
.mahamu-shop-guide .mahamu-guided-discovery__choice {
  display: flex;
  min-width: 0;
  min-height: 96px;
  flex-direction: column;
  justify-content: center;
  gap: var(--wp--custom--space--xs);
  padding: var(--wp--custom--space--md) var(--wp--custom--space--lg);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--wp--custom--color--text--primary);
  text-decoration: none;
  box-shadow: none;
}
.mahamu-shop-guide .mahamu-guided-discovery__choice + .mahamu-guided-discovery__choice {
  border-left: 1px solid var(--wp--custom--color--border--subtle);
}
.mahamu-shop-guide .mahamu-guided-discovery__choice:hover {
  background: var(--wp--custom--color--surface--editorial);
}
.mahamu-shop-guide .mahamu-guided-discovery__choice:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--wp--custom--color--accent--focus);
  outline-offset: 2px;
}
.mahamu-shop-guide .mahamu-guided-discovery__choice-label {
  font-family: var(--wp--custom--font--family--ui);
  font-size: 18px;
  font-weight: var(--wp--custom--font--weight--medium);
  line-height: 1.35;
}
.mahamu-shop-guide .mahamu-guided-discovery__choice-description {
  color: var(--wp--custom--color--text--secondary);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Shared outer width + responsive gutters are owned by layout-foundation.css.
 * Source templates opt in with .mahamu-layout-frame--commerce + --guttered.
 */
body.woocommerce-shop .mahamu-archive-title { display: none; }

.mahamu-archive-title {
  margin-top: clamp(32px, 5vw, 64px) !important;
  margin-bottom: var(--wp--custom--space--sm) !important;
}
.mahamu-archive-description { max-width: 68ch !important; }

.mahamu-shop-category-section {
  padding-block: var(--wp--custom--space--lg);
}
.mahamu-shop-category-heading {
  margin-bottom: var(--wp--custom--space--sm);
  font-size: 18px;
}
.mahamu-shop-categories {
  display: flex !important;
  align-items: center;
  gap: var(--wp--custom--space--xs) !important;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.mahamu-shop-categories::-webkit-scrollbar { display: none; }
.mahamu-shop-categories .wp-block-button,
.mahamu-shop-category-list,
.mahamu-shop-category-list .wc-block-product-categories-list,
.mahamu-shop-category-list .wc-block-product-categories-list-item {
  flex: 0 0 auto;
}
.mahamu-shop-category-list { margin: 0 !important; }
.mahamu-shop-category-list .wc-block-product-categories-list {
  display: flex;
  gap: var(--wp--custom--space--xs);
  margin: 0;
  padding: 0;
  list-style: none;
}
.mahamu-shop-category-list .wc-block-product-categories-list-item { margin: 0; }
.mahamu-shop-categories .wp-element-button,
.mahamu-shop-category-list a {
  display: inline-flex;
  min-height: var(--wp--custom--size--tap-target-min);
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--wp--custom--color--border--control);
  border-radius: var(--wp--custom--radius--control);
  background: transparent;
  color: var(--wp--custom--color--text--primary);
  font-family: var(--wp--custom--font--family--ui);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}
.mahamu-shop-categories .wp-element-button:hover,
.mahamu-shop-category-list a:hover {
  border-color: var(--wp--custom--color--border--strong);
  background: var(--wp--custom--color--surface--editorial);
}
.mahamu-shop-category-list a:focus-visible,
.mahamu-shop-categories .wp-element-button:focus-visible {
  outline: 2px solid var(--wp--custom--color--accent--focus);
  outline-offset: 2px;
}

.mahamu-shop-products-title {
  margin-top: var(--wp--custom--space--lg) !important;
  margin-bottom: var(--wp--custom--space--sm) !important;
  font-size: 26px;
}
.mahamu-product-toolbar {
  align-items: center !important;
  gap: var(--wp--custom--space--sm) var(--wp--custom--space--lg) !important;
  padding-block: var(--wp--custom--space--sm);
  border-block: 1px solid var(--wp--custom--color--border--subtle);
}
.mahamu-product-search-intro {
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: var(--wp--custom--space--md);
}
.mahamu-product-search-intro .wp-block-query-title {
  margin-bottom: var(--wp--custom--space--md);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}
.mahamu-product-search-form {
  max-width: 42rem;
}

@media (max-width: 782px) {
  .mahamu-shop-guide {
    margin-top: var(--wp--custom--space--section-mobile);
    padding-block: var(--wp--custom--space--lg) 0;
  }
  .mahamu-shop-guide .mahamu-guided-discovery__choices--shop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mahamu-shop-guide .mahamu-guided-discovery__choice {
    min-height: 96px;
    padding: var(--wp--custom--space--md);
  }
  .mahamu-shop-guide .mahamu-guided-discovery__choice + .mahamu-guided-discovery__choice {
    border-left: 0;
  }
  .mahamu-shop-guide .mahamu-guided-discovery__choice:nth-child(even) {
    border-left: 1px solid var(--wp--custom--color--border--subtle);
  }
  .mahamu-shop-guide .mahamu-guided-discovery__choice:nth-child(n+3) {
    border-top: 1px solid var(--wp--custom--color--border--subtle);
  }
  .mahamu-shop-category-section { padding-block: var(--wp--custom--space--md); }
  .mahamu-shop-category-heading { font-size: 16px; }
  .mahamu-product-toolbar {
    align-items: flex-start !important;
  }
}

@media (max-width: 430px) {
  .mahamu-shop-guide .mahamu-guided-discovery__choice-label { font-size: 16px; }
  .mahamu-shop-guide .mahamu-guided-discovery__choice-description { font-size: 12px; }
}

/* DISCOVER VISUAL-FIRST V1 — Home / Shop / Search
 * Media supports recognition; WooCommerce and WordPress remain truth/content owners.
 */
@media (min-width: 1025px) {
  .mahamu-home-v2-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(22px, 2.4vw, 34px);
  }
  .mahamu-home-v2-familiar > .mahamu-home-v2-inner > h2,
  .mahamu-home-v2-familiar-grid {
    width: min(100%, 900px);
    margin-inline: auto !important;
  }
  .mahamu-home-v2-familiar-grid {
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: space-between;
    gap: clamp(96px, 10vw, 180px);
  }
  .mahamu-home-v2-familiar-item,
  .mahamu-home-v2-familiar-item > .wp-block-group {
    width: 100%;
    max-width: 360px;
  }
}

.mahamu-home-v2-product-card .mahamu-home-product-descriptor {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mahamu-home-v2-familiar-grid {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.mahamu-home-v2-familiar-item,
.mahamu-home-v2-familiar-item:nth-child(n+2) {
  display: grid;
  grid-template-rows: auto 1fr;
  padding-top: 0;
  border-top: 0;
}
.mahamu-home-v2-familiar-item figure {
  display: block;
  overflow: hidden;
  margin: 0 0 var(--wp--custom--space--lg) !important;
  background: transparent;
}
.mahamu-home-v2-familiar-item figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
}
.mahamu-home-v2-familiar-item > .wp-block-group {
  max-width: 360px;
}
.mahamu-home-v2-familiar-item > .wp-block-group > p:not(.mahamu-home-v2-familiar-kicker):not(:last-child) {
  display: none;
}

.mahamu-home-v3-balm-card {
  padding: 0 0 var(--wp--custom--space--lg);
}
.mahamu-home-v3-balm-card .wc-block-components-product-image {
  overflow: hidden;
  margin: 0 0 var(--wp--custom--space--sm) !important;
  background: var(--wp--custom--color--surface--editorial);
}
.mahamu-home-v3-balm-card .wc-block-components-product-image img {
  display: block;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  background: var(--wp--custom--color--surface--editorial);
}
.mahamu-home-v3-balm-card .wp-block-post-title {
  margin: 0 0 6px !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}
.mahamu-home-v3-balm-card .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}
.mahamu-home-v3-balm-character {
  margin: 0 0 var(--wp--custom--space--xs) !important;
  color: var(--wp--custom--color--text--secondary);
  font-size: 12px !important;
  line-height: 1.5 !important;
}
.mahamu-home-v3-balm-card .wc-block-components-product-price {
  margin: 0;
  font-size: 14px;
  font-weight: var(--wp--custom--font--weight--medium);
}

@media (min-width: 641px) and (max-width: 1024px) {
  .mahamu-home-v2-familiar-grid {
    width: min(100%, 820px);
    margin-inline: auto !important;
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: space-between;
    gap: var(--wp--custom--space--xl);
  }
  .mahamu-home-v2-familiar-item figure,
  .mahamu-home-v2-familiar-item > .wp-block-group {
    width: min(100%, 360px);
  }
  .mahamu-home-v2-familiar-item:nth-child(2) figure,
  .mahamu-home-v2-familiar-item:nth-child(2) > .wp-block-group {
    margin-left: auto;
  }
  .mahamu-home-v2-balms-grid {
    width: min(100%, 620px);
    margin-inline: auto !important;
    grid-template-columns: repeat(2, minmax(0, 280px));
    justify-content: space-between;
    gap: var(--wp--custom--space--xl) var(--wp--custom--space--lg);
  }
  .mahamu-home-v2-balm,
  .mahamu-home-v3-balm-card {
    padding-bottom: var(--wp--custom--space--md);
  }
}

@media (max-width: 640px) {
  .mahamu-home-v2-familiar-grid {
    grid-template-columns: 1fr;
    gap: var(--wp--custom--space--xl);
  }
  .mahamu-home-v2-familiar-item figure,
  .mahamu-home-v2-familiar-item > .wp-block-group {
    width: 100%;
    max-width: none;
  }
  .mahamu-home-v2-balms-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }
  .mahamu-home-v2-balm,
  .mahamu-home-v3-balm-card {
    min-width: 0;
    padding-bottom: var(--wp--custom--space--sm);
  }
  .mahamu-home-v3-balm-card .wc-block-components-product-image {
    margin-bottom: 9px !important;
  }
  .mahamu-home-v3-balm-card .wp-block-post-title {
    margin-bottom: 4px !important;
    font-size: 14px !important;
  }
  .mahamu-home-v3-balm-character {
    margin-bottom: 4px !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }
  .mahamu-home-v3-balm-card .wc-block-components-product-price {
    font-size: 13px;
    line-height: 1.35;
  }
  .mahamu-home-v3-balm-card .wc-block-components-product-rating {
    font-size: 11px;
  }
}

.mahamu-home-v3-ritual {
  padding: clamp(44px, 6vw, 76px) 0 !important;
  background: var(--wp--custom--color--surface--canvas);
}
.mahamu-home-v3-ritual > h2 {
  width: min(calc(100% - 64px), var(--wp--custom--layout--content-commerce));
  margin: 0 auto var(--wp--custom--space--lg) !important;
  font-size: clamp(28px, 3.2vw, 40px) !important;
  line-height: 1.14 !important;
  text-align: center;
}
.mahamu-home-v3-ritual-grid {
  display: grid;
  width: min(calc(100% - 64px), var(--wp--custom--layout--content-commerce));
  margin: 0 auto !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--wp--custom--space--sm);
}
.mahamu-home-v3-ritual-card {
  min-width: 0;
  overflow: hidden;
  margin: 0 !important;
  border: 1px solid var(--wp--custom--color--border--subtle);
  background: var(--wp--custom--color--surface--editorial);
}
.mahamu-home-v3-ritual-card figure {
  margin: 0 !important;
  border-bottom: 1px solid var(--wp--custom--color--border--subtle);
  background: var(--wp--custom--color--surface--transaction);
}
.mahamu-home-v3-ritual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.mahamu-home-v3-ritual-card h3 {
  margin: 0 !important;
  padding: var(--wp--custom--space--sm) var(--wp--custom--space--md);
  font-size: 15px !important;
  line-height: 1.35 !important;
}
.mahamu-home-v3-ritual-card h3 a {
  color: inherit;
  text-decoration: none;
}
.mahamu-home-v3-ritual-card h3 a:focus-visible {
  outline: 2px solid var(--wp--custom--color--accent--focus);
  outline-offset: 3px;
}

body.woocommerce-shop .mahamu-shop-guide {
  margin-top: 0;
  padding-block: var(--wp--custom--space--md) var(--wp--custom--space--xl);
  border-top: 0;
}
body.woocommerce-shop .mahamu-shop-guide > h2 {
  margin-bottom: var(--wp--custom--space--md);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.16;
}
body.woocommerce-shop .mahamu-shop-guide .mahamu-guided-discovery__choices--shop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--wp--custom--space--sm);
  border: 0;
}
body.woocommerce-shop .mahamu-shop-guide .mahamu-guided-discovery__choice {
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--wp--custom--color--border--subtle);
  background: var(--wp--custom--color--surface--editorial);
}
body.woocommerce-shop .mahamu-shop-guide .mahamu-guided-discovery__choice + .mahamu-guided-discovery__choice,
body.woocommerce-shop .mahamu-shop-guide .mahamu-guided-discovery__choice:nth-child(even),
body.woocommerce-shop .mahamu-shop-guide .mahamu-guided-discovery__choice:nth-child(n+3) {
  border-left: 1px solid var(--wp--custom--color--border--subtle);
  border-top: 1px solid var(--wp--custom--color--border--subtle);
}
body.woocommerce-shop .mahamu-shop-guide .mahamu-guided-discovery__choice-visual {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--wp--custom--color--border--subtle);
  background: var(--wp--custom--color--surface--transaction);
}
body.woocommerce-shop .mahamu-shop-guide .mahamu-guided-discovery__choice-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.woocommerce-shop .mahamu-shop-guide .mahamu-guided-discovery__choice-copy {
  min-height: 72px;
  justify-content: center;
  padding: var(--wp--custom--space--sm) var(--wp--custom--space--md);
}
body.woocommerce-shop .mahamu-shop-guide .mahamu-guided-discovery__choice-label {
  font-size: 15px;
}

.mahamu-product-search-results .wp-block-woocommerce-product-collection {
  margin-top: var(--wp--custom--space--md);
}

.mahamu-search-results {
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: var(--wp--custom--space--section-commerce);
}
.mahamu-search-results > .wp-block-query-title {
  margin-bottom: var(--wp--custom--space--md);
  color: var(--wp--custom--color--text--primary);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}
.mahamu-search-results > .wp-block-search .wp-block-search__button {
  min-width: var(--wp--custom--size--tap-target-min);
  min-height: var(--wp--custom--size--tap-target-min);
  margin-left: var(--wp--custom--space--xs);
  border: 1px solid var(--wp--custom--color--border--control);
  border-radius: var(--wp--custom--radius--control);
  background: var(--wp--custom--color--surface--transaction);
  color: var(--wp--custom--color--action--primary);
}
.mahamu-search-results > .wp-block-search .wp-block-search__button svg {
  fill: currentColor;
}
.mahamu-search-results > .wp-block-search :where(.wp-block-search__input, .wp-block-search__button):focus-visible {
  outline: 2px solid var(--wp--custom--color--accent--focus);
  outline-offset: 2px;
}
.mahamu-search-results-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px) !important;
  margin: var(--wp--custom--space--xl) 0 0;
  padding: 0;
}
.mahamu-search-result {
  min-width: 0;
  margin: 0 !important;
}
.mahamu-search-result-media {
  overflow: hidden;
  margin: 0 0 var(--wp--custom--space--md) !important;
  background: var(--wp--custom--color--surface--editorial);
}
.mahamu-search-result-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.mahamu-search-result-copy {
  margin: 0 !important;
}
.mahamu-search-result-copy .wp-block-post-title {
  margin: 0 0 var(--wp--custom--space--xs) !important;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.22;
}
.mahamu-search-result-copy .wp-block-post-excerpt {
  max-width: 62ch;
  margin: 0 !important;
  line-height: 1.65;
}
.mahamu-search-result-copy .wp-block-post-excerpt__more-link {
  color: var(--wp--custom--color--action--primary);
  font-weight: 500;
}

@media (max-width: 782px) {
  .mahamu-home-v3-ritual {
    padding: 38px 0 48px !important;
  }
  .mahamu-home-v3-ritual > h2,
  .mahamu-home-v3-ritual-grid {
    width: calc(100% - 32px);
  }
  .mahamu-home-v3-ritual > h2 {
    margin-bottom: var(--wp--custom--space--md) !important;
    font-size: 27px !important;
  }
  .mahamu-home-v3-ritual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--wp--custom--space--xs);
  }
  .mahamu-home-v3-ritual-card h3 {
    padding: 10px 12px;
    font-size: 14px !important;
  }
  .mahamu-home-v2-familiar-item figure {
    margin-bottom: var(--wp--custom--space--md) !important;
  }
  body.woocommerce-shop .mahamu-shop-guide {
    padding-block: var(--wp--custom--space--sm) var(--wp--custom--space--lg);
  }
  body.woocommerce-shop .mahamu-shop-guide .mahamu-guided-discovery__choices--shop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--wp--custom--space--xs);
  }
  body.woocommerce-shop .mahamu-shop-guide .mahamu-guided-discovery__choice-copy {
    min-height: 64px;
    padding: 10px 12px;
  }
  body.woocommerce-shop .mahamu-shop-guide .mahamu-guided-discovery__choice-label {
    font-size: 14px;
  }
  .mahamu-search-results-grid {
    grid-template-columns: 1fr;
    gap: 34px !important;
  }
  .mahamu-search-result-media img {
    aspect-ratio: 16 / 10;
  }
}

/* AROMA OIL CATEGORY V2 — Product-first, image-suppressed while media truth is blocked. */
.mahamu-aroma-oil-category > .mahamu-aroma-oil-title {
  margin-top: 0 !important;
  margin-bottom: var(--wp--custom--space--xs) !important;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.08 !important;
  text-wrap: balance;
}
.mahamu-aroma-oil-category > .mahamu-aroma-oil-lede {
  max-width: 46rem !important;
  margin-top: 0 !important;
  margin-bottom: var(--wp--custom--space--lg) !important;
  color: var(--wp--custom--color--text--secondary);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  text-wrap: pretty;
}
.mahamu-aroma-oil-category > .mahamu-shop-category-section {
  padding-top: 0;
  padding-bottom: var(--wp--custom--space--lg);
}
.mahamu-aroma-oil-category > .mahamu-product-toolbar {
  margin-top: 0 !important;
}
.mahamu-aroma-oil-category .mahamu-aroma-oil-products .wc-block-product-template {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: clamp(24px, 3vw, 40px) !important;
  row-gap: clamp(36px, 4vw, 52px) !important;
}
.mahamu-aroma-oil-category .mahamu-aroma-oil-products .wc-block-product {
  min-width: 0;
  padding-top: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.mahamu-aroma-oil-category .mahamu-aroma-oil-products .wp-block-post-title {
  margin-top: 0 !important;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.38 !important;
}
.mahamu-aroma-oil-category .mahamu-aroma-oil-products .wp-block-woocommerce-product-button {
  margin-top: auto !important;
  padding-top: var(--wp--custom--space--sm);
}
.mahamu-aroma-oil-category .mahamu-aroma-oil-products .wp-block-woocommerce-product-button .wp-element-button {
  min-height: var(--wp--custom--size--tap-target-min);
  border-radius: var(--wp--custom--radius--control);
  box-shadow: none !important;
}
.mahamu-aroma-oil-category .mahamu-aroma-oil-products :where(a,button,.wp-element-button):focus-visible {
  outline: 2px solid var(--wp--custom--color--accent--focus);
  outline-offset: 2px;
}
.mahamu-aroma-format-chooser {
  margin: var(--wp--custom--space--section-commerce) auto 0 !important;
  padding-top: var(--wp--custom--space--lg);
  border-top: 1px solid var(--wp--custom--color--border--subtle);
}
.mahamu-aroma-format-heading {
  margin: 0 0 var(--wp--custom--space--lg) !important;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
}
.mahamu-aroma-format-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.mahamu-aroma-format-item {
  min-width: 0;
  margin: 0 !important;
  padding-top: var(--wp--custom--space--sm);
  border-top: 1px solid var(--wp--custom--color--border--subtle);
  background: transparent !important;
}
.mahamu-aroma-format-item p {
  margin: 0;
  color: var(--wp--custom--color--text--primary);
  font-size: 16px;
  font-weight: var(--wp--custom--font--weight--medium);
  line-height: 1.5;
}
@media (min-width: 601px) and (max-width: 1024px) {
  .mahamu-aroma-oil-category .mahamu-aroma-oil-products .wc-block-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 782px) {
  .mahamu-aroma-oil-category > .mahamu-aroma-oil-title {
    font-size: clamp(34px, 10vw, 44px);
  }
  .mahamu-aroma-oil-category > .mahamu-aroma-oil-lede {
    margin-bottom: var(--wp--custom--space--md) !important;
  }
  .mahamu-aroma-format-chooser {
    margin-top: var(--wp--custom--space--section-mobile) !important;
  }
  .mahamu-aroma-format-grid {
    grid-template-columns: 1fr;
    gap: var(--wp--custom--space--md);
  }
}
@media (max-width: 600px) {
  .mahamu-aroma-oil-category .mahamu-aroma-oil-products .wc-block-product-template {
    grid-template-columns: 1fr !important;
  }
}

