/*
 * Bebelplatz FASE 13.2 — Collections Experience
 */

:root {
  --bp132-ink: #171615;
  --bp132-ink-soft: #25221f;
  --bp132-paper: #f3eee7;
  --bp132-paper-2: #ebe3d9;
  --bp132-white: #fffaf5;
  --bp132-text: #26211d;
  --bp132-muted: #74695f;
  --bp132-line: rgba(39,31,25,.14);
  --bp132-orange: #d8753e;
  --bp132-orange-2: #e99a65;
  --bp132-max: 1540px;
}

body.bp132-collections-landing,
body.bp132-collection-archive {
  background: var(--bp132-paper);
}

body.bp132-collections-landing .site-content,
body.bp132-collections-landing #content,
body.bp132-collection-archive .site-content,
body.bp132-collection-archive #content {
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
}

.bp132-main {
  clear: both;
  width: 100%;
  background: var(--bp132-paper);
  color: var(--bp132-text);
  overflow: hidden;
}

.bp132-shell {
  width: min(calc(100% - 64px), var(--bp132-max));
  margin: 0 auto;
}

.bp132-eyebrow {
  margin: 0 0 10px;
  color: var(--bp132-orange-2);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bp132-landing-hero,
.bp132-term-hero {
  position: relative;
  background:
    radial-gradient(circle at 78% 24%, rgba(218,117,62,.17), transparent 28%),
    linear-gradient(135deg, #191715 0%, #24201d 58%, #161513 100%);
  color: var(--bp132-white);
  overflow: hidden;
}

.bp132-landing-hero::before,
.bp132-term-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
  pointer-events: none;
}

.bp132-landing-hero-grid,
.bp132-term-hero-grid {
  position: relative;
  z-index: 1;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding-top: 78px;
  padding-bottom: 82px;
}

.bp132-landing-copy,
.bp132-term-copy {
  max-width: 760px;
}

.bp132-landing-copy h1,
.bp132-term-copy h1 {
  margin: 0 0 22px;
  color: var(--bp132-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7vw, 104px);
  line-height: .92;
  font-weight: 500;
  letter-spacing: -.045em;
}

.bp132-lede,
.bp132-term-description {
  margin: 0;
  color: rgba(255,250,245,.82);
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.55;
  font-weight: 400;
}

.bp132-term-description {
  max-width: 780px;
  font-size: clamp(16px, 1.25vw, 20px);
}

.bp132-hero-stats,
.bp132-term-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

.bp132-hero-stats span,
.bp132-term-meta span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: rgba(255,250,245,.76);
  font-size: 13px;
}

.bp132-hero-stats strong,
.bp132-term-meta strong {
  color: #fff;
  font-size: 15px;
}

.bp132-hero-links,
.bp132-term-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.bp132-hero-links a,
.bp132-primary-button,
.bp132-secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.bp132-hero-links a,
.bp132-primary-button {
  background: #fff8f0;
  color: #1a1715 !important;
}

.bp132-hero-links a + a,
.bp132-secondary-button {
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff !important;
}

.bp132-landing-mosaic {
  position: relative;
  min-height: 430px;
  perspective: 1200px;
}

.bp132-mosaic-cover {
  position: absolute;
  width: clamp(122px, 10.6vw, 188px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 28px 48px rgba(0,0,0,.36);
  transform-origin: center bottom;
}

.bp132-mosaic-cover--1 { left: 6%; top: 12%; transform: rotate(-10deg); z-index: 2; }
.bp132-mosaic-cover--2 { left: 28%; top: 0; transform: rotate(-3deg); z-index: 5; }
.bp132-mosaic-cover--3 { left: 51%; top: 10%; transform: rotate(5deg); z-index: 4; }
.bp132-mosaic-cover--4 { left: 72%; top: 4%; transform: rotate(11deg); z-index: 2; }
.bp132-mosaic-cover--5 { left: 18%; top: 42%; transform: rotate(4deg); z-index: 6; }
.bp132-mosaic-cover--6 { left: 57%; top: 45%; transform: rotate(-5deg); z-index: 7; }

.bp132-collections-section {
  padding: 92px 0 112px;
  background: var(--bp132-paper);
}

.bp132-section-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

.bp132-section-heading h2,
.bp132-books-heading h2,
.bp132-final-route h2 {
  margin: 0 0 12px;
  color: var(--bp132-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -.035em;
}

.bp132-section-heading > p:last-child,
.bp132-final-route p {
  margin: 0;
  color: var(--bp132-muted);
  font-size: 16px;
  line-height: 1.65;
}

.bp132-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.bp132-collection-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--bp132-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(47,38,31,.045);
  transition: transform .22s ease, box-shadow .22s ease;
}

.bp132-collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(47,38,31,.1);
}

