/* Loaded after /store2parts/css/store.css — fest-store-header wrap + category sidebar wrap */

.fest-store-header {
	height: auto !important;
	min-height: 34px;
	padding: 0 !important;
	margin-top: 10px;
	background: url('/store2parts/css/dd-bg.png') 0 14px repeat-x !important;
	background-color: #fff !important;
}

.fest-store-header > .h3,
.fest-store-header > h1,
.fest-store-header > h2,
.fest-store-header > p,
.fest-store-header .centerBoxHeading,
#loginDefaultHeading,
#productListHeading,
#cartDefaultHeading,
#checkoutPaymentHeading,
#checkoutSuccessHeading,
#indexCategoriesHeading,
#searchResultsHeading,
#logoffDefault-pageHeading,
#festStorefront #productListHeading,
#whatsNew .centerBoxHeading {
	display: inline !important;
	white-space: normal !important;
	word-wrap: break-word;
	overflow-wrap: break-word;
	max-width: calc(100% - 24px);
	padding-left: 18px !important;
	padding-right: 18px !important;
}

#categoriesContent a.list-group-item {
	white-space: normal !important;
	overflow: visible;
	text-overflow: clip;
	word-wrap: break-word;
	overflow-wrap: break-word;
	flex-wrap: wrap;
	align-items: flex-start;
}

#categoriesContent a.list-group-item .badge {
	flex-shrink: 0;
	margin-left: auto;
}

@media (max-width: 767.98px) {
	.fest-store-header {
		background-position: 0 12px repeat-x !important;
	}
	#indexCategoriesHeading {
		font-size: 22px !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
}

/* Virtual catalog hidden (parity with WP header.php) */
#header #show-catalog {
	display: none !important;
}

/*
 * City tabs — flex stacking safety net (beats stale inline wpcitytabs.htm if cached).
 */
#headerWrapper .city-tabs ul li,
.city-tabs ul li {
	height: auto !important;
	min-height: 63px !important;
	align-items: stretch !important;
}

#headerWrapper .city-tabs ul li a,
.city-tabs ul li a {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	height: auto !important;
	min-height: 63px !important;
	padding: 8px 12px 6px 21px !important;
}

#headerWrapper .city-tabs ul li div.show-city,
.city-tabs ul li div.show-city {
	margin: 0 !important;
	line-height: 1.1 !important;
}

#headerWrapper .city-tabs ul li div.show-date,
.city-tabs ul li div.show-date {
	margin: 2px 0 0 0 !important;
	line-height: 1.2 !important;
}

@media (max-width: 575.98px) {
	#headerWrapper .city-tabs ul li a,
	.city-tabs ul li a {
		padding: 6px 8px 5px 12px !important;
	}
}

@media (max-width: 575.98px) {
	body:has(.fest-topbar-wrap) #header #header-buttons {
		margin-bottom: 12px !important;
	}

	body:has(.fest-topbar-wrap) #headerWrapper > .city-tabs {
		margin-top: 12px;
		clear: both;
	}
}

@media (min-width: 992px) {
	body:has(.fest-topbar-wrap) #headerWrapper > .city-tabs {
		clear: both;
	}
}

/* wptopbar.php sits above #header-wrapper; neutralize legacy store.css -38px overlap */
.fest-topbar-wrap + #header-wrapper {
	margin-top: 0;
}

.fest-topbar-wrap #header-line-content {
	margin-top: 0 !important;
}

/*
 * Topbar + ZC storefront bar (fixed-top .fest-navbar): pin topbar on top, navbar directly under it.
 * Heights default below; jscript_fest_topbar_stack.php sets --fest-store-* from measured size.
 */
/* Fallback only — jscript_fest_topbar_stack.php sets measured heights on body */
body:has(.fest-topbar-wrap) {
	--fest-store-topbar-height: 38px;
	--fest-store-navbar-height: 50px;
}

/* Store topbar: auth links live in ZC navbar only */
body:has(.fest-topbar-wrap) #login-register {
	display: none !important;
}

@media (max-width: 991.98px) {
	body:has(.fest-topbar-wrap) .fest-topbar-wrap #header-line-content {
		grid-template-areas:
			"tagline tagline"
			"socials socials";
		gap: 4px 16px;
		padding: 8px 16px 6px;
	}

	body:has(.fest-topbar-wrap) #top-header-socials {
		justify-self: center !important;
		justify-content: center !important;
		padding-right: 0 !important;
	}
}

