/*
Theme Name: EBP Storefront
Theme URI: https://www.edbrown.com/
Description: Custom Storefront child theme for Ed Brown Products.
Author: Ed Brown Products
Version: 1.0.4
Template: storefront
Text Domain: ebp-storefront
*/

/*
 * Ed Brown Products custom styles.
 * Site-specific CSS will be added below this line.
 */
 
 /* =========================================================
   EBP CUSTOM HEADER
   ========================================================= */

#masthead.ebp-site-header {
	background: #fff;
	padding: 0;
	margin: 0;
	border: 0;
}

.ebp-header-width {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding-left: 32px;
	padding-right: 32px;
	box-sizing: border-box;
}

/* Top information bar */

.ebp-topbar {
	background: #111;
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
}

.ebp-topbar .ebp-header-width {
	min-height: 34px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.ebp-topbar-left,
.ebp-topbar-right {
	display: flex;
	align-items: center;
}

.ebp-topbar-left > * + * {
	border-left: 1px solid rgba(255,255,255,.3);
	margin-left: 18px;
	padding-left: 18px;
}

.ebp-topbar a {
	color: #fff;
	text-decoration: none;
}

.ebp-topbar a:hover {
	color: #ddd;
}

/* Main header */

.ebp-header-main {
	background: #fff;
	border-bottom: 1px solid #e5e5e5;
}

.ebp-header-row {
	min-height: 100px;
	display: grid;
	grid-template-columns: 280px 1fr 150px;
	align-items: center;
	gap: 28px;
}

.ebp-logo a {
	display: block;
}

.ebp-logo img {
	display: block;
	width: auto;
	max-width: 245px;
	max-height: 78px;
}

/* Primary navigation */

.ebp-primary-nav {
	justify-self: center;
}

.ebp-primary-menu,
.ebp-primary-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ebp-primary-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
}

.ebp-primary-menu > li {
	position: relative;
	margin: 0;
}

.ebp-primary-menu > li > a {
	display: block;
	padding: 39px 0;
	color: #111;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.ebp-primary-menu > li > a:hover {
	color: #666;
}

/* Desktop dropdown menus */

.ebp-primary-menu .sub-menu {
	display: none;
	position: absolute;
	left: -20px;
	top: 100%;
	z-index: 9999;
	min-width: 220px;
	padding: 10px 0;
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.ebp-primary-menu li:hover > .sub-menu,
.ebp-primary-menu li:focus-within > .sub-menu {
	display: block;
}

.ebp-primary-menu .sub-menu a {
	display: block;
	padding: 10px 20px;
	color: #111;
	text-decoration: none;
	white-space: nowrap;
}

/* Header tools */

.ebp-header-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 17px;
}

.ebp-header-tool,
.ebp-search > summary {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 42px;
	color: #111;
	font-size: 10px;
	text-decoration: none;
	cursor: pointer;
}

.ebp-header-tool svg,
.ebp-search svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
}

.ebp-search {
	position: relative;
}

.ebp-search > summary {
	list-style: none;
}

.ebp-search > summary::-webkit-details-marker {
	display: none;
}

.ebp-search-panel {
	position: absolute;
	z-index: 10000;
	top: calc(100% + 15px);
	right: 0;
	width: 340px;
	background: #fff;
	border: 1px solid #ddd;
	padding: 14px;
	box-shadow: 0 8px 25px rgba(0,0,0,.10);
}

.ebp-search-panel form {
	display: flex;
	margin: 0;
}

.ebp-search-panel input[type="search"] {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #bbb;
	background: #fff;
}

.ebp-search-panel button {
	margin: 0;
	padding: 10px 15px;
	border: 0;
	background: #111;
	color: #fff;
}

.ebp-cart-icon {
	position: relative;
	display: block;
}

.ebp-cart-count {
	position: absolute;
	top: -8px;
	right: -11px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 20px;
	background: #111;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
}

/* Secondary navigation */

.ebp-secondary-nav {
	background: #f5f4f1;
	border-bottom: 1px solid #dedede;
}

.ebp-secondary-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
}

