.edition-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.purchase .format--edition {
  min-width: 0;
  padding: 10px 10px 14px;
  background: #fff;
  overflow: hidden;
}

.edition-choice-image {
  display: block;
  height: 142px;
  margin-bottom: 12px;
  background: #f7f4f0;
  border-radius: 6px;
  overflow: hidden;
}

.edition-choice-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.purchase .format--edition .format-name {
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  min-height: 2.9em;
}

.purchase .format--edition .format-sub {
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  color: var(--ws-plum-ink);
}

.purchase .format--edition[aria-pressed="true"]::after {
  top: 14px;
  right: 14px;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 3px #fff;
}

.format-options .format:focus-visible,
.product-gallery-thumb:focus-visible {
  outline: 3px solid var(--book-c, var(--ws-plum-ink));
  outline-offset: 4px;
}

.product-photo-img,
.featured-photo-img,
html[data-shop-theme="tintenschwarz"] .product-photo-img,
html[data-shop-theme="tintenschwarz"] .featured-photo-img {
  aspect-ratio: auto;
  height: auto;
  background: transparent;
}

.product-photo-img > img,
.featured-photo-img > img,
html[data-shop-theme="tintenschwarz"] .product-photo-img > img,
html[data-shop-theme="tintenschwarz"] .featured-photo-img > img {
  display: block;
  width: 100%;
  height: auto;
}

.edition-choice {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
}

.purchase .edition-choice .format--edition {
  flex: 1 0 auto;
  width: 100%;
  height: auto;
  margin: 0;
}

.edition-gallery-open {
  flex: none;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--ws-plum-ink);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.edition-gallery-open:hover {
  background: var(--ws-mauve-deep);
}

.edition-gallery-open:focus-visible,
.edition-gallery-close:focus-visible {
  outline: 3px solid var(--book-c, var(--ws-plum-ink));
  outline-offset: 3px;
}

.edition-gallery-locked {
  overflow: hidden;
}

.edition-gallery-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 20px;
  border: 0;
  border-radius: 14px;
  background: var(--ws-cream);
  color: var(--ws-plum-ink);
  box-sizing: border-box;
}

.edition-gallery-dialog::backdrop {
  background: rgba(18, 16, 22, .76);
}

.edition-gallery-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edition-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
}

.edition-gallery-head h2 {
  margin: 0;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.edition-gallery-close {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ws-plum-ink);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.edition-gallery-photo {
  min-height: 0;
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
}

.edition-gallery-photo img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 236px);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.edition-gallery-thumbs {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.edition-gallery-thumbs[hidden] {
  display: none;
}

.product-gallery-thumb {
  width: 72px;
  height: 86px;
  padding: 5px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.product-gallery-thumb[aria-pressed="true"] {
  border-color: var(--book-c, var(--ws-plum-ink));
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.edition-description {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
  color: var(--ws-plum-soft);
}

.purchase .price-row {
  flex-wrap: wrap;
  gap: 8px 14px;
}

.price-base {
  font-size: 17px;
  color: var(--ws-plum-mute);
  text-decoration-thickness: 1px;
}

.edition-promotion,
.featured-edition-promotion {
  color: var(--ws-plum-ink);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--ws-gold-pale, #f5e9ca);
  border-radius: 10px;
}

.tredition-product-note {
  margin: 0 0 24px;
}

.tredition-product-note p,
.featured-edition-info {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 14px;
  color: var(--ws-plum-soft);
}

.tredition-product-note .btn-gold,
.trd-actions .btn-gold {
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.purchase .actions .btn-gold {
  min-width: 0;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.06em;
  padding-inline: 16px;
}

.book-edition-summary {
  font-size: 12px;
  line-height: 1.65;
  margin: 12px 0 0;
  color: var(--ws-plum-soft);
}

.book-edition-summary span {
  display: block;
}

.featured-edition-info {
  margin-top: 16px;
}

.featured-edition-info a {
  color: inherit;
  text-underline-offset: 3px;
}

.edition-description[hidden],
.edition-promotion[hidden],
.price-base[hidden],
.tredition-product-note[hidden],
.featured-edition-info[hidden],
.featured-edition-promotion[hidden] {
  display: none;
}

@media (max-width: 420px) {
  .product .purchase {
    padding: 24px 16px;
  }

  .edition-choices {
    gap: 8px;
  }

  .purchase .format--edition {
    padding-inline: 7px;
  }

  .edition-choice-image {
    height: 116px;
  }

  .purchase .format--edition .format-name {
    font-size: 12px;
  }
}

.shop-overview .hero + .divider {
  display: none;
}

.shop-overview .featured {
  margin-top: 20px;
}

.shop-overview .featured::after {
  display: none;
}

.shop-overview .featured-body-title {
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.12;
}

.shop-overview .featured-body-text {
  font-style: normal;
  line-height: 1.65;
  margin-bottom: 26px;
}

.shop-overview .featured-body-meta {
  display: grid;
  gap: 20px;
}

.shop-overview .featured-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
}

.shop-overview .featured-price-from,
.shop-overview .featured-price-sub {
  font-family: inherit;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ws-plum-soft);
  margin: 0;
}

.featured-actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-overview .featured-actions .btn-gold {
  flex: 0 1 164px;
  justify-content: center;
  box-sizing: border-box;
  padding: 14px 22px;
  min-width: 0;
  text-align: center;
}

.shop-overview .book-foot {
  border: 0;
  gap: 12px;
  align-items: center;
}

.book-price-format {
  display: block;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ws-plum-soft);
}

.book-offer-badge,
.price-offer-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--ws-plum-ink);
  color: #fff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.book-offer-badge {
  position: absolute;
  right: 10px;
  bottom: 16px;
  z-index: 3;
  max-width: calc(100% - 64px);
}

