/* =========================================================
   PREMIER GEM · VISUALIZE THIS STONE
   "See it set before it's set." band for loose-diamond
   product pages. Built and inserted by visualize.js.
   ========================================================= */

.pgv,
.pgv * {
  box-sizing: border-box;
}

.pgv {
  --pgv-bg: #1c1a18;
  --pgv-cream: #f3ecdf;
  --pgv-soft: rgba(239, 229, 212, .74);
  --pgv-faint: rgba(239, 229, 212, .5);
  --pgv-gold: #b08d5b;
  --pgv-gold-deep: #9a7b4f;
  --pgv-line: rgba(176, 141, 91, .45);
  --pgv-serif: Georgia, "Times New Roman", serif;
  --pgv-sans: "proxima-nova", "Montserrat", "Helvetica Neue", Arial, sans-serif;

  position: relative;
  clear: both;
  width: 100%;
  margin: 60px 0 0;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(176, 141, 91, .12), transparent 70%),
    var(--pgv-bg);
  color: var(--pgv-cream);
  text-align: center;
}

.pgv a {
  text-decoration: none !important;
}

.pgv-inner {
  max-width: 1180px;
  margin: 0 auto;
}


/* ---------- heading ---------- */

.pgv-eyebrow {
  margin: 0 0 22px;
  font-family: var(--pgv-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--pgv-gold);
}

.pgv-eyebrow::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin: 16px auto 0;
  background: var(--pgv-gold);
}

.pgv h2.pgv-title {
  margin: 0 0 16px;
  font-family: var(--pgv-serif);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pgv-cream);
}

.pgv-sub {
  max-width: 640px;
  margin: 0 auto clamp(38px, 4.5vw, 56px);
  font-family: var(--pgv-serif);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--pgv-soft);
}


/* ---------- frames ---------- */

.pgv-frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.pgv-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--pgv-line);
  background: #2a241e;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.pgv-frame-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 16px 0 0;
  font-family: var(--pgv-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #3a3028;
  pointer-events: none;
}

.pgv-frame-label::after {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin: 9px auto 0;
  background: currentColor;
  opacity: .6;
}

.pgv-frame--studio .pgv-frame-label,
.pgv-frame--hand .pgv-frame-label {
  color: #fbf4e8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.pgv-frame.is-done .pgv-frame-label {
  color: #3a3028;
  text-shadow: none;
}

.pgv-frame--hand.is-done .pgv-frame-label,
.pgv-frame--studio.is-done .pgv-frame-label {
  color: #fbf4e8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.pgv-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empty state: faded so it reads as "waiting" */
.pgv-placeholder {
  opacity: .78;
  filter: saturate(.75);
  transition: opacity .6s ease, filter .6s ease, transform 8s ease;
}

.pgv:not(.is-running) .pgv-frame:hover .pgv-placeholder {
  opacity: .92;
  transform: scale(1.03);
}

/* Result fades in over the placeholder */
.pgv-result {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.1s ease, transform 1.6s cubic-bezier(.2, .7, .2, 1);
}

.pgv-frame.is-done .pgv-result {
  opacity: 1;
  transform: none;
}

.pgv-frame.is-done .pgv-placeholder {
  opacity: 0;
}

/* Working state: shimmer + status line */
.pgv-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(105deg,
      transparent 30%,
      rgba(255, 246, 228, .38) 48%,
      transparent 66%);
  background-size: 250% 100%;
  transition: opacity .4s ease;
}

.pgv-frame.is-working .pgv-shimmer {
  opacity: 1;
  animation: pgv-shimmer 1.8s linear infinite;
}

.pgv-frame.is-working .pgv-placeholder {
  opacity: .55;
  filter: saturate(.6) blur(1px);
}

.pgv-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  font-family: var(--pgv-serif);
  font-style: italic;
  font-size: 15px;
  color: #3a3028;
  opacity: 0;
  transition: opacity .3s ease;
}

