/* Страницата „Марки“ /brand ([lekuva_brands], inc/brands.php): еднакви плочки с логата, 6 / 4 / 3 колони. */
.lkb { --lkb-g: #5e7a16; display: flex; flex-direction: column; gap: 18px; }
.lkb-sec { margin: 0; }
.lkb-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 20px; line-height: 1.25; color: #222; }
.lkb-h-n { font-size: 14px; font-weight: 400; color: #6b7280; }
.lkb-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.lkb-grid > li { margin: 0; min-width: 0; }

.lkb-tile { box-sizing: border-box; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-items: center; row-gap: 2px; height: 118px; padding: 10px 12px 9px; background: #fff; border: 1px solid #e5e7ea; border-radius: 8px; color: #222; text-align: center; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.lkb-tile:hover { border-color: var(--lkb-g); box-shadow: 0 2px 8px rgba(31, 42, 18, .08); color: #222; text-decoration: none; }
.lkb-tile:focus-visible { outline: 2px solid var(--lkb-g); outline-offset: 2px; border-color: var(--lkb-g); }
.lkb-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.lkb-logo img { display: block; width: auto; height: var(--lkb-h, 36px); max-width: 78%; max-height: 60px; object-fit: contain; }
.lkb-name { max-width: 100%; overflow: hidden; font-size: 13px; line-height: 1.3; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.lkb-n { font-size: 12px; line-height: 1.3; color: #6b7280; }
.lkb-tile:hover .lkb-name { color: var(--lkb-g); }

/* Без лого: името с удебелен шрифт на мястото на логото, до 2 реда */
.lkb-logo--text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.25; font-weight: 700; letter-spacing: .01em; }
.lkb-tile--text:hover .lkb-logo--text span { color: var(--lkb-g); }

/* Най-търсени: по-високи плочки, по-големи лога */
.lkb-grid--top .lkb-tile { height: 140px; padding-top: 12px; }
.lkb-grid--top .lkb-logo img { max-height: 72px; }
.lkb-grid--top .lkb-name { font-size: 14px; }

/* Запълване на последния ред: плочка към всички продукти */
.lkb-fill { grid-column: span var(--lkb-fd); }
.lkb-fill.lkb-no-d { display: none; }
.lkb-tile--all { grid-template-rows: auto auto; align-content: center; background: #f5f6f7; border-color: transparent; }
.lkb-all-h { font-size: 15px; font-weight: 700; color: var(--lkb-g); }
.lkb-tile--all:hover .lkb-all-h { text-decoration: underline; }

.lkb-picks .products { margin-bottom: 0; }

@media (max-width: 1024px) {
	.lkb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lkb-grid--top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lkb-fill { grid-column: span var(--lkb-ft); display: block; }
	.lkb-fill.lkb-no-t { display: none; }
}
@media (max-width: 600px) {
	.lkb { gap: 14px; }
	.lkb-h { font-size: 17px; margin-bottom: 8px; }
	.lkb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.lkb-tile { height: 104px; padding: 8px 6px 7px; }
	.lkb-grid--top .lkb-tile { height: 112px; }
	.lkb-logo img { max-width: 86%; max-height: 44px; height: calc(var(--lkb-h, 36px) * .8); }
	.lkb-grid--top .lkb-logo img { max-height: 50px; }
	.lkb-name { font-size: 12px; }
	.lkb-grid--top .lkb-name { font-size: 12px; }
	.lkb-n { font-size: 11px; }
	.lkb-logo--text span { font-size: 14px; }
	.lkb-fill { grid-column: span var(--lkb-fm); display: block; }
	.lkb-fill.lkb-no-m { display: none; }
	.lkb-all-h { font-size: 14px; }
	.lkb-picks .wd-product:nth-child(n+7) { display: none; } /* телефон: 6 продукта (3 реда), не 12 */
}
@media (prefers-reduced-motion: reduce) { .lkb-tile { transition: none; } }
