.ma-shop,
.ma-shop * {
	box-sizing: border-box;
}

.ma-shop {
	--ma-shop-accent: #1e5b46;
	--ma-shop-border: #e3e8e5;
	--ma-shop-muted: #64716b;
	width: 100%;
	max-width: 1480px;
	margin: 0 auto;
	padding: clamp(18px, 3.5vw, 48px);
	display: grid;
	grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
	align-items: start;
	gap: clamp(24px, 3vw, 44px);
	color: #202722;
}

.ma-shop .ma-filter {
	position: sticky;
	top: 100px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--ma-shop-border);
	border-radius: 14px;
	box-shadow: 0 8px 26px rgb(25 45 35 / 6%);
}

.ma-shop .ma-filter h3 {
	margin: 0 0 22px;
	font-size: 1.2rem;
	line-height: 1.3;
}

.ma-shop .ma-filter-group {
	display: grid;
	gap: 8px;
	margin-bottom: 20px;
}

.ma-shop .ma-filter-group > label,
.ma-shop .ma-filter-group > span {
	color: #35423b;
	font-size: 0.9rem;
	font-weight: 600;
}

.ma-shop input,
.ma-shop select,
.ma-shop button {
	max-width: 100%;
	font: inherit;
}

.ma-shop .ma-filter input[type="search"],
.ma-shop .ma-filter select {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	color: #202722;
	background-color: #fff;
	border: 1px solid #cfd8d2;
	border-radius: 8px;
}

.ma-shop .ma-filter input[type="search"]:focus,
.ma-shop .ma-filter select:focus {
	border-color: var(--ma-shop-accent);
	outline: 3px solid rgb(30 91 70 / 14%);
}

.ma-shop .ma-price-range {
	position: relative;
	height: 32px;
	margin: 5px 8px 0;
}

.ma-shop .ma-price-track {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: 4px;
	transform: translateY(-50%);
	background: #dce5df;
	border-radius: 999px;
}

.ma-shop #ma-price-range-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	display: block;
	background: var(--ma-shop-accent);
	border-radius: inherit;
}

.ma-shop .ma-price-range input[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 32px;
	margin: 0;
	padding: 0;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.ma-shop #ma-price-min {
	z-index: 2;
}

.ma-shop #ma-price-max {
	z-index: 3;
}

.ma-shop .ma-price-range input[type="range"]:focus {
	z-index: 4;
	outline: none;
}

.ma-shop .ma-price-range input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	background: transparent;
}

.ma-shop .ma-price-range input[type="range"]::-moz-range-track {
	height: 4px;
	background: transparent;
}

.ma-shop .ma-price-range input[type="range"]::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	margin-top: -7px;
	appearance: none;
	background: #fff;
	border: 2px solid var(--ma-shop-accent);
	border-radius: 50%;
	box-shadow: 0 1px 5px rgb(0 0 0 / 20%);
	pointer-events: auto;
	cursor: grab;
}

.ma-shop .ma-price-range input[type="range"]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	background: #fff;
	border: 2px solid var(--ma-shop-accent);
	border-radius: 50%;
	box-shadow: 0 1px 5px rgb(0 0 0 / 20%);
	pointer-events: auto;
	cursor: grab;
}

.ma-shop .ma-price-values {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: var(--ma-shop-muted);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
}

.ma-shop #ma-reset {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	color: var(--ma-shop-accent);
	background: #fff;
	border: 1px solid var(--ma-shop-accent);
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: color 150ms ease, background-color 150ms ease;
}

.ma-shop #ma-reset:hover {
	color: #fff;
	background: var(--ma-shop-accent);
}

.ma-shop .ma-products {
	min-width: 0;
}

.ma-shop .ma-shop-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
	padding: 4px 0;
	color: var(--ma-shop-muted);
}

.ma-shop .ma-shop-toolbar select {
	min-height: 42px;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid var(--ma-shop-border);
	border-radius: 8px;
}

.ma-shop #ma-product-grid .products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
}

.ma-shop #ma-product-grid .products li.product {
	float: none;
	width: auto;
	margin: 0;
}

.ma-shop .ma-product-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	margin: 0 0 12px;
	color: var(--ma-shop-muted);
	font-size: 0.9rem;
}

.ma-shop .ma-loading-spinner {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	border: 3px solid #dce5df;
	border-top-color: var(--ma-shop-accent);
	border-radius: 50%;
	animation: ma-shop-spin 700ms linear infinite;
}

.ma-shop #ma-product-grid {
	min-height: 80px;
	transition: opacity 150ms ease;
}

.ma-shop #ma-product-grid.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

@keyframes ma-shop-spin {
	to {
		transform: rotate(360deg);
	}
}

.ma-shop #ma-product-grid .onsale {
	display: none !important;
}

.ma-shop .ma-filter-toggle {
	display: none;
}

.ma-shop .ma-shop-message {
	grid-column: 1 / -1;
}

.ma-shop .ma-shop-status,
.ma-shop .ma-shop-error {
	margin: 0 0 14px;
	font-size: 0.9rem;
}

.ma-shop .ma-shop-status {
	color: var(--ma-shop-muted);
}

.ma-shop .ma-shop-error {
	color: #a32626;
}

.ma-shop #ma-product-grid .products li.product .ma-product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.ma-shop #ma-product-grid .products li.product a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 16px;
	color: #fff !important;
	background: #ff5d00 !important;
	border: 1px solid #ff5d00 !important;
	border-radius: 999px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.ma-shop #ma-product-grid .products li.product .ma-product-actions a.button {
	flex: 1 1 120px;
	margin: 0;
}

.ma-shop #ma-product-grid .products li.product a.button:hover,
.ma-shop #ma-product-grid .products li.product a.button:focus-visible {
	color: #fff !important;
	background: #e65300 !important;
	border-color: #e65300 !important;
}

.ma-shop #ma-load-more {
	margin-top: 18px;
	padding: 10px 18px;
	color: #fff;
	background: #ff5d00;
	border: 1px solid #ff5d00;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
}

.ma-shop #ma-load-more:disabled {
	opacity: 0.65;
	cursor: wait;
}

.ma-shop #ma-load-more-sentinel {
	height: 1px;
}

.ma-shop [hidden] {
	display: none !important;
}

@media (max-width: 1050px) {
	.ma-shop #ma-product-grid .products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

@media (max-width: 767px) {
	.ma-shop {
		display: block;
		padding: 18px 16px 28px;
	}

	.ma-shop .ma-filter-toggle {
		display: block;
		width: 100%;
		min-height: 46px;
		margin-bottom: 14px;
		color: #fff;
		background: var(--ma-shop-accent);
		border: 0;
		border-radius: 8px;
		font-weight: 600;
	}

	.ma-shop .ma-filter {
		position: static;
		top: auto;
		max-height: none;
		overflow: visible;
		display: none;
		margin-bottom: 22px;
		padding: 20px;
	}

	.ma-shop .ma-filter.is-open {
		display: block;
	}

	.ma-shop .ma-shop-toolbar {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.ma-shop .ma-shop-toolbar select {
		width: 100%;
	}

	.ma-shop #ma-product-grid .products {
		gap: 14px 10px;
	}
}
