/* airsoft.ro · bara Black Friday 2026 (numărătoare inversă).
   Culori și fonturi din tema magazinului: --a26-* vin din customCSS-ul Journal3 (fallback-urile sunt aceleași valori).
   Totul sub .a26-bf: Journal3 pune !important pe culoarea linkurilor, deci unde e nevoie îl folosim și noi. */

.a26-bf {
  --bf-ink: #141416;
  --bf-plate: #2a2b2e;
  --bf-plate-hi: #3a393e;
  --bf-yellow: var(--a26-yellow, #fbd21e);
  --bf-yellow-hover: #ffe15c;
  --bf-text: #ffffff;
  --bf-muted: #a6a6ad;
  --bf-h: 44px;
  --bf-display: var(--a26-font-display, Oswald, "Arial Narrow", Arial, sans-serif);
  --bf-body: var(--a26-font-body, "Open Sans", Arial, sans-serif);
  --bf-ease: cubic-bezier(0.23, 1, 0.32, 1);

  display: block;
  position: relative;
  box-sizing: border-box;
  height: var(--bf-h);
  overflow: hidden;
  background-color: var(--bf-ink);
  /* dungi diagonale foarte fine, ca marcajul de pe echipament; sub 4% ca să nu concureze cu textul */
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 10px);
  box-shadow: inset 0 -1px 0 rgba(251, 210, 30, 0.45);
  color: var(--bf-text) !important;
  font-family: var(--bf-body);
  font-size: 14px;
  line-height: 1;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.a26-bf[hidden] { display: none; }

.a26-bf *, .a26-bf *::before, .a26-bf *::after { box-sizing: border-box; }

.a26-bf__in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  max-width: var(--a26-content, 1280px);
  margin: 0 auto;
  padding: 0 16px;
  white-space: nowrap;
}

/* ---------- faze ---------- */
.a26-bf[data-phase="teaser"] .a26-bf__msg--live,
.a26-bf[data-phase="teaser"] .a26-bf__sep { display: none; }
.a26-bf[data-phase="live"] .a26-bf__msg--teaser { display: none; }

/* ---------- text ---------- */
.a26-bf__brand {
  font-family: var(--bf-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bf-yellow);
}

.a26-bf__msg {
  font-weight: 600;
  color: var(--bf-text);
}

.a26-bf__short { display: none; }

.a26-bf__sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.22);
}

.a26-bf__ends {
  color: var(--bf-muted);
  font-weight: 400;
}

/* ---------- numărătoarea ---------- */
.a26-bf__clock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.a26-bf__u {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.a26-bf__n {
  display: inline-block;
  min-width: 30px;
  padding: 6px 4px 5px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--bf-plate);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 rgba(0, 0, 0, 0.5);
  color: var(--bf-text);
  font-family: var(--bf-display);
  font-weight: 500;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-align: center;
}

.a26-bf__l {
  font-style: normal;
  font-size: 12px;
  color: var(--bf-muted);
}

.a26-bf__ls { display: none; }

/* ---------- buton ---------- */
/* fără link (categoria nu există încă) butonul n-are sens */
.a26-bf:not(a) .a26-bf__cta { display: none; }

.a26-bf__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding: 8px 12px 7px 14px;
  border-radius: 3px;
  background: var(--bf-yellow);
  color: #202020;
  font-family: var(--bf-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color 150ms ease, transform 120ms var(--bf-ease);
}

.a26-bf__chev {
  flex: none;
  transition: transform 180ms var(--bf-ease);
}

a.a26-bf:active .a26-bf__cta { transform: scale(0.97); }

