/* ShopCore Product and Content Archives */

.shopcore-archive-page,
.shopcore-content-page {
	padding: 42px 0 76px;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.shopcore-archive-page .sc-container,
.shopcore-content-page .sc-container {
	width: min(100% - 32px, var(--container-width));
}

/* Top Branding / Promotional Banner */
.shopcore-archive-top-banner {
	width: 100%;
	aspect-ratio: 14 / 3;
	max-height: 300px;
	margin-bottom: 28px;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	background: #0f172a;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
}

.shopcore-archive-banner-link,
.shopcore-archive-banner-inner {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	overflow: hidden;
}

.shopcore-archive-top-banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease, opacity 0.25s ease;
}

.shopcore-archive-banner-link:hover img {
	transform: scale(1.02);
	opacity: 0.96;
}

.shopcore-archive-header,
.shopcore-content-header {
	margin-bottom: 30px;
}

.shopcore-archive-eyebrow,
.shopcore-content-header span {
	display: block;
	margin-bottom: 7px;
	color: #ef1d25;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.shopcore-archive-header h1,
.shopcore-content-header h1 {
	margin: 0;
	color: #0f172a;
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.15;
}

.shopcore-archive-description {
	max-width: 720px;
	margin-top: 10px;
	color: #64748b;
	font-size: 14px;
	line-height: 1.7;
}

.shopcore-archive-description p {
	margin: 0;
}

.shopcore-archive-layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.shopcore-archive-results {
	min-width: 0;
}

.shopcore-archive-filter {
	position: sticky;
	top: 20px;
	padding: 18px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.shopcore-filter-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e2e8f0;
}

.shopcore-filter-header h2 {
	margin: 0;
	color: #0f172a;
	font-size: 17px;
}

.shopcore-filter-close,
.shopcore-filter-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
}

.shopcore-filter-close {
	width: 30px;
	height: 30px;
	background: #f1f5f9;
	color: #64748b;
}

.shopcore-filter-open {
	display: none;
	min-height: 38px;
	padding: 8px 13px;
	background: #0f172a;
	color: #ffffff;
}

.shopcore-filter-group {
	margin-bottom: 18px;
}

.shopcore-filter-group label,
.shopcore-filter-label {
	display: block;
	margin-bottom: 7px;
	color: #334155;
	font-size: 12px;
	font-weight: 700;
}

.shopcore-filter-group select {
	width: 100%;
	min-height: 38px;
	padding: 7px 9px;
	border: 1px solid #cbd5e1;
	border-radius: 5px;
	background: #ffffff;
	color: #334155;
	font-size: 12px;
}

/* ======================================================
 * Modern Dual-Range Price Slider
 * ====================================================== */
.shopcore-filter-price-group {
	padding-bottom: 4px;
}

.shopcore-price-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.shopcore-price-header .shopcore-filter-label {
	margin-bottom: 0;
}

.shopcore-price-display {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #f8fafc;
	color: #0f172a;
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.shopcore-price-separator {
	color: #94a3b8;
	font-weight: 400;
}

.shopcore-dual-slider-wrap {
	position: relative;
	width: 100%;
	height: 28px;
	display: flex;
	align-items: center;
}

.shopcore-slider-track {
	position: absolute;
	left: 0;
	right: 0;
	height: 6px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
	pointer-events: none;
}

.shopcore-slider-progress {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0%;
	width: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #ef1d25 0%, #ff4757 100%);
	pointer-events: none;
}

.shopcore-range-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	outline: none;
}

/* Chrome / Safari / Edge Range Thumb */
.shopcore-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	border: 2.5px solid #ef1d25;
	box-shadow: 0 2px 6px rgba(239, 29, 37, 0.35);
	cursor: grab;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shopcore-range-input::-webkit-slider-thumb:hover,
.shopcore-range-input::-webkit-slider-thumb:active {
	cursor: grabbing;
	transform: scale(1.18);
	box-shadow: 0 0 0 5px rgba(239, 29, 37, 0.18), 0 3px 8px rgba(239, 29, 37, 0.4);
}

