/* Commerce CTA policy + homepage polish */

/* Purchase actions: gold fill + navy text. Hover becomes white.
   Exception: when the purchase action sits directly on a gold surface,
   use navy fill + gold text so the button remains clearly visible. */
.moonli-add-to-cart,
.woocommerce a.button.add_to_cart_button,
.woocommerce button.single_add_to_cart_button,
.woocommerce a.checkout-button,
.checkout-button,
.moonli-cart-checkout,
.wc-block-cart__submit-button,
.woocommerce #place_order,
#place_order,
.wc-block-components-checkout-place-order-button{
  background:var(--gold)!important;
  border-color:var(--gold)!important;
  color:var(--navy)!important;
}

.moonli-add-to-cart:hover,
.woocommerce a.button.add_to_cart_button:hover,
.woocommerce button.single_add_to_cart_button:hover,
.woocommerce a.checkout-button:hover,
.checkout-button:hover,
.moonli-cart-checkout:hover,
.wc-block-cart__submit-button:hover,
.woocommerce #place_order:hover,
#place_order:hover,
.wc-block-components-checkout-place-order-button:hover{
  background:#fff!important;
  border-color:#fff!important;
  color:var(--navy)!important;
}

/* Gold surfaces: invert the purchase action. */
.moment-coffee .moonli-add-to-cart,
.focus-final-buy-trust .moonli-add-to-cart{
  background:var(--navy)!important;
  border-color:var(--navy)!important;
  color:var(--gold)!important;
}
.moment-coffee .moonli-add-to-cart:hover,
.focus-final-buy-trust .moonli-add-to-cart:hover{
  background:#fff!important;
  border-color:#fff!important;
  color:var(--navy)!important;
}

/* Three Moments: filled purchase CTA + outlined detail CTA. */
.moment-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}
.moment-actions .moment-buy,
.moment-actions .moment-more{
  margin-top:0!important;
  min-width:158px;
  min-height:42px;
  padding:10px 22px;
  font-size:10px;
}

/* Coffee card is gold, so purchase CTA is navy. */
.moment-coffee .moment-actions .moment-buy{
  background:var(--navy)!important;
  border-color:var(--navy)!important;
  color:var(--gold)!important;
}
.moment-coffee .moment-actions .moment-buy:hover{
  background:#fff!important;
  border-color:#fff!important;
  color:var(--navy)!important;
}
.moment-coffee .moment-actions .moment-more{
  background:transparent!important;
  border-color:var(--navy)!important;
  color:var(--navy)!important;
}
.moment-coffee .moment-actions .moment-more:hover{
  background:var(--navy)!important;
  color:var(--gold)!important;
}

/* Focus card is navy. */
.moment-focus .moment-actions .moment-buy{
  background:var(--gold)!important;
  border-color:var(--gold)!important;
  color:var(--navy)!important;
}
.moment-focus .moment-actions .moment-buy:hover{
  background:#fff!important;
  border-color:#fff!important;
  color:var(--navy)!important;
}
.moment-focus .moment-actions .moment-more{
  background:transparent!important;
  border-color:var(--gold)!important;
  color:var(--gold)!important;
}
.moment-focus .moment-actions .moment-more:hover{
  background:var(--gold)!important;
  color:var(--navy)!important;
}

/* Cacao card is light, so purchase CTA stays gold. */
.moment-cacao .moment-actions .moment-buy{
  background:var(--gold)!important;
  border-color:var(--gold)!important;
  color:var(--navy)!important;
}
.moment-cacao .moment-actions .moment-buy:hover{
  background:#fff!important;
  border-color:#fff!important;
  color:var(--navy)!important;
}
.moment-cacao .moment-actions .moment-more{
  background:transparent!important;
  border-color:var(--navy)!important;
  color:var(--navy)!important;
}
.moment-cacao .moment-actions .moment-more:hover{
  background:var(--navy)!important;
  color:#fff!important;
}

/* Remove the rectangular backdrop behind the rounded Focus sticky buy bar. */
.focus-pdp-trust .moonli-sticky-buy{
  background:transparent!important;
  border-top:0!important;
  backdrop-filter:none!important;
}
.focus-pdp-trust .moonli-sticky-buy-inner{
  background:rgba(248,239,227,.96)!important;
  border:1px solid rgba(193,158,100,.72)!important;
  box-shadow:0 16px 45px rgba(10,50,68,.18)!important;
  backdrop-filter:blur(12px);
}

/* Preserve complete product packshots in the native Woo archive grid. */
.moonli-woo-content ul.products li.product a img{
  object-fit:contain!important;
  object-position:center!important;
}

@media(max-width:620px){
  .moment-actions{width:100%;gap:8px}
  .moment-actions .moment-buy,
  .moment-actions .moment-more{
    min-width:0;
    width:calc(50% - 4px);
    padding-inline:10px;
  }
}
