/*
 * Maple House Foods — R8 UI polish layer
 * Loaded after the legacy/theme stylesheet so this file is the single final
 * authority for image containment, page-hero geometry, card polish and
 * decorative maple-leaf details.
 */

:root{
  --mhf-ui-radius:22px;
  --mhf-ui-radius-sm:14px;
  --mhf-ui-border:rgba(9,36,27,.11);
  --mhf-ui-border-strong:rgba(9,36,27,.18);
  --mhf-ui-shadow:0 24px 68px rgba(9,36,27,.10);
  --mhf-ui-shadow-soft:0 14px 38px rgba(9,36,27,.075);
  --mhf-ui-cream:#f6f0e4;
  --mhf-ui-paper:#fffdf8;
}

html,body{max-width:100%;overflow-x:clip}
body{position:relative}
main{position:relative;z-index:2}
img{height:auto}

/* --------------------------------------------------------------------------
   Global maple-leaf identity
   -------------------------------------------------------------------------- */
.mhf-leaf-drift{position:fixed;inset:0;z-index:8;pointer-events:none;overflow:hidden;contain:layout paint;opacity:1}
.mhf-leaf-drift span,
.page-hero:after,
.product-media:before,
.product-main-media:after,
.v4-shop-section:after,
.section-cream:after,
.newsletter:before,
.site-footer:before{
  -webkit-mask:url('../decor/maple-leaf.svg') center/contain no-repeat;
  mask:url('../decor/maple-leaf.svg') center/contain no-repeat;
}
.mhf-leaf-drift span{position:absolute;display:block;background:var(--green);opacity:.035;will-change:transform}
.mhf-leaf-drift .leaf-a{width:72px;height:72px;left:1.3vw;top:27vh;transform:rotate(-18deg);animation:mhfLeafFloatA 10s ease-in-out infinite}
.mhf-leaf-drift .leaf-b{width:52px;height:52px;right:2.2vw;top:18vh;background:var(--gold);opacity:.055;transform:rotate(17deg);animation:mhfLeafFloatB 12s ease-in-out infinite}
.mhf-leaf-drift .leaf-c{width:88px;height:88px;right:-20px;top:68vh;background:var(--red);opacity:.025;transform:rotate(-8deg);animation:mhfLeafFloatA 13s ease-in-out infinite reverse}
.mhf-leaf-drift .leaf-d{width:44px;height:44px;left:3vw;top:79vh;background:var(--gold);opacity:.045;transform:rotate(22deg);animation:mhfLeafFloatB 9s ease-in-out infinite reverse}
@keyframes mhfLeafFloatA{0%,100%{translate:0 0}50%{translate:0 -16px}}
@keyframes mhfLeafFloatB{0%,100%{translate:0 0}50%{translate:7px 13px}}

/* Header / chrome: cleaner, more premium, no accidental clipping. */
.site-header{box-shadow:0 8px 30px rgba(9,36,27,.045)!important}
.header-inner{min-width:0}
.brand-link{flex:0 0 auto}
.header-actions{min-width:max-content}
.icon-btn{border:1px solid transparent!important}
.icon-btn:hover{border-color:rgba(9,36,27,.08)!important}
.mobile-nav-panel,.search-panel,.cart-panel{border-radius:24px 0 0 24px}
.search-panel{border-radius:24px!important}

/* --------------------------------------------------------------------------
   Internal page hero: images and backgrounds stay fully visible.
   -------------------------------------------------------------------------- */
