/* MELON Studio palette overlay: loaded ONLY when a palette is active. Functional checkout fields unaffected. */
body.ms-palette-active{
 --msw-ivory:var(--ms-p-surface);--msw-milk:var(--ms-p-bg);
 --msw-mocha:var(--ms-p-bg);--msw-espresso:var(--ms-p-deep);
 --msw-brown:var(--ms-p-accent);--msw-gold:var(--ms-p-accent);
 --wd-primary-color:var(--ms-p-accent);--wd-text-color:var(--ms-p-text);
 --wd-link-color:var(--ms-p-deep);
 color:var(--ms-p-text);
}
body.ms-palette-active :is(.main-page-wrapper,.website-wrapper,.site-content){background-color:var(--ms-p-bg)}
body.ms-palette-active :is(.ms-site-header-shell,.ms-site-header,.whb-header,.whb-main-header,.whb-general-header){background:var(--ms-p-surface)!important;color:var(--ms-p-text)!important}
body.ms-palette-active :is(.ms-site-header-shell .ms-announcement,.ms-site-footer,.melon-footer,.footer-container){background:var(--ms-p-deep)!important;color:var(--ms-p-surface)!important}
body.ms-palette-active :is(.ms-site-header-shell .ms-nav-desktop a,.whb-header .wd-nav a,.whb-header .wd-tools-element > a){color:var(--ms-p-text)!important}
body.ms-palette-active :is(.ms-site-header-shell .ms-header-menu-button,.whb-header .wd-header-mobile-nav a){background-color:var(--ms-p-bg)!important;color:var(--ms-p-deep)!important}
body.ms-palette-active :is(.ms-site-header-shell .ms-cart-count,.melon-home .melon-social-rail-nav,.melon-home .melon-btn-primary){background-color:var(--ms-p-accent)!important}
body.ms-palette-active .ms-site-footer :is(h2,a,p,.ms-footer-signature){color:var(--ms-p-surface)!important}
body.ms-palette-active :is(.melon-home .melon-block,.melon-home .melon-stories,.melon-home .melon-social-rail,.melon-home .ms-spotlight-block){background-color:var(--ms-p-bg)!important;color:var(--ms-p-text)!important}
body.ms-palette-active :is(.melon-home .melon-social-rail-card,.melon-home .ms-spotlight-frame,.melon-home .ms-deals-card,.melon-home .melon-product-card){background:var(--ms-p-surface)!important;color:var(--ms-p-text)!important;border-color:var(--ms-p-accent)!important}
body.ms-palette-active :is(.melon-home .melon-social-rail-card h3,.melon-home .melon-social-rail-label,.melon-home .ms-spotlight-copy h2,.melon-home .ms-spotlight-copy h3,.melon-home .ms-deals-card h3){color:var(--ms-p-text)!important}
body.ms-palette-active .melon-home :is(.ms-daily-deals,.ms-occasion-block){background:linear-gradient(125deg,var(--ms-p-deep),var(--ms-p-accent))!important;color:var(--ms-p-surface)!important}
body.ms-palette-active .melon-home :is(.ms-occasion-copy h2,.ms-deals-heading h2){color:var(--ms-p-surface)!important}
body.ms-palette-active .melon-home :is(.ms-spotlight-link,.ms-occasion-link,.ms-deals-shop){background:var(--ms-p-accent)!important;color:var(--ms-p-onaccent)!important}
body.ms-palette-active :is(.woocommerce-products-header,.wd-title-bar,.shop-title-wrapper){background-color:var(--ms-p-bg)!important}
body.ms-palette-active :is(.woocommerce-products-header h1,.woocommerce-loop-product__title,.wd-entities-title){color:var(--ms-p-text)!important}
body.ms-palette-active :is(.wd-product .price,.woocommerce .price){color:var(--ms-p-deep)!important}
/* Celebration remains a transparent decoration beside the logo, never a modified image. */
body[class*="ms-logo-fx-"] :is(.ms-header-logo,.ms-footer-brand>a,.whb-header .site-logo,.whb-header .wd-logo,.whb-header .wd-header-logo){position:relative;isolation:isolate;overflow:visible}
body[class*="ms-logo-fx-"] :is(.ms-header-logo,.ms-footer-brand>a,.whb-header .site-logo,.whb-header .wd-logo,.whb-header .wd-header-logo)::after{
 content:var(--ms-p-symbol,"✧");position:absolute;z-index:2;pointer-events:none;
 width:26px;height:26px;display:grid;place-items:center;
 top:-5px;inset-inline-start:-9px;font:22px/1 Georgia,serif;
 color:var(--ms-p-accent);text-shadow:0 1px 9px var(--ms-p-surface);
 animation:ms-p-logo-float 3.8s ease-in-out infinite alternate;
}
body.ms-logo-fx-glow :is(.ms-header-logo,.whb-header .site-logo,.whb-header .wd-logo)::after{filter:drop-shadow(0 0 10px var(--ms-p-accent))}
@keyframes ms-p-logo-float{from{opacity:.62;transform:translate(0,0) rotate(-14deg) scale(.88)}to{opacity:1;transform:translate(-3px,-6px) rotate(13deg) scale(1.12)}}
@media (prefers-reduced-motion:reduce){body[class*="ms-logo-fx-"] :is(.ms-header-logo,.ms-footer-brand>a,.whb-header .site-logo,.whb-header .wd-logo,.whb-header .wd-header-logo)::after{animation:none!important}}
/* Event-specific, very light brand accents: animation is purely CSS and only one symbol per logo. */
body.ms-logo-fx-snow :is(.ms-header-logo,.whb-header .site-logo,.whb-header .wd-logo,.whb-header .wd-header-logo)::after{animation:ms-p-snow 5s ease-in-out infinite}
body.ms-logo-fx-petals :is(.ms-header-logo,.whb-header .site-logo,.whb-header .wd-logo,.whb-header .wd-header-logo)::after{animation:ms-p-petals 4.8s ease-in-out infinite}
body.ms-logo-fx-leaves :is(.ms-header-logo,.whb-header .site-logo,.whb-header .wd-logo,.whb-header .wd-header-logo)::after{animation:ms-p-leaves 4.2s ease-in-out infinite}
body.ms-logo-fx-sun :is(.ms-header-logo,.whb-header .site-logo,.whb-header .wd-logo,.whb-header .wd-header-logo)::after{animation:ms-p-sun 4.5s ease-in-out infinite}
body.ms-logo-fx-sparkle :is(.ms-header-logo,.whb-header .site-logo,.whb-header .wd-logo,.whb-header .wd-header-logo)::after{animation:ms-p-sparkle 3s ease-in-out infinite}
@keyframes ms-p-snow{0%,100%{opacity:.6;transform:translate(0,-4px) rotate(0)}50%{opacity:1;transform:translate(-7px,7px) rotate(22deg)}}
@keyframes ms-p-petals{0%,100%{opacity:.5;transform:translate(0,-3px) rotate(-22deg)}50%{opacity:1;transform:translate(5px,5px) rotate(25deg)}}
@keyframes ms-p-leaves{0%,100%{opacity:.7;transform:translate(-3px,2px) rotate(-24deg)}50%{opacity:1;transform:translate(4px,-5px) rotate(16deg)}}
@keyframes ms-p-sun{0%,100%{opacity:.65;transform:scale(.9) rotate(0)}50%{opacity:1;transform:scale(1.18) rotate(22deg)}}
@keyframes ms-p-sparkle{0%,100%{opacity:.6;transform:scale(.8) rotate(-15deg)}50%{opacity:1;transform:scale(1.12) rotate(18deg)}}
@media(prefers-reduced-motion:reduce){body[class*="ms-logo-fx-"] :is(.ms-header-logo,.ms-footer-brand>a,.whb-header .site-logo,.whb-header .wd-logo,.whb-header .wd-header-logo)::after{animation:none!important}}

