.bf-page {
  --bf-bg: #0b0b0c;
  --bf-panel: #161618;
  --bf-line: #2a2a2e;
  --bf-accent: #ffd400;
  --bf-text: #f4f4f4;
  --bf-muted: #9a9aa2;
  background: var(--bf-bg);
  color: var(--bf-text);
  font-family: 'Poppins', 'M PLUS 1p', sans-serif;
  overflow: hidden;
}
.bf-page a { text-decoration: none; }

.bf-hero {
  position: relative;
  padding: 90px 0 80px;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 212, 0, 0.16), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 22px);
  border-bottom: 1px solid var(--bf-line);
}
.bf-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--bf-line);
  border-radius: 999px;
  color: var(--bf-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bf-title {
  margin: 22px 0 14px;
  color: #fff;
  font-size: clamp(54px, 13vw, 168px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.bf-title span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--bf-accent);
}
.bf-subtitle {
  margin: 0 0 34px;
  color: var(--bf-accent);
  font-size: clamp(15px, 2.2vw, 20px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bf-btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 4px;
  background: var(--bf-accent);
  color: #0b0b0c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bf-btn:hover,
.bf-btn:focus {
  background: #fff;
  color: #0b0b0c;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 212, 0, 0.28);
}

.bf-intro {
  padding: 50px 0 0;
  color: #d5d5da;
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
}
.bf-intro .container { max-width: 820px; }
.bf-intro a { color: var(--bf-accent); }

.bf-offers { padding: 70px 0 80px; }
.bf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  gap: 30px;
  justify-content: center;
}
.bf-card {
  display: flex;
  flex-direction: column;
  background: var(--bf-panel);
  border: 1px solid var(--bf-line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bf-card:hover {
  transform: translateY(-6px);
  border-color: var(--bf-accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
}
.bf-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}
.bf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.bf-card:hover .bf-card__media img { transform: scale(1.06); }
.bf-card__tag {
  position: absolute;
  top: 16px;
  left: 0;
  padding: 6px 14px;
  background: var(--bf-accent);
  color: #0b0b0c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bf-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 26px 28px;
}
.bf-card__title {
  margin: 0 0 18px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}
.bf-card__title a { color: #fff; }
.bf-card__title a:hover { color: var(--bf-accent); }
.bf-card__price {
  margin: auto 0 24px;
  padding-top: 4px;
}
.bf-card__price-label {
  display: block;
  margin-bottom: 2px;
  color: var(--bf-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bf-card__price strong {
  color: var(--bf-accent);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.bf-card__price strong span { font-size: 0.7em; }

.bf-empty {
  margin: 0;
  color: var(--bf-muted);
  font-size: 18px;
  text-align: center;
}

.bf-contact {
  padding: 60px 0 70px;
  border-top: 1px solid var(--bf-line);
  background: var(--bf-panel);
  text-align: center;
}
.bf-contact h2 {
  margin: 0 0 30px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bf-contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.bf-contact a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--bf-line);
  border-radius: 6px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.bf-contact a:hover {
  border-color: var(--bf-accent);
  color: var(--bf-accent);
}
.bf-contact a span {
  display: block;
  color: var(--bf-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bf-product__top {
  padding: 40px 0 80px;
  background: radial-gradient(60% 50% at 80% 0%, rgba(255, 212, 0, 0.12), transparent 70%);
}
.bf-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--bf-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bf-back:hover { color: var(--bf-accent); }
.bf-product__layout {
  display: grid;
  gap: 36px;
  align-items: start;
}
.bf-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.bf-gallery a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--bf-line);
  border-radius: 8px;
  background: #000;
  aspect-ratio: 4 / 3;
  transition: border-color 0.2s ease;
}
.bf-gallery a:hover { border-color: var(--bf-accent); }
.bf-gallery__main { grid-column: 1 / -1; }
/* Let the main image keep its own ratio so nothing is cropped. */
.bf-gallery a.bf-gallery__main { aspect-ratio: auto; }
.bf-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.bf-gallery__main img { height: auto; }
.bf-gallery a:hover img { transform: scale(1.04); }
.bf-product__tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bf-accent);
  color: #0b0b0c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bf-product__title {
  margin: 18px 0 22px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}
.bf-product .bf-product__info .bf-card__price {
  margin: 0 0 26px;
  padding: 18px 0;
  border-top: 1px solid var(--bf-line);
  border-bottom: 1px solid var(--bf-line);
}
.bf-product__info .bf-card__price strong { font-size: clamp(44px, 6vw, 60px); }
.bf-product__desc {
  margin-bottom: 30px;
  color: #d5d5da;
  font-size: 16px;
  line-height: 1.9;
}
.bf-product__desc p:last-child { margin-bottom: 0; }
.bf-product__desc strong { color: #fff; }
.bf-product__desc a { color: var(--bf-accent); }
.bf-offers--more { border-top: 1px solid var(--bf-line); }
.bf-heading {
  margin: 0 0 40px;
  color: #fff;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}
.bf-heading span { color: var(--bf-accent); }

/* The off-canvas menu drawer sits 25px past the right edge and widens the
   viewport on phones, which pushes the lightbox arrows off-screen. */
html, body { overflow-x: clip; }

/* Floating site widgets sit above the lightbox and swallow the arrows. */
body.mfp-zoom-out-cur .mystickyelements-fixed,
body.mfp-zoom-out-cur .mobile-contact-selector,
body.mfp-zoom-out-cur .megabox-overlay { display: none; }

/* Lightbox arrows (Magnific Popup): keep them readable on any photo. */
body .mfp-arrow {
  width: 56px;
  height: 56px;
  margin-top: -28px;
  border-radius: 50%;
  background: rgba(11, 11, 12, 0.6);
  opacity: 1;
}
body .mfp-arrow:active { margin-top: -28px; }
body .mfp-arrow:hover,
body .mfp-arrow:focus { background: rgba(11, 11, 12, 0.85); opacity: 1; }
body .mfp-arrow:before,
body .mfp-arrow:after {
  top: 50%;
  margin-top: 0;
  transform: translateY(-50%);
}
body .mfp-arrow-left:before,
body .mfp-arrow-right:before { margin-left: 13px; }
body .mfp-arrow-left:after,
body .mfp-arrow-right:after { margin-left: 18px; }

@media (min-width: 992px) {
  .bf-product__layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
  .bf-product__info { position: sticky; top: 30px; }
}

@media (min-width: 768px) {
  .bf-grid--single { grid-template-columns: minmax(0, 980px); }
  .bf-grid--single .bf-card { flex-direction: row; }
  .bf-grid--single .bf-card__media {
    flex: 0 0 58%;
    aspect-ratio: auto;
    min-height: 380px;
  }
  .bf-grid--single .bf-card__body {
    justify-content: center;
    padding: 40px;
  }
  .bf-grid--single .bf-card__title { font-size: 28px; }
  .bf-grid--single .bf-card__price { margin-top: 0; }
  .bf-grid--single .bf-card__price strong { font-size: 54px; }
}

@media (max-width: 575px) {
  .bf-hero { padding: 60px 0 54px; }
  .bf-title span { -webkit-text-stroke-width: 1.5px; }
  .bf-offers { padding: 44px 0 54px; }
  .bf-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Sold promo products (custom field "sold" = 1): black & white card, "Продаден" badge. */
.bf-card--sold .bf-card__media img,
.bf-product--sold .bf-gallery img {
  filter: grayscale(1);
}
.bf-card--sold .bf-card__tag,
.bf-product--sold .bf-product__tag {
  background: #1c1c1f;
  color: #fff;
}
.bf-card--sold .bf-card__price strong,
.bf-product--sold .bf-card__price strong {
  color: var(--bf-muted);
}
.bf-card--sold:hover .bf-card__media img {
  transform: none;
}
