/* Captain Green — katalog (rozcestník, filtry ve sloupci) */
.cg-hubs { margin: 0 0 18px; }
.cg-hub { margin: 0 0 14px; }
.cg-hub__title { font-weight: 700; font-size: 15px; margin: 0 0 8px; color: #0a0500; }
.cg-hub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.cg-hub__tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 10px; background: #fff; border: 1px solid #e3ece6; border-radius: 10px; text-decoration: none; color: #0a0500; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cg-hub__tile:hover { border-color: #30785A; box-shadow: 0 4px 14px rgba(48,120,90,.12); transform: translateY(-1px); }
.cg-hub__tile.is-on { border-color: #30785A; background: #f6faf7; }
.cg-hub__icon { font-size: 26px; line-height: 1; }
.cg-hub__name { font-weight: 600; font-size: 13px; line-height: 1.2; }
.cg-hub__count { font-size: 11px; color: #5f6b64; }

/* Filtry: vzhled seznamu se zaškrtávátky */
.cg-katalog .cg-filtry { border: 1px solid #d9e6de; border-radius: 10px; background: #fff; padding: 6px 14px 10px; }
.cg-katalog .cg-f-rada { display: block; padding: 8px 0; border-bottom: 1px solid #eef3ef; }
.cg-katalog .cg-f-rada:last-of-type { border-bottom: 0; }
.cg-katalog .cg-f-nadpis { display: block; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #0a0500; margin: 0 0 4px; }
.cg-katalog .cg-f-chip { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 5px 0; background: none; border: 0; border-radius: 0; box-shadow: none; text-align: left; font-size: 13.5px; color: #0a0500; cursor: pointer; min-height: 0; line-height: 1.3; }
.cg-katalog .cg-f-chip::before { content: ""; width: 16px; height: 16px; border: 1.5px solid #b9c9c0; border-radius: 4px; background: #fff; flex: none; transition: background .15s, border-color .15s; }
.cg-katalog .cg-f-chip[aria-pressed="true"]::before { background: #30785A; border-color: #30785A; box-shadow: inset 0 0 0 3px #fff; }
.cg-katalog .cg-f-chip .cg-f-pocet { margin-left: auto; color: #5f6b64; font-size: 12px; }
.cg-katalog .cg-f-spodek { padding-top: 8px; font-size: 13px; color: #5f6b64; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cg-kat-ftoggle { display: none; }

/* Desktop: dvousloupcová mřížka — filtry vlevo (sticky), produkty vpravo */
@media (min-width: 1000px) {
	.cg-kat-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 28px; align-items: start; }
	.cg-kat-grid > * { grid-column: 1 / -1; }
	.cg-kat-grid > .woocommerce-products-header { grid-row: 1; }
	.cg-kat-grid > .woocommerce-notices-wrapper { grid-row: 2; }
	.cg-kat-grid > .cg-hubs { grid-row: 3; }
	.cg-kat-grid > .cg-reco--cat { grid-row: 4; }
	.cg-kat-grid > .cg-kat-ftoggle { grid-row: 5; }
	.cg-kat-grid > .woo-listing-top { grid-column: 2; grid-row: 6; }
	.cg-kat-grid > .cg-filtry { grid-column: 1; grid-row: 6 / span 2; position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow: auto; }
	.cg-kat-grid > ul.products { grid-column: 2; grid-row: 7; }
}
/* Mobil: sbalitelné filtry */
@media (max-width: 999px) {
	.cg-kat-ftoggle { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 10px; padding: 12px 14px; border: 1.5px solid #30785A; border-radius: 8px; background: #fff; color: #245c45; font-weight: 700; font-size: 14px; font-family: inherit; box-shadow: none; min-height: 0; }
	.cg-kat-ftoggle::after { content: "▾"; margin-left: auto; }
	.cg-kat-fopen .cg-kat-ftoggle::after { content: "▴"; }
	.cg-kat-ftoggle__n:not(:empty) { background: #30785A; color: #fff; border-radius: 999px; font-size: 11px; padding: 2px 8px; }
	.cg-kat-grid > .cg-filtry { display: none !important; }
	.cg-kat-grid.cg-kat-fopen > .cg-filtry { display: block !important; margin-bottom: 14px; }
	.cg-hub__grid { grid-template-columns: repeat(3, 1fr); }
}
