/* v5.8 mobile spacing pass. Scale: 4 8 12 16 24 32 48 64 96. Images/video untouched. */
h1,h2,h3,.ml4-card__title,.ml4-closing__text{text-wrap:balance}
p,dd,li{text-wrap:pretty}

@media (max-width:767px){
  /* --- section rhythm: no stray WP block-gap between top-level blocks --- */
  .ml4-main > *,.ml4-main > * + *,.wp-site-blocks > footer,.wp-site-blocks > main{margin-block-start:0!important}
  .ml4-section{padding-block:48px!important}
  .ml5-hero{padding-bottom:0!important}
  .ml5-hero + .ml4-section{padding-top:64px!important}
  .ml4-closing{padding-block:48px!important}
  .ml4-craft{padding-block:48px!important}

  /* --- hero (Nikola's screenshot) --- */
  .ml5-hero__copy{margin-top:-8px!important}            /* image -> eyebrow 24 */
  .ml5-hero__title{max-width:none!important;width:100%}
  .ml5-hero .ml4-actions{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;margin-top:32px!important}
  .ml5-hero .ml4-actions .ml4-btn{width:100%}

  /* --- primary CTAs full width, on the gutter --- */
  .ml4-closing__in{align-items:stretch!important}
  .ml4-closing .ml4-btn,.ml4-craft__copy .ml4-btn,.ml4-empty .ml4-btn,.ml4-about__cta .ml4-btn{display:flex!important;width:100%!important;justify-content:center}
  .ml4-craft__copy .ml4-btn{margin-top:16px}

  /* --- footer ~480 and 96 before it --- */
  .ml4-footer{padding-top:48px!important}
  .ml4-main{padding-bottom:0!important}
  .ml4-footer__grid{padding-bottom:32px!important;row-gap:32px!important}
  .ml4-footer__logo{margin-bottom:12px!important}
  .ml4-footer__line{margin-bottom:8px!important}
  .ml4-footer__brand p:last-child{margin-bottom:0!important}
  .ml4-footer__brand .ml5-claim{margin-top:0!important}
  .ml4-footer__h{margin-bottom:4px!important}
  .ml4-footer__col ul{gap:0!important}
  .ml4-footer__col a{display:flex;align-items:center;min-height:44px}
  .ml4-footer__legal{padding-block:16px 24px!important;gap:0!important}
  .ml4-footer__legal ul{gap:24px!important}
  .ml4-footer__legal a{display:inline-flex;align-items:center;min-height:44px}

  /* --- cards: title->text 8, text->price 24, price->Discover 16, 44 taps --- */
  .ml4-card__body{padding-top:20px!important}
  .ml4-card__title{margin-bottom:16px!important}
  .ml4-card__title a{display:inline-block;padding-block:11px;margin-block:-11px}
  .ml4-card__line{margin-bottom:24px!important}
  .ml4-card__foot{padding-top:16px!important;row-gap:16px!important;margin-top:auto!important}
  .ml51-discover{display:inline-flex!important;align-items:center;min-height:44px;padding-block:0!important;min-width:44px}
  .ml4-grid{row-gap:48px!important}
  .ml4-link{display:inline-flex;align-items:center;min-height:44px;padding-block:0!important}
  .ml4-head{margin-bottom:32px!important}

  /* --- shop --- */
  .ml4-pagehead{padding-block:32px 32px!important}
  .ml4-shop__guide{padding-block:48px!important}
  .ml4-guide{gap:24px!important}
  .ml4-guide > div{padding-top:16px!important}
  .ml4-guide dt{margin-bottom:8px!important}

  /* --- PDP --- */
  .ml4-pdp__grid{padding-bottom:0!important}
  .ml4-pdp__buy{margin-top:0!important}
  .ml4-pdp__excerpt{margin-block:16px 24px!important}
  .ml4-pdp__excerpt p{margin-bottom:16px!important}
  .ml4-pdp__excerpt p:last-child{margin-bottom:0!important}
  form.variations_form{padding-inline:0!important;margin-bottom:0!important}
  .ml4-pdp .variations,.ml4-pdp .variations td,.ml4-pdp .variations th{padding-inline:0!important;margin-inline:0!important}
  .ml4-picker{gap:8px!important}
  .ml4-picker__opt{min-height:44px!important}
  .ml52-pdp-more{margin-top:0!important;padding-top:64px}
  .ml52-pdp-more .ml51-notes{padding-block:24px 48px!important}
  .ml52-pdp-more .ml4-details{padding-block:0 48px!important}
  .ml5-notes{gap:12px!important}
  .ml51-notes__name{margin-bottom:16px!important}
  .ml4-crumbs a,.ml4-pdp .woocommerce-breadcrumb a{display:inline-flex;align-items:center;min-height:44px}
  .ml4-related{padding-top:48px!important}

  /* --- cart: drop the empty ship band; 48 / 96 --- */
  .ml4-cartpage{padding-top:32px!important;padding-bottom:48px!important}
  .ml4-cartpage .ml4-ship:has(.ml4-ship__msg:empty){display:none!important}
  .ml4-cart-h1{margin-bottom:0!important}
  .ml4-cartpage .wp-block-woocommerce-cart{margin-top:48px!important}
  .ml4-cartpage .wp-block-woocommerce-empty-cart-block{padding-block:0!important}
  .ml4-empty{padding:0!important;text-align:left!important}
  .ml4-empty__title{margin-bottom:8px!important}
  .ml4-cartpage .ml4-ship{margin-block:24px 0!important}
  .ml4-cartpage .wc-block-cart__submit-container,.ml4-cartpage .wc-block-cart__submit{padding-inline:0!important;margin-inline:0!important}
  .ml4-cartpage .wc-block-cart__totals-title{padding-inline:0!important}

  /* --- about / contact --- */
  .ml4-about__grid,.ml4-contact__grid{padding-block:32px 48px!important}
  .ml4-info{row-gap:16px!important}
  .ml4-info dd{margin:0}
  .wpcf7 form p{margin-bottom:24px}
  .wpcf7-submit{width:100%;min-height:52px}
  .ml4-about__cta a:not(.ml4-btn),.ml4-about a[href*=contact]{display:inline-flex;align-items:center;min-height:44px}

  /* --- checkout --- */
  .ml5-shipnote{margin-bottom:24px!important}
  .wc-block-checkout__sidebar,.wc-block-components-sidebar{margin-top:0!important}
  .wc-block-components-checkout-order-summary__title{margin-bottom:16px!important}
  .wc-block-components-checkout-place-order-button{width:100%}
  .wc-block-checkout__terms a,.wc-block-components-checkbox a{display:inline-block;padding-block:12px}

  /* v5.8 pass 2 */
  .ml4-cartpage,.ml4-checkoutpage,.ml4-main{min-height:0!important}
  .ml4-checkoutpage{padding-bottom:48px!important}
  .ml4-checkoutpage .wc-block-checkout{padding-top:0!important;margin-top:0!important}
  .ml4-checkoutpage .wc-block-components-sidebar-layout{margin-bottom:0!important}
  .ml4-pdp form.cart,.ml4-pdp form.variations_form{margin-bottom:0!important}
  .wpcf7-response-output{margin:0!important}
  .wpcf7 form .wpcf7-response-output:empty,.wpcf7 form.init .wpcf7-response-output{display:none!important}
  .ml4-contact__grid{row-gap:48px!important}
  .ml4-info a{display:inline-block;padding-block:13px;margin-block:-13px}
  /* v5.8 pass 3: trailing margins before the footer */
  .ml4-empty p:last-child,.ml4-card__foot p,.ml4-closing__in p:last-child{margin-bottom:0!important}
  .wpcf7 form:not(.submitting) .wpcf7-spinner{display:none!important}
  .ml4-cartpage .wc-block-cart__submit,.ml4-cartpage .wc-block-components-sidebar,.ml4-cartpage .wc-block-components-sidebar-layout{margin-bottom:0!important;padding-bottom:0!important}
  .ml4-checkoutpage .wc-block-checkout__actions{margin-bottom:0!important}
  .ml4-footer__grid{padding-bottom:24px!important;row-gap:24px!important}
  .ml4-footer__legal{padding-block:8px 24px!important}
  .ml4-footer__legal p{margin:0!important}
  /* v5.8 pass 4: remaining tap targets */
  .ml4-details a,.ml4-pdp__excerpt a{display:inline-block;padding-block:12px;margin-block:-12px}
  .wc-block-components-checkbox label{display:flex!important;align-items:center;min-height:44px}
  .wc-block-components-checkbox{margin-block:4px!important}
  .wc-block-components-address-form__address_2-toggle{display:inline-flex!important;align-items:center;min-height:44px}
}
/* v5.8 pass 5: cart tap targets (WebKit) */
@media (max-width:767px){
.wc-block-components-product-name{display:inline-flex;align-items:center;min-height:44px}
.wc-block-components-quantity-selector{min-height:44px}
.wc-block-components-quantity-selector__button{min-width:44px;min-height:44px}
.wc-block-cart-item__remove-link{display:inline-flex!important;align-items:center;min-height:44px;padding:0 4px}
}
/* v5.8 pass 6: cart summary inner bottom padding; legal row stacked */
@media (max-width:767px){
.wc-block-cart .wc-block-cart__sidebar{padding-bottom:24px!important}
.ml4-footer__legal{flex-direction:column!important;align-items:flex-start!important;gap:0!important}
}
