/*
 * Bebelplatz FASE 15.2 — Book Detail Experience
 */
body.bp152-book-detail {
  background: #f4efe8;
  color: #1d1916;
}

body.bp152-book-detail .site-content,
body.bp152-book-detail #content {
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
}

.bp152-main {
  width: 100%;
  clear: both;
}

.bp152-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.bp152-hero {
  padding: 54px 0 82px;
  background:
    radial-gradient(circle at 14% 12%, rgba(153,91,49,.09), transparent 31%),
    #f4efe8;
}

.bp152-hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: clamp(46px, 7vw, 104px);
  align-items: start;
}

.bp152-cover-column {
  position: sticky;
  top: 28px;
}

.bp152-cover-frame {
  position: relative;
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(47,37,29,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 28px 70px rgba(54,42,32,.12);
}

.bp152-cover {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(28,21,17,.18);
}

.bp152-favorite {
  position: absolute;
  top: 34px;
  right: 34px;
  z-index: 3;
}

.bp152-favorite .bp11-favorite-button {
  display: inline-flex !important;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px !important;
  border: 1px solid rgba(39,31,25,.16) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.94) !important;
  color: #8f4f2f !important;
  box-shadow: 0 8px 24px rgba(39,31,25,.12);
}

.bp152-favorite .bp11-favorite-button svg {
  width: 21px;
  height: 21px;
}

.bp152-favorite .bp11-favorite-label {
  display: none;
}

.bp152-book-copy {
  padding-top: 10px;
}

.bp152-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #75695f;
  font-size: 12px;
  line-height: 1.4;
}

.bp152-breadcrumb a {
  color: inherit !important;
  text-decoration: none !important;
}

.bp152-eyebrow {
  margin: 0 0 12px;
  color: #9a5733;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bp152-book-copy h1 {
  margin: 0;
  max-width: 780px;
  color: #171513;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 78px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.045em;
}

.bp152-byline {
  margin: 22px 0 0;
  color: #64594f;
  font-size: 18px;
  line-height: 1.5;
}

.bp152-byline a {
  color: #25201c !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.bp152-separator {
  margin-left: -5px;
}

.bp152-synopsis {
  max-width: 760px;
  margin-top: 32px;
  color: #554b43;
  font-size: 17px;
  line-height: 1.78;
}

.bp152-synopsis p {
  margin: 0;
}

.bp152-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  margin: 34px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(43,34,27,.12);
  border-radius: 7px;
  background: rgba(43,34,27,.1);
}

.bp152-facts > div {
  min-width: 0;
  padding: 15px 17px 16px;
  background: rgba(255,255,255,.72);
}

.bp152-facts dt {
  margin: 0 0 4px;
  color: #8b7d70;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bp152-facts dd {
  margin: 0;
  color: #221e1b;
  font-size: 14px;
  font-weight: 700;
}