/* MELON Studio 2.6.1 — header menu interactions are part of the current palette.
   Applied only when a custom/event palette is active; default Woodmart styling is untouched. */
body.ms-palette-active .ms-site-header-shell .ms-nav-desktop .ms-nav-list>li:is(:hover,:focus-within,.current-menu-item,.current-menu-ancestor)>a,
body.ms-palette-active .ms-site-header-shell .ms-nav-desktop .sub-menu li:is(:hover,:focus-within,.current-menu-item)>a,
body.ms-palette-active .whb-header .wd-nav>li:is(:hover,:focus-within,.current-menu-item,.current-menu-ancestor) > a,
body.ms-palette-active .whb-header .wd-nav>li>a:is(:hover,:focus-visible),
body.ms-palette-active .whb-header .wd-nav .sub-menu li>a:is(:hover,:focus-visible),
body.ms-palette-active .whb-header .wd-nav .wd-dropdown-menu li>a:is(:hover,:focus-visible),
body.ms-palette-active .whb-header .wd-nav .wd-dropdown-menu li:hover>a {
 background:var(--ms-p-accent)!important;
 color:var(--ms-p-onaccent)!important;
 border-color:var(--ms-p-accent)!important;
 text-decoration:none!important;
}
/* Existing top-level link color override must not win on hover. */
body.ms-palette-active .ms-site-header-shell .ms-nav-desktop .ms-nav-list>li>a:focus-visible,
body.ms-palette-active .whb-header .wd-nav>li>a:focus-visible {
 outline:2px solid var(--ms-p-deep)!important;outline-offset:3px;
}
body.ms-palette-active .ms-site-header-shell .ms-nav-desktop .sub-menu,
body.ms-palette-active .whb-header .wd-nav .wd-dropdown-menu,
body.ms-palette-active .whb-header .wd-nav .sub-menu{
 background:var(--ms-p-surface)!important;border-color:var(--ms-p-accent)!important;
}
body.ms-palette-active .ms-site-header-shell .ms-nav-desktop .sub-menu a,
body.ms-palette-active .whb-header .wd-nav .wd-dropdown-menu a,
body.ms-palette-active .whb-header .wd-nav .sub-menu a{
 color:var(--ms-p-text)!important;
}
body.ms-palette-active .ms-site-header-shell .ms-nav-desktop .sub-menu a:is(:hover,:focus-visible),
body.ms-palette-active .whb-header .wd-nav .wd-dropdown-menu a:is(:hover,:focus-visible),
body.ms-palette-active .whb-header .wd-nav .sub-menu a:is(:hover,:focus-visible){
 color:var(--ms-p-onaccent)!important;background:var(--ms-p-accent)!important;
}
/* Mobile navigation and header icons: same accent but preserved readable contrast. */
body.ms-palette-active .ms-site-header-shell .ms-drawer .ms-nav-list li>a:is(:hover,:focus-visible),
body.ms-palette-active .ms-site-header-shell .ms-drawer .sub-menu li>a:is(:hover,:focus-visible),
body.ms-palette-active .whb-header :is(.wd-header-mobile-nav,.wd-header-cart,.wd-header-my-account)>a:is(:hover,:focus-visible){
 background:var(--ms-p-accent)!important;color:var(--ms-p-onaccent)!important;
}
body.ms-palette-active .ms-site-header-shell .ms-header-tools :is(a,button):is(:hover,:focus-visible){
 color:var(--ms-p-accent)!important;
}
/* Small event-only halo; the actual brand image remains untouched. */
body.ms-palette-active[class*="ms-logo-fx-"] :is(.ms-header-logo,.whb-header .site-logo,.whb-header .wd-logo,.whb-header .wd-header-logo){
 filter:drop-shadow(0 0 3px var(--ms-p-surface));
 transition:filter .5s ease;
}
body.ms-palette-active[class*="ms-logo-fx-"] :is(.ms-header-logo,.whb-header .site-logo,.whb-header .wd-logo,.whb-header .wd-header-logo):hover{
 filter:drop-shadow(0 0 10px var(--ms-p-accent));
}
body.ms-logo-fx-snow :is(.ms-header-logo,.whb-header .site-logo,.whb-header .wd-logo)::after{
 text-shadow:0 0 11px var(--ms-p-surface),0 0 15px var(--ms-p-accent);
}
body.ms-logo-fx-petals :is(.ms-header-logo,.whb-header .site-logo,.whb-header .wd-logo)::after{
 text-shadow:0 0 10px var(--ms-p-accent);animation-duration:5.4s;
}
@media(prefers-reduced-motion:reduce){
 body.ms-palette-active[class*="ms-logo-fx-"] :is(.ms-header-logo,.whb-header .site-logo,.whb-header .wd-logo,.whb-header .wd-header-logo){transition:none!important}
}
