/* Header refresh — flowerdelivery.gr structure in this site's pink + blue.
   Row 1: logo | category menu (centered) | cart + phone.
   Row 2: centered pill search.  Enqueued by novamira-sandbox/nvm-header-logo.php */

:root {
	--nvm-pink: #E8548C;
	--nvm-pink-deep: #C63D71;
	--nvm-blush: #FBE1EA;
	--nvm-blue: #4A86D8;
	--nvm-blue-deep: #2A569B;
	--nvm-sky: #EAF3FF;
	--nvm-ink: #241D22;
}

/* ---- Logo ------------------------------------------------------------ */
.nvm-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	line-height: 1;
}

.nvm-logo__mark {
	flex: none;
	width: 52px;
	height: 52px;
	filter: drop-shadow(0 4px 10px rgba(232, 84, 140, .22));
	transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.site-branding a.brand:hover .nvm-logo__mark,
.site-branding a.brand:focus-visible .nvm-logo__mark {
	transform: rotate(60deg) scale(1.04);
}

.nvm-logo__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	white-space: nowrap;
}

.nvm-logo__name {
	font-family: 'Comfortaa', 'IBM Plex Sans', sans-serif;
	font-weight: 700;
	font-size: 23px;
	letter-spacing: -.01em;
}

.nvm-logo__pink {
	background: linear-gradient(90deg, #F06A9C, #C63D71);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nvm-logo__blue {
	background: linear-gradient(90deg, #5B95E3, #2A569B);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nvm-logo__tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #8A7C86;
}

.nvm-logo__tag i {
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--nvm-blue);
	box-shadow: -9px 0 0 -1px var(--nvm-pink);
	margin-left: 6px;
}

.site-branding a.brand img.custom-logo { display: none; }

/* ---- Main row -------------------------------------------------------- */
.site-main-header-wrap .site-header-row {
	column-gap: 28px;
}

.site-main-header-wrap .site-header-main-section-center {
	justify-content: center;
}

.site-main-header-wrap .header-navigation .menu {
	flex-wrap: wrap;
	justify-content: center;
	row-gap: 2px;
}

.site-main-header-wrap .header-navigation .menu > li > a {
	position: relative;
	padding-top: .7em;
	padding-bottom: .7em;
	color: var(--nvm-ink);
}

.site-main-header-wrap .header-navigation .menu > li > a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: .35em;
	width: 0;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--nvm-pink), var(--nvm-blue));
	transform: translateX(-50%);
	transition: width .25s ease;
}

.site-main-header-wrap .header-navigation .menu > li > a:hover::after,
.site-main-header-wrap .header-navigation .menu > li.current-menu-item > a::after {
	width: 70%;
}

/* Kadence's " · " separators between menu items are not needed once the
   items are spaced like flowerdelivery.gr's menu. */
.site-main-header-wrap .header-navigation .menu > li + li::before {
	display: none;
}

.site-main-header-wrap .site-header-main-section-right {
	gap: 12px;
	flex-wrap: nowrap;
}

.site-main-header-wrap .header-button-wrap .button,
.site-main-header-wrap .header-cart-wrap .header-cart-button {
	white-space: nowrap;
}

.site-main-header-wrap .header-button-wrap .button {
	padding: 11px 18px !important;
}

/* ---- Search row ------------------------------------------------------ */
.site-bottom-header-wrap .site-header-row-container-inner {
	padding-bottom: 18px;
}

.site-bottom-header-wrap .site-header-row-container-inner {
	background: transparent;
	border: 0;
}

/* Search sits under the logo (left column), not flush against the edge. */
.site-bottom-header-wrap .site-header-bottom-section-left {
	justify-content: flex-start;
}

/* Same 30px inset as the logo (header_logo_padding) so the two line up. */
@media (min-width: 1025px) {
	.site-bottom-header-wrap .site-header-bottom-section-left .site-header-item {
		padding-left: 30px;
	}
}

.site-bottom-header-wrap .search-form,
.site-bottom-header-wrap .woocommerce-product-search {
	width: 340px !important;
	max-width: 100%;
}

.site-bottom-header-wrap .search-form,
.site-bottom-header-wrap .woocommerce-product-search {
	position: relative;
	width: min(460px, 80vw);
}