.page-hero{overflow:hidden!important;background:linear-gradient(132deg,#f5efe2 0%,#fbf8f1 54%,#f1e6cf 100%)!important;isolation:isolate}
.page-hero:before{opacity:.72}
.page-hero:after{content:'';position:absolute;z-index:0;width:190px;height:190px;left:-38px;bottom:28px;background:var(--green);opacity:.035;transform:rotate(-14deg);pointer-events:none}
.page-hero-grid{position:relative;z-index:1;min-height:470px!important;grid-template-columns:minmax(0,.92fr) minmax(390px,1.08fr)!important;gap:clamp(42px,6vw,82px)!important;padding:58px 0!important}
.page-hero-copy{max-width:690px!important}
.page-hero-copy h1{font-size:clamp(38px,3.6vw,54px)!important;line-height:1.055!important;letter-spacing:-.042em!important;text-wrap:balance}
.page-hero-copy .lede{font-size:16px!important;line-height:1.7!important;max-width:620px!important}
.page-hero-visual{position:relative!important;height:380px!important;min-width:0!important;padding:34px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;border:1px solid rgba(9,36,27,.08)!important;border-radius:28px!important;background:linear-gradient(145deg,#eee6d7,#f8f3e9)!important;box-shadow:var(--mhf-ui-shadow-soft)!important;isolation:isolate}
.page-hero-visual:before{width:min(315px,72%)!important;height:auto!important;aspect-ratio:1!important;right:50%!important;top:50%!important;transform:translate(50%,-50%)!important;opacity:.88!important;box-shadow:none!important;z-index:0!important}
.page-hero-visual:after{content:'';position:absolute;width:112px;height:112px;right:22px;top:22px;background:var(--green);opacity:.06;-webkit-mask:url('../decor/maple-leaf.svg') center/contain no-repeat;mask:url('../decor/maple-leaf.svg') center/contain no-repeat;transform:rotate(13deg);z-index:1}
.page-hero-visual.dark{background:linear-gradient(145deg,#0c2d22,#123d2e)!important;border-color:rgba(255,255,255,.12)!important}
.page-hero-visual.dark:before,.wholesale-hero .page-hero-visual:before{background:linear-gradient(145deg,#f6d481,#d89e18)!important;opacity:.92!important}
.page-hero-visual.dark:after,.wholesale-hero .page-hero-visual:after{background:#fff;opacity:.07}
.page-hero-visual.gold{background:linear-gradient(145deg,#f2dfaa,#e4ba57)!important}
.page-hero-visual img{position:relative!important;z-index:2!important;width:auto!important;height:auto!important;max-width:92%!important;max-height:315px!important;object-fit:contain!important;object-position:center!important;transform:none!important;animation:mhfHeroProductFloat 6.5s ease-in-out infinite!important;filter:drop-shadow(0 24px 28px rgba(9,36,27,.16))!important}
@keyframes mhfHeroProductFloat{0%,100%{translate:0 0}50%{translate:0 -7px}}

/* Wholesale hero keeps light copy/background contrast while matching the new frame. */
.wholesale-hero{background:linear-gradient(132deg,#f5efe2,#fbf8f1)!important;color:var(--green)!important}
.wholesale-hero .page-hero-copy .eyebrow{color:var(--green)!important}
.wholesale-hero .page-hero-copy .lede{color:var(--muted)!important}

/* --------------------------------------------------------------------------
   Product cards: no thumbnail crop, stronger structure, cleaner hierarchy.
   -------------------------------------------------------------------------- */
.product-grid,.v4-product-rail{align-items:stretch}
.product-card{height:100%;display:flex!important;flex-direction:column!important;min-width:0!important;border:1px solid var(--mhf-ui-border)!important;border-radius:18px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 1px 0 rgba(255,255,255,.6) inset!important;transform:translateZ(0)}
.product-card:hover{transform:translateY(-6px)!important;border-color:rgba(9,36,27,.2)!important;box-shadow:var(--mhf-ui-shadow-soft)!important}
.product-media{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:clamp(285px,25vw,350px)!important;min-height:0!important;padding:26px!important;overflow:hidden!important;background:linear-gradient(145deg,#f7f2e8 0%,#eee5d3 100%)!important;isolation:isolate}
.product-media:after{content:''!important;position:absolute!important;left:18%!important;right:18%!important;bottom:8%!important;height:12%!important;background:radial-gradient(ellipse,rgba(9,36,27,.13),transparent 68%)!important;filter:blur(11px)!important;z-index:0!important}
.product-media:before{content:'';position:absolute;width:104px;height:104px;right:14px;top:12px;background:var(--green);opacity:.035;transform:rotate(14deg);z-index:0}
.product-media img,
.product-card .product-media img,
.woocommerce .product-card .product-media img{position:relative!important;z-index:2!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:none;transition:transform .45s var(--v4-ease),filter .45s var(--v4-ease)!important;filter:drop-shadow(0 16px 18px rgba(9,36,27,.11))}
.product-card:hover .product-media img{transform:translateY(-4px) scale(1.025)!important;filter:drop-shadow(0 20px 22px rgba(9,36,27,.15))}
.product-body,.product-card-body{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;padding:20px 20px 18px!important;background:#fff!important;border:0!important}
.product-category{display:block;min-height:16px;font-size:10px!important;line-height:1.35;text-transform:uppercase;letter-spacing:.11em;color:#778078!important;font-weight:700}
.product-category a{color:inherit}
.product-title{margin-top:7px!important;font-size:15px!important;line-height:1.35!important;min-height:40px;color:var(--green)!important}
.product-card-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-top:auto;padding-top:18px;border-top:1px solid rgba(9,36,27,.085)}
.product-card-price-stack{min-width:0}
.product-price{font-size:17px!important;line-height:1.3!important;color:var(--green)!important}
.product-unit,.product-price-unit{margin-top:3px!important;max-width:none!important;font-size:10.5px!important;line-height:1.45!important;color:#748077!important}
.product-card-footer .link-arrow{flex:0 0 auto;min-height:36px;padding:0 10px;border:1px solid rgba(9,36,27,.12);border-radius:999px;font-size:11px!important;color:var(--green)!important;background:#faf7f0;white-space:nowrap}
.product-card-footer .link-arrow:hover{background:var(--green);color:#fff!important;border-color:var(--green)}

/* WooCommerce fallback loops must follow the same product containment rules. */
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important;margin:0!important}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}
.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;min-width:0!important;border-radius:18px!important;overflow:hidden!important}
.woocommerce ul.products li.product a img{width:100%!important;height:320px!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;padding:28px!important;margin:0!important;background:linear-gradient(145deg,#f7f2e8,#eee5d3)!important}

/* --------------------------------------------------------------------------
   Single product gallery: prevent Woo gallery wrappers from cropping imagery.
   -------------------------------------------------------------------------- */
.product-detail{overflow:visible!important}
.product-detail-grid{min-width:0}
.product-main-media{height:auto!important;min-height:620px!important;padding:38px!important;overflow:hidden!important;border:1px solid var(--mhf-ui-border)!important;border-radius:26px!important;background:linear-gradient(145deg,#f0e7d7,#fbf6eb)!important;box-shadow:var(--mhf-ui-shadow-soft)!important;isolation:isolate}
.product-main-media:before{width:min(460px,76%)!important;height:auto!important;aspect-ratio:1!important;background:rgba(216,158,24,.13)!important;z-index:0}
.product-main-media:after{content:'';position:absolute;width:150px;height:150px;right:26px;top:25px;background:var(--green);opacity:.045;transform:rotate(11deg);z-index:0}
.product-main-media .woocommerce-product-gallery{position:relative!important;z-index:2;width:100%!important;max-width:100%!important;margin:0!important;float:none!important}
.product-main-media .woocommerce-product-gallery__wrapper{margin:0!important;width:100%!important}
.product-main-media .woocommerce-product-gallery__image,
.product-main-media .woocommerce-product-gallery__image>a{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:520px!important}
.product-main-media .woocommerce-product-gallery__image img,
.product-main-media img{display:block!important;width:auto!important;height:auto!important;max-width:92%!important;max-height:540px!important;object-fit:contain!important;object-position:center!important;margin:auto!important;filter:drop-shadow(0 28px 30px rgba(9,36,27,.16))!important}
.product-main-media .zoomImg{max-width:none!important;max-height:none!important;object-fit:initial!important;filter:none!important}
.product-main-media .flex-control-thumbs{display:flex!important;gap:10px!important;flex-wrap:wrap!important;margin:16px 0 0!important;padding:0!important;list-style:none!important}
.product-main-media .flex-control-thumbs li{width:72px!important;float:none!important;margin:0!important;border:1px solid rgba(9,36,27,.12);border-radius:10px;overflow:hidden;background:#fff}
.product-main-media .flex-control-thumbs img{width:72px!important;height:72px!important;max-width:none!important;max-height:none!important;object-fit:contain!important;padding:6px!important;filter:none!important;opacity:.7}
.product-main-media .flex-control-thumbs img.flex-active{opacity:1;box-shadow:inset 0 0 0 2px var(--gold)}
.product-info{min-width:0}
.product-info h1{text-wrap:balance}
.product-facts{overflow:hidden;border-radius:14px!important}
.product-fact{min-width:0}
.product-fact strong{overflow-wrap:anywhere}
.mhf-add-to-cart form.cart{display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:center!important;margin-top:28px!important}
.mhf-add-to-cart .quantity input.qty{min-height:50px;border:1px solid var(--mhf-ui-border-strong);border-radius:10px;background:#fff}
.mhf-add-to-cart .single_add_to_cart_button{min-height:50px!important;border-radius:10px!important}
.variations_form .variations{width:100%;border:0!important}
.variations_form .variations td{display:block!important;padding:0 0 10px!important;border:0!important}
.variations_form .variations select{width:100%!important;min-height:48px!important;border:1px solid var(--mhf-ui-border-strong)!important;border-radius:10px!important;background:#fff!important;color:var(--ink)!important;padding:0 42px 0 13px!important}

/* Shop controls and generic inputs: consistent radius/readability. */
.shop-toolbar{box-shadow:0 12px 32px rgba(9,36,27,.05)}
.shop-search{overflow:hidden}
.shop-search input{min-width:0;color:var(--ink)!important}
.woocommerce-ordering select,.shop-sort,select,.field select{background-color:#fff;color:var(--ink);border-color:var(--mhf-ui-border-strong);border-radius:10px}
.filter-chip{transition:background .22s,color .22s,border-color .22s,transform .22s}
.filter-chip:hover{transform:translateY(-1px)}
.role-notice{border-radius:14px!important;box-shadow:inset 0 0 0 1px rgba(9,36,27,.05)}

/* --------------------------------------------------------------------------
   Homepage visual containment and more polished backgrounds.
   -------------------------------------------------------------------------- */
.v4-hero:before{content:'';position:absolute;z-index:1;width:190px;height:190px;right:4%;top:9%;background:var(--gold-light);opacity:.05;-webkit-mask:url('../decor/maple-leaf.svg') center/contain no-repeat;mask:url('../decor/maple-leaf.svg') center/contain no-repeat;transform:rotate(13deg);pointer-events:none}
.v4-hero-stage{overflow:visible}
.v4-showcase{max-height:96%;object-fit:contain}
.v4-worlds{position:relative;overflow:hidden}
.v4-world{border:1px solid rgba(9,36,27,.07)}
.v4-world-maamoul{border-radius:22px!important}
.v4-world-pantry,.v4-world-fun{border-radius:22px!important}
.v4-world-maamoul .world-img-a{bottom:1%!important}
.v4-world-pantry .world-img-ghee{bottom:1%!important;height:79%!important}
.v4-world-pantry .world-img-spice{bottom:-3%!important;height:65%!important}
.v4-world-fun img{bottom:1%!important;width:49%!important}
.v4-shop-section{position:relative;overflow:hidden}
.v4-shop-section:after{content:'';position:absolute;width:240px;height:240px;right:-38px;top:44px;background:var(--gold);opacity:.04;transform:rotate(-11deg);pointer-events:none}
.v4-dual-wrap{overflow:hidden;border-radius:28px;margin:0 auto;max-width:min(1600px,calc(100% - 34px));box-shadow:var(--mhf-ui-shadow-soft)}
.v4-wholesale-product-stage{border-radius:22px}
.v4-wholesale-product-stage img{bottom:0!important;max-height:92%!important;object-fit:contain}
.v4-brand-art img{bottom:-2%!important;max-height:88%!important;object-fit:contain}
.v4-closing-grid{overflow:hidden}
.v4-closing-panel{min-width:0}
.v4-store-panel img,.v4-private-panel img{bottom:-4%!important;max-height:66%!important;object-fit:contain}

/* --------------------------------------------------------------------------
   Internal content panels / background endings.
   -------------------------------------------------------------------------- */
.section{position:relative}
.section-cream{overflow:hidden}
.section-cream:after{content:'';position:absolute;width:220px;height:220px;right:-34px;bottom:38px;background:var(--green);opacity:.025;transform:rotate(16deg);pointer-events:none}
.section-green{overflow:hidden}
.section-green:after{content:'';position:absolute;width:250px;height:250px;right:-42px;top:38px;background:var(--gold-light);opacity:.055;-webkit-mask:url('../decor/maple-leaf.svg') center/contain no-repeat;mask:url('../decor/maple-leaf.svg') center/contain no-repeat;transform:rotate(-12deg);pointer-events:none}
.section-green>.shell,.section-cream>.shell{position:relative;z-index:1}
.about-showcase,.private-label-visual,.locator-map,.locator-search-panel,.role-comparison,.form-card,.checkout-section,.checkout-summary,.account-panel,.order-summary{border-radius:22px!important}
.about-showcase,.private-label-visual{border:1px solid rgba(9,36,27,.08);box-shadow:var(--mhf-ui-shadow-soft)}
.about-showcase img{left:50%!important;bottom:4%!important;width:88%!important;height:82%!important;object-fit:contain!important}
.private-label-visual img{width:78%!important;height:84%!important;left:11%!important;bottom:5%!important;object-fit:contain!important}
.wholesale-product-tile{min-height:300px!important;padding:22px!important}
.wholesale-product-tile img{max-width:84%!important;max-height:220px!important;object-fit:contain!important;bottom:6%!important}
.application-step,.freight-step{min-width:0}
.shipping-notice,.notice-card,.stores-coming-soon{border-radius:14px!important}
.faq-item,.accordion-item{transition:background .2s}
.faq-item:hover,.accordion-item:hover{background:rgba(255,255,255,.45)!important}

/* Forms / WC content spacing and table containment. */
.mhf-wc-content{min-width:0}
.woocommerce form.checkout,.woocommerce form.login,.woocommerce form.register,.woocommerce form.lost_reset_password{min-width:0}
.woocommerce table.shop_table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;border:1px solid var(--mhf-ui-border)!important;border-radius:16px!important;overflow:hidden!important;background:#fff!important}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:14px!important;border-color:rgba(9,36,27,.08)!important;vertical-align:middle!important}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:14px!important;box-shadow:var(--mhf-ui-shadow-soft)}
.woocommerce-cart-form,.cart_totals,.woocommerce-checkout-review-order,.woocommerce-MyAccount-content{min-width:0}

/* Newsletter and footer get subtle, brand-consistent leaf details. */
.newsletter{position:relative;overflow:hidden}
.newsletter:before{content:'';position:absolute;width:170px;height:170px;left:-24px;top:-28px;background:var(--green);opacity:.035;transform:rotate(-10deg);pointer-events:none}
.newsletter-inner{position:relative;z-index:1}
.site-footer{position:relative;overflow:hidden}
.site-footer:before{content:'';position:absolute;width:270px;height:270px;right:-62px;bottom:-42px;background:var(--gold-light);opacity:.055;transform:rotate(12deg);pointer-events:none}
.site-footer>.shell{position:relative;z-index:1}

/* --------------------------------------------------------------------------
   Responsive safeguards
   -------------------------------------------------------------------------- */
@media (max-width:1180px){
  .woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
  .page-hero-grid{grid-template-columns:minmax(0,.95fr) minmax(340px,1.05fr)!important;gap:44px!important}
  .page-hero-visual{height:360px!important}
  .page-hero-visual img{max-height:295px!important}
}

@media (max-width:960px){
  .mhf-leaf-drift .leaf-a{left:-16px}.mhf-leaf-drift .leaf-b{right:-10px}
  .page-hero-grid{grid-template-columns:1fr!important;gap:30px!important;padding:50px 0!important}
  .page-hero-copy{max-width:760px!important}
  .page-hero-visual{height:360px!important;max-width:760px;width:100%;margin:0 auto;padding:28px!important}
  .page-hero-visual img{max-height:300px!important}
  .product-main-media{position:relative!important;top:auto!important;min-height:540px!important;padding:30px!important}
  .product-main-media .woocommerce-product-gallery__image,.product-main-media .woocommerce-product-gallery__image>a{min-height:440px!important}
  .product-main-media .woocommerce-product-gallery__image img,.product-main-media img{max-height:455px!important}
  .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v4-dual-wrap{max-width:calc(100% - 28px)}
  .v4-world-maamoul,.v4-world-pantry,.v4-world-fun{border-radius:20px!important}
}

@media (max-width:700px){
  .mhf-leaf-drift span{opacity:.022}
  .mhf-leaf-drift .leaf-c,.mhf-leaf-drift .leaf-d{display:none}
  .page-hero-grid{padding:38px 0 44px!important;gap:24px!important}
  .page-hero-copy h1{font-size:clamp(34px,9.4vw,44px)!important}
  .page-hero-copy .lede{font-size:15px!important}
  .page-hero-visual{height:300px!important;padding:22px!important;border-radius:22px!important}
  .page-hero-visual:before{width:min(250px,78%)!important}
  .page-hero-visual:after{width:78px;height:78px;right:14px;top:14px}
  .page-hero-visual img{max-width:90%!important;max-height:248px!important}
  .product-grid,.v4-product-rail{grid-template-columns:1fr!important;gap:14px!important}
  .product-media{height:330px!important;padding:24px!important}
  .product-title{min-height:auto}
  .product-main-media{min-height:440px!important;padding:24px!important;border-radius:20px!important}
  .product-main-media .woocommerce-product-gallery__image,.product-main-media .woocommerce-product-gallery__image>a{min-height:350px!important}
  .product-main-media .woocommerce-product-gallery__image img,.product-main-media img{max-height:365px!important;max-width:95%!important}
  .woocommerce ul.products{grid-template-columns:1fr!important}
  .woocommerce ul.products li.product a img{height:330px!important}
  .v4-world-maamoul .world-img-a{width:69%!important;right:17%!important;bottom:2%!important}
  .v4-world-maamoul .world-img-b{width:50%!important;right:-6%!important;bottom:16%!important}
  .v4-world-maamoul .world-img-c{width:48%!important;right:36%!important;bottom:29%!important}
  .v4-world-pantry .world-img-ghee{height:64%!important;right:0!important;bottom:3%!important}
  .v4-world-pantry .world-img-spice{height:56%!important;right:37%!important;bottom:0!important}
  .v4-world-fun img{width:65%!important;right:0!important;bottom:3%!important}
  .v4-store-panel img,.v4-private-panel img{bottom:0!important;max-height:58%!important}
  .about-showcase img{bottom:8%!important;height:74%!important}
  .private-label-visual img{bottom:8%!important;height:76%!important}
  .form-card,.checkout-section,.checkout-summary,.account-panel,.order-summary{border-radius:18px!important}
}

@media (max-width:430px){
  .product-media{height:300px!important}
  .product-card-footer{align-items:flex-start;flex-direction:column}
  .product-card-footer .link-arrow{align-self:flex-start}
  .product-main-media{min-height:390px!important;padding:18px!important}
  .product-main-media .woocommerce-product-gallery__image,.product-main-media .woocommerce-product-gallery__image>a{min-height:315px!important}
  .product-main-media .woocommerce-product-gallery__image img,.product-main-media img{max-height:325px!important}
}

@media (prefers-reduced-motion:reduce){
  .mhf-leaf-drift span,.page-hero-visual img{animation:none!important}
  .product-card,.product-media img{transition:none!important}
}

/* --------------------------------------------------------------------------
   R8 page-by-page polish: stronger hierarchy without changing client content.
   -------------------------------------------------------------------------- */
.section{padding:clamp(72px,7vw,96px) 0}
.section-heading{max-width:860px}
.section-heading h2{line-height:1.08;letter-spacing:-.035em;text-wrap:balance}
.section-heading p{max-width:720px;line-height:1.7}

/* Home hero / large art: keep important packaging inside the visible canvas. */
.v4-hero-stage{min-width:0!important}
.v4-showcase{width:106%!important;right:-4%!important;bottom:1%!important;max-width:none!important;object-position:center bottom!important}
.v4-floating-note{border-radius:13px!important}
.v4-world img,.v4-brand-art img,.v4-closing-panel img{object-fit:contain!important}
.v4-brand-art .brand-jameed{bottom:0!important}
.v4-brand-art .brand-spice{bottom:-2%!important}
.v4-brand-art .brand-ghee{bottom:-1%!important}
.v4-store-panel img,.v4-private-panel img{bottom:1%!important}

/* About: replace the old flat divider row with a more intentional feature set. */
.about-statement{gap:clamp(44px,7vw,82px)!important}
.about-statement .big-line{text-wrap:balance}
.about-statement-copy{padding:24px 0 0 28px!important;border-left:2px solid rgba(216,158,24,.45)!important;border-top:0!important}
.about-verbs{gap:12px!important;border:0!important;margin-top:56px!important}
.about-verb{min-height:170px!important;padding:24px!important;border:1px solid var(--mhf-ui-border)!important;border-radius:16px!important;background:linear-gradient(145deg,#fff,#f8f3e9)!important;box-shadow:0 8px 28px rgba(9,36,27,.045)!important}
.about-verb:hover{background:#f3ead9!important;transform:translateY(-3px)}
.about-verb strong{font-size:19px!important}
.name-list{border-top:0!important;display:flex;flex-direction:column;gap:10px}
.name-row{grid-template-columns:150px 1fr!important;gap:24px!important;padding:22px 24px!important;border:1px solid var(--mhf-ui-border)!important;border-radius:14px!important;background:rgba(255,255,255,.68)!important}
.vision-split{gap:12px!important;border:0!important;background:transparent!important}
.vision-cell{padding:30px!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:16px!important;background:rgba(255,255,255,.045)!important}
.vision-cell+ .vision-cell{border-left:1px solid rgba(255,255,255,.15)!important}

/* Wholesale: accessible comparison table with modern containment. */
.role-comparison{overflow:hidden!important;border:1px solid var(--mhf-ui-border)!important;border-radius:20px!important;background:#fff!important;box-shadow:var(--mhf-ui-shadow-soft)!important}
.role-row{border-bottom:1px solid rgba(9,36,27,.08)!important}
.role-row>*{padding:20px 22px!important;border-right:1px solid rgba(9,36,27,.08)!important}
.role-row:not(.head):nth-child(odd){background:#fbf8f2}
.role-row.head{background:linear-gradient(105deg,#08261d,#123d2f)!important}
.role-row.head span{color:#fff!important;font-size:11px!important;letter-spacing:.02em}
.wholesale-products{gap:14px!important}
.wholesale-product-tile{min-height:310px!important;border-radius:18px!important;border:1px solid var(--mhf-ui-border)!important;background:linear-gradient(145deg,#fff,#f7f2e8)!important;box-shadow:0 8px 28px rgba(9,36,27,.045)!important}
.wholesale-product-tile:nth-child(2n){background:linear-gradient(145deg,#edf1ea,#f8f9f5)!important}
.wholesale-product-tile img{right:4%!important;bottom:7%!important;width:auto!important;height:auto!important;max-width:68%!important;max-height:225px!important}
.application-flow,.freight-flow{gap:10px!important;border:0!important;background:transparent!important}
.application-step,.freight-step{min-height:205px!important;padding:26px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:15px!important;background:rgba(255,255,255,.045)!important}
.application-step:last-child,.freight-step:last-child{border-right:1px solid rgba(255,255,255,.14)!important}
.application-step strong,.freight-step strong{font-size:16px!important}
.application-step p,.freight-step p{line-height:1.65!important;color:rgba(255,255,255,.72)!important}

/* Shipping / fulfilment: each row now reads as a deliberate information module. */
.shipping-lines,.fulfilment-list{display:flex;flex-direction:column;gap:10px;border:0!important}
.shipping-line,.fulfilment-item{padding:20px 22px!important;border:1px solid var(--mhf-ui-border)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 7px 24px rgba(9,36,27,.035)!important}
.shipping-line strong,.fulfilment-item strong{font-size:13px!important}
.shipping-line p,.fulfilment-item p{line-height:1.65!important}
.shipping-notice{border:1px solid rgba(216,158,24,.24)!important;box-shadow:inset 4px 0 0 var(--gold)!important}

/* Forms/contact: side guidance should feel like a designed component. */
.form-aside,.contact-info{padding:28px!important;border:1px solid var(--mhf-ui-border)!important;border-radius:20px!important;background:linear-gradient(145deg,#fbf7ef,#f3ecdf)!important;box-shadow:var(--mhf-ui-shadow-soft)!important}
.form-aside-list,.contact-details{border-top:0!important;display:flex;flex-direction:column;gap:8px}
.form-aside-list{margin-top:24px!important}
.form-aside-list>div,.contact-detail{padding:13px 14px!important;border:1px solid rgba(9,36,27,.08)!important;border-radius:11px!important;background:rgba(255,255,255,.7)!important}
.contact-detail{grid-template-columns:95px minmax(0,1fr)!important;align-items:center}
.contact-detail strong{overflow-wrap:anywhere}
.form-card{padding:clamp(22px,3vw,34px)!important;border-radius:20px!important;box-shadow:var(--mhf-ui-shadow-soft)!important}
.field input,.field textarea,.field select,
.woocommerce input.input-text,.woocommerce textarea,.woocommerce select{border-radius:10px!important;transition:border-color .2s,box-shadow .2s!important}
.field input:focus,.field textarea:focus,.field select:focus,
.woocommerce input.input-text:focus,.woocommerce textarea:focus,.woocommerce select:focus{border-color:rgba(216,158,24,.72)!important;box-shadow:0 0 0 3px rgba(216,158,24,.12)!important;outline:0!important}

/* FAQ: easier scanning and clearer interaction targets. */
.faq-list{display:flex;flex-direction:column;gap:10px;border-top:0!important}
.faq-item{overflow:hidden;border:1px solid var(--mhf-ui-border)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 6px 20px rgba(9,36,27,.035)!important}
.faq-q{width:100%;padding:0 20px!important;min-height:64px!important;text-align:left}
.faq-a{padding:0 20px 20px!important;max-width:none!important}
.faq-item.open{border-color:rgba(216,158,24,.34)!important;box-shadow:0 12px 30px rgba(9,36,27,.06)!important}
.faq-side{padding:28px!important;border:1px solid var(--mhf-ui-border)!important;border-radius:20px!important;background:#f6f0e5!important}

/* Store locator / account / checkout surfaces. */
.locator-layout{gap:18px!important;border:0!important;background:transparent!important}
.locator-search-panel,.locator-map{box-shadow:var(--mhf-ui-shadow-soft)!important}
.locator-search-panel{padding:28px!important}
.account-layout-wp .woocommerce{min-width:0}
.woocommerce-account .woocommerce-MyAccount-navigation{border-radius:16px!important;box-shadow:var(--mhf-ui-shadow-soft)!important}
.woocommerce-account .woocommerce-MyAccount-content{border-radius:18px!important;box-shadow:var(--mhf-ui-shadow-soft)!important;min-width:0}
.woocommerce-checkout #payment{border-radius:16px!important;overflow:hidden!important;box-shadow:var(--mhf-ui-shadow-soft)!important}
.woocommerce-cart table.shop_table img{width:76px!important;height:76px!important;object-fit:contain!important;padding:5px!important;border-radius:10px!important;background:#f6f1e7!important}
.woocommerce-cart .cart_totals,.woocommerce-checkout-review-order{min-width:0}

/* Policy pages should not feel like unstyled editor output. */
.policy-content{padding:clamp(26px,4vw,46px)!important;border:1px solid var(--mhf-ui-border);border-radius:20px;background:#fff;box-shadow:var(--mhf-ui-shadow-soft)}
.policy-content h2,.policy-content h3{margin-top:1.55em;color:var(--green)}
.policy-content p,.policy-content li{line-height:1.75}

@media (max-width:960px){
  .v4-showcase{width:104%!important;right:-2%!important}
  .about-statement-copy{padding:22px 0 0!important;border-left:0!important;border-top:2px solid rgba(216,158,24,.42)!important}
  .about-verbs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .application-flow,.freight-flow{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .application-step,.freight-step{border:1px solid rgba(255,255,255,.14)!important}
  .form-aside,.contact-info,.faq-side{position:relative!important;top:auto!important}
}

@media (max-width:700px){
  .section{padding:64px 0}
  .v4-showcase{width:108%!important;right:-4%!important;bottom:2%!important}
  .about-verbs{grid-template-columns:1fr!important;gap:10px!important}
  .about-verb{min-height:126px!important}
  .name-row{grid-template-columns:1fr!important;gap:6px!important;padding:18px!important}
  .vision-split{grid-template-columns:1fr!important}
  .vision-cell,.vision-cell+ .vision-cell{padding:24px!important;border:1px solid rgba(255,255,255,.14)!important}
  .role-comparison{overflow:visible!important;border:0!important;box-shadow:none!important;background:transparent!important;display:flex;flex-direction:column;gap:12px}
  .role-row.head{display:none!important}
  .role-row{display:grid!important;grid-template-columns:1fr!important;min-width:0!important;gap:0!important;border:1px solid var(--mhf-ui-border)!important;border-radius:14px!important;overflow:hidden;background:#fff!important}
  .role-row>*{border-right:0!important;border-bottom:1px solid rgba(9,36,27,.07)!important;padding:15px 17px!important}
  .role-row>*:last-child{border-bottom:0!important}
  .role-row>strong{background:#f4ecdd!important;font-size:12px!important}
  .role-row:not(.head)>p:before{display:block;margin-bottom:5px;font-family:'Poppins';font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#8b650d}
  .role-row:not(.head)>p:nth-of-type(1):before{content:'Wholesale Retailer'}
  .role-row:not(.head)>p:nth-of-type(2):before{content:'Distributor'}
  .application-flow,.freight-flow{grid-template-columns:1fr!important;gap:9px!important}
  .application-step,.freight-step{min-height:0!important;padding:22px!important}
  .shipping-line,.fulfilment-item{grid-template-columns:1fr!important;gap:7px!important;padding:18px!important}
  .form-aside,.contact-info,.faq-side{padding:22px!important;border-radius:16px!important}
  .contact-detail{grid-template-columns:1fr!important;gap:4px!important}
  .faq-q{padding:0 16px!important}
  .faq-a{padding:0 16px 17px!important}
  .policy-content{padding:22px!important;border-radius:16px}
}
