/* Черен петък 2026 (13-30.11) - тема за целия сайт, версия 2. Само на alex.mashini.bg; ?nobf=1 я изключва.
   Идея: сайтът става „черният" на банера. Черен фон, бели карти с продукти (снимките са на бял фон),
   жълто за действия, червено за отстъпки, лилаво за промо пакети и таймер.
   Правило за контраст: върху черно - само бял или жълт текст; върху бяло - само черен (червеното е само за отстъпки).
   Тъмен фон само на началната, категориите и продукта; количка, поръчка и профил остават светли. */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:wght@600;700;800;900&display=swap');

:root {
  --bf-black: #000;
  --bf-panel: #121212;
  --bf-yellow: #FFD000;
  --bf-yellow-2: #FFE14D;
  --bf-violet: #7B2FF7;
  --bf-violet-2: #9B5CFF;
  --bf-violet-dark: #5A16C9;
  --bf-red: #E3141B;
  --bf-red-dark: #B80D13;
  --bf-tape: repeating-linear-gradient(-45deg, #FFD000 0 12px, #000 12px 24px);
  --bf-tape-v: repeating-linear-gradient(-45deg, #7B2FF7 0 12px, #000 12px 24px);
  --bf-cond: 'Fira Sans Condensed', 'Arial Narrow', Arial, sans-serif;
}

/* =========================================================================
   1. ОБЩИ ЧАСТИ: таймер, лента най-отгоре, бягаща лента, хедър, футър
   ========================================================================= */
.bf-timer { display: inline-flex; align-items: stretch; gap: 4px; font-family: var(--bf-cond); perspective: 300px; }
.bf-timer .bf-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; padding: 4px 6px 3px; background: #1d1d1d; border: 1px solid #3a3a3a; border-radius: 5px; box-shadow: inset 0 -3px 0 var(--bf-violet); }
.bf-timer .bf-num { display: block; font-weight: 900; font-size: 20px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.bf-timer .bf-lbl { margin-top: 3px; font-size: 11px; line-height: 1; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.bf-timer .bf-sep { align-self: center; color: var(--bf-yellow); font-weight: 900; font-size: 18px; margin-top: -10px; }
/* „обръщане" на цифрата при смяна */
.bf-timer .bf-num.bf-flip { animation: bf-flip .45s cubic-bezier(.3, .7, .4, 1); }
@keyframes bf-flip { 0% { transform: rotateX(-80deg); } 100% { transform: none; } }

/* лента най-отгоре (всички страници) */
.bf-bar { position: relative; z-index: 60; background: var(--bf-black); color: #fff; border-bottom: 1px solid #262626; }
.bf-bar::before, .bf-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 56px; }
.bf-bar::before { left: 0; background: var(--bf-tape); }
.bf-bar::after { right: 0; background: var(--bf-tape-v); }
.bf-bar__in { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 54px; padding: 6px 80px; max-width: 1440px; margin: 0 auto; position: relative; }
.bf-bar__title { font-family: var(--bf-cond); font-weight: 900; font-size: 24px; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; color: #fff; }
.bf-bar__title b { color: var(--bf-yellow); font-weight: 900; }
.bf-bar__off { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 4px; background: var(--bf-red); color: #fff; font-family: var(--bf-cond); font-weight: 900; font-size: 18px; white-space: nowrap; transform: rotate(-3deg); }
.bf-bar__when { font-family: var(--bf-cond); font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; }
.bf-bar .bf-timer .bf-cell { min-width: 40px; padding: 3px 5px 2px; }
.bf-bar .bf-timer .bf-num { font-size: 18px; }
.bf-bar .bf-timer .bf-lbl { font-size: 10px; }
.bf-bar__cta, .bf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 18px; border-radius: 6px; background: var(--bf-yellow); color: #000 !important; font-family: var(--bf-cond); font-weight: 900; font-size: 16px; text-transform: uppercase; letter-spacing: .3px; text-decoration: none !important; white-space: nowrap; border: 0; box-shadow: 0 3px 0 #9c7f00; transition: transform .12s, box-shadow .12s, background .12s; }
.bf-bar__cta:hover, .bf-btn:hover { background: var(--bf-yellow-2); transform: translateY(-1px); box-shadow: 0 4px 0 #9c7f00; }
.bf-bar__cta:active, .bf-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #9c7f00; }
.bf-bar__cta:focus-visible, .bf-btn:focus-visible, .bf-hero:focus-visible, .bf-tile:focus-visible { outline: 3px solid var(--bf-violet-2); outline-offset: 3px; }

/* бягаща лента под хедъра */
.bf-tick { position: relative; z-index: 5; overflow: hidden; background: var(--bf-yellow); border-top: 3px solid #000; border-bottom: 3px solid #000; }
.bf-tick__track { display: flex; width: max-content; animation: bf-tick 38s linear infinite; }
.bf-tick:hover .bf-tick__track { animation-play-state: paused; }
.bf-tick__item { display: inline-flex; align-items: center; gap: 14px; padding: 0 14px; height: 38px; font-family: var(--bf-cond); font-weight: 900; font-size: 18px; letter-spacing: .4px; text-transform: uppercase; color: #000 !important; white-space: nowrap; text-decoration: none !important; }
a.bf-tick__item:hover { text-decoration: underline !important; }
.bf-tick__item::after { content: ""; width: 10px; height: 10px; background: #000; transform: rotate(45deg); margin-left: 14px; }
.bf-tick__item--red { color: var(--bf-red-dark) !important; }
.bf-tick__item--violet { color: var(--bf-violet-dark) !important; }
@keyframes bf-tick { to { transform: translateX(-50%); } }

/* хедър: черен, логото на бял етикет с жълта рамка */
html body .site-wrapper, html body header.header-mega, html body .header.header-mega, html body .header-mega .header-container { background: var(--bf-black) !important; }
html body .header-mega .header-container { border-bottom: 0 !important; }
html body .header-mega a, html body .header-mega .links-text, html body .header-mega .top-menu a span, html body .header-mega #main-menu-2 .phonecallmenu > a, html body .header-mega #main-menu-2 .phonecallmenu > a * { color: #fff !important; }
html body .header-mega svg:not(.hb-ic svg):not(.hb-chev) { color: var(--bf-yellow); }
html body .header-mega #logo, html body .header-mega .logo { background: #fff; border-radius: 6px; padding: 5px 9px 3px; box-shadow: 0 0 0 3px var(--bf-yellow); }
html body .header-mega #header-search, html body .header-mega .header-search { background: transparent !important; }
html body .header-mega .header-search input { background: #fff !important; color: #000 !important; border: 2px solid var(--bf-yellow) !important; }
html body .header-mega .header-search input::placeholder { color: #444 !important; }
html body .header-mega .category-holder { background: var(--bf-yellow) !important; opacity: 1 !important; border-radius: 6px 6px 0 0; }
html body .header-mega .category-holder a.category-btn:not(#bf-x):not(#bf-y), html body .header-mega .category-holder .category-btn-hld *:not(#bf-x):not(#bf-y) { color: #000 !important; opacity: 1 !important; font-weight: 800 !important; }
html body #main-menu-2 .j-menu li a.hb-red { background: var(--bf-red) !important; }
html body #main-menu-2 .j-menu li a.hb-red .hb-ic { background: var(--bf-red-dark) !important; }
html body #main-menu-2 .j-menu li a.hb-red .hb-n { color: var(--bf-red-dark) !important; }
html body #main-menu-2 .j-menu li a.hb-yellow { background: var(--bf-yellow) !important; }
html body #main-menu-2 .j-menu li a.hb-yellow .hb-ic { background: #000 !important; }
html body #main-menu-2 .j-menu li a.hb-yellow .hb-txt *, html body #main-menu-2 .j-menu li a.hb-yellow .hb-chev { color: #000 !important; }
html body #main-menu-2 .j-menu li a.hb-yellow .hb-n { background: #000 !important; color: #fff !important; }
html body #main-menu-2 .j-menu li a.hb-blue { background: var(--bf-violet) !important; }
html body #main-menu-2 .j-menu li a.hb-blue .hb-ic { background: var(--bf-violet-dark) !important; }
html body #main-menu-2 .j-menu li a.hb-blue .hb-txt *, html body #main-menu-2 .j-menu li a.hb-blue .hb-chev { color: #fff !important; }
html body #main-menu-2 .j-menu li a.hb-blue .hb-n { background: #fff !important; color: var(--bf-violet-dark) !important; }
html body .header-mega .mid-bar { background: var(--bf-black) !important; border-bottom: 0 !important; }
html body .header-mega .mid-bar svg, html body .header-mega .mid-bar i { color: var(--bf-yellow) !important; }

/* футър: черен, всичко бяло, заглавията жълти */
html body footer, html body footer .footer, html body footer .grid-rows, html body footer .grid-row, html body footer .grid-cols, html body footer .grid-col, html body footer .container, html body footer .footer-links-holder { background: var(--bf-black) !important; }
html body footer { position: relative; color: #fff !important; }
html body footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 12px; background: var(--bf-tape); }
html body footer *:not(input):not(button):not(.btn):not(.btn *):not(.notification-wrapper *) { color: #fff !important; }
html body footer h3, html body footer h4, html body footer .title, html body footer .module-title, html body footer .sub-title-text-newsletter { color: var(--bf-yellow) !important; font-family: var(--bf-cond) !important; font-weight: 800 !important; }
html body footer a:hover { color: var(--bf-yellow) !important; }
html body footer input.form-control { background: #fff !important; color: #000 !important; border: 2px solid var(--bf-yellow) !important; }
html body footer .btn-primary, html body footer .btn-primary * { background: var(--bf-yellow) !important; color: #000 !important; border-color: var(--bf-yellow) !important; font-weight: 800 !important; }

/* =========================================================================
   2. ТЪМЕН ФОН: начална, категории, продукт
   ========================================================================= */
html body:is(.home-page, .category-page, .main-category-page, .product-page) { background: var(--bf-black) !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) :is(.container, #content, .grid-row, .grid-cols, .tab-container) { background-color: transparent !important; }
html body:is(.category-page, .main-category-page, .product-page) :is(.breadcrumb, .breadcrumbs) { background: transparent !important; }
html body:is(.category-page, .main-category-page, .product-page) :is(.breadcrumb, .breadcrumbs) :is(a, li, span):not(#bf-x):not(#bf-y) { color: #fff !important; }
html body:is(.category-page, .main-category-page, .product-page) :is(.breadcrumb, .breadcrumbs) li:last-child :is(a, span):not(#bf-x):not(#bf-y) { color: var(--bf-yellow) !important; }

html body:is(.home-page, .category-page, .main-category-page, .product-page) :is(.breadcrumb-holder, .category-page-content):not(#bf-x) { background: transparent !important; }
/* product-lite.css боядисва всички връзки на продуктовата страница тъмно - тук връщаме белите върху черно */
html body footer a:not(#bf-x):not(#bf-y) { color: #fff !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .nav-tabs :is(h2, h3, h3 a, .brands-title, .brands-title a):not(#bf-x):not(#bf-y) { color: #fff !important; font-family: var(--bf-cond) !important; font-weight: 900 !important; text-transform: uppercase; }

/* заглавия директно върху черно (напр. „Избери по марка" в главната категория) */
html body:is(.home-page, .category-page, .main-category-page, .product-page) :is(h2.brands-title, .section-heading-row h2, .section-heading-row h3):not(#bf-x):not(#bf-y) { color: #fff !important; font-family: var(--bf-cond) !important; font-weight: 900 !important; text-transform: uppercase; }

/* продуктови карти на тъмните страници: тъмна карта в рамка, снимката в бяла рамка вътре */
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout:not(#bf-x) { background: transparent !important; box-shadow: none !important; border: 0 !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .product-thumb:not(#bf-x) { background: #111 !important; border: 2px solid #2e2e2e !important; border-radius: 12px !important; box-shadow: none !important; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .product-thumb:not(#bf-x):hover { transform: translateY(-4px); border-color: var(--bf-yellow) !important; box-shadow: 0 14px 28px rgba(0, 0, 0, .7) !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .product-thumb .image:not(#bf-x) { background: #fff !important; margin: 8px 8px 0; border-radius: 8px; overflow: hidden; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .product-thumb .caption:not(#bf-x) { background: transparent !important; border: 0 !important; }
html body .product-layout .product-thumb .image img { transition: transform .35s ease; }
html body .product-layout .product-thumb:hover .image img { transform: scale(1.05); }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout :is(.product-title, .name a):not(#bf-x):not(#bf-y) { color: #fff !important; font-weight: 600 !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .product-thumb :is(.stats, .stats *, .view-second-title, .view-second-title *, .product-ordered *, .rating-in-listing *):not(.product-label *):not(#bf-x) { color: #e6e6e6 !important; border-color: #3a3a3a !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .product-thumb .stats-label:not(#bf-x) { color: #c8c8c8 !important; }
html body .product-layout .product-label-discount-percent { background: var(--bf-red) !important; border-radius: 6px !important; transform: rotate(-4deg); box-shadow: 0 3px 0 var(--bf-red-dark); }
html body .product-layout .product-label-discount-percent, html body .product-layout .product-label-discount-percent * { color: #fff !important; }
html body .product-layout .product-label-discount-percent .label-text { font-family: var(--bf-cond) !important; font-weight: 900 !important; font-size: 17px !important; background: none !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .price-new:not(#bf-x), html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .price-new *:not(#bf-x) { color: var(--bf-yellow) !important; font-weight: 900 !important; }
html body .product-layout .price-new { font-size: 23px !important; font-family: var(--bf-cond) !important; }
html body .product-layout .price:has(.bf-save-row) { flex-wrap: wrap !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .price-old:not(#bf-x), html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .price-old *:not(#bf-x) { color: #FF6B6B !important; font-weight: 700 !important; }
html body .product-layout .price-old { text-decoration: line-through !important; text-decoration-thickness: 2px !important; }
.bf-save-row { display: block; flex: 0 0 100%; width: 100%; }
.bf-save { display: inline-block; width: max-content; margin: 4px 0 0; padding: 2px 8px; border-radius: 4px; background: var(--bf-violet); color: #fff !important; font-family: var(--bf-cond); font-weight: 800; font-size: 13px; line-height: 1.35; white-space: nowrap; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .button-listing a.btn.btn-cart:not(#bf-x) { background: var(--bf-yellow) !important; border: 0 !important; border-radius: 8px !important; box-shadow: 0 3px 0 #9c7f00 !important; transition: background .12s, transform .12s; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .button-listing a.btn.btn-cart:not(#bf-x) :is(.btn-text, span) { color: #000 !important; font-family: var(--bf-cond) !important; font-weight: 900 !important; font-size: 16px !important; text-transform: uppercase; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .button-listing a.btn.btn-cart:not(#bf-x)::after { background-color: #000 !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .button-listing a.btn.btn-cart:not(#bf-x):hover { background: var(--bf-yellow-2) !important; transform: translateY(-1px); }

/* заглавията на секциите: голям черен ред с лента */
html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products .nav-tabs:not(#bf-x) { position: relative; display: flex !important; align-items: center; min-height: 62px; margin-bottom: 16px !important; padding: 0 0 0 76px !important; border: 2px solid #2c2c2c !important; border-radius: 8px !important; background: var(--bf-black) !important; overflow: hidden; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products .nav-tabs:not(#bf-x)::before { content: "" !important; display: block !important; position: absolute !important; left: 0; top: 0; bottom: 0; width: 58px !important; height: auto !important; background: var(--bf-tape) !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products .nav-tabs:not(#bf-x) li { background: none !important; border: 0 !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products .nav-tabs:not(#bf-x) li > a:not(#bf-y) { display: flex !important; align-items: center; gap: 10px; color: #fff !important; background: none !important; border: 0 !important; font-family: var(--bf-cond) !important; font-weight: 900 !important; font-size: 28px !important; letter-spacing: .3px; text-transform: uppercase; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products .nav-tabs:not(#bf-x) li:last-child:not(:first-child) { margin-left: auto !important; align-self: stretch; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products .nav-tabs:not(#bf-x) li:last-child:not(:first-child) > a:not(#bf-y) { height: 100%; padding: 0 22px !important; background: var(--bf-yellow) !important; color: #000 !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products .nav-tabs:not(#bf-x) li:last-child:not(:first-child) > a :is(path, svg) { fill: #000 !important; color: #000 !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products .nav-tabs:not(#bf-x) li:first-child > a path { fill: var(--bf-yellow) !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products .nav-tabs:not(#bf-x) li > a img { filter: brightness(0) invert(1); width: 26px !important; height: 26px !important; }
/* секциите със заглавие h2 (Нови предложения, Често купувани...) - същият черен ред */
html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products :is(h2, h3).section--title:not(#bf-x) { position: relative; display: flex; align-items: center; min-height: 62px; margin: 0 0 16px !important; padding: 0 16px 0 76px !important; border: 2px solid #2c2c2c; border-radius: 8px; background: #000 !important; color: #fff !important; font-family: var(--bf-cond) !important; font-weight: 900 !important; font-size: 28px !important; text-transform: uppercase; letter-spacing: .3px; overflow: hidden; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products :is(h2, h3).section--title:not(#bf-x)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 58px; background: var(--bf-tape); }
/* етикетите на картите: само в четирите цвята */
html body .product-labels .product-label-234 b:not(#bf-x) { background: var(--bf-violet) !important; color: #fff !important; }
html body .product-labels .product-label-270 b:not(#bf-x) { background: var(--bf-red) !important; color: #fff !important; }
html body .product-labels .product-label-233 b:not(#bf-x) { background: var(--bf-yellow) !important; color: #000 !important; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .swiper-pagination-bullet { background: #fff !important; opacity: .45; }
html body:is(.home-page, .category-page, .main-category-page, .product-page) .swiper-pagination-bullet-active { background: var(--bf-yellow) !important; opacity: 1; }

/* =========================================================================
   3. НАЧАЛНА СТРАНИЦА
   ========================================================================= */
/* банерът на мястото на слайдера: снимката винаги цяла; на широк екран вдясно - таймер */
.bf-hero { position: relative; display: flex; background: var(--bf-black); overflow: hidden; text-decoration: none !important; container: bfhero / inline-size; }
.bf-hero img { display: block; flex: none; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left center; transition: transform .6s ease; }
.bf-hero:hover img { transform: scale(1.015); }
.bf-hero__side { position: static; flex: 1 1 0; min-width: 0; background: var(--bf-black); }
.bf-hero__side::before { content: ""; position: absolute; top: 0; bottom: 0; width: 70px; margin-left: -70px; background: linear-gradient(90deg, rgba(0,0,0,0), #000); pointer-events: none; }
.bf-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--bf-tape-v); }
.main-slider-wrapper.bf-has-hero > .main-slider, .main-slider-wrapper.bf-has-hero > .main-slider-banners { display: none !important; }
.main-slider-wrapper.bf-has-hero { display: block !important; }
.main-slider-wrapper.bf-has-hero .bf-hero { border-radius: 10px; height: 482px; box-shadow: 0 0 0 2px #2c2c2c; }
.bf-hero__timer { position: absolute; right: 16px; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 8px; background: #000; border: 1px solid #3a3a3a; color: #fff; font-family: var(--bf-cond); font-weight: 800; font-size: 16px; }
.bf-hero__timer .bf-cell { min-width: 46px; }
.bf-hero__timer .bf-num { font-size: 24px; }
.bf-hero__cta, .bf-hero__pre { display: none; }
@container bfhero (min-width: 1130px) {
  .bf-hero__side { position: relative; display: flex; align-items: center; justify-content: center; }
  .bf-hero__side::before { left: -70px; margin-left: 0; }
  .bf-hero__timer { position: relative; z-index: 1; flex-direction: column; gap: 16px; padding: 0 12px; background: none; border: 0; font-size: 21px; text-align: center; }
  .bf-hero__pre { display: block; color: var(--bf-yellow); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; margin-bottom: 4px; }
  .bf-hero__timer .bf-cell { min-width: 56px; padding: 9px 4px 7px; }
  .bf-hero__timer .bf-num { font-size: 32px; }
  .bf-hero__cta { display: inline-flex; height: 46px; font-size: 18px; }
}

/* менюто с категориите вляво на началната: тъмен панел */
html body.home-page .grid-col-top-1-1:not(#bf-x) { background: #111 !important; border: 2px solid #2e2e2e; border-radius: 10px; overflow: hidden; }
html body.home-page #mainMenuCategories > li > a:not(#bf-x):not(#bf-y), html body.home-page #mainMenuCategories > li > a *:not(#bf-x):not(#bf-y) { color: #fff !important; }
html body.home-page #mainMenuCategories > li > a svg:not(#bf-x), html body.home-page #mainMenuCategories > li > a i:not(#bf-x) { color: var(--bf-yellow) !important; }
html body.home-page #mainMenuCategories > li:hover > a:not(#bf-x):not(#bf-y), html body.home-page #mainMenuCategories > li:hover > a *:not(#bf-x):not(#bf-y) { color: var(--bf-yellow) !important; }
html body.home-page #mainMenuCategories > li:hover > a:not(#bf-x) { background: #1d1d1d !important; }
html body.home-page .grid-col-top-1-1 input.search-category-header:not(#bf-x) { background: #fff !important; color: #000 !important; border: 2px solid var(--bf-yellow) !important; }

/* плочките с категории под банера */
html body.home-page .custom-slider .slide-item { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 2px #2c2c2c; transition: transform .18s, box-shadow .18s; }
html body.home-page .custom-slider .slide-item:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 0 0 3px var(--bf-yellow), 0 12px 24px rgba(0, 0, 0, .6); }

/* три големи плочки: Разпродажба / Топ оферти / Промо пакети (числата се „броят" при показване) */
.bf-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 26px 0 34px; }
.bf-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 172px; padding: 20px 22px 18px; border-radius: 12px; overflow: hidden; text-decoration: none !important; transition: transform .18s, box-shadow .18s; }
.bf-tile:hover { transform: translateY(-4px); }
.bf-tile::after { content: ""; position: absolute; right: -34px; bottom: -34px; width: 150px; height: 150px; background: repeating-linear-gradient(-45deg, #000 0 12px, transparent 12px 24px); opacity: .22; transform: rotate(12deg); border-radius: 18px; }
.bf-tile__k { position: relative; z-index: 1; font-family: var(--bf-cond); font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; }
.bf-tile__n { position: relative; z-index: 1; font-family: var(--bf-cond); font-weight: 900; font-size: 66px; line-height: .9; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.bf-tile__t { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--bf-cond); font-weight: 800; font-size: 18px; }
.bf-tile__t i { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 50%; font-style: normal; font-size: 22px; font-weight: 900; transition: transform .18s; }
.bf-tile:hover .bf-tile__t i { transform: translateX(4px); }
.bf-tile--red { background: var(--bf-red); box-shadow: 0 6px 0 var(--bf-red-dark); }
.bf-tile--red, .bf-tile--red * { color: #fff !important; }
.bf-tile--red .bf-tile__t i { background: #fff; color: var(--bf-red-dark) !important; }
.bf-tile--yellow { background: var(--bf-yellow); box-shadow: 0 6px 0 #9c7f00; }
.bf-tile--yellow, .bf-tile--yellow * { color: #000 !important; }
.bf-tile--yellow .bf-tile__t i { background: #000; color: var(--bf-yellow) !important; }
.bf-tile--violet { background: var(--bf-violet); box-shadow: 0 6px 0 var(--bf-violet-dark); }
.bf-tile--violet, .bf-tile--violet * { color: #fff !important; }
.bf-tile--violet .bf-tile__t i { background: #fff; color: var(--bf-violet-dark) !important; }

/* =========================================================================
   4. КАТЕГОРИЯ
   ========================================================================= */
html body.category-page #content .content-header { background: var(--bf-panel) !important; color: #fff; border: 2px solid #2c2c2c; border-radius: 10px; position: relative; overflow: hidden; }
html body.category-page #content .content-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--bf-tape-v); }
html body:is(.category-page, .main-category-page) h1.page-title:not(#bf-x) { color: #fff !important; font-family: var(--bf-cond) !important; font-weight: 900 !important; font-size: 34px !important; text-transform: uppercase; letter-spacing: .2px; }
html body:is(.category-page, .main-category-page) .category-intro:not(#bf-x), html body:is(.category-page, .main-category-page) .category-intro *:not(#bf-x) { color: #fff !important; }
html body:is(.category-page, .main-category-page) .category-intro a:not(#bf-x) { color: var(--bf-yellow) !important; }
html body.category-page #content .content-header select { background: #fff; color: #000; }
html body.category-page #content .content-header .view-buttons .btn { background: #1d1d1d !important; border-color: #3a3a3a !important; color: #fff !important; }
.bf-catstrip { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; flex-basis: 100%; margin: 6px 0 14px; padding: 10px 14px 10px 28px; background: var(--bf-black); border: 2px solid #2c2c2c; border-radius: 8px; overflow: hidden; }
.bf-catstrip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--bf-tape); }
.bf-catstrip__t { font-family: var(--bf-cond); font-weight: 900; font-size: 19px; color: var(--bf-yellow); text-transform: uppercase; }
.bf-catstrip__t span { color: #fff; font-weight: 700; text-transform: none; }
.filter-buttons-special.promo-discount:not(#bf-x):not(#bf-y) { background: var(--bf-yellow) !important; color: #000 !important; }
.filter-buttons-special.promo-catalog:not(#bf-x):not(#bf-y) { background: var(--bf-violet) !important; color: #fff !important; }
.filter-buttons-special.promo-sale:not(#bf-x):not(#bf-y) { background: var(--bf-red) !important; color: #fff !important; }
.filter-buttons-special.promo-recommended:not(#bf-x):not(#bf-y) { background: var(--bf-violet-dark) !important; color: #fff !important; }
.filter-buttons-special.promo-last:not(#bf-x):not(#bf-y) { background: #000 !important; color: #fff !important; box-shadow: inset 0 0 0 2px #fff; }

/* „Промоции" (падащото меню с филтри на телефон) */
html body .promo-dropdown > summary:not(#bf-x) { background: var(--bf-yellow) !important; border-color: #000 !important; }
html body .promo-dropdown > summary:not(#bf-x) * { color: #000 !important; font-weight: 800 !important; }

/* филтрите вляво: тъмни карета в рамка, заглавията жълти */
html body:is(.category-page, .main-category-page) .all-filters .filters.module-item:not(#bf-x) { background: #111 !important; border: 2px solid #2e2e2e !important; border-radius: 10px !important; box-shadow: none !important; }
html body:is(.category-page, .main-category-page) .all-filters :is(.panel-body, .panel-heading, .panel-collapse):not(#bf-x) { background: transparent !important; border-color: #2e2e2e !important; }
html body:is(.category-page, .main-category-page) .all-filters .panel-heading:not(#bf-x):not(#bf-y), html body:is(.category-page, .main-category-page) .all-filters .panel-heading *:not(#bf-x):not(#bf-y) { color: var(--bf-yellow) !important; font-family: var(--bf-cond) !important; font-weight: 800 !important; }
html body:is(.category-page, .main-category-page) .all-filters .panel-body :is(label, span, a, div, small):not(#bf-x):not(#bf-y) { color: #fff !important; }
html body:is(.category-page, .main-category-page) .all-filters input[type="checkbox"]:not(#bf-x) { accent-color: var(--bf-yellow); }
html body:is(.category-page, .main-category-page) .all-filters input:not([type="checkbox"]):not([type="radio"]):not(#bf-x) { background: #fff !important; color: #000 !important; }

/* =========================================================================
   5. ПРОДУКТ: всичко тъмно; снимките в бели рамки; карето за покупка с жълта рамка
   ========================================================================= */
html body.product-page #product-product:not(#bf-x) { background: transparent !important; color: #fff; }
html body.product-page #product-product :is(h1.page-title, h1.page-title *):not(.ndl-sub):not(#bf-x):not(#bf-y) { color: #fff !important; }
html body.product-page #product-product h1.page-title:not(#bf-x) { font-family: var(--bf-cond) !important; font-weight: 800 !important; font-size: 30px !important; line-height: 1.15 !important; }
html body.product-page #product-product .ndl-sub:not(#bf-x):not(#bf-y) { color: #e0e0e0 !important; font-family: inherit; }
html body.product-page #product-product .product-buttons :is(a, button):not(#bf-x):not(#bf-y) { background: #1a1a1a !important; border: 1px solid #3a3a3a !important; color: #fff !important; }
html body.product-page #product-product .product-buttons :is(a, button) *:not(#bf-x):not(#bf-y) { color: #fff !important; }
/* снимки: бели рамки */
html body.product-page #product-product .product-image:not(#bf-x) { background: #fff; border-radius: 12px; padding: 10px; }
html body.product-page #product-product .product-brand > *:not(#bf-x) { border-radius: 10px; overflow: hidden; }
html body.product-page #product-product .product-brand a:not(#bf-x):not(#bf-y) { color: #fff !important; }
/* средната колона: характеристики, връзки */
html body.product-page #product-product .product-right .flexCol:first-child :is(li, span, p, div, h2, h3, h4, b, strong, td, small):not(.product-label *):not(.product-mpn):not(.product-mpn *):not(#bf-x):not(#bf-y) { color: #fff !important; }
html body.product-page #product-product .product-right .flexCol:first-child a:not(#bf-x):not(#bf-y) { color: var(--bf-yellow) !important; }
html body.product-page #product-product .product-right .flexCol:first-child svg:not(#bf-x) { color: var(--bf-yellow) !important; }
/* карето за покупка */
html body.product-page #product-product .product-right .flexCol:has(#button-cart):not(#bf-x) { background: #111 !important; border: 3px solid var(--bf-yellow) !important; border-radius: 14px !important; padding: 16px !important; box-shadow: 0 0 40px rgba(255, 208, 0, .14) !important; }
html body.product-page #product-product.nd-lite .flexCol:has(#button-cart)::before { display: none !important; }
html body.product-page #product-product .product-price-group:not(#bf-x) { background: transparent !important; }
html body.product-page #product-product :is(.product-price-new, .price-group .product-price, .product-price-group .product-price):not(#bf-x):not(#bf-y) { color: var(--bf-yellow) !important; font-family: var(--bf-cond) !important; font-weight: 900 !important; }
html body.product-page #product-product .product-price-old:not(#bf-x):not(#bf-y), html body.product-page #product-product .product-price-old *:not(#bf-x):not(#bf-y) { color: #FF6B6B !important; }
html body.product-page #product-product .product-price-group :is(span, div, b, p):not([class*="price"]):not(.product-label-discount-percent):not(.ndl-save b):not(#bf-x):not(#bf-y) { color: #fff !important; }
html body #product-product .ndl-save b, html body #product-product .product-label-discount-percent { background: var(--bf-red) !important; color: #fff !important; }
html body #product-product #button-cart:not(#bf-x) { background: var(--bf-yellow) !important; border-color: var(--bf-yellow) !important; color: #000 !important; box-shadow: 0 4px 0 #9c7f00 !important; font-family: var(--bf-cond) !important; font-weight: 900 !important; text-transform: uppercase; }
html body #product-product #button-cart:not(#bf-x) * { color: #000 !important; }
html body #product-product #button-cart:not(#bf-x):hover { background: var(--bf-yellow-2) !important; }
html body.product-page #product-product .button-group-page :is(small, p):not(.btn *):not(#bf-x):not(#bf-y) { color: #fff !important; }
/* бърза поръчка и бутоните под нея */
html body.product-page #product-product .panel.panel-default:not(#bf-x) { background: #1a1a1a !important; border: 1px solid #3a3a3a !important; border-radius: 10px !important; }
html body.product-page #product-product .panel.panel-default :is(h3, h4, .panel-title, .panel-heading, .panel-heading *, label, p, span):not(.btn *):not(#bf-x):not(#bf-y) { color: #fff !important; background: transparent !important; }
html body.product-page #product-product .panel.panel-default input:not(#bf-x) { background: #fff !important; color: #000 !important; border: 2px solid #fff !important; }
html body.product-page #product-product .button-group-page :is(a.btn-wishlist, a.btn-compare, a.btn-block, button.btn-block):not(#button-cart):not(#bf-x):not(#bf-y) { background: #1a1a1a !important; border: 1px solid #3a3a3a !important; color: #fff !important; }
html body.product-page #product-product .button-group-page :is(a.btn-wishlist, a.btn-compare, a.btn-block, button.btn-block):not(#button-cart) *:not(#bf-x):not(#bf-y) { color: #fff !important; }
.bf-pstrip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 10px 12px 10px 22px; background: #000; color: #fff; border: 1px solid #333; border-radius: 8px; position: relative; overflow: hidden; }
.bf-pstrip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--bf-tape); }
.bf-pstrip__t { font-family: var(--bf-cond); font-weight: 900; font-size: 20px; line-height: 1.1; text-transform: uppercase; color: var(--bf-yellow); }
.bf-pstrip__t small { display: block; margin-top: 2px; font-weight: 700; font-size: 14px; color: #fff; text-transform: none; }
.bf-pstrip .bf-timer .bf-cell { min-width: 36px; padding: 3px 4px 2px; }
.bf-pstrip .bf-timer .bf-num { font-size: 17px; }
.bf-pstrip .bf-timer .bf-lbl { font-size: 9px; }
/* лентите на цяла ширина (сив фон зад „Други оферти", разделите и каруселите) - черни */
html body.product-page :is(.other-products, .product-description_nav, .other-products_carousels):not(#bf-x)::before { background: #000 !important; }
html body.product-page .product-description_nav:not(#bf-x)::before { border-top: 2px solid #2e2e2e; border-bottom: 2px solid #2e2e2e; box-sizing: border-box; }
/* „Кат. №" на жълто - черен текст; вноските - бял текст */
html body.product-page #product-product :is(.product-mpn, .product-mpn *):not(#bf-x):not(#bf-y) { color: #000 !important; }
html body.product-page #product-product :is(.tbi-container, .tbi_group) :is(div, span, small, p):not(.uni_button *):not(.tbi_button *):not(#bf-x):not(#bf-y) { color: #fff !important; }
/* „Продадени 5+" и други прозрачни етикети върху черно - светло червено */
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-label-transparent :is(b, b *, span):not(#bf-x):not(#bf-y) { color: #FF6B6B !important; }
/* разделите „Описание / Характеристики / Отзиви" */
html body.product-page .product-description_nav:not(#bf-x) { background: #000 !important; }
html body.product-page .product-description_nav :is(a, li, span, button):not(#bf-x):not(#bf-y) { color: #fff !important; background: transparent !important; font-family: var(--bf-cond) !important; font-weight: 800 !important; font-size: 17px !important; text-transform: uppercase; }
html body.product-page .product-description_nav :is(a, button):hover:not(#bf-x):not(#bf-y), html body.product-page .product-description_nav .active :is(a, button):not(#bf-x):not(#bf-y), html body.product-page .product-description_nav :is(a, button).active:not(#bf-x):not(#bf-y) { color: var(--bf-yellow) !important; box-shadow: inset 0 -3px 0 var(--bf-yellow); }
html body.product-page #product-product .mobile-tab-btn:not(#bf-x) { background: #1a1a1a !important; color: #fff !important; border-color: #3a3a3a !important; font-weight: 700 !important; }
html body.product-page #product-product .mobile-tab-btn.active:not(#bf-x) { background: var(--bf-yellow) !important; color: #000 !important; border-color: var(--bf-yellow) !important; }
/* описание, характеристики, отзиви: тъмни карета с бял текст */
html body.product-page .product-blocks :is(.af-desc-box, .af-spec-box, .reviews-container, .flex-content):not(#bf-x) { background: #111 !important; border: 2px solid #2e2e2e !important; border-radius: 12px !important; box-shadow: none !important; }
html body.product-page .product-blocks :is(h1, h2, h3, h4, h5, p, li, span, div, td, th, b, strong, em, small, label):not(.btn *):not(.product-layout *):not(.module-products *):not(#bf-x):not(#bf-y) { color: #fff !important; }
html body.product-page .product-blocks a:not(.btn):not(.product-layout *):not(.module-products *):not(#bf-x):not(#bf-y) { color: var(--bf-yellow) !important; }
html body.product-page .product-blocks tr:not(#bf-x) { background: #161616 !important; }
html body.product-page .product-blocks tr:nth-child(odd):not(#bf-x) { background: #0c0c0c !important; }
html body.product-page .product-blocks :is(td, th):not(#bf-x) { border-color: #2e2e2e !important; }
/* подзаглавията в характеристиките (af-spec-head): в обикновения дизайн са на бял фон, тук - черни с жълт текст, иначе е бяло на бяло (10.11.2026) */
html body.product-page .product-blocks .flex-content.af-spec-box .af-spec .af-spec-head th:not(#bf-x):not(#bf-y) { background: #000 !important; color: var(--bf-yellow) !important; border-bottom: 2px solid var(--bf-yellow) !important; }
html body.product-page .product-blocks textarea:not(#bf-x), html body.product-page .product-blocks input:not([type="submit"]):not(#bf-x) { background: #fff !important; color: #000 !important; }

/* =========================================================================
   6. ТАБЛЕТ И ТЕЛЕФОН
   ========================================================================= */
@media (max-width: 991px) {
  .bf-bar::before, .bf-bar::after { width: 22px; }
  .bf-bar__in { padding: 6px 30px; gap: 10px; flex-wrap: wrap; }
  .bf-bar__when, .bf-bar__cta { display: none; }
  .bf-bar__title { font-size: 20px; }
  .bf-bar__off { height: 26px; font-size: 16px; padding: 0 7px; }
  .bf-tick__item { height: 32px; font-size: 15px; }
  .main-slider-wrapper.bf-has-hero .bf-hero { display: block; height: auto; border-radius: 0; box-shadow: none; }
  .bf-hero img { width: 100%; height: auto; }
  .bf-hero__side { display: none; }
  .bf-tiles { grid-template-columns: 1fr; gap: 12px; margin: 18px 0 24px; }
  .bf-tile { min-height: 0; flex-direction: row; align-items: center; padding: 14px 16px; gap: 12px; }
  .bf-tile__k { font-size: 20px; flex: 1 1 auto; }
  .bf-tile__n { font-size: 40px; order: -1; min-width: 92px; }
  .bf-tile__t span { display: none; }
  html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products .nav-tabs:not(#bf-x) { min-height: 50px; padding-left: 52px !important; }
  html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products .nav-tabs:not(#bf-x)::before { width: 38px !important; }
  html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products .nav-tabs:not(#bf-x) li > a:not(#bf-y) { font-size: 21px !important; }
  html body:is(.category-page, .main-category-page) h1.page-title:not(#bf-x) { font-size: 26px !important; }
  html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products :is(h2, h3).section--title:not(#bf-x) { min-height: 50px; padding-left: 52px !important; font-size: 21px !important; }
  html body:is(.home-page, .category-page, .main-category-page, .product-page) .module-products :is(h2, h3).section--title:not(#bf-x)::before { width: 38px; }
  .bf-pstrip { flex-direction: column; align-items: flex-start; }
  html body #product-product .price-group .product-price:not(#bf-x):not(#bf-y) { font-size: 34px !important; }
  html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .button-listing a.btn.btn-cart:not(#bf-x) :is(.btn-text, span):not(#bf-y) { font-size: 14px !important; text-transform: none; letter-spacing: 0; }
  html body.product-page #product-product h1.page-title:not(#bf-x) { font-size: 23px !important; }
}
@media (max-width: 400px) {
  .bf-bar__off { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-tick__track { animation: none; }
  .bf-timer .bf-num.bf-flip { animation: none; }
  .bf-tile, .bf-hero img, .product-layout .product-thumb, .product-layout .image img { transition: none !important; }
}
/* бягащата лента на началната е под банера */
.bf-tick.bf-tick--home { margin: 22px 0 4px; }

/* =========================================================================
   7. ВЕРСИЯ 4 (05.11.2026): довършване и ефекти
   ========================================================================= */
/* иконките в менюто с категориите на началната - бели, при посочване жълти */
html body.home-page #mainMenuCategories .cat-icon svg { filter: brightness(0) invert(1); }
html body.home-page #mainMenuCategories > li:hover .cat-icon svg { filter: brightness(0) invert(78%) sepia(84%) saturate(1300%) hue-rotate(3deg) brightness(104%); }
html body.home-page #mainMenuCategories .category-count:not(#bf-x):not(#bf-y) { color: #bdbdbd !important; }

/* имената в картите - по-едри и по-ясни */
html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout :is(.product-title, .name a):not(#bf-x):not(#bf-y) { font-size: 14px !important; line-height: 1.3 !important; font-weight: 600 !important; }

/* главна категория: бройката до заглавието и лентата с филтри - тъмни */
html body.main-category-page .mc-title-count:not(#bf-x) { color: #c8c8c8 !important; }
html body.main-category-page #content .content-header:not(#bf-x) { background: #111 !important; border: 2px solid #2e2e2e; border-radius: 10px; }
html body.main-category-page #content .content-header select:not(#bf-x) { background: #fff; color: #000; }
html body.main-category-page #content .content-header .view-buttons .btn:not(#bf-x) { background: #1d1d1d !important; border-color: #3a3a3a !important; color: #fff !important; }

/* банерът: лъч светлина минава през него на всеки 7 секунди */
.bf-hero::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 38%; z-index: 2; pointer-events: none; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .16) 45%, rgba(255, 225, 77, .22) 50%, rgba(255, 255, 255, .16) 55%, rgba(255, 255, 255, 0) 100%); transform: skewX(-18deg); animation: bf-shine 7s ease-in-out 1.2s infinite; }
@keyframes bf-shine { 0% { left: -60%; } 22% { left: 130%; } 100% { left: 130%; } }

/* картите с продукти: лек наклон към мишката с отблясък (само с мишка) */
.bf-glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .2s; background: radial-gradient(circle at var(--bf-gx, 50%) var(--bf-gy, 50%), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 46%); }
.product-thumb.bf-tilting .bf-glare { opacity: 1; }
html body .product-layout .product-thumb.bf-tilting { transition: transform .08s linear, border-color .18s, box-shadow .18s !important; }

@media (prefers-reduced-motion: reduce) {
  .bf-hero::before { display: none; }
}

/* светлите страници (количка, каса): червените цени на сайта (#FF1D25) се четат трудно на бяло - по-тъмно червено */
html body:not(.home-page):not(.category-page):not(.main-category-page):not(.product-page) :is(.cart-line-total-dual-price, .cart-line-total-dual-price *, #cart-total-eur, #cart-total-eur *, #cart-total-bottom .checkout-grand-total-dual-price, #cart-total-bottom .checkout-grand-total-dual-price *, .product-layout .price-new, .product-layout .price-new *):not(#bf-x) { color: var(--bf-red-dark) !important; }
html body:not(.home-page):not(.category-page):not(.main-category-page):not(.product-page) .product-layout .price-old :is(.price-amount, .price-amount *):not(#bf-x) { color: #555 !important; }
html body:not(.home-page):not(.category-page):not(.main-category-page):not(.product-page) .product-together_modal:not(#bf-x) { color: var(--bf-violet-dark) !important; }

/* продукт: каре „Черен петък" при цената - надписът на един ред, таймерът под него */
.bf-pstrip { flex-direction: column; align-items: flex-start !important; gap: 8px !important; padding: 10px 12px 12px 22px !important; }
.bf-pstrip__t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; font-size: 19px !important; }
.bf-pstrip__t small { display: inline !important; margin: 0 !important; font-size: 13px !important; }
.bf-pstrip .bf-timer .bf-cell { min-width: 44px !important; padding: 4px 6px 3px !important; }
.bf-pstrip .bf-timer .bf-num { font-size: 19px !important; }
.bf-pstrip .bf-timer .bf-lbl { font-size: 10px !important; }
/* таймерът запълва цялото каре (12.11.2026) */
.bf-pstrip .bf-timer { display: flex !important; width: 100%; gap: 6px; }
.bf-pstrip .bf-timer .bf-cell { flex: 1 1 0; min-width: 0 !important; padding: 7px 4px 6px !important; }
.bf-pstrip .bf-timer .bf-num { font-size: 26px !important; }
.bf-pstrip .bf-timer .bf-lbl { font-size: 11px !important; margin-top: 4px; }

/* =========================================================================
   8. ВЕРСИЯ 4.1: по-малко „плуване" в черно - стоманен фон и секции в карета
   ========================================================================= */
/* фон: тъмна стомана с фина рифелова шарка (като пода на банера) и лека светлина отгоре */
html body:is(.home-page, .category-page, .main-category-page, .product-page) {
  background-color: #0d0d0e !important;
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(255, 208, 0, .07), rgba(255, 208, 0, 0) 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .022) 0 2px, rgba(255, 255, 255, 0) 2px 14px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .022) 0 2px, rgba(255, 255, 255, 0) 2px 14px) !important;
  background-attachment: fixed !important;
}

/* началната: всяка секция с продукти е каре с цветен кант по цвета на бутона си */
html body.home-page .grid-row-top-4 .grid-cols > .grid-col { position: relative; margin: 0 0 30px !important; padding: 18px 18px 14px !important; background: linear-gradient(180deg, #19191b 0%, #121213 100%) !important; border: 1px solid #2c2c2e; border-top: 4px solid var(--bf-yellow); border-radius: 14px; box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
html body.home-page .grid-row-top-4 .grid-cols > .grid-col:has(a[href*="razprodajba"]) { border-top-color: var(--bf-red); }
html body.home-page .grid-row-top-4 .grid-cols > .grid-col:has(a[href*="promocatalog"]) { border-top-color: var(--bf-violet); }
/* заглавният ред вътре в карето - без собствена рамка, по-лек */
html body.home-page .grid-row-top-4 .module-products .nav-tabs:not(#bf-x), html body.home-page .grid-row-top-4 .module-products :is(h2, h3).section--title:not(#bf-x) { border: 0 !important; background: transparent !important; min-height: 48px; margin-bottom: 14px !important; padding-left: 62px !important; }
html body.home-page .grid-row-top-4 .module-products .nav-tabs:not(#bf-x)::before, html body.home-page .grid-row-top-4 .module-products :is(h2, h3).section--title:not(#bf-x)::before { width: 46px !important; border-radius: 6px; }
/* точките на карусела - в карето */
html body.home-page .grid-row-top-4 .swiper-pagination { position: relative; margin-top: 10px; }

/* плочките с категории и трите големи плочки - също на подложка */
html body.home-page .grid-row-custom-slider .grid-col { background: transparent !important; }

/* категория и продукт: блоковете с продукти отдолу - също в карета */
html body.product-page :is(.other-products, .other-products_carousels) .module-products { padding: 18px 18px 14px; background: linear-gradient(180deg, #19191b 0%, #121213 100%); border: 1px solid #2c2c2e; border-top: 4px solid var(--bf-yellow); border-radius: 14px; margin-bottom: 26px; }
html body.product-page :is(.other-products, .other-products_carousels) .module-products .nav-tabs:not(#bf-x) { border: 0 !important; background: transparent !important; }

@media (max-width: 991px) {
  html body.home-page .grid-row-top-4 .grid-cols > .grid-col { padding: 12px 10px 10px !important; margin-bottom: 20px !important; border-radius: 12px; }
  html body.product-page :is(.other-products, .other-products_carousels) .module-products { padding: 12px 10px 10px; }
  html body:is(.home-page, .category-page, .main-category-page, .product-page) { background-attachment: scroll !important; }
}
@media (max-width: 991px) {
  html body.home-page .grid-row-top-4 .grid-cols > .grid-col { padding: 10px 6px 8px !important; }
  html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .button-listing a.btn.btn-cart:not(#bf-x) :is(.btn-text, span):not(#bf-y) { font-size: 12.5px !important; white-space: nowrap; }
}
@media (max-width: 991px) {
  /* бутонът „Добави в количка" в тесните карти: без празното място вдясно, за да се събира текстът */
  html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .button-listing a.btn.btn-cart:not(#bf-x) { padding-right: 6px !important; padding-left: 40px !important; }
  html body:is(.home-page, .category-page, .main-category-page, .product-page) .product-layout .button-listing a.btn.btn-cart:not(#bf-x) .btn-text:not(#bf-y) { padding: 0 2px !important; font-size: 12px !important; }
}

/* =========================================================================
   9. ВЕРСИЯ 4.2: лилав фон отстрани и етикет BLACK FRIDAY
   ========================================================================= */
/* фонът отстрани - тъмно лилав с отблясъци и стоманена шарка (каретата остават тъмни върху него) */
html body:is(.home-page, .category-page, .main-category-page, .product-page) {
  background-color: #1a0b33 !important;
  background-image:
    radial-gradient(ellipse 70% 50% at 0% 20%, rgba(123, 47, 247, .45), rgba(123, 47, 247, 0) 70%),
    radial-gradient(ellipse 70% 50% at 100% 60%, rgba(123, 47, 247, .38), rgba(123, 47, 247, 0) 70%),
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(255, 208, 0, .08), rgba(255, 208, 0, 0) 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, rgba(255, 255, 255, 0) 2px 14px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 2px, rgba(255, 255, 255, 0) 2px 14px) !important;
}

/* етикетът BLACK FRIDAY на продуктите: черен с жълт надпис и жълта рамка */
html body .product-labels .product-label-233.bf-bf-label b:not(#bf-x):not(#bf-y), html body #product-product .product-label-233.bf-bf-label b:not(#bf-x):not(#bf-y) { background: #000 !important; color: var(--bf-yellow) !important; border: 1px solid var(--bf-yellow) !important; font-family: var(--bf-cond) !important; font-weight: 900 !important; letter-spacing: .4px; text-transform: uppercase; }
html body .product-label-233.bf-bf-label b img { filter: brightness(0) invert(78%) sepia(84%) saturate(1300%) hue-rotate(3deg) brightness(104%); }
/* бутонът BLACK FRIDAY във филтрите на категорията */
.filter-buttons-special.promo-discount.bf-bf-label:not(#bf-x):not(#bf-y) { background: #000 !important; color: var(--bf-yellow) !important; box-shadow: inset 0 0 0 2px var(--bf-yellow) !important; letter-spacing: .3px; }

/* =========================================================================
   8. БАНЕРЪТ (10.11.2026): лампите светват, искри от ъглошлайфа, лампа след мишката.
   По ефекта на CMX.BG. ::before (лъчът) и ::after (лентата) са заети, затова са отделни span-ове от JS.
   ========================================================================= */
.bf-hero { --lx: 70%; --ly: 60%; isolation: isolate; }
.bf-hero__timer { z-index: 3; }
/* сянката, която лампата пробива (само с мишка) */
.bf-hero__lamp { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s ease; background: radial-gradient(circle 340px at var(--lx) var(--ly), rgba(255, 214, 130, .24), rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .6) 100%); }
.bf-hero.bf-lamp-on .bf-hero__lamp { opacity: 1; }
/* затъмнението, преди лампите да светнат */
.bf-hero__dim { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: #000; opacity: 0; }
.bf-hero.bf-lights .bf-hero__dim { animation: bf-lights-on 1.6s steps(1, end) .15s both; }
@keyframes bf-lights-on {
  0% { opacity: .92; } 18% { opacity: .35; } 24% { opacity: .9; } 36% { opacity: .2; }
  42% { opacity: .75; } 56% { opacity: .05; } 62% { opacity: .45; } 70%, 100% { opacity: 0; }
}
.bf-hero .bf-sparks { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .bf-hero__dim { animation: none !important; opacity: 0 !important; }
  .bf-hero .bf-sparks, .bf-hero__lamp { display: none; }
}

/* =========================================================================
   9. ТЪРСАЧКАТА (10.11.2026): бяло поле 50px, жълта рамка 3px, жълт бутон „Търси“, текст 16px.
   Денислав: „губи се в цялото това черно и е много тънка“. Одобрено по снимка преди/след.
   ========================================================================= */
html body .header-mega #header-search.header-search {
  display: flex !important; align-items: stretch; height: 50px !important; padding: 0 !important;
  background: #fff !important; border: 3px solid #FFD800 !important; border-radius: 8px !important;
  box-shadow: 0 0 0 4px rgba(255, 216, 0, .18);
}
html body .header-mega #header-search.header-search .twitter-typeahead { order: 1 !important; flex: 1 1 auto; height: 100% !important; display: block !important; }
html body .header-mega #header-search.header-search #search-input {
  height: 100% !important; width: 100% !important; border: 0 !important; border-radius: 5px 0 0 5px !important;
  background: #fff !important; color: #111 !important; font-size: 16px !important; font-weight: 600;
  padding: 0 16px !important; box-shadow: none !important; outline: none;
}
html body .header-mega #header-search.header-search #search-input::placeholder { color: #555 !important; font-weight: 400; opacity: 1; }
html body .header-mega #header-search.header-search .clear-button { order: 2 !important; }
html body .header-mega #header-search.header-search .search-button {
  order: 3 !important; position: static !important; display: flex !important; align-items: center; gap: 8px; height: auto !important;
  margin: 0 !important; padding: 0 22px !important; border: 0 !important; border-radius: 0 4px 4px 0 !important;
  background: #FFD800 !important; color: #111 !important; font-size: 16px; font-weight: 800; cursor: pointer;
}
html body .header-mega #header-search.header-search .search-button::after { content: "Търси"; }
html body .header-mega #header-search.header-search .search-button svg { width: 18px; height: 18px; }
html body .header-mega #header-search.header-search .search-button svg path { fill: #111 !important; }
html body .header-mega #header-search.header-search .search-button:hover { background: #ffe44d !important; }
html body .header-mega #header-search.header-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 216, 0, .45); }
@media (max-width: 767px) {
  html body .header-mega #header-search.header-search { height: 46px !important; border-width: 2px !important; }
  html body .header-mega #header-search.header-search #search-input { font-size: 16px !important; padding: 0 12px !important; }
  html body .header-mega #header-search.header-search .search-button { padding: 0 14px !important; }
  html body .header-mega #header-search.header-search .search-button::after { content: none; }
}

/* =========================================================================
   11. ПОДАРЪЧЕН ВАУЧЕР - четвърта плочка до „Разпродажба / Топ оферти / Промо пакети“ (11.11.2026).
   Вместо число има малка картичка-ваучер (същата като печатната), която подскача.
   ========================================================================= */
.bf-tiles.bf-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bf-tile--gift { background: #1d1d1d; box-shadow: 0 6px 0 #000, inset 0 0 0 2px #FFD800; }
.bf-tile--gift, .bf-tile--gift * { color: #fff !important; }
.bf-tile--gift .bf-tile__k { color: #FFD800 !important; max-width: 56%; }
.bf-tile--gift .bf-tile__t i { background: #FFD800; color: #111 !important; }
.bf-tile--gift::after { background: repeating-linear-gradient(-45deg, #FFD800 0 12px, transparent 12px 24px); opacity: .16; }
.bf-gcard {
  position: absolute; z-index: 1; right: 20px; top: 34px; width: 158px; height: 100px; display: flex; flex-direction: column;
  border-radius: 9px; overflow: hidden; background: #111; border: 1px solid #3a3a3a; box-shadow: 0 10px 22px rgba(0, 0, 0, .55);
  transform: rotate(-8deg); transform-origin: 50% 100%; animation: bf-gcard-hop 3s ease-in-out infinite;
}
.bf-gcard__band { background: linear-gradient(90deg, #FFD800, #F9BF3B); color: #111 !important; font: 800 9px/1 var(--bf-cond, sans-serif); letter-spacing: .14em; padding: 6px 9px; }
.bf-gcard__sum { color: #FFD800 !important; font-family: var(--bf-cond, sans-serif); font-weight: 900; font-size: 36px; line-height: 1; padding: 7px 10px 0; }
.bf-gcard__sum small { font-size: .55em; margin-left: 2px; color: #FFD800 !important; }
.bf-gcard__code { margin: auto 9px 8px; border: 1px dashed #FFD800; border-radius: 4px; background: #000; font: 700 9px/1 Consolas, "Courier New", monospace; letter-spacing: .08em; padding: 4px 6px; text-align: center; }
@keyframes bf-gcard-hop {
  0%, 60%, 100% { transform: rotate(-8deg) translateY(0); }
  68% { transform: rotate(-12deg) translateY(-9px); }
  76% { transform: rotate(-5deg) translateY(0); }
  83% { transform: rotate(-9deg) translateY(-3px); }
  90% { transform: rotate(-8deg) translateY(0); }
}
.bf-tile--gift:hover .bf-gcard { animation-duration: 1.1s; }
@media (max-width: 1599px) {
  .bf-tile--gift .bf-tile__k { max-width: 52%; }
  .bf-gcard { width: 122px; height: 78px; top: 56px; right: 12px; }
  .bf-gcard__band { font-size: 7px; padding: 5px 7px; }
  .bf-gcard__sum { font-size: 27px; }
}
@media (max-width: 991px) {
  .bf-tiles.bf-tiles--4 { grid-template-columns: 1fr; }
  .bf-tile--gift .bf-tile__k { max-width: none; }
  .bf-gcard { position: relative; right: auto; top: auto; order: -1; flex: none; width: 92px; height: 58px; border-radius: 6px; }
  .bf-gcard__band { font-size: 6px; padding: 4px 5px; }
  .bf-gcard__sum { font-size: 21px; padding: 4px 6px 0; }
  .bf-gcard__code { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-gcard { animation: none !important; }
}
