/*
 * Header Variant: Default
 * Shared/default header styling extracted from main.css.
 */

/* Keep global full-width spacing for content, but let header full-width be truly edge-to-edge. */
.site-header .header-inner.full-width,
.site-header .header-top-inner.full-width,
.site-header .header-main-inner.full-width,
.site-header .header-bottom-inner.full-width {
	padding-left: var(--shopgen-preset-edge-padding-x, 0px);
	padding-right: var(--shopgen-preset-edge-padding-x, 0px);
}

/* Keep unified preset headers truly edge-to-edge in full-width mode. */
.site-header .header-inner.full-width {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* ============================================
   Header
   ============================================ */
.site-header {
	background-color: #ffffff;
	border-bottom: 1px solid #e0e0e0;
	padding: 0rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
}

.header-content {
	display: flex;
	align-items: center;
	gap: 2rem;
	width: 100%;
}

.site-logo img,
.custom-logo {
	max-height: 60px;
	width: auto;
}

.site-branding {
	flex: 1;
}

.site-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
}

.site-title a {
	color: var(--shopgen-heading-color, #111111);
	text-decoration: none;
}

.site-description {
	font-size: 14px;
	color: #666;
	margin: 0;
}

.main-navigation {
	flex: 1;
	position: relative;
}

.main-navigation > ul {
	list-style: none;
	display: flex;
	gap: 2rem;
	align-items: center;
	flex-wrap: wrap;
}

.main-navigation li {
	position: relative;
	list-style: none;
}

.main-navigation .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.submenu-toggle {
	display: none;
}

.main-navigation a {
	color: var(--shopgen-text-color, #333333);
	text-decoration: none;
	font-weight: 500;
	padding: 0.5rem 0;
	display: block;
	line-height: 1.3;
}

.main-navigation a:hover {
	color: var(--shopgen-primary-color, #1a73e8);
	text-decoration: none;
}

.menu-toggle {
	display: none;
	background: var(--shopgen-preset-hamburger-bg, #ffffff);
	border: 1px solid var(--shopgen-preset-hamburger-border, #cfd4db);
	border-radius: 10px;
	cursor: pointer;
	padding: 0.6rem;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
	border-color: var(--shopgen-preset-hamburger-border, #cfd4db);
	box-shadow: none;
}

.menu-toggle-icon {
	display: block;
	width: 22px;
	height: 2px;
	background-color: var(--shopgen-preset-hamburger-icon-color, var(--shopgen-text-color, #333333));
	position: relative;
	transition: background-color 0.2s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
	content: '';
	position: absolute;
	width: 24px;
	height: 2px;
	background-color: var(--shopgen-preset-hamburger-icon-color, var(--shopgen-text-color, #333333));
	left: 0;
}

.menu-toggle-icon::before {
	top: -8px;
}

.menu-toggle-icon::after {
	bottom: -8px;
}

.main-navigation.toggled .menu-toggle-icon {
	background-color: transparent !important;
}

.main-navigation.toggled .menu-toggle-icon::before {
	top: 0;
	transform: rotate(45deg);
}

.main-navigation.toggled .menu-toggle-icon::after {
	bottom: 0;
	transform: rotate(-45deg);
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
	transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

@media (min-width: 769px) {
	.main-navigation .menu-item-has-children > a {
		padding-right: 1.1rem;
	}

	.main-navigation .menu-item-has-children > a::after {
		content: '';
		position: absolute;
		right: 0;
		top: 50%;
		width: 7px;
		height: 7px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-60%) rotate(45deg);
		opacity: 0.7;
	}

	.main-navigation .sub-menu {
		position: absolute;
		left: 0;
		top: 100%;
		min-width: 220px;
		background: #ffffff;
		border: 1px solid rgba(0, 0, 0, 0.08);
		border-radius: 10px;
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
		padding: 0.35rem 0;
		z-index: 130;
	}

	.main-navigation .sub-menu li {
		width: 100%;
	}

	.main-navigation .sub-menu a {
		padding: 0.65rem 1rem;
		white-space: nowrap;
	}

	.main-navigation .sub-menu .sub-menu {
		left: calc(100% - 2px);
		top: -0.35rem;
	}

	.main-navigation li:hover > .sub-menu,
	.main-navigation li:focus-within > .sub-menu {
		display: block;
	}
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.header-search-shortcode {
	display: flex;
	align-items: center;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	flex: 1;
	z-index: 333;
}

.header-actions .header-search-shortcode {
	max-width: 100%;
}

.header-search-shortcode form {
	width: 100% !important;
	max-width: 100% !important;
}

.header-search-shortcode > * {
	width: 100% !important;
	max-width: 100% !important;
}

.header-search-shortcode input[type="search"],
.header-search-shortcode input[type="text"] {
	width: 100% !important;
}

.search-toggle,
.account-icon,
.wishlist-icon,
a.cart-icon,
button.cart-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: #ffffff;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-toggle {
	cursor: pointer;
	padding: 0;
}

.search-toggle-mobile {
	display: none;
}

.search-toggle-mobile .icon-close {
	display: none;
}

.search-toggle:hover,
.account-icon:hover,
.wishlist-icon:hover,
a.cart-icon:hover,
button.cart-icon:hover {
	transform: translateY(-1px);
	border-color: var(--shopgen-primary-color, #1a73e8);
	box-shadow: 0 8px 18px rgba(0,0,0,0.1);
	text-decoration: none;
}

.header-cart-slot {
	min-width: 140px;
	margin-left: 1rem;
	padding-left: 1rem;
	border-left: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.site-header .header-icons-section .header-cart-slot {
	margin-left: 1rem;
	padding-left: 1rem;
	border-left: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 921px) {
	.menu-toggle {
		display: inline-flex;
		align-self: flex-end;
		border-radius: 0;
	}

	.main-navigation {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.main-navigation > ul {
		display: none;
		position: static;
		background-color: #ffffff;
		flex-direction: column;
		padding: 0.4rem 0.85rem;
		margin-top: 0.65rem;
		box-shadow: 0 12px 28px rgba(0,0,0,0.12);
		border: 1px solid rgba(0,0,0,0.08);
		border-radius: 14px;
		gap: 0;
		z-index: 30;
	}

	.main-navigation > ul > li + li {
		border-top: 1px solid rgba(0, 0, 0, 0.08);
	}

	.main-navigation a {
		padding: 0.75rem 0.25rem;
	}

	.main-navigation.toggled > ul {
		display: flex;
	}

	.main-navigation .menu-item-has-children > a {
		padding-right: 2.25rem;
	}

	.main-navigation .submenu-toggle {
		display: inline-flex;
		position: absolute;
		top: 0.52rem;
		right: 0;
		width: 28px;
		height: 28px;
		align-items: center;
		justify-content: center;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
		color: var(--shopgen-text-color, #333333);
	}

	.main-navigation .submenu-toggle::before,
	.main-navigation .submenu-toggle::after {
		content: '';
		position: absolute;
		width: 12px;
		height: 2px;
		background: currentColor;
		border-radius: 2px;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.main-navigation .submenu-toggle::after {
		transform: rotate(90deg);
	}

	.main-navigation .menu-item-has-children.submenu-open > .submenu-toggle::after {
		opacity: 0;
		transform: rotate(90deg) scaleX(0.2);
	}

	.main-navigation .menu-item-has-children > .sub-menu {
		display: none;
		position: static;
		background: transparent;
		border: 0;
		box-shadow: none;
		margin: 0.2rem 0 0.55rem;
		padding: 0 0 0 0.7rem;
		border-left: 1px solid rgba(0, 0, 0, 0.1);
		width: 100%;
		min-width: 0;
	}

	.main-navigation .menu-item-has-children.submenu-open > .sub-menu {
		display: block;
	}

	.main-navigation .sub-menu a {
		padding: 0.6rem 0.25rem;
	}

	.sg-header-main {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 1.5rem;
		align-items: center;
	}

	.sg-header-main .sg-header-nav-main {
		display: block;
		width: 100%;
	}

	.sg-header-main .sg-header-actions {
		justify-self: end;
		gap: 0.6rem;
	}

	.sg-header-main .sg-header-call-text {
		display: none;
	}

	.sg-header-main .sg-header-search-slot {
		display: none;
	}

	.sg-header-navband .main-navigation > ul {
		display: none;
	}

	.sg-header-navband .main-navigation.toggled > ul {
		display: flex;
	}
}

/* Unified Preset Header */
.site-header .sg-header-shell {
	width: 100%;
}

.site-header .sg-header-topbar {
	padding: 0.5rem 0.9rem;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.site-header .sg-header-topbar-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 0.75rem;
}

.site-header .sg-header-topbar-inner.is-centered {
	grid-template-columns: 1fr;
}

.site-header .sg-header-topbar-left,
.site-header .sg-header-topbar-right {
	font-size: 12px;
	line-height: 1.2;
	text-transform: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-header .sg-header-topbar-right {
	text-align: right;
}

.site-header .sg-header-topbar-text {
	text-align: center;
	text-transform: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
}

.site-header .sg-header-marquee-track {
	display: inline-flex;
	align-items: center;
	gap: 2rem;
	min-width: max-content;
	animation: shopgenHeaderMarquee 16s linear infinite;
}

.site-header .sg-header-marquee-item {
	display: inline-block;
	white-space: nowrap;
}

@keyframes shopgenHeaderMarquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header .sg-header-marquee-track {
		animation: none;
	}
}

.site-header .sg-device-none {
	display: none !important;
}

@media (max-width: 767px) {
	.site-header .sg-device-desktop-only,
	.site-header .sg-device-tablet-only,
	.site-header .sg-device-desktop-tablet {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.site-header .sg-device-desktop-only,
	.site-header .sg-device-mobile-only,
	.site-header .sg-device-desktop-mobile {
		display: none !important;
	}
}

@media (min-width: 1025px) {
	.site-header .sg-device-tablet-only,
	.site-header .sg-device-mobile-only,
	.site-header .sg-device-tablet-mobile {
		display: none !important;
	}
}

.site-header .sg-flexile-topbar-left {
	display: inline-flex;
	align-items: center;
	gap: 1.1rem;
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
}

.site-header .sg-flexile-top-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.site-header .sg-flexile-top-icon {
	font-size: 12px;
	line-height: 1;
	opacity: 0.95;
}

.site-header .sg-flexile-topbar-right-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.site-header .sg-flexile-top-location {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: inherit;
	text-decoration: none;
}

.site-header .sg-flexile-socials {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.site-header .sg-flexile-socials a {
	color: inherit;
	text-decoration: none;
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	opacity: 0.95;
}

.site-header .sg-flexile-socials a:hover,
.site-header .sg-flexile-top-location:hover {
	opacity: 1;
	text-decoration: none;
}

/* Flexile-like visual treatment when Flexile shortcodes are active. */
.site-header .sg-header-shell.sg-flexile-layout .sg-header-main .main-navigation a {
	font-weight: 500;
	letter-spacing: 0.01em;
}

.site-header .sg-header-shell.sg-flexile-layout .sg-header-actions .account-icon,
.site-header .sg-header-shell.sg-flexile-layout .sg-header-actions .wishlist-icon,
.site-header .sg-header-shell.sg-flexile-layout .sg-header-actions .search-toggle {
	width: auto;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transform: none;
	line-height: 1;
}

.site-header .sg-header-shell.sg-flexile-layout .sg-header-actions .account-icon:hover,
.site-header .sg-header-shell.sg-flexile-layout .sg-header-actions .wishlist-icon:hover,
.site-header .sg-header-shell.sg-flexile-layout .sg-header-actions .search-toggle:hover {
	border: 0;
	box-shadow: none;
	transform: none;
}

.site-header .sg-header-shell.sg-flexile-layout .sg-header-actions .account-icon svg,
.site-header .sg-header-shell.sg-flexile-layout .sg-header-actions .wishlist-icon svg {
	width: 28px;
	height: 28px;
	stroke-width: 1.7;
}

.site-header .header-cart-slot .cart-icon {
	position: relative;
}

.site-header .header-cart-slot .cart-count {
	position: absolute;
	top: -4px;
	right: -5px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #ff7a00;
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.site-header .sg-header-main {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 1.5rem;
	align-items: center;
	padding: var(--shopgen-preset-header-padding-y, 16px) 0;
}

.site-header .sg-header-logo,
.site-header .sg-header-nav {
	min-width: 0;
}

.site-header .sg-header-nav-main .main-navigation > ul {
	justify-content: center;
	gap: var(--shopgen-preset-menu-gap, 24px);
}

.site-header .sg-header-nav-main .main-navigation a,
.site-header .sg-header-navband .main-navigation a {
	font-size: var(--shopgen-preset-nav-font-size, 16px);
	font-weight: 600;
	text-decoration: none;
}

.site-header .sg-header-actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	white-space: nowrap;
}

.site-header .sg-header-actions-shortcode {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.site-header .sg-header-bottom-strip {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	background: #efefef;
	padding: 0.85rem 0;
}

.site-header .sg-header-call {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-weight: 700;
	font-size: var(--shopgen-preset-call-font-size, 16px);
	color: var(--shopgen-preset-call-color, #0f172a);
	text-decoration: none;
}

.site-header .sg-header-call-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--shopgen-preset-icon-box-size, 34px);
	height: var(--shopgen-preset-icon-box-size, 34px);
	border-radius: 999px;
	color: var(--shopgen-preset-call-color, #0f172a);
	background: var(--shopgen-preset-icon-bg-color, #f8fafc);
	border: 1px solid rgba(15, 23, 42, 0.1);
}

.site-header .sg-header-call-icon .sg-header-call-icon-svg {
	width: var(--shopgen-preset-icon-size, 20px);
	height: var(--shopgen-preset-icon-size, 20px);
}

.site-header .sg-header-quote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: var(--shopgen-preset-cta-padding-y, 10px) var(--shopgen-preset-cta-padding-x, 20px);
	border-radius: var(--shopgen-preset-cta-radius, 8px);
	background: var(--shopgen-preset-cta-bg-color, #e11d48);
	color: var(--shopgen-preset-cta-text-color, #ffffff);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.site-header .sg-header-quote:hover {
	background: var(--shopgen-preset-cta-hover-bg-color, #be123c);
	color: var(--shopgen-preset-cta-text-color, #ffffff);
	text-decoration: none;
}

.site-header .sg-header-search-slot {
	min-width: 240px;
	max-width: 320px;
}

.site-header .sg-header-search-slot .header-search-shortcode {
	max-width: 100%;
	min-width: 0;
}

.site-header .sg-header-navband {
	background: var(--shopgen-preset-nav-band-bg, #0b3b77);
	padding: 0.35rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header .sg-header-navband .main-navigation > ul {
	justify-content: center;
	gap: 1.25rem;
}

.site-header .sg-header-navband .main-navigation a {
	color: var(--shopgen-preset-nav-band-text, #ffffff);
	font-size: 13px;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.03em;
}

@media (max-width: 921px) {
	.site-header .sg-header-main {
		grid-template-columns: minmax(0, 1fr) auto auto;
		grid-template-areas: 'logo actions nav';
		gap: 0.8rem 1rem;
	}

	.site-header .sg-header-logo {
		grid-area: logo;
	}

	.site-header .sg-header-actions {
		grid-area: actions;
	}

	.site-header .sg-header-nav-main {
		grid-area: nav;
		width: auto;
	}

	.site-header .sg-header-nav-main .main-navigation {
		width: auto;
		display: block;
		position: relative;
	}

	.site-header .sg-header-nav-main .menu-toggle {
		align-self: center;
	}

	.site-header .sg-header-nav-main .main-navigation > ul {
		justify-content: flex-start;
		position: absolute;
		top: 100%;
		right: 0;
		left: auto;
		margin-top: 0.55rem;
		min-width: 240px;
		max-width: min(92vw, 320px);
	}

	.site-header .sg-header-call-text {
		display: none;
	}

	.site-header .sg-header-topbar-inner {
		grid-template-columns: 1fr;
		gap: 0.3rem;
	}

	.site-header .sg-header-topbar-left,
	.site-header .sg-header-topbar-right,
	.site-header .sg-header-topbar-text {
		text-align: center;
	}

	.site-header .sg-flexile-topbar-left,
	.site-header .sg-flexile-topbar-right-wrap {
		justify-content: center;
		flex-wrap: wrap;
		row-gap: 0.3rem;
	}

	.site-header .sg-header-search-slot {
		display: none;
	}

	.site-header .sg-header-navband .main-navigation > ul {
		display: none;
	}

	.site-header .sg-header-navband .main-navigation.toggled > ul {
		display: flex;
	}
}
