/* ── Item Spotlight Overlay ── */

.spot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: background 0.2s ease;
  pointer-events: none;
}
.spot-overlay.open {
  background: rgba(0,0,0,0.6);
  pointer-events: auto;
}

.spot-card {
  background: var(--white, #fff);
  border: 3px solid var(--ink, #111);
  box-shadow: 8px 8px 0 var(--ink, #111);
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
}
.spot-overlay.open .spot-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Hero image area ── */
.spot-hero {
  position: relative;
  background: #f7f4ee;
  border-bottom: 2px solid var(--ink, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
}
.spot-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
  padding: 1rem;
}
.spot-img-link {
  display: block;
  width: 100%;
  position: relative;
}
.spot-img-link:hover .spot-img { transform: scale(1.03); }
.spot-img-link .spot-img { transition: transform 0.15s; }

.spot-amazon-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  background: var(--ink, #111);
  color: var(--white, #fff);
  opacity: 0;
  transition: opacity 0.15s;
}
.spot-img-link:hover .spot-amazon-tag { opacity: 1; }

.spot-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink, #111);
  background: var(--white, #fff);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.12s;
  box-shadow: 2px 2px 0 var(--ink, #111);
}
.spot-close:hover { background: #f0f0f0; box-shadow: 0 0 0 var(--ink, #111); transform: translate(1px,1px); }

.spot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}
/* Override the badge's own positioning since it's now inside .spot-badge */
.spot-badge .deal-badge {
  position: static;
}

/* ── Body ── */
.spot-body {
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.spot-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.spot-variant-badge {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--purple, #a855f7);
  background: rgba(168,85,247,0.1);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Price in spotlight — larger */
.spot-price { display: flex; align-items: baseline; gap: 0.5rem; }
.spot-price .price-sale { font-size: 1.75rem; }
.spot-price .price-original { font-size: 0.85rem; }

/* Facts — full width, 2x2 grid */
.spot-facts .fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.spot-facts .fact {
  padding: 6px 8px;
}
.spot-facts .fact b { font-size: 8px; }
.spot-facts .fact span { font-size: 11px; }

/* ── Actions ── */
.spot-actions {
  margin-top: auto;
}

.spot-atc-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  font-family: var(--mono, 'Space Mono', monospace);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--ink, #111);
  background: linear-gradient(135deg, var(--pink, #e84393), var(--purple, #a855f7));
  color: var(--white, #fff);
  box-shadow: 3px 3px 0 var(--ink, #111);
  transition: all 0.12s;
  cursor: pointer;
}
.spot-atc-btn:hover {
  box-shadow: 1px 1px 0 var(--ink, #111);
  transform: translate(2px, 2px);
}

.spot-cart .cart-qty-controls {
  box-shadow: 3px 3px 0 var(--ink, #111);
}
.spot-cart .cart-qty-btn {
  width: 52px;
  min-height: 48px;
  font-size: 1.1rem;
}
.spot-cart .cart-qty-value {
  font-size: 1rem;
}

/* View in page link */
.spot-context-btn {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.4rem;
  border: none;
  background: none;
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted, #6f6b66);
  cursor: pointer;
  transition: color 0.12s;
  text-align: center;
}
.spot-context-btn:hover { color: var(--ink, #111); }

/* ── Mobile: bottom sheet ── */
@media (max-width: 600px) {
  .spot-overlay { padding: 0; align-items: flex-end; }
  .spot-card {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 0;
    box-shadow: 0 -4px 0 var(--ink, #111);
    transform: translateY(100%);
  }
  .spot-overlay.open .spot-card {
    transform: translateY(0);
  }
  .spot-hero { min-height: 150px; }
  .spot-img { height: 160px; padding: 0.75rem; }
  .spot-body { padding: 0.85rem 1rem 1rem; }
  .spot-title { font-size: 1rem; }
  .spot-price .price-sale { font-size: 1.5rem; }
  .spot-atc-btn { padding: 0.85rem; min-height: 48px; }
  .spot-cart .cart-qty-btn { min-height: 48px; }
}