.ebp-secondary-menu li {
	flex: 0 0 auto;
	margin: 0;
}

.ebp-secondary-menu li + li {
	border-left: 1px solid #d5d5d5;
}

.ebp-secondary-menu a {
	display: block;
	padding: 11px 21px;
	color: #222;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

/* Mobile menu */

.ebp-mobile-menu {
	display: none;
	position: relative;
}

.ebp-mobile-menu > summary {
	width: 40px;
	height: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	border: 1px solid #ddd;
	list-style: none;
	cursor: pointer;
}

.ebp-mobile-menu > summary::-webkit-details-marker {
	display: none;
}

.ebp-mobile-menu > summary span {
	width: 19px;
	height: 2px;
	background: #111;
}

.ebp-mobile-menu-panel {
	position: absolute;
	z-index: 10000;
	top: 48px;
	left: 0;
	width: min(360px, calc(100vw - 30px));
	padding: 12px 20px;
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 8px 25px rgba(0,0,0,.1);
}

.ebp-mobile-nav-list,
.ebp-mobile-nav-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ebp-mobile-nav-list a {
	display: block;
	padding: 11px 0;
	border-bottom: 1px solid #eee;
	color: #111;
	font-weight: 600;
	text-decoration: none;
}

/* Responsive */

@media (max-width: 1200px) {

	.ebp-header-row {
		grid-template-columns: auto minmax(160px, 260px) 1fr;
		gap: 20px;
	}

	.ebp-mobile-menu {
		display: block;
	}

	.ebp-primary-nav {
		display: none;
	}

	.ebp-header-tools {
		justify-self: end;
	}

}

@media (max-width: 767px) {

	.ebp-header-width {
		padding-left: 15px;
		padding-right: 15px;
	}

	.ebp-topbar .ebp-header-width {
		justify-content: center;
		min-height: 31px;
	}

	.ebp-topbar-left span:first-child,
	.ebp-topbar-right {
		display: none;
	}

	.ebp-topbar-left > * + * {
		margin-left: 10px;
		padding-left: 10px;
	}

	.ebp-header-row {
		min-height: 74px;
		grid-template-columns: 42px 1fr auto;
		gap: 10px;
	}

	.ebp-logo {
		text-align: center;
	}

	.ebp-logo img {
		margin: 0 auto;
		max-height: 54px;
	}

	.ebp-header-tools {
		gap: 9px;
	}

	.ebp-header-tool span:last-child,
	.ebp-search > summary span {
		display: none;
	}

	.ebp-header-tool,
	.ebp-search > summary {
		min-width: 27px;
	}

	.ebp-header-tool svg,
	.ebp-search svg {
		width: 20px;
		height: 20px;
	}

	.ebp-search-panel {
		position: fixed;
		top: 110px;
		left: 15px;
		right: 15px;
		width: auto;
	}

	.ebp-secondary-nav .ebp-header-width {
		padding: 0;
	}

	.ebp-secondary-menu {
		justify-content: flex-start;
	}

	.ebp-secondary-menu a {
		padding: 10px 15px;
	}

}

/* =========================================================
   EBP CUSTOM FOOTER
   ========================================================= */

#colophon.ebp-site-footer {
	margin: 0;
	padding: 0;
	background: #111;
	color: #fff;
}

.ebp-footer-width {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding-left: 32px;
	padding-right: 32px;
	box-sizing: border-box;
}

/* Customer-service CTA */

.ebp-footer-cta {
	background: #f3f2ef;
	color: #111;
	border-top: 1px solid #ddd;
}

.ebp-footer-cta-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 50px;
	padding-top: 42px;
	padding-bottom: 42px;
}

.ebp-footer-cta h2 {
	margin: 0 0 7px;
	color: #111;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
}

.ebp-footer-cta p {
	margin: 0;
	color: #555;
	font-size: 15px;
}

