/**
 * mp-AdvancedSearch Premium Responsive Stylesheet
 * Scoped under .mpas-* to prevent theme styling conflicts
 */

/* Container & Typography Base */
.mpas-unified-wrapper {
	font-family: 'Futura PT', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1a1a1a;
	width: 100%;
	margin: 28px auto 0 auto;
	padding-top: 12px;
	box-sizing: border-box;
}

/* Page header & title spacing under site header bar */
.entry-header,
header.entry-header {
	margin-top: 36px !important;
	padding-top: 24px !important;
	margin-bottom: 24px !important;
}

.entry-title,
.page-title,
h1.entry-title {
	margin-top: 16px !important;
	margin-bottom: 24px !important;
}

.mpas-unified-wrapper *,
.mpas-unified-wrapper *:before,
.mpas-unified-wrapper *:after {
	box-sizing: border-box;
}

/* Search Bar Section */
.mpas-search-box-wrapper {
	position: relative;
	width: 100%;
	margin-bottom: 24px;
}

.mpas-search-input-container {
	position: relative;
	display: flex;
	align-items: center;
	background: #ffffff;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 6px 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	transition: all 0.25s ease;
}

.mpas-search-input-container:focus-within {
	border-color: #1a1a1a;
	box-shadow: 0 4px 16px rgba(26, 26, 26, 0.1);
}

.mpas-search-icon {
	display: flex;
	align-items: center;
	color: #a0aec0;
	margin-right: 12px;
}

.mpas-search-input {
	width: 100%;
	border: none !important;
	outline: none !important;
	font-size: 16px !important;
	padding: 10px 0 !important;
	background: transparent !important;
	color: #1a202c !important;
	box-shadow: none !important;
}

.mpas-search-clear-btn {
	background: none;
	border: none;
	font-size: 22px;
	color: #a0aec0;
	cursor: pointer;
	padding: 0 8px;
	transition: color 0.2s;
}

.mpas-search-clear-btn:hover {
	color: #e53e3e;
}

.mpas-search-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid #e2e8f0;
	border-top-color: #1a1a1a;
	border-radius: 50%;
	animation: mpas-spin 0.8s linear infinite;
	margin-left: 8px;
}

@keyframes mpas-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Premium Redesigned Autocomplete Dropdown */
.mpas-autocomplete-dropdown {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	right: 0;
	background: #0f172a;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 1px rgba(255, 255, 255, 0.1);

	z-index: 9999;
	overflow: hidden;
	max-height: 520px;
	overflow-y: auto;
	padding: 8px;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mpas-auto-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px 8px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8;
}

.mpas-autocomplete-item {
	display: flex;
	align-items: center;
	padding: 12px 14px;
	border-radius: 12px;
	margin-bottom: 4px;
	text-decoration: none;
	color: #f8fafc;
	background: transparent;
	border-left: 3px solid transparent;
	transition: all 0.2s ease;
	position: relative;
}

.mpas-autocomplete-item:last-of-type {
	margin-bottom: 0;
}

.mpas-autocomplete-item:hover,
.mpas-autocomplete-item.focused {
	background: rgba(255, 255, 255, 0.06);
	border-left-color: #38bdf8;
	transform: translateX(3px);
	outline: none;
}

