/* MarMar Filters */
.mm-shop, .mm-filters, .mm-filters-toggle { --mm-accent: #c88a85; --mm-accent-dark: #a96f6a; --mm-soft: #f8f2f1; --mm-line: #eee3e1; --mm-muted: #8a7f83; }
.mm-filters-toggle { display: none; }
.mm-filters__head, .mm-filters__foot { display: none; }

.mm-group { margin: 0 0 22px; }
.mm-group__title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; font-weight: 600; }
.mm-list, .mm-group ul { list-style: none; margin: 0; padding: 0; }
.mm-list li, .mm-group .woocommerce-widget-layered-nav-list__item { margin: 0; }
.mm-group .woocommerce-widget-layered-nav-list__item { display: flex; align-items: center; gap: 8px; }
.mm-group .woocommerce-widget-layered-nav-list__item a { flex: 1; min-width: 0; }
.mm-list a, .mm-group .woocommerce-widget-layered-nav-list__item a { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: inherit; text-decoration: none; font-size: 14px; }
.mm-list a:hover, .mm-group .woocommerce-widget-layered-nav-list__item a:hover { color: var(--mm-accent-dark); }
.mm-count, .mm-group .woocommerce-widget-layered-nav-list__item .count { margin-left: auto; color: var(--mm-muted); font-size: 12px; }
.mm-list small { color: var(--mm-muted); }

/* «Галочка» для фильтров */
.mm-list--check a::before, .mm-group .woocommerce-widget-layered-nav-list__item a::before {
	content: ""; flex: 0 0 16px; width: 16px; height: 16px; border: 1.5px solid #cdbcb9; border-radius: 4px; background: #fff; }
.mm-list--check .is-active a::before, .mm-group .woocommerce-widget-layered-nav-list__item--chosen a::before {
	background: var(--mm-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--mm-accent); }
.mm-list .is-active > a { font-weight: 600; color: var(--mm-accent-dark); }

/* Длинные списки (цвета) — с прокруткой */
.mm-group--izvelieties-krasu ul { max-height: 240px; overflow-y: auto; padding-right: 4px; }

.mm-clear a { font-size: 13px; color: var(--mm-accent-dark); }
.mm-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--mm-accent); color: #fff; font-size: 12px; }
.mm-empty { padding: 30px 0; }

/* Компьютер: колонка слева */
@media (min-width: 1000px) {
	.mm-shop { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
	.mm-filters { position: sticky; top: 30px; max-height: calc(100vh - 60px); overflow-y: auto; padding-right: 6px; }
	.mm-shop__main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Телефон и планшет: кнопка + выезжающая панель */
@media (max-width: 999.98px) {
	.mm-filters-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 18px; border: 1px solid var(--mm-accent); border-radius: 999px;
		background: #fff; color: var(--mm-accent-dark); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
	.mm-filters { position: fixed; z-index: 2147483001; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: #fff; display: flex; flex-direction: column;
		transform: translateX(-105%); transition: transform .25s ease; box-shadow: 0 0 30px rgba(0,0,0,.15); }
	.mm-filters.is-open { transform: none; }
	.mm-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--mm-line); }
	.mm-filters__title { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
	.mm-filters__close { background: none; border: 0; font-size: 28px; line-height: 1; width: 40px; height: 40px; cursor: pointer; color: inherit; }
	.mm-filters__body { flex: 1; overflow-y: auto; padding: 18px; }
	.mm-filters__foot { display: block; padding: 12px 18px; border-top: 1px solid var(--mm-line); }
	.mm-filters__apply { width: 100%; padding: 12px; border: 0; border-radius: 999px; background: var(--mm-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
	.mm-filters-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 2147483000; background: rgba(40, 25, 30, .35); }
	.mm-list a, .mm-group .woocommerce-widget-layered-nav-list__item a { padding: 9px 0; }
}
/* Пока панель открыта, прячем плавающие кнопки (чат и т.п.), чтобы не перекрывали «Rādīt preces» */
body.mm-filters-active #marmar-ai-root, body.mm-filters-active .mmchat, body.mm-filters-active .ct-back-to-top { display: none !important; }
@media (prefers-reduced-motion: reduce) { .mm-filters { transition: none; } }
