/* MAHAMU storefront foundation: one shared source for global measures and transaction layouts.
 * Product cards, Home, Shop and PDP presentation remain in cards.css. */
/* MAHAMU V2 / STRUCTURED EDITORIAL COMMERCE | owner-selected direction 01.
 * Presentation only: no markup/section reorder, no Woo price, stock or checkout rewrites.
 * Mobile-first rhythm from the owner's research wireframe, using site brand tokens. */
:root{
  --mhsec-canvas:var(--mhui-canvas);
  --mhsec-paper:var(--mhui-canvas);
  --mhsec-ink:var(--mhui-ink);
  --mhsec-muted:var(--mhui-muted);
  --mhsec-line:var(--mhui-border);
  --mhsec-gold:var(--mhui-purchase-gold,#85693d);
  --mhsec-gutter:clamp(16px,2.5vw,32px);
}

/* Shared storefront alignment: one 1160px measure, not independent widths. */
.mhx-site-header .mhx-head-wrap,
.mhx-footer .mhx-footer-wrap{
  box-sizing:border-box;max-width:1160px;width:calc(100% - 2 * var(--mhsec-gutter));
  margin-inline:auto;
}

/* Cart/Checkout: typography and content measure only. Do not touch
 * payment choices, totals, checkout Blocks inputs or order state. */
body.woocommerce-cart main,
body.woocommerce-checkout main{
  box-sizing:border-box;
  max-width:1160px;width:calc(100% - 2 * var(--mhsec-gutter));
  margin-inline:auto;padding-inline:0!important;
}
body.woocommerce-cart main > h1,
body.woocommerce-checkout main > h1{
  font-family:Inter,"IBM Plex Sans Thai",system-ui,sans-serif;
  font-size:clamp(30px,3.1vw,42px);font-weight:600;
  line-height:1.25;letter-spacing:-.015em;
}

@media(max-width:700px){
  :root{--mhsec-gutter:16px}
  body.woocommerce-cart main > h1,
  body.woocommerce-checkout main > h1{font-size:30px}
}


/* Only full-bleed Purple STAGING surfaces: account for the scrollbar in
 * the parent containing block instead of using 100vw or clipping overflow. */
@media (min-width: 768px) {
  body.home .wp-block-post-content > .mhx-home.mhx-home-v2 {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }
  body.single-product .wp-block-group.woocommerce.product > main > .wp-block-group.alignfull.has-global-padding {
    box-sizing: border-box !important;
    width: calc(100% + 2 * var(--mhsec-gutter)) !important;
    max-width: none !important;
    margin-inline: calc(-1 * var(--mhsec-gutter)) !important;
  }
}

/* MAHAMU WHITE / BLACK / GOLD v1.0 — brand presentation only.
   Status/error messaging and truthful product media remain untouched. */
:root{
 /* Keep palette values in Site Editor swatches; never duplicate hex tokens. */
 --mhx-paper:var(--mhui-canvas);--mhx-ink:var(--mhui-ink);
 --mhx-gold:var(--mhui-action);--mhx-green:var(--mhui-ink);
 --mhx-line:var(--mhui-border);
}
body,body .wp-site-blocks{background-color:var(--mhui-canvas)!important;color:var(--mhui-ink)}
body .mhx-header-bar,body .mhx-subnav,body .mhx-mobile-links{
 background:var(--mhui-canvas)!important;border-color:var(--mhui-border)!important
}
body .mhx-announcement{background:var(--mhui-ink)!important;color:var(--mhui-canvas)!important}
body .mhx-announcement span{color:var(--mhui-canvas)!important}
body .mhx-nav,body .mhx-subnav a,body .mhx-mobile-links a{color:var(--mhui-ink)!important}
body .mhx-subnav a:hover,body .mhx-mobile-links a:hover{background:#F5F5F5!important}
body .mhx-footer{background:var(--mhui-ink)!important;color:var(--mhui-canvas)!important}
body .mhx-footer h3,body .mhx-footer .mhx-foot-brand p,
body .mhx-footer a,body .mhx-footer .mhx-footer-bottom{color:var(--mhui-canvas)!important}
body .mhx-footer a:hover{color:#C3A675!important}
body .mhx-footer .mhx-footer-bottom{border-color:var(--mhui-muted)!important}
body .mhx-site-header .wc-block-mini-cart__button{background:var(--mhui-action)!important;color:var(--mhui-canvas)!important}
body .mhx-site-header .wc-block-mini-cart__button svg,
body .mhx-site-header .wc-block-mini-cart__badge{color:var(--mhui-canvas)!important}

/* Woo functionality/status states remain owned by WooCommerce. */
body.woocommerce-page main,body.woocommerce-cart main,body.woocommerce-checkout main,
body.woocommerce-account main{color:var(--mhui-ink)}
body .wp-block-button__link:not(.is-style-outline),
body .wc-block-components-button:not(:disabled):not([aria-disabled="true"]){
 border-color:var(--mhui-action);color:var(--mhui-canvas);background:var(--mhui-action)
}
body .wp-block-button.is-style-outline .wp-block-button__link,
body .wp-block-button__link.is-style-outline{
 background:var(--mhui-canvas);color:var(--mhui-ink);border-color:var(--mhui-ink)
}
body .wc-block-components-text-input input,body .woocommerce input.input-text,
body .woocommerce select,body .woocommerce textarea{
 background-color:var(--mhui-canvas);color:var(--mhui-ink);border-color:var(--mhui-control-border)
}
body .mhx-home a:focus-visible,body .mhx-site-header a:focus-visible,
body .mhx-site-header summary:focus-visible,body .mhx-footer a:focus-visible,
body .wc-block-components-button:focus-visible{
 outline:3px solid var(--mhui-action)!important;outline-offset:3px
}
body.home #mhx-scent-chooser a:focus-visible,
body .mhx-footer a:focus-visible{outline-color:var(--mhui-canvas)!important}


/* MAHAMU WHITE / BLACK / GOLD v1.2 — remaining color-only editorial
   surfaces in product collections and gallery review placeholders. */
body .mhx-collection-shell,body .mhx-collection-main{
 background:var(--mhui-canvas)!important;color:var(--mhui-ink)!important
}
body .mhx-collection-shell h1,body .mhx-collection-shell h2,
body .mhx-collection-shell h3{color:var(--mhui-ink)!important}
body .mhx-collection-shell p{color:var(--mhui-muted)!important}
body .mhx-collection-hero-image{background-color:var(--mhui-canvas)!important}
body .mhx-collection-tile:before,
body .mhx-collection-tile-relax:before,
body .mhx-collection-tile-botanical:before{
 background:linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.72) 47%,transparent 95%)!important
}
body .mhx-collection-tile{color:var(--mhui-ink)!important;box-shadow:0 0 0 1px var(--mhui-border) inset!important}
body .mhx-collection-tile-copy{color:var(--mhui-ink)!important}
body .wc-block-product-template>.wc-block-product,
body .wc-block-product-template li.wc-block-product{
 background:var(--mhui-canvas)!important;border-color:var(--mhui-border)!important
}
body .wc-block-product .wc-block-components-product-image,
body .wc-block-product .wp-block-woocommerce-product-image{background:var(--mhui-canvas)!important}
body.home .mhx-featured-native .mhx-featured-explore,
body.home a.mhx-featured-explore{
 background:var(--mhui-canvas)!important;border-color:var(--mhui-border)!important;color:var(--mhui-ink)!important
}
body.home .mhx-photo-review__tile{background:#F7F7F7!important}

/* Contact page: constrain the authentic storefront photo to its Gutenberg figure. */
body .mahamu-contact-storefront-image > img{
  max-width:100%!important;
  height:auto!important;
}
