/* ===== BLACK FRIDAY - Popup homepage ===== */
.bf-popup {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.bf-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.bf-popup__box {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 40px 32px 36px;
  background: #fff;
  border-top: 6px solid #c8102e;
  text-align: center;
  font-family: 'Neutraface Text', sans-serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.35s ease;
}

.bf-popup.is-open .bf-popup__box {
  transform: scale(1);
}

.bf-popup__fish {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 24px;
}

.bf-popup__label {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1a1a1a;
}

.bf-popup__discount {
  margin: 0;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: #c8102e;
}

.bf-popup__text {
  margin: 12px 0 26px;
  font-size: 18px;
  line-height: 1.4;
  color: #333;
}

.bf-popup__btn {
  display: inline-block;
  padding: 13px 30px;
  background: #0687bd;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease;
}

.bf-popup__btn:hover {
  background: #056a94;
}

.bf-popup__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c8102e;
  font-size: 0; /* nasconde il carattere &times; - la X e' disegnata sotto */
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease, transform 0.3s ease;
}

/* X disegnata con due linee */
.bf-popup__close::before,
.bf-popup__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

.bf-popup__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.bf-popup__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.bf-popup__close:hover {
  background: #a00d24;
  transform: rotate(90deg);
}

@media (max-width: 480px) {
  .bf-popup__box {
    padding: 32px 20px 28px;
  }
  .bf-popup__fish {
    width: 120px;
  }
  .bf-popup__discount {
    font-size: 52px;
  }
  .bf-popup__close {
    top: -14px;
    right: -8px;
  }
}
