/* INFINITE MedStyle – Black Friday 2026
   Lišta nahoře + landing page kategorie Black Friday.
   Barvy značky: černá, bílá, růžová (salmon) #E9806C, modrá #306CE5, červená #E23729. */

:root {
  --bf-salmon: #E9806C;
  --bf-salmon-light: #F19A87;
  --bf-blue: #306CE5;
  --bf-red: #E23729;
}

/* =========================================================
   1) LIŠTA NAHOŘE (všechny stránky, 20. 11. – 1. 12.)
   ========================================================= */
a.bfbar {
  display: block;
  position: relative;
  z-index: 5;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-variant-numeric: lining-nums tabular-nums;
}
a.bfbar:hover, a.bfbar:focus, a.bfbar:visited { color: #111; text-decoration: none; }
a.bfbar:focus-visible { outline: 2px solid #001F89; outline-offset: -4px; }
.bfbar-row {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  white-space: nowrap;
  overflow: hidden;
}
.bfbar-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 800; letter-spacing: .22em; }
.bfbar-sep { flex: none; width: 1px; height: 14px; background: #d6d6d6; }
.bfbar-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  background: var(--bf-salmon);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.bfbar-time { font-size: 14px; font-weight: 700; }
.bfbar-muted { font-weight: 500; color: #5c5c5c; }
.bfbar-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.bfbar-cta span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a.bfbar:hover .bfbar-cta span { text-decoration-thickness: 2px; }
.bfbar-line { display: flex; height: 3px; }
.bfbar-line i { flex: 1; }
.bfbar-line i:nth-child(1) { background: var(--bf-blue); }
.bfbar-line i:nth-child(2) { background: var(--bf-red); }
.bfbar-line i:nth-child(3) { background: var(--bf-salmon); }
.bfbar .bf-m { display: none; }

@media (max-width: 1100px) {
  .bfbar .bf-d { display: none; }
  .bfbar .bf-m { display: inline; }
  .bfbar-row { justify-content: space-between; gap: 10px; padding: 0 20px; }
  .bfbar-title { letter-spacing: .1em; }
  .bfbar-time { font-size: 12px; }
}

/* =========================================================
   2) LANDING PAGE KATEGORIE BLACK FRIDAY
   ========================================================= */
body.bf-landing h1.category-title {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
body.bf-landing .breadcrumbs {
  background: #000;
  color: #9a9a9a;
  box-shadow: 0 0 0 100vmax #000;
  clip-path: inset(0 -100vmax);
}
body.bf-landing .breadcrumbs a, body.bf-landing .breadcrumbs span { color: #9a9a9a; }
body.bf-landing .breadcrumbs [itemprop="name"]:last-child, body.bf-landing .breadcrumbs .navigation-bullet + span { color: #fff; }

.bf-stage {
  background: #000;
  color: #fff;
  box-shadow: 0 0 0 100vmax #000;
  clip-path: inset(0 -100vmax);
  padding: 0 0 88px;
  margin: 0 0 0;
  font-variant-numeric: lining-nums;
}

/* --- hlavní banner --- */
.bf-hero {
  position: relative;
  height: 540px;
  background: #000; /* stejná černá jako pozadí fotek v banneru */
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.bf-copy { position: relative; z-index: 1; padding: 56px 0 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.bf-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--bf-salmon); }
.bf-l1, .bf-l2 { margin: 0; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; color: #fff; }
.bf-l1 { font-weight: 700; }
.bf-l2 { font-weight: 300; }
.bf-big { margin: 6px 0 0; font-size: clamp(76px, 10vw, 140px); line-height: .9; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; color: #fff; }
.bf-text { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.55; color: #bdbdbd; }
a.bf-btn {
  align-self: flex-start;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s;
}
a.bf-btn:hover, a.bf-btn:focus { background: var(--bf-salmon); color: #111; text-decoration: none; }
a.bf-btn:focus-visible, .bf-dot:focus-visible { outline: 2px solid var(--bf-salmon); outline-offset: 3px; }

.bf-art { position: relative; min-height: 0; overflow: hidden; }
.bf-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.bf-slide.is-on { opacity: 1; visibility: visible; }
/* fotka vyplní celou pravou část banneru; výřez lze posunout přes --bf-pos (nastavení heroImages v JS) */
.bf-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: var(--bf-pos, 50% 50%);
}

.bf-dots { position: absolute; right: 32px; bottom: 28px; z-index: 2; display: flex; gap: 8px; }
.bf-dot { width: 44px; height: 24px; padding: 0; margin: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; }
.bf-dot span { position: relative; display: block; width: 100%; height: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.bf-dot.is-on span::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left center; animation: bfProg var(--bf-int, 4.5s) linear forwards; }
@keyframes bfProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --- odpočet pod bannerem --- */
.bf-count {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 44px;
  min-height: 132px;
  box-sizing: border-box;
  padding: 24px 240px 24px 40px;
  background: #181818;
  border-top: 1px solid #262626;
  overflow: hidden;
}
.bf-timer { flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bf-count-text { flex: 1 1 240px; }
.bf-count-title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: .12em; text-transform: uppercase; text-align: center; color: var(--bf-salmon); }
.bf-count-note { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #a6a6a6; }
.bf-count-note:first-child { margin-top: 0; }
.bf-count-note.bf-count-nostack { margin-top: 2px; color: #cfcfcf; }
.bf-digits { display: flex; font-variant-numeric: lining-nums tabular-nums; }
.bf-digit { display: inline-flex; flex-direction: column; align-items: center; min-width: 84px; padding: 0 14px; border-left: 1px solid #333; }
.bf-digit:first-child { border-left: 0; }
.bf-digit b { font-size: 44px; font-weight: 800; line-height: 1; color: #fff; }
.bf-digit small { margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a6a6a6; }
.bf-mascot { position: absolute; right: 56px; bottom: 0; height: 124px; width: auto; }

/* --- nadpisy sekcí --- */
.bf-sec-title, .bf-all-title { margin: 80px 0 28px; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.2; font-weight: 700; color: inherit; text-align: left; }
.bf-all-title { margin: 88px 0 24px; color: #111; }

/* --- podkategorie (obrázky nahrané v Shoptetu) --- */
body.bf-landing .bf-stage ul.subcategories {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
body.bf-landing .bf-stage ul.subcategories::before, body.bf-landing .bf-stage ul.subcategories::after { display: none !important; }
body.bf-landing .bf-stage ul.subcategories > li {
  display: block !important; /* šablona dává li display:flex + align-items:center → dlaždice se smrskly na 1 px */
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.bf-landing .bf-stage ul.subcategories > li > a {
  position: relative;
  display: block;
  width: 100% !important;
  aspect-ratio: 1 / 1; /* čtvercové obrázky kategorií 1200×1200 px; jiný tvar se zobrazí celý (contain), nic se neořízne */
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #fff;
  text-decoration: none !important;
  transition: transform .25s;
}
body.bf-landing .bf-stage ul.subcategories > li > a:hover { transform: translateY(-3px); }
body.bf-landing .bf-stage ul.subcategories > li > a:focus-visible { outline: 2px solid var(--bf-salmon); outline-offset: 3px; }
body.bf-landing .bf-stage ul.subcategories .image {
  position: absolute;
  inset: 0;
  display: block;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.bf-landing .bf-stage ul.subcategories .image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
}
.bf-tagwrap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
body.bf-landing .bf-stage ul.subcategories .text {
  position: static !important;
  display: inline-block !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 8px 12px !important;
  background: #000;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left !important;
  white-space: normal;
}
.bf-badge { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 10px; background: var(--bf-salmon); color: #111; }
.bf-badge b { font-size: 28px; font-weight: 800; line-height: 1; }
.bf-badge span { font-size: 14px; font-weight: 700; }

/* --- Nejlepší nabídky --- */
.bf-best { margin: 72px 0 0; color: #111; }
.bf-best-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 28px; }
.bf-best-head h2 { margin: 0; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.2; font-weight: 700; color: #111; }
.bf-best-head a { font-size: 15px; font-weight: 700; color: #111; text-decoration: underline; text-underline-offset: 5px; }
.bf-best-head a:hover { color: #C8261A; }
.bf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.bf-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 300px; background: #111; color: #fff; }
.bf-card[hidden] { display: none; }
.bf-card-img { position: relative; display: block; background: #fff; overflow: hidden; }
.bf-card-img img { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.bf-card-off { position: absolute; left: 0; top: 0; padding: 8px 12px; background: var(--bf-salmon); color: #111; font-size: 15px; font-weight: 800; }
.bf-card-off:empty { display: none; }
.bf-card-txt { padding: 30px 34px; display: flex; flex-direction: column; gap: 6px; }
.bf-card-cat { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bf-salmon-light); }
.bf-card-name { margin: 4px 0 0; font-size: 20px; line-height: 1.3; font-weight: 700; }
.bf-card-name a { color: #fff; text-decoration: none; }
.bf-card-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bf-card-bottom { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.bf-card-price { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.bf-card-old { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.bf-card-old s { color: #a6a6a6; }
.bf-card-old span { color: var(--bf-salmon-light); font-weight: 700; }
a.bf-card-btn {
  align-self: flex-start;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 2px;
}
a.bf-card-btn:hover, a.bf-card-btn:focus { background: #F3F0EA; color: #111; text-decoration: none; }
.bf-card.is-loading .bf-card-price, .bf-card.is-loading .bf-card-name { opacity: .25; }

/* --- výpis produktů v sekci Black Friday --- */
body.bf-section .products .flag.flag-discount { background: var(--bf-salmon) !important; color: #111 !important; font-weight: 800; }
body.bf-section .products .flag.flag-discount .price-standard { display: none !important; }
body.bf-section .products .flag.flag-discount .price-save { color: #111 !important; }
body.bf-section .products .prices .bf-old { margin-left: 10px; font-size: 14px; font-weight: 400; color: #6b6b6b; }
body.bf-section .products .p a.image { background: #F5F4F1; }
body.bf-section .products .p a.image img { mix-blend-mode: multiply; }

/* =========================================================
   3) MOBIL
   ========================================================= */
@media (max-width: 767px) {
  .bf-hero { height: 680px; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .bf-copy { padding: 32px 24px 0; gap: 14px; }
  .bf-text { font-size: 15px; }
  .bf-dots { right: 20px; bottom: 18px; }
  .bf-slide img { object-position: var(--bf-pos-m, var(--bf-pos, 50% 50%)); }
  .bf-count { padding: 22px 22px 140px; gap: 16px; }
  .bf-digit { min-width: 62px; padding: 0 8px; }
  .bf-digit b { font-size: 34px; }
  .bf-count-title { font-size: 18px; letter-spacing: .08em; }
  .bf-timer { gap: 10px; }
  .bf-mascot { right: 22px; height: 112px; }
  .bf-sec-title { margin-top: 56px; }

  body.bf-landing .bf-stage ul.subcategories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  body.bf-landing .bf-stage ul.subcategories > li > a { aspect-ratio: auto; overflow: visible; background: none; }
  body.bf-landing .bf-stage ul.subcategories > li > a:hover { transform: none; }
  body.bf-landing .bf-stage ul.subcategories .image { position: relative !important; inset: auto; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
  .bf-tagwrap { position: static; margin-top: 8px; gap: 6px; }
  body.bf-landing .bf-stage ul.subcategories .text { font-size: 11px !important; letter-spacing: .04em; padding: 6px 8px !important; }
  .bf-badge { padding: 4px 8px; }
  .bf-badge b { font-size: 18px; }
  .bf-badge span { font-size: 12px; }

  .bf-card { grid-template-columns: 1fr; grid-template-rows: 220px auto; }
  .bf-card-txt { padding: 24px; }
  .bf-card-price { font-size: 36px; }
  .bf-best, .bf-all-title { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .bf-slide { transition: none; }
  .bf-dot.is-on span::after { animation: none; transform: none; }
}
