/**
 * Site header + homepage hero slider (from header.html mockup).
 */

.canifex-site-header-wrap {
	--canifex-header-plum: #2B1B3D;
	--canifex-header-plum-dark: #1F1330;
	--canifex-header-rose: #D946A8;
	--canifex-header-rose-dark: #BE3589;
	--canifex-header-purple: #A855F7;
	--canifex-header-purple-dark: #9333EA;
	--canifex-header-blush: #FDF2F8;
	--canifex-header-blue: var(--canifex-header-rose);
	--canifex-header-blue-dark: var(--canifex-header-rose-dark);
	--canifex-header-orange: var(--canifex-header-purple);
}

.canifex-site-header-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1000;
}

.canifex-site-header-spacer {
	height: var(--canifex-sticky-header-height, 110px);
}

body.admin-bar .canifex-site-header-sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .canifex-site-header-sticky {
		top: 46px;
	}
}

/* Announcement bar */
.canifex-announcement-bar {
	background: linear-gradient(90deg, var(--canifex-header-purple) 0%, var(--canifex-header-rose) 100%);
	color: #fff;
	text-align: center;
	padding: 10px 15px;
	font-size: 13px;
	letter-spacing: 0.5px;
	font-weight: 500;
}

.canifex-announcement-bar__light {
	opacity: 0.8;
	font-weight: 400;
}

/* Main header */
.canifex-site-header {
	background: linear-gradient(135deg, var(--canifex-header-rose) 0%, var(--canifex-header-rose-dark) 55%, var(--canifex-header-plum) 100%);
	color: #fff;
	padding: 15px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 4px 18px rgba(190, 53, 137, 0.22);
}

.canifex-site-header__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.canifex-header-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	text-decoration: none;
	color: #fff;
}

.canifex-header-logo-text {
	font-size: 35px;
	font-weight: 700;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.canifex-header-logo-image {
	display: block;
	max-height: 48px;
	width: auto;
	flex-shrink: 0;
}

/* Category links */
.canifex-header-nav-links {
	flex-shrink: 0;
}

.canifex-header-nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.canifex-header-nav-list a {
	color: #fff;
	text-decoration: none;
	font-size: 18px;
	font-weight: 500;
	opacity: 0.9;
	transition: opacity 0.2s ease;
}

.canifex-header-nav-list a:hover,
.canifex-header-nav-list a:focus {
	opacity: 1;
	text-shadow: 0 0 1px #fff;
}

.canifex-header-nav-list > li {
	position: relative;
}

.canifex-header-nav-list > .menu-item-has-children::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin-top: 0.2rem;
	transform: translateX(-50%) translateY(4px);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D946A8'%3E%3Cpath d='M12 2.2 13.2 6.6 17.4 7.8 13.2 9 12 13.4 10.8 9 6.6 7.8 10.8 6.6 12 2.2z'/%3E%3Cpath d='M5.2 15.1l.8 2.8 2.7 1.3-2.7.8-.8 2.8-.8-2.8-2.7-.8 2.7-1.3.8-2.8z'/%3E%3Cpath d='M18.8 15.1l.8 2.8 2.7 1.3-2.7.8-.8 2.8-.8-2.8-2.7-.8 2.7-1.3.8-2.8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 1011;
}

