/* Pegue e Monte Vip — lightbox estrutural em top layer V14 */

html.vip-product-lightbox-open,
body.vip-product-lightbox-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.vip-product-lightbox-v14 {
  position: fixed !important;
  inset: 0 !important;
  box-sizing: border-box !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: rgba(15, 10, 18, .97) !important;
  color: #fff;
  z-index: 2147483640 !important;
  opacity: 0;
  animation: vip-lightbox-v14-backdrop-in 180ms ease-out forwards;
  overscroll-behavior: contain;
}

.vip-product-lightbox-v14::backdrop {
  background: rgba(15, 10, 18, .97);
}

.vip-product-lightbox-v14__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: max(22px, env(safe-area-inset-top)) 78px max(24px, env(safe-area-inset-bottom));
  cursor: zoom-out;
}

.vip-product-lightbox-v14__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.vip-product-lightbox-v14__figure img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  max-width: min(1180px, calc(100vw - 156px));
  height: auto;
  max-height: calc(100vh - 92px);
  max-height: calc(100dvh - 92px);
  margin: 0;
  border-radius: 9px;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
  transform: translate3d(-50%, -50%, 0) scale(.985);
  transform-origin: center;
  opacity: 0;
  animation: vip-lightbox-v14-photo-in 210ms ease-out 25ms forwards;
  user-select: none;
  -webkit-user-drag: none;
}

.vip-product-lightbox-v14__figure figcaption {
  position: absolute;
  right: 76px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 76px;
  overflow: hidden;
  margin: 0;
  padding: 0 8px;
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-product-lightbox-v14__close,
.vip-product-lightbox-v14__arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .25);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.vip-product-lightbox-v14__close {
  top: max(16px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 31px;
  line-height: 1;
}

.vip-product-lightbox-v14__arrow {
  top: 50%;
  width: 48px;
  height: 64px;
  border-radius: 12px;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
}

.vip-product-lightbox-v14__arrow--previous {
  left: max(16px, env(safe-area-inset-left));
}

.vip-product-lightbox-v14__arrow--next {
  right: max(16px, env(safe-area-inset-right));
}

.vip-product-lightbox-v14.is-single .vip-product-lightbox-v14__arrow {
  display: none;
}

.vip-product-lightbox-v14__close:hover,
.vip-product-lightbox-v14__arrow:hover {
  background: rgba(255, 255, 255, .22);
}

.vip-product-lightbox-v14__close:focus-visible,
.vip-product-lightbox-v14__arrow:focus-visible {
  outline: 3px solid #ffde5a;
  outline-offset: 3px;
}

@keyframes vip-lightbox-v14-backdrop-in {
  to { opacity: 1; }
}

@keyframes vip-lightbox-v14-photo-in {
  to {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}

@media (max-width: 720px) {
  .vip-product-lightbox-v14__stage {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .vip-product-lightbox-v14__figure img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    border-radius: 7px;
  }

  .vip-product-lightbox-v14__figure figcaption {
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    padding: 0 54px;
    font-size: 12px;
  }

  .vip-product-lightbox-v14__close {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .vip-product-lightbox-v14__arrow {
    width: 42px;
    height: 56px;
    border-radius: 10px;
    font-size: 36px;
  }

  .vip-product-lightbox-v14__arrow--previous {
    left: max(8px, env(safe-area-inset-left));
  }

  .vip-product-lightbox-v14__arrow--next {
    right: max(8px, env(safe-area-inset-right));
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .vip-product-lightbox-v14__figure img {
    max-height: calc(100dvh - 50px);
  }

  .vip-product-lightbox-v14__figure figcaption {
    font-size: 11px;
  }
}
