/* Black Week (27.11-04.12.2026): pozycja w menu i baner na stronach PL.
   Laduje sie tylko w czasie akcji (functions.php, hogs_landing_child_black_week).
   Fonty Barlow Condensed i Yellowtail doczytuje assets/js/black-week.js tuz przed pokazaniem baneru. */

/* ─────────── POZYCJA W MENU ─────────── */
nav.topbar .topbar-center > a.nav-bw,
.mobile-nav-drop a.nav-bw{
  background:var(--ink);color:var(--lime);
  font-weight:var(--fw-bold);text-transform:uppercase;letter-spacing:.06em;
}
nav.topbar .topbar-center > a.nav-bw{font-size:12px}
nav.topbar .topbar-center > a.nav-bw:hover,
.mobile-nav-drop a.nav-bw:hover{background:var(--ink);color:var(--white)}
/* dodatkowa pozycja: na 1201-1280 px menu wchodzilo na logo i przelacznik jezyka */
@media (min-width:1201px) and (max-width:1280px){
  nav.topbar a,nav.topbar .topbar-drop-btn{padding-left:7px;padding-right:7px}
}

/* ─────────── BANER ─────────── */
.bw-pop {
  --night: #0e0a29; --pink: #ff4fb4; --pink-hot: #ff2d95; --pink-soft: #ffd3ec;
  --lime: #bff678; --muted: #c4b8e6; --ink: #170b33;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "Poppins", system-ui, sans-serif;
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px;
  font-family: var(--body); color: #f4efff; -webkit-font-smoothing: antialiased;
}
.bw-pop[hidden] { display: none; }
.bw-pop *, .bw-pop *::before, .bw-pop *::after { box-sizing: border-box; }
.bw-pop__backdrop { position: absolute; inset: 0; background: rgba(7, 6, 23, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: bw-fade .35s ease both; }
.bw-pop__card {
  position: relative; width: min(860px, 100%); display: grid; grid-template-columns: 340px minmax(0, 1fr);
  border-radius: 28px; overflow: hidden; background: radial-gradient(80% 70% at 100% 0%, rgba(255, 45, 149, .22), transparent 70%), var(--night);
  border: 1.5px solid rgba(255, 79, 180, .75);
  box-shadow: 0 0 2px #fff, 0 0 24px rgba(255, 79, 180, .55), 0 0 90px rgba(255, 45, 149, .3), 0 30px 80px rgba(0, 0, 0, .5);
  animation: bw-in .5s cubic-bezier(.22, 1, .36, 1) both;
}
.bw-pop__img { position: relative; min-height: 100%; background: url("../images/black-week/black-week-hero.webp") 100% 0 / auto 115% no-repeat; }
.bw-pop__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--night) 100%); }
.bw-pop__script {
  position: absolute; left: 18px; bottom: 18px; z-index: 1; font-family: "Yellowtail", cursive; font-size: 34px; line-height: 1;
  color: #fff3fa; text-shadow: 0 0 2px #fff, 0 0 10px var(--pink), 0 0 24px var(--pink-hot); transform: rotate(-6deg);
}
.bw-pop__body { padding: 34px 38px 32px 30px; display: flex; flex-direction: column; }
.bw-pop__title { margin: 0; font-family: var(--head); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 76px; line-height: .84; letter-spacing: .01em; }
.bw-pop__title .t1 { display: block; color: transparent; -webkit-text-stroke: 2px var(--pink-soft); filter: drop-shadow(0 0 4px var(--pink)) drop-shadow(0 0 12px var(--pink-hot)); }
.bw-pop__title .t2 { display: block; color: var(--lime); text-shadow: 0 0 2px #fff, 0 0 12px rgba(191, 246, 120, .85), 0 0 30px rgba(191, 246, 120, .45); }
.bw-pop__sub { margin: 14px 0 0; font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.1; }
.bw-pop__sub b { color: var(--lime); }
.bw-pop__logo { display: inline-flex; align-items: baseline; white-space: nowrap; margin-left: .12em; }
.bw-pop__logo img { height: .74em; width: auto; transform: translateY(.02em); }
.bw-pop__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.bw-pop__list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; font-size: 15px; line-height: 1.35; }
.bw-pop__badge { font-family: var(--head); font-style: italic; font-weight: 900; text-align: center; line-height: 1; }
.bw-pop__badge--pct { font-size: 40px; color: var(--lime); text-shadow: 0 0 12px rgba(191, 246, 120, .55); }
.bw-pop__badge--free { font-size: 20px; padding: 8px 6px; border-radius: 10px; background: var(--lime); color: var(--ink); transform: rotate(-3deg); }
.bw-pop__foot { margin-top: 24px; display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.bw-pop__btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 16px; background: var(--lime); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 0 22px rgba(191, 246, 120, .55), 0 0 60px rgba(191, 246, 120, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bw-pop__btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.bw-pop__btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 0 30px rgba(191, 246, 120, .8), 0 0 80px rgba(191, 246, 120, .35); }
.bw-pop__btn:hover svg { transform: translateX(4px); }
.bw-pop__when { font-size: 13px; font-weight: 600; color: var(--pink-soft); }
.bw-pop__when b { color: #fff; }
.bw-pop__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 211, 236, .35); background: rgba(14, 10, 41, .7); color: #fff; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.bw-pop__close svg { width: 18px; height: 18px; }
.bw-pop__close:hover { border-color: var(--pink); box-shadow: 0 0 14px rgba(255, 79, 180, .55); }
.bw-pop__btn:focus-visible, .bw-pop__close:focus-visible { outline: 3px solid var(--pink-soft); outline-offset: 3px; }

@keyframes bw-fade { from { opacity: 0; } }
@keyframes bw-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }

@media (max-width: 760px) {
  .bw-pop { place-items: end center; padding: 0; }
  .bw-pop__card { grid-template-columns: 1fr; border-radius: 26px 26px 0 0; border-bottom: 0; max-height: 92vh; overflow-y: auto; animation-name: bw-up; }
  .bw-pop__img { height: 200px; min-height: 0; background-size: 130% auto; background-position: 100% 0; }
  .bw-pop__img::after { background: linear-gradient(180deg, transparent 45%, var(--night) 100%); }
  .bw-pop__script { font-size: 28px; }
  .bw-pop__body { padding: 4px 20px 24px; }
  .bw-pop__title { font-size: 58px; }
  .bw-pop__sub { font-size: 19px; }
  .bw-pop__list li { grid-template-columns: 78px minmax(0, 1fr); font-size: 14px; }
  .bw-pop__badge--pct { font-size: 34px; }
  .bw-pop__badge--free { font-size: 17px; }
  .bw-pop__btn { width: 100%; justify-content: center; }
  .bw-pop__when { width: 100%; text-align: center; }
}
@keyframes bw-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .bw-pop__backdrop, .bw-pop__card { animation: none; } .bw-pop__btn, .bw-pop__btn svg { transition: none; } }
