/* ==========================================================================
   mprpackproducts — Pack / Bundle Product Visual Treatment
   Self-contained module CSS — no theme modifications required.
   ========================================================================== */

/* ── Pack card: elevated, top-accented ────────────────────────────────────── */
.product-miniature--pack .product-miniature__inner {
  position: relative;
  border: 1px solid rgba(59, 175, 92, 0.2);
  border-top: 3px solid #3BAF5C;
  border-radius: var(--bs-border-radius, 0.375rem);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-miniature--pack:hover .product-miniature__inner {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ── "Bundle" pill badge — top-right of image ────────────────────────────── */
.mpr-pack-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background-color: #3BAF5C;
  border-radius: 100px;
  line-height: 1.4;
  pointer-events: none;
}

/* ── Savings indicator (inside card, after price) ─────────────────────────── */
.mpr-pack-indicator {
  margin-top: 0.25rem;
}

.mpr-pack-savings-text {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #2C7F43;
  background-color: #D8F0E0;
  border-radius: 4px;
  line-height: 1.5;
}

/* ── Pack description styling (product detail page) ──────────────────────── */
.pack-description h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pack-description h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.pack-description p {
  color: #555;
  line-height: 1.7;
}

/* Module list in pack description */
.pack-module-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.pack-module-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9375rem;
}

.pack-module-list li:last-child {
  border-bottom: none;
}

.pack-module-list li:hover {
  background-color: #fafafa;
}

.pack-module-list li strong {
  font-weight: 500;
}

/* Individual price tag in module list */
.pack-price {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #888;
  white-space: nowrap;
}

/* Savings summary box */
.pack-savings-summary {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.pack-savings-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}

.pack-savings-summary__row span {
  color: #666;
}

.pack-savings-summary__row strong {
  font-weight: 600;
}

.pack-savings-summary__row--save {
  border-top: 1px solid #dee2e6;
  margin-top: 0.375rem;
  padding-top: 0.625rem;
}

.pack-savings-summary__row--save strong {
  color: #3BAF5C;
  font-size: 1.0625rem;
}

/* Note at bottom of description */
.pack-note {
  font-size: 0.8125rem;
  color: #999;
  font-style: italic;
  margin-top: 1rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .mpr-pack-badge {
    font-size: 0.5625rem;
    padding: 0.15rem 0.5rem;
  }

  .mpr-pack-savings-text {
    font-size: 0.625rem;
    padding: 0.1rem 0.375rem;
  }
}

/* ==========================================================================
   Pack Detail Page — "What's Included" product grid
   ========================================================================== */
.mpr-pack-contents__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.mpr-pack-contents__card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.mpr-pack-contents__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.mpr-pack-contents__img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mpr-pack-contents__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.mpr-pack-contents__noimg {
  font-size: 0.75rem;
  color: #adb5bd;
}

.mpr-pack-contents__info {
  padding: 0.625rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid #f0f0f0;
}

.mpr-pack-contents__name {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--bs-body-color, #212529);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mpr-pack-contents__price {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
}

.mpr-pack-contents__free {
  color: #3BAF5C;
  font-weight: 600;
}

@media (max-width: 576px) {
  .mpr-pack-contents__grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
}
