/**
 * Engagement Ring Archive Filters
 *
 * Dedicated stylesheet for the Price + Diamond Shape filter bar shown above
 * the product grid on the Engagement Rings, Lab Grown Engagement Rings, and
 * Natural Diamond Engagement Rings category archives only (see
 * inc/engagement-ring-filters-functions.php). Self-contained -- does not
 * depend on homepage.css or style.css, and does not touch any existing
 * archive/product-card selectors ([data-products], .product, etc.).
 */

.eternity-erf {
	--eternity-erf-navy: #0D2A4D;
	--eternity-erf-navy-deep: #10243D;
	--eternity-erf-tan-hover: #B8894A;
	--eternity-erf-text: #1B1B1B;
	--eternity-erf-beige: #F8F5F1;
	--eternity-erf-border: #E6E6E6;
	--eternity-erf-white: #FFFFFF;

	font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: var(--eternity-erf-beige);
	border: 1px solid var(--eternity-erf-border);
	margin: 0 0 40px 0;
	padding: 20px 26px;
	box-sizing: border-box;
}

.eternity-erf__toggle {
	display: none;
	width: 100%;
	background: var(--eternity-erf-navy);
	color: var(--eternity-erf-white);
	border: none;
	border-radius: 0;
	padding: 14px 20px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	cursor: pointer;
}

.eternity-erf__panel {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 22px;
	margin: 0;
}

.eternity-erf__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.eternity-erf__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	text-align: center;
	color: var(--eternity-erf-navy-deep);
}

.eternity-erf__price-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
}

.eternity-erf__price-input {
	display: flex;
	align-items: center;
	min-height: 48px;
	background: var(--eternity-erf-white);
	border: 1px solid var(--eternity-erf-border);
	padding: 0 14px;
	box-sizing: border-box;
}

.eternity-erf__currency {
	color: #888;
	font-size: 14px;
	line-height: normal;
	margin-right: 6px;
}

.eternity-erf__price-input input {
	font-family: inherit;
	font-size: 15px;
	line-height: normal;
	color: var(--eternity-erf-text);
	border: none;
	background: transparent;
	padding: 0;
	width: 120px;
	box-sizing: border-box;
	appearance: none;
}

.eternity-erf__price-input input:focus {
	outline: none;
}

.eternity-erf__price-input input::-webkit-outer-spin-button,
.eternity-erf__price-input input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.eternity-erf__field--shape select {
	font-family: inherit;
	font-size: 15px;
	line-height: normal;
	min-height: 48px;
	color: var(--eternity-erf-text);
	background-color: var(--eternity-erf-white);
	border: 1px solid var(--eternity-erf-border);
	border-radius: 0;
	padding: 12px 40px 12px 14px;
	min-width: 200px;
	box-sizing: border-box;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%230D2A4D' d='M5.5 7.5l4.5 4.5 4.5-4.5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.eternity-erf__field--shape select:focus {
	outline: none;
	border-color: var(--eternity-erf-navy);
}

.eternity-erf__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}

.eternity-erf__apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	background-color: var(--eternity-erf-navy);
	color: var(--eternity-erf-white);
	border: 2px solid var(--eternity-erf-navy);
	border-radius: 0;
	padding: 0 30px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	box-sizing: border-box;
}

.eternity-erf__apply:hover {
	background-color: var(--eternity-erf-tan-hover);
	border-color: var(--eternity-erf-tan-hover);
}

.eternity-erf__clear {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	line-height: normal;
	color: #666;
	text-decoration: underline;
	white-space: nowrap;
}

.eternity-erf__clear:hover {
	color: var(--eternity-erf-navy);
}

/* ============================================
   RESPONSIVE -- compact/collapsible on tablet & mobile
   ============================================ */

@media (max-width: 900px) {
	.eternity-erf {
		padding: 18px 20px;
	}

	.eternity-erf__toggle {
		display: block;
	}

	.eternity-erf__panel {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		margin-top: 18px;
	}

	.eternity-erf.is-open .eternity-erf__panel {
		display: flex;
	}

	.eternity-erf__price-inputs {
		flex-wrap: wrap;
	}

	.eternity-erf__price-input {
		flex: 1 1 auto;
	}

	.eternity-erf__price-input input {
		width: 100%;
	}

	.eternity-erf__field--shape select {
		width: 100%;
	}

	.eternity-erf__actions {
		justify-content: space-between;
	}
}
