/* ─── Artikelseite ──────────────────────────────────── */
.listing-page {
  max-width: 1060px;
  margin: 32px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ─── Gallerie ──────────────────────────────────────── */
.gallery-main {
  width: 100%;
  height: 450px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img {
  width: 100%;
  height: auto;
  max-height: 500px;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.2s;
}
.no-img-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
}

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.gallery-thumbs .thumb {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}
.gallery-thumbs .thumb.active {
  border-color: var(--accent);
}
.gallery-thumbs .thumb:hover {
  border-color: var(--accent-hover);
}

/* ─── Details ───────────────────────────────────────── */
.listing-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Titel */
.listing-detail-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text-primary);
}

/* Subtitel (System‑Info in Klammern) */
.listing-title-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ─── ROTER PREIS ───────────────────────────────────── */
.listing-detail-price {
  display: flex;
  flex-direction: column;
  color: var(--accent);
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 8px 0;
}
.listing-detail-shipping {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ─── Meta‑Box (System, Länderversion, Zustand) ────── */
.listing-detail-meta {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.meta-label {
  font-weight: 600;
  color: var(--text-secondary);
}
.badge-graded {
  background: var(--success);
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

/* ─── Beschreibung ──────────────────────────────────── */
.listing-description {
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.listing-description h3 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.3rem;
}
.listing-description p {
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

/* ─── Verkäufer‑Box ────────────────────────────────── */
.seller-box {
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.seller-box-info {
  display: flex;
  gap: 16px;
  align-items: center;
}
.seller-mini-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.seller-mini-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(220,53,69,0.1);
  color: rgba(220,53,69,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
}
.seller-box-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.seller-box-name a {
  color: var(--text-primary);
  text-decoration: none;
}
.seller-box-name a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.seller-box-meta {
  margin: 4px 0 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.seller-box-meta a {
  color: var(--accent);
  text-decoration: none;
}
.seller-box-meta a:hover {
  text-decoration: underline;
}

/* ─── Buttons ───────────────────────────────────────── */
.listing-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Buttons greifen auf global.css‑Klassen zurück */
/* .btn-primary ist in global.css definiert */

/* ─── PayPal (ausgeblendet) ────────────────────────── */
.btn-paypal,
.paypal-reveal {
  display: none !important;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .listing-page {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 20px auto;
    padding: 0 16px;
  }
  .gallery-main img {
    max-height: 400px;
  }
  .gallery-thumbs .thumb {
    width: 56px;
    height: 56px;
  }
  .btn-primary {
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .gallery-main img {
    max-height: 300px;
  }
  .gallery-thumbs {
    justify-content: center;
  }
}
