/**
 * BookRivo Curated Book Packages Archive Styles
 *
 * Package cards, collage covers, and bundle pricing display.
 * @package BookRivo
 */

/* ==========================================================================
   BookRivo Packages Archive Component Styles (package-archive.html prototype)
   ========================================================================== */

.bookrivo-pkg-hero-section {
  background-color: var(--bookrivo-cream-soft);
  border-bottom: 1px solid var(--bookrivo-border);
  padding: 40px 0 50px;
}

.bookrivo-breadcrumbs {
  font-size: 13px;
  color: var(--bookrivo-muted);
  margin-bottom: 24px;
}

.bookrivo-breadcrumbs a {
  color: var(--bookrivo-forest);
  text-decoration: none;
}

.bookrivo-breadcrumbs .sep {
  margin: 0 6px;
}

.pkg-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.bookrivo-eyebrow {
  display: inline-block;
  color: var(--bookrivo-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pkg-hero-title {
  font-family: var(--bookrivo-font-editorial);
  font-size: 2.35rem;
  line-height: 1.2;
  color: var(--bookrivo-forest);
  margin: 0 0 16px;
}

.pkg-hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4a4843;
  margin-bottom: 24px;
  max-width: 580px;
}

.pkg-hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 30px;
}

.pkg-hero-stats .stat-box {
  background: var(--bookrivo-white);
  border: 1px solid var(--bookrivo-border);
  padding: 12px 18px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.pkg-hero-stats .stat-box strong {
  font-size: 1.15rem;
  color: var(--bookrivo-forest);
}

.pkg-hero-stats .stat-box span {
  font-size: 12px;
  color: var(--bookrivo-muted);
}

.pkg-cover-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 280px;
}

.pkg-cover-stack .stack-cover {
  position: absolute;
  width: 170px;
  height: 235px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: -8px 12px 24px rgba(0,0,0,0.22);
  transition: transform 0.25s ease;
}

.pkg-cover-stack .stack-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f5f2ea;
  display: block;
}

.pkg-cover-stack .stack-cover-1 { transform: rotate(-8deg) translateX(-45px); z-index: 1; }
.pkg-cover-stack .stack-cover-2 { transform: rotate(0deg); z-index: 2; }
.pkg-cover-stack .stack-cover-3 { transform: rotate(8deg) translateX(45px); z-index: 1; }

.bookrivo-pkg-collection-section {
  padding: 60px 0 80px;
}

.collection-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.collection-title {
  font-family: var(--bookrivo-font-editorial);
  font-size: 2rem;
  color: var(--bookrivo-forest);
  margin: 0 0 6px;
}

.collection-subtitle {
  color: var(--bookrivo-muted);
  font-size: 0.95rem;
  margin: 0;
}

.collection-count-seal {
  background: var(--bookrivo-white);
  border: 1px solid var(--bookrivo-border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--bookrivo-forest);
}

.books-grid.bookrivo-packages-grid,
.bookrivo-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.bookrivo-packcard {
  background: var(--bookrivo-white);
  border: 1px solid var(--bookrivo-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bookrivo-packcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.packcard-cover-stage {
  background: #E8EFEA;
  padding: 30px 20px 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.packcard-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bookrivo-forest);
  color: var(--bookrivo-white);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 4;
}

.packcard-count-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bookrivo-forest, #173d2d);
  border: 1px solid rgba(23, 61, 45, 0.14);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.packcard-cover-stage {
  text-decoration: none;
}

.packcard-price .pkg-final-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bookrivo-forest, #173d2d);
}

.packcard-price .pkg-reg-val {
  font-size: 0.9rem;
  font-weight: 500;
  color: #88968d;
  margin-left: 6px;
}

.packcard-cta-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

/* Dedicated Package Detail Page Visual Stage */
.bookrivo-single-product-page .gallery.package-detail-gallery {
  min-height: 410px;
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pkg-detail-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.pkg-detail-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 250px;
  width: 100%;
}

.pkg-stage-cover {
  width: 138px;
  height: 204px;
  border-radius: 5px;
  overflow: hidden;
  background: #f5f2ea;
  box-shadow: -6px 10px 22px rgba(18, 55, 45, 0.22);
  border: 2px solid #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, z-index 0.25s;
  display: block;
}

