/* =============================================
   SI Quick Peek — Minimal Product Card Modal
   ============================================= */

/* ── Overlay — full-screen dim, fixed to viewport ── */
#si-peek-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100000;
  cursor: pointer;
}

#si-peek-overlay.is-active {
  display: block;
}

/* ── Panel — fixed to viewport so image wrappers cannot clip it ── */
.si-peek-panel {
  display: none;
  position: fixed;
  background: #fff;
  width: 250px;
  max-width: calc(100vw - 20px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 100001;
}

.si-peek-panel.is-open {
  display: block;
}

.si-peek-panel.is-measuring {
  visibility: hidden;
}

/* ── Card link — the entire clickable area ── */
.si-peek-card-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* ── Product image — fills full card ── */
.si-peek-image {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  background: #f4f4f4;
}

/* ── Details — overlays bottom of image with blur ── */
.si-peek-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.si-peek-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
  color: #111;
}

.si-peek-price {
  font-size: 14px;
  color: #111;
  margin: 0;
}

/* WooCommerce outputs <del>/<ins> for sale prices */
.si-peek-price del {
  color: #666;
  margin-inline-end: 4px;
}

.si-peek-price ins {
  text-decoration: none;
  color: #111;
}

/* ── Mobile ── */
@media (max-width: 400px) {
  .si-peek-panel {
    max-width: 220px;
  }

  .si-peek-image {
    height: 260px;
  }
}
