/* ==========================================================
   SST site header -- matches solidsealing.com (headerTemplate.cfm,
   css/style.css .siteNav, Bootstrap 4 navbar-expand-lg).
   Mobile layout below 992px, same as the main site.
   ========================================================== */

/* Elementor header location: stick to the top like the main site's fixed header */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 1000;
}
body.admin-bar .elementor-location-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .elementor-location-header { top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar .elementor-location-header { top: 0; }
}
.elementor-location-header .elementor-widget-shortcode,
.elementor-location-header .elementor-shortcode { width: 100%; }

.sst-header {
	--sst-navy: #2a2e6e;
	--sst-cyan: #17b4ce;
	position: relative;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}
.sst-header *,
.sst-header *::before,
.sst-header *::after { box-sizing: border-box; }
.sst-header ul { list-style: none; margin: 0; padding: 0; }
.sst-header img { display: block; max-width: none; height: auto; }
.sst-header .sst-sr {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Undo theme button/input styling inside the header */
.sst-header button,
.sst-header input[type="submit"],
.sst-header input[type="text"] {
	font: inherit;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	-webkit-appearance: none;
	appearance: none;
}
.sst-header button {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	cursor: pointer;
}
.sst-header button:hover,
.sst-header button:focus { background: none; color: inherit; }

/* ---------- bar ---------- */
.sst-header .sst-nav {
	background-color: var(--sst-navy);
	border-bottom: 4px solid var(--sst-cyan);
	padding: 0 16px;
}
.sst-header .sst-container {
	position: relative;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}
@media (min-width: 576px)  { .sst-header .sst-container { max-width: 540px; } }
@media (min-width: 768px)  { .sst-header .sst-container { max-width: 720px; } }
@media (min-width: 992px)  { .sst-header .sst-container { max-width: 960px; padding: 0 15px; flex-wrap: nowrap; } }
@media (min-width: 1200px) { .sst-header .sst-container { max-width: 1140px; } }

.sst-header a.sst-brand {
	display: inline-block;
	padding: 10px 0;
	margin-right: 16px;
	line-height: inherit;
	white-space: nowrap;
}

/* ---------- mobile buttons: search, cart, menu ---------- */
.sst-header .sst-tools { display: flex; }
.sst-header .sst-tool,
.sst-header a.sst-tool,
.sst-header button.sst-tool {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	text-align: center;
	padding: 6px 12px;
	border: 1px solid transparent;
	font-size: 16px;
	line-height: 24px;
	color: var(--sst-cyan);
	background: var(--sst-navy);
	text-decoration: none;
}
.sst-header button.sst-toggler,
.sst-header button.sst-toggler:hover,
.sst-header button.sst-toggler:focus {
	padding: 4px 10px;
	font-size: 20px;
	line-height: 20px;
	border: 1px solid transparent;
	color: #fff;
	background: none;
}

/* ---------- menu ---------- */
.sst-header .sst-collapse {
	display: none;
	flex-basis: 100%;
	flex-grow: 1;
	align-items: center;
	position: relative;
}
.sst-header .sst-collapse.is-open {
	display: block;
	max-height: calc(100vh - 66px);
	overflow-y: auto;
}

.sst-header a.sst-link,
.sst-header a.sst-link:hover,
.sst-header a.sst-link:focus {
	position: relative;
	display: block;
	margin: 0 3px;
	padding: 14px 8px;
	font-family: 'Cantarell', sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.5;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: #e4e4e4;
}
.sst-header a.sst-link:hover,
.sst-header a.sst-link:focus { color: #cacaca; outline: none; }
.sst-header a.sst-link:focus-visible { outline: 2px solid var(--sst-cyan); outline-offset: -2px; }

/* drop-downs */
.sst-header .sst-dd {
	display: none;
	min-width: 160px;
	margin-top: -1px;
	padding: 8px 0;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid rgba(0, 0, 0, .15);
	border-bottom: 4px solid var(--sst-cyan);
	border-radius: 0;
	box-shadow: 0 6px 5px rgba(0, 0, 0, .5);
	font-size: 14px;
	text-align: left;
}
.sst-header .sst-has-dd.is-open > .sst-dd { display: block; }

.sst-header a.sst-dd-item,
.sst-header a.sst-dd-item:hover,
.sst-header a.sst-dd-item:focus {
	position: relative;
	display: block;
	width: 100%;
	clear: both;
	padding: 4px 24px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	white-space: nowrap;
	text-decoration: none;
	background: none;
	color: #7a7a7a;
}
.sst-header a.sst-dd-item:hover,
.sst-header a.sst-dd-item:focus { color: var(--sst-navy); outline: none; }
.sst-header a.sst-dd-item:hover::after,
.sst-header a.sst-dd-item:focus-visible::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background-color: #34bdd4;
}

/* ---------- search + cart blocks (desktop) ---------- */
.sst-header .sst-search-item,
.sst-header .sst-cart-item { display: none; }

.sst-header .sst-search-box {
	display: none;
	position: absolute;
	top: 54px;
	right: 0;
	z-index: 1001;
	padding: 1em;
	background: #e8e8e4;
	box-shadow: 0 0 10px rgba(0, 0, 0, .5);
	cursor: default;
}
.sst-header .sst-search-box.is-open { display: flex; }
.sst-header .sst-search-box input[type="text"] {
	width: 300px;
	height: 38px;
	padding: 5px 10px;
	border: 1px solid #c5c5c5;
	background: #fff;
	color: #495057;
	font-size: 16px;
	line-height: 1.5;
	outline: none;
}
.sst-header .sst-search-box input[type="submit"],
.sst-header .sst-search-box input[type="submit"]:hover {
	width: 80px;
	padding: 5px 0;
	background: var(--sst-navy);
	color: #fff;
	border: 1px solid var(--sst-navy);
	outline: none;
	cursor: pointer;
	font-family: 'Cantarell', sans-serif;
	font-size: .9em;
}

/* cart count badge (desktop block + mobile icon) */
.sst-header .sst-cart-link { position: relative; }
.sst-header .sst-cart-count {
	position: absolute;
	top: 8px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--sst-navy);
	color: #fff;
	font-family: 'Cantarell', sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	letter-spacing: 0;
}
.sst-header .sst-cart-count[hidden] { display: none; }
.sst-header .sst-tools .sst-cart-count {
	top: 0;
	right: -2px;
	background: var(--sst-cyan);
	color: var(--sst-navy);
}