.ebp-footer-cta-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ebp-footer-button {
	display: inline-block;
	padding: 13px 19px;
	border: 1px solid #111;
	color: #111;
	background: transparent;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.ebp-footer-button:hover {
	background: #111;
	color: #fff;
}

.ebp-footer-button-primary {
	background: #111;
	color: #fff;
}

.ebp-footer-button-primary:hover {
	background: #333;
	color: #fff;
}

/* Main footer */

.ebp-footer-main {
	background: #111;
	color: #fff;
}

.ebp-footer-grid {
	display: grid;
	grid-template-columns: 2fr repeat(4, 1fr);
	gap: 55px;
	padding-top: 58px;
	padding-bottom: 58px;
}

.ebp-footer-brand-name {
	margin-bottom: 15px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: .06em;
}

.ebp-footer-brand-copy {
	max-width: 330px;
	margin: 0 0 24px;
	color: #ccc;
	font-size: 14px;
	line-height: 1.6;
}

.ebp-footer-contact {
	margin: 0;
	color: #aaa;
	font-size: 13px;
	font-style: normal;
	line-height: 1.65;
}

.ebp-footer-contact a {
	color: #fff;
	text-decoration: none;
}

.ebp-footer-column h3 {
	margin: 0 0 18px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.ebp-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ebp-footer-menu li {
	margin: 0 0 10px;
	padding: 0;
}

.ebp-footer-menu a {
	color: #bbb;
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
}

.ebp-footer-menu a:hover {
	color: #fff;
}

/* Bottom row */

.ebp-footer-bottom {
	border-top: 1px solid #333;
	background: #111;
}

.ebp-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding-top: 19px;
	padding-bottom: 19px;
	color: #888;
	font-size: 11px;
}

.ebp-footer-bottom a {
	color: #aaa;
	text-decoration: none;
}

.ebp-footer-bottom a:hover {
	color: #fff;
}

/* Footer responsive */

@media (max-width: 1100px) {

	.ebp-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ebp-footer-brand {
		grid-column: 1 / -1;
	}

}

@media (max-width: 800px) {

	.ebp-footer-cta-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ebp-footer-cta-actions {
		justify-content: flex-start;
	}

}

@media (max-width: 600px) {

	.ebp-footer-width {
		padding-left: 20px;
		padding-right: 20px;
	}

	.ebp-footer-cta h2 {
		font-size: 26px;
	}

	.ebp-footer-cta-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ebp-footer-button {
		text-align: center;
	}

	.ebp-footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-top: 42px;
		padding-bottom: 42px;
	}

	.ebp-footer-brand {
		grid-column: auto;
	}

	.ebp-footer-bottom-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

}

/* Ensure EBP footer CTA button colors override Storefront footer link styles */
#colophon .ebp-footer-button {
	color: #111;
}

#colophon .ebp-footer-button:hover {
	color: #fff;
}

#colophon .ebp-footer-button-primary {
	color: #fff;
}

/* EBP footer social links */

.ebp-footer-social {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
}

#colophon .ebp-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #444;
	color: #fff;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease;
}

#colophon .ebp-footer-social a:hover {
	background: #fff;
	border-color: #fff;
	color: #111;
}

.ebp-footer-social svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1.5;
}

/* Correct Instagram and YouTube footer icons */

.ebp-footer-social .ebp-social-instagram,
.ebp-footer-social .ebp-social-youtube {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
}

.ebp-footer-social .ebp-social-dot,
.ebp-footer-social .ebp-social-play {
	fill: currentColor;
	stroke: none;
}

/* On phones, Storefront's handheld bar handles Search, Account and Cart. */

@media (max-width: 767px) {

	.ebp-header-tools {
		display: none;
	}

	.ebp-header-row {
		grid-template-columns: 42px 1fr 42px;
	}

}

/* =========================================================
   EBP MOBILE HANDHELD BAR
   ========================================================= */

@media (max-width: 767px) {

	.storefront-handheld-footer-bar {
		background: #111;
	}

	.storefront-handheld-footer-bar ul li {
		background: #111;
	}

	.storefront-handheld-footer-bar ul li > a {
		color: #fff;
	}

	.storefront-handheld-footer-bar ul li > a:before {
		color: #fff;
	}

	.storefront-handheld-footer-bar ul li + li {
		border-left: 1px solid #333;
	}

}

