/**
 * FSC Etsy-style site header (v0.5) — user chose the exact Etsy look with
 * the Etsy orange accent (#F1641E). Scoped to body.fsc-etsy-header.
 *
 * Layout produced with the fsc-header.js moves:
 *   Row 1: serif orange wordmark | Categories button | pill search bar |
 *          Sign in / heart / cart icons
 *   Row 2: the site's existing primary menu, centred (category row)
 */

body.fsc-etsy-header {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Header shell ---------------------------------------------------- */
body.fsc-etsy-header .ast-primary-header-bar {
	background: #fff;
	border-bottom: 1px solid #e5e5e5;
}

body.fsc-etsy-header .ast-primary-header-bar .ast-builder-grid-row {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 1400px;
}

body.fsc-etsy-header .site-header-primary-section-left,
body.fsc-etsy-header .site-header-primary-section-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* --- Wordmark: serif, Etsy orange ------------------------------------- */
body.fsc-etsy-header .site-title a {
	font-family: 'Bitter', Georgia, serif;
	font-weight: 500;
	font-size: 34px;
	letter-spacing: -0.5px;
	color: #F1641E !important;
	white-space: nowrap;
}

/* --- Categories button -------------------------------------------------- */
.fsc-cats-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: transparent;
	border: none;
	border-radius: 999px;
	padding: 9px 13px;
	font: 500 14px 'Inter', sans-serif;
	color: #222;
	cursor: pointer;
	white-space: nowrap;
}
.fsc-cats-btn:hover { background: #f0f0f0; }
.fsc-cats-btn .fsc-cats-ico { font-size: 17px; line-height: 1; }

.fsc-cats-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 999;
	min-width: 260px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
	padding: 10px;
	display: none;
}
.fsc-cats-panel.open { display: block; }
.fsc-cats-panel ul { list-style: none; margin: 0; padding: 0; }
.fsc-cats-panel a {
	display: block;
	padding: 9px 10px;
	border-radius: 8px;
	font: 400 15px 'Inter', sans-serif;
	color: #222 !important;
	text-decoration: none;
}
.fsc-cats-panel a:hover { background: #f5f5f5; }

.fsc-cats-wrap { position: relative; display: inline-flex; }

/* --- Pill search bar ------------------------------------------------------ */
.fsc-search-wrap { flex: 1 1 auto; display: flex; }
.fsc-search-form {
	display: flex;
	align-items: center;
	width: 100%;
	height: 48px;
	border: 2px solid #222;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}
.fsc-search-form input[type="search"] {
	flex: 1 1 auto;
	border: none !important;
	outline: none;
	background: transparent;
	padding: 0 6px 0 20px;
	font: 400 15px 'Inter', sans-serif;
	color: #222;
	height: 100%;
}
.fsc-search-form input[type="search"]::placeholder { color: #757575; }
.fsc-search-btn {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	margin-right: 3px;
	border-radius: 999px;
	border: none;
	background: #F1641E;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.fsc-search-btn svg { width: 20px; height: 20px; fill: #fff; }

/* --- Right-side account / heart / cart ------------------------------------- */
.fsc-head-icons { display: flex; align-items: center; gap: 6px; }
.fsc-signin {
	font: 500 14px 'Inter', sans-serif;
	color: #222 !important;
	text-decoration: none;
	padding: 9px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.fsc-signin:hover { background: #f0f0f0; }
.fsc-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	text-decoration: none;
}
.fsc-icon-btn:hover { background: #f0f0f0; }
.fsc-icon-btn svg { width: 22px; height: 22px; fill: none; stroke: #222; stroke-width: 1.8; }
.fsc-cart-count {
	position: absolute;
	top: 1px;
	right: 0;
	min-width: 17px;
	height: 17px;
	border-radius: 999px;
	background: #F1641E;
	color: #fff;
	font: 700 10px/17px 'Inter', sans-serif;
	text-align: center;
	padding: 0 4px;
}
.fsc-cart-count.fsc-empty { display: none; }

/* --- Row 2: centred category row (the moved primary menu) -------------------
   v0.5.1: Astra's wrapper chain around the moved menu kept it left-aligned;
   centre every level of the chain, with !important on the ul itself. */
.fsc-catrow {
	background: #fff;
	border-bottom: 1px solid #e5e5e5;
	display: flex;
	justify-content: center;
}
.fsc-catrow .main-header-bar-navigation,
.fsc-catrow .ast-main-header-bar-alignment,
.fsc-catrow .site-navigation,
.fsc-catrow .main-navigation {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0 auto;
}
.fsc-catrow .main-header-menu {
	display: flex !important;
	justify-content: center !important;
	flex-wrap: wrap;
	gap: 6px 30px;
	margin: 0 auto;
	padding: 4px 16px;
	text-align: center;
}
.fsc-catrow .main-header-menu .menu-link {
	font: 400 14px 'Inter', sans-serif !important;
	color: #222 !important;
	padding: 8px 0 !important;
}
.fsc-catrow .main-header-menu .menu-link:hover { text-decoration: underline; }

/* Keep Astra's own header pieces out of the way in the top row. */
body.fsc-etsy-header .ast-primary-header-bar .main-header-bar-navigation { display: none; }

/* Mobile header (Astra's separate wrap) is left as the theme renders it;
   the injected pieces live only in the desktop bar. */
@media (max-width: 921px) {
	.fsc-search-wrap, .fsc-cats-wrap, .fsc-head-icons, .fsc-catrow { display: none !important; }
}
