/* Site header in code — approved mockup "Smoovee Header". Classes are snh-*, so nothing here touches the rest of the page. */
.snh-bar, .snh, .snh-drawer { --snh-ink: #0f0f0f; --snh-green: #75e1ac; --snh-line: #2a2a2a; font-family: 'Rubik', sans-serif; box-sizing: border-box; }
.snh-bar *, .snh *, .snh-drawer * { box-sizing: border-box; }

/* ---------- Announcement bar ---------- */
.snh-bar { background: var(--snh-bar-bg, #75e1ac); color: var(--snh-bar-fg, #0f0f0f); height: 40px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; position: relative; z-index: 1001; }
.snh-bar__track { min-width: 0; max-width: 640px; flex: 0 1 640px; text-align: center; overflow: hidden; }
.snh-bar__msg { display: block; font-size: 15px; font-weight: 700; line-height: 40px; color: inherit !important; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: snh-fade 0.35s ease; }
.snh-bar__msg[hidden] { display: none; }
a.snh-bar__msg:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.snh-bar__nav { width: 28px; height: 28px; flex: none; border: 0; padding: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.snh-bar__nav:hover { background: rgba(0, 0, 0, 0.08); }
@keyframes snh-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .snh-bar__msg { animation: none; } }

/* ---------- Sticky row ---------- */
.snh { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 1000; background: var(--snh-ink); color: #fff; transition: box-shadow 0.2s ease; }
.snh.is-stuck { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.snh__row { max-width: 1240px; margin: 0 auto; padding: 0 20px; /* 1200 of content, like the site's Elementor sections */ height: 80px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.snh__burger { display: none !important; }
.snh__logo { display: flex; align-items: center; justify-self: start; }
.snh__logo img { height: 26px; width: auto; display: block; }

.snh__nav { min-width: 0; }
.snh-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: nowrap; }
.snh-menu li { margin: 0; padding: 0; }
.snh__nav .snh-menu a { position: relative; display: block; padding: 8px 0; font-family: 'Rubik', sans-serif; font-size: 16px; font-weight: 500; color: #fff !important; text-decoration: none !important; white-space: nowrap; transition: color 0.15s ease; }
.snh__nav .snh-menu a:hover { color: var(--snh-green) !important; }
.snh__nav .snh-menu .current-menu-item > a::after, .snh__nav .snh-menu .current-menu-ancestor > a::after, .snh__nav .snh-menu .current-product_cat-ancestor > a::after { content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--snh-green); }
/* The logo is the way home on desktop; "בית" stays in the mobile drawer. */
.snh__nav .menu-item-home, .snh__nav .snh-menu > li:has(> a[href$="/he/"]) { display: none; }

.snh__actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.snh__icon { width: 44px; height: 44px; flex: none; border: 0; padding: 0; border-radius: 50%; background: none; color: #fff !important; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; }
.snh__icon:hover, .snh__icon[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); }
.snh__icon:focus-visible, .snh-bar__nav:focus-visible, .snh-menu a:focus-visible, .snh__cart a:focus-visible { outline: 2px solid var(--snh-green); outline-offset: 2px; }

/* Side-cart shortcode: same icon size, white text, green count badge. */
.snh__cart .xoo-wsc-sc-cont { color: #fff !important; }
.snh__cart .xoo-wsc-cart-trigger { display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; height: 44px; padding: 0 10px; border-radius: 22px; cursor: pointer; transition: background 0.15s ease; }
.snh__cart .xoo-wsc-cart-trigger:hover { background: rgba(255, 255, 255, 0.1); }
.snh__cart .xoo-wsc-sc-subt, .snh__cart .xoo-wsc-sc-subt * { font-family: 'Rubik', sans-serif !important; font-size: 16px !important; font-weight: 700 !important; color: #fff !important; }
.snh__cart .xoo-wsc-sc-bkcont { position: relative; display: flex; align-items: center; }
.snh__cart .xoo-wsc-sc-bki { font-size: 24px !important; color: #fff !important; line-height: 1; }
.snh__cart .xoo-wsc-sc-bki img { height: 24px; width: auto; }
.snh__cart .xoo-wsc-sc-count { position: absolute; top: -9px; left: -11px; right: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--snh-green) !important; color: var(--snh-ink) !important; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }

/* ---------- Search panel ---------- */
.snh-search { border-top: 1px solid var(--snh-line); background: var(--snh-ink); }
.snh-search[hidden] { display: none; }
.snh-search__form { max-width: 760px; margin: 0 auto; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.snh-search__field { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-radius: 12px; background: #fff; color: var(--snh-ink); margin: 0; }
.snh-search__field > svg { color: #5c5c5c; flex: none; }
.snh-search__field input[type="search"] { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; box-shadow: none !important; background: none !important; padding: 0 !important; font-family: inherit; font-size: 17px; color: var(--snh-ink); }
.snh-search__close { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: #f0f0ee; color: var(--snh-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }

/* ---------- Mobile drawer ---------- */
.snh-drawer { position: fixed; inset: 0; z-index: 100000; }
.snh-drawer[hidden] { display: none; }
.snh-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.snh-drawer__panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(320px, 86vw); background: #fff; color: var(--snh-ink); display: flex; flex-direction: column; overflow-y: auto; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2); animation: snh-slide 0.25s ease; }
@keyframes snh-slide { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .snh-drawer__panel { animation: none; } }
.snh-drawer__head { height: 60px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 8px; border-bottom: 1px solid #e6e6e6; font-size: 18px; font-weight: 800; }
.snh-drawer__head .snh__icon { color: var(--snh-ink) !important; }
.snh-drawer__head .snh__icon:hover { background: #f0f0ee; }
.snh-drawer .snh-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
.snh-drawer .snh-menu a { display: flex; align-items: center; min-height: 54px; padding: 0 20px; font-family: 'Rubik', sans-serif; font-size: 17px; font-weight: 500; color: var(--snh-ink) !important; text-decoration: none !important; border-bottom: 1px solid #f0f0ee; }
.snh-drawer .snh-menu li:last-child a { border-bottom: 0; }
.snh-drawer .snh-menu .current-menu-item > a, .snh-drawer .snh-menu .current-product_cat-ancestor > a { background: #f5f5f3; font-weight: 600; }
.snh-drawer__foot { margin-top: auto; padding: 16px 20px 24px; border-top: 1px solid #e6e6e6; display: flex; flex-direction: column; gap: 10px; }
.snh-drawer__account { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-radius: 12px; background: var(--snh-ink); color: #fff !important; text-decoration: none !important; font-size: 16px; font-weight: 800; }
.snh-drawer__mail { font-size: 14px; color: #3a3a3a !important; text-decoration: none !important; }
body.snh-locked { overflow: hidden; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1100px) {
	.snh-menu { gap: 20px; }
	.snh__nav .snh-menu a { font-size: 15px; }
}
@media (max-width: 991px) {
	.snh-bar { height: 34px; padding: 0 8px; gap: 4px; }
	.snh-bar__msg { font-size: 14px; line-height: 34px; }
	.snh-bar__nav { display: none; }
	.snh__row { height: 60px; padding: 0 6px; grid-template-columns: 96px minmax(0, 1fr) 96px; gap: 0; }
	.snh__burger { display: flex !important; justify-self: start; }
	.snh__logo { justify-self: center; }
	.snh__logo img { height: 22px; }
	.snh__nav, .snh__account { display: none !important; }
	.snh__actions { gap: 0; }
	.snh__cart .xoo-wsc-sc-subt { display: none !important; }
	.snh__cart .xoo-wsc-cart-trigger { width: 44px; padding: 0; justify-content: center; }
	.snh__cart .xoo-wsc-sc-count { top: -8px; left: -10px; min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; }
	.snh-search__form { padding: 12px 12px 14px; }
	.snh-search__field { height: 48px; padding: 0 14px; }
	.snh-search__field input[type="search"] { font-size: 16px; }
}

/* Theme button styles (square corners, their own hover colour) must not reach the header's round icon buttons. */
.snh button.snh__icon, .snh-drawer button.snh__icon, .snh button.snh-search__close, .snh-bar button.snh-bar__nav { border: 0 !important; border-radius: 50% !important; padding: 0 !important; box-shadow: none !important; text-transform: none; }
.snh button.snh__icon:hover, .snh button.snh__icon:focus, .snh button.snh__icon[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; }
.snh button.snh__icon:not(:hover):not(:focus):not([aria-expanded="true"]) { background: none !important; }
.snh-drawer button.snh__icon:hover, .snh-drawer button.snh__icon:focus { background: #f0f0ee !important; color: var(--snh-ink) !important; }
.snh-drawer button.snh__icon:not(:hover):not(:focus) { background: none !important; }
.snh-bar button.snh-bar__nav { background: none !important; color: inherit !important; }
.snh-bar button.snh-bar__nav:hover { background: rgba(0, 0, 0, 0.08) !important; }
.snh button.snh-search__close { background: #f0f0ee !important; color: var(--snh-ink) !important; }

/* Menu sits right after the logo, the same 30px from it as between its items (not centred in the free space). */
.snh__row { column-gap: 30px; }
.snh-menu { justify-content: flex-start; }
@media (max-width: 1100px) {
	.snh__row { column-gap: 20px; }
}
@media (max-width: 991px) {
	.snh__row { column-gap: 0; }
}

/* Open mobile menu: nothing floats over it (accessibility button, AI chat, WhatsApp, floating cart). */
body.snh-locked .onetap-toggle, body.snh-locked .onetap-container-toggle, body.snh-locked chaindesk-chatbox-bubble, body.snh-locked .snf-whatsapp, body.snh-locked .xoo-wsc-basket { display: none !important; }

/* Drawer close: a plain X, no grey circle (it got one from focus when the menu opens); keyboard users still see a ring. */
.snh-drawer button.snh__icon, .snh-drawer button.snh__icon:hover, .snh-drawer button.snh__icon:focus { background: none !important; }
.snh-drawer button.snh__icon:focus { outline: none; }
.snh-drawer button.snh__icon:focus-visible { outline: 2px solid var(--snh-ink); outline-offset: 2px; }

/* Drawer head: the (white) logo shown black on the white panel. */
.snh-drawer__logo { display: flex; padding-right: 4px; }
.snh-drawer__logo img { height: 22px; width: auto; display: block; filter: invert(1); }

/* Live search results under the field. The browser's own clear (x) is hidden: the panel has its close button. */
.snh-search__field input[type="search"]::-webkit-search-cancel-button, .snh-search__field input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.snh-search__form { position: relative; }
.snh-search__results { background: #fff; color: var(--snh-ink); border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); max-height: min(70vh, 560px); overflow-y: auto; }
.snh-search__results[hidden] { display: none; }
.snh-result { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 16px; color: var(--snh-ink) !important; text-decoration: none !important; border-bottom: 1px solid #f0f0ee; }
.snh-result:hover, .snh-result.is-active { background: #f5f5f3; }
.snh-result__img { width: 56px; height: 56px; border-radius: 10px; background: #f0f0ee; object-fit: contain; display: block; }
.snh-result__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.snh-result__title { font-size: 15px; font-weight: 800; line-height: 1.3; }
.snh-result__title mark { background: rgba(117, 225, 172, 0.45); color: inherit; border-radius: 3px; padding: 0 1px; }
.snh-result__desc { font-size: 13px; color: #5c5c5c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snh-result__price { font-size: 15px; font-weight: 800; white-space: nowrap; }
.snh-search__all { display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: 15px; font-weight: 800; color: var(--snh-ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.snh-search__all:hover, .snh-search__all.is-active { background: #f5f5f3; }
.snh-search__empty { margin: 0; padding: 18px 16px; font-size: 15px; color: #3a3a3a; text-align: center; }
@media (max-width: 991px) {
	.snh-search__results { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); }
	.snh-result { grid-template-columns: 48px minmax(0, 1fr); padding: 10px 12px; gap: 12px; }
	.snh-result__img { width: 48px; height: 48px; }
	.snh-result__price { grid-column: 2; font-size: 14px; margin-top: -4px; }
}
