/**
 * Starter Adult Shop — Header & Footer Overrides
 * Dark, mysterious, tech-inspired header
 */

/* ===== Header ===== */
.site-header {
	background: linear-gradient(135deg, #1a1225 0%, #2d2235 60%, #1e1530 100%);
	padding: 0 2rem;
	position: sticky;
	top: 0;
	z-index: 9990;
	border-bottom: 1px solid rgba(232, 98, 138, .15);
	box-shadow: 0 2px 20px rgba(0, 0, 0, .4), 0 0 40px rgba(232, 98, 138, .05);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	min-height: 64px;
	align-items: center;
	transition: background .3s ease, box-shadow .3s ease;
}

/* Subtle animated glow line at bottom */
.site-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(232, 98, 138, .0) 10%,
		rgba(232, 98, 138, .6) 30%,
		rgba(212, 160, 185, .8) 50%,
		rgba(232, 98, 138, .6) 70%,
		rgba(232, 98, 138, .0) 90%,
		transparent 100%
	);
	animation: headerGlow 4s ease-in-out infinite alternate;
}

@keyframes headerGlow {
	0%   { opacity: .4; filter: blur(0px); }
	100% { opacity: 1;  filter: blur(1px); }
}

/* ===== Header Inner (dynamic-header) ===== */
.site-header .header-inner {
	max-width: 1440px;
	margin: 0 auto;
	width: 100%;
	padding: .5rem 0;
	align-items: center;
}

/* ===== Site Title / Logo ===== */
.site-header .site-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: .03em;
}

.site-header .site-title a {
	color: #fff;
	text-decoration: none;
	position: relative;
	transition: color .3s ease;
}

.site-header .site-title a:hover {
	color: #f48ba6;
}

/* Glow effect on logo text */
.site-header .site-title a::after {
	content: attr(title);
	position: absolute;
	left: 0;
	top: 0;
	color: transparent;
	filter: blur(8px);
	background: linear-gradient(90deg, #e8628a, #d4a0b9);
	-webkit-background-clip: text;
	background-clip: text;
	opacity: 0;
	transition: opacity .4s ease;
	pointer-events: none;
}

.site-header .site-title a:hover::after {
	opacity: .5;
}

/* Custom logo image */
.site-header .custom-logo-link img {
	max-height: 44px;
	width: auto;
	filter: drop-shadow(0 0 6px rgba(232, 98, 138, .2));
	transition: filter .3s ease;
}

.site-header .custom-logo-link:hover img {
	filter: drop-shadow(0 0 12px rgba(232, 98, 138, .4));
}

/* ===== Site Description / Tagline ===== */
.site-header .site-description {
	color: rgba(212, 160, 185, .6);
	font-size: .7rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* ===== Navigation ===== */
.site-header .site-navigation ul.menu > li > a {
	color: rgba(255, 255, 255, .8);
	font-family: 'Inter', sans-serif;
	font-size: .85rem;
	font-weight: 500;
	letter-spacing: .03em;
	padding: .6rem 1rem;
	position: relative;
	transition: color .3s ease;
}

.site-header .site-navigation ul.menu > li > a:hover,
.site-header .site-navigation ul.menu > li.current-menu-item > a {
	color: #f48ba6;
}

/* Underline hover effect */
.site-header .site-navigation ul.menu > li > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #e8628a, #d4a0b9);
	border-radius: 1px;
	transition: width .3s ease, left .3s ease;
	box-shadow: 0 0 6px rgba(232, 98, 138, .4);
}

.site-header .site-navigation ul.menu > li > a:hover::after,
.site-header .site-navigation ul.menu > li.current-menu-item > a::after {
	width: 70%;
	left: 15%;
}

/* Dropdown submenu */
.site-header .site-navigation ul.menu li ul {
	background: rgba(26, 18, 37, .95);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(232, 98, 138, .12);
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
	padding: .5rem 0;
	margin-top: .25rem;
}

.site-header .site-navigation ul.menu li ul li {
	border-bottom-color: rgba(255, 255, 255, .06);
}

.site-header .site-navigation ul.menu li ul li a {
	color: rgba(255, 255, 255, .7);
	font-size: .8rem;
	padding: .5rem 1.25rem;
	transition: color .2s ease, background .2s ease;
}

.site-header .site-navigation ul.menu li ul li a:hover {
	color: #f48ba6;
	background: rgba(232, 98, 138, .08);
}

/* Dropdown caret color */
.site-header .site-navigation ul.menu li.menu-item-has-children::after {
	color: rgba(212, 160, 185, .5);
}

/* ===== Mobile Toggle ===== */
.site-header .site-navigation-toggle {
	background: rgba(232, 98, 138, .12);
	border: 1px solid rgba(232, 98, 138, .2);
	border-radius: 6px;
	color: #f48ba6;
	padding: .5rem;
}

.site-header .site-navigation-toggle:hover {
	background: rgba(232, 98, 138, .2);
}

.site-header .site-navigation-toggle-icon::before,
.site-header .site-navigation-toggle-icon::after {
	background-color: #f48ba6;
}

/* Mobile dropdown */
.site-header .site-navigation-dropdown {
	background: #1a1225;
	z-index: 9999;
}
.site-header .site-navigation-dropdown ul.menu {
	background: #1a1225;
}

.site-header .site-navigation-dropdown ul.menu li a {
	background: transparent;
	color: rgba(255, 255, 255, .8);
	border-bottom: 1px solid rgba(232, 98, 138, .08);
}

.site-header .site-navigation-dropdown ul.menu li a:hover {
	color: #f48ba6;
	background: rgba(232, 98, 138, .06);
}

.site-header .site-navigation-dropdown ul.menu li.current-menu-item a {
	background: rgba(232, 98, 138, .1);
	color: #f48ba6;
}

/* ===== WooCommerce Cart Icon (if present) ===== */
.site-header .cart-icon,
.site-header .woocommerce-mini-cart-count {
	color: #f48ba6;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.site-header {
		padding: 0 1rem;
	}
	.site-header .site-title {
		font-size: 1.2rem;
	}
}

