/* Категории: просто и еднакво навсякъде (23.11.2026)
   ГЛАВНА категория - удебелен текст + тънка линия отдолу.
   ПОДКАТЕГОРИЯ - обикновен текст, с отстъп и сива линия отляво (ясно е под коя главна е).
   Важи за менюто „Категории“ горе и за лявата колона на страницата с продукти (+ менюто на телефона).
   Класовете ct-* са в header.tpl.html и categories/index.tpl.html. */

/* ---------- менюто „Категории“ горе ---------- */
.flyout-menu .j-dropdown li.ct-l1 > a { display: block; margin-top: 10px; padding: 4px 0 4px !important; border-bottom: 1px solid #e3e3e3; }
.flyout-menu .j-dropdown li.ct-l1 > a .links-text { font-weight: 700 !important; font-size: 14px !important; color: #111 !important; }
.flyout-menu .j-dropdown li.ct-l2 { margin-left: 0 !important; }
.flyout-menu .j-dropdown li.ct-l2 > a { display: block; margin-left: 2px; padding: 3px 0 3px 12px !important; border-left: 2px solid #e3e3e3; }
.flyout-menu .j-dropdown li.ct-l2 > a .links-text { font-weight: 400 !important; font-size: 13px !important; color: #555 !important; }
.flyout-menu .j-dropdown li.ct-l2 > a:hover .links-text { color: #000 !important; }

/* ---------- лявата колона: главната категория под търсачката, от нея „дърво“ с подкатегориите ----------
   главната: черна заоблена лента, жълти главни букви;
   подкатегориите: по-малки, подчертани, вързани с линия към главната (вертикална линия + чертичка към всяка);
   бройката - в черна капсула; при посочване редът изсветлява и текстът леко тръгва надясно;
   текущата - удебелена, с по-дебела чертичка (фонът е като на другите) */
.cat-top-view:has(.ct-root) .cat-top-view-head { display: none !important; }
.similar-cats.ct-tree { padding: 0 2px 4px !important; }
.similar-cats.ct-tree > li { list-style: none; }
.similar-cats.ct-tree > li.ct-root > a { display: block; margin: 0 0 2px !important; padding: 9px 12px !important; background: #111 !important; border-radius: 8px; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.similar-cats.ct-tree > li.ct-root .category-title, .similar-cats.ct-tree > li.ct-root .category-title > span { display: block !important; overflow: visible !important; text-overflow: clip !important; max-width: none !important; width: auto !important; height: auto !important; white-space: normal !important; }
.similar-cats.ct-tree > li.ct-root .category-title > span { font-family: 'Fira Sans Condensed', 'Arial Narrow', Arial, sans-serif !important; font-weight: 800 !important; font-size: 17px !important; line-height: 1.15 !important; letter-spacing: .4px; text-transform: uppercase; color: #FFD000 !important; }
.similar-cats.ct-tree > li.ct-root > a:hover .category-title > span { color: #fff !important; }

/* дървото: вертикалната линия е лявата граница на всеки ред, чертичката - ::before; при последния линията свършва на чертичката */
.similar-cats.ct-tree > li.ct-l1 { position: relative; display: flow-root !important; margin: 0 0 0 14px !important; padding: 0 !important; border-left: 2px solid #111; } /* flow-root - иначе полето на вложения списък излиза навън и линията се къса */
.similar-cats.ct-tree > li.ct-l1:last-child { border-left-color: transparent; }
.similar-cats.ct-tree > li.ct-l1::before { content: "" !important; position: absolute; left: -2px; top: 0; width: 12px; height: 15px; border-left: 2px solid #111; border-bottom: 2px solid #111; border-bottom-left-radius: 6px; pointer-events: none; }
.similar-cats.ct-tree > li.ct-l1 > a { display: block; margin-left: 12px; padding: 4px 6px 4px 6px !important; border-radius: 6px; transition: background-color .15s; }
.similar-cats.ct-tree > li.ct-l1 > a .category-title { display: flex !important; align-items: center; gap: 6px; }
.similar-cats.ct-tree > li.ct-l1 > a .category-title > span:first-child { flex: 1 1 auto; min-width: 0; font-weight: 500 !important; font-size: 14px !important; color: #111 !important; text-decoration: underline !important; text-decoration-color: rgba(0, 0, 0, .45) !important; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: transform .15s; }
.similar-cats.ct-tree a .count-badge { flex: 0 0 auto; min-width: 26px; padding: 1px 7px !important; border-radius: 10px; background: #111; color: #FFD000 !important; font-size: 11px !important; font-weight: 700 !important; line-height: 1.5; text-align: center; }
.similar-cats.ct-tree > li.ct-l1 > a:hover { background: rgba(255, 255, 255, .45) !important; }
.similar-cats.ct-tree > li.ct-l1 > a:hover .category-title > span:first-child { transform: translateX(3px); text-decoration-color: #000 !important; text-decoration-thickness: 2px; }
/* текущата */
.similar-cats.ct-tree a.active { background: transparent !important; box-shadow: none !important; }
.similar-cats.ct-tree > li.ct-l1:has(> a.active)::before { border-width: 3px; width: 13px; }
.similar-cats.ct-tree > li.ct-l1 > a.active .category-title > span:first-child { font-weight: 800 !important; color: #000 !important; text-decoration-color: #000 !important; text-decoration-thickness: 2px; }
/* подкатегориите на отворената подкатегория: светло кремаво поле, лилава линия отляво, лилав текст и капсули;
   текущата - плътна лилава лента с бял текст (23.11.2026) */
.similar-cats.ct-tree .ct-sub { position: relative; margin: 4px 0 8px 12px !important; padding: 6px 6px 6px 16px !important; background: #FFF6D2 !important; border: 0 !important; border-radius: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12) !important; }
.similar-cats.ct-tree .ct-sub::before { content: "" !important; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: #3D1580; }
.similar-cats.ct-tree .ct-sub > a { display: block; width: auto !important; max-width: none !important; margin: 1px 0 !important; padding: 5px 8px !important; border-radius: 8px; background: transparent !important; }
.similar-cats.ct-tree .ct-sub > a::before { content: none !important; display: none !important; }
.similar-cats.ct-tree .ct-sub > a .category-title { display: flex !important; align-items: center; gap: 6px; }
.similar-cats.ct-tree .ct-sub > a .category-title > span:first-child { flex: 1 1 auto; min-width: 0; font-weight: 500 !important; font-size: 14px !important; color: #3D1580 !important; text-decoration: none !important; }
.similar-cats.ct-tree .ct-sub > a .count-badge { background: #3D1580 !important; color: #fff !important; }
.similar-cats.ct-tree .ct-sub > a:hover { background: rgba(61, 21, 128, .1) !important; }
.similar-cats.ct-tree .ct-sub > a.active { background: #3D1580 !important; }
.similar-cats.ct-tree .ct-sub > a.active .category-title > span:first-child { font-weight: 800 !important; color: #fff !important; }
.similar-cats.ct-tree .ct-sub > a.active .count-badge { background: rgba(255, 255, 255, .22) !important; color: #fff !important; }
/* сайтът реже реда на 16px височина и скрива подчертаването - редът е колкото трябва */
.similar-cats.ct-tree > li.ct-l1 > a .category-title > span:first-child, .similar-cats.ct-tree .ct-sub > a .category-title > span:first-child { height: auto !important; line-height: 1.3 !important; padding-bottom: 3px !important; }

/* ---------- менюто „Категории“ на телефона (страницата с продукти) ---------- */
.mobile-drawer-categories-list.ct-tree > a { font-weight: 700; color: #111; border-bottom: 1px solid #e6e6e6; }
.mobile-drawer-categories-list.ct-tree .ct-sub { margin: 2px 0 8px 8px; border-left: 2px solid #ccc; }
.mobile-drawer-categories-list.ct-tree .ct-sub > a { padding-left: 12px !important; font-weight: 400; color: #333; }
.mobile-drawer-categories-list.ct-tree .ct-sub > a.active { font-weight: 700; color: #000; }
/* лявото меню в категорията: връзките бяха по-широки от колоната (ширина от сайта + отстъпа на „дървото“) и отдолу излизаше лента за плъзгане настрани (26.11.2026) */
.similar-cats.ct-tree > li.ct-l1 > a { width: auto !important; max-width: none !important; }