a.a26-bf:focus-visible {
  outline: 3px solid var(--bf-yellow);
  outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
  a.a26-bf:hover .a26-bf__cta { background: var(--bf-yellow-hover); }
  a.a26-bf:hover .a26-bf__chev { transform: translateX(3px); }
  a.a26-bf:hover { background-color: #1a1a1d; }
}

@media (prefers-reduced-motion: reduce) {
  .a26-bf__chev, .a26-bf__cta { transition: background-color 150ms ease; }
  a.a26-bf:active .a26-bf__cta { transform: none; }
  a.a26-bf:hover .a26-bf__chev { transform: none; }
}

/* ---------- tabletă îngustă ---------- */
@media (max-width: 991px) {
  .a26-bf__in { gap: 10px; }
  .a26-bf__ends { display: none; }
}

/* ---------- telefon: o singură linie, „BLACK FRIDAY −50% · 16z 12:04:33 ›” ---------- */
@media (max-width: 767px) {
  .a26-bf { --bf-h: 40px; font-size: 13px; }
  .a26-bf__in { gap: 8px; padding: 0 12px; justify-content: center; }
  .a26-bf__brand { font-size: 15px; }
  .a26-bf__full { display: none; }
  .a26-bf__short { display: inline; color: var(--bf-yellow); font-family: var(--bf-display); font-weight: 600; font-size: 15px; }
  .a26-bf__msg--teaser { font-size: 12px; font-weight: 400; color: var(--bf-muted); }
  .a26-bf__sep, .a26-bf[data-phase="live"] .a26-bf__sep, .a26-bf__ends, .a26-bf__cta-t { display: none !important; }
  .a26-bf__clock { gap: 0; }
  .a26-bf__u { gap: 0; }
  .a26-bf__u + .a26-bf__u::before { content: ":"; padding: 0 2px; color: var(--bf-muted); font-family: var(--bf-display); font-size: 15px; }
  .a26-bf__u--d + .a26-bf__u::before { content: none; }
  .a26-bf__u--d { margin-right: 6px; }
  .a26-bf__n { min-width: 0; padding: 4px 3px 3px; font-size: 15px; background: var(--bf-plate); }
  .a26-bf__u--d .a26-bf__n { background: transparent; box-shadow: none; padding-right: 0; }
  .a26-bf__lf { display: none; }
  .a26-bf__ls { display: inline; color: var(--bf-muted); font-family: var(--bf-display); font-size: 15px; }
  .a26-bf__cta { margin: 0; padding: 0; background: none; color: var(--bf-yellow); }
}

@media (max-width: 359px) {
  .a26-bf__in { gap: 6px; padding: 0 8px; }
  .a26-bf__brand, .a26-bf__short { font-size: 14px; }
}

@media print { .a26-bf { display: none; } }


/* =====================================================================
   Elementul „Black Friday” din meniu (HTML de la a26_black_friday/meniu)
   desktop = ultimul <li> din main_menu 1186, mobil = primul rând din accordion_menu 1187
   ===================================================================== */
.a26-bf-mi {
  --bf-ink: #141416;
  --bf-yellow: var(--a26-yellow, #fbd21e);
  --bf-yellow-hover: #ffe15c;
  --bf-display: var(--a26-font-display, Oswald, "Arial Narrow", Arial, sans-serif);
  --bf-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

.a26-bf-mi__a, .a26-bf-mi__a * { box-sizing: border-box; }

/* ---------- desktop: pastilă mică, centrată pe verticală în rândul meniului ---------- */
.main-menu .j-menu > li.menu-item.a26-bf-mi--desktop,
.a26-header #main-menu > .j-menu > li.a26-bf-mi--desktop {
  display: flex; /* fără linia de text a elementului inline: pastila rămâne exact pe centru */
  flex: 0 0 auto;
  align-self: center;
  height: auto;
  margin: 0 0 0 3px;
  padding: 0;
}

.main-menu .j-menu > li.a26-bf-mi--desktop > a.a26-bf-mi__a,
.a26-header #main-menu > .j-menu > li.a26-bf-mi--desktop > a.a26-bf-mi__a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px 0 7px;
  border-radius: 3px;
  background: var(--bf-ink);
  box-shadow: inset 0 -2px 0 rgba(251, 210, 30, 0.55);
  color: var(--bf-yellow) !important;
  font-family: var(--bf-display);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, transform 120ms var(--bf-ease);
}

.a26-bf-mi--desktop .a26-bf-mi__a:active { transform: scale(0.97); }

.a26-bf-mi--desktop .a26-bf-mi__a:focus-visible {
  outline: 2px solid var(--bf-ink);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .main-menu .j-menu > li.a26-bf-mi--desktop > a.a26-bf-mi__a:hover,
  .a26-header #main-menu > .j-menu > li.a26-bf-mi--desktop > a.a26-bf-mi__a:hover {
    background: #2a2b2e;
    color: var(--bf-yellow-hover) !important;
  }
}

