/* UKMA — PDP EXTRAS: lightbox, gifts, spec-diff badges */

/* ============================================================
   NEW STYLES v2 — Lightbox, Gifts, Li-ion badges, Spec diff
   ============================================================ */

/* ── Carousel zoom button ─────────────────────────────────── */
.carousel-zoom-btn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 36px; height: 36px;
  background: rgba(5,8,16,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--t-fast);
  backdrop-filter: blur(8px);
}
.carousel-zoom-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ── Lightbox overlay ─────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(0,163,255,0.15);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  z-index: 9001;
}
.lightbox-close:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  z-index: 9001;
}
.lightbox-nav:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-secondary);
  letter-spacing: .1em;
  background: rgba(5,8,16,0.7);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .3rem .9rem;
  z-index: 9001;
}
@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.3rem; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

/* ── Spec diff badges (Li-ion) ────────────────────────────── */
.spec-diff-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .4rem;
  border-radius: 4px;
  background: rgba(0,204,102,0.12);
  border: 1px solid rgba(0,204,102,0.3);
  color: #00CC66;
  margin-left: .3rem;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1;
}
.spec-diff-badge[data-spec-key="weight"] {
  color: var(--accent-yellow);
  background: rgba(255,214,0,0.1);
  border-color: rgba(255,214,0,0.3);
}
.spec-diff-badge[data-spec-key="charge"] {
  color: var(--blue);
  background: rgba(0,163,255,0.1);
  border-color: rgba(0,163,255,0.25);
}

/* Li-ion hint bar */
.li-ion-hint {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  background: rgba(0,163,255,0.07);
  border: 1px solid rgba(0,163,255,0.2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--blue);
  letter-spacing: .06em;
  margin-top: .5rem;
  animation: fade-up .3s var(--ease-out);
}
.li-ion-hint-icon { font-size: 1rem; }

/* Battery Li badge */
.bat-li-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 3px;
  background: rgba(0,163,255,0.1);
  border: 1px solid rgba(0,163,255,0.25);
  color: var(--blue);
  margin-top: .3rem;
}

/* ── Gifts section ────────────────────────────────────────── */
.gifts-section {
  background: linear-gradient(135deg, rgba(0,163,255,0.05) 0%, rgba(255,214,0,0.03) 100%);
  border: 1px solid rgba(255,214,0,0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  animation: fade-up .3s var(--ease-out);
}
.gifts-section-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-yellow);
  margin-bottom: .85rem;
}
.gifts-icon { font-size: 1.1rem; }
.gifts-list { display: flex; flex-direction: column; gap: .6rem; }
.gift-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,214,0,0.12);
  border-radius: var(--radius);
  transition: border-color var(--t-fast);
}
.gift-item:hover { border-color: rgba(255,214,0,0.3); }
.gift-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: .1rem;
}
.gift-item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  color: var(--text-primary);
}
.gift-item-desc {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: .15rem;
  line-height: 1.5;
}

/* Card gift badge */
.card-gift-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  font-size: 1.1rem;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  animation: gift-pulse 2.5s ease-in-out infinite;
}
@keyframes gift-pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ── PDP old price ────────────────────────────────────────── */
.pdp-price-old {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  align-self: center;
}



/* ── Scroll fix: ensure pages always scroll ──────────────── */
html, body {
  overflow-y: auto !important;
  overflow-x: hidden;
}
#app {
  overflow: visible !important;
}

/* Mobile fixes for lightbox nav */
@media (max-width: 480px) {
  .lightbox-img-wrap img { max-width: 95vw; max-height: 80vh; }
}

