/* =============================================
   AURUM — Product Lightbox Styles
   ============================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,9,8,0.92);
  backdrop-filter: blur(8px);
}

/* ── Close button ───────────────────────────── */
.lightbox__close {
  position: absolute;
  top: 28px; right: 28px;
  z-index: 10;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28,25,21,0.6);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.lightbox__close:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: rotate(90deg);
}
.lightbox__close svg { width: 18px; height: 18px; }

/* ── Nav arrows ─────────────────────────────── */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28,25,21,0.6);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lightbox__nav:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: 28px; }
.lightbox__nav--next { right: 28px; }

/* ── Content layout ─────────────────────────── */
.lightbox__content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 560px) 360px;
  gap: 0;
  max-width: 1040px;
  width: 92vw;
  max-height: 86vh;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 60px 120px rgba(0,0,0,0.6);
  overflow: hidden;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34,1.2,0.64,1);
}
.lightbox.open .lightbox__content {
  transform: scale(1) translateY(0);
}

/* ── Image side ─────────────────────────────── */
.lightbox__image-wrap {
  position: relative;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 420px;
  overflow: hidden;
}

.lightbox__image-wrap img,
.lightbox__image-wrap svg {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5));
  animation: lightboxImageIn 0.5s cubic-bezier(0.34,1.2,0.64,1);
}

@keyframes lightboxImageIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Info side ──────────────────────────────── */
.lightbox__info {
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  border-left: 1px solid var(--border);
  overflow-y: auto;
}

.lightbox__category {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 16px;
}

.lightbox__name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.lightbox__material {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.lightbox__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.lightbox__stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.lightbox__reviews { font-family: var(--font-body); font-size: 10.5px; color: var(--text-muted); }

.lightbox__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
}
.lightbox__price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--gold);
}
.lightbox__price-old {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

.lightbox__add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--gold);
  border: none;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.lightbox__add-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold-light);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}
.lightbox__add-btn:hover::before { transform: translateX(0); }
.lightbox__add-btn span, .lightbox__add-btn svg { position: relative; z-index: 1; }
.lightbox__add-btn svg { width: 16px; height: 16px; }

.lightbox__add-btn.added {
  background: #4a7c59;
}
.lightbox__add-btn.added::before { display: none; }

/* ── Counter ────────────────────────────────── */
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  background: rgba(28,25,21,0.6);
  border: 1px solid var(--border);
  padding: 6px 16px;
}

/* ── Clickable image cursor on cards ─────────── */
.product-card__image {
  cursor: zoom-in;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 860px) {
  .lightbox__content {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .lightbox__image-wrap { min-height: 280px; padding: 24px; }
  .lightbox__info { border-left: none; border-top: 1px solid var(--border); padding: 28px 24px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .lightbox__close { top: 16px; right: 16px; width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  .lightbox__content { width: 96vw; }
  .lightbox__name { font-size: 24px; }
  .lightbox__price { font-size: 26px; }
}