.pgv-frame--studio .pgv-status,
.pgv-frame--hand .pgv-status {
  color: #fbf4e8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.pgv-frame.is-working .pgv-status,
.pgv-frame.is-queued .pgv-status {
  opacity: 1;
}

.pgv-frame.is-queued .pgv-status {
  opacity: .7;
}

@keyframes pgv-shimmer {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}


/* ---------- email gate inside frame 3 ---------- */

.pgv-gate {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(20, 15, 11, .62);
  backdrop-filter: blur(3px);
}

.pgv-frame.is-gated .pgv-gate {
  display: flex;
}

.pgv-gate form {
  width: 100%;
  max-width: 300px;
}

.pgv-gate p {
  margin: 0 0 14px;
  font-family: var(--pgv-serif);
  font-size: 17px;
  line-height: 1.4;
  color: var(--pgv-cream);
}

.pgv-gate input {
  width: 100%;
  margin: 0 0 10px;
  padding: 13px 14px;
  border: 1px solid rgba(239, 229, 212, .5);
  border-radius: 0;
  background: rgba(255, 252, 245, .95);
  color: #241c15;
  font: 15px var(--pgv-serif);
  text-align: center;
}

.pgv-gate .pgv-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 16px;
}

.pgv-gate small {
  display: block;
  margin-top: 10px;
  font-family: var(--pgv-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--pgv-faint);
}


/* ---------- stone line + chips ---------- */

.pgv-stone {
  margin: clamp(30px, 3.5vw, 44px) 0 18px;
  font-family: var(--pgv-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--pgv-faint);
}

.pgv-stone b {
  font-weight: 600;
  color: var(--pgv-cream);
}

.pgv-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.pgv-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 170px;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid rgba(214, 190, 150, .6);
  border-radius: 4px;
  background: transparent;
  color: var(--pgv-cream);
  font-family: var(--pgv-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.pgv-chip svg {
  width: 26px;
  height: 26px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pgv-chip:hover {
  border-color: var(--pgv-cream);
  transform: translateY(-2px);
}

.pgv-chip.is-active {
  background: var(--pgv-cream);
  border-color: var(--pgv-cream);
  color: #241c15;
}

.pgv.is-running .pgv-chip:not(.is-active) {
  opacity: .45;
  pointer-events: none;
}

.pgv-chip:focus-visible,
.pgv-btn:focus-visible {
  outline: 2px solid var(--pgv-gold);
  outline-offset: 3px;
}

.pgv-fine {
  margin: 22px 0 0;
  font-family: var(--pgv-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--pgv-faint);
}


/* ---------- result actions ---------- */

.pgv-actions {
  display: none;
  margin-top: 30px;
}

.pgv.is-complete .pgv-actions {
  display: block;
  animation: pgv-rise .6s ease both;
}

.pgv.is-complete .pgv-fine {
  display: none;
}

.pgv-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 17px 40px;
  border: 1px solid var(--pgv-gold-deep);
  background: var(--pgv-gold-deep);
  color: #fbf4e8 !important;
  font-family: var(--pgv-serif);
  font-size: 18px;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.pgv-btn:hover {
  background: #b08d5b;
  transform: translateY(-1px);
}

.pgv-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 18px;
}

.pgv-link {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--pgv-soft) !important;
  font-family: var(--pgv-serif);
  font-size: 15px;
  cursor: pointer;
}

.pgv-link:hover {
  color: var(--pgv-cream) !important;
}

.pgv-note {
  margin: 20px 0 0;
  font-family: var(--pgv-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--pgv-faint);
}

.pgv-error {
  display: none;
  margin: 18px auto 0;
  font-family: var(--pgv-serif);
  font-size: 15px;
  color: #e8b9a0;
}

.pgv.is-error .pgv-error {
  display: block;
}

@keyframes pgv-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}


/* ---------- jump button in the buy box ---------- */

.pgv-jump {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin: 18px 0 0;
  padding: 16px 20px;
  border: 1px solid #9a7b4f;
  background: #9a7b4f;
  color: #fbf4e8 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: .02em;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .25s ease;
}

.pgv-jump:hover {
  background: #b08d5b;
}


/* ---------- phones ---------- */

