/* Black Friday 2026 teaser — landing content on top of the eva.ua layout styles */
:root {
  --bf-page: #ffe8db;
  --bf-ink: #212121;
  --bf-text: #333333;
  --bf-muted: #595959;
  --bf-red: #cd0000;
  --bf-green: #76bf44;
  --bf-border: #d8d8d8;
  --bf-radius-hero: 32px;
}

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;
  padding: 12px 32px; 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 */
.bf-hero {
  position: relative; max-width: 1600px; height: 444px; margin: 0 auto;
  border-radius: 0 0 var(--bf-radius-hero) var(--bf-radius-hero); overflow: hidden;
  background: #f7e1d6 url("hero-d.jpg") center top / auto 100% no-repeat;
}
.bf-hero__inner { position: absolute; inset: 0; }
.bf-hero__title, .bf-hero__date, .bf-hero__tagline, .bf-hero__btn, .bf-timer { position: absolute; margin: 0; }
.bf-hero__title { left: calc(50% - 496px); top: 64px; width: 447px; line-height: 0; }
.bf-hero__title img { width: 100%; height: auto; }
.bf-hero__date { left: calc(50% - 496px); top: 236px; font-size: 30px; line-height: 36px; font-weight: 500; color: #000; }
.bf-hero__btn { left: calc(50% - 496px); top: 285px; min-width: 188px; padding: 0 20px; white-space: nowrap; }
.bf-hero__tagline { left: calc(50% - 496px); top: 358px; font-size: 28px; line-height: 31px; color: #000; }
.bf-hero__tagline b { font-weight: 700; }

/* Button (eva Primary / Black) */
.bf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 10px 16px; border: 0; border-radius: 12px;
  background: var(--bf-ink); color: #fff; 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:disabled { background: var(--bf-muted); color: #919191; cursor: default; transform: none; }
.bf-btn--block { width: 100%; }

/* Countdown (glass) */
.bf-timer {
  left: calc(50% + 131px); top: 290px; width: 368px; height: 100px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 23px; border-radius: 21px;
  background: rgba(255, 128, 73, .5);
  -webkit-backdrop-filter: blur(11px) saturate(1.2); backdrop-filter: blur(11px) saturate(1.2);
  box-shadow: 0 8px 24px rgba(205, 70, 20, .12);
}
.bf-timer::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, #ffa488, rgba(255, 255, 255, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.bf-timer__cell { display: flex; flex-direction: column; align-items: center; min-width: 53px; }
.bf-timer__num { font-size: 45px; line-height: 59px; font-weight: 600; color: #000; font-variant-numeric: tabular-nums; }
.bf-timer__label { font-size: 15.7px; line-height: 19px; font-weight: 600; color: #000; text-transform: uppercase; letter-spacing: .02em; }
.bf-timer__cell--sec .bf-timer__num { color: var(--bf-red); }

/* Brands */
.bf-brands { max-width: 1312px; margin: 32px auto 0; padding: 0 32px; }
.bf-brands__title { margin: 0 0 24px; text-align: center; font-size: 24px; line-height: 29px; font-weight: 600; color: var(--bf-ink); }
.bf-brands__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; max-width: 1248px; margin: 0 auto; }
.bf-brands__marquee { display: none; }
.bf-brand {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 134px; height: 87px; padding: 10px; border-radius: 12px; background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bf-brand img { width: 114px; height: 67px; object-fit: contain; pointer-events: none; -webkit-user-drag: none; user-select: none; }
@media (hover: hover) {
  .bf-brands__grid .bf-brand:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(204, 96, 40, .18); }
}

/* 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; }

/* Modals (Checkout 3.0 style) */
.bf-modal { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; }
.bf-modal[hidden] { display: none; }
.bf-modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); animation: bf-fade .2s ease; }
.bf-modal__box {
  position: relative; width: 448px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); overflow: auto;
  display: flex; flex-direction: column; gap: 24px; padding: 24px 16px; border-radius: 16px; background: #fff;
  animation: bf-pop .25s ease;
}
.bf-form { display: flex; flex-direction: column; gap: 24px; }
.bf-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.bf-modal__title { margin: 0; font-size: 18px; line-height: 22px; font-weight: 600; color: var(--bf-text); }
.bf-modal__text { margin: 0; font-size: 14px; line-height: 18px; color: var(--bf-ink); }
.bf-modal__close { flex: 0 0 20px; width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.bf-field { display: flex; flex-direction: column; gap: 8px; }
.bf-field__label { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--bf-text); }
.bf-field__input {
  height: 48px; padding: 12px; border: 1px solid var(--bf-border); border-radius: 8px; background: #fff;
  font: 400 14px/18px var(--font-family-primary); color: var(--bf-ink); outline: none; transition: border-color .2s;
}
.bf-field__input::placeholder { color: #919191; }
.bf-field__input:focus { border-color: var(--bf-green); }
.bf-field__error { display: none; font-size: 12px; line-height: 16px; color: var(--bf-red); }
.bf-field.is-invalid .bf-field__input { border-color: var(--bf-red); }
.bf-field.is-invalid .bf-field__error { display: block; }
body.bf-lock { overflow: hidden; }

@keyframes bf-fade { from { opacity: 0; } }
@keyframes bf-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes bf-sheet { from { transform: translateY(100%); } }

/* ---------- Mobile / tablet (< 1024px): mobile composition, background stretches to 1024 ---------- */
@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 { height: 528px; max-width: none; background-image: url("hero-m.jpg"); background-position: left top; background-size: 1024px 528px; }
  .bf-hero__title { left: 16px; top: 110px; width: 287px; }
  .bf-hero__date { left: 16px; top: 222px; font-size: 20.5px; line-height: 25px; }
  .bf-hero__tagline { left: 16px; top: 262px; font-size: 20.5px; line-height: 23px; }
  /* Timer and button share one column: full width minus 16px gutters, capped at 374px (Figma 1024 frame).
     Timer type scales from that width — at 328px (360 screen) it matches Figma exactly, narrower phones shrink. */
  .bf-hero { --bf-col: min(calc(100vw - 32px), 374px); }
  .bf-timer, .bf-hero__btn { left: 16px; width: var(--bf-col); min-width: 0; }
  .bf-timer {
    top: 338px; height: 89px; border-radius: 19px;
    justify-content: space-between; padding: 8px calc(var(--bf-col) * .045);
  }
  .bf-timer__cell { flex: 0 0 auto; min-width: 0; }
  .bf-timer__num { font-size: clamp(30px, calc(var(--bf-col) * .122), 40px); line-height: 1.32; }
  .bf-timer__label { font-size: clamp(11px, calc(var(--bf-col) * .0427), 14px); line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
  .bf-hero__btn { top: 449px; height: 48px; padding: 0 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .bf-brands { margin-top: 32px; padding: 0; }
  .bf-brands__title { font-size: 18px; line-height: 22px; padding: 0 16px; }
  .bf-brands__grid { display: none; }
  .bf-brands__marquee { display: flex; flex-direction: column; gap: 24px; }
  .bf-marquee { overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
  .bf-marquee__track { display: flex; gap: 24px; width: max-content; padding: 4px 0; will-change: transform; }

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

  .bf-modal { align-items: flex-end; }
  .bf-modal__box { width: 100%; max-width: none; max-height: 92%; padding: 24px 16px 48px; border-radius: 16px 16px 0 0; animation: bf-sheet .3s ease; }
}

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

/* 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"); }