.purchase .price-base {
  font-size: 18px;
  color: var(--ws-plum-soft);
  text-decoration-thickness: 1.5px;
}

.purchase .edition-promotion {
  margin: 10px 0 12px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
}

html[data-shop-theme="tintenschwarz"] .book-offer-badge,
html[data-shop-theme="tintenschwarz"] .price-offer-badge {
  font-family: var(--ts-sans);
  background: var(--ts-velvet-deep);
  color: #fff;
}

html[data-shop-theme="tintenschwarz"] .book-price-format {
  font-family: var(--ts-sans);
}

html[data-shop-theme="tintenschwarz"] .shop-overview .featured-body-meta {
  justify-content: stretch;
  justify-items: start;
}

html[data-shop-theme="tintenschwarz"] .shop-overview .featured-price-sub {
  font-family: var(--ts-sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.shop-overview #featuredPriceWrap[hidden],
.shop-overview .featured-adult-badge[hidden],
.shop-overview .featured-sticker[hidden],
.shop-overview .featured-highlight[hidden],
.shop-overview .featured-line-tape[hidden],
.price-offer-badge[hidden] {
  display: none;
}

@media (max-width: 980px) {
  .shop-overview .featured-body-meta,
  html[data-shop-theme="tintenschwarz"] .shop-overview .featured-body-meta {
    justify-content: stretch;
    justify-items: center;
  }

  .shop-overview .featured-price,
  .featured-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .shop-overview .featured-actions .btn-gold {
    flex: 1 1 125px;
    padding: 14px 16px;
    font-size: 11px;
  }

  .shop-overview .featured-body-text {
    font-size: 15px;
  }
}

html[data-shop-theme="tintenschwarz"] .reading-overlay {
  z-index: 800;
}

html[data-shop-theme="tintenschwarz"] .reading-drawer {
  z-index: 801;
}

.reading-drawer[aria-hidden="true"] {
  visibility: hidden;
}

@media (max-width: 740px) and (prefers-reduced-motion: reduce) {
  html[data-shop-theme="tintenschwarz"] .topbar .ts-brand-stage {
    width: calc(36px * 0.82) !important;
    height: 36px !important;
  }

  html[data-shop-theme="tintenschwarz"] .topbar .ts-brand-word {
    opacity: 0 !important;
  }

  html[data-shop-theme="tintenschwarz"] .topbar .ts-brand-drop {
    display: block;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .topbar {
    flex-wrap: wrap;
    gap: 16px;
  }

  .topbar .nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 12px;
  }
}

@media (max-width: 980px) {
  html[data-shop-theme="tintenschwarz"] .product-photo-col .lp-cue {
    left: 76%;
    top: 66%;
    width: 24%;
  }

  html[data-shop-theme="tintenschwarz"] .product-photo-col .lp-cue-arrow {
    width: 100%;
  }

  html[data-shop-theme="tintenschwarz"] .product-photo-col .lp-cue-copy {
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }

  html[data-shop-theme="tintenschwarz"] .product-photo-col .lp-cue-text {
    white-space: normal;
  }
}

@media (max-width:640px){
  .purchase .actions,
  html[data-shop-theme="tintenschwarz"] .purchase .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .purchase .actions .btn-gold,
  html[data-shop-theme="tintenschwarz"] .purchase .actions .btn-gold{width:100%;min-width:0;padding:13px 8px;font-size:11px;letter-spacing:0.04em;margin:0;white-space:normal}
}

.bookbox-video{display:block;width:100%;max-height:480px;object-fit:contain;background:#101014;border-radius:12px;margin:18px 0}
.bookbox-contents{padding-left:1.2em;line-height:1.7}
.product-photo-col[data-product-box] .product-photo-img{aspect-ratio:auto;background:transparent}
.product-photo-col[data-product-box] .product-photo-img img{height:auto;object-fit:contain;display:block}
html[data-shop-theme="tintenschwarz"] .product-photo-col[data-product-box] .product-photo{width:100%;max-width:360px}
.purchase .actions[data-box-actions]{grid-template-columns:1fr}
.purchase .actions [hidden]{display:none!important}