.mpas-auto-thumb-wrapper {
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	margin-right: 16px;
	flex-shrink: 0;
	background: #1e293b;
	position: relative;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mpas-auto-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.mpas-autocomplete-item {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	text-align: left !important;
	padding: 12px 14px !important;
	margin-bottom: 4px !important;
	text-decoration: none !important;
	color: #f8fafc !important;
	background: transparent !important;
	border-left: 3px solid transparent !important;
	transition: all 0.2s ease !important;
	position: relative !important;
}

.mpas-autocomplete-item:last-of-type {
	margin-bottom: 0 !important;
}

.mpas-autocomplete-item:hover,
.mpas-autocomplete-item.focused {
	background: rgba(255, 255, 255, 0.06) !important;
	border-left-color: #38bdf8 !important;
	transform: translateX(3px) !important;
	outline: none !important;
}

.mpas-auto-thumb-wrapper {
	width: 64px !important;
	height: 64px !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	margin-right: 16px !important;
	flex-shrink: 0 !important;
	background: #1e293b !important;
	position: relative !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.mpas-auto-thumb {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.3s ease !important;
}

.mpas-autocomplete-item:hover .mpas-auto-thumb,
.mpas-autocomplete-item.focused .mpas-auto-thumb {
	transform: scale(1.08) !important;
}

.mpas-auto-info {
	flex: 1 !important;
	min-width: 0 !important;
	text-align: left !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
}

.mpas-auto-title {
	font-weight: 600 !important;
	font-size: 13px !important;
	color: #f8fafc !important;
	margin: 0 !important;
	line-height: 1.35 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	text-align: left !important;
	width: 100% !important;
}

.mpas-auto-title strong {
	font-weight: 800;
	color: #fbbf24;
	background: rgba(251, 191, 36, 0.15);
	border-radius: 4px;
	padding: 1px 5px;
}

.mpas-auto-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
}

.mpas-auto-badge {
	background: #1e293b;
	color: #94a3b8;
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 2px 8px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.mpas-stock-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 11px;
}

.mpas-stock-badge.in-stock {
	background: rgba(16, 185, 129, 0.15);
	color: #34d399;
	border: 1px solid rgba(16, 185, 129, 0.25);
}

.mpas-stock-badge.out-of-stock {
	background: rgba(239, 68, 68, 0.15);
	color: #f87171;
	border: 1px solid rgba(239, 68, 68, 0.25);
}

.mpas-stock-badge,
.mpas-auto-price {
	display: none !important;
}

.mpas-auto-view-all {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	margin-top: 8px;
	background: #1a1a1a;
	border-radius: 6px;
	border: 1px solid #1a1a1a;
	color: #ffffff;
	font-family: 'Futura PT', -apple-system, sans-serif;
	font-weight: 600;
	font-size: 13px;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s ease;
}

.mpas-auto-view-all:hover {
	background: #e09628;
	color: #000000;
	border-color: #e09628;
	box-shadow: 0 4px 12px rgba(224, 150, 40, 0.25);
}

.mpas-auto-fallback-notice {
	padding: 12px 16px;
	background: #fffaf0;
	color: #dd6b20;
	font-size: 13px;
	font-weight: 600;
	border-bottom: 1px solid #feebc8;
}

/* Autocomplete positioning & top alignment inside Header Search Modal */
#search-modal {
	align-items: flex-start !important;
	padding-top: 40px !important;
}

#search-modal .search-modal-content {
	position: relative !important;
	overflow: visible !important;
	padding: 0 10px !important;
	margin-top: 0 !important;
	max-width: 900px !important;
	width: 96% !important;
}

#search-modal .search-modal-title {
	font-size: 22px !important;
	margin-bottom: 20px !important;
	letter-spacing: 0.12em !important;
}

#search-modal .search-modal-form {
	position: relative !important;
	overflow: visible !important;
	width: 100% !important;
}

/* Wide full height autocomplete dropdown in search modal (close to the edges/banks) */
#search-modal .mpas-autocomplete-dropdown {
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	max-height: calc(100vh - 170px) !important;
}

@media (max-width: 767px) {
	#search-modal {
		padding-top: 20px !important;
	}

	#search-modal .search-modal-content {
		width: 98% !important;
		padding: 0 4px !important;
	}

	#search-modal .mpas-autocomplete-dropdown {
		max-height: calc(100vh - 130px) !important;
		padding: 6px 4px !important;
		border-radius: 12px !important;
	}

	#search-modal .mpas-autocomplete-item {
		padding: 10px 8px !important;
	}

	#search-modal .mpas-auto-thumb-wrapper {
		width: 52px !important;
		height: 52px !important;
		margin-right: 10px !important;
	}

	#search-modal .mpas-auto-title {
		font-size: 13px !important;
	}
}

/* Scoped Clean Autocomplete for Advanced Search Input */
.mpas-search-box-wrapper .mpas-autocomplete-dropdown {
	background: #ffffff !important;
	border-radius: 14px !important;
	border: 1px solid #cbd5e1 !important;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
	max-height: 380px !important;
	padding: 6px !important;
	top: calc(100% + 8px) !important;
}

