/* ================================
   SESSE & CO — Quick View Modal
   ================================ */

/* ── Overlay ── */
.qv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 16, 16, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qv-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ── Modal container ── */
.qv-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  z-index: 9995;
  background: var(--white);
  width: 90%;
  max-width: 900px;
  max-height: 92vh;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.32s ease;
  box-shadow: 0 32px 80px rgba(30, 16, 16, 0.22), 0 0 0 1px rgba(155, 27, 27, 0.06);
}

.qv-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Close button ── */
.qv-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(155, 27, 27, 0.10);
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.qv-close:hover {
  background: var(--red);
  color: var(--white);
  transform: scale(1.08);
}

/* ── Body layout — 2-col grid ── */
.qv-body {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 460px;
  max-height: 92vh;
  overflow: hidden;
}

/* ── Image column ── */
.qv-image {
  overflow: hidden;
  position: relative;
  background: var(--warm-gray);
}

.qv-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.qv-modal.open .qv-image img {
  transform: scale(1.02);
}

/* ── Info column ── */
.qv-info {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ── Category label ── */
.qv-category {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Title ── */
.qv-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin: 0;
}

/* ── Stars ── */
.qv-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  line-height: 1;
}

/* ── Price ── */
.qv-price {
  font-family: 'Jost', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.3px;
}

.qv-price-old {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 10px;
}

/* ── Description ── */
.qv-desc {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  border-left: 2px solid var(--gold-pale);
  padding-left: 14px;
  margin: 0;
}

/* ── Divider ── */
.qv-divider {
  height: 1px;
  background: rgba(155, 27, 27, 0.08);
  margin: 2px 0;
}

/* ── Actions row (qty + add btn) ── */
.qv-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Quantity stepper ── */
.qv-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(155, 27, 27, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.qv-qty-btn {
  width: 38px;
  height: 42px;
  background: var(--cream);
  border: none;
  font-size: 1.1rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.qv-qty-btn:hover {
  background: var(--red);
  color: var(--white);
}

#qvQty {
  width: 40px;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-left: 1px solid rgba(155, 27, 27, 0.12);
  border-right: 1px solid rgba(155, 27, 27, 0.12);
  line-height: 42px;
  user-select: none;
}

/* ── Add to cart button ── */
.qv-add-btn {
  flex: 1;
  min-width: 160px;
  height: 42px;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── View full product link ── */
.qv-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}

.qv-link:hover {
  color: var(--red);
}

/* ── Mobile: single column ── */
@media (max-width: 768px) {
  .qv-modal {
    width: 96%;
    max-height: 90vh;
    top: 50%;
  }

  .qv-body {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 1fr;
    min-height: unset;
    max-height: 90vh;
    overflow-y: auto;
  }

  .qv-image {
    height: 240px;
  }

  .qv-info {
    padding: 28px 24px 32px;
    gap: 12px;
    overflow-y: unset;
  }

  .qv-title {
    font-size: 1.6rem;
  }

  .qv-actions {
    gap: 10px;
  }

  .qv-add-btn {
    min-width: 0;
  }
}

@media (max-width: 400px) {
  .qv-info {
    padding: 20px 18px 28px;
  }

  .qv-title {
    font-size: 1.4rem;
  }
}