.pkg-stage-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.pkg-stage-cover-1 {
  transform: rotate(-8deg) translateX(18px);
  z-index: 1;
}

.pkg-stage-cover-2 {
  transform: translateY(-6px) scale(1.06);
  z-index: 3;
}

.pkg-stage-cover-3 {
  transform: rotate(8deg) translateX(-18px);
  z-index: 2;
}

.pkg-stage-cover-4 {
  transform: rotate(13deg) translateX(-28px);
  z-index: 1;
}

.pkg-stage-cover:hover {
  transform: translateY(-10px) scale(1.08) !important;
  z-index: 10 !important;
  box-shadow: 0 16px 32px rgba(18, 55, 45, 0.28);
}

.pkg-stage-caption {
  text-align: center;
}

.pkg-stage-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  background: #ffffff;
  color: #173d2d;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid #d4dfd4;
  box-shadow: 0 2px 8px rgba(18, 55, 45, 0.06);
}

.bookrivo-single-product-page .info .kicker-chip.pkg-kicker-chip {
  background: #fdf6e9;
  color: #8c5d19;
  border-color: #ebd6b0;
}

.bookrivo-single-product-page .info .package-purchase-row {
  display: flex;
  width: 100%;
  margin-top: 12px;
}

.bookrivo-single-product-page .info .package-submit-btn {
  width: 100%;
  justify-content: center;
  height: 48px;
  font-size: 15px;
}

.packcard-cover-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.packcard-cover-stack .mini-cover {
  width: 90px;
  height: 125px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: -4px 6px 12px rgba(0,0,0,0.18);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.packcard-cover-stack .mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f5f2ea;
  display: block;
}

.packcard-cover-stack .mini-cover-1 { transform: rotate(-5deg) translateX(10px); z-index: 1; }
.packcard-cover-stack .mini-cover-2 { transform: scale(1.05); z-index: 3; }
.packcard-cover-stack .mini-cover-3 { transform: rotate(5deg) translateX(-10px); z-index: 2; }
.packcard-cover-stack .mini-cover-4 { transform: rotate(10deg) translateX(-20px); z-index: 1; }

.bookrivo-packcard:hover .packcard-cover-stack .mini-cover-2 {
  transform: translateY(-4px) scale(1.08);
}

.packcard-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.packcard-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--bookrivo-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.packcard-title {
  font-family: var(--bookrivo-font-editorial, 'Noto Sans Bengali', var(--bookrivo-font-heading, serif));
  font-size: 1.15rem;
  margin: 0 0 10px;
  line-height: 1.35;
}

.packcard-title a {
  color: var(--bookrivo-ink);
  text-decoration: none;
}

.packcard-title a:hover {
  color: var(--bookrivo-forest);
}

.packcard-desc {
  font-size: 0.875rem;
  color: var(--bookrivo-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.packcard-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--bookrivo-border-light);
}

.packcard-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bookrivo-forest);
}

.packcard-badge-saving {
  background: var(--bookrivo-gold-soft);
  color: var(--bookrivo-forest);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .books-grid.bookrivo-packages-grid,
  .bookrivo-packages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 767px) {
  .bookrivo-pkg-hero-section {
    padding: 22px 0 26px;
  }
  .bookrivo-pkg-hero-section .bookrivo-breadcrumbs {
    margin-bottom: 14px;
  }
  .pkg-hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pkg-hero-copy {
    text-align: center;
  }
  .pkg-hero-title {
    font-family: var(--bookrivo-font-editorial, 'Noto Sans Bengali', sans-serif);
    font-size: clamp(22px, 5.8vw, 26px);
    line-height: 1.35;
    margin-bottom: 10px;
  }
  .pkg-hero-desc {
    font-size: 13.5px;
    line-height: 1.65;
    max-width: 100%;
    margin: 0 auto 18px;
  }
  .pkg-hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
  }
  .pkg-hero-visual,
  .pkg-cover-stack {
    display: none;
  }
  .books-grid.bookrivo-packages-grid,
  .bookrivo-packages-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .collection-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
