/* Black Friday 2026: зарежда се само когато дизайнът на кампанията е включен (Promo::design()). */
:root { --bf-red: #d7001d; --bf-red-d: #a90016; --bf-pink: #fdeef0; }

/* Червен фон с лек сатенен отблясък */
.bf-red { background: radial-gradient(120% 140% at 15% 0%, #f2183a 0%, var(--bf-red) 45%, var(--bf-red-d) 100%); color: #fff; }
/* „BLACK FRIDAY“ в черно хапче */
.bf-pill { display: inline-block; background: #0b0b0b; color: #fff; border-radius: 999px; font-weight: 900; letter-spacing: -.01em; line-height: 1; padding: .18em .55em .2em; white-space: nowrap; }
/* бялата наклонена лента с червен текст */
.bf-ribbon { display: inline-block; background: #fff; color: var(--bf-red); font-weight: 900; text-transform: uppercase; line-height: 1; padding: .22em .6em; transform: skew(-6deg); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.bf-ribbon > span { display: inline-block; transform: skew(6deg); }

/* Обратно броене */
.bf-count { display: inline-flex; align-items: center; gap: .35rem; }
.bf-count b { display: grid; place-items: center; min-width: 2.6em; padding: .25em .35em .2em; border-radius: .6em; background: #fff; color: var(--bf-red); font-weight: 900; line-height: 1; box-shadow: inset 0 -2px 0 rgba(0,0,0,.06); }
.bf-count b small { display: block; font-size: .36em; font-weight: 800; letter-spacing: .04em; color: var(--bf-red-d); margin-top: .25em; }
.bf-count i { font-style: normal; font-weight: 900; color: var(--bf-red); }
.bf-count-card { background: rgba(255,255,255,.92); border-radius: 1.1rem; padding: .7rem .9rem .8rem; box-shadow: 0 10px 30px rgba(120,0,15,.25); text-align: center; }
.bf-count-card .bf-count-t { display: block; color: var(--bf-red); font-weight: 900; text-transform: uppercase; font-size: .78rem; letter-spacing: .02em; margin-bottom: .4rem; }

/* Горна лента */
.bf-bar { position: relative; font-weight: 800; text-transform: uppercase; }
.bf-bar .bf-seg { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.bf-bar .bf-sep { width: 1px; align-self: stretch; margin: .55rem 0; background: rgba(255,255,255,.55); }
.bf-bar .bf-it { text-transform: none; font-style: italic; }
.bf-bar .bf-count b { font-size: 1rem; min-width: 2.2em; border-radius: .45em; }
.bf-bar-x { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 999px; color: #fff; }
.bf-bar-x:hover { background: rgba(255,255,255,.15); }

/* Панделка в ъгъла (SVG) */
.bf-bow { position: absolute; left: -14px; top: -10px; width: 150px; height: auto; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(80,0,10,.35)); }

/* Голям банер на началната страница */
.bf-hero { position: relative; overflow: hidden; border-radius: 1.75rem; }
.bf-hero h2 .bf-pill { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
.bf-hero .bf-ribbon { font-size: clamp(1.35rem, 3vw, 2.6rem); }
.bf-hero .bf-count b { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.bf-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: #fff; color: var(--bf-red); font-weight: 900; border-radius: 999px; padding: .9rem 1.6rem; font-size: 1.15rem; box-shadow: 0 8px 20px rgba(80,0,10,.25); transition: transform .15s; }
.bf-btn:hover { transform: translateY(-2px); }
.bf-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 1.1rem; background: #eee; }

/* Лента в категориите */
.bf-strip { position: relative; overflow: hidden; border-radius: 1.5rem; }
.bf-strip h2 .bf-pill { font-size: clamp(1.9rem, 4vw, 3.6rem); }
.bf-strip .bf-ribbon { font-size: clamp(1.1rem, 2.2vw, 2rem); }
.bf-strip .bf-count b { font-size: clamp(1.3rem, 2vw, 1.9rem); }

/* Карта на продукт */
.bf-save { position: absolute; top: .5rem; left: .5rem; z-index: 2; background: var(--bf-red); color: #fff; border-radius: .7rem; padding: .3rem .55rem .35rem; line-height: 1.1; box-shadow: 0 4px 12px rgba(160,0,20,.3); }
.bf-save small { display: block; font-size: 10px; font-weight: 700; }
.bf-save b { display: block; font-size: 15px; font-weight: 900; }
.bf-cartbtn { display: grid; place-items: center; width: 2.75rem; height: 2.25rem; border-radius: .7rem; background: var(--bf-red); color: #fff; flex-shrink: 0; }
.bf-cartbtn:hover { background: var(--bf-red-d); }

/* Цена на продуктовата страница */
.bf-pricebox { background: var(--bf-pink); border-radius: 1rem; padding: .9rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; position: relative; }
.bf-pricebox .bf-now { color: var(--bf-red); font-size: 2.1rem; font-weight: 900; line-height: 1; }
.bf-pricebox s { color: #6b7280; font-size: 1.1rem; font-weight: 700; }
.bf-savebig { margin-left: auto; background: var(--bf-red); color: #fff; border-radius: .8rem; padding: .35rem .8rem .45rem; text-align: center; line-height: 1.1; position: relative; }
.bf-savebig small { display: block; font-size: 12px; font-weight: 700; }
.bf-savebig b { display: block; font-size: 1.35rem; font-weight: 900; }
.bf-savebig::before { content: ''; position: absolute; right: -12px; top: -16px; width: 22px; height: 22px; background: linear-gradient(var(--bf-red), var(--bf-red)) 50% 0/3px 9px no-repeat, linear-gradient(var(--bf-red), var(--bf-red)) 100% 60%/9px 3px no-repeat, linear-gradient(60deg, transparent 45%, var(--bf-red) 45% 58%, transparent 58%) 0 0/100% 100% no-repeat; }
.bf .bf-addbtn { background: var(--bf-red) !important; animation: bf-pulse 1.6s ease-in-out infinite; }
.bf .bf-addbtn:hover { background: var(--bf-red-d) !important; }
@keyframes bf-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(215,0,29,.45); transform: scale(1); } 50% { box-shadow: 0 0 0 10px rgba(215,0,29,0); transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .bf .bf-addbtn { animation: none; } }

/* ---- оформление: без класове на Tailwind, които липсват в компилирания site.css ---- */
.bf-bar-d { display: none; max-width: 80rem; margin: 0 auto; padding: 0 3rem; height: 3rem; align-items: center; justify-content: center; gap: 1.25rem; font-size: 15px; }
.bf-bar-m { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .4rem 2.6rem; font-size: 11px; line-height: 1.15; }
.bf-bar-m .bf-pill { font-size: 13px; }
.bf-bar-m .bf-count b { font-size: 13px; min-width: 2.1em; }
.bf-bar-m .bf-count i { color: #fff; }
.bf-bar-d .bf-pill { font-size: 14px; }
@media (min-width: 1024px) { .bf-bar-d { display: flex; } .bf-bar-m { display: none; } }
.bf-ico { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.bf-wrap { max-width: 80rem; margin: 0 auto; padding: 1.25rem 1rem 0; }
.bf-hero { display: grid; gap: 1.5rem; align-items: center; padding: 1.25rem; }
.bf-hero-txt { position: relative; text-align: center; padding: 1rem 0; }
.bf-kick { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 1rem; }
.bf-sub { font-weight: 800; font-style: italic; font-size: 1.15rem; }
.bf-mt1 { margin-top: .6rem; } .bf-mt2 { margin-top: 1rem; } .bf-mt3 { margin-top: 1.25rem; }
.bf-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.bf-photos { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: .75rem; height: 300px; }
.bf-photos a:first-child { grid-row: span 2; }
.bf-photos a { display: block; min-height: 0; }
@media (min-width: 640px) { .bf-photos { height: 420px; } .bf-kick { font-size: 1.2rem; } .bf-sub { font-size: 1.5rem; } }
@media (min-width: 1024px) { .bf-hero { grid-template-columns: 1.15fr 1fr; padding: 1rem 1rem 1rem 2.5rem; } .bf-hero-txt { padding: 2rem 0; } .bf-photos { height: 520px; } }
.bf-strip { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem 1.25rem; margin-top: 1rem; }
.bf-strip-txt { position: relative; text-align: center; flex: 1; }
.bf-strip h2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin-top: .4rem; }
.bf-strip .bf-kick { font-size: .85rem; }
.bf-strip .bf-sub { font-size: 1rem; margin-top: .4rem; }
.bf-strip .bf-count-card { position: relative; flex-shrink: 0; }
@media (min-width: 768px) { .bf-strip { flex-direction: row; gap: 2rem; padding: 1.25rem 2rem; } .bf-strip-txt { text-align: left; padding-left: 6rem; } .bf-strip h2 { justify-content: flex-start; } .bf-strip .bf-kick { font-size: 1.1rem; } .bf-strip .bf-sub { font-size: 1.25rem; } }
.bf-price { margin-top: .4rem; display: flex; align-items: center; gap: .5rem; }
.bf-price s { font-size: .8rem; font-weight: 600; color: #6b7280; }
.bf-price span { font-size: 1.15rem; font-weight: 900; color: var(--bf-red); }
.bf-price .bf-cartbtn { margin-left: auto; }
@media (min-width: 640px) { .bf-price span { font-size: 1.3rem; } }
.bf-pricebox { margin-top: 1rem; }

/* телефон: банерът да се събира в екрана */
.bf-hero { grid-template-columns: minmax(0, 1fr); }
.bf-hero h2 .bf-pill { font-size: clamp(2rem, 9.5vw, 5.4rem); }
.bf-hero .bf-ribbon { font-size: clamp(1rem, 4.6vw, 2.6rem); }
.bf-hero .bf-count b { font-size: clamp(1.15rem, 5.4vw, 2.4rem); }
.bf-strip h2 .bf-pill { font-size: clamp(1.7rem, 8vw, 3.6rem); }
.bf-strip .bf-ribbon { font-size: clamp(.95rem, 4vw, 2rem); }
.bf-strip .bf-count b { font-size: clamp(1.1rem, 5vw, 1.9rem); }
@media (max-width: 639px) {
  .bf-btn { font-size: 1rem; padding: .75rem 1.25rem; }
  .bf-count-card { padding: .55rem .6rem .65rem; }
  .bf-bow { width: 110px; }
  .bf-bar-m { gap: .4rem; padding-right: 2.4rem; }
  .bf-bar-m .bf-it { font-size: 10px; }
}
@media (max-width: 380px) { .bf-bar-m .bf-it { display: none; } }
@media (min-width: 1024px) { .bf-hero { grid-template-columns: 1.15fr 1fr; } }

/* „Спестявате“ долу вляво, за да не закрива лицата */
.bf-save { top: auto; bottom: .5rem; }
/* цената на картата не се пренася на два реда */
.bf-price s, .bf-price span { white-space: nowrap; }
@media (max-width: 479px) {
  .bf-price { gap: .3rem; }
  .bf-price s { font-size: .7rem; }
  .bf-price span { font-size: 1rem; }
  .bf-cartbtn { width: 2.3rem; height: 2rem; border-radius: .6rem; }
  .bf-save { padding: .2rem .45rem .25rem; }
  .bf-save b { font-size: 13px; }
}
