/* Bloome — header on scroll, search box, sticky add-to-cart bar */

/* ---------- Announcement bar ON: bar pinned, header + search slide away ---------- */
body.bhs-hdr-ann .bhs-ann{position:-webkit-sticky!important;position:sticky!important;top:0;z-index:450!important}
@media (min-width:783px){body.admin-bar.bhs-hdr-ann .bhs-ann{top:32px}}
@media (min-width:601px) and (max-width:782px){body.admin-bar.bhs-hdr-ann .bhs-ann{top:46px}}
body.bhs-hdr-ann .whb-main-header{transition:transform .5s cubic-bezier(.22,.8,.26,1),opacity .35s ease!important;will-change:transform}
html.bhs-scrolled body.bhs-hdr-ann .whb-main-header{transform:translate3d(0,-115%,0)!important;opacity:0!important;pointer-events:none!important;box-shadow:none!important}

/* ---------- Announcement bar OFF: header stays, only the search box hides ---------- */
body.bhs-hdr-search .whb-header .wd-header-search-form{transition:opacity .35s ease,transform .45s cubic-bezier(.22,.8,.26,1),visibility .35s!important}
body.bhs-hdr-search .whb-header .whb-header-bottom{transition:max-height .45s cubic-bezier(.22,.8,.26,1),opacity .3s ease!important}
@media (min-width:1025px){
	html.bhs-scrolled body.bhs-hdr-search .whb-header .wd-header-search-form{opacity:0!important;visibility:hidden!important;transform:translate3d(0,-8px,0)!important;pointer-events:none!important}
}
@media (max-width:1024px){
	/* The theme has no sticky header on phones: keep it pinned ourselves (its placeholder keeps the page from jumping). */
	html.bhs-scrolled body.bhs-hdr-search .whb-header.whb-sticky-real:not(.whb-sticked) .whb-main-header{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:390!important;background:#fff;box-shadow:0 6px 18px rgba(30,10,24,.07);animation:none!important}
	body.bhs-hdr-search .whb-header .whb-header-bottom:has(.wd-header-search-form-mobile){max-height:200px;overflow:hidden}
	html.bhs-scrolled body.bhs-hdr-search .whb-header .whb-header-bottom:has(.wd-header-search-form-mobile){max-height:0!important;opacity:0!important;pointer-events:none!important}
}

/* ---------- Animated search placeholder ---------- */
form.searchform.bhs-ph-on{position:relative}
form.searchform.bhs-ph-on input[name="s"]::placeholder{color:transparent!important;opacity:0!important}
.bhs-ph{position:absolute;z-index:1;overflow:hidden;pointer-events:none;display:block;white-space:nowrap;line-height:1.2;color:inherit;opacity:.72;transition:opacity .25s ease}
.bhs-ph-i{position:absolute;left:0;right:0;top:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0;transform:translate3d(0,40%,0);transition:opacity .45s ease,transform .55s cubic-bezier(.22,.8,.26,1)}
.bhs-ph-i.is-on{opacity:1;transform:translate3d(0,-50%,0)}
.bhs-ph-i.is-out{opacity:0;transform:translate3d(0,-140%,0)}
form.searchform.bhs-ph-filled .bhs-ph{opacity:0!important}
@media (prefers-reduced-motion:reduce){.bhs-ph-i{transition:none}}

/* ---------- Search button: no ring. Light icon while the box is empty, deep icon + gentle nudge once something is typed ---------- */
body.bhs-sbtn-line form.searchform .searchsubmit{background:transparent!important;box-shadow:none!important;border:0!important;color:#A9A3AC!important;transition:color .35s ease!important}
body.bhs-sbtn-line form.searchform .searchsubmit:after{color:inherit!important;transform-origin:50% 50%}
body.bhs-sbtn-line form.searchform.bhs-ph-filled .searchsubmit,
body.bhs-sbtn-line form.searchform .searchsubmit:hover,
body.bhs-sbtn-line form.searchform .searchsubmit:focus-visible{color:#242424!important}
body.bhs-sbtn-line form.searchform.bhs-ph-filled .searchsubmit:after{animation:bhs-sb-pop .55s cubic-bezier(.3,1.6,.5,1) both,bhs-sb-nudge 2.4s ease-in-out .9s infinite}
body.bhs-sbtn-line form.searchform.bhs-ph-filled .searchsubmit:hover:after{animation:none;transform:scale(1.12)}
@keyframes bhs-sb-pop{0%{transform:scale(.82)}60%{transform:scale(1.2)}100%{transform:scale(1)}}
@keyframes bhs-sb-nudge{0%,62%,100%{transform:scale(1) rotate(0)}74%{transform:scale(1.16) rotate(-8deg)}86%{transform:scale(1.04) rotate(4deg)}}
@media (prefers-reduced-motion:reduce){body.bhs-sbtn-line form.searchform.bhs-ph-filled .searchsubmit:after{animation:none}}

/* ---------- Theme sticky "add to cart" bar on the product page ---------- */
@media (min-width:1025px){
	body.bhs-nostick-d .wd-sticky-btn{display:none!important}
	body.bhs-nostick-d.sticky-btn-on{padding-bottom:0!important}
}
body.bhs-nostick-a .wd-sticky-btn{display:none!important}
