/* ==========================================================================
   buildashelf v5 — site header: topbar + sticky nav (every page).
   ID-scoped so the store styles (The7/Woo/Elementor kit link and input rules)
   cannot repaint the header on WooCommerce pages.
   ========================================================================== */

/* TOPBAR */
#bas-topbar {
	background: var(--ink);
	color: rgba(255,255,255,0.75);
	font-family: var(--font-label);
	font-size: 14px;
	letter-spacing: 1.8px;
	line-height: normal;
	text-align: center;
	padding: 15px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 28px;
	text-transform: uppercase;
	font-weight: 600;
}
#bas-topbar .tb-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rust); display: inline-block; flex-shrink: 0; }
#bas-topbar .tb-shipping,
#bas-topbar .tb-phone,
#bas-topbar .tb-phone a { color: #fff; }
#bas-topbar .tb-phone a:hover { color: var(--linen-dark); }
#bas-topbar .tb-usa { display: flex; align-items: center; gap: 9px; color: #fff; }
#bas-topbar .tb-flag { font-size: 20px; line-height: 1; }

/* NAV */
#bas-main-nav {
	background: var(--white);
	border-bottom: 1px solid var(--linen-dark);
	padding: 0 var(--bas-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	height: 64px;
	position: sticky;
	top: 0;
	z-index: 200;
	transition: box-shadow 0.2s;
}
.admin-bar #bas-main-nav { top: 32px; }
#bas-main-nav.scrolled { box-shadow: 0 2px 20px rgba(30,29,27,0.06); }
#bas-main-nav .nav-logo {
	position: relative;
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: normal;
	color: var(--ink);
	display: flex; align-items: baseline; gap: 0.3em;
	padding-bottom: 9px;
	flex-shrink: 0;
}
/* The "shelf" under the logo: a rust line with a short leg at each end. */
#bas-main-nav .nav-logo::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
	border: 2px solid var(--rust); border-bottom: 0;
}
#bas-main-nav .nav-logo .a { color: var(--rust); }
#bas-main-nav .nav-logo .shelf { color: var(--navy); }
#bas-main-nav .nav-links {
	display: flex; align-items: center; gap: 32px;
	list-style: none; font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
	font-family: var(--font-body);
}
#bas-main-nav .nav-links a,
#bas-main-nav .nav-links span {
	color: var(--ink-mid); transition: color 0.15s; text-transform: uppercase;
	font-size: 11.5px; letter-spacing: 1.2px; font-weight: 600; white-space: nowrap;
}
#bas-main-nav .nav-links a:hover { color: var(--rust); }
#bas-main-nav .nav-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
#bas-main-nav .nav-icon { display: flex; width: 20px; height: 20px; color: var(--ink-mid); transition: color 0.15s; flex-shrink: 0; }
#bas-main-nav .nav-icon:hover { color: var(--rust); }

/* Product search (woocommerce/product-searchform.php). ID-scoped: the Elementor kit styles
   every input with .elementor-kit-N input:not(..):not(..) (specificity 0,3,1). */
#bas-main-nav .nav-search {
	display: flex; align-items: center; gap: 8px;
	border: 1.5px solid var(--linen-dark);
	padding: 7px 14px;
	background: var(--linen);
	transition: border-color 0.15s;
	width: 220px;
	min-width: 0;
	margin: 0;
}
#bas-main-nav .nav-search:focus-within { border-color: var(--ink-mid); background: var(--white); }
#bas-main-nav .nav-search svg { color: var(--warm-mid); flex-shrink: 0; }
#bas-main-nav .nav-search-input {
	border: none; outline: none; background: transparent; box-shadow: none;
	font-family: var(--font-body); font-size: 13px; line-height: normal;
	color: var(--ink); width: 100%; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0;
	-webkit-appearance: none; appearance: none;
}
#bas-main-nav .nav-search-input::placeholder { color: var(--warm-mid); opacity: 1; }
#bas-main-nav .nav-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Cart button */
#bas-main-nav .nav-cart {
	background: var(--rust); color: #fff;
	border: none; border-radius: 7px;
	padding: 9px 20px;
	font-size: 11.5px; font-weight: 700; font-family: var(--font-label);
	letter-spacing: 0.8px; text-transform: uppercase; line-height: normal;
	transition: background 0.15s;
	display: flex; align-items: center; gap: 7px;
	white-space: nowrap; flex-shrink: 0;
}
#bas-main-nav .nav-cart:hover { background: var(--rust-soft); color: #fff; }

@media (max-width: 1180px) {
	#bas-main-nav .nav-links { gap: 20px; }
}
@media (max-width: 1060px) {
	#bas-main-nav .nav-search { width: 170px; }
}
@media (max-width: 900px) {
	#bas-main-nav { padding: 0 var(--bas-gutter-sm); }
	#bas-main-nav .nav-links { display: none; }
}
@media (max-width: 782px) {
	.admin-bar #bas-main-nav { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar #bas-main-nav { top: 0; }
	#bas-topbar { gap: 6px 14px; padding: 11px 16px; font-size: 12px; letter-spacing: 1.4px; }
	#bas-main-nav { padding: 0 16px; gap: 10px; }
	#bas-main-nav .nav-actions { gap: 10px; flex: 1; justify-content: flex-end; }
	#bas-main-nav .nav-search { width: auto; flex: 1; max-width: 220px; padding: 7px 10px; }
	#bas-main-nav .nav-cart { padding: 9px 12px; }
}
