/* R17 — launch-audit hardening */

/* Language selector: explicit contrast in every state, including Arabic. */
.mhf-language-control .mhf-language-menu>summary,
.mhf-language-control .mhf-language-menu>summary strong,
.mhf-language-control .mhf-language-native,
.mhf-language-control .mhf-language-code{opacity:1!important}
.mhf-language-control .mhf-language-options a{color:#09241b!important;background:#fffaf1!important}
.mhf-language-control .mhf-language-options a .mhf-language-native,
.mhf-language-control .mhf-language-options a .mhf-language-code{color:#09241b!important}
.mhf-language-control .mhf-language-options a.active{background:#09241b!important;border-color:#09241b!important;color:#fff!important}
.mhf-language-control .mhf-language-options a.active .mhf-language-native,
.mhf-language-control .mhf-language-options a.active .mhf-language-code{color:#fff!important}
html[dir="rtl"] .mhf-language-control,
html[dir="rtl"] .mhf-language-control *{unicode-bidi:isolate}
html[dir="rtl"] .mhf-language-native[lang="ar"],
html[dir="rtl"] .mhf-language-native{font-family:'Noto Sans Arabic','Poppins',sans-serif!important;line-height:1.65!important}

/* Server-side localization fallback: untranslated English never gets visually reversed in Arabic. */
html[dir="rtl"] .mhf-untranslated-source{direction:ltr!important;unicode-bidi:isolate!important;display:inline-block;text-align:left!important}
html[dir="rtl"] p .mhf-untranslated-source,
html[dir="rtl"] li .mhf-untranslated-source{display:inline}

/* Add-to-cart fallback feedback. */
.mhf-cart-action-error{margin:12px 0 0;padding:11px 13px;border:1px solid #d79a9f;border-radius:12px;background:#fff2f2;color:#7e1820;font:600 12px/1.45 'Poppins',sans-serif}
.product-card-add.loading{pointer-events:none;opacity:.7}
.product-card-add.loading>span[aria-hidden="true"]{animation:mhfAddSpin .75s linear infinite}
@keyframes mhfAddSpin{to{transform:rotate(360deg)}}

/* Stock should look intentional, not like raw WooCommerce helper text. */
.product-purchase-card p.stock,
.mhf-add-to-cart p.stock{display:inline-flex!important;align-items:center;gap:7px;margin:4px 0 14px!important;padding:7px 11px!important;border-radius:999px!important;font:700 11px/1.2 'Poppins',sans-serif!important}
.product-purchase-card p.stock.in-stock,
.mhf-add-to-cart p.stock.in-stock{color:#176b3c!important;background:#eaf7ef!important;border:1px solid #bfe5ce!important}
.product-purchase-card p.stock.out-of-stock,
.mhf-add-to-cart p.stock.out-of-stock{color:#8a1f27!important;background:#fff0f0!important;border:1px solid #efc9cc!important}
.product-purchase-card p.stock:before,
.mhf-add-to-cart p.stock:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 auto}

/* Ensure the anti-spam field is truly off-screen but remains available to basic bots. */
.mhf-honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.mhf-honeypot input{width:1px!important;height:1px!important;opacity:0!important}

/* Legal/policy pages should read as finished documents rather than empty text canvases. */
.policy-content{font-size:16px;line-height:1.75;color:#33453c}
.policy-content h2{margin:34px 0 10px;font-size:clamp(24px,2.2vw,32px);line-height:1.15;color:#09241b}
.policy-content h3{margin:26px 0 8px;color:#09241b}
.policy-content p,.policy-content li{max-width:78ch;color:#43564c}
.policy-content a{color:#80580b;text-decoration-thickness:1px;text-underline-offset:3px}
.policy-content>p:first-child em{display:block;padding:13px 15px;border:1px solid rgba(216,158,24,.28);border-radius:12px;background:#fff8e7;color:#69501d;font-size:13px;font-style:normal}

/* Shop cards: protect interaction and improve consistency for contact-only products. */
.mhf-contact-price{display:inline-flex;align-items:center;min-height:28px;color:#80580b;font-size:12px;font-weight:700;line-height:1.35}
.product-card-add{touch-action:manipulation}
.product-card-add:focus-visible{outline:3px solid rgba(216,158,24,.55)!important;outline-offset:4px!important}

/* Checkout delivery guard is deliberately prominent on desktop/mobile. */
.mhf-delivery-required-notice{display:grid!important;gap:4px!important;margin:14px 0!important;padding:14px 16px!important;border:1px solid #e2a937!important;border-radius:14px!important;background:#fff8e7!important;color:#4d3a11!important}
.mhf-delivery-required-notice strong{color:#09241b!important;font-size:14px!important}
.mhf-delivery-required-notice span{font-size:13px!important;line-height:1.55!important}
.mhf-shipping-blocked{opacity:.58!important;cursor:not-allowed!important}

/* Mobile acceptance hardening. */
@media(max-width:640px){
  .product-detail-grid-v10,.product-detail-lower,.contact-layout,.faq-layout,.form-layout{grid-template-columns:1fr!important}
  .product-info-v10,.product-main-media-v10{min-width:0!important}
  .product-heading-block h1{font-size:clamp(34px,10vw,48px)!important;line-height:1!important}
  .product-facts-v10{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .product-assurance-grid{grid-template-columns:1fr!important}
  .product-purchase-card .cart{display:grid!important;grid-template-columns:minmax(68px,92px) 1fr!important;gap:10px!important}
  .product-fast-actions{grid-template-columns:1fr!important}
  .mhf-language-control .mhf-language-popover{max-width:calc(100vw - 32px)!important}
  .woocommerce-checkout input,.woocommerce-checkout select,.woocommerce-checkout textarea,
  .wc-block-checkout input,.wc-block-checkout select{font-size:16px!important}
}

@media(prefers-reduced-motion:reduce){.product-card-add.loading>span[aria-hidden="true"]{animation:none!important}}

/* When Marshmallows are not published, do not advertise them in the hero artwork. */
.v4-showcase-live{position:relative!important;display:block!important;width:min(720px,100%)!important;height:620px!important;margin:auto!important}
.v4-showcase-live img{position:absolute!important;display:block!important;object-fit:contain!important;filter:drop-shadow(0 28px 34px rgba(0,0,0,.22))!important}
.v4-showcase-live .v4-live-ghee{width:46%!important;right:8%!important;bottom:4%!important;z-index:3!important}
.v4-showcase-live .v4-live-spice{width:51%!important;left:3%!important;bottom:8%!important;z-index:2!important;transform:rotate(-5deg)!important}
.v4-showcase-live .v4-live-maamoul{width:55%!important;left:24%!important;top:2%!important;z-index:1!important;transform:rotate(4deg)!important}
@media(max-width:960px){.v4-showcase-live{height:520px!important}}
@media(max-width:640px){.v4-showcase-live{height:390px!important}.v4-showcase-live .v4-live-ghee{width:48%!important}.v4-showcase-live .v4-live-spice{width:53%!important}.v4-showcase-live .v4-live-maamoul{width:58%!important}}