@media (max-width: 420px) {
	body:has(.fest-topbar-wrap) .fest-topbar-wrap #header-line-content {
		grid-template-areas:
			"tagline"
			"socials";
		padding: 8px 14px 6px;
		gap: 6px;
	}
}

body:has(.fest-topbar-wrap) .fest-topbar-wrap {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1040;
	overflow: visible;
}

body:has(.fest-topbar-wrap) #header-wrapper,
body:has(.fest-topbar-wrap) #headerWrapper,
body:has(.fest-topbar-wrap) #navMainWrapper,
body:has(.fest-topbar-wrap) #navMain {
	overflow: visible !important;
}

body:has(.fest-topbar-wrap) nav.fest-navbar.fixed-top {
	top: calc(var(--fest-store-topbar-height) - 1px);
	border-radius: 0 !important;
	z-index: 1030;
}

@media (max-width: 991.98px) {
	body:has(.fest-topbar-wrap) nav.fest-navbar.fixed-top {
		min-height: 48px;
		padding-top: 4px;
		padding-bottom: 4px;
	}

	body:has(.fest-topbar-wrap) .fest-mobile-nav-horizontal .fest-mobile-nav-link {
		padding-top: 0.45rem;
	}
}

body:has(.fest-topbar-wrap) #header-wrapper {
	padding-top: calc(var(--fest-store-topbar-height) + var(--fest-store-navbar-height));
}

body:has(.fest-topbar-wrap) #navbar-spacer {
	display: none;
}

/* Fest WP footer (wpfooter.htm) — full width + wrap like WordPress */
#footerWrapper.fest-footer,
#footer-container {
	box-sizing: border-box;
	overflow-x: hidden;
}

#footer-container {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

#footer {
	width: 100% !important;
	max-width: 969px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding-left: 18px;
	padding-right: 18px;
}

#footer-container > div[style*="background-color:#c8c8c8"] > div,
#footer-container > div[style*="background-color:#c8c8c8"] > div[style*="width:969px"] {
	width: 100% !important;
	max-width: 969px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 18px;
	padding-right: 18px;
	box-sizing: border-box;
}

#lg-ls > ul#partnerslogo {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	height: auto;
	width: 100%;
	margin: 0;
	padding: 12px 10px;
	box-sizing: border-box;
}

ul#partnerslogo li {
	float: none;
	flex: 0 1 110px;
	padding: 6px;
	box-sizing: border-box;
}

@media (max-width: 991.98px) {
	#footer {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 10px 12px;
		padding-top: 12px;
		padding-bottom: 10px;
	}

	#footer #ftop-up-arrow {
		float: none;
		flex: 0 0 auto;
	}

	#footer #footer-menu {
		float: none;
		width: 100%;
		max-width: 100%;
		height: auto;
		margin: 0;
		flex: 1 1 100%;
	}

	#footer #menu-menus,
	#footer .menu-menus-container,
	#footer #menu-menus ul.menu1 {
		float: none;
		width: 100%;
		height: auto;
		margin: 0;
		padding: 0;
	}

	#footer #menu-menus ul.menu1 {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px 0;
	}

	#footer #menu-menus li,
	#footer ul.menu1 li {
		float: none;
		width: auto !important;
		flex: 0 1 auto;
	}

	#footer #menu-menus a,
	#footer ul.menu1 a {
		font-size: 18px;
		padding: 4px 10px !important;
	}

	#footer #ft-phone {
		float: none;
		width: 100%;
		max-width: 100%;
		height: auto;
		margin: 0;
		padding: 6px 0;
		font-size: 20px;
		line-height: 1.2;
		border-left: 0;
		border-right: 0;
		text-align: center;
		flex: 1 1 100%;
	}

	#footer #top-header-socials {
		float: none;
		width: 100%;
		height: auto;
		margin: 0 !important;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 10px;
		flex: 1 1 100%;
	}

	#footer #top-header-socials a img {
		padding-left: 0;
	}

	#footer #pwd-by {
		float: none;
		width: 100%;
		text-align: center;
		flex: 1 1 100%;
	}
}
