/*
 * Header Styles - One of One Collectables
 * Clean, focused header styling
 */

/* === MAIN HEADER === */
.site-header {
	background: #ffffff;
	border-bottom: 1px solid #e9ecef;
	position: relative;
	z-index: 1000;
	margin-bottom: 5px !important;
}

/* Override parent theme specific selectors */
.home.blog .site-header,
.home.page:not(.page-template-template-homepage) .site-header,
.home.post-type-archive-product .site-header,
.no-wc-breadcrumb .site-header {
	margin-bottom: 5px !important;
}

.site-header-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: white;
}

/* === BRANDING === */
.site-branding {
	display: flex;
	align-items: center;
}

.site-branding img {
	height: 50px;
	width: 50px;
	border-radius: 50%;
	object-fit: cover;
}

/* === HEADER ACTIONS === */
.header-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header-shop-btn,
.todays-drop-btn {
	color: white;
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
	white-space: nowrap;
	display: inline-block;
	transition: all 0.3s ease;
}

.header-shop-btn {
	background: #2c3e50;
}

.header-shop-btn:hover {
	background: #1a2b3a;
}

.todays-drop-btn {
	background: #e74c3c;
}

.todays-drop-btn:hover {
	background: #c0392b;
}

.header-account-link,
.header-cart-link {
	font-size: 18px;
	color: #2c3e50;
	text-decoration: none;
	position: relative;
	transition: color 0.3s ease;
}

.header-account-link:hover,
.header-cart-link:hover {
	color: #0d1b2a;
}

.cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #e74c3c;
	color: white;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	font-size: 0.7rem;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: cartBounce 0.6s ease-in-out;
}

@keyframes cartBounce {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
	}
}

/* Cart bounce animation class */
.cart-count.cart-bounce {
	animation: cartBounce 0.6s ease-in-out;
}

/* Cart notification styles */
.cart-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #28a745;
	color: white;
	padding: 10px 20px;
	border-radius: 4px;
	z-index: 9999;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* === CART DROPDOWN WIDGET === */
.custom-cart-container {
	position: relative;
}

.custom-cart-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	background: white;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	padding: 20px;
	min-width: 320px;
	max-width: 400px;
	z-index: 9999;
	display: none;
}

.custom-cart-dropdown.show {
	display: block;
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* === FOCUS STATES === */
.header-shop-btn:focus,
.todays-drop-btn:focus,
.header-account-link:focus,
.header-cart-link:focus {
	outline: 2px solid #0d1b2a;
	outline-offset: 2px;
}

.header-shop-btn:focus,
.todays-drop-btn:focus {
	color: white !important;
	outline-color: #0d1b2a;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
	.site-header-container {
		padding: 15px 20px;
		min-height: 80px;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.site-branding {
		display: flex;
		align-items: center;
	}

	.site-branding img {
		height: 50px;
		width: 50px;
		border-radius: 50%;
		object-fit: cover;
	}

	.header-right {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.header-account-link,
	.header-cart-link {
		font-size: 18px;
		color: #2c3e50;
		text-decoration: none;
	}

	.header-shop-btn,
	.todays-drop-btn {
		padding: 8px 12px;
		font-size: 0.8rem;
		line-height: 1;
		height: 36px;
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
	}
}