.canifex-header-nav-list > .menu-item-has-children:hover::before,
.canifex-header-nav-list > .menu-item-has-children:focus-within::before {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.canifex-header-nav-list .sub-menu {
	position: absolute;
	top: calc(100% + 1.35rem);
	left: 0;
	min-width: 12rem;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(190, 53, 137, 0.14);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(43, 27, 61, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 1010;
}

.canifex-header-nav-list li:hover > .sub-menu,
.canifex-header-nav-list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.canifex-header-nav-list .sub-menu li {
	margin: 0;
}

.canifex-header-nav-list .sub-menu a {
	display: block;
	padding: 0.625rem 1rem;
	white-space: nowrap;
	color: var(--canifex-header-plum);
	opacity: 1;
	text-shadow: none;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.canifex-header-nav-list .sub-menu a:hover,
.canifex-header-nav-list .sub-menu a:focus {
	background-color: var(--canifex-header-blush);
	color: var(--canifex-header-rose-dark);
	opacity: 1;
	text-shadow: none;
}

.canifex-header-nav-list .menu-item-has-children > a::after {
	content: "▾";
	margin-left: 0.35rem;
	font-size: 18px;
	opacity: 0.85;
}

/* Search */
.canifex-header-search-wrap {
	position: relative;
	flex: 1 1 auto;
	max-width: 320px;
	min-width: 0;
}

.canifex-header-search-form {
	position: relative;
	width: 100%;
}

.canifex-search-input {
	width: 100%;
	padding: 10px 45px 10px 18px;
	border-radius: 25px;
	border: none;
	background-color: rgba(255, 255, 255, 0.95);
	font-size: 13px;
	color: #333;
	outline: none;
}

.canifex-search-btn {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--canifex-header-plum);
	cursor: pointer;
	display: flex;
	align-items: center;
	padding: 0;
}

/* Account + cart */
.canifex-header-utilities {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.canifex-site-header .canifex-account-nav__trigger,
.canifex-site-header .canifex-account-nav__toggle {
	color: #fff;
}

.canifex-site-header .canifex-account-nav__label,
.canifex-site-header .canifex-account-nav__text {
	color: #fff;
}

.canifex-site-header .canifex-account-nav__icon,
.canifex-site-header .canifex-account-nav__chevron {
	fill: currentColor;
	color: #fff;
}

.canifex-site-header .canifex-account-nav__trigger:hover,
.canifex-site-header .canifex-account-nav__trigger:focus,
.canifex-site-header .canifex-account-nav__toggle:hover,
.canifex-site-header .canifex-account-nav__toggle:focus {
	background: #fff;
	color: var(--canifex-header-plum);
}

.canifex-site-header .canifex-account-nav__trigger:hover .canifex-account-nav__label,
.canifex-site-header .canifex-account-nav__trigger:hover .canifex-account-nav__text,
.canifex-site-header .canifex-account-nav__trigger:focus .canifex-account-nav__label,
.canifex-site-header .canifex-account-nav__trigger:focus .canifex-account-nav__text,
.canifex-site-header .canifex-account-nav__trigger:hover .canifex-account-nav__icon,
.canifex-site-header .canifex-account-nav__trigger:focus .canifex-account-nav__icon,
.canifex-site-header .canifex-account-nav__toggle:hover .canifex-account-nav__chevron,
.canifex-site-header .canifex-account-nav__toggle:focus .canifex-account-nav__chevron {
	color: var(--canifex-header-plum);
}

.canifex-site-header .canifex-account-nav__flyout {
	color: var(--canifex-navy, #2B1B3D);
}

.canifex-cart-link {
	color: #fff;
	position: relative;
	display: flex;
	align-items: center;
	text-decoration: none;
}

.canifex-cart-badge {
	position: absolute;
	top: -6px;
	right: -8px;
	background-color: var(--canifex-header-orange);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.canifex-site-header .canifex-mobile-menu-toggle {
	display: none;
	color: #fff;
}

/* Hero slider – split card layout */
.canifex-hero-slider {
	position: relative;
	width: 100%;
	min-height: 430px;
	background:
		radial-gradient(circle at 12% 18%, rgba(168, 85, 247, 0.16) 0%, transparent 42%),
		radial-gradient(circle at 88% 82%, rgba(217, 70, 168, 0.14) 0%, transparent 38%),
		linear-gradient(180deg, #fff7fc 0%, #faf5ff 55%, #f6f0ff 100%);
	overflow: hidden;
	margin: 0;
	border-bottom: 1px solid rgba(190, 53, 137, 0.08);
}

.canifex-hero-slider__inner {
	position: relative;
	width: 100%;
	min-height: 430px;
}

.canifex-hero-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transform: translateX(36px) scale(0.985);
	transition:
		opacity 0.55s ease,
		transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0.55s ease;
	pointer-events: none;
}

.canifex-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0) scale(1);
	pointer-events: auto;
	z-index: 2;
}

.canifex-hero-slide.is-leaving {
	opacity: 0;
	transform: translateX(-28px) scale(0.985);
	z-index: 1;
}

.canifex-hero-slide__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: 2.5rem;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 3.25rem 2.5rem 5.5rem;
}

.canifex-hero-slide__panel {
	position: relative;
	z-index: 2;
	padding: 2rem 2.25rem;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow:
		0 18px 50px rgba(43, 27, 61, 0.08),
		0 2px 0 rgba(255, 255, 255, 0.65) inset;
	backdrop-filter: blur(14px);
}

.canifex-hero-slide__badge {
	display: inline-flex;
	align-items: center;
	margin-bottom: 1rem;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(168, 85, 247, 0.14), rgba(217, 70, 168, 0.14));
	border: 1px solid rgba(217, 70, 168, 0.18);
	color: var(--canifex-header-rose-dark);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.canifex-hero-slide__title {
	margin: 0 0 0.85rem;
	color: var(--canifex-header-plum);
	font-size: clamp(2rem, 4vw, 3.35rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.canifex-hero-slide__title-accent {
	display: inline-block;
	background: linear-gradient(90deg, var(--canifex-header-rose) 0%, var(--canifex-header-purple) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.canifex-hero-slide__subtitle {
	max-width: 34rem;
	margin: 0 0 1.5rem;
	color: rgba(43, 27, 61, 0.72);
	font-size: 1rem;
	line-height: 1.6;
}

.canifex-hero-slide__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.canifex-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.canifex-hero-btn--primary {
	background: linear-gradient(135deg, var(--canifex-header-rose) 0%, var(--canifex-header-purple) 100%);
	box-shadow: 0 10px 24px rgba(168, 85, 247, 0.28);
}

.canifex-hero-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(168, 85, 247, 0.34);
}

.canifex-hero-btn--secondary {
	background: #fff;
	color: var(--canifex-header-plum);
	border: 1px solid rgba(43, 27, 61, 0.12);
}

.canifex-hero-btn--secondary:hover {
	transform: translateY(-2px);
	background: var(--canifex-header-blush);
	color: var(--canifex-header-rose-dark);
}

.canifex-hero-slide__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
}

.canifex-hero-slide__image-frame {
	position: relative;
	z-index: 2;
	width: min(100%, 520px);
	aspect-ratio: 4 / 3;
	border-radius: 28px;
	overflow: hidden;
	transform: rotate(2deg);
	box-shadow:
		0 28px 60px rgba(43, 27, 61, 0.16),
		0 0 0 1px rgba(255, 255, 255, 0.65);
}

.canifex-hero-slide__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.canifex-hero-slide__glow {
	position: absolute;
	inset: 12% 8%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(217, 70, 168, 0.22) 0%, rgba(168, 85, 247, 0.08) 48%, transparent 72%);
	filter: blur(10px);
	z-index: 1;
}

.canifex-hero-slider__toolbar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 1.25rem;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 2.5rem 1.35rem;
}

.canifex-hero-slider__counter {
	display: inline-flex;
	align-items: baseline;
	gap: 0.2rem;
	color: var(--canifex-header-plum);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.canifex-hero-slider__counter-current {
	font-size: 1.125rem;
	color: var(--canifex-header-rose-dark);
}

.canifex-hero-slider__counter-sep,
.canifex-hero-slider__counter-total {
	opacity: 0.55;
}

.canifex-hero-slider__progress {
	height: 4px;
	border-radius: 999px;
	background: rgba(43, 27, 61, 0.08);
	overflow: hidden;
}

.canifex-hero-slider__progress-bar {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--canifex-header-rose), var(--canifex-header-purple));
	transition: width 0.15s linear;
}

.canifex-hero-slider__controls {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(43, 27, 61, 0.08);
	backdrop-filter: blur(8px);
}

.canifex-hero-slider__pause {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--canifex-header-plum);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.canifex-hero-slider__pause:hover {
	background: rgba(217, 70, 168, 0.1);
	transform: scale(1.05);
}

.canifex-hero-slider__pause-icon {
	width: 14px;
	height: 14px;
}

.canifex-hero-slider__pagination {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.canifex-hero-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(43, 27, 61, 0.18);
	cursor: pointer;
	transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.canifex-hero-slider__dot.is-complete {
	background: rgba(217, 70, 168, 0.45);
}

.canifex-hero-slider__dot.is-active {
	background: linear-gradient(135deg, var(--canifex-header-rose), var(--canifex-header-purple));
	box-shadow: 0 0 0 4px rgba(217, 70, 168, 0.14);
	transform: scale(1.15);
}

.canifex-hero-slider__dot:hover {
	background: rgba(168, 85, 247, 0.55);
}

.canifex-hero-slider__nav {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
}

.canifex-hero-slider__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(43, 27, 61, 0.1);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	color: var(--canifex-header-plum);
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(43, 27, 61, 0.08);
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.canifex-hero-slider__arrow:hover {
	transform: translateY(-2px);
	background: linear-gradient(135deg, var(--canifex-header-rose), var(--canifex-header-purple));
	color: #fff;
	border-color: transparent;
}

@media (max-width: 1024px) {
	.canifex-site-header__container {
		flex-wrap: wrap;
	}

	.canifex-header-nav-links {
		order: 3;
		width: 100%;
	}

	.canifex-header-nav-list {
		justify-content: center;
		margin-top: 5px;
	}

	.canifex-hero-slider,
	.canifex-hero-slider__inner {
		min-height: auto;
	}

	.canifex-hero-slide__layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 2rem 1.25rem 6.5rem;
	}

	.canifex-hero-slide__panel {
		padding: 1.5rem;
	}

	.canifex-hero-slide__visual {
		order: -1;
		min-height: 240px;
	}

	.canifex-hero-slide__image-frame {
		width: min(100%, 420px);
		transform: none;
	}

	.canifex-hero-slider__toolbar {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 0.85rem;
		padding: 0 1.25rem 1rem;
	}

	.canifex-hero-slider__progress {
		width: 100%;
		order: 3;
	}

	.canifex-hero-slider__controls {
		order: 2;
	}

	.canifex-hero-slider__counter {
		order: 1;
	}

	.canifex-hero-slider__nav {
		order: 4;
	}
}

@media (max-width: 781px) {
	.canifex-site-header .canifex-mobile-menu-toggle {
		display: inline-flex;
	}

	.canifex-header-nav-links {
		display: none;
	}

	.canifex-header-search-wrap {
		order: 4;
		width: 100%;
		max-width: none;
	}

	.canifex-header-utilities {
		margin-left: auto;
	}

	.canifex-site-header .canifex-account-nav__label:not(.canifex-account-nav__label--mobile) {
		display: none;
	}
}