.mpas-search-box-wrapper .mpas-auto-header-bar {
	border-bottom: 1px solid #f1f5f9 !important;
	color: #64748b !important;
	padding: 8px 12px 6px 12px !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
}

.mpas-search-box-wrapper .mpas-autocomplete-item,
.mpas-search-box-wrapper .mpas-autocomplete-item.mpas-keyword-item {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 10px 14px !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	transition: background 0.15s ease !important;
	color: #0f172a !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	background: transparent !important;
	border: none !important;
	margin-bottom: 2px !important;
}

.mpas-search-box-wrapper .mpas-autocomplete-item:hover,
.mpas-search-box-wrapper .mpas-autocomplete-item.focused,
.mpas-search-box-wrapper .mpas-autocomplete-item.mpas-keyword-item:hover,
.mpas-search-box-wrapper .mpas-autocomplete-item.mpas-keyword-item.focused {
	background: #f1f5f9 !important;
	color: #000000 !important;
	transform: none !important;
}

.mpas-search-box-wrapper .mpas-kw-search-icon {
	color: #64748b !important;
	flex-shrink: 0 !important;
}

.mpas-search-box-wrapper .mpas-kw-text {
	color: #0f172a !important;
	flex: 1 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	font-family: 'Futura PT', -apple-system, sans-serif !important;
	text-transform: uppercase !important;
	letter-spacing: 0.4px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
}

.mpas-search-box-wrapper .mpas-kw-text strong {
	font-weight: 800 !important;
	color: #000000 !important;
	background: #fef08a !important;
	padding: 1px 4px !important;
	border-radius: 3px !important;
}

.mpas-search-box-wrapper .mpas-auto-title {
	color: #1a1a1a;
}

.mpas-search-box-wrapper .mpas-auto-title strong {
	color: #e09628;
	background: rgba(224, 150, 40, 0.12);
}

.mpas-search-box-wrapper .mpas-auto-price {
	color: #1a1a1a;
	font-weight: 700;
}

.mpas-search-box-wrapper .mpas-auto-view-all {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #ffffff;
}

.mpas-search-box-wrapper .mpas-auto-view-all:hover {
	background: #e09628;
	border-color: #e09628;
	color: #000000;
}

/* Layout Grid & Mobile Toggle */
.mpas-layout-container {
	display: flex;
	gap: 32px;
	position: relative;
}

.mpas-mobile-toggle-bar {
	display: block !important;
	margin-bottom: 20px;
}

.mpas-mobile-filter-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 20px;
	background: #1a202c;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.mpas-mobile-filter-btn:hover {
	background: #2d3748;
}

.mpas-active-badge-count {
	background: #e53e3e;
	color: #ffffff;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 12px;
	font-weight: 700;
}

/* Off-Canvas Filter Drawer (Desktop & Mobile - Slide in from Left) */
.mpas-sidebar-column {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	bottom: 0 !important;
	width: 340px !important;
	max-width: 85vw !important;
	background: #ffffff !important;
	z-index: 99999 !important;
	transform: translateX(-100%) !important;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2) !important;
	overflow-y: auto !important;
}

.mpas-sidebar-column.mpas-drawer-open {
	transform: translateX(0) !important;
}

.mpas-drawer-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background: rgba(0, 0, 0, 0.5) !important;
	backdrop-filter: blur(3px) !important;
	z-index: 99990 !important;
}

.mpas-filter-sidebar {
	background: #ffffff;
	border: none;
	border-radius: 0;
	padding: 24px;
	box-shadow: none;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.mpas-filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 14px;
	border-bottom: 1px solid #edf2f7;
	margin-bottom: 16px;
}

.mpas-filter-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #1a202c;
}

.mpas-drawer-close-btn {
	display: block !important;
	background: none;
	border: none;
	font-size: 24px;
	color: #718096;
	cursor: pointer;
	line-height: 1;
}

/* Filter Groups */
.mpas-filter-group {
	margin-bottom: 20px;
	border-bottom: 1px solid #f7fafc;
	padding-bottom: 16px;
}

