/* Shop Page Header - styles */

/* Top announcement bar */
.sph-top-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	background-color: #ff5a1f;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	box-sizing: border-box;
	text-align: center;
	line-height: 1.3;
}

.sph-top-bar-icon {
	font-size: 13px;
	line-height: 1;
}

/* Wrapper for search + categories */
.sph-shop-header {
	max-width: 720px;
	margin: 0 auto 10px;
	padding: 6px 12px 0;
	box-sizing: border-box;
}

/* Neutralize common theme top spacing (page title/banner areas, container
   padding, etc.) that themes render above the shop loop, so the search bar
   sits directly under the announcement bar. */
body.woocommerce-page .content-area,
body.woocommerce-page .site-main,
body.woocommerce-page #primary,
body.woocommerce-page #main,
body.woocommerce-page .ast-container,
body.woocommerce-page .inside-article,
body.woocommerce-page .entry-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.woocommerce-page .woocommerce-products-header,
body.woocommerce-page .page-title,
body.woocommerce-page .woocommerce-breadcrumb {
	margin: 0 !important;
	padding: 0 !important;
}

/* Search bar */
.sph-search-wrap {
	margin-bottom: 8px;
}

.sph-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	background-color: #f4f4f5;
	border-radius: 999px;
	padding: 4px 4px 4px 14px;
}

.sph-search-icon {
	font-size: 13px;
	color: #9a9a9a;
	line-height: 1;
}

.sph-search-input {
	flex: 1;
	border: none;
	background: transparent;
	outline: none;
	font-size: 13px;
	color: #333;
	min-width: 0;
	padding: 6px 0;
}

.sph-search-input::placeholder {
	color: #a3a3a3;
}

.sph-search-button {
	border: none;
	background-color: #ff5a1f;
	color: #fff;
	font-weight: 600;
	font-size: 12px;
	padding: 7px 16px;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.sph-search-button:hover {
	background-color: #e64f19;
}

/* Category pills */
.sph-categories-wrap {
	width: 100%;
	overflow: hidden;
}

.sph-categories-scroll {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.sph-categories-scroll::-webkit-scrollbar {
	display: none;
}

.sph-category-pill {
	flex: 0 0 auto;
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background-color: #ffffff;
	border: 1px solid #e5e5e5;
	color: #333;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sph-category-pill:hover {
	border-color: #cfcfcf;
	color: #111;
}

.sph-category-pill.is-active {
	background-color: #111111;
	border-color: #111111;
	color: #ffffff;
}

/* Mobile: keep it just as compact */
@media (max-width: 480px) {
	.sph-top-bar {
		font-size: 11px;
		padding: 6px 10px;
	}

	.sph-shop-header {
		padding: 8px 10px 0;
		margin-bottom: 8px;
	}

	.sph-search-wrap {
		margin-bottom: 6px;
	}

	.sph-search-input {
		font-size: 12px;
	}

	.sph-search-button {
		padding: 6px 14px;
		font-size: 11px;
	}

	.sph-category-pill {
		padding: 5px 12px;
		font-size: 11px;
	}
}