/* Accessible visually-hidden text */
.ebp-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Keep advanced product search usable with many results */
.ebp-search-panel {
	width: 490px;
	max-width: calc(100vw - 30px);
	overflow: visible;
}

/* WAVE/accessibility fix for WooCommerce Product Search hidden label */
.ebp-search-panel label.screen-reader-text {
	color: #111 !important;
	background-color: #fff !important;
}

/* =========================================================
   EBP FOOTER NEWSLETTER
   ========================================================= */

.ebp-footer-newsletter {
	max-width: 380px;
	margin-top: 30px;
}

.ebp-footer-newsletter h3 {
	margin: 0 0 7px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.ebp-footer-newsletter > p {
	margin: 0 0 15px;
	color: #aaa;
	font-size: 13px;
	line-height: 1.5;
}

/* Ninja Forms inside EBP footer */

#colophon .ebp-footer-newsletter .nf-form-cont {
	margin: 0;
}

#colophon .ebp-footer-newsletter .nf-form-fields-required {
	display: none;
}

#colophon .ebp-footer-newsletter .nf-field-container {
	margin-bottom: 10px;
}

#colophon .ebp-footer-newsletter input[type="email"],
#colophon .ebp-footer-newsletter input[type="text"] {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #555;
	background: #fff;
	color: #111;
	font-size: 14px;
	box-sizing: border-box;
}

#colophon .ebp-footer-newsletter input[type="button"],
#colophon .ebp-footer-newsletter input[type="submit"] {
	min-height: 42px;
	margin: 0;
	padding: 11px 18px;
	border: 1px solid #fff;
	background: #fff;
	color: #111;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	cursor: pointer;
}

#colophon .ebp-footer-newsletter input[type="button"]:hover,
#colophon .ebp-footer-newsletter input[type="submit"]:hover {
	background: #111;
	color: #fff;
}

.ebp-footer-legal-links {
	display: flex;
	align-items: center;
	gap: 9px;
}

/* Footer refinements - September 2026 */

#colophon .ebp-footer-button {
	padding: 16px 24px;
	font-size: 12px;
}

#colophon .ebp-footer-contact {
	color: #bbb;
	font-size: 14px;
}

#colophon .ebp-footer-bottom-inner {
	color: #aaa;
	font-size: 13px;
}

#colophon .ebp-footer-newsletter > p {
	color: #bbb;
	font-size: 14px;
}

#colophon .ebp-footer-newsletter .nf-field-label label {
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
}

/*
 * EBP site-specific WordPress overrides
 */

/* Hide automatic titles on ordinary WordPress pages only.
 * Preserve WooCommerce shop, category and individual product titles.
 */
body.page .entry-header .entry-title {
  display: none;
}

/* Black backgrounds on the homepage and Fueled pages */
.page-id-325,
.page-id-23416,
.page-id-88531,
.page-id-119587 {
  background-color: #000;
}

/* Hide breadcrumbs on Fueled pages */
.page-id-23416 .woocommerce-breadcrumb,
.page-id-88531 .woocommerce-breadcrumb,
.page-id-119587 .woocommerce-breadcrumb {
  display: none;
}

/* Remove top content margin on the original Fueled page */
.page-id-23416 .main-content {
  margin-top: 0;
}

/* Homepage spacing below the header */
.home.blog .site-header,
body:not(.page-template-template-homepage).home.page .site-header,
.home.post-type-archive-product .site-header {
  margin-bottom: 1em;
}

/* Remove legacy Storefront footer spacing */
.site-footer,
.site-info {
  padding: 0 !important;
}

/* Reduce space below breadcrumbs site-wide */
.storefront-breadcrumb {
  padding-bottom: 0 !important;
}

/* Emphasize backorder status */
.woocommerce div.product p.stock.available-on-backorder {
  color: #c00 !important;
  font-weight: 700;
}

/* Hide Storefront stock-status icons */
.stock.in-stock::before,
.stock.out-of-stock::before {
  display: none !important;
}

/* Red WooCommerce sale badge */
.onsale {
  background-color: #c00;
  color: #fff;
}

/* Hide product counts on category tiles */
.woocommerce .product-category .count {
  display: none !important;
}