.site-bottom-header-wrap .search-form input[type="search"],
.site-bottom-header-wrap .woocommerce-product-search input[type="search"] {
	width: 100%;
	height: 46px;
	padding: 0 22px 0 48px !important;
	border: 1px solid #F3D2DF !important;
	border-radius: 999px !important;
	background: #FDF4F7 !important;
	color: var(--nvm-ink);
	font-size: 14.5px;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.site-bottom-header-wrap .search-form input[type="search"]:focus,
.site-bottom-header-wrap .woocommerce-product-search input[type="search"]:focus {
	background: #FFFFFF !important;
	border-color: var(--nvm-blue) !important;
	box-shadow: 0 0 0 4px rgba(74, 134, 216, .14);
	outline: none;
}

.site-bottom-header-wrap .search-form .search-submit,
.site-bottom-header-wrap .search-form .kadence-search-icon-wrap,
.site-bottom-header-wrap .woocommerce-product-search .kadence-search-icon-wrap {
	left: 14px !important;
	right: auto !important;
	color: var(--nvm-pink-deep);
}

/* ---- Checkout: transparent header ------------------------------------ */
.woocommerce-checkout #masthead,
.woocommerce-checkout .site-header-wrap,
.woocommerce-checkout .site-main-header-wrap .site-header-row-container-inner,
.woocommerce-checkout .site-bottom-header-wrap .site-header-row-container-inner {
	background: transparent !important;
	box-shadow: none !important;
}

.woocommerce-checkout .entry-hero .entry-hero-container-inner,
.woocommerce-checkout .entry-hero .hero-section-overlay {
	background: transparent !important;
}

@media (max-width: 1024px) {
	.nvm-logo { gap: 9px; }
	.nvm-logo__mark { width: 42px; height: 42px; }
	.nvm-logo__name { font-size: 18px; }
	.nvm-logo__tag { font-size: 9px; letter-spacing: .18em; }
}

@media (max-width: 480px) {
	.nvm-logo { gap: 7px; }
	.nvm-logo__mark { width: 38px; height: 38px; }
	/* Stack "Λουλούδια" over "για Γέννηση" so search, menu and cart still fit. */
	.nvm-logo__name { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.1; }
	.nvm-logo__tag { display: none; }
	.site-mobile-header-wrap .site-header-row { column-gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.nvm-logo__mark { transition: none; }
}

/* ---- Top announcement bar ------------------------------------------- */
/* Pink → blue ribbon with icons, a live "order within Xh Ym" countdown
   (js/topbar.js) and a secure-payment note. Under 1100px the messages
   rotate one at a time instead of squeezing. */
#masthead .site-top-header-wrap .site-header-row-container-inner {
	position: relative;
	overflow: hidden;
	background: linear-gradient(100deg, #B42F63 0%, #E8548C 38%, #D9579A 58%, #3F6FC2 100%) !important;
	border-bottom: 0 !important;
}

.site-top-header-wrap .site-header-row-container-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px);
	background-size: 14px 14px;
	pointer-events: none;
}

.site-top-header-wrap .site-header-row-container-inner::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -30%;
	width: 30%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
	transform: skewX(-20deg);
	animation: nvm-topbar-sheen 9s ease-in-out infinite;
	pointer-events: none;
}

@keyframes nvm-topbar-sheen {
	0%, 60% { left: -30%; }
	100% { left: 130%; }
}

.site-top-header-wrap .site-header-row {
	position: relative;
	z-index: 1;
	min-height: 42px;
}

.site-top-header-wrap .site-header-top-section-left,
.site-top-header-wrap .site-header-top-section-left .header-html,
.site-top-header-wrap .header-html-inner {
	flex: 1 1 auto;
	width: 100%;
}

#masthead .nvm-topbar,
#masthead .nvm-topbar * {
	color: #FFFFFF !important;
}

.nvm-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 13.5px;
	line-height: 1.2;
	letter-spacing: .01em;
}

.nvm-topbar strong { font-weight: 700; }

.nvm-topbar svg {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nvm-topbar__msgs {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.nvm-topbar__msg {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.nvm-topbar__cutoff {
	background: rgba(255, 255, 255, .22);
}

.nvm-topbar__live {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #B8FFD9;
	flex: none;
}

.nvm-topbar__live::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #B8FFD9;
	animation: nvm-live 1.8s ease-out infinite;
}

@keyframes nvm-live {
	from { transform: scale(1); opacity: .8; }
	to { transform: scale(3); opacity: 0; }
}

.nvm-topbar__cutoff.is-closed .nvm-topbar__live,
.nvm-topbar__cutoff.is-closed .nvm-topbar__live::after {
	background: #FFD6A5;
}

.nvm-topbar__pay {
	flex: none;
}

@media (prefers-reduced-motion: reduce) {
	.site-top-header-wrap .site-header-row-container-inner::after,
	.nvm-topbar__live::after { animation: none; }
	.nvm-topbar__msg { transition: none; }
}
/* Equal-height pills (incl. the payments pill, which sits outside
   .nvm-topbar__msgs and must not stretch with the row). */
#masthead .nvm-topbar__msg {
	box-sizing: border-box;
	height: 30px !important;
	padding: 0 13px !important;
	line-height: 1 !important;
	font-size: 13.5px !important;
	align-self: center;
	flex: none;
	white-space: nowrap;
}

/* Header rows sit on the header background (top bar keeps its gradient). */
#masthead .site-main-header-wrap .site-header-row-container-inner,
#masthead .site-bottom-header-wrap .site-header-row-container-inner {
	background: transparent !important;
}

