/* Редовете под списъците с продукти (inc/list-bottom.php, PLAN ред 117): марки, „Най-търсени в…“, „Разгледани наскоро“.
   Една бяла кутия като картата на списъка (рамка #e5e7ea, 8 px), редовете разделени с тънка линия; плътно като Amazon.
   Картите в слайдера са по-малки от тези в мрежата: снимка, марка, 2 реда име, звезди, цена, доставка; без бутон.
   Еднаква височина: всяко поле пази мястото си (празна марка/оценка/доставка = празен ред с фиксирана височина). */
.lkb { margin: 12px 0 0; padding: 0 16px; background: #fff; border: 1px solid #e5e7ea; border-radius: 8px; color: #222; }
.lkb[hidden], .lkb[data-lkb-wait], .lkb-row[hidden] { display: none; }
.lkb-row { padding: 14px 0 16px; }
.lkb-row + .lkb-row { border-top: 1px solid #e5e7ea; }
.lkb-head { display: flex; align-items: baseline; gap: 14px; min-height: 26px; margin: 0 0 10px; }
.lkb .lkb-h { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; color: #222; }
.lkb-page { margin-inline-start: auto; font-size: 13px; color: #565959; white-space: nowrap; }
.lkb ul { margin: 0; padding: 0; list-style: none; }
.lkb li { margin: 0; }
.lkb a:focus-visible, .lkb button:focus-visible { outline: 2px solid #5e7a16; outline-offset: 2px; }

/* 1) Марки: три широки плочки — снимка на продукта вляво, вдясно лого (или име), брой и връзка. */
.lkb-bts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lkb-bt { display: grid; grid-template-columns: 136px minmax(0, 1fr); min-height: 136px; border: 1px solid #e5e7ea; border-radius: 8px; overflow: hidden; color: #222; background: #fff; transition: border-color .15s; }
.lkb-bt:hover { border-color: #5e7a16; }
.lkb-bt-img { display: flex; align-items: center; justify-content: center; padding: 10px; background: #f7f7f7; }
.lkb-bt-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.lkb-bt-body { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 12px 16px; }
.lkb-bt-logo { display: flex; align-items: center; height: 44px; }
.lkb-bt-logo img { max-width: 170px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.lkb-bt-name { height: 44px; display: flex; align-items: center; font-size: 20px; font-weight: 700; line-height: 1.1; overflow: hidden; }
.lkb-bt-n { font-size: 13px; color: #565959; }
.lkb-bt-go { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 14px; line-height: 19px; font-weight: 600; color: #4f6713; } /* дълго име на марка: 2 реда, не „…“ */
.lkb-bt:hover .lkb-bt-go { text-decoration: underline; }

/* 2) и 3) Слайдери: 7 карти на ред на компютър; стрелките са кръгли, като в мега менюто. */
.lkb-scroll { position: relative; }
.lkb-track { --lkb-n: 7; --lkb-gap: 14px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--lkb-n) - 1) * var(--lkb-gap)) / var(--lkb-n)); gap: var(--lkb-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lkb-track::-webkit-scrollbar { display: none; }
.lkb-track > li { scroll-snap-align: start; min-width: 0; }
.lkb-card { display: flex; flex-direction: column; gap: 3px; height: 100%; color: #222; font-size: 13px; line-height: 1.35; }
.lkb-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; margin-bottom: 4px; padding: 8px; background: #f7f7f7; border-radius: 6px; }
.lkb-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.lkb-brand { height: 16px; font-size: 12px; line-height: 16px; color: #565959; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lkb-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; height: calc(2 * 1.35em); overflow: hidden; }
.lkb-card:hover .lkb-name { color: #4f6713; text-decoration: underline; }
.lkb-rate { display: flex; align-items: center; gap: 4px; height: 18px; }
.lkb-rate .star-rating { margin: 0; font-size: 12px; }
.lkb-rate-n { font-size: 12px; color: #565959; }
.lkb .lkb-price { display: block; height: 24px; font-size: 18px; line-height: 24px; font-weight: 700; }
.lkb .lkb-price del { font-size: 12px; font-weight: 400; margin-inline-start: 4px; }
.lkb-ship { height: 16px; font-size: 12px; line-height: 16px; color: #4f6713; font-weight: 600; white-space: nowrap; overflow: hidden; }
.lkb-arrow { position: absolute; top: calc(var(--lkb-top, 50%) - 18px); z-index: 3; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0 0 3px; border: 1px solid #e5e7ea; border-radius: 50%; background: #fff; color: #222; font-size: 24px; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.18); cursor: pointer; transition: border-color .15s, color .15s; }
.lkb-arrow:hover { border-color: #5e7a16; color: #4f6713; }
.lkb-arrow[hidden] { display: none; }
.lkb-prev { left: -10px; } .lkb-next { right: -10px; }
.lkb-rail .lkb-scroll { --lkb-top: 13%; } /* средата на снимката */

/* 3) Разгледани наскоро: само малки снимки; мястото е запазено (is-wait), докато дойдат. */
.lkb-strip { --lkb-n: 13; --lkb-gap: 10px; min-height: 0; }
.lkb-hist.is-wait .lkb-strip { height: var(--lkb-th, 96px); }
.lkb-th { display: block; aspect-ratio: 1; padding: 6px; background: #f7f7f7; border-radius: 6px; border: 1px solid transparent; }
.lkb-th:hover { border-color: #5e7a16; }
.lkb-th img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.lkb-strip > li { max-width: 104px; }
.lkb-hist .lkb-track { grid-auto-columns: minmax(0, 96px); }
.lkb-clear { min-height: 0; padding: 0; border: 0; background: none; color: #4f6713; font-size: 13px; font-weight: 400; text-transform: none; cursor: pointer; }
.lkb-clear:hover { text-decoration: underline; background: none; }

@media (max-width: 1199px) {
	.lkb-track { --lkb-n: 5; }
	.lkb-bt { grid-template-columns: 112px minmax(0, 1fr); min-height: 112px; }
	.lkb-bt-body { padding: 10px 12px; }
}
@media (max-width: 900px) {
	.lkb-track { --lkb-n: 4; }
	.lkb-bts { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.lkb-bts > li { scroll-snap-align: start; }
}
/* Телефон: ~2,3 карти на изглед, като въртележките на началната (PLAN ред 108); стрелки и „Страница“ няма. */
@media (max-width: 600px) {
	.lkb { margin-top: 10px; padding: 0 10px; border-radius: 0; border-inline: 0; }
	.lkb-row { padding: 12px 0 14px; }
	.lkb .lkb-h { font-size: 18px; line-height: 24px; }
	.lkb-head { margin-bottom: 8px; }
	.lkb-track { --lkb-gap: 10px; grid-auto-columns: calc((100% - 2 * var(--lkb-gap)) / 2.3); scroll-padding-inline: 0; }
	.lkb-bts { grid-auto-columns: 86%; gap: 10px; }
	.lkb-bt { grid-template-columns: 100px minmax(0, 1fr); min-height: 100px; }
	.lkb-bt-logo, .lkb-bt-name { height: 34px; }
	.lkb-bt-logo img { max-height: 34px; max-width: 130px; }
	.lkb-bt-name { font-size: 17px; }
	.lkb-bt-body { gap: 4px; padding: 8px 12px; }
	.lkb-arrow, .lkb-page { display: none; }
	.lkb .lkb-price { font-size: 17px; }
	.lkb-hist .lkb-track { grid-auto-columns: 72px; }
	.lkb-hist.is-wait .lkb-strip { height: 72px; }
	.lkb { --lkb-th: 72px; }
}
@media (hover: none) { .lkb-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .lkb-bt, .lkb-arrow { transition: none; } }