.bp132-collection-card-link {
  display: block;
  height: 100%;
  color: inherit !important;
  text-decoration: none !important;
}

.bp132-cover-stack--landing {
  position: relative;
  height: 258px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(216,117,62,.13), transparent 28%),
    #1b1917;
}

.bp132-cover-stack--landing::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(transparent, rgba(22,20,18,.7));
  pointer-events: none;
}

.bp132-cover-stack--landing .bp132-stack-cover {
  position: absolute;
  bottom: -18px;
  width: 116px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 14px 30px rgba(0,0,0,.34);
}

.bp132-cover-stack--landing .bp132-stack-cover--1 { left: 7%; transform: rotate(-7deg); z-index: 1; }
.bp132-cover-stack--landing .bp132-stack-cover--2 { left: 28%; bottom: 2px; transform: rotate(-2deg); z-index: 3; }
.bp132-cover-stack--landing .bp132-stack-cover--3 { right: 26%; bottom: -1px; transform: rotate(3deg); z-index: 2; }
.bp132-cover-stack--landing .bp132-stack-cover--4 { right: 6%; transform: rotate(8deg); z-index: 1; }

.bp132-collection-card-copy {
  padding: 24px 24px 26px;
}

.bp132-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: #9a897b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bp132-collection-card h3 {
  margin: 0 0 11px;
  color: var(--bp132-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
  font-weight: 500;
}

.bp132-collection-card p {
  margin: 0;
  min-height: 6.4em;
  color: #695f56;
  font-size: 14px;
  line-height: 1.6;
}

.bp132-card-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: #9d4d21;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.bp132-selections {
  padding: 88px 0 96px;
  background: #1a1816;
  color: var(--bp132-white);
}

.bp132-section-heading--light h2 {
  color: var(--bp132-white);
}

.bp132-section-heading--light > p:last-child {
  color: rgba(255,250,245,.65);
}

.bp132-selection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.bp132-selection-card {
  min-height: 156px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 6px 12px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: rgba(255,255,255,.045);
  color: #fff !important;
  text-decoration: none !important;
  transition: background .18s ease, transform .18s ease;
}

.bp132-selection-card:hover {
  background: rgba(255,255,255,.085);
  transform: translateY(-2px);
}

.bp132-selection-card span {
  align-self: start;
  font-size: 15px;
  font-weight: 700;
}

.bp132-selection-card strong {
  grid-column: 1;
  align-self: end;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.bp132-selection-card small {
  grid-column: 2;
  align-self: end;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.bp132-final-route {
  padding: 68px 0;
  background: #fffaf5;
}

.bp132-final-route-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.bp132-final-route h2 {
  margin-bottom: 7px;
  font-size: clamp(30px, 3vw, 45px);
}

.bp132-final-route .bp132-primary-button {
  flex: 0 0 auto;
  min-width: 190px;
  background: var(--bp132-ink);
  color: #fff !important;
}

/* Individual collection */
.bp132-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255,255,255,.56);
  font-size: 12px;
}

.bp132-breadcrumb a {
  color: rgba(255,255,255,.78) !important;
  text-decoration: none !important;
}

.bp132-term-hero-grid {
  min-height: 590px;
}

.bp132-term-copy h1 {
  font-size: clamp(60px, 7vw, 110px);
}

.bp132-term-covers {
  min-width: 0;
}

.bp132-cover-stack--hero {
  position: relative;
  min-height: 430px;
}

.bp132-cover-stack--hero .bp132-stack-cover {
  position: absolute;
  width: clamp(150px, 14vw, 220px);
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 28px 50px rgba(0,0,0,.38);
}