/* punctul: marcaj „activ” */
.a26-bf-mi--desktop .a26-bf-mi__dot {
  position: relative;
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bf-yellow);
}

@media (prefers-reduced-motion: no-preference) {
  .a26-bf-mi--desktop .a26-bf-mi__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bf-yellow);
    animation: a26-bf-mi-puls 2.4s var(--bf-ease) infinite;
  }
}

@keyframes a26-bf-mi-puls {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

/* eticheta scurtă „BF” există în HTML doar pentru intervalul îngust */
.a26-bf-mi__bf { display: none; }

/* 1024–1199 px: nu e loc pentru eticheta întreagă. „BF” (textul întreg rămâne în pagină, ascuns vizual, pentru cititoarele de ecran)
   și, DOAR când elementul există, meniul cedează puțin spațiu: textul itemilor 14px → 13px (sub 1100 px: 12.5px și padding 3px → 2px).
   Notă: Journal3 pune fontul și pe .links-text, deci regula le acoperă pe ambele. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .a26-bf-mi--desktop .a26-bf-mi__full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .a26-bf-mi--desktop .a26-bf-mi__bf { display: inline; }
  .a26-bf-mi--desktop .a26-bf-mi__dot { display: none; }
  .main-menu .j-menu > li.a26-bf-mi--desktop > a.a26-bf-mi__a,
  .a26-header #main-menu > .j-menu > li.a26-bf-mi--desktop > a.a26-bf-mi__a { padding: 0 8px; }
  .main-menu:has(> .j-menu > .a26-bf-mi) > .j-menu > li:not(.a26-bf-mi) > a,
  .main-menu:has(> .j-menu > .a26-bf-mi) > .j-menu > li:not(.a26-bf-mi) > a > .links-text,
  .a26-header #main-menu:has(> .j-menu > .a26-bf-mi) > .j-menu > li:not(.a26-bf-mi) > a,
  .a26-header #main-menu:has(> .j-menu > .a26-bf-mi) > .j-menu > li:not(.a26-bf-mi) > a > .links-text { font-size: 13px; }
}

@media (min-width: 1024px) and (max-width: 1099px) {
  .main-menu:has(> .j-menu > .a26-bf-mi) > .j-menu > li:not(.a26-bf-mi) > a,
  .main-menu:has(> .j-menu > .a26-bf-mi) > .j-menu > li:not(.a26-bf-mi) > a > .links-text,
  .a26-header #main-menu:has(> .j-menu > .a26-bf-mi) > .j-menu > li:not(.a26-bf-mi) > a,
  .a26-header #main-menu:has(> .j-menu > .a26-bf-mi) > .j-menu > li:not(.a26-bf-mi) > a > .links-text { font-size: 12.5px; }
  .a26-header #main-menu:has(> .j-menu > .a26-bf-mi) > .j-menu > li:not(.a26-bf-mi) > a { padding-left: 2px; padding-right: 2px; }
}

/* ---------- mobil: primul rând al meniului accordion ---------- */
.accordion-menu .j-menu > li.menu-item.a26-bf-mi--mobil { padding: 0; }

.accordion-menu .j-menu > li.a26-bf-mi--mobil > a.a26-bf-mi__a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px; /* + 1px border-ul li = 63px ca celelalte rânduri */
  padding: 0 60px 0 20px; /* dreapta: loc pentru săgeata Journal3 (::after), ca la celelalte rânduri */
  background-color: var(--bf-ink);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 10px);
  color: var(--bf-yellow) !important;
  font-family: var(--bf-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease;
}

.a26-bf-mi--mobil .a26-bf-mi__sub {
  margin-left: auto;
  color: #d4d4d9;
  font-family: var(--a26-font-body, "Open Sans", Arial, sans-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.accordion-menu .j-menu > li.a26-bf-mi--mobil > a.a26-bf-mi__a::after { color: var(--bf-yellow) !important; border-color: var(--bf-yellow) !important; opacity: 1; }

.a26-bf-mi--mobil .a26-bf-mi__a:active { background-color: #2a2b2e; }

.a26-bf-mi--mobil .a26-bf-mi__a:focus-visible {
  outline: 3px solid var(--bf-yellow);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .a26-bf-mi__a { transition: background-color 150ms ease, color 150ms ease; }
  .a26-bf-mi--desktop .a26-bf-mi__a:active { transform: none; }
}
