/* ==========================================================================
   Listing detail page - premium desktop, app-like mobile
   ========================================================================== */
.ld-wrap,
.ld-bar {
  --ld-red: #c8102e;
  --ld-red-dark: #9f1239;
  --ld-maroon: #4a0613;
  --ld-wine: #7f0a1f;
  --ld-gold: #f59e0b;
  --ld-gold-dark: #b45309;
  --ld-ink: #111827;
  --ld-text: #374151;
  --ld-muted: #6b7280;
  --ld-line: rgba(17, 24, 39, 0.07);
  --ld-soft: #fff4f5;
  --ld-tile: #f5f6f8;
  --ld-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 6px 20px rgba(17, 24, 39, 0.05);
  --ld-radius: 18px;
}
.ld-wrap {
  max-width: 1180px;
  color: var(--ld-text);
}
.ld-banners { margin-bottom: 1rem; }

/* ---------- Layout ---------- */
.ld-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.ld-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.ld-card {
  background: #fff;
  border: 1px solid var(--ld-line);
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  padding: 1.15rem 1.2rem;
}
.ld-card__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ld-ink);
  letter-spacing: -0.005em;
}
.ld-feedback:empty { display: none; }

/* ---------- Gallery ---------- */
.ld-gallery {
  background: #fff;
  border: 1px solid var(--ld-line);
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
  padding: 0.6rem;
}
.ld-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ld-tile);
}
.ld-stage__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.ld-stage__track::-webkit-scrollbar { display: none; }
.ld-stage__slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  cursor: zoom-in;
}
.ld-stage__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.ld-stage__empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.85rem;
}
.ld-stage__empty i { font-size: 2.4rem; }

