/**
 * Symbiotic Peptides WooCommerce Product Collection grid section.
 */

.sp-collection {
	position: relative;
	background-color: #ffffff;
	padding: clamp( 4rem, 7vw, 6.5rem ) var( --global-content-edge-padding, 1.5rem );
	width: 100%;
}

.sp-collection__inner {
	width: 100%;
	max-width: var( --global-content-width, 1290px );
	margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.sp-collection__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 2rem;
}

.sp-collection__header-left {
	flex: 1 1 55%;
	max-width: 620px;
}

.sp-collection__header-right {
	flex: 1 1 40%;
	max-width: 440px;
}

.sp-collection__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0 0 1rem;
	color: var( --global-palette1, #e8620a );
	font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
}

.sp-collection__dot {
	display: block;
	width: 6px;
	height: 6px;
	flex: 0 0 auto;
	background: var( --global-palette1, #e8620a );
	border-radius: 50%;
}

.sp-collection__title {
	margin: 0;
	color: var( --global-palette3, #000000 );
	font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: clamp( 2.25rem, 4.2vw, 3.25rem );
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.12;
}

.sp-collection__desc {
	margin: 0;
	color: var( --global-palette6, #6b6b6b );
	font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Filter Tabs
   -------------------------------------------------------------------------- */

.sp-collection__filters {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	gap: 0.625rem;
	margin: clamp( 1.75rem, 3.5vw, 2.5rem ) 0;
	padding-bottom: 0.375rem;
}

.sp-collection__filters::-webkit-scrollbar {
	display: none;
}

.sp-collection__filter-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.25rem;
	background: #ffffff;
	border: 1px solid #ebe7e2;
	border-radius: 999px;
	color: var( --global-palette4, #1a1a1a );
	font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	flex: 0 0 auto;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sp-collection__filter-btn:hover,
.sp-collection__filter-btn:focus-visible {
	border-color: #000000;
	color: #000000;
	outline: none;
}

.sp-collection__filter-btn.is-active {
	background: #000000;
	border-color: #000000;
	color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Product Grid & Cards
   -------------------------------------------------------------------------- */

.sp-collection__grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   Bottom View All Action
   -------------------------------------------------------------------------- */

.sp-collection__bottom {
	margin-top: clamp( 2.5rem, 5vw, 4rem );
	text-align: center;
}

.sp-collection__view-all-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 2.5rem;
	background: #ffffff;
	border: 1px solid #e2ddd5;
	border-radius: 999px;
	color: var( --global-palette4, #1a1a1a );
	font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: all 0.2s ease;
}

.sp-collection__view-all-btn:hover,
.sp-collection__view-all-btn:focus-visible {
	background: #000000;
	border-color: #000000;
	color: #ffffff;
}

.sp-collection__legal {
	margin: 1.25rem auto 0;
	max-width: 580px;
	color: #8c857b;
	font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.75rem;
	line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media ( max-width: 1100px ) {
	.sp-collection__grid {
		grid-template-columns: repeat( 3, 1fr );
	}
}

@media ( max-width: 800px ) {
	.sp-collection__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.sp-collection__header-left,
	.sp-collection__header-right {
		flex: 1 1 100%;
		max-width: none;
	}

	.sp-collection__grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 520px ) {
	.sp-collection__grid {
		grid-template-columns: 1fr;
	}
}