/* ---------- mobile slide-down search ---------- */
.sst-header .sst-mobile-search {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1050;
	padding: 1em;
	background: var(--sst-navy);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.sst-header .sst-mobile-search.is-open { display: block; animation: sst-slide .2s ease-out; }
.sst-header .sst-mobile-search form { display: flex; }
.sst-header .sst-mobile-search input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	padding: 6px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	background: #fff;
	color: #495057;
	font-size: 16px;
	line-height: 1.5;
}
.sst-header button.sst-msearch-submit,
.sst-header button.sst-msearch-submit:hover {
	padding: 6px 12px;
	border-radius: 4px;
	background: var(--sst-cyan);
	color: var(--sst-navy);
}
.sst-header button.sst-msearch-close,
.sst-header button.sst-msearch-close:hover {
	padding: 6px 12px;
	color: #fff;
}
@keyframes sst-slide {
	from { transform: translateY(-100%); }
	to   { transform: translateY(0); }
}

/* ==========================================================
   Desktop (992px and up)
   ========================================================== */
@media (min-width: 992px) {
	.sst-header a.sst-brand { padding: 5px 0; }
	.sst-header .sst-tools,
	.sst-header .sst-mobile-search { display: none !important; }

	.sst-header .sst-collapse,
	.sst-header .sst-collapse.is-open {
		display: flex;
		flex-basis: auto;
		max-height: none;
		overflow: visible;
	}
	.sst-header .sst-menu { display: flex; margin-left: auto; }
	.sst-header .sst-item { position: relative; }

	.sst-header .sst-dd {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 1000;
	}
	.sst-header .sst-has-dd:hover > .sst-dd,
	.sst-header .sst-has-dd:focus-within > .sst-dd {
		display: block;
		animation: sst-drop .2s ease-out;
	}

	.sst-header .sst-search-item,
	.sst-header a.sst-cart-item {
		display: flex;
		align-items: center;
		height: 52px;
		background: var(--sst-cyan);
	}
	.sst-header button.sst-search-toggle,
	.sst-header button.sst-search-toggle:hover,
	.sst-header button.sst-search-toggle:focus {
		height: 52px;
		padding: 0 1em;
		color: var(--sst-navy);
		font-size: 16px;
	}
	.sst-header a.sst-cart-item {
		padding: 0 1.1em 0 1em;
		border-left: 1px solid rgba(42, 46, 110, .25);
		color: var(--sst-navy);
		font-size: 16px;
		text-decoration: none;
	}
	.sst-header a.sst-cart-item:hover,
	.sst-header a.sst-cart-item:focus {
		background: var(--sst-navy);
		color: var(--sst-cyan);
	}
	.sst-header a.sst-cart-item:hover .sst-cart-count,
	.sst-header a.sst-cart-item:focus .sst-cart-count {
		background: var(--sst-cyan);
		color: var(--sst-navy);
	}
}
@keyframes sst-drop {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Smaller desktops: same tightening as the main site */
@media (min-width: 992px) and (max-width: 1199px) {
	.sst-header a.sst-link,
	.sst-header a.sst-link:hover,
	.sst-header a.sst-link:focus {
		margin: 0 2px;
		padding: 14px 3.2px;
		font-size: 14px;
		letter-spacing: normal;
	}
	.sst-header button.sst-search-toggle,
	.sst-header button.sst-search-toggle:hover,
	.sst-header button.sst-search-toggle:focus,
	.sst-header a.sst-cart-item { padding: 0 .8em; }
}

@media (max-width: 700px) {
	.sst-header .sst-search-box input[type="text"] { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
	.sst-header .sst-dd,
	.sst-header .sst-mobile-search.is-open { animation: none !important; }
}

/* ---------- cart page ---------- */
/* The Elementor kit sets link typography on hover only (primary font, 600), so the
   normal state fell back to Roboto / regular weight. Use the same font in both states;
   the color change on hover comes from the kit. */
.woocommerce-cart .wc-proceed-to-checkout a.sst-continue-shopping,
.woocommerce-cart .elementor-widget-woocommerce-cart td.product-name a {
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
	font-weight: var(--e-global-typography-primary-font-weight);
}

/* Continue Shopping link under Proceed to Checkout */
.woocommerce-cart .wc-proceed-to-checkout a.sst-continue-shopping {
	display: block;
	margin-top: 12px;
	text-align: center;
}

/* Coupon field: same height as the Apply Coupon button (42px) */
.woocommerce-cart .elementor-widget-woocommerce-cart .coupon-col-start input#coupon_code {
	box-sizing: border-box;
	height: 42px;
}
