/* Чорна п'ятниця 2026 — landing content on top of the eva.ua layout styles */
:root {
  --bf-page: #ffe8db;
  --bf-ink: #212121;
  --bf-text: #333333;
  --bf-muted: #595959;
  --bf-tile-border: #f7edef;
}

html { scroll-behavior: smooth; }
body { background: #fff; -webkit-font-smoothing: antialiased; }

.bf-main { background: var(--bf-page); padding-bottom: 40px; }

/* ---------- Breadcrumbs ---------- */
.bf-crumbs {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-bottom: 1px solid #ebebeb;
  /* line the crumbs up with the eva.ua logo: same 1600px container, same 16px gutter */
  padding: 12px max(16px, calc((100% - 1600px) / 2 + 16px));
  font-size: 12px; line-height: 16px; color: var(--bf-ink);
}
.bf-crumbs a { color: var(--bf-muted); text-decoration: none; }
.bf-crumbs a:hover { color: var(--bf-ink); }
.bf-crumbs__sep { width: 5px; height: 5px; border-right: 1px solid #919191; border-top: 1px solid #919191; transform: rotate(45deg); }
.bf-crumbs__current { font-weight: 600; }

/* ---------- Hero banner ---------- */
.bf-hero {
  display: flex; justify-content: center;
  max-width: 1600px; margin: 0 auto; overflow: hidden;
  border-radius: 0 0 32px 32px; background: #f7e1d6;
}
.bf-hero__img { display: block; width: 100%; height: 444px; object-fit: cover; }

/* ---------- Button ---------- */
.bf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 10px 16px; border: 0; border-radius: 8px;
  background: var(--bf-ink); color: #fff; text-decoration: none; white-space: nowrap;
  font: 600 14px/18px var(--font-family-primary);
  cursor: pointer; transition: background-color .2s, transform .2s;
}
.bf-btn:hover { background: #000; }
.bf-btn:active { transform: scale(.98); }
.bf-btn--block { width: 100%; }
.bf-btn__icon { display: none; filter: invert(1); }

/* ---------- Promo tiles ---------- */
.bf-tiles {
  display: flex; gap: 16px; align-items: stretch;
  max-width: 1312px; height: 248px; margin: 32px auto 0; padding: 0 32px;
}
.bf-tile {
  flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px;
  padding: 16px 10px; border: 3px solid var(--bf-tile-border); border-radius: 16px;
  background: rgba(255, 255, 255, .4); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.bf-tile:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .75); box-shadow: 0 12px 28px rgba(205, 96, 40, .16); }
.bf-tile__media { flex: 1 0 0; min-height: 0; width: 100%; display: block; }
.bf-tile__media img { width: 100%; height: 100%; object-fit: contain; }
.bf-tile__text {
  width: 100%; text-align: center; overflow-wrap: anywhere;
  font-size: 16px; line-height: normal; font-weight: 700; color: var(--bf-ink);
}

/* ---------- Product blocks ---------- */
.bf-blocks { display: flex; flex-direction: column; gap: 24px; max-width: 1312px; margin: 24px auto 0; padding: 0 32px; }
.bf-row { display: flex; gap: 24px; align-items: stretch; }

.bf-block {
  position: relative; overflow: hidden; border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 24px; justify-content: center;
}
.bf-block--pair { flex: 1 0 0; min-width: 0; background: var(--bf-block-bg); }
.bf-block--wide { flex-direction: row; align-items: center; gap: 24px; background-color: #ffe3d0; background-position: center; background-size: cover; background-repeat: no-repeat; }

.bf-block__head { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.bf-block__title { margin: 0; font-size: 24px; line-height: normal; font-weight: 600; color: var(--bf-ink); }
.bf-block__aside { flex: 0 0 237px; width: 237px; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.bf-block__lead { display: flex; flex-direction: column; gap: 16px; }
.bf-block__sub { margin: 0; font-size: 18px; line-height: 23px; color: var(--bf-ink); }

/* ---------- Carousel ---------- */
.bf-carousel { position: relative; min-width: 0; }
.bf-block--wide .bf-carousel { flex: 1 0 0; }
.bf-carousel__track {
  display: flex; gap: 8px; align-items: stretch;
  overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 14px 0; margin: -14px 0;
}
.bf-carousel__track::-webkit-scrollbar { display: none; }

.bf-card {
  flex: 0 0 186px; width: 186px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border-radius: 16px; background: #fff;
}
.bf-card__media { width: 100%; aspect-ratio: 1 / 1; border-radius: 13px; overflow: hidden; }
.bf-card__media img { width: 100%; height: 100%; object-fit: contain; }
@media (hover: hover) {
  .bf-card { transition: transform .25s ease, box-shadow .25s ease; }
  .bf-card__media img { transition: transform .35s ease; }
  .bf-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(33, 33, 33, .15); }
  .bf-card:hover .bf-card__media img { transform: scale(1.06); }
  .bf-card:hover .bf-card__brand { text-decoration: underline; text-underline-offset: 3px; }
}
.bf-card__brand { margin: 0; font-size: 16px; line-height: normal; font-weight: 600; color: var(--bf-ink); }
.bf-card__name {
  margin: 0; height: 57px; overflow: hidden; color: var(--bf-ink);
  font-size: 14px; line-height: 19px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}

.bf-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 88px; padding: 0; border: 0; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15));
  transition: opacity .2s, visibility .2s;
}
.bf-nav--next { right: 0; border-radius: 8px 0 0 8px; }
.bf-nav--prev { left: 0; border-radius: 0 8px 8px 0; }
.bf-nav--prev img { transform: rotate(180deg); }
.bf-nav[hidden] { display: none; }
.bf-nav:disabled { opacity: 0; visibility: hidden; }
/* a usable arrow sits back at low opacity and comes forward while its block is hovered */
@media (min-width: 1024px) {
  .bf-nav { opacity: .45; }
  .bf-block:hover .bf-nav:not(:disabled),
  .bf-block .bf-nav:not(:disabled):focus-visible,
  .bf-block .bf-nav:not(:disabled):active { opacity: 1; }
}