@media (max-width: 480px) {
	.site-header .site-title {
		font-size: 1rem;
	}
}

/* ===== Header Actions (Search, Account, Cart) ===== */
.sas-header-actions {
	display: flex;
	align-items: center;
	gap: .25rem;
	margin-left: auto;
	flex-shrink: 0;
}

/* Make header a flex row */
.site-header,
.site-header .header-inner {
	display: flex;
	align-items: center;
}
.site-header .site-navigation {
	flex: 1;
}

.sas-header-action {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: transparent;
	border: 1px solid transparent;
	color: rgba(255, 255, 255, .7);
	cursor: pointer;
	transition: all .3s ease;
	text-decoration: none;
	position: relative;
	padding: 0;
}
.sas-header-action svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
.sas-header-action:hover {
	color: #f48ba6;
	background: rgba(232, 98, 138, .1);
	border-color: rgba(232, 98, 138, .2);
}

/* Header avatar (logged-in user) */
.sas-header-avatar {
	padding: 0;
	overflow: hidden;
	border: 2px solid rgba(232, 98, 138, .25);
}
.sas-header-avatar:hover {
	border-color: rgba(232, 98, 138, .5);
	background: transparent;
}
.sas-header-avatar__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

/* Cart badge */
.sas-header-cart {
	position: relative;
}
.sas-header-cart__count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	background: #e8628a;
	color: #fff;
	font-size: .65rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
	box-shadow: 0 0 8px rgba(232, 98, 138, .4);
}

/* Wishlist header icon */
.sas-header-wishlist {
	position: relative;
}
.sas-header-wishlist__count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	background: #e8628a;
	color: #fff;
	font-size: .65rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
	box-shadow: 0 0 8px rgba(232, 98, 138, .4);
}

/* ===== Search Overlay ===== */
.sas-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(10, 6, 15, .92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 20vh;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s ease;
}
.sas-search-overlay.active {
	opacity: 1;
	visibility: visible;
}
.sas-search-overlay__inner {
	width: 90%;
	max-width: 640px;
	position: relative;
}
.sas-search-form {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(232, 98, 138, .2);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color .3s ease;
}
.sas-search-form:focus-within {
	border-color: rgba(232, 98, 138, .5);
	box-shadow: 0 0 20px rgba(232, 98, 138, .1);
}
.sas-search-form input[type="search"] {
	flex: 1;
	background: transparent;
	border: none;
	padding: 1.1rem 1.5rem;
	color: #fff;
	font-size: 1.1rem;
	font-family: 'Inter', sans-serif;
	outline: none;
}
.sas-search-form input[type="search"]::placeholder {
	color: rgba(255, 255, 255, .3);
}
/* Remove default search clear button */
.sas-search-form input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}
.sas-search-form button[type="submit"] {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, .5);
	padding: 1rem 1.25rem;
	cursor: pointer;
	transition: color .3s ease;
	display: flex;
}
.sas-search-form button[type="submit"]:hover {
	color: #f48ba6;
}
.sas-search-overlay__close {
	position: absolute;
	top: -3rem;
	right: 0;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, .4);
	cursor: pointer;
	transition: color .3s ease;
	padding: .25rem;
}
.sas-search-overlay__close:hover {
	color: #f48ba6;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
	.sas-header-actions {
		gap: .1rem;
	}
	.sas-header-action {
		width: 36px;
		height: 36px;
	}
	.sas-header-action svg {
		width: 18px;
		height: 18px;
	}
	.sas-search-overlay {
		padding-top: 12vh;
	}
	.sas-search-form input[type="search"] {
		font-size: 1rem;
		padding: .9rem 1.25rem;
	}
}

/* ===== Cart Drawer ===== */
.sas-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 99998;
	pointer-events: none;
	visibility: hidden;
}
.sas-cart-drawer.active {
	pointer-events: auto;
	visibility: visible;
}