.bp132-cover-stack--hero .bp132-stack-cover--1 { left: 3%; top: 58px; transform: rotate(-9deg); z-index: 1; }
.bp132-cover-stack--hero .bp132-stack-cover--2 { left: 25%; top: 10px; transform: rotate(-2deg); z-index: 4; }
.bp132-cover-stack--hero .bp132-stack-cover--3 { left: 50%; top: 42px; transform: rotate(5deg); z-index: 3; }
.bp132-cover-stack--hero .bp132-stack-cover--4 { left: 71%; top: 80px; transform: rotate(10deg); z-index: 1; }

.bp132-books-section {
  padding: 76px 0 96px;
  background: var(--bp132-paper);
}

.bp132-books-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--bp132-line);
  margin-bottom: 30px;
}

.bp132-books-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 3vw, 48px);
}

.bp132-loop-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.bp132-loop-tools .woocommerce-result-count {
  float: none !important;
  margin: 0 !important;
  color: var(--bp132-muted);
  font-size: 13px;
}

.bp132-loop-tools .woocommerce-ordering {
  float: none !important;
  margin: 0 !important;
}

.bp132-loop-tools .woocommerce-ordering .position-sort {
  display: block !important;
}

.bp132-loop-tools .woocommerce-ordering .pull-left {
  display: none !important;
}

.bp132-loop-tools .woocommerce-ordering .dropdown-border {
  display: block;
  padding: 0 !important;
  border: 0 !important;
}

.bp132-loop-tools select.orderby {
  min-height: 44px;
  min-width: 210px;
  padding: 0 38px 0 14px !important;
  border: 1px solid #cfc4ba !important;
  border-radius: 4px;
  background: #fff !important;
  color: #2a2521 !important;
  font-size: 13px;
}

.bp132-book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 30px 22px;
}

.bp132-book-card {
  min-width: 0;
}

.bp132-book-cover {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 3px;
  background: #ded6ce;
  box-shadow: 0 8px 22px rgba(41,34,29,.12);
}

.bp132-book-cover-link {
  display: block;
  width: 100%;
  height: 100%;
}

.bp132-book-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .26s ease;
}

.bp132-book-card:hover .bp132-book-image {
  transform: scale(1.025);
}

.bp132-book-card .bp11-favorite-button--loop {
  position: absolute !important;
  top: 9px !important;
  right: 9px !important;
  z-index: 5 !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border-color: rgba(255,255,255,.28) !important;
  background: rgba(22,20,19,.68) !important;
  color: #fff !important;
  backdrop-filter: blur(7px);
}

.bp132-book-card .bp11-favorite-button--loop:hover,
.bp132-book-card .bp11-favorite-button--loop.is-active {
  background: rgba(255,247,240,.96) !important;
  color: #b8561f !important;
}

.bp132-book-open {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(20,18,17,.76);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.bp132-book-card:hover .bp132-book-open {
  opacity: 1;
  transform: translateY(0);
}

.bp132-book-copy {
  padding: 12px 2px 0;
}

.bp132-book-copy h3 {
  margin: 0 0 5px;
  min-height: 2.55em;
  color: var(--bp132-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 700;
}

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

.bp132-book-author {
  min-height: 1.45em;
  margin-bottom: 5px;
  color: #766a60;
  font-size: 12px;
  line-height: 1.35;
}

.bp132-book-price {
  color: #a04f25;
  font-size: 14px;
  font-weight: 800;
}

.bp132-book-price del {
  color: #91877f;
  font-weight: 500;
}

.bp132-pagination-wrap {
  margin-top: 54px;
}

.bp132-pagination-wrap .woocommerce-pagination {
  margin: 0 !important;
}

.bp132-pagination-wrap ul.page-numbers {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  border: 0 !important;
}

.bp132-pagination-wrap ul.page-numbers li {
  border: 0 !important;
}

.bp132-pagination-wrap .page-numbers a,
.bp132-pagination-wrap .page-numbers span {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 10px !important;
  border: 1px solid #cdc1b7 !important;
  border-radius: 4px;
  background: #fff !important;
  color: #29241f !important;
}

.bp132-pagination-wrap .page-numbers .current {
  border-color: var(--bp132-ink) !important;
  background: var(--bp132-ink) !important;
  color: #fff !important;
}

.bp132-context-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--bp132-line);
}

