/* ─────────────────────────────────────────────────────
   popup.css — Popup produit (lightbox bijou)
───────────────────────────────────────────────────── */

#product-popup {
  position: fixed; inset: 0;
  background: rgba(18,15,9,.8);
  z-index: 9999; display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
#product-popup.open { display: flex; }

.pp-box {
  background: var(--w);
  width: 100%; max-width: 860px;
  max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
}

/* Colonne image */
.pp-media { display: flex; flex-direction: column; background: var(--w2); }

.pp-main-img { flex: 1; overflow: hidden; min-height: 300px; background: var(--w2); position: relative; }
.pp-main-img::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.06) 0%, transparent 70%);
  z-index: 1; pointer-events: none;
}
.pp-main-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: center 30%;
  filter: contrast(1.08) saturate(1.18) brightness(1.05) sepia(0.05);
  transition: opacity .3s ease;
}

/* Miniatures */
.pp-thumbs { display: none; gap: 4px; padding: 8px; background: var(--w3); flex-wrap: wrap; }
.pp-thumbs.has-many { display: flex; }
.pp-thumb {
  width: 54px; height: 54px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; flex-shrink: 0;
  transition: border-color .2s, opacity .2s; opacity: .55;
}
.pp-thumb.active, .pp-thumb:hover { opacity: 1; border-color: var(--k); }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Colonne texte */
.pp-body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.pp-ref   { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--br2); margin-bottom: 14px; }
.pp-name  { font-family: 'Cormorant', serif; font-size: clamp(26px, 4vw, 38px); font-weight: 300; color: var(--k); line-height: 1.05; margin-bottom: 8px; }
.pp-cat   { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--go); margin-bottom: 20px; }
.pp-sep   { height: 1px; background: var(--br3); margin-bottom: 20px; }
.pp-desc  { font-size: 13px; color: var(--br); line-height: 1.85; margin-bottom: 24px; flex: 1; }
.pp-price { font-family: 'Cormorant', serif; font-size: 24px; font-weight: 300; color: var(--k); margin-bottom: 24px; }
.pp-cta   {
  display: block; background: var(--k); color: var(--w); border: none;
  padding: 13px; text-align: center;
  font-family: 'Raleway', sans-serif; font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase; font-weight: 500;
  cursor: pointer; transition: background .3s; text-decoration: none;
}
.pp-cta:hover { background: var(--k2); }

.pp-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: #9C9080;
  font-size: 26px; cursor: pointer; line-height: 1;
  transition: color .2s; z-index: 1;
}
.pp-close:hover { color: var(--k); }
