/* hero.css — split from the storefront stylesheet, same rules and order */

.nm-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 17, 17, 0.55);
}

.nm-popup-card {
  position: relative;
  width: min(520px, 100%);
  overflow: hidden;
  border-radius: 16px;
  background: #111;
}

.nm-popup-card a {
  position: relative;
  display: block;
  color: #fff;
  text-decoration: none;
}

.nm-popup-card img {
  display: block;
  width: 100%;
  height: min(62vw, 320px);
  object-fit: cover;
}

.nm-popup-card span {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 48px 18px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

.nm-popup-card small,
.nm-popup-card em {
  font-style: normal;
  font-size: 0.8rem;
}

.nm-popup-card strong {
  font-size: 1.45rem;
  line-height: 1.2;
}

.nm-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 1.4rem;
  line-height: 1;
}
/* Home banner slider */
.nm-hero {
  padding: 12px 12px 0;
  background: #fff;
}

.nm-hero-swiper {
  overflow: hidden;
  border-radius: 8px;
}

.nm-hero-swiper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.nm-hero-pagination.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100%;
  line-height: 0;
}

.nm-hero-pagination .swiper-pagination-bullet {
  position: relative;
  width: 18px;
  height: 4px;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(17, 17, 17, .35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .65);
  opacity: 1;
}

.nm-hero-pagination .swiper-pagination-bullet-active {
  width: 36px;
  background: rgba(17, 17, 17, .28);
}

.nm-hero-pagination .swiper-pagination-bullet-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left center;
  animation: nm-bullet-fill 3s linear forwards;
}

@keyframes nm-bullet-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (min-width: 768px) {
  .nm-hero {
    padding: 16px 16px 0;
  }
}

@media (min-width: 992px) {
  .nm-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 20px 0;
  }

  .nm-hero-swiper {
    border-radius: 8px;
  }

}