.mpas-filter-group:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.mpas-filter-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	font-weight: 700;
	color: #2d3748;
	margin: 0 0 12px 0;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mpas-filter-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mpas-option-label {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #4a5568;
	cursor: pointer;
	transition: color 0.15s ease;
}

.mpas-option-label:hover {
	color: #1a202c;
}

.mpas-filter-checkbox {
	accent-color: #1a1a1a;
	width: 16px;
	height: 16px;
	margin-right: 10px;
	cursor: pointer;
}

.mpas-option-name {
	flex: 1;
}

.mpas-option-count {
	font-size: 12px;
	color: #a0aec0;
	font-weight: 500;
}

.mpas-option-label.disabled {
	opacity: 0.45;
	pointer-events: none;
}

/* Color Swatches Grid */
.mpas-color-swatches-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.mpas-swatch-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	position: relative;
	text-align: center;
}

.mpas-swatch-item input {
	display: none;
}

.mpas-swatch-color {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mpas-swatch-item:hover .mpas-swatch-color {
	transform: scale(1.1);
	border-color: #cbd5e0;
}

.mpas-swatch-item input:checked+.mpas-swatch-color {
	border-color: #1a202c;
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1a202c;
}

.mpas-swatch-check {
	display: none;
	color: #ffffff;
	font-size: 14px;
	font-weight: 900;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.mpas-swatch-item input:checked+.mpas-swatch-color .mpas-swatch-check {
	display: block;
}

.mpas-swatch-label {
	font-size: 11px;
	color: #718096;
	margin-top: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* Range Inputs (Price & Dimensions) */
.mpas-range-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mpas-range-field {
	display: flex;
	align-items: center;
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 4px 8px;
	flex: 1;
}

.mpas-range-field span {
	color: #a0aec0;
	font-size: 13px;
	margin-right: 4px;
}

.mpas-range-field input,
.mpas-dimension-inputs input {
	width: 100%;
	border: none;
	background: transparent;
	font-size: 13px;
	outline: none;
	color: #2d3748;
}

.mpas-range-sep {
	color: #a0aec0;
}

.mpas-unit-toggle {
	display: flex;
	margin-bottom: 12px;
	background: #edf2f7;
	border-radius: 6px;
	padding: 2px;
}

.mpas-unit-btn {
	flex: 1;
	border: none;
	background: none;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 0;
	border-radius: 4px;
	cursor: pointer;
	color: #718096;
}

.mpas-unit-btn.active {
	background: #ffffff;
	color: #1a202c;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mpas-dim-label {
	font-size: 12px;
	font-weight: 600;
	color: #718096;
	margin: 0 0 6px 0;
}

/* Toggle Switch (In Stock) */
.mpas-toggle-label {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.mpas-toggle-label input {
	display: none;
}

.mpas-toggle-switch {
	width: 36px;
	height: 20px;
	background: #cbd5e0;
	border-radius: 10px;
	position: relative;
	margin-right: 10px;
	transition: background-color 0.2s ease;
}

.mpas-toggle-switch:before {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #ffffff;
	top: 2px;
	left: 2px;
	transition: transform 0.2s ease;
}

.mpas-toggle-label input:checked+.mpas-toggle-switch {
	background: #1a1a1a;
}

.mpas-toggle-label input:checked+.mpas-toggle-switch:before {
	transform: translateX(16px);
}

.mpas-toggle-text {
	font-size: 14px;
	font-weight: 600;
	color: #2d3748;
}

/* Filter Footer Buttons */
.mpas-filter-footer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	border-top: 1px solid #e2e8f0;
	background: #fff;
	position: sticky;
	bottom: 0;
	z-index: 1;
}

/* Apply Filters Button - Primary CTA */
.mpas-apply-filters-btn {
	width: 100%;
	padding: 13px 16px;
	background: #1a1a1a;
	border: none;
	border-radius: 8px;
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	text-transform: uppercase;
}

.mpas-apply-filters-btn:hover {
	background: #2d2d2d;
}

.mpas-apply-filters-btn:active {
	transform: scale(0.98);
}

/* Pulse glow when filters are selected but not yet applied */
.mpas-apply-filters-btn.mpas-has-pending-filters {
	background: #c8a84b;
	animation: mpas-apply-pulse 1.4s ease-in-out infinite;
}

@keyframes mpas-apply-pulse {

	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(200, 168, 75, 0.5);
	}

	50% {
		box-shadow: 0 0 0 8px rgba(200, 168, 75, 0);
	}
}

/* Clear All Button */
.mpas-clear-all-btn {
	width: 100%;
	padding: 10px;
	background: #edf2f7;
	border: none;
	border-radius: 8px;
	color: #4a5568;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mpas-clear-all-btn:hover {
	background: #e2e8f0;
	color: #1a202c;
}

/* Product Grid & Top Bar */
/* Product Grid & Top Bar (Reference Design Layout) */
.mpas-grid-column {
	flex: 1;
	min-width: 0;
	width: 100%;
}

.mpas-grid-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0 20px 0;
	border-bottom: 1px solid #eaeaea;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 16px;
}

.mpas-top-left-count {
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 1px !important;
	color: #111111 !important;
	text-transform: uppercase !important;
	font-family: 'Futura PT', sans-serif !important;
}

.mpas-quick-tabs-container {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.mpas-quick-tab {
	background: none !important;
	border: none !important;
	padding: 4px 0 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.8px !important;
	color: #666666 !important;
	cursor: pointer;
	text-transform: uppercase !important;
	transition: color 0.2s ease, border-color 0.2s ease;
	border-bottom: 2px solid transparent !important;
	font-family: 'Futura PT', sans-serif !important;
}

.mpas-quick-tab:hover {
	color: #111111 !important;
}

.mpas-quick-tab.active {
	color: #111111 !important;
	font-weight: 700 !important;
	border-bottom: 2px solid #111111 !important;
}

.mpas-top-right-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.mpas-grid-view-switchers {
	display: flex;
	align-items: center;
	gap: 6px;
}

.mpas-grid-view-btn {
	background: none !important;
	border: none !important;
	padding: 4px !important;
	color: #aaaaaa !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.mpas-grid-view-btn:hover,
.mpas-grid-view-btn.active {
	color: #111111 !important;
}

.mpas-filter-trigger-btn {
	background: none !important;
	border: none !important;
	padding: 4px 0 !important;
	color: #111111 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 1px !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	text-transform: uppercase !important;
	font-family: 'Futura PT', sans-serif !important;
	width: auto !important;
}

.mpas-filter-trigger-btn:hover {
	opacity: 0.7;
}

.mpas-sort-wrapper {
	position: relative !important;
	display: inline-block !important;
}

.mpas-sort-trigger {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 20px !important;
	padding: 0 14px 0 14px !important;
	height: 34px !important;
	cursor: pointer !important;
	user-select: none !important;
	transition: all 0.2s ease !important;
}

.mpas-sort-trigger:hover,
.mpas-sort-wrapper.open .mpas-sort-trigger {
	background: #ffffff !important;
	border-color: #111111 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.mpas-sort-selected-text {
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.6px !important;
	color: #111111 !important;
	text-transform: uppercase !important;
	font-family: 'Futura PT', -apple-system, sans-serif !important;
	white-space: nowrap !important;
}

.mpas-sort-chevron {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	transform: none !important;
	display: inline-block !important;
	flex-shrink: 0 !important;
	color: #111111 !important;
	transition: transform 0.2s ease !important;
}

.mpas-sort-wrapper.open .mpas-sort-chevron {
	transform: rotate(180deg) !important;
}

.mpas-sort-dropdown-menu {
	position: absolute !important;
	top: calc(100% + 6px) !important;
	right: 0 !important;
	min-width: 200px !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
	z-index: 99999 !important;
	overflow: hidden !important;
	padding: 6px 0 !important;
}

.mpas-sort-option-item {
	padding: 12px 18px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.6px !important;
	color: #475569 !important;
	text-transform: uppercase !important;
	font-family: 'Futura PT', -apple-system, sans-serif !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
	white-space: nowrap !important;
}

.mpas-sort-option-item:hover {
	background-color: #f8fafc !important;
	color: #0f172a !important;
}

.mpas-sort-option-item.active {
	background-color: #f1f5f9 !important;
	color: #000000 !important;
	font-weight: 800 !important;
}

.mpas-active-chips-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mpas-chip {
	display: inline-flex;
	align-items: center;
	background: #1a1a1a;
	border: 1px solid #1a1a1a;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 16px;
	font-family: 'Futura PT', sans-serif;
	text-transform: uppercase;
}

.mpas-chip-remove {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 14px;
	margin-left: 6px;
	cursor: pointer;
	line-height: 1;
	opacity: 0.8;
}

/* Products Grid Container */
.mpas-grid-container {
	position: relative;
	min-height: 300px;
}

.mpas-grid-loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.mpas-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e2e8f0;
	border-top-color: #1a1a1a;
	border-radius: 50%;
	animation: mpas-spin 0.8s linear infinite;
}

.mpas-products-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 5px !important;
	width: 100% !important;
}

.mpas-products-grid.mpas-grid-3col {
	grid-template-columns: repeat(3, 1fr) !important;
}

/* Product Card Styling (Reference Design Stage Presentation) */
.mpas-product-card {
	background: #ffffff !important;
	border: 1px solid #f2f2f2 !important;
	border-radius: 4px !important;
	overflow: hidden !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease !important;
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
}

.mpas-product-card:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
}

