/* /assets/css/bundle-page.css */
/* Individual collection / bundle pages */

.bundle-hero {
  padding: var(--space-6) 0 var(--space-5);
  border-bottom: 1px solid var(--rule);
}

.bundle-back {
  margin: 0 0 var(--space-4);
  font-family: var(--serif);
  letter-spacing: 0.3px;
}

.bundle-back a {
  color: var(--oak);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bundle-hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  gap: var(--space-5);
  align-items: start;
}

.bundle-hero-cover {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.25);
  box-shadow: var(--shadow);
}

.bundle-hero-cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.bundle-kicker {
  margin: 0 0 var(--space-2);
  font-family: var(--serif);
  letter-spacing: 0.6px;
  opacity: 0.85;
}

.bundle-title {
  margin: 0 0 var(--space-3);
  font-size: var(--h1);
  color: var(--ink);
}

.bundle-subtitle {
  margin: 0 0 var(--space-4);
  max-width: 75ch;
}

.bundle-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Purchase panel */
.buy-card {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-5);
}

.buy-price {
  margin: 0 0 var(--space-3);
  display: grid;
  gap: 6px;
}

.buy-price-label {
  font-family: var(--serif);
  letter-spacing: 0.35px;
  opacity: 0.9;
}

.buy-price-amount {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.4px;
  color: var(--ink);
}

.buy-button {
  margin: 0 0 var(--space-3);
}

/* If Payhip injects its own button styling, this won’t break it.
   This just ensures it still looks right if Payhip styling is minimal. */
.payhip-buy-button {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(75, 54, 33, 0.28);
  background: rgba(184, 148, 63, 0.16);
  font-family: var(--serif);
  letter-spacing: 0.35px;
  color: var(--oak);
  text-decoration: none;
}

.payhip-buy-button:hover {
  border-color: rgba(75, 54, 33, 0.40);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.buy-note {
  margin: 0 0 var(--space-3);
  opacity: 0.92;
}

.vat-info {
  margin: 0;
  opacity: 0.9;
}

/* Sections */
.bundle-section {
  padding: var(--space-6) 0 var(--space-7);
}

.bundle-section--ruled {
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0.25px;
}

.section-note {
  margin: 0;
  opacity: 0.9;
  max-width: 80ch;
}

.bundle-info {
  background: rgba(255,255,255,0.22);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-5);
}

.info-grid {
  margin: 0;
  display: grid;
  gap: var(--space-4);
}

.info-row dt {
  font-family: var(--serif);
  letter-spacing: 0.35px;
  color: var(--oak);
  margin-bottom: 6px;
}

.info-row dd {
  margin: 0;
  max-width: 95ch;
  opacity: 0.92;
}

.bundle-prose {
  max-width: 95ch;
}

/* Covers gallery (small tiles, keeps the lovely card styling) */
.bundle-covers {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(140px, 160px));
  justify-content: start;
}

.cover-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;

  background: rgba(255,255,255,0.25);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cover-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 180ms ease;
}

.cover-card:hover {
  border-color: rgba(75, 54, 33, 0.38);
}

.cover-card:hover img {
  transform: scale(1.02);
}

.cover-caption {
  padding: 0 var(--space-3) var(--space-3);
  font-family: var(--serif);
  letter-spacing: 0.25px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink);
}

/* List */
.bundle-list {
  margin: 0;
  padding-left: 1.15em;
  display: grid;
  gap: 10px;
  max-width: 70ch;
}

.bundle-list a {
  color: var(--oak);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer buy */
.bundle-final-buy {
  margin-top: var(--space-6);
}

.buy-card--inline {
  max-width: 520px;
}

.bundle-toplink {
  margin: var(--space-4) 0 0;
  font-family: var(--serif);
  letter-spacing: 0.3px;
}

.bundle-toplink a {
  color: var(--oak);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive */
@media (max-width: 1100px) {
  .bundle-hero-grid {
    grid-template-columns: 260px 1fr;
  }

  .bundle-buy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .bundle-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  /* Hero cover becomes a banner crop on phones */
  .bundle-hero-cover {
    max-width: none;
  }

  .bundle-hero-cover img {
    aspect-ratio: 16 / 10;
    object-position: center 55%;
  }

  /* Covers gallery: slightly smaller tiles on phones */
  .bundle-covers {
    grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
    gap: var(--space-3);
  }

  /* Covers stack elsewhere already; keep list readable */
  .bundle-list {
    max-width: 100%;
  }
 } 
 /* Bundle page: centre & enlarge covers when they stack */
@media (max-width: 520px) {
  .bundle-covers {
    grid-template-columns: 1fr;   /* force 1 per line */
    justify-content: center;      /* centres the grid tracks */
    justify-items: center;        /* centres each card */
  }
  .section-title {margin:0 auto;}
  .section-note {margin:0 auto;}
  .cover-card {
    width: min(220px, 90vw);      /* slightly larger, but never too wide */
  }
}
 