/* Kadence may wrap header HTML in <p>; never let that shift a pill. */
.nvm-topbar p {
	margin: 0 !important;
	display: contents;
}

.nvm-topbar__side {
	display: flex;
	align-items: center;
}

/* ---- Main + bottom rows: no background band ------------------------- */
/* Logo/menu row and search row sit directly on the site background; a
   single thin pink -> blue line separates them. */
#masthead {
	background: transparent !important;
}

#masthead .site-main-header-wrap {
	position: relative;
}

#masthead .site-main-header-wrap::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(232, 84, 140, .45), rgba(74, 134, 216, .45));
	pointer-events: none;
}

/* Logo sits centred beside the (wrapping) menu, and the search row gets
   even breathing room above and below the separator line. */
#masthead .site-main-header-wrap .site-header-row,
#masthead .site-main-header-wrap .site-header-section {
	align-items: center;
}

#masthead .site-bottom-header-wrap .site-header-row-container-inner {
	padding-top: 14px !important;
	padding-bottom: 14px !important;
}

#masthead .site-bottom-header-wrap .site-header-row {
	min-height: 0 !important;
	align-items: center;
}

/* Search pill: white on the tinted band instead of blush-on-white. */
.site-bottom-header-wrap .search-form input[type="search"],
.site-bottom-header-wrap .woocommerce-product-search input[type="search"] {
	background: rgba(255, 255, 255, .85) !important;
	border-color: #F1C9DA !important;
}

/* Phone button: white glass on the band, blue text like the logo. */
.site-main-header-wrap .header-button-wrap .button.button-style-secondary,
.site-main-header-wrap .header-button-wrap a.button:not(.button-style-filled) {
	background: rgba(255, 255, 255, .8) !important;
}

.woocommerce-checkout #masthead { background: transparent !important; }

/* Ticker (all widths): topbar.js wraps the pills in a track + clone; the
   row scrolls slowly and pauses on hover. */
@media all {
	.nvm-topbar__msgs {
		flex: 1 1 auto;
		overflow: hidden;
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
		mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
	}

	.nvm-topbar__track {
		display: flex;
		width: max-content;
		animation: nvm-topbar-ticker 55s linear infinite;
	}

	.nvm-topbar__msgs:hover .nvm-topbar__track { animation-play-state: paused; }

	.nvm-topbar__group,
	.nvm-topbar__group[aria-hidden] {
		display: flex;
		align-items: center;
		gap: 10px;
		padding-right: 10px;
	}
}

@keyframes nvm-topbar-ticker {
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.nvm-topbar__track { animation: none !important; }
}

/* Keep the ticker inside the viewport: Kadence's top-row wrappers would
   otherwise grow to the full track width and push the payments pill out. */
@media all {
	.site-top-header-wrap .site-header-row,
	.site-top-header-wrap .site-header-section-left,
	.site-top-header-wrap .site-header-item,
	.site-top-header-wrap .header-html,
	.site-top-header-wrap .header-html-inner {
		min-width: 0;
		max-width: 100%;
	}

	.site-top-header-wrap .site-header-section-left,
	.site-top-header-wrap .site-header-item,
	.site-top-header-wrap .header-html,
	.site-top-header-wrap .header-html-inner { width: 100%; overflow: hidden; }

	.nvm-topbar { min-width: 0; max-width: 100%; }
}


/* Payments pill now scrolls with the others inside .nvm-topbar__msgs. */
.nvm-topbar__msgs .nvm-topbar__pay { display: inline-flex !important; }

/* ---- Mobile header: ticker strip above the phone buttons ------------ */
/* Printed on kadence_mobile_top_header (nvm-header-logo.php). */
.nvm-mobile-topbar {
	position: relative;
	overflow: hidden;
	padding: 8px 0;
	background: linear-gradient(100deg, #B42F63 0%, #E8548C 38%, #D9579A 58%, #3F6FC2 100%);
}

.nvm-mobile-topbar::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px);
	background-size: 14px 14px;
	pointer-events: none;
}

.nvm-mobile-topbar .nvm-topbar {
	position: relative;
	font-size: 13px;
}

.nvm-mobile-topbar .nvm-topbar,
.nvm-mobile-topbar .nvm-topbar * {
	color: #FFFFFF !important;
}

.nvm-mobile-topbar .nvm-topbar__msgs {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.nvm-mobile-topbar .nvm-topbar__track {
	animation-duration: 45s;
}

.nvm-mobile-topbar .nvm-topbar__msg {
	box-sizing: border-box;
	height: 28px;
	padding: 0 12px;
	line-height: 1;
	flex: none;
}

@media (min-width: 1025px) {
	.nvm-mobile-topbar { display: none; }
}