/* ====================================================================
   Bundles: "Often bought together" on product pages, and the
   distributor's bundle builder. Colours come from styles.css.
   ==================================================================== */

/* ---------------------------------------------------- on product pages */

.bundles { margin-top: 32px; }
.bundle {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: center; margin-bottom: 16px;
  padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.bundle-items { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bundle-item { display: flex; flex-direction: column; gap: 4px; width: 140px; color: var(--ink); font-size: .9rem; }
.bundle-item img, .bundle-item .image-missing { width: 140px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.bundle-plus { font-size: 1.4rem; color: var(--muted); }
.bundle-name { font-weight: 700; margin: 0; }
.bundle-buy .btn { cursor: pointer; font: inherit; font-weight: 600; }

/* ------------------------------------------------------------- builder */

.bundle-slots { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bundle-slots legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.bundle-slot { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; }

@media (max-width: 900px) {
  .bundle { grid-template-columns: minmax(0, 1fr); }
}
