:root{
  --moon-rc41-header-h:74px;
  --moon-rc41-bottom-h:74px;
}

@media (max-width: 767px){
  body:not(.wp-admin){
    padding-top:calc(var(--moon-rc41-header-h) + env(safe-area-inset-top));
  }
  body.moon-has-mobile-commerce-nav:not(.wp-admin){
    padding-bottom:calc(var(--moon-rc41-bottom-h) + env(safe-area-inset-bottom));
  }

  .moon-header{
    position:fixed !important;
    top:0 !important;
    left:0;
    right:0;
    width:100%;
    z-index:12020 !important;
    border-radius:0 !important;
    border-inline:0 !important;
    border-top:0 !important;
    background:rgba(4,12,21,.94) !important;
    backdrop-filter:blur(14px);
    box-shadow:0 14px 38px rgba(0,0,0,.22);
    transition:transform .28s ease, opacity .22s ease;
  }
  body.admin-bar .moon-header{top:46px !important}
  .moon-header-inner{
    min-height:var(--moon-rc41-header-h) !important;
    padding-inline:12px !important;
    gap:10px !important;
  }
  .moon-brand{display:flex;align-items:center}
  .moon-brand img,.moon-header .custom-logo{max-height:31px !important;width:auto !important}
  .moon-menu-toggle{
    order:-1;
    width:42px;
    height:42px;
    border-radius:14px;
    border:1px solid rgba(126,188,247,.18);
    background:rgba(7,18,30,.84);
    display:grid !important;
    place-items:center;
    padding:0 !important;
  }
  .moon-menu-toggle span{
    width:18px !important;
    height:2px !important;
    border-radius:999px;
    background:#f3f8fd !important;
    margin:2.5px 0 !important;
  }
  .moon-menu-toggle .screen-reader-text{width:1px !important;height:1px !important;margin:-1px !important;overflow:hidden !important;position:absolute !important}
  .moon-nav{display:none !important}
  .moon-header-actions{gap:7px !important}
  .moon-track-order-header{
    min-width:42px !important;
    min-height:42px !important;
    padding:0 11px !important;
    border-radius:14px !important;
    background:rgba(7,18,30,.82) !important;
  }
  .moon-track-order-header span{display:none !important}
  .moon-icon-link,.moon-cart-link{
    width:42px !important;
    min-width:42px !important;
    height:42px !important;
    border-radius:14px !important;
    background:rgba(7,18,30,.82) !important;
    border-color:rgba(126,188,247,.18) !important;
  }
  .moon-cart-count,.moon-wishlist-count{
    top:-4px !important;
    right:-1px !important;
  }

  .moon-rc38-bottom-nav{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    z-index:12010 !important;
    min-height:var(--moon-rc41-bottom-h) !important;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    border-radius:18px 18px 0 0 !important;
    border:1px solid rgba(114,186,255,.18) !important;
    border-bottom:0 !important;
    background:linear-gradient(180deg,rgba(6,17,29,.98),rgba(4,11,20,.99)) !important;
    backdrop-filter:blur(16px);
    box-shadow:0 -14px 40px rgba(0,0,0,.22);
    transition:transform .28s ease, opacity .22s ease;
    gap:2px !important;
  }
  .moon-rc38-bottom-nav :is(a,button){
    flex:1 1 0;
    min-width:0;
    min-height:56px;
    padding:6px 4px 8px !important;
    border:0;
    border-radius:16px;
    background:transparent;
    color:#dce8f4;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    font-size:.66rem;
    font-weight:800;
    letter-spacing:.01em;
    text-decoration:none;
    position:relative;
  }
  .moon-rc38-bottom-nav :is(a,button)[aria-current="page"]{
    background:linear-gradient(180deg,rgba(22,135,255,.19),rgba(22,135,255,.08));
    box-shadow:inset 0 0 0 1px rgba(96,175,255,.28);
    color:#fff;
  }
  .moon-r38-nav-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}
  .moon-r38-nav-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .moon-r38-count{
    position:absolute;
    top:4px;
    right:calc(50% - 20px);
    min-width:17px;
    height:17px;
    padding:0 4px;
    border-radius:999px;
    display:grid;
    place-items:center;
    background:#1b8cff;
    color:#fff;
    font-size:.6rem;
    font-weight:900;
    line-height:1;
  }

  body.moon-mobile-header-hidden .moon-header{transform:translateY(calc(-100% - env(safe-area-inset-top)));opacity:.02;pointer-events:none}
  body.moon-mobile-nav-hidden .moon-rc38-bottom-nav{transform:translateY(calc(100% + env(safe-area-inset-bottom)));opacity:.02;pointer-events:none}

  body.moon-mobile-drawer-open{overflow:hidden}
  .moon-mobile-drawer-backdrop{
    position:fixed;
    inset:0;
    z-index:12030;
    background:rgba(2,7,13,.66);
    backdrop-filter:blur(8px);
  }
  .moon-mobile-drawer{
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    width:min(92vw,380px);
    z-index:12040;
    transform:translateX(-104%);
    transition:transform .26s cubic-bezier(.2,.8,.2,1);
    color:#eef5fb;
  }
  .moon-mobile-drawer.is-open{transform:translateX(0)}
  .moon-mobile-drawer-shell{
    height:100%;
    display:grid;
    grid-template-rows:auto 1fr;
    background:linear-gradient(180deg,rgba(5,14,24,.98),rgba(3,9,17,.99));
    border-right:1px solid rgba(125,188,247,.2);
    box-shadow:22px 0 60px rgba(0,0,0,.36);
  }
  .moon-mobile-drawer-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:18px 16px 14px;
    border-bottom:1px solid rgba(125,188,247,.12);
  }
  .moon-mobile-drawer-brand img,.moon-mobile-drawer-brand .custom-logo{max-height:28px;width:auto}
  .moon-mobile-drawer-close{
    width:40px;height:40px;border-radius:14px;border:1px solid rgba(125,188,247,.16);background:rgba(255,255,255,.03);color:#fff;font-size:1.6rem;line-height:1
  }
  .moon-mobile-drawer-body{overflow:auto;padding:14px 14px calc(18px + env(safe-area-inset-bottom))}
  .moon-mobile-drawer-nav{display:grid;gap:10px}
  .moon-mobile-drawer-nav :is(a,button){
    width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:0 16px;border-radius:17px;border:1px solid rgba(125,188,247,.13);background:rgba(255,255,255,.028);color:#f2f7fc;text-decoration:none;font-size:.96rem;font-weight:800;letter-spacing:-.01em
  }
  .moon-mobile-drawer-nav :is(a,button) b{font-size:1rem;color:#83c1ff}
  .moon-mobile-drawer-nav button{cursor:pointer}
  .moon-mobile-drawer-nav :is(a,button):active{transform:scale(.985)}
  .moon-mobile-drawer-collections{display:grid;gap:15px;margin-top:14px;padding-top:2px}
  .moon-mobile-drawer-intro{padding:18px;border:1px solid rgba(125,188,247,.13);border-radius:22px;background:radial-gradient(circle at 88% 12%,rgba(22,135,255,.18),transparent 38%),linear-gradient(145deg,rgba(10,25,42,.95),rgba(4,10,18,.98))}
  .moon-mobile-drawer-intro .moon-eyebrow,.moon-mobile-drawer-edits .moon-eyebrow{display:block;margin:0 0 10px;color:#8ecbff;font-size:.68rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
  .moon-mobile-drawer-intro h3{margin:0 0 10px !important;font-size:2rem !important;line-height:.98 !important;color:#fff !important;letter-spacing:-.045em !important}
  .moon-mobile-drawer-intro p{margin:0 0 14px !important;color:#b7c8d8 !important;font-size:.9rem !important;line-height:1.6 !important}
  .moon-mobile-drawer-intro a{color:#f7fbff;text-decoration:none;font-weight:850}
  .moon-mobile-drawer-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .moon-mobile-drawer-card{
    position:relative;min-height:142px;padding:12px;border-radius:18px;border:1px solid rgba(125,188,247,.13);background:linear-gradient(180deg,rgba(4,11,20,.78),rgba(5,13,23,.98));display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;color:#fff;text-decoration:none;isolation:isolate
  }
  .moon-mobile-drawer-card-media,.moon-mobile-drawer-card-shade{position:absolute;inset:0}
  .moon-mobile-drawer-card-media img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
  .moon-mobile-drawer-card-shade{background:linear-gradient(180deg,rgba(3,8,14,.14),rgba(3,8,14,.48) 48%,rgba(3,8,14,.94) 100%)}
  .moon-mobile-drawer-card small,.moon-mobile-drawer-card strong,.moon-mobile-drawer-card span:last-child{position:relative;z-index:1}
  .moon-mobile-drawer-card small{margin-bottom:auto;color:#d8eafb;font-size:.7rem;font-weight:900}
  .moon-mobile-drawer-card strong{font-size:1rem;font-weight:900;letter-spacing:-.02em}
  .moon-mobile-drawer-card span:last-child{color:#d5e0ea;font-size:.78rem}
  .moon-mobile-drawer-card.has-no-image{justify-content:center}
  .moon-mobile-drawer-card-grid .moon-mobile-drawer-card:last-child:nth-child(odd){grid-column:1/-1}
  .moon-mobile-drawer-edit-list{display:grid;gap:9px}
  .moon-mobile-drawer-edit-list a{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border:1px solid rgba(125,188,247,.13);border-radius:16px;background:rgba(255,255,255,.025);color:#eef5fb;text-decoration:none;font-size:.88rem;font-weight:800}

  .woocommerce-checkout .moon-site-main,
  .woocommerce-checkout .moon-content-page,
  .woocommerce-checkout .woocommerce{width:100%}
  .woocommerce-checkout .moon-container{width:min(100% - 12px, 100%) !important}
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review,
  .woocommerce-checkout #order_review_heading{
    padding:14px !important;
    border-radius:18px !important;
  }
  .woocommerce-checkout #customer_details{margin-inline:0 !important}
  .woocommerce-checkout .col2-set,
  .woocommerce-checkout .woocommerce-checkout-review-order{width:100% !important}
  .woocommerce-checkout .woocommerce-billing-fields,
  .woocommerce-checkout .woocommerce-additional-fields,
  .woocommerce-checkout #payment,
  .woocommerce-checkout .woocommerce-additional-fields > h3,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review{
    border-radius:18px !important;
  }
  .woocommerce-checkout .woocommerce form.checkout_coupon,
  .woocommerce-checkout .woocommerce-info{
    padding:12px 14px !important;
    border-radius:16px !important;
    margin-bottom:12px !important;
    min-height:0 !important;
    font-size:.86rem !important;
  }
  .woocommerce-checkout .showcoupon,
  .woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon{font-weight:800}

  .woocommerce-checkout .form-row,
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-additional-fields__field-wrapper{margin-bottom:10px !important}
  .woocommerce-checkout .form-row label{margin-bottom:6px !important;font-size:.84rem !important;font-weight:800 !important}
  .woocommerce-checkout .form-row input.input-text,
  .woocommerce-checkout .form-row textarea,
  .woocommerce-checkout .form-row select,
  .woocommerce-checkout .select2-container--default .select2-selection--single{
    min-height:50px !important;
    border-radius:14px !important;
    font-size:16px !important;
    padding-inline:14px !important;
  }
  .woocommerce-checkout .form-row textarea{min-height:96px !important;padding-top:14px !important}
  .woocommerce-checkout #billing_country_field,
  .woocommerce-checkout .country_to_state,
  .woocommerce-checkout #select2-billing_country-container,
  .woocommerce-checkout .select2-selection__arrow{display:none !important}

  .woocommerce-checkout .moon-delivery-area-field .woocommerce-input-wrapper{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .woocommerce-checkout .moon-delivery-area-field .woocommerce-input-wrapper label{
    display:grid !important;
    gap:2px;
    align-content:start;
    min-height:88px;
    padding:12px 12px 10px !important;
    border-radius:16px !important;
    border:1px solid rgba(118,184,247,.2) !important;
    background:linear-gradient(180deg,rgba(6,16,27,.98),rgba(5,13,22,.98)) !important;
    box-shadow:none !important;
  }
  .woocommerce-checkout .moon-delivery-area-field .woocommerce-input-wrapper label.is-selected{
    border-color:#4aa8ff !important;
    box-shadow:0 0 0 2px rgba(74,168,255,.15), inset 0 0 0 1px rgba(255,255,255,.04) !important;
    background:linear-gradient(180deg,rgba(15,70,118,.52),rgba(7,27,46,.94)) !important;
  }
  .woocommerce-checkout .moon-delivery-area-field label .woocommerce-Price-amount{font-size:.98rem;font-weight:900;color:#fff}
  .woocommerce-checkout .moon-delivery-area-field label small,
  .woocommerce-checkout .moon-delivery-area-field label .description{color:#c9d8e6;font-size:.76rem}

  .woocommerce-checkout .woocommerce-additional-fields{
    padding:14px !important;
    border:1px solid rgba(118,184,247,.16) !important;
    background:linear-gradient(180deg,rgba(7,17,29,.88),rgba(5,13,22,.95)) !important;
  }
  .woocommerce-checkout .woocommerce-additional-fields > h3{
    margin:0 0 10px !important;
    font-size:1.06rem !important;
    line-height:1.1 !important;
  }
  .woocommerce-checkout .woocommerce-additional-fields .form-row label{margin-bottom:8px !important}
  .woocommerce-checkout .woocommerce-additional-fields .optional{opacity:.72}

  .woocommerce-checkout #order_review_heading{
    margin-bottom:10px !important;
    font-size:1.15rem !important;
    line-height:1.05 !important;
  }
  .woocommerce-checkout table.shop_table{background:transparent !important;border:0 !important}
  .woocommerce-checkout table.shop_table th,
  .woocommerce-checkout table.shop_table td{padding:9px 0 !important;font-size:.86rem !important}
  .woocommerce-checkout .moon-checkout-line-item{
    display:grid !important;
    grid-template-columns:54px minmax(0,1fr) !important;
    gap:10px !important;
    align-items:start !important;
  }
  .woocommerce-checkout .moon-checkout-line-image img{
    width:54px !important;
    height:72px !important;
    object-fit:cover !important;
    border-radius:10px !important;
  }
  .woocommerce-checkout .moon-checkout-line-copy{
    display:grid !important;
    gap:5px !important;
    min-width:0 !important;
  }
  .woocommerce-checkout .moon-checkout-line-copy > a,
  .woocommerce-checkout .moon-checkout-line-copy > strong,
  .woocommerce-checkout .moon-checkout-line-copy .product-name{
    font-size:.84rem !important;
    line-height:1.3 !important;
    font-weight:850 !important;
  }
  .woocommerce-checkout .moon-checkout-remove{font-size:.77rem !important}
  .woocommerce-checkout .moon-checkout-quantity{
    margin-top:8px !important;
    min-height:40px !important;
    border-radius:12px !important;
  }
  .woocommerce-checkout .moon-checkout-quantity button{min-width:34px !important;height:40px !important}
  .woocommerce-checkout .moon-checkout-quantity output{min-width:22px !important;font-size:.9rem !important}
  .woocommerce-checkout .moon-checkout-size-row{margin:8px 0 0 !important;padding:6px 0 0 !important}
  .woocommerce-checkout .moon-checkout-size-row > strong,
  .woocommerce-checkout .moon-checkout-size-row label,
  .woocommerce-checkout .moon-checkout-size-row .moon-checkout-size-label{display:block;margin-bottom:6px;font-size:.76rem;font-weight:800;color:#d9e7f4}
  .woocommerce-checkout .moon-checkout-size-chips{display:flex !important;flex-wrap:nowrap !important;gap:6px !important;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
  .woocommerce-checkout .moon-checkout-size-chips::-webkit-scrollbar{display:none}
  .woocommerce-checkout .moon-checkout-size-chip{
    flex:0 0 auto !important;
    min-width:38px !important;
    min-height:38px !important;
    padding:5px 8px !important;
    border-radius:12px !important;
    font-size:.8rem !important;
  }
  .woocommerce-checkout .product-quantity,
  .woocommerce-checkout .variation,
  .woocommerce-checkout .wc-item-meta{font-size:.76rem !important;line-height:1.45 !important}
  .woocommerce-checkout .product-total,
  .woocommerce-checkout .cart-subtotal td,
  .woocommerce-checkout .order-total td,
  .woocommerce-checkout .shipping td{font-size:.88rem !important;font-weight:800 !important}
  .woocommerce-checkout .moon-add-more-products{padding:12px 14px !important;border-radius:15px !important}
  .woocommerce-checkout .moon-add-more-products strong{font-size:.86rem !important}
  .woocommerce-checkout .moon-add-more-products small{font-size:.72rem !important}
  .woocommerce-checkout .woocommerce-checkout-payment,
  .woocommerce-checkout #payment{padding:14px !important;border-radius:18px !important}
  .woocommerce-checkout #place_order{min-height:50px !important;border-radius:14px !important;font-size:.92rem !important}
}

/* RC41.1 structural correctness and selector-order overrides. */
.moon-mobile-drawer[hidden],.moon-mobile-drawer-backdrop[hidden],
.moon-mobile-drawer-collections[hidden],.moon-cart-panel[hidden],.moon-cart-backdrop[hidden]{display:none !important}
.moon-mobile-drawer-backdrop{display:block}
.moon-mobile-drawer{display:block}
.moon-panel-backdrop.moon-cart-backdrop{z-index:12500}
.moon-side-panel.moon-cart-panel{z-index:12510}
@media(max-width:767px){
  body .moon-rc38-bottom-nav{display:flex!important;justify-content:space-between;align-items:stretch}
  body .moon-rc38-bottom-nav.is-hidden{display:flex!important}
  body .moon-rc38-bottom-nav :is(a,button){font-size:11px!important;line-height:1.15!important}
  body .moon-rc38-bottom-nav .moon-r38-nav-icon{font-size:0!important}
  body .moon-rc38-bottom-nav .moon-r38-nav-icon svg{width:22px!important;height:22px!important}
  body .moon-header{height:var(--moon-rc41-header-h)!important}
  body .moon-header-inner{display:flex!important;justify-content:space-between!important;align-items:center!important;width:100%!important;max-width:none!important;box-sizing:border-box!important}
  body .moon-menu-toggle{order:0!important;flex:0 0 40px;grid-column:auto!important;grid-row:auto!important}
  body .moon-brand{order:1!important;flex:1 1 auto;min-width:0;justify-content:center!important;grid-column:auto!important;grid-row:auto!important}
  body .moon-header-actions{order:2!important;display:flex!important;flex:0 0 auto;justify-content:flex-end!important;grid-column:auto!important;grid-row:auto!important}
  body .moon-header-actions .moon-track-order-header{display:none!important}
  body .moon-header-actions .moon-wishlist-link{display:none!important}
  body .moon-header-actions :is(.moon-icon-link,.moon-cart-link){display:flex!important;align-items:center!important;justify-content:center!important;width:38px!important;min-width:38px!important;height:40px!important;padding:0!important}
  body .moon-header-actions .moon-icon-link[href*="my-account"]{display:none!important}
  body .moon-rc38-bottom-nav{box-sizing:border-box!important}
  body.woocommerce-checkout .moon-main>.moon-container{width:calc(100% - 16px)!important;margin-inline:8px!important;max-width:none!important;min-width:0!important;padding-inline:0!important}
  body.woocommerce-checkout .woocommerce-checkout #customer_details,
  body.woocommerce-checkout .woocommerce-checkout #order_review{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin-inline:0!important;padding:12px!important}
  body.woocommerce-checkout .moon-delivery-area-field .woocommerce-input-wrapper :is(label,.radio){box-sizing:border-box!important;min-width:0!important;overflow-wrap:anywhere!important;line-height:1.35!important}
  body.woocommerce-checkout .moon-checkout-size-chips{flex-wrap:nowrap!important;overflow-x:auto!important;min-width:0!important}
  body.woocommerce-checkout .shop_table .product-name{min-width:0!important;overflow-wrap:anywhere!important}
  body.woocommerce-checkout .shop_table .product-total{min-width:74px!important;text-align:right!important;vertical-align:top!important}
  body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
  body.woocommerce-checkout #billing_country_field{display:none!important}
  body.woocommerce-checkout .woocommerce-additional-fields{padding:12px!important}
  body.woocommerce-checkout .moon-order-note-field textarea{max-height:112px!important}
}
@media(max-width:359px){
  body .moon-header-actions{gap:3px!important}
  body .moon-header-actions :is(.moon-icon-link,.moon-cart-link){width:34px!important;min-width:34px!important}
  body .moon-brand img{max-width:96px!important;height:auto!important}
  body .moon-rc38-bottom-nav :is(a,button){padding-inline:1px!important;font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){.moon-mobile-drawer,.moon-header,.moon-rc38-bottom-nav{transition:none!important}}
body.moon-performance-lite .moon-mobile-drawer-backdrop,
body.moon-performance-lite .moon-header,
body.moon-performance-lite .moon-rc38-bottom-nav{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* RC41.2 — audited single-row header and deterministic scroll state. */
@media (max-width:767px) {
  :root { --moon-rc41-header-h: 64px; }
  html { scroll-padding-top: calc(var(--moon-rc41-header-h) + 10px); }
  body .moon-page-shell > .moon-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: var(--moon-rc41-header-h) !important;
    min-height: var(--moon-rc41-header-h) !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #081420 !important; /* Opaque: text/product imagery never bleeds through. */
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(142,187,224,.18) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.18) !important;
    transform: translate3d(0,0,0);
    will-change: auto;
    transition: transform 320ms cubic-bezier(.22,.8,.24,1), box-shadow 220ms ease !important;
  }
  body.admin-bar .moon-page-shell > .moon-header {top:46px !important;}
  body .moon-page-shell > .moon-header .moon-header-inner,
  body .moon-page-shell > .moon-header .moon-container.moon-header-inner {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(40px,1fr) auto minmax(80px,1fr) !important;
    grid-template-areas: 'toggle brand actions' !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    min-height: var(--moon-rc41-header-h) !important;
    height: var(--moon-rc41-header-h) !important;
    margin: 0 !important;
    padding: 0 14px !important;
    gap: 0 !important;
  }
  body .moon-page-shell > .moon-header .moon-menu-toggle {
    grid-area: toggle !important;
    order: 0 !important;
    justify-self: start !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  /* Absolute viewport centering, independent of the right-side button count. */
  body .moon-page-shell > .moon-header .moon-brand {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: max-content !important;
    max-width: min(34vw,145px) !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: translate(-50%,-50%) !important;
    z-index: 1 !important;
    grid-area: brand !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body .moon-page-shell > .moon-header .moon-brand :is(a,img,svg) {
    display: block !important;
    max-width: 100% !important;
    max-height: 34px !important;
    width: auto !important;
    height: auto !important;
  }
  body .moon-page-shell > .moon-header .moon-header-actions {
    grid-area: actions !important;
    order: 2 !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body .moon-page-shell > .moon-header .moon-header-actions .moon-header-cart,
  body .moon-page-shell > .moon-header .moon-header-actions .moon-cart-link {
    display: none !important; /* Cart remains in bottom navigation. */
  }
  body .moon-page-shell > .moon-header .moon-header-actions :is(.moon-search-trigger,.moon-wishlist-link) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 8px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body .moon-page-shell > .moon-header .moon-header-actions .moon-track-order-header,
  body .moon-page-shell > .moon-header .moon-header-actions a[aria-label="My account"] { display:none !important; }
  body.moon-mobile-header-hidden .moon-page-shell > .moon-header {
    transform: translate3d(0,calc(-100% - 2px),0) !important;
    pointer-events: none !important;
    opacity: 1 !important;
  }
  body.moon-mobile-header-visible .moon-page-shell > .moon-header {
    transform: translate3d(0,0,0) !important;
    pointer-events: auto !important;
    opacity: 1 !important;
  }
  /* Preserve the bottom cart navigation at every scroll position. */
  body .moon-rc38-bottom-nav,
  body.moon-mobile-nav-hidden .moon-rc38-bottom-nav,
  body .moon-rc38-bottom-nav.is-hidden {
    transform: translate3d(0,0,0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  body .moon-rc38-bottom-nav [data-moon-cart-open] { min-width:0 !important; }
  body:not(.wp-admin) { padding-top: calc(var(--moon-rc41-header-h) + env(safe-area-inset-top)) !important; }
}
@media(max-width:359px) {
  body .moon-page-shell > .moon-header .moon-header-inner { padding:0 9px !important; }
  body .moon-page-shell > .moon-header .moon-brand { max-width:32vw !important; }
  body .moon-page-shell > .moon-header .moon-header-actions { gap:0 !important; }
  body .moon-page-shell > .moon-header .moon-header-actions :is(.moon-search-trigger,.moon-wishlist-link) { width:34px !important; min-width:34px !important; }
}
@media(prefers-reduced-motion:reduce) {
  body .moon-page-shell > .moon-header { transition:none !important; }
}
