/* Alkategória-csempés oldalak (bolt gyökér és kategóriák): szellős rács. Asztalon 4–5 oszlop, tableten 3–4, mobilon 2.
   A hézag (30 / 22 / 15 px) nagyobb a hover-árnyéknál és a fókusz-keretnél, így azok nem lógnak a szomszéd csempébe. */
.mxw-sub { margin: 32px 0 44px; }
.mxw-sub--few { margin: 32px 0 40px; }
.mxw-sub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
.mxw-sub__grid > li { min-width: 0; }
.mxw-sub__tile { display: flex; flex-direction: column; height: 100%; padding: 14px 14px 18px; border: 1.5px solid var(--mx-line, #e4dfd3); border-radius: 22px; background: #fff; color: var(--mx-ink, #293126); text-decoration: none; transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.mxw-sub__tile:hover, .mxw-sub__tile:focus-visible { border-color: var(--mx-ink, #293126); box-shadow: 0 4px 12px rgba(41, 49, 38, 0.1); }
.mxw-sub__tile:focus-visible { outline: 3px solid var(--mx-ring, #b4706c); outline-offset: 2px; }
.mxw-sub__media { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--mx-sand, #eeeae0); }
.mxw-sub__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mxw-sub__ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--mx-sage, #e3eadb); color: var(--mx-green, #4e5e43); font-size: 44px; font-weight: 700; }
.mxw-sub__name { margin-top: 13px; padding: 0 4px; font-size: 16px; font-weight: 700; line-height: 1.25; }
.mxw-sub__n { margin-top: 5px; padding: 0 4px; color: var(--mx-muted, #656b60); font-size: 13px; font-weight: 600; }
.mxw-sub__tile--own { border-style: dashed; }
.mxw-sub__all { margin: 32px 0 0; text-align: center; }
.mxw-sub__all--top { margin: 0 0 30px; }
.mxw-sub__alllink { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border: 1.5px solid var(--mx-ink, #293126); border-radius: 999px; color: var(--mx-ink, #293126); font-weight: 700; text-decoration: none; }
.mxw-sub__alllink:hover, .mxw-sub__alllink:focus-visible { background: var(--mx-ink, #293126); color: #fff; }
.mxw-sub__alllink:focus-visible { outline: 3px solid var(--mx-ring, #b4706c); outline-offset: 3px; }
.mxw-sub__pager { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 32px 0 8px; }
.mxw-sub__pg { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--mx-line, #e4dfd3); border-radius: 999px; background: #fff; color: var(--mx-ink, #293126); font-weight: 700; text-decoration: none; }
.mxw-sub__pg:hover, .mxw-sub__pg:focus-visible { border-color: var(--mx-ink, #293126); }
.mxw-sub__pg.is-current { border-color: var(--mx-green, #4e5e43); background: var(--mx-sage, #e3eadb); }
.mxw-sub__sum { margin: 0; color: var(--mx-muted, #656b60); font-size: 13px; text-align: center; }
.mxw-subback { margin: 8px 0 20px; }
.mxw-subback a { color: var(--mx-green, #4e5e43); font-weight: 700; }
@media (max-width: 1099px) {
	.mxw-sub__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
}
@media (max-width: 767px) {
	.mxw-sub, .mxw-sub--few { margin: 20px 0 28px; }
	.mxw-sub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
	.mxw-sub__tile { padding: 11px 11px 15px; border-radius: 18px; }
	.mxw-sub__media { border-radius: 13px; }
	.mxw-sub__name { margin-top: 12px; font-size: 14.5px; }
	.mxw-sub__all { margin-top: 20px; }
	.mxw-sub__all--top { margin-bottom: 20px; }
	.mxw-sub__pager { margin-top: 20px; }
}