/* Firefox Range Thumb */
.shopcore-range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	border: 2.5px solid #ef1d25;
	box-shadow: 0 2px 6px rgba(239, 29, 37, 0.35);
	cursor: grab;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shopcore-range-input::-moz-range-thumb:hover,
.shopcore-range-input::-moz-range-thumb:active {
	cursor: grabbing;
	transform: scale(1.18);
	box-shadow: 0 0 0 5px rgba(239, 29, 37, 0.18), 0 3px 8px rgba(239, 29, 37, 0.4);
}

.shopcore-range-input::-moz-range-track {
	background: transparent;
	border: none;
}

.shopcore-slider-bounds {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 500;
	color: #94a3b8;
}

/* Term count in checkboxes (Brand, categories) */
.shopcore-term-count {
	margin-left: auto;
	color: #94a3b8;
	font-size: 11px;
	font-weight: 500;
}

/* Filter Label Icons - Universal */
.shopcore-filter-label i,
.shopcore-filter-group label i,
.shopcore-filter-header h2 i {
	color: #ef1d25;
	margin-right: 7px;
	font-size: 13px;
	width: 16px;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Brand Quick Search Input */
.shopcore-filter-search-wrap {
	position: relative;
	margin-bottom: 10px;
}

.shopcore-brand-search-input {
	width: 100%;
	height: 32px;
	padding: 6px 28px 6px 10px;
	font-size: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #f8fafc;
	color: #334155;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.shopcore-brand-search-input:focus {
	background: #ffffff;
	border-color: #ef1d25;
	outline: none;
	box-shadow: 0 0 0 2px rgba(239, 29, 37, 0.12);
}

.shopcore-filter-search-wrap i {
	position: absolute;
	right: 9px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 11px;
	pointer-events: none;
	margin: 0;
	width: auto;
}

.shopcore-filter-apply {
	width: 100%;
	min-height: 40px;
	border: 0;
	border-radius: 6px;
	background: #ef1d25;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.shopcore-filter-reset {
	display: block;
	margin-top: 12px;
	color: #64748b;
	font-size: 12px;
	text-align: center;
}

.shopcore-filter-reset-wrap {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #f1f5f9;
}

.shopcore-filter-reset-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 8px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.shopcore-filter-reset-btn:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #ef1d25;
}

.shopcore-check-option {
	display: flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px !important;
	color: #64748b !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	cursor: pointer;
	transition: color 0.15s ease;
}

.shopcore-check-option:hover {
	color: #0f172a !important;
}

.shopcore-check-option input {
	width: 14px;
	height: 14px;
	margin: 0;
	accent-color: #ef1d25;
}

.shopcore-filter-check-group,
.shopcore-filter-check-list {
	max-height: 230px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.shopcore-filter-check-group::-webkit-scrollbar,
.shopcore-filter-check-list::-webkit-scrollbar {
	width: 4px;
}

.shopcore-filter-check-group::-webkit-scrollbar-track,
.shopcore-filter-check-list::-webkit-scrollbar-track {
	background: transparent;
}

.shopcore-filter-check-group::-webkit-scrollbar-thumb,
.shopcore-filter-check-list::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.shopcore-filter-check-group::-webkit-scrollbar-thumb:hover,
.shopcore-filter-check-list::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

.shopcore-filter-backdrop {
	display: none;
}

.shopcore-archive-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #ffffff;
}

.shopcore-archive-result-count {
	color: #64748b;
	font-size: 13px;
}

.shopcore-archive-toolbar .shopcore-archive-ordering {
	margin: 0;
}

.shopcore-archive-toolbar .shopcore-archive-ordering select {
	min-height: 36px;
	padding: 7px 30px 7px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 5px;
	background: #ffffff;
	color: #334155;
	font-size: 12px;
}

.shopcore-archive-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.shopcore-archive-grid.is-loading {
	opacity: .45;
	pointer-events: none;
}

.shopcore-archive-grid .shopcore-product-card {
	height: 100%;
}

.shopcore-archive-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 34px;
}

.shopcore-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #ffffff;
	color: #334155;
	font-size: 13px;
}