.mpas-card-image-wrap {
	position: relative !important;
	width: 100% !important;
	height: 394px !important;
	min-height: 394px !important;
	background: #fafafa !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	overflow: hidden !important;
}

.mpas-card-image-wrap a {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	cursor: pointer !important;
}

.mpas-card-image-wrap img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	transform: scale(1.01) !important;
	transition: transform 0.4s ease !important;
}

.mpas-product-card:hover .mpas-card-image-wrap img {
	transform: scale(1.04) !important;
}

/* Pinterest for WooCommerce Save Button Hover Visibility */
.mpas-product-card:hover .pinterest-for-woocommerce-image-wrapper,
.mpas-card-image-wrap:hover .pinterest-for-woocommerce-image-wrapper {
	opacity: 1 !important;
	visibility: visible !important;
}

.mpas-product-card:hover .pinterest-for-woocommerce-image-wrapper a,
.mpas-card-image-wrap:hover .pinterest-for-woocommerce-image-wrapper a {
	text-decoration: none !important;
}

.mpas-card-details {
	padding: 14px 12px 18px 12px !important;
	text-align: left !important;
	display: flex !important;
	flex-direction: column !important;
}

.mpas-card-title {
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	color: #111111 !important;
	margin: 0 0 4px 0 !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	display: block !important;
	font-family: 'Futura PT', sans-serif !important;
}