.ld-stage__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  pointer-events: none;
}
.ld-stage__top > * { pointer-events: auto; }
.ld-stage__top-end {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}
.ld-round {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ld-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}
.ld-round:hover { color: var(--ld-red); transform: scale(1.06); }
.ld-round:active { transform: scale(0.94); }
.ld-round i { line-height: 1; }
.ld-round--back { display: none; }
.ld-like.is-liked { color: var(--ld-red); }
.ld-like.is-liked i { animation: ld-pop 0.3s ease; }
@keyframes ld-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.ld-stage__chips {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 72%;
}
.ld-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.ld-chip i { font-size: 0.62rem; }
.ld-chip--red { background: var(--ld-red); color: #fff; }
.ld-chip--gold { background: var(--ld-gold); color: #3b1d00; }
.ld-chip--maroon { background: var(--ld-maroon); color: #fff; }
.ld-chip--light { background: #fff; color: var(--ld-wine); }
.ld-chip--dark { background: var(--ld-ink); color: #fff; }

.ld-stage__count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ld-stage__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ld-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.15s ease;
}
.ld-stage:hover .ld-stage__nav,
.ld-stage__nav:focus-visible { opacity: 1; }
.ld-stage__nav:hover { color: var(--ld-red); }
.ld-stage__nav--prev { left: 0.75rem; }
.ld-stage__nav--next { right: 0.75rem; }

.ld-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0.1rem 0.1rem;
  scrollbar-width: none;
}
.ld-thumbs::-webkit-scrollbar { display: none; }
.ld-thumb {
  flex: 0 0 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--ld-tile);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.ld-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ld-thumb:hover { opacity: 1; }
.ld-thumb.active { opacity: 1; border-color: var(--ld-red); }

/* ---------- Info card ---------- */
.ld-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
}
.ld-price__now {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ld-red);
  letter-spacing: -0.01em;
}
.ld-price__was {
  font-size: 0.95rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
}
.ld-price__save {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--ld-soft);
  color: var(--ld-red);
  font-size: 0.72rem;
  font-weight: 800;
}
.ld-offer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--ld-muted);
}
.ld-title {
  margin: 0.6rem 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ld-ink);
  word-break: break-word;
}
.ld-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ld-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--ld-tile);
  color: var(--ld-text);
  font-size: 0.76rem;
  font-weight: 600;
}
.ld-pill i { font-size: 0.7rem; color: var(--ld-muted); }
.ld-pill--cond { background: var(--ld-soft); color: var(--ld-red-dark); }
.ld-pill--cond i { color: var(--ld-red); }
.ld-pill--ok { background: #ecfdf5; color: #047857; }
.ld-pill--ok i { color: #059669; }
.ld-pill--out { background: #f3f4f6; color: var(--ld-muted); }
.ld-pill--sold {
  margin-left: auto;
  align-self: center;
  background: var(--ld-ink);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}
.ld-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(17, 24, 39, 0.1);
  font-size: 0.78rem;
  color: var(--ld-muted);
}
.ld-meta i { color: var(--ld-red); font-size: 0.75rem; }

/* ---------- Buttons ---------- */
.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 1rem;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ld-btn:hover { transform: translateY(-1px); }
.ld-btn--red {
  background: linear-gradient(135deg, var(--ld-red), var(--ld-red-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.25);
}
.ld-btn--red:hover { color: #fff; box-shadow: 0 8px 20px rgba(200, 16, 46, 0.32); }
.ld-btn--outline {
  background: #fff;
  color: var(--ld-red);
  border-color: rgba(200, 16, 46, 0.35);
}
.ld-btn--outline:hover { background: var(--ld-soft); color: var(--ld-red-dark); border-color: var(--ld-red); }
.ld-btn--dark { background: var(--ld-ink); color: #fff; }
.ld-btn--dark:hover { background: #000; color: #fff; }
.ld-btn--muted,
.ld-btn:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.ld-btn--sm {
  width: auto;
  min-height: 34px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.76rem;
  flex-shrink: 0;
}
.ld-hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: var(--ld-muted);
  text-align: center;
}

/* ---------- Buy card ---------- */
.ld-protect {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4f5, #fffbeb);
  border: 1px solid rgba(200, 16, 46, 0.12);
}
.ld-protect__icon {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ld-red);
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.12);
}
.ld-protect__icon i { line-height: 1; }
.ld-protect > div strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ld-ink);
}
.ld-protect > div span {
  display: block;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--ld-muted);
}
.ld-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.ld-actions form { margin: 0; }
.ld-msg { margin-top: 0.6rem; }
.ld-tiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.ld-tile {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: var(--ld-tile);
  color: var(--ld-ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.ld-tile > i {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ld-red);
  font-size: 0.78rem;
}
.ld-tile > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ld-tile:hover { background: var(--ld-soft); color: var(--ld-red-dark); }
.ld-buy .seller-unverified-alert {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #78350f;
}
.ld-buy .seller-unverified-alert .fa-exclamation-triangle { color: var(--ld-gold-dark); }
.ld-buy .seller-unverified-alert .btn-close { font-size: 0.65rem; }

/* ---------- Seller card ---------- */
.ld-seller__row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.ld-avatar {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ld-red), var(--ld-maroon));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(74, 6, 19, 0.18);
}
.ld-avatar:hover { color: #fff; }
.ld-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ld-seller__info { flex: 1; min-width: 0; }
.ld-seller__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ld-ink);
  text-decoration: none;
}
.ld-seller__name:hover { color: var(--ld-red); }
.ld-seller__sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 0.74rem;
}
.ld-verified,
.ld-unverified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
}
.ld-verified { color: #047857; }
.ld-unverified { color: var(--ld-gold-dark); }
.ld-seller__badge:empty { display: none; }
.ld-seller__badge .seller-tier-badge {
  font-size: 0.6rem !important;
  padding: 0.18rem 0.45rem !important;
}
.ld-seller__owner {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: var(--ld-muted);
}
.ld-seller__owner a { color: var(--ld-text); font-weight: 700; text-decoration: none; }
.ld-seller__owner a:hover { color: var(--ld-red); }

/* ---------- Owner tools ---------- */
.ld-manage__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ld-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ld-ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ld-row:hover { background: var(--ld-tile); color: var(--ld-ink); }
.ld-row.is-static { cursor: default; }
.ld-row.is-static:hover { background: transparent; }
.ld-row:disabled { opacity: 0.55; cursor: not-allowed; }
.ld-row__icon {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ld-soft);
  color: var(--ld-red);
  font-size: 0.88rem;
}
.ld-row__icon i { line-height: 1; }
.ld-row__icon--gold { background: #fffbeb; color: var(--ld-gold-dark); }
.ld-row__icon--green { background: #ecfdf5; color: #059669; }
.ld-row__icon--ink { background: #f3f4f6; color: var(--ld-ink); }
.ld-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.ld-row__text strong { font-size: 0.86rem; font-weight: 800; }
.ld-row__text small { font-size: 0.72rem; color: var(--ld-muted); }
.ld-row__chev { color: #d1d5db; font-size: 0.72rem; }
.ld-row--danger .ld-row__text strong { color: var(--ld-red); }

/* ---------- Description + details ---------- */
.ld-desc__body {
  position: relative;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ld-text);
  word-break: break-word;
}
.ld-desc__body p:last-child { margin-bottom: 0; }
.ld-desc__body.is-clamped {
  max-height: 12em;
  overflow: hidden;
}
.ld-desc__body.is-clamped:not(.is-open)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}
.ld-desc__body.is-open { max-height: none; }
.ld-desc__more {
  padding: 0.45rem 0 0;
  border: 0;
  background: none;
  color: var(--ld-red);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.ld-specs__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
  margin: 0;
}
.ld-specs__list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ld-line);
  font-size: 0.83rem;
}
.ld-specs__list dt { font-weight: 600; color: var(--ld-muted); }
.ld-specs__list dd {
  margin: 0;
  font-weight: 700;
  color: var(--ld-ink);
  text-align: right;
  word-break: break-word;
}