.bp152-buy-panel {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid rgba(43,34,27,.13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(53,40,31,.07);
}

.bp152-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.bp152-price {
  color: #191613;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.bp152-price .woocommerce-Price-currencySymbol {
  font-size: .7em;
}

.bp152-stock {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bp152-stock.is-in-stock {
  background: #edf5ed;
  color: #406a42;
}

.bp152-stock.is-out-of-stock {
  background: #f7e9e7;
  color: #904b42;
}

.bp152-cart-form form.cart {
  display: flex !important;
  align-items: stretch;
  gap: 10px;
  margin: 0 !important;
}

.bp152-cart-form .quantity {
  float: none !important;
  margin: 0 !important;
}

.bp152-cart-form .qty {
  width: 76px !important;
  min-height: 52px !important;
  border: 1px solid rgba(43,34,27,.2) !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #1f1b18 !important;
  font-size: 16px !important;
}

.bp152-cart-form .single_add_to_cart_button {
  min-height: 52px !important;
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: #1c1917 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bp152-cart-form .single_add_to_cart_button:hover,
.bp152-cart-form .single_add_to_cart_button:focus {
  background: #9a5733 !important;
}

.bp152-buy-note {
  margin: 14px 0 0;
  color: #87796d;
  font-size: 11px;
  line-height: 1.5;
}

.bp152-author-section,
.bp152-context-section,
.bp152-shelf-section {
  padding: 78px 0 88px;
}

.bp152-author-section {
  background: #1c1917;
  color: #fffaf6;
}

.bp152-context-section {
  background: #fffaf5;
}

.bp152-shelf-section {
  background: #f4efe8;
}

.bp152-shelf-section + .bp152-shelf-section {
  border-top: 1px solid rgba(43,34,27,.08);
}

.bp152-section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.bp152-section-heading h2 {
  margin: 0;
  color: #1c1917;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -.035em;
}

.bp152-section-heading > p:last-child:not(.bp152-eyebrow) {
  margin: 14px 0 0;
  color: #70655c;
  font-size: 15px;
  line-height: 1.65;
}

.bp152-author-section .bp152-section-heading h2 {
  color: #fffaf6;
}

.bp152-author-section .bp152-eyebrow {
  color: #d89569;
}

.bp152-author-grid {
  display: grid;
  gap: 22px;
}

.bp152-author-card {
  display: grid;
  grid-template-columns: 140px minmax(0,1fr);
  gap: 28px;
  max-width: 900px;
  align-items: center;
}

.bp152-author-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #332c27;
}

.bp152-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp152-author-copy h3 {
  margin: 0 0 10px;
  color: #fffaf6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
}

.bp152-author-copy h3 a {
  color: inherit !important;
  text-decoration: none !important;
}

.bp152-author-copy p {
  margin: 0 0 14px;
  max-width: 690px;
  color: rgba(255,250,246,.7);
  font-size: 14px;
  line-height: 1.7;
}

.bp152-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #efb28a !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.bp152-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}

.bp152-context-block {
  padding: 28px;
  border: 1px solid rgba(43,34,27,.11);
  border-radius: 8px;
  background: #fff;
}

.bp152-context-block h3 {
  margin: 0 0 18px;
  color: #2a241f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bp152-context-links {
  display: grid;
  gap: 10px;
}

.bp152-context-links a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(43,34,27,.1);
  border-radius: 5px;
  background: #faf7f3;
  color: #211d1a !important;
  text-decoration: none !important;
}

.bp152-context-links a:hover {
  border-color: rgba(154,87,51,.5);
  background: #fff;
}

.bp152-context-links span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.bp152-context-links small {
  color: #8a7c70;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.bp152-book-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

.bp152-explore-nav {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #1c1917;
}

.bp152-explore-nav .bp152-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.bp152-explore-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #fffaf6 !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.bp152-main a:focus-visible,
.bp152-main button:focus-visible,
.bp152-main input:focus-visible {
  outline: 3px solid #d9854e !important;
  outline-offset: 3px !important;
}

@media (max-width: 980px) {
  .bp152-hero-grid {
    grid-template-columns: minmax(250px, 340px) minmax(0,1fr);
    gap: 42px;
  }

  .bp152-book-copy h1 {
    font-size: clamp(42px, 6.4vw, 64px);
  }

  .bp152-book-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .bp152-shell {
    width: min(100% - 32px, 680px);
  }

  .bp152-hero {
    padding: 34px 0 62px;
  }

  .bp152-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .bp152-cover-column {
    position: static;
  }

  .bp152-cover-frame {
    width: min(100%, 330px);
  }

  .bp152-book-copy {
    padding-top: 0;
  }

  .bp152-breadcrumb {
    margin-bottom: 20px;
  }

  .bp152-book-copy h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .bp152-facts {
    grid-template-columns: 1fr 1fr;
  }

  .bp152-facts > div:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }

  .bp152-context-grid {
    grid-template-columns: 1fr;
  }

  .bp152-author-section,
  .bp152-context-section,
  .bp152-shelf-section {
    padding: 58px 0 66px;
  }

  .bp152-book-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px 12px;
  }
}

@media (max-width: 520px) {
  .bp152-shell {
    width: min(100% - 24px, 500px);
  }

  .bp152-cover-frame {
    width: min(100%, 300px);
    padding: 14px;
  }

  .bp152-favorite {
    top: 24px;
    right: 24px;
  }

  .bp152-book-copy h1 {
    font-size: clamp(39px, 13vw, 54px);
  }

  .bp152-synopsis {
    font-size: 16px;
  }

  .bp152-buy-panel {
    padding: 18px;
  }

  .bp152-price-row {
    align-items: flex-start;
  }

  .bp152-cart-form form.cart {
    display: grid !important;
    grid-template-columns: 76px minmax(0,1fr);
  }

  .bp152-author-card {
    grid-template-columns: 88px minmax(0,1fr);
    gap: 18px;
  }

  .bp152-author-copy h3 {
    font-size: 26px;
  }

  .bp152-context-block {
    padding: 20px;
  }

  .bp152-context-links a {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp152-main *,
  .bp152-main *::before,
  .bp152-main *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