.bf-dots { display: none; gap: 8px; align-items: center; justify-content: center; margin-top: 8px; }
.bf-dot {
  position: relative; flex: 0 0 8px; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; cursor: pointer; transition: background-color .2s ease, transform .2s ease;
}
.bf-dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.bf-dot.is-active { background: var(--bf-ink); }
@media (hover: hover) { .bf-dot:not(.is-active):hover { transform: scale(1.25); } }

/* ---------- Scroll to top (as on eva.ua) ---------- */
.bf-to-top {
  position: fixed; right: 16px; bottom: 24px; z-index: 30; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .4); box-shadow: 0 4px 6px rgba(0, 0, 0, .1); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .3s, visibility .3s, background-color .3s;
}
.bf-to-top:hover { background: rgba(0, 0, 0, .6); }
.bf-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .bf-block--wide { flex-direction: column; align-items: stretch; }
  .bf-block__aside { flex: 0 0 auto; width: 100%; }
}

/* ---------- Mobile / tablet (< 1024px) ---------- */
@media (max-width: 1023px) {
  .bf-main { padding-bottom: 32px; }
  .bf-crumbs { padding: 8px 16px; }
  .bf-crumbs__sep, .bf-crumbs__current { display: none; }
  .bf-crumbs__back { display: inline-flex; align-items: center; gap: 8px; }
  .bf-crumbs__back::before { content: ""; width: 6px; height: 6px; border-left: 1.5px solid var(--bf-ink); border-bottom: 1.5px solid var(--bf-ink); transform: rotate(45deg); }

  .bf-hero { max-width: none; border-radius: 0 0 24px 24px; }
  .bf-hero__img { width: auto; max-width: none; height: 492px; flex: 0 0 auto; }

  .bf-tiles {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: auto;
    margin-top: 16px; padding: 0 16px;
  }
  .bf-tile { height: 203px; padding: 12px 8px; border-width: 2px; border-radius: 12px; }
  .bf-tile__text { font-size: 14px; }

  .bf-blocks { gap: 16px; margin-top: 16px; padding: 0 16px; }
  .bf-row { flex-direction: column; gap: 16px; }
  .bf-block { gap: 16px; }
  .bf-block--pair { flex: 0 0 auto; }
  .bf-block--wide { gap: 16px; }
  .bf-block__head { align-items: flex-start; gap: 16px; }
  .bf-block__aside { gap: 16px; }
  .bf-block__title { font-size: 24px; line-height: 29px; }
  .bf-block__sub { display: none; }
  .bf-block--wide .bf-block__aside { flex-direction: row; align-items: center; justify-content: space-between; }
  .bf-block__lead { flex: 1 1 auto; min-width: 0; }

  .bf-btn { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; }
  .bf-btn__label { display: none; }
  .bf-btn__icon { display: block; }
  .bf-block__aside .bf-btn { flex: 0 0 40px; }

  .bf-nav { display: none; }
  .bf-dots:not(:empty) { display: flex; }

  .bf-to-top { bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .bf-carousel__track { scroll-behavior: auto; }
}

/* Proxima Nova Medium is not served by eva.ua — 500 falls back to Semibold */
@font-face { font-family: ProximaNova; font-weight: 500; font-display: swap; size-adjust: 105%; ascent-override: 90%; descent-override: 22%; src: url("fonts/ProximaNova-Semibold.woff2") format("woff2"); }
