/* =====================================================================
   NANOTECH – Black Friday 2026
   ===================================================================== */

:root {
  --bf-flame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1c.6 3.4 3.8 5.6 5.6 8.4 1.2 1.8 1.9 3.6 1.9 5.6A7.5 7.5 0 0 1 12 22.5 7.5 7.5 0 0 1 4.5 15c0-2.6 1.1-4.8 2.8-6.5.2 1.6.9 2.9 2.1 3.6C9 8.2 10 4.3 12 1zM12 13.2c-.9 1.6-2.6 2.6-2.6 4.6a2.6 2.6 0 0 0 5.2 0c0-1.9-1.6-3-2.6-4.6z'/%3E%3C/svg%3E");
  --bf-black: #000;
  --bf-red: #e6001b;
  --bf-red-bright: #ff1027;
  --bf-white: #fff;
}

/* ---------- 1) Běžící proužek v horní liště ---------- */
.bf-topbar {
  position: relative;
  z-index: 3;
  display: block;
  overflow: hidden;
  height: 40px;
  background: var(--bf-black);
  color: var(--bf-white);
  text-decoration: none;
  border-bottom: 2px solid var(--bf-red);
}
.bf-topbar:hover,
.bf-topbar:focus,
.bf-topbar:visited { color: var(--bf-white); text-decoration: none; }
.bf-topbar:focus-visible { outline: 2px solid var(--bf-red-bright); outline-offset: -4px; }

.bf-topbar__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: bf-topbar-run var(--bf-speed, 60s) linear infinite;
}
.bf-topbar:hover .bf-topbar__track,
.bf-topbar:focus-visible .bf-topbar__track { animation-play-state: paused; }

.bf-topbar__set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 100%;
}

.bf-topbar__item {
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* oddělovač – malý červený čtvereček (ostré rohy jako zbytek webu) */
.bf-topbar__item::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 44px;
  background: var(--bf-red-bright);
}

.bf-topbar__item--title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.bf-topbar__accent { color: var(--bf-red-bright); }

.bf-topbar__code {
  display: inline-block;
  margin-left: 8px;
  padding: 5px 8px;
  background: var(--bf-red);
  color: var(--bf-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
}

@keyframes bf-topbar-run {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Bez animace (uživatel má v systému omezený pohyb): jedna statická sada na střed */
@media (prefers-reduced-motion: reduce) {
  .bf-topbar__track { width: 100%; justify-content: center; animation: none; }
  .bf-topbar__set + .bf-topbar__set,
  .bf-topbar__set .bf-topbar__item:nth-child(n + 5) { display: none; }
  .bf-topbar__set .bf-topbar__item:nth-child(4)::after { display: none; }
}

@media (max-width: 767px) {
  .bf-topbar { height: 34px; }
  .bf-topbar__item { padding: 0 14px; font-size: 12px; }
  .bf-topbar__item::after { margin-left: 28px; width: 5px; height: 5px; }
  .bf-topbar__item--title { font-size: 13px; }
  .bf-topbar__code { padding: 4px 6px; font-size: 12px; }
}

/* ---------- 2) Ohýnek u odkazu na kategorii Black Friday (menu + strom kategorií) ---------- */
.bf-hot::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  margin-right: .35em;
  vertical-align: -.12em;
  background-color: var(--bf-red-bright);
  -webkit-mask: var(--bf-flame) no-repeat center / contain;
          mask: var(--bf-flame) no-repeat center / contain;
}

/* ---------- 3) Informační štítek vlevo dole (Shoptet .site-msg) ---------- */
/* Ikonu „i“ (ikonový font šablony) nahradí ohýnek; třídu .bf-msg přidá bf.js,
   jen když text hlášky mluví o Black Friday / obsahuje kód. */
.site-msg.bf-msg { border-left: 4px solid var(--bf-red); }
.site-msg.bf-msg .text::before {
  content: "";
  font-family: inherit;
  width: 26px;
  height: 26px;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--bf-red-bright);
  -webkit-mask: var(--bf-flame) no-repeat center / contain;
          mask: var(--bf-flame) no-repeat center / contain;
}
.site-msg.bf-msg .bf-msg__link,
.site-msg.bf-msg .bf-msg__link:hover,
.site-msg.bf-msg .bf-msg__link:visited { color: inherit; text-decoration: none; }
.site-msg.bf-msg .bf-msg__code {
  display: inline-block;
  padding: 2px 6px;
  background: var(--bf-red);
  color: var(--bf-white);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
}
