/* Header + footer motion (louloudiagiagenisi.gr).
   Enqueued by novamira-sandbox/nvm-header-footer-links.php after
   header-refresh.css. Everything here is switched off for
   prefers-reduced-motion (bottom of file). */

/* =====================================================================
   HEADER
   ===================================================================== */

/* ---- Top bar pills are links now ---------------------------------- */
#masthead a.nvm-topbar__msg,
.nvm-mobile-topbar a.nvm-topbar__msg {
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .25s cubic-bezier(.2, .8, .2, 1), background-color .25s ease, box-shadow .25s ease;
}

#masthead a.nvm-topbar__msg:hover,
#masthead a.nvm-topbar__msg:focus-visible,
.nvm-mobile-topbar a.nvm-topbar__msg:hover,
.nvm-mobile-topbar a.nvm-topbar__msg:focus-visible {
	background: rgba(255, 255, 255, .3) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 4px 14px rgba(0, 0, 0, .18);
	transform: translateY(-1px) scale(1.04);
	outline: none;
}

#masthead a.nvm-topbar__msg:hover svg,
.nvm-mobile-topbar a.nvm-topbar__msg:hover svg {
	animation: nvm-hf-wiggle .6s ease;
}

#masthead a.nvm-topbar__msg strong {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size .3s ease;
}

#masthead a.nvm-topbar__msg:hover strong { background-size: 100% 1px; }

/* Icons gently "breathe" one after another. */
.nvm-topbar__group > .nvm-topbar__msg svg { animation: nvm-hf-bob 4.8s ease-in-out infinite; }
.nvm-topbar__group > .nvm-topbar__msg:nth-child(2) svg { animation-delay: .6s; }
.nvm-topbar__group > .nvm-topbar__msg:nth-child(3) svg { animation-delay: 1.2s; }
.nvm-topbar__group > .nvm-topbar__msg:nth-child(4) svg { animation-delay: 1.8s; }
.nvm-topbar__group > .nvm-topbar__msg:nth-child(5) svg { animation-delay: 2.4s; }
.nvm-topbar__group > .nvm-topbar__msg:nth-child(6) svg { animation-delay: 3s; }
.nvm-topbar__group > .nvm-topbar__msg:nth-child(7) svg { animation-delay: 3.6s; }
.nvm-topbar__group > .nvm-topbar__msg:nth-child(8) svg { animation-delay: 4.2s; }

/* Mobile "ΑΘΗΝΑ · ΑΝΘΟΠΩΛΕΙΟ" label link */
a.nvm-hf-city,
a.nvm-hf-city:visited { color: inherit !important; text-decoration: none !important; border: 0 !important; transition: opacity .2s ease, letter-spacing .3s ease; }
a.nvm-hf-city:hover { opacity: .8; letter-spacing: .04em; }

/* ---- Logo: blooms in on load, wordmark shimmers ------------------- */
.nvm-hf-js .site-branding .nvm-logo__mark {
	animation: nvm-hf-bloom 1.2s cubic-bezier(.2, .9, .25, 1.25) both;
}

.nvm-hf-js .site-branding .nvm-logo__text {
	animation: nvm-hf-rise .8s .25s cubic-bezier(.2, .8, .2, 1) both;
}

.nvm-logo__pink,
.nvm-logo__blue {
	background-size: 220% 100% !important;
	animation: nvm-hf-shimmer 7s ease-in-out infinite alternate;
}

.nvm-logo__pink { background-image: linear-gradient(90deg, #F06A9C, #C63D71, #FF9CC0, #F06A9C) !important; }
.nvm-logo__blue { background-image: linear-gradient(90deg, #5B95E3, #2A569B, #A9D0FB, #5B95E3) !important; animation-delay: -3.5s; }

.nvm-logo__tag i { animation: nvm-hf-dot 2.4s ease-in-out infinite; }

.site-branding a.brand:hover .nvm-logo__mark { filter: drop-shadow(0 6px 16px rgba(232, 84, 140, .45)); }

/* ---- Main menu: staggered drop-in + lift on hover ----------------- */
.nvm-hf-js #masthead .site-main-header-wrap .header-navigation .menu > li {
	animation: nvm-hf-drop .6s cubic-bezier(.2, .8, .2, 1) both;
	animation-delay: calc(.15s + var(--nvm-i, 0) * 70ms);
}

#masthead .site-main-header-wrap .header-navigation .menu > li > a {
	transition: color .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}

#masthead .site-main-header-wrap .header-navigation .menu > li > a:hover {
	color: #C63D71;
	transform: translateY(-2px);
}

#masthead .site-main-header-wrap .header-navigation .menu > li > a::after {
	height: 3px;
	background-size: 200% 100%;
	background-image: linear-gradient(90deg, #E8548C, #9B6BD3, #4A86D8, #E8548C);
	animation: nvm-hf-flow 3s linear infinite;
}

/* ---- Cart pill: light sweep + bump when a product is added -------- */
#masthead .header-cart-wrap .header-cart-button {
	position: relative;
	overflow: hidden;
	transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, background-color .2s ease;
}

