.ma-shop {
	padding: 60px 24px 80px;
	background-color: #f7f5f2;
}

.ma-shop__layout {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

/* --- Filter sidebar --- */

.ma-shop__filters {
	flex: 0 0 280px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ma-shop-filter {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 18px 20px;
}

.ma-shop-filter__title {
	color: #3d3636;
	font-size: 1rem;
	font-weight: 800;
	margin: 0 0 12px;
}

.ma-shop-filter__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ma-shop-filter__list--collapsible {
	max-height: 168px;
	overflow: hidden;
}

.ma-shop-filter__list--collapsible.is-expanded {
	max-height: none;
}

.ma-shop-filter__option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #3d3636;
	cursor: pointer;
}

.ma-shop-filter__option span {
	flex: 1;
}

.ma-shop-filter__option em {
	font-style: normal;
	color: #9a9a9a;
	font-size: 0.8rem;
}

.ma-shop-filter__toggle {
	background: none;
	border: none;
	color: #D2232A;
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
	padding: 10px 0 0;
}

.ma-shop-filter__range {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ma-shop-filter__range input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.9rem;
	font-family: inherit;
	box-sizing: border-box;
}

.ma-shop-filter__range span {
	color: #9a9a9a;
}

.ma-shop-filter__prefixed-input {
	position: relative;
	flex: 1;
	display: flex;
}

.ma-shop-filter__prefix {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #9a9a9a;
	font-size: 0.9rem;
	pointer-events: none;
}

.ma-shop-filter__prefixed-input input {
	padding-left: 26px !important;
}

.ma-shop-filter__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ma-shop-filter__apply,
.ma-shop-filter__reset {
	display: block;
	text-align: center;
	padding: 12px 20px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
	border: none;
}

.ma-shop-filter__apply {
	background: #D2232A;
	color: #ffffff;
}

.ma-shop-filter__apply:hover {
	background: #A81B22;
	transform: translateY(-1px);
}

.ma-shop-filter__reset {
	background: #ffffff;
	color: #3d3636;
	border: 1px solid #ddd;
}

.ma-shop-filter__reset:hover {
	border-color: #D2232A;
	color: #D2232A;
}

/* --- Main content --- */

.ma-shop__content {
	flex: 1;
	min-width: 0;
}

.ma-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.ma-shop__count {
	color: #5a5a5a;
	font-size: 0.9rem;
	margin: 0;
}

.ma-shop__sort {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #3d3636;
	font-weight: 600;
}

.ma-shop__sort select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.9rem;
}

.ma-shop__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.ma-shop__empty {
	text-align: center;
	color: #777;
	padding: 60px 20px;
	grid-column: 1 / -1;
}

.ma-shop__pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.ma-shop__page {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	color: #3d3636;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.9rem;
}

.ma-shop__page:hover {
	border-color: #D2232A;
	color: #D2232A;
}

.ma-shop__page.is-active {
	background: #D2232A;
	border-color: #D2232A;
	color: #ffffff;
}

@media (max-width: 900px) {
	.ma-shop__layout {
		flex-direction: column;
	}

	.ma-shop__filters {
		flex: 1 1 auto;
		width: 100%;
	}
}