.mpas-card-title a {
	color: #111111 !important;
	text-decoration: none !important;
}

.mpas-card-footer {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	margin-top: 8px !important;
	gap: 8px !important;
}

.mpas-card-price-line {
	font-size: 11px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	color: #555555 !important;
	font-family: 'Futura PT', sans-serif !important;
}

.mpas-view-btn,
button.mpas-view-btn,
.mpas-view-btn.quick-view-btn {
	background-color: #1a1a1a !important;
	color: #ffffff !important;
	border: 1px solid #1a1a1a !important;
	font-family: 'Futura PT', -apple-system, sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	padding: 8px 16px !important;
	border-radius: 4px !important;
	cursor: pointer !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.mpas-view-btn:hover,
button.mpas-view-btn:hover,
.mpas-view-btn.quick-view-btn:hover {
	background-color: #e09628 !important;
	border-color: #e09628 !important;
	color: #000000 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 10px rgba(224, 150, 40, 0.25) !important;
}

/* Ensure Loading Spinner Dots inside buttons are White */
.atc-spinner-dots span,
.mpas-view-btn .atc-spinner-dots span,
.loading .atc-spinner-dots span {
	background-color: #ffffff !important;
}

.mpas-view-btn:hover .atc-spinner-dots span,
button.mpas-view-btn:hover .atc-spinner-dots span {
	background-color: #000000 !important;
}

/* No Results State */
.mpas-no-results {
	text-align: center;
	padding: 48px 24px;
	background: #ffffff;
	border: 1px dashed #cbd5e0;
	border-radius: 12px;
}

.mpas-no-results-icon {
	font-size: 48px;
	margin-bottom: 12px;
}

.mpas-no-results h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #1a202c;
}