.bp132-context-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #cfc4ba;
  border-radius: 999px;
  color: #514942 !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
}

.bp132-main a:focus-visible,
.bp132-main button:focus-visible,
.bp132-main select:focus-visible {
  outline: 3px solid #e5884c !important;
  outline-offset: 3px !important;
}

@media (max-width: 1180px) {
  .bp132-landing-hero-grid,
  .bp132-term-hero-grid {
    grid-template-columns: minmax(0,1fr) minmax(360px,.8fr);
    gap: 42px;
  }

  .bp132-collections-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

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

  .bp132-selection-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 820px) {
  .bp132-shell {
    width: min(calc(100% - 36px), var(--bp132-max));
  }

  .bp132-landing-hero-grid,
  .bp132-term-hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .bp132-landing-mosaic,
  .bp132-cover-stack--hero {
    min-height: 330px;
  }

  .bp132-mosaic-cover {
    width: clamp(106px, 22vw, 150px);
  }

  .bp132-cover-stack--hero .bp132-stack-cover {
    width: clamp(126px, 25vw, 174px);
  }

  .bp132-books-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .bp132-loop-tools {
    width: 100%;
    justify-content: space-between;
  }

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

  .bp132-final-route-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .bp132-shell {
    width: min(calc(100% - 28px), var(--bp132-max));
  }

  .bp132-landing-copy h1,
  .bp132-term-copy h1 {
    font-size: clamp(48px, 17vw, 72px);
  }

  .bp132-lede,
  .bp132-term-description {
    font-size: 16px;
  }

  .bp132-landing-mosaic {
    min-height: 285px;
  }

  .bp132-mosaic-cover--1 { left: 2%; }
  .bp132-mosaic-cover--2 { left: 20%; }
  .bp132-mosaic-cover--3 { left: 41%; }
  .bp132-mosaic-cover--4 { left: 63%; }
  .bp132-mosaic-cover--5 { left: 12%; }
  .bp132-mosaic-cover--6 { left: 48%; }

  .bp132-collections-section {
    padding: 64px 0 74px;
  }

  .bp132-collections-grid,
  .bp132-selection-grid {
    grid-template-columns: 1fr;
  }

  .bp132-cover-stack--landing {
    height: 230px;
  }

  .bp132-collection-card p {
    min-height: 0;
  }

  .bp132-selections {
    padding: 64px 0 70px;
  }

  .bp132-term-covers {
    margin-top: -8px;
  }

  .bp132-cover-stack--hero {
    min-height: 286px;
  }

  .bp132-cover-stack--hero .bp132-stack-cover {
    width: 31vw;
    max-width: 138px;
  }

  .bp132-cover-stack--hero .bp132-stack-cover--1 { left: 2%; top: 48px; }
  .bp132-cover-stack--hero .bp132-stack-cover--2 { left: 24%; top: 4px; }
  .bp132-cover-stack--hero .bp132-stack-cover--3 { left: 48%; top: 32px; }
  .bp132-cover-stack--hero .bp132-stack-cover--4 { left: 68%; top: 66px; }

  .bp132-books-section {
    padding: 58px 0 72px;
  }

  .bp132-loop-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .bp132-loop-tools select.orderby {
    width: 100%;
    min-width: 0;
  }

  .bp132-loop-tools .woocommerce-ordering {
    width: 100%;
  }

  .bp132-book-grid {
    gap: 24px 12px;
  }

  .bp132-book-copy h3 {
    font-size: 13px;
  }

  .bp132-book-author {
    font-size: 11px;
  }

  .bp132-book-open {
    display: none;
  }

  .bp132-final-route {
    padding: 52px 0;
  }

  .bp132-final-route .bp132-primary-button,
  .bp132-term-actions .bp132-primary-button,
  .bp132-term-actions .bp132-secondary-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp132-collection-card,
  .bp132-selection-card,
  .bp132-book-image,
  .bp132-book-open {
    transition: none !important;
  }
}