/* ---------- Comments + related (existing blocks, restyled) ---------- */
.ld-wrap .listing-detail-below { margin-top: 1.25rem !important; }
.ld-wrap .comments-card {
  border: 1px solid var(--ld-line) !important;
  border-radius: var(--ld-radius) !important;
  box-shadow: var(--ld-shadow) !important;
}
.ld-wrap .comments-card > .card-body > h5 {
  margin-bottom: 1rem !important;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ld-ink);
}
.ld-wrap .related-listings-section { border-radius: var(--ld-radius); }

/* ---------- Fullscreen photo viewer ---------- */
html.ld-lb-open,
html.ld-lb-open body { overflow: hidden !important; }
html.ld-lb-open .tigule-assistant-widget,
html.ld-lb-open .assistant-greeting-bubble,
html.ld-lb-open #goToTopBtn { display: none !important; }
.ld-lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 12, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.ld-lb.is-open { opacity: 1; visibility: visible; }
.ld-lb__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem 0.75rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  color: #fff;
  pointer-events: none;
}
.ld-lb__top > * { pointer-events: auto; }
.ld-lb__count {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ld-lb__close,
.ld-lb__nav {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ld-lb__close { margin-left: auto; }
.ld-lb__close:hover,
.ld-lb__nav:hover { background: rgba(255, 255, 255, 0.26); }
.ld-lb__close:active,
.ld-lb__nav:active { transform: scale(0.94); }
.ld-lb__track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
  touch-action: pan-x;
}
.ld-lb__track::-webkit-scrollbar { display: none; }
.ld-lb__slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.75rem 0.5rem;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.ld-lb__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 4px;
}
.ld-lb__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin-top: -24px;
}
.ld-lb__nav--prev { left: 1rem; }
.ld-lb__nav--next { right: 1rem; }
.ld-lb__hint {
  position: absolute;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
@media (hover: none) {
  .ld-lb__nav { display: none; }
}
@media (hover: hover) {
  .ld-lb__hint { display: none; }
}

/* ---------- Logged-out gate ---------- */
.ld-gate {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  width: 100%;
  max-width: 900px;
  margin: 0.5rem auto 1.5rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ld-line);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 18px 44px rgba(74, 6, 19, 0.1);
}
.ld-gate__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--ld-maroon);
}
.ld-gate__img {
  position: absolute;
  inset: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.04);
  z-index: -2;
  user-select: none;
}
.ld-gate__img--empty {
  display: grid;
  place-items: center;
  filter: none;
  background: linear-gradient(135deg, var(--ld-wine), var(--ld-maroon));
  color: rgba(255, 255, 255, 0.18);
  font-size: 4rem;
}
.ld-gate__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(74, 6, 19, 0.35) 0%, rgba(74, 6, 19, 0.7) 100%);
}
.ld-gate__lock {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ld-red);
  font-size: 1.75rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.16), 0 12px 30px rgba(0, 0, 0, 0.25);
}
.ld-gate__lock i { line-height: 1; }
.ld-gate__count {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ld-gate__body {
  padding: 2rem 2rem 1.6rem;
}
.ld-gate__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--ld-soft);
  color: var(--ld-red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ld-gate__title {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ld-ink);
  letter-spacing: -0.01em;
}
.ld-gate__text {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ld-muted);
}
.ld-gate__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: var(--ld-tile);
  border: 1px solid var(--ld-line);
}
.ld-gate__item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ld-ink);
}
.ld-gate__item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  font-size: 0.78rem;
  color: var(--ld-muted);
}
.ld-gate__item-meta strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ld-red);
}
.ld-gate__item-meta i { color: var(--ld-red); font-size: 0.72rem; }
.ld-gate__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.ld-gate__perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 1.1rem 0 0;
  list-style: none;
  border-top: 1px dashed rgba(17, 24, 39, 0.1);
}
.ld-gate__perks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ld-text);
}
.ld-gate__perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ld-soft);
  color: var(--ld-red);
  font-size: 0.85rem;
}
.ld-gate__perk-icon i { line-height: 1; }
.ld-gate__perks li:nth-child(2) .ld-gate__perk-icon { background: #fffbeb; color: var(--ld-gold-dark); }

/* ---------- Mobile action bar ---------- */
.ld-bar { display: none; }

/* ==========================================================================
   Tablet and below: single column, app order
   ========================================================================== */
@media (max-width: 991.98px) {
  .ld-wrap {
    display: flex;
    flex-direction: column;
  }
  .ld-wrap > .ld-main,
  .ld-wrap > .ld-gate { order: 1; }
  .ld-wrap > .ld-banners { order: 2; margin: 0.85rem 0 0; }
  .ld-wrap > .listing-detail-below { order: 3; }

  .ld-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .ld-col { display: contents; }
  .ld-gallery { order: 1; }
  .ld-info { order: 2; }
  .ld-feedback { order: 3; }
  .ld-buy,
  .ld-manage { order: 4; }
  .ld-desc { order: 5; }
  .ld-specs { order: 6; }
  .ld-seller { order: 7; }
}

/* ==========================================================================
   Phones: full-width photo, rounded cards, sticky action bar
   ========================================================================== */
@media (max-width: 768.98px) {
  body.listing-detail-page { background: #f5f6f8; }
  .ld-wrap { padding-top: 0 !important; }
  .ld-main { gap: 0.7rem; }

  .ld-gallery {
    margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }
  .ld-stage {
    aspect-ratio: auto;
    height: min(96vw, 440px);
    border-radius: 0;
    background: #eef0f3;
  }
  .ld-stage::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
    pointer-events: none;
  }
  .ld-round--back { display: inline-flex; }
  .ld-stage__nav { display: none; }
  .ld-thumbs {
    gap: 0.45rem;
    padding: 0.55rem 0.75rem 0.65rem;
    background: #fff;
    border-bottom: 1px solid var(--ld-line);
  }
  .ld-thumb {
    flex-basis: 58px;
    height: 58px;
    border-radius: 10px;
  }

  .ld-card {
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  }
  .ld-price__now { font-size: 1.5rem; }
  .ld-title { font-size: 1.08rem; margin: 0.5rem 0 0.65rem; }
  .ld-specs__list { grid-template-columns: 1fr; }
  .ld-wrap .listing-detail-below { margin-top: 0.7rem !important; }
  .ld-wrap .comments-card { border-radius: 16px !important; }

  .ld-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--ld-line);
    box-shadow: 0 -6px 20px rgba(17, 24, 39, 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .ld-bar__btn {
    flex: 1 1 0;
    min-width: 0;
    height: 46px;
    padding: 0 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1.5px solid rgba(200, 16, 46, 0.35);
    border-radius: 14px;
    background: #fff;
    color: var(--ld-red);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.12s ease;
  }
  .ld-bar__btn:active { transform: scale(0.97); }
  .ld-bar__btn:hover { color: var(--ld-red); }
  .ld-bar__btn span { overflow: hidden; text-overflow: ellipsis; }
  .ld-bar__btn--chat {
    flex: 0 0 auto;
    padding: 0 0.95rem;
    border-color: rgba(17, 24, 39, 0.14);
    color: var(--ld-ink);
  }
  .ld-bar__btn--chat:hover { color: var(--ld-ink); }
  .ld-bar__btn--main {
    flex: 1.35 1 0;
    border-color: transparent;
    background: linear-gradient(135deg, var(--ld-red), var(--ld-red-dark));
    color: #fff;
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.28);
  }
  .ld-bar__btn--main:hover { color: #fff; }
  .ld-bar__btn:disabled {
    background: #f3f4f6;
    border-color: transparent;
    color: #9ca3af;
    box-shadow: none;
  }

  body.ld-bar-on .mobile-bottom-nav { display: none !important; }
  body.ld-bar-on { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)) !important; }
  body.ld-bar-on .ld-buy .ld-actions,
  body.ld-bar-on .ld-buy .ld-msg--active { display: none; }
  body.ld-bar-on .ld-buy .ld-actions + .ld-hint { margin-top: 0; }
  body.ld-bar-on .ld-buy--bar-only { display: none; }
  body.ld-bar-on .tigule-assistant-widget { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 767.98px) {
  .ld-gate {
    grid-template-columns: 1fr;
    margin: 0.75rem 0 1rem;
    border-radius: 20px;
  }
  .ld-gate__media { min-height: 190px; }
  .ld-gate__lock { width: 64px; height: 64px; font-size: 1.4rem; }
  .ld-gate__body { padding: 1.25rem 1.1rem 1.1rem; }
  .ld-gate__title { font-size: 1.25rem; }
  .ld-gate__text { font-size: 0.85rem; }
  .ld-gate__actions { grid-template-columns: 1fr; }
  .ld-gate__perks { margin-top: 1rem; padding-top: 0.9rem; }
}

@media (max-width: 380px) {
  .ld-bar__btn { font-size: 0.78rem; gap: 0.3rem; }
  .ld-bar__btn:not(.ld-bar__btn--main):not(.ld-bar__btn--chat) i { display: none; }
  .ld-bar__btn--chat span { display: none; }
  .ld-tiles { grid-auto-flow: row; }
}