.mpas-no-results p {
	color: #718096;
	margin: 0 0 20px 0;
}

/* Pagination */
.mpas-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 36px;
	padding: 16px 0;
}

.mpas-page-btn,
a.mpas-page-btn {
	background: #ffffff;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
	font-family: 'Futura PT', sans-serif;
	text-decoration: none !important;
}

.mpas-page-btn:hover {
	border-color: #1a1a1a;
	color: #1a1a1a;
	background: #f5f5f5;
}

.mpas-page-btn.active {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mpas-pagination-dots {
	color: #a0aec0;
	font-weight: 700;
	font-size: 16px;
	padding: 0 4px;
	user-select: none;
}

/* Responsive Adjustments for Mobile Devices (< 768px) */
@media (max-width: 767px) {

	/* Reduce top white space gap above search title on mobile */
	.entry-header,
	header.entry-header {
		margin-top: 10px !important;
		padding-top: 0 !important;
		margin-bottom: 12px !important;
	}

	.entry-title,
	.page-title,
	h1.entry-title {
		margin-top: 0 !important;
		margin-bottom: 12px !important;
		font-size: 20px !important;
	}

	.mpas-unified-wrapper {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}

	/* Single horizontal row layout matching user design screenshot */
	.mpas-grid-top-bar {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 6px !important;
		padding: 10px 0 !important;
		margin-bottom: 16px !important;
		width: 100% !important;
	}

	.mpas-top-left-filter {
		display: flex !important;
		align-items: center !important;
		flex-shrink: 0 !important;
	}

	.mpas-top-right-actions {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		flex-shrink: 0 !important;
	}

	.mpas-sort-wrapper {
		position: relative !important;
		display: inline-block !important;
	}

	.mpas-sort-trigger {
		height: 28px !important;
		padding: 0 10px 0 10px !important;
		border-radius: 16px !important;
		gap: 4px !important;
	}

	.mpas-sort-selected-text {
		font-size: 10px !important;
		letter-spacing: 0.4px !important;
	}

	.mpas-sort-dropdown-menu {
		min-width: 180px !important;
		top: calc(100% + 4px) !important;
	}

	.mpas-sort-option-item {
		padding: 10px 14px !important;
		font-size: 10px !important;
		letter-spacing: 0.4px !important;
	}

	.mpas-sort-chevron {
		position: relative !important;
		top: auto !important;
		right: auto !important;
		transform: none !important;
		flex-shrink: 0 !important;
		width: 9px !important;
		height: 9px !important;
	}

	.mpas-sort-wrapper.open .mpas-sort-chevron {
		transform: rotate(180deg) !important;
	}

	.mpas-active-chips-container {
		width: 100% !important;
		flex: none !important;
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 8px !important;
	}

	/* 2 columns on mobile devices */
	.mpas-products-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 5px !important;
		width: 100% !important;
	}

	.mpas-card-image-wrap {
		height: 220px !important;
		min-height: 29.2vh !important;
	}

	.mpas-product-card {
		width: 100% !important;
		margin: 0 auto !important;
	}

	.mpas-card-details {
		padding: 10px 8px !important;
	}

	.mpas-card-title {
		font-size: 11px !important;
		margin-bottom: 2px !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
	}

	.mpas-card-footer {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 4px !important;
		margin-top: 6px !important;
	}

	.mpas-card-price-line {
		font-size: 10px !important;
		font-weight: 600 !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		flex: 1 !important;
		min-width: 0 !important;
	}

	.mpas-view-btn,
	button.mpas-view-btn,
	.mpas-view-btn.quick-view-btn {
		font-size: 11px !important;
		padding: 6px 10px !important;
		white-space: nowrap !important;
		flex-shrink: 0 !important;
		line-height: 1 !important;
	}
}