/* Listing quick-look — commerce + services feed modal */

.lq-sheet {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.lq-sheet:not([hidden]) {
  pointer-events: auto;
}

.lq-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lq-sheet.is-open .lq-sheet__backdrop {
  opacity: 1;
}

.lq-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: min(92vh, 740px);
  overflow: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.lq-sheet.is-open .lq-sheet__panel {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .lq-sheet {
    align-items: center;
    padding: 1rem;
  }
  .lq-sheet__panel {
    border-radius: 18px;
    max-height: 90vh;
  }
}

.lq-sheet__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lq-sheet__media {
  position: relative;
  background: #0f172a;
  aspect-ratio: 1 / 1;
  max-height: 48vh;
  flex-shrink: 0;
}

.lq-sheet__carousel {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lq-sheet__carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lq-sheet__media-empty {
  color: rgba(255, 255, 255, 0.45);
  font-size: 2.5rem;
}

.lq-sheet__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.lq-sheet__nav--prev { left: 0.55rem; }
.lq-sheet__nav--next { right: 0.55rem; }

.lq-sheet__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.lq-sheet__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
}

.lq-sheet__dot.is-active {
  background: #fff;
  width: 0.85rem;
}

.lq-sheet__body {
  padding: 1rem 1.1rem 1.15rem;
}

.lq-sheet__seller {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.lq-sheet__title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.lq-sheet__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.lq-sheet__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f68b1e;
}

.lq-sheet__old-price {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.lq-sheet__meta {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: #64748b;
}

.lq-sheet__desc {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.45;
  white-space: pre-wrap;
}

.lq-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lq-sheet__row {
  display: flex;
  gap: 0.5rem;
}

.lq-sheet__row .um-cta {
  justify-content: center;
}

.lq-sheet__loading,
.lq-sheet__error {
  padding: 1.25rem 1.1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

.lq-sheet__error {
  color: #b91c1c;
}

body.lq-open {
  overflow: hidden;
}