.shopcore-archive-pagination .page-numbers.current,
.shopcore-archive-pagination .page-numbers:hover {
	border-color: #ef1d25;
	background: #ef1d25;
	color: #ffffff;
}

.shopcore-archive-empty {
	padding: 70px 20px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: #ffffff;
	text-align: center;
}

.shopcore-archive-empty i {
	color: #ef1d25;
	font-size: 32px;
}

.shopcore-archive-empty h2 {
	margin: 14px 0 7px;
	color: #0f172a;
	font-size: 22px;
}

.shopcore-archive-empty p {
	margin: 0 0 18px;
	color: #64748b;
	font-size: 14px;
}

.shopcore-archive-empty-link {
	display: inline-flex;
	padding: 10px 16px;
	border-radius: 6px;
	background: #ef1d25;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
}

.shopcore-content-header {
	padding-bottom: 18px;
	border-bottom: 1px solid #e2e8f0;
}

.shopcore-post-archive {
	display: grid;
	gap: 16px;
}

.shopcore-post-item {
	padding: 22px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #ffffff;
}

.shopcore-post-item h2 {
	margin: 0 0 8px;
	font-size: 20px;
}

.shopcore-post-item h2 a:hover {
	color: #ef1d25;
}

.shopcore-post-item p:last-child {
	margin-bottom: 0;
}

@media (max-width: 1100px) {
	.shopcore-archive-top-banner {
		margin-bottom: 22px;
	}

	.shopcore-archive-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.shopcore-filter-open {
		display: inline-flex;
		margin-bottom: 14px;
	}

	.shopcore-archive-filter {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 10000;
		width: min(340px, 88vw);
		height: 100vh;
		padding: 22px;
		border: 0;
		border-radius: 0;
		transform: translateX(-105%);
		transition: transform .25s ease;
		overflow-y: auto;
	}

	.shopcore-archive-filter.is-open {
		transform: translateX(0);
	}

	.shopcore-filter-backdrop {
		position: fixed;
		inset: 0;
		z-index: 9999;
		background: rgba(15, 23, 42, .48);
		opacity: 0;
		visibility: hidden;
		transition: opacity .25s ease, visibility .25s ease;
	}

	.shopcore-filter-backdrop.is-visible {
		display: block;
		opacity: 1;
		visibility: visible;
	}

	body.shopcore-filters-open {
	overflow: hidden;
	}

	.shopcore-archive-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.shopcore-archive-top-banner {
		aspect-ratio: 14 / 3;
		height: auto;
		margin-bottom: 18px;
		border-radius: 8px;
	}

	.shopcore-archive-page,
	.shopcore-content-page {
		padding: 26px 0 48px;
	}

	.shopcore-archive-page .sc-container,
	.shopcore-content-page .sc-container {
		width: min(100% - 20px, var(--container-width));
	}

	.shopcore-archive-header,
	.shopcore-content-header {
		margin-bottom: 22px;
	}

	.shopcore-archive-header h1,
	.shopcore-content-header h1 {
		font-size: 28px;
	}

	.shopcore-archive-toolbar {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
	}

	.shopcore-filter-open {
		width: 100%;
	}

	.shopcore-archive-toolbar .shopcore-archive-ordering,
	.shopcore-archive-toolbar .shopcore-archive-ordering select {
		width: 100%;
	}

	.shopcore-archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.shopcore-archive-grid .shopcore-product-card-image {
		height: 170px;
		padding: 12px;
	}

	.shopcore-archive-grid .shopcore-product-card-content {
		padding: 12px;
	}

	.shopcore-archive-grid .shopcore-product-title {
		font-size: 14px;
		min-height: 42px;
	}

	.shopcore-archive-grid .shopcore-product-sale-price,
	.shopcore-archive-grid .shopcore-product-current-price {
		font-size: 16px;
	}
}

@media (max-width: 380px) {
	.shopcore-archive-top-banner {
		aspect-ratio: 14 / 3;
		height: auto;
		margin-bottom: 14px;
		border-radius: 6px;
	}

	.shopcore-archive-grid {
		gap: 9px;
	}

	.shopcore-archive-grid .shopcore-product-card-image {
		height: 145px;
	}
}