#masthead .header-cart-wrap .header-cart-button::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-20deg);
	animation: nvm-hf-sweep 5s ease-in-out infinite;
	pointer-events: none;
}

#masthead .header-cart-wrap .header-cart-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -6px rgba(232, 84, 140, .6);
}

#masthead .header-cart-wrap .header-cart-button.nvm-hf-bump { animation: nvm-hf-bump .7s cubic-bezier(.3, 1.6, .5, 1); }

/* ---- Phone button: soft "ringing" halo ----------------------------- */
#masthead .site-main-header-wrap .header-button-wrap .button {
	position: relative;
	transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, background-color .2s ease;
	animation: nvm-hf-halo 3.2s ease-out infinite;
}

#masthead .site-main-header-wrap .header-button-wrap .button:hover {
	transform: translateY(-2px);
	animation: nvm-hf-ring .5s ease-in-out 2;
}

/* ---- Search pill: icon nudge on focus ------------------------------ */
.site-bottom-header-wrap .search-form:focus-within .kadence-search-icon-wrap,
.site-bottom-header-wrap .woocommerce-product-search:focus-within .kadence-search-icon-wrap {
	animation: nvm-hf-wiggle .6s ease;
}

/* =====================================================================
   FOOTER
   ===================================================================== */

/* Flowing gradient bar above the columns. */
.site-middle-footer-wrap::before {
	background-size: 200% 100% !important;
	background-image: linear-gradient(90deg, transparent, #E8548C, #9B6BD3, #4A86D8, #E8548C, transparent) !important;
	animation: nvm-hf-flow 4s linear infinite;
	width: min(360px, 70%) !important;
}

/* Watermark logo slowly turns. */
.site-middle-footer-wrap::after { animation: nvm-hf-spin 60s linear infinite; }

/* Floating petals / hearts (injected by header-footer-motion.js). */
.site-middle-footer-wrap { position: relative; }

.nvm-hf-petals {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.nvm-hf-petals span {
	position: absolute;
	bottom: -30px;
	left: var(--x, 50%);
	width: var(--s, 14px);
	height: var(--s, 14px);
	opacity: 0;
	color: var(--c, #E8548C);
	animation: nvm-hf-float var(--d, 14s) linear infinite;
	animation-delay: var(--delay, 0s);
}

.nvm-hf-petals svg { width: 100%; height: 100%; display: block; fill: currentColor; }

/* Column titles are links: icon spins, accent line grows. */
.site-footer a.nvm-hf-title-link {
	display: inline-flex;
	align-items: center;
	gap: inherit;
	color: inherit !important;
	text-decoration: none !important;
}

.site-footer .widget-title .nvm-footer-icon { transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); }

.site-footer a.nvm-hf-title-link:hover .nvm-footer-icon,
.site-footer .footer-widget-area:hover .widget-title .nvm-footer-icon {
	transform: rotate(360deg) scale(1.12);
}

.site-footer .footer-widget-area .widget-title::after { transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.site-footer .footer-widget-area:hover .widget-title::after { width: 64px; }

.site-footer a.nvm-hf-title-link:hover { color: var(--col-deep, #C63D71) !important; }

/* Glass cards: 3D tilt + spotlight that follows the pointer. */
.site-middle-footer-wrap .footer-widget-area-inner {
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
	background-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), rgba(255, 255, 255, .75), transparent 60%) !important;
}

.site-middle-footer-wrap .footer-widget-area-inner:hover {
	--ty: -4px;
	box-shadow: 0 18px 40px -20px var(--col, #E8548C) !important;
}

/* Items cascade in when a column scrolls into view. */
.nvm-hf-js .site-footer .nvm-hf-stagger {
	opacity: 0;
	transform: translateX(-14px);
	transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
	transition-delay: calc(.15s + var(--nvm-i, 0) * 80ms);
}

.nvm-hf-js .site-footer .nvm-hf-in .nvm-hf-stagger {
	opacity: 1;
	transform: none;
}

/* Menu cards: arrow slides, a small heart pops in. */
.site-footer .footer-widget-area .menu li a:hover::after { transform: translateX(4px); }

/* Brand block is a link to the homepage. */
.site-footer a.nvm-footer-brand__link {
	display: inherit;
	align-items: inherit;
	gap: inherit;
	color: inherit;
	text-decoration: none;
}

.site-footer .nvm-footer-brand__logo { transition: transform .8s cubic-bezier(.3, 1.4, .5, 1); }
.site-footer a.nvm-footer-brand__link:hover .nvm-footer-brand__logo { transform: rotate(120deg) scale(1.1); }

.site-footer .nvm-footer-brand__name {
	background: linear-gradient(90deg, #C63D71, #E8548C, #4A86D8, #C63D71);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	animation: nvm-hf-shimmer 8s ease-in-out infinite alternate;
}

/* Contact rows: icon reacts on hover. */
.nvm-footer-contact__icon { transition: transform .3s ease; }
.nvm-footer-contact li:hover .nvm-footer-contact__icon { animation: nvm-hf-ring .45s ease-in-out 2; }
.nvm-footer-contact li:first-child:hover .nvm-footer-contact__icon { animation: nvm-hf-hop .6s ease 1; }
.nvm-footer-contact__text a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s ease, color .2s ease; }
.nvm-footer-contact li:hover .nvm-footer-contact__text a { color: #C63D71; background-size: 100% 1px; }

/* News title is a link. */
.site-footer .nvm-footer-article__title a { color: inherit; text-decoration: none; transition: color .2s ease; }
.site-footer .nvm-footer-article__title a:hover { color: var(--col-deep, #C63D71); }
.site-footer .footer-widget-area:hover .nvm-footer-article__title::after { width: 70px; }
.site-footer .nvm-footer-article__button:hover::after { transform: translateX(4px); }

/* Bottom bar. */
.site-bottom-footer-wrap .nvm-hf-heart {
	display: inline-block;
	color: #E8548C;
	animation: nvm-hf-beat 1.6s ease-in-out infinite;
}

.site-bottom-footer-wrap a.nvm-hf-home:hover { border-bottom-color: currentColor; }
.site-bottom-footer-wrap a.nvm-hf-pay { display: inline-block; border: 0 !important; transition: transform .25s ease; }
.site-bottom-footer-wrap a.nvm-hf-pay:hover { transform: translateY(-2px) scale(1.06); }

.nvm-back-to-top:hover svg { animation: nvm-hf-up .7s ease-in-out infinite; }

/* =====================================================================
   KEYFRAMES
   ===================================================================== */
@keyframes nvm-hf-wiggle {
	0%, 100% { transform: rotate(0); }
	20% { transform: rotate(-14deg) scale(1.15); }
	40% { transform: rotate(12deg) scale(1.15); }
	60% { transform: rotate(-8deg); }
	80% { transform: rotate(5deg); }
}

@keyframes nvm-hf-bob {
	0%, 80%, 100% { transform: none; }
	86% { transform: translateY(-3px) scale(1.15); }
	92% { transform: translateY(0) scale(.95); }
}

@keyframes nvm-hf-bloom {
	0% { transform: scale(0) rotate(-200deg); opacity: 0; }
	70% { opacity: 1; }
	100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes nvm-hf-rise {
	from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
	to { opacity: 1; transform: none; filter: none; }
}

@keyframes nvm-hf-shimmer {
	from { background-position: 0% 50%; }
	to { background-position: 100% 50%; }
}

@keyframes nvm-hf-dot {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.5); }
}

@keyframes nvm-hf-drop {
	from { opacity: 0; transform: translateY(-14px); }
	to { opacity: 1; transform: none; }
}

@keyframes nvm-hf-flow {
	from { background-position: 0% 50%; }
	to { background-position: 200% 50%; }
}

@keyframes nvm-hf-sweep {
	0%, 65% { left: -60%; }
	100% { left: 130%; }
}

@keyframes nvm-hf-bump {
	0% { transform: scale(1); }
	30% { transform: scale(1.18) rotate(-4deg); }
	55% { transform: scale(.94) rotate(3deg); }
	100% { transform: scale(1); }
}

@keyframes nvm-hf-halo {
	0% { box-shadow: 0 0 0 0 rgba(74, 134, 216, .45); }
	70%, 100% { box-shadow: 0 0 0 12px rgba(74, 134, 216, 0); }
}

@keyframes nvm-hf-ring {
	0%, 100% { transform: rotate(0); }
	25% { transform: rotate(-10deg); }
	75% { transform: rotate(10deg); }
}

@keyframes nvm-hf-hop {
	0%, 100% { transform: translateY(0); }
	40% { transform: translateY(-6px); }
	70% { transform: translateY(1px); }
}

@keyframes nvm-hf-spin {
	to { transform: rotate(360deg); }
}

@keyframes nvm-hf-float {
	0% { transform: translateY(0) rotate(0) translateX(0); opacity: 0; }
	10% { opacity: var(--o, .35); }
	50% { transform: translateY(-50vh) rotate(180deg) translateX(var(--sway, 30px)); }
	85% { opacity: var(--o, .35); }
	100% { transform: translateY(-100vh) rotate(360deg) translateX(0); opacity: 0; }
}

@keyframes nvm-hf-beat {
	0%, 60%, 100% { transform: scale(1); }
	15% { transform: scale(1.3); }
	30% { transform: scale(.95); }
	45% { transform: scale(1.2); }
}

@keyframes nvm-hf-up {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

/* =====================================================================
   Reduced motion: keep the links, drop the movement.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	#masthead *,
	#masthead *::before,
	#masthead *::after,
	.nvm-mobile-topbar *,
	.site-footer *,
	.site-footer *::before,
	.site-footer *::after,
	.site-middle-footer-wrap::before,
	.site-middle-footer-wrap::after {
		animation: none !important;
		transition: none !important;
	}

	.nvm-hf-petals { display: none; }
	.site-middle-footer-wrap .footer-widget-area-inner { transform: none !important; }
	.nvm-hf-js .site-footer .nvm-hf-stagger { opacity: 1; transform: none; }
}
