.product-page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--primary_bg);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.product-page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.product-page-loader__logo {
  width: 110px;
  max-width: 30vw;
  height: auto;
}

.product-page-loader__text {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.product-page-loader__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-page-loader__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--secondary_dark);
  animation: productLoadingPulse 1.1s infinite ease-in-out;
}

.product-page-loader__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.product-page-loader__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes productLoadingPulse {
  0%,
  80%,
  100% {
    transform: scale(0.7);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.product-page-content {
  animation: productContentIn 0.45s ease both;
}

@keyframes productContentIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.media-loader {
  position: relative;
  overflow: hidden;
  background: rgba(235, 241, 240, 0.65);
}

.media-loader__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(235, 241, 240, 0.2) 8%,
    rgba(255, 255, 255, 0.85) 18%,
    rgba(235, 241, 240, 0.2) 33%
  );
  background-size: 200% 100%;
  animation: productShimmer 1.35s linear infinite;
  transition: opacity 0.3s ease;
}

.media-loader.is-loaded .media-loader__shimmer {
  opacity: 0;
}

.media-loader__img {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.media-loader.is-loaded .media-loader__img {
  opacity: 1;
}

@keyframes productShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.shop-card__image-wrap.media-loader,
.product-detail__image-main.media-loader {
  min-height: 220px;
}

.product-detail__image-main.media-loader {
  min-height: 420px;
}

.product-detail__thumb.media-loader {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 8px;
}

.product-detail__thumb.media-loader .media-loader__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
