/* ===========================================================================
   Bundle detail page — extends the shared PDP system (product-course.css).

   The bundle page reuses the .pdp grid, the dark hero band, the .pdp__block
   cards, the .cp-* buybox and the mobile bar from product-course.css. This file
   only adds the bundle-specific pieces:
     - .ws-bundle-header  → place + style the Bundle Header as the hero band
     - bundle hero badges + the "you save" stat accent
     - .bw  ("what's included") → the bundled-items card list inside a .pdp__block
   Linked AFTER product-course.css by Views/Website/ProductBundle.cshtml.
   =========================================================================== */

/* ----- Bundle Header as the fixed hero band (mirrors .ws-course-hero) ----- */
.pdp__grid > .ws-bundle-header,
.pdp__grid > .pdp__hero { grid-column: 1 / -1; grid-row: 1; }

.pdp .ws-bundle-header {
  position: relative; z-index: 0; color: #e6e8ee;
  /* !important so the band rhythm holds even on pages saved with the old inline section padding. */
  padding: 36px 0 48px !important;
}

/* ----- Bundle hero badges (informational, on the dark band) ----- */
.pdp .ws-bundle-header .pdp__badges .badge--bundle,
.pdp .ws-bundle-header .pdp__badges .badge--items {
  background: rgba(255, 255, 255, 0.08);
  color: #e6e8ee;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.pdp .ws-bundle-header .pdp__badges .badge i { font-size: 13px; margin-right: 4px; line-height: 1; }

/* "You save" stat value reads in the accent colour */
.pdp .pdp__stat-v--save { color: var(--c-accent, #f4bf3a); }

/* ===========================================================================
   "What's included" (.bw) — bundled-items list, rendered inside a .pdp__block
   =========================================================================== */
.bw__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 0 0 16px;
}
.bw__title {
  margin: 0; font-size: var(--fs-20, 20px); font-weight: 800;
  letter-spacing: -0.01em; color: var(--c-text, #1c1d1a);
}
.bw__count {
  font-size: 12px; font-weight: 600; color: var(--c-muted, #666);
  font-family: var(--font-mono, sans-serif);
}

.bw__list { display: flex; flex-direction: column; gap: 10px; }
.bw__item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border: 1px solid var(--c-line, #e5e5e5);
  border-radius: var(--r-3, 10px); background: var(--c-surface, #fff);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bw__item:hover {
  border-color: var(--c-primary, #b61c1b);
  box-shadow: var(--sh-2, 0 4px 16px rgba(20,22,26,.08));
  transform: translateY(-1px);
}
.bw__thumb {
  flex: none; width: 72px; height: 56px; border-radius: var(--r-2, 8px);
  overflow: hidden; background: var(--c-surface-alt, #fff9f1);
}
.bw__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bw__thumb-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--c-muted, #999); font-size: 22px;
}
.bw__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bw__name {
  font-size: var(--fs-15, 15px); font-weight: 700; color: var(--c-text, #1c1d1a);
  line-height: 1.3; overflow: hidden; text-overflow: ellipsis;
}
.bw__variant { font-size: 12px; color: var(--c-muted, #666); }
.bw__meta { flex: none; display: flex; align-items: center; gap: 10px; }
.bw__qty {
  font-size: 12px; font-weight: 700; color: var(--c-muted, #666);
  background: var(--c-surface-alt, #fff9f1); border: 1px solid var(--c-line, #e5e5e5);
  border-radius: 999px; padding: 2px 8px;
}
.bw__price { font-size: var(--fs-15, 15px); font-weight: 700; color: var(--c-text, #1c1d1a); }

/* totals summary */
.bw__totals {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--c-line, #e5e5e5);
  display: flex; flex-direction: column; gap: 8px;
}
.bw__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: var(--fs-14, 14px); color: var(--c-text, #1c1d1a);
}
.bw__row-v { font-weight: 700; }
.bw__row-v--strike { color: var(--c-muted, #666); text-decoration: line-through; font-weight: 600; }
.bw__row--save { color: var(--c-success, #00a550); }
.bw__row--save .bw__row-v { color: var(--c-success, #00a550); }
.bw__row--final {
  margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--c-line, #e5e5e5);
  font-size: var(--fs-16, 16px); font-weight: 800;
}
.bw__row--final .bw__row-v { font-size: var(--fs-20, 20px); color: var(--c-primary, #b61c1b); }

/* ----- responsive ----- */
@media (max-width: 980px) {
  .pdp__grid > .ws-bundle-header { grid-column: 1; grid-row: auto; order: 1; padding: 32px 0 36px !important; }
}
@media (max-width: 560px) {
  .bw__thumb { width: 56px; height: 44px; }
  .bw__item { gap: 10px; padding: 10px; }
}