/* Backdrop */
.sas-cart-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 6, 15, .6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .35s ease;
}
.sas-cart-drawer.active .sas-cart-drawer__backdrop {
	opacity: 1;
}

/* Panel */
.sas-cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 400px;
	max-width: 90vw;
	height: 100%;
	background: linear-gradient(180deg, #1e1530 0%, #1a1225 100%);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .35s cubic-bezier(.4, 0, .2, 1);
	box-shadow: -8px 0 40px rgba(0, 0, 0, .5);
}
.sas-cart-drawer.active .sas-cart-drawer__panel {
	transform: translateX(0);
}

/* Header */
.sas-cart-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid rgba(232, 98, 138, .12);
}
.sas-cart-drawer__title {
	margin: 0;
	font-family: 'Playfair Display', serif;
	font-size: 1.1rem;
	font-weight: 600;
	color: #fff;
	display: flex;
	align-items: center;
	gap: .5rem;
}
.sas-cart-drawer__title svg {
	color: #e8628a;
}
.sas-cart-drawer__item-count {
	font-family: 'Inter', sans-serif;
	font-size: .8rem;
	font-weight: 400;
	color: rgba(255, 255, 255, .4);
}
.sas-cart-drawer__close {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, .5);
	cursor: pointer;
	padding: .25rem;
	transition: color .3s ease;
	display: flex;
}
.sas-cart-drawer__close:hover {
	color: #f48ba6;
}

/* Body (scrollable) */
.sas-cart-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 1.5rem;
}
.sas-cart-drawer__body::-webkit-scrollbar {
	width: 4px;
}
.sas-cart-drawer__body::-webkit-scrollbar-track {
	background: transparent;
}
.sas-cart-drawer__body::-webkit-scrollbar-thumb {
	background: rgba(232, 98, 138, .2);
	border-radius: 2px;
}

/* Empty state */
.sas-cart-drawer__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
	color: rgba(255, 255, 255, .3);
	text-align: center;
}
.sas-cart-drawer__empty svg {
	margin-bottom: 1rem;
	opacity: .3;
}
.sas-cart-drawer__empty p {
	margin: 0;
	font-size: .9rem;
}

/* Cart item */
.sas-cart-item {
	display: flex;
	align-items: flex-start;
	gap: .85rem;
	padding: .85rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	position: relative;
}
.sas-cart-item:last-child {
	border-bottom: none;
}
.sas-cart-item__img {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	display: block;
}
.sas-cart-item__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sas-cart-item__info {
	flex: 1;
	min-width: 0;
}
.sas-cart-item__name {
	display: block;
	font-size: .8rem;
	font-weight: 500;
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
	line-height: 1.35;
	margin-bottom: .25rem;
	transition: color .3s ease;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sas-cart-item__name:hover {
	color: #f48ba6;
}
.sas-cart-item__price {
	font-size: .8rem;
	color: #e8628a;
	font-weight: 600;
	margin-bottom: .4rem;
}
.sas-cart-item__price del {
	color: rgba(255, 255, 255, .3);
	font-weight: 400;
}
.sas-cart-item__price ins {
	text-decoration: none;
}

/* Quantity controls */
.sas-cart-item__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 6px;
	overflow: hidden;
}
.sas-cart-item__qty-btn {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, .6);
	width: 28px;
	height: 28px;
	font-size: .9rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, color .2s ease;
	padding: 0;
}
.sas-cart-item__qty-btn:hover {
	background: rgba(232, 98, 138, .15);
	color: #f48ba6;
}
.sas-cart-item__qty-val {
	width: 30px;
	text-align: center;
	font-size: .75rem;
	font-weight: 600;
	color: #fff;
	border-left: 1px solid rgba(255, 255, 255, .1);
	border-right: 1px solid rgba(255, 255, 255, .1);
	line-height: 28px;
}

/* Remove button */
.sas-cart-item__remove {
	position: absolute;
	top: .85rem;
	right: 0;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, .25);
	cursor: pointer;
	padding: .15rem;
	transition: color .3s ease;
	display: flex;
}
.sas-cart-item__remove:hover {
	color: #e8628a;
}

/* Footer */
.sas-cart-drawer__footer {
	padding: 1.25rem 1.5rem;
	border-top: 1px solid rgba(232, 98, 138, .12);
}
.sas-cart-drawer__totals {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	font-size: .9rem;
}
.sas-cart-drawer__totals span {
	color: rgba(255, 255, 255, .6);
}
.sas-cart-drawer__totals strong {
	color: #fff;
	font-size: 1.05rem;
}
.sas-cart-drawer__actions {
	display: flex;
	gap: .6rem;
}
.sas-cart-drawer__btn {
	flex: 1;
	text-align: center;
	font-size: .75rem !important;
}
.sas-cart-drawer__footer .btn--outline {
	color: rgba(255, 255, 255, .7);
	border-color: rgba(255, 255, 255, .15);
}
.sas-cart-drawer__footer .btn--outline:hover {
	border-color: rgba(255, 255, 255, .3);
	background: rgba(255, 255, 255, .05);
}
