/* FUROR – תנועה בדף הבית. Same effects and timings as the test site (furor-stone css/home.css + intro.css).
   The template only carries class names (Advanced → CSS Classes); every photo stays a normal Elementor background. */

/* ---------- Photo layers: the container's own background is drawn again on a layer that can grow ---------- */
/* !important: Elementor sets every container's overflow and position through its own variables */
.fu-hero, .fu-zoom, .fu-photo { position: relative !important; overflow: hidden !important; isolation: isolate; }
.fu-hero::after, .fu-zoom::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: inherit; background-size: inherit; background-position: inherit; background-repeat: inherit;
	transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

/* Hero: slow zoom out of the big photo. The header and the texts are simply there, like on the test site */
.fu-hero::after { animation: fuHeroZoom 16s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fuHeroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Mouse over a photo: it grows a little (two big photos, sale tiles, cards with one photo) */
@media (hover: hover) {
	.fu-zoom.fu-hover:hover::after, .fu-hover:hover .fu-zoom::after { transform: scale(1.03); }
	.fu-hover:hover .fu-zoom-4::after { transform: scale(1.04); }
	.fu-hover:hover .fu-cta, .fu-hover:hover .fu-cta > .elementor-widget-container { background-color: rgba(30,34,48,.65) !important; }
	/* cards with a second photo: the model photo fades in */
	.fu-hover:hover .fu-img2 { opacity: 1; }
}
.fu-cta, .fu-cta > .elementor-widget-container { transition: background-color 200ms; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap; }   /* dark glass */
/* sale tiles: the line under the link gets thicker */
.fu-hover:hover .fu-go { border-bottom-width: 2px !important; }
/* buttons give a little under the finger */
:is(.fu-hero, .fu-msgs, .fu-car, .fu-looks) .elementor-button { transition: transform 150ms, background-color 200ms, color 200ms, border-color 200ms; }
:is(.fu-hero, .fu-msgs, .fu-car, .fu-looks) .elementor-button:active { transform: scale(.95); }

/* ---------- Photo shapes that Elementor has no control for (the template's own heights are the fallback) ---------- */
.fu-duo { aspect-ratio: 1 / 1; min-height: 0 !important; }                      /* two big photos: squares */
.fu-sale { aspect-ratio: 4 / 3; min-height: 0 !important; }                     /* sale tiles */
/* category cards: a 3:4 photo inside the 12px white frame */
.fu-photo { box-sizing: content-box !important; width: auto !important; aspect-ratio: 3 / 4; min-height: 0 !important; }
.fu-car-track .elementor-button { text-underline-offset: 4px; }
@media (min-width: 1620px) {   /* big screens: the wide photos stop growing in height */
	.fu-duo { aspect-ratio: auto; height: clamp(720px, 40vw, 960px); }
	.fu-sale { aspect-ratio: auto; height: clamp(620px, 31vw, 780px); }
}
.fu-img2 { position: absolute !important; inset: 0; width: auto !important; min-height: 0 !important; opacity: 0; transition: opacity 400ms ease; }

/* ---------- Header (works as a page part or as a Theme Builder header for the whole site) ----------
   Pages with the big photo (.fu-hero): see-through over the photo, white under the mouse and fixed at the top once the page scrolls (test site, version A).
   Every other page: a white header that stays at the top while the promo bar above it scrolls away (test site: sticky .site-header). */
.fu-head { border-bottom: 1px solid #D9DCE2; transition: background-color 200ms; }
body:not(.elementor-editor-active):not(:has(.fu-hero)) .elementor:has(> .fu-head):has(> .fu-promo) {
	position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) - 36px); z-index: 40;   /* 36px = the promo bar */
}
body:not(.elementor-editor-active):has(.fu-hero) .elementor:has(> .fu-head) { position: relative; }
body:not(.elementor-editor-active):has(.fu-hero) .fu-head {
	position: absolute !important; top: 36px; inset-inline: 0; z-index: 40;   /* 36px = the promo bar above it */
}
html.fu-solid body:not(.elementor-editor-active):has(.fu-hero) .fu-head { position: fixed !important; top: var(--wp-admin--admin-bar--height, 0px); }
/* after 80px of scroll the header gets lower: shorter row, smaller logo, menu closer (test site: .site-header.compact) */
.fu-head .fu-head-row { transition: min-height 200ms cubic-bezier(.2,.7,.2,1); }
.fu-head .fu-logo svg { transition: height 200ms cubic-bezier(.2,.7,.2,1); width: auto; }
.fu-head .fu-head-nav { transition: margin-top 200ms cubic-bezier(.2,.7,.2,1); }
html.fu-compact body:not(.elementor-editor-active) .fu-head .fu-head-row { --min-height: 60px !important; min-height: 60px !important; }
html.fu-compact body:not(.elementor-editor-active) .fu-head .fu-logo svg:first-child { height: 18px; }
html.fu-compact body:not(.elementor-editor-active) .fu-head .fu-logo svg:last-child { height: 36px; }
html.fu-compact body:not(.elementor-editor-active) .fu-head .fu-head-nav { margin-top: 12px !important; }
html:not(.fu-solid) body:not(.elementor-editor-active):has(.fu-hero) .fu-head:not(:hover):not(:focus-within) {
	background-color: transparent !important; border-bottom-color: rgba(255,255,255,.22);
}
html:not(.fu-solid) body:not(.elementor-editor-active):has(.fu-hero) .fu-head:not(:hover):not(:focus-within) :is(.elementor-widget-html svg) { filter: brightness(0) invert(1); }   /* logo and line icons */
html:not(.fu-solid) body:not(.elementor-editor-active):has(.fu-hero) .fu-head:not(:hover):not(:focus-within) :is(.elementor-item, .elementor-menu-toggle, .elementor-menu-cart__toggle .elementor-button, .elementor-search-form__submit, .elementor-search-form__icon) {
	color: #fff !important; fill: #fff !important; background-color: transparent !important;
}
html:not(.fu-solid) body:not(.elementor-editor-active):has(.fu-hero) .fu-head:not(:hover):not(:focus-within) :is(.elementor-menu-toggle, .elementor-menu-cart__toggle .elementor-button) svg { fill: #fff !important; }
html:not(.fu-solid) body:not(.elementor-editor-active):has(.fu-hero) .fu-head:not(:hover):not(:focus-within) .elementor-item::after { background-color: #fff !important; }
html:not(.fu-solid) body:not(.elementor-editor-active):has(.fu-hero) .fu-head:not(:hover):not(:focus-within) .fu-head-nav { border-color: rgba(255,255,255,.22) !important; }
html:not(.fu-solid) body:not(.elementor-editor-active):has(.fu-hero) .fu-head:not(:hover):not(:focus-within) .elementor-search-form__container { background: transparent !important; border-color: rgba(255,255,255,.55) !important; }
html:not(.fu-solid) body:not(.elementor-editor-active):has(.fu-hero) .fu-head:not(:hover):not(:focus-within) .elementor-search-form__input { background: transparent !important; color: #fff !important; }
html:not(.fu-solid) body:not(.elementor-editor-active):has(.fu-hero) .fu-head:not(:hover):not(:focus-within) .elementor-search-form__input::placeholder { color: rgba(255,255,255,.85) !important; }

/* ---------- Deals band: the deals drop out and back in from the top every 3 seconds ---------- */
.fu-msgs { position: relative !important; overflow: hidden !important; }
.fu-msg.fu-msg-in { animation: fuMsgIn 700ms cubic-bezier(.2,.7,.2,1); }
.fu-msg.fu-msg-out { animation: fuMsgOut 700ms cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes fuMsgIn { from { transform: translateY(-150%); } }
@keyframes fuMsgOut { to { transform: translateY(150%); visibility: hidden; } }
/* Phones: one deal at a time, the next one peeking, swipe sideways (test site: .bundle 82%, snapping to the middle) */
@media (max-width: 767px) {
	.fu-msgs .fu-msg { flex-direction: row !important; flex-wrap: nowrap !important; gap: 12px !important; overflow-x: auto; scroll-snap-type: x mandatory;
		scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; width: calc(100% + 32px) !important; max-width: none !important; min-width: 0; }   /* edge to edge, the band has 16px sides */
	.fu-msgs .fu-msg::-webkit-scrollbar { display: none; }
	.fu-msgs .fu-msg > .e-con { --width: 82% !important; flex: 0 0 82% !important; scroll-snap-align: center; }
	.fu-msgs .fu-msg > .e-con > .e-con { --width: auto !important; flex: 1 1 0 !important; min-width: 0; }   /* the title wraps, the button stays beside it */
}

/* Pause buttons (moving content needs a way to stop it) */
.fu-pause { position: absolute; z-index: 3; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.fu-pause::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.6); background: rgba(20,35,63,.72); }
.fu-pause::before { content: ""; position: absolute; z-index: 1; inset: 15px 16px; border-inline: 2px solid #fff; }
.fu-pause.paused::before { inset: 15px 15px 15px 17px; border: 0; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.fu-pause:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.fu-msgs > .fu-pause { inset-block-start: 0; inset-inline-end: 0; }

/* ---------- "כל מה שצריך": one row that slides, arrows and a progress line ---------- */
.fu-car-on .fu-car-track {
	flex-wrap: nowrap !important; gap: 16px !important; overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; overscroll-behavior-x: contain;
}
.fu-car-on .fu-car-track::-webkit-scrollbar { display: none; }
.fu-car-on .fu-car-track > .e-con { --width: calc(25% - 12px) !important; flex: 0 0 calc(25% - 12px) !important; scroll-snap-align: start; }
.fu-car-ctl { display: flex; align-items: center; gap: 12px; margin-top: 32px; width: 100%; }
.fu-car-prog { flex: 1 1 0%; height: 1px; background: #D9DCE2; position: relative; margin-inline-end: 12px; }
.fu-car-prog span { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; background: #323952; transition: width 400ms cubic-bezier(.2,.7,.2,1); }
.fu-car-ctl button {
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: #1E2230; background: #ECEEF2; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: transform 150ms, background-color 200ms, color 200ms;
}
.fu-car-ctl button:hover { background: #1E2230; color: #fff; }
.fu-car-ctl button:active { transform: scale(.95); }
.fu-car-ctl button[disabled] { opacity: .4; cursor: default; background: #ECEEF2; color: #1E2230; transform: none; }
.fu-car-ctl svg { width: 18px; height: 18px; }
@media (max-width: 1024px) {
	.fu-car-on .fu-car-track > .e-con { --width: calc(38.4615% - 18.4615px) !important; flex-basis: calc(38.4615% - 18.4615px) !important; }
}
@media (max-width: 767px) {
	.fu-car-on .fu-car-track { gap: 12px !important; }
	.fu-car-on .fu-car-track > .e-con { --width: calc(50% - 6px) !important; flex-basis: calc(50% - 6px) !important; }
	.fu-car-on .fu-car-track > .e-con:nth-child(2n) { scroll-snap-align: none; }   /* phones move a pair at a time */
}

/* ---------- NEW SEASON: three photo sets change together every 4 seconds ---------- */
.fu-looks.fu-run .fu-looks-set { opacity: 0; visibility: hidden; transition: opacity 900ms, visibility 900ms; }
.fu-looks.fu-run .fu-looks-set.fu-on { opacity: 1; visibility: visible; transition: opacity 900ms; }
.fu-looks.fu-run .fu-looks-btn { display: none; }
.fu-looks.fu-run .fu-looks-btn.fu-on { display: block; }
.fu-bars { --i: 0; position: absolute; z-index: 3; inset-inline: 0; margin-inline: auto; inset-block-end: clamp(14px, 2.4vw, 36px);
	width: clamp(180px, 24vw, 420px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fu-bar { position: relative; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.fu-bar::before, .fu-bars-on { content: ""; position: absolute; top: 50%; height: 3px; margin-top: -1.5px; box-shadow: 0 0 6px rgba(10,20,40,.45); }
.fu-bar::before { inset-inline: 0; background: rgba(255,255,255,.45); transition: background-color 200ms; }
.fu-bar:hover::before { background: rgba(255,255,255,.75); }
.fu-bar:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.fu-bars-on { width: calc(33.3333% - 5.33333px); inset-inline-start: calc(var(--i) * (100% + 8px) / 3); background: #fff; pointer-events: none;
	transition: inset-inline-start 700ms cubic-bezier(.2,.7,.2,1); }
.fu-looks > .fu-pause { inset-block-end: clamp(18px, 2.6vw, 38px); inset-inline-start: clamp(18px, 2.6vw, 38px); width: 36px; height: 36px; }
.fu-looks > .fu-pause::after { inset: 0; }
.fu-looks > .fu-pause::before { inset: 12px 13px; border-inline-width: 3px; }
.fu-looks > .fu-pause.paused::before { inset: 11px 12px 11px 14px; }

/* ---------- Bands fade up as they come into view ---------- */
.fu-reveal-wait { opacity: 0; transform: translateY(12px); transition: opacity 500ms cubic-bezier(.2,.7,.2,1), transform 500ms cubic-bezier(.2,.7,.2,1); }
.fu-reveal-wait.fu-in { opacity: 1; transform: none; }

/* ---------- The live site's theme (hello-elementor) paints every <button> with a pink border, pink hover and padding;
   these keep ours exactly as on the test site ---------- */
.fu-pause[type=button], .fu-bar[type=button] { border: 0; border-radius: 0; padding: 0; background: none; color: inherit; min-height: 0; box-shadow: none; }
.fu-pause[type=button]:hover, .fu-pause[type=button]:focus, .fu-bar[type=button]:hover, .fu-bar[type=button]:focus { background: none; color: inherit; }
.fu-car-ctl button[type=button] { border: 0; border-radius: 50%; padding: 0; background: #ECEEF2; color: #1E2230; box-shadow: none; }
.fu-car-ctl button[type=button]:focus { background: #ECEEF2; color: #1E2230; }
.fu-car-ctl button[type=button]:hover { background: #1E2230; color: #fff; }
.fu-car-ctl button[type=button][disabled] { background: #ECEEF2; color: #1E2230; }

/* ---------- The Elementor editor stays still, so everything is easy to click and edit ---------- */
.elementor-editor-active .fu-hero::after { animation: none; }

/* ---------- Reduced motion (device setting): nothing moves by itself ---------- */
@media (prefers-reduced-motion: reduce) {
	.fu-hero::after, .fu-msg.fu-msg-in, .fu-msg.fu-msg-out { animation: none; }
	.fu-head .fu-head-row, .fu-head .fu-logo svg, .fu-head .fu-head-nav { transition: none; }
	:is(.fu-hero, .fu-msgs, .fu-car, .fu-looks) .elementor-button:active { transform: none; }
	.fu-zoom::after { transition: none; }
	.fu-hover:hover .fu-zoom::after, .fu-zoom.fu-hover:hover::after { transform: none; }
	.fu-img2 { transition: opacity 150ms; }
	.fu-reveal-wait { transform: none; transition: opacity 150ms; }
	.fu-car-prog span, .fu-bars-on { transition: none; }
	.fu-car-ctl button:active { transform: none; }
}
