/* Stacked desktop header ([cs_header_nav]): search + main nav, long rule, small nav. See inc/header-nav.php */

/* The Elementor widget holding it fills the space right of the logo */
.header-holder .elementor-element.cs-nav-widget {
	flex: 1 1 auto;
	width: auto;
	max-width: none;
	min-width: 0;
}
.header-holder .cs-nav-widget .elementor-shortcode { width: 100%; }

/* The old Schedule A Visit button is gone. The search icon is hidden everywhere: the search box
   replaces it on desktop, and the mobile drawer opens with its own search box. */
.header-holder .elementor-element-54fd538 { display: none !important; }

/* Logo column only as wide as the logo (it was a fixed percentage, leaving a white gap
   on desktop and squeezing the logo on phones); the nav column takes the rest. */
.header-holder .elementor-element-ba86132 {
	--width: auto;
	width: auto !important;
	flex: 0 0 auto;
}
.header-holder .elementor-element-2775635 {
	--width: auto;
	width: auto !important;
	flex: 1 1 auto;
	min-width: 0;
}

.cs-head {
	--cs-ink: #161616;
	--cs-text: #5a5a5a;
	--cs-accent: #bdd530;
	--cs-field: #f1f1f1;

	width: 100%;
	padding-left: 32px;
	font-family: Inter, sans-serif;
}

/* Row 1 */
.cs-head__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--cs-ink);
}

/* Search box */
.cs-head__search {
	display: flex;
	flex: 0 1 280px;
	min-width: 180px;
	height: 42px;
	margin: 0;
	background: var(--cs-field);
	border: 1px solid transparent;
	transition: border-color .15s ease, background-color .15s ease;
}
.cs-head__search:focus-within {
	background: #fff;
	border-color: var(--cs-ink);
}
.cs-head .cs-head__search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	min-height: 0; /* theme sets 45px on inputs, which pushed the text below centre */
	line-height: normal;
	margin: 0;
	padding: 0 14px 1px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: "PT Sans", sans-serif;
	font-size: 15px;
	color: var(--cs-ink);
	outline: none;
}
.cs-head .cs-head__search input[type="search"]::placeholder { color: #9a9a9a; }
.cs-head .cs-head__search button {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid #e2e2e2;
	border-radius: 0;
	background: transparent !important;
	color: var(--cs-ink) !important;
	cursor: pointer;
	transition: background-color .15s ease;
}
.cs-head .cs-head__search button:hover { background: #e7e7e7 !important; }

/* Nav lists */
.cs-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cs-nav li { margin: 0; padding: 0; }

.cs-nav a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--cs-text);
	box-shadow: none;
	transition: color .15s ease;
}

.cs-nav a:hover,
.cs-nav a:focus-visible,
.cs-nav .current-menu-item > a,
.cs-nav .cs-mega-trigger.is-open > a { color: var(--cs-ink); }

.cs-nav a:focus-visible { outline: 2px solid var(--cs-ink); outline-offset: 4px; }

/* Row 1: main categories */
.cs-nav--primary ul { gap: 4px 34px; }
.cs-nav--primary a {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .08em;
	line-height: 1.2;
}

/* Row 2: lesser items, small */
.cs-nav--secondary ul {
	gap: 4px 30px;
	padding-top: 10px;
}
.cs-nav--secondary a {
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .1em;
	line-height: 1.2;
	color: var(--cs-ink);
}
.cs-nav--secondary a:hover { color: var(--cs-text); }

/* All Products: chevron shows it opens a menu */
.cs-nav .cs-mega-trigger > a { cursor: pointer; }
.cs-nav .cs-mega-trigger > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin: -4px 0 0 10px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease, margin .2s ease;
}
.cs-nav .cs-mega-trigger.is-open > a::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

@media (max-width: 1280px) {
	.cs-head { padding-left: 24px; }
	.cs-head__search { flex-basis: 220px; }
	.cs-nav--primary ul { gap: 4px 22px; }
	.cs-nav--primary a { font-size: 14px; letter-spacing: .05em; }
	.cs-nav--secondary ul { gap: 4px 22px; }
}

/* Brand-green clear "×" in every search box on the site (header, mobile drawer, search popup) */
input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	margin: 0 2px 0 8px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bdd530' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
	cursor: pointer;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.cs-nav a, .cs-nav a::after, .cs-head__search { transition: none; }
}

/* Top bar "VISIT OUR SHOWROOM": the Showroom button reads as plain text, same as "VISIT OUR" (still opens the popup) */
.elementor-element-13d9ec1 .elementor-button,
.elementor-element-13d9ec1 .elementor-button:hover,
.elementor-element-13d9ec1 .elementor-button:focus {
	font-family: "PT Sans", sans-serif;
	border-bottom: 0 !important;
	text-decoration: none;
}
