/* Artikelseite – überschreibt vinted.css */

body.has-cta {
  padding-bottom: calc(116px + var(--safe-b));
  background: var(--white);
}

.page {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 0 8px;
  background: var(--white);
}

/* ---------- Zahlungsleiste ---------- */

.pay-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--teal-soft);
  border-bottom: 1px solid #d6e8ea;
  color: var(--teal-dark);
}

.pay-ic {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--teal);
}

.pay-txt { min-width: 0; }

.pay-txt strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.pay-txt span {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
  color: #3f6f74;
}

.pay-amount {
  margin-left: auto;
  flex: none;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Galerie ---------- */

.gallery-col { min-width: 0; }

.gallery {
  max-width: 360px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: min(72vw, 300px);
  background: var(--surface);
  overflow: hidden;
}

.track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

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

.gal-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(23, 23, 23, .82);
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 0 12px;
  pointer-events: none;
}

.hero-dots button {
  pointer-events: auto;
  position: relative;
  width: 28px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero-dots button::after {
  content: "";
  position: absolute;
  inset: 17px 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28);
}

.hero-dots button.on { width: 34px; }
.hero-dots button.on::after {
  inset: 9px 11px;
  border-radius: 3px;
  background: #fff;
}

.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.gal-nav:hover { background: #fff; }
.gal-nav.prev { left: 12px; }
.gal-nav.next { right: 12px; }

/* ---------- Thumbnails ---------- */

.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.thumbs::-webkit-scrollbar { display: none; }

.thumbs button {
  flex: none;
  width: 44px;
  height: 55px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}

.thumbs button.on { border-color: var(--teal); }

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

/* ---------- Inhalt ---------- */

.item-info { padding: 20px 16px 0; }

.item-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.item-title {
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.save {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.save:hover { background: var(--surface); }

.item-price {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}

.price-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.3;
}

.chip-cond { color: var(--ink); font-weight: 500; }

.chip-paid {
  border-color: #c8e0e2;
  color: var(--teal-dark);
}

.chip svg { flex: none; color: var(--teal); }

.meta {
  display: block;
  margin: 24px 0 0;
  border-top: 1px solid var(--line-soft);
}

.meta > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.meta dt {
  flex: none;
  font-size: 13px;
  color: var(--faint);
}

.meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

.block { margin-top: 24px; }

.sec-label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--muted);
}

.desc {
  margin: 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* ---------- Verkäufer ---------- */

.seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d9e8ea;
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 700;
}

.seller-mid { flex: 1; min-width: 0; }

.seller-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.seller-rating {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.seller-rating span { color: #8a6100; }

.msg-btn {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.msg-btn:hover { background: var(--surface); }

/* ---------- Trust ---------- */

.trust-block { border-top: 1px solid var(--line-soft); padding-top: 24px; }

.item-info .trust {
  border-top: 0;
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.trust li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust li svg { flex: none; margin-top: 1px; color: var(--teal); }

.trust strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.trust span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- CTA ---------- */

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}

.cta-bar .btn { max-width: 540px; margin: 0 auto; }

.cta-note {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- ab 760 px ---------- */

@media (min-width: 760px) {
  body.has-cta { padding-bottom: 0; background: var(--bg); }

  .page {
    width: 100%;
    max-width: 940px;
    margin: 24px auto;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .pay-strip {
    margin: -24px 0 24px;
    padding: 12px 16px;
    border-radius: 0;
  }

  .item-grid {
    display: grid;
    grid-template-columns: minmax(0, 360px) 400px;
    gap: 20px;
    justify-content: center;
    align-items: start;
    max-width: none;
    margin: 0;
  }

  .gallery-col {
    max-width: 360px;
    position: sticky;
    top: 72px;
  }

  .gallery {
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 450px;
    border: 0;
    border-radius: 10px;
  }

  .thumbs {
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 20px;
    padding: 0;
  }

  .thumbs button {
    width: 44px;
    height: 55px;
  }

  .gal-nav { display: grid; }

  .item-info { padding: 0 16px 0 0; }

  .item-title { font-size: 22px; }

  .item-price { font-size: 30px; }

  .desc { font-size: 15px; }

  .cta-bar {
    position: static;
    margin: 16px 0 22px;
    padding: 0;
    border: 0;
  }

  .cta-bar .btn { max-width: 100%; margin: 0; }
}

@media (min-width: 1000px) {
  .item-grid {
    grid-template-columns: minmax(0, 360px) minmax(400px, 440px);
    gap: 24px;
  }
}

@media (min-width: 760px) and (max-width: 860px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .pay-strip { margin-left: 0; margin-right: 0; padding-left: 16px; padding-right: 16px; }
}


/* Punkte: 44x44 Trefferfläche */
.hero-dots button { width: 44px; height: 44px; }
.hero-dots button::after { inset: 19px 19px; }
.hero-dots button.on { width: 44px; }
.hero-dots button.on::after { inset: 19px 15px; }
