/* Витрини на отделите (inc/storefront.php; т. 23, 23а, 25 в PLAN.md). Зарежда се само на страница на отдел без филтри.
   Цветът на отдела: --t (наситен) и --tb (пастелен), стойностите от css/home-cards.css. Бутони и връзки: #5e7a16. */
.lk-sft--dobavki   { --t: #5e7a16; --tb: #e6f1d8; --td: #4a6111; }
.lk-sft--kozmetika { --t: #b03d64; --tb: #fbe3ec; --td: #8e2f4f; }
.lk-sft--uredi     { --t: #2b639c; --tb: #e0edf9; --td: #214f7e; }
.lk-sft--hrani     { --t: #a8530f; --tb: #fde8d2; --td: #86420c; }
.lk-sft--dom       { --t: #1f6e68; --tb: #d9eeea; --td: #185753; }

/* 1. Втората лента на отдела */
.lk-sfnav { background: #fff; border-bottom: 3px solid var(--t, #5e7a16); }
.lk-sfnav-in { max-width: var(--wd-container-w, 1400px); margin: 0 auto; padding: 0 15px; }
.lk-sfnav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.lk-sfnav ul::-webkit-scrollbar { display: none; }
.lk-sfnav li { margin: 0; flex: 0 0 auto; }
.lk-sfnav a { display: block; padding: 9px 10px; font-size: 13.5px; line-height: 1.2; color: #222; text-decoration: none; border-radius: 4px; }
.lk-sfnav a:hover { background: #f3f3f3; color: #222; }
.lk-sfnav .lk-sfnav-dep { background: var(--t); color: #fff; font-weight: 700; border-radius: 4px; margin: 5px 6px 5px 0; padding: 6px 12px; }
.lk-sfnav .lk-sfnav-dep:hover { background: var(--td); color: #fff; }
.lk-sfnav .lk-sfnav-hot { font-weight: 600; }
.lk-sfnav .lk-sfnav-sale { color: #c62828; font-weight: 600; }
.lk-sfnav a:focus-visible { outline: 2px solid #5e7a16; outline-offset: -2px; }

/* Витрината: над филтрите и списъка */
.lk-sf { margin: 4px 0 14px; color: #222; }
.lk-sf-anchor { scroll-margin-top: 90px; }
.lk-sf-sec { background: #fff; border: 1px solid #e3e3e3; border-radius: 10px; padding: 14px 18px 16px; margin: 12px 0 0; }
.lk-sf-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; min-width: 0; }
.lk-sf-h { font-size: 20px; line-height: 1.2; font-weight: 700; margin: 0; color: #222; letter-spacing: -.2px; }
.lk-sf-note { font-size: 12px; color: #6b6b6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lk-sf-more { margin-left: auto; flex: 0 0 auto; font-size: 13.5px; font-weight: 600; color: #5e7a16; text-decoration: none; }
.lk-sf-more:hover { color: #4f6713; text-decoration: underline; }

/* 2. Банер: поле в цвета на отдела + снимка, която се влива в него */
.lk-sf-hero { position: relative; display: grid; grid-template-columns: minmax(0, 43%) minmax(0, 1fr); min-height: 210px; border-radius: 10px; overflow: hidden; background: var(--t); color: #fff; }
.lk-sf-hero-tx { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 22px 28px; }
.lk-sf-title { font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.8px; margin: 0 0 10px; color: #fff; }
.lk-sf-lead { font-size: 15px; line-height: 1.45; margin: 0 0 12px; max-width: 46ch; color: rgba(255,255,255,.92); }
.lk-sf-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.lk-sf-facts li { margin: 0; font-size: 12.5px; line-height: 1; padding: 6px 9px; border-radius: 99px; background: rgba(255,255,255,.16); color: #fff; font-weight: 600; white-space: nowrap; }
.lk-sf-btn { display: inline-block; background: #fff; color: var(--td); font-weight: 700; font-size: 14px; line-height: 1; padding: 11px 16px; border-radius: 6px; text-decoration: none; }
.lk-sf-btn:hover { background: #f1f2f4; color: var(--td); }
.lk-sf-btn:focus-visible, .lk-sf a:focus-visible { outline: 2px solid #5e7a16; outline-offset: 2px; }
.lk-sf-hero-img { position: relative; min-height: 100%; }
.lk-sf-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 82% 55%; }
.lk-sf-hero-img::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 34%; z-index: 1; background: linear-gradient(90deg, var(--t), transparent); }
.lk-sf-hero-prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: center; padding: 22px 26px 22px 0; }
.lk-sf-hero-prods a { display: block; aspect-ratio: 1; padding: 10px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.lk-sf-hero-prods img { width: 100%; height: 100%; object-fit: contain; }
.lk-sf-hero--rich { min-height: 290px; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
.lk-sf-hero--rich .lk-sf-hero-tx { padding: 30px 36px; }
.lk-sf-hero--rich .lk-sf-title { font-size: 44px; letter-spacing: -1.2px; }

/* 3. Кръгли плочки (равни редове, до 8 на ред) */
.lk-sf-circs { display: grid; grid-template-columns: repeat(var(--per, 6), minmax(0, 1fr)); gap: 16px 12px; margin: 0; padding: 0; list-style: none; }
.lk-sf-circs li { margin: 0; min-width: 0; }
.lk-sf-circ { display: flex; flex-direction: column; align-items: center; text-align: center; color: #222; text-decoration: none; min-width: 0; }
.lk-sf-circ-img { display: block; width: 100%; max-width: 132px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--tb); box-shadow: inset 0 0 0 2px var(--tb); margin-bottom: 8px; }
.lk-sf-circ-img img { width: 100%; height: 100%; object-fit: contain; padding: 14%; mix-blend-mode: multiply; }
.lk-sf-circ-img.is-cover img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.lk-sf-circ:hover .lk-sf-circ-img { box-shadow: inset 0 0 0 3px var(--t); }
.lk-sf-circ-name { display: block; width: 100%; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-sf-circ-n { display: block; font-size: 12px; color: #6b6b6b; line-height: 1.3; }
.lk-sf-circ:hover .lk-sf-circ-name { color: var(--td); }

/* 4. Редове с продукти (картата на темата). Решетката: столбовете = броят продукти (4–6) */
.lk-sf-row .wd-products-element, .lk-sf-row .woocommerce { margin: 0; }
.lk-sf-row .wd-products.wd-grid-g { --wd-col-lg: var(--n, 6) !important; --wd-col-md: 4 !important; }
.lk-sf-row .wd-products { margin-bottom: 0 !important; }
.lk-sf-row--best .lk-sf-h::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #4f6713; margin-right: 8px; vertical-align: 2px; }
.lk-sf-row--sale .lk-sf-h { color: #c62828; }

/* Богата витрина: цветни карти-подборки */
.lk-sf-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; }
.lk-sf-col { display: flex; flex-direction: column; background: var(--bg); border-radius: 10px; padding: 14px 14px 12px; min-width: 0; color: #222; }
.lk-sf-col--light { color: #fff; }
.lk-sf-col-top { display: block; color: inherit; text-decoration: none; }
.lk-sf-col-h { font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -.4px; margin: 0; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-sf-col-n { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }
.lk-sf-col-img { display: block; aspect-ratio: 16 / 9; margin: 4px -14px 8px; overflow: hidden; }
.lk-sf-col-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.lk-sf-col-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lk-sf-mini { display: flex; flex-direction: column; background: #fff; border-radius: 6px; padding: 6px 6px 7px; color: #222; text-decoration: none; min-width: 0; }
.lk-sf-mini-img { display: block; aspect-ratio: 1; background: #f7f7f7; border-radius: 4px; overflow: hidden; margin-bottom: 5px; }
.lk-sf-mini-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.lk-sf-mini-name { display: block; font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-sf-mini-price { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-sf-mini-price del { font-weight: 400; color: #767676; font-size: 11px; }
.lk-sf-mini-price ins { text-decoration: none; }
.lk-sf-mini-price .woocommerce-Price-amount { color: #222; }
.lk-sf-mini:hover .lk-sf-mini-name { color: #5e7a16; }
.lk-sf-col-more { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lk-sf-col-more:hover { color: inherit; opacity: .85; }
.lk-sf .lkh-trust { margin-top: 12px; }

/* 5. Марки с лога */
.lk-sf-brands ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.lk-sf-brands li { margin: 0; min-width: 0; }
.lk-sf-brand { display: flex; align-items: center; justify-content: center; height: 78px; padding: 10px 16px; background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; }
.lk-sf-brand:hover { border-color: var(--t); }
.lk-sf-brand img { max-width: min(100%, 140px); max-height: 48px; width: auto; height: auto; object-fit: contain; }
.lk-sf-brand--all { background: var(--tb); border-color: transparent; color: var(--td); font-weight: 700; font-size: 15px; text-decoration: none; }
.lk-sf-brand--all:hover { color: var(--td); text-decoration: underline; }

/* 6. Здравни теми: чипове, 6 на ред */
.lk-sf-topics ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.lk-sf-topics li { margin: 0; min-width: 0; }
.lk-sf-chip { display: flex; align-items: center; gap: 8px; height: 100%; padding: 6px 10px 6px 6px; border-radius: 99px; background: #f4f0fa; color: #222; text-decoration: none; min-width: 0; }
.lk-sf-chip:hover { background: #e9e1f5; }
.lk-sf-chip-img { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #fff; }
.lk-sf-chip-img img { width: 100%; height: 100%; object-fit: cover; }
.lk-sf-chip-tx { min-width: 0; }
.lk-sf-chip-name { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-sf-chip-n { display: block; font-size: 11.5px; color: #6b6b6b; line-height: 1.25; }

/* Подкатегориите на темата над списъка: вече са в плочките на витрината */
.lk-sf-page .wd-content-layout .wd-cats-element { display: none; }

/* Таблет */
@media (max-width: 1024px) {
	.lk-sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lk-sf-topics ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lk-sf-circs { grid-template-columns: repeat(min(var(--per, 6), 6), minmax(0, 1fr)); }
}

/* Телефон: всичко с повече от 2 елемента се плъзга встрани */
@media (max-width: 768px) {
	.lk-sfnav a { padding: 10px 9px; font-size: 13px; }
	.lk-sf { margin-top: 0; }
	.lk-sf-sec { padding: 12px 12px 14px; margin-top: 10px; border-radius: 8px; }
	.lk-sf-head { margin-bottom: 10px; }
	.lk-sf-h { font-size: 17px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.lk-sf-note { display: none; }
	.lk-sf-hero, .lk-sf-hero--rich { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 8px; }
	.lk-sf-hero-tx, .lk-sf-hero--rich .lk-sf-hero-tx { padding: 16px 16px 14px; }
	.lk-sf-title, .lk-sf-hero--rich .lk-sf-title { font-size: 26px; letter-spacing: -.5px; margin-bottom: 8px; }
	.lk-sf-lead { display: none; }
	.lk-sf-title, .lk-sf-hero--rich .lk-sf-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: 24px; margin-bottom: 8px; }
	.lk-sf-hero-tx, .lk-sf-hero--rich .lk-sf-hero-tx { padding: 10px 14px 12px; align-items: stretch; }
	.lk-sf-facts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 10px; padding: 0 14px; }
	.lk-sf-facts::-webkit-scrollbar { display: none; }
	.lk-sf-facts li { flex: 0 0 auto; }
	.lk-sf-btn { align-self: flex-start; padding: 9px 14px; font-size: 13.5px; }
	.lk-sf-hero-img { order: -1; height: 76px; }
	.lk-sf-hero-prods { order: -1; gap: 8px; padding: 12px 14px 0; }
	.lk-sf-hero-prods a { padding: 5px; border-radius: 8px; }
	.lk-sf-hero-img img { object-position: 82% 60%; }
	.lk-sf-brand-all { flex: 0 0 38%; grid-column: auto !important; }
	.lk-sf-hero-img::before { inset: auto 0 0 0; width: auto; height: 45%; background: linear-gradient(0deg, var(--t), transparent); }
	.lk-sf-circs, .lk-sf-brands ul, .lk-sf-cols { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; }
	.lk-sf-circs::-webkit-scrollbar, .lk-sf-brands ul::-webkit-scrollbar, .lk-sf-cols::-webkit-scrollbar { display: none; }
	.lk-sf-circs li { flex: 0 0 27%; scroll-snap-align: start; }
	.lk-sf-brands li { flex: 0 0 38%; scroll-snap-align: start; }
	.lk-sf-brand { height: 64px; }
	.lk-sf-brand img { max-height: 40px; }
	.lk-sf-cols { margin-top: 10px; }
	.lk-sf-col { flex: 0 0 84%; scroll-snap-align: start; }
	.lk-sf-topics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lk-sf-row .wd-products.wd-grid-g { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; margin: 0 !important; }
	.lk-sf-row .wd-products.wd-grid-g::-webkit-scrollbar { display: none; }
	.lk-sf-row .wd-products.wd-grid-g > .wd-product { flex: 0 0 46%; max-width: 46%; scroll-snap-align: start; padding: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { .lk-sfnav ul, .lk-sf-circs, .lk-sf-cols, .lk-sf-brands ul, .lk-sf-row .wd-products { scroll-behavior: auto; } }

/* „Виж всички“: стрелката е от шрифта на темата (woodmart-font), както на началната страница */
@media (min-width: 1025px) {
	.lk-sf-more::after, .lk-sf-col-more::after { content: "\f113"; font-family: "woodmart-font"; font-size: 11px; font-weight: 400; margin-inline-start: 5px; }
}

/* Собствен характер на витрините (преглед 02.12.2026), в палитрата; контраст по WCAG AA (≥4,5:1 за текста). */
.lk-sf-facts li { background: rgba(0,0,0,.18); } /* бяло върху светлото .16 беше 3,6:1; тъмното .18 е ≥6:1 */
/* Билки: листно поле с шарка от наклонени линии, тъмен текст (#4a6111 върху #e6f1d8 = 6:1). */
.lk-sfs--bilki-ekstrakti .lk-sf-hero { background: repeating-linear-gradient(135deg, rgba(115,147,29,.12) 0 2px, transparent 2px 16px), #e6f1d8; color: #222; }
/* Формули: кремаво поле с тъмнозелена черта вляво, тъмен текст (#222 върху #f3ecdf = 13,5:1). */
.lk-sfs--kompleksni-formuli .lk-sf-hero { background: #f3ecdf; color: #222; box-shadow: inset 6px 0 0 #5e7a16; }
.lk-sfs--bilki-ekstrakti .lk-sf-title, .lk-sfs--kompleksni-formuli .lk-sf-title { color: #4a6111; }
.lk-sfs--bilki-ekstrakti .lk-sf-facts li, .lk-sfs--kompleksni-formuli .lk-sf-facts li { background: #fff; color: #4a6111; box-shadow: inset 0 0 0 1px rgba(74,97,17,.25); }
.lk-sfs--bilki-ekstrakti .lk-sf-btn, .lk-sfs--kompleksni-formuli .lk-sf-btn { background: #5e7a16; color: #fff; }
.lk-sfs--bilki-ekstrakti .lk-sf-btn:hover, .lk-sfs--kompleksni-formuli .lk-sf-btn:hover { background: #4f6713; color: #fff; }
/* Витамини: по-тъмно зелено с точки и оранжева значка (#222 върху #ff9505 = 7,2:1; бяло върху #4a6111 = 7:1). */
.lk-sfs--vitamini-minerali .lk-sf-hero { background: radial-gradient(rgba(255,255,255,.09) 1.6px, transparent 1.8px) 0 0 / 18px 18px, #4a6111; }
.lk-sfs--vitamini-minerali .lk-sf-facts li:first-child { background: #ff9505; color: #222; }
/* Акцентният ред (inc/storefront.php, LEKUVA_SF_ACCENT): светлото поле на отдела. */
.lk-sf-sec--accent { background: var(--tb, #e6f1d8); border-radius: 10px; padding: 14px 16px 16px; }
.lk-sf-sec--accent .lk-sf-head h2, .lk-sf-sec--accent .lk-sf-head .lk-sf-h { color: var(--td, #4a6111); }
@media (max-width: 768px) {
	.lk-sf-sec--accent { padding: 12px 10px 12px; border-radius: 8px; }
	.lk-sfs--kompleksni-formuli .lk-sf-hero { box-shadow: inset 0 5px 0 #5e7a16; }
}