@media (max-width: 760px) {
  .pgv-frames {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * clamp(20px, 5vw, 64px));
    padding: 0 clamp(20px, 5vw, 64px) 6px;
    scrollbar-width: none;
  }

  .pgv-frames::-webkit-scrollbar {
    display: none;
  }

  .pgv-frame {
    scroll-snap-align: center;
  }

  .pgv-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 0 calc(-1 * clamp(20px, 5vw, 64px));
    padding: 2px clamp(20px, 5vw, 64px) 8px;
    scrollbar-width: none;
  }

  .pgv-chips::-webkit-scrollbar {
    display: none;
  }

  .pgv-chip {
    flex: none;
    min-width: 0;
    padding: 12px 18px;
  }

  .pgv-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pgv * {
    animation: none !important;
    transition: none !important;
  }
}

/* Paper reads grey when faded on dark, so keep it brighter */
.pgv-frame--sketch .pgv-placeholder {
  opacity: .92;
}


/* =========================================================
   DARK STORE PAGES (e.g. /loose-diamonds on black)
   ========================================================= */

.pgv.pgv--on-dark {
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(176, 141, 91, .14), transparent 70%),
    transparent;
}

.pgv.pgv--on-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 141, 91, .6), transparent);
}

.pgv.pgv--on-dark .pgv-frame {
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
}

/* Beat theme rules like ".ProductItem a:hover { color: gold }" */
.ProductItem a.pgv-jump,
.ProductItem a.pgv-jump:link,
.ProductItem a.pgv-jump:visited,
.ProductItem a.pgv-jump:hover,
.ProductItem a.pgv-jump span,
.pgv a.pgv-btn,
.pgv a.pgv-btn:hover,
.pgv a.pgv-btn span {
  color: #fbf4e8 !important;
  -webkit-text-fill-color: #fbf4e8 !important;
}

.pgv .pgv-chip.is-active,
.pgv .pgv-chip.is-active svg {
  color: #241c15 !important;
}


/* =========================================================
   LOCKED COLORS
   Store themes like ".ProductItem p, span, div, a { color: #fff
   !important }" would otherwise repaint the band's text.
   ========================================================= */

.pgv .pgv-eyebrow {
  color: #b08d5b !important;
}

.pgv h2.pgv-title {
  color: #f3ecdf !important;
}

.pgv .pgv-sub {
  color: rgba(239, 229, 212, .74) !important;
}

.pgv .pgv-frame-label,
.pgv .pgv-frame-label span,
.pgv .pgv-frame.is-done.pgv-frame--sketch .pgv-frame-label,
.pgv .pgv-frame.is-done.pgv-frame--sketch .pgv-frame-label span {
  color: #3a3028 !important;
}

.pgv .pgv-frame--studio .pgv-frame-label,
.pgv .pgv-frame--studio .pgv-frame-label span,
.pgv .pgv-frame--hand .pgv-frame-label,
.pgv .pgv-frame--hand .pgv-frame-label span {
  color: #fbf4e8 !important;
}

.pgv .pgv-status {
  color: #3a3028 !important;
}

.pgv .pgv-frame--studio .pgv-status,
.pgv .pgv-frame--hand .pgv-status {
  color: #fbf4e8 !important;
}

.pgv .pgv-gate p {
  color: #f3ecdf !important;
}

.pgv .pgv-gate small {
  color: rgba(239, 229, 212, .5) !important;
}

.pgv .pgv-stone {
  color: rgba(239, 229, 212, .5) !important;
}

.pgv .pgv-stone b {
  color: #f3ecdf !important;
}

.pgv .pgv-chip,
.pgv .pgv-chip:hover {
  color: #f3ecdf !important;
}

.pgv .pgv-chip.is-active,
.pgv .pgv-chip.is-active:hover {
  color: #241c15 !important;
}

.pgv .pgv-fine,
.pgv .pgv-note {
  color: rgba(239, 229, 212, .5) !important;
}

.pgv .pgv-error {
  color: #e8b9a0 !important;
}

.pgv a.pgv-link,
.pgv button.pgv-link {
  color: rgba(239, 229, 212, .74) !important;
  -webkit-text-fill-color: rgba(239, 229, 212, .74) !important;
}

.pgv a.pgv-link:hover,
.pgv button.pgv-link:hover {
  color: #f3ecdf !important;
  -webkit-text-fill-color: #f3ecdf !important;
}