/* TBB Mega Widgets — namespaced tbb-mm-*; palette defaults match tbb-shop. */
.tbb-mm {
  --tbb-mm-surface: #F5F3EE;
  --tbb-mm-surface-2: #C8DBBC;
  --tbb-mm-fg: #1B3A28;
  --tbb-mm-fg-muted: #7A9A80;
  --tbb-mm-accent: #2D5E3A;
  --tbb-mm-gold: #D4A843;
  --tbb-mm-dark-green: #0F2818;
  color: var(--tbb-mm-fg);
  font-family: inherit;
}
.tbb-mm a { text-decoration: none; color: inherit; }
.tbb-mm__heading { font-size: 1.25rem; font-weight: 800; margin: 0 0 .35rem; padding: 0; color: var(--tbb-mm-fg); }
.tbb-mm__divider { height: 1px; background: var(--tbb-mm-surface-2); margin: 0 0 .7rem; }
.tbb-mm__divider--accent { background: color-mix(in srgb, var(--tbb-mm-accent) 30%, transparent); }
.tbb-mm__viewall { display: inline-block; margin-top: 1rem; font-size: .875rem; font-weight: 700; color: var(--tbb-mm-accent); }
.tbb-mm__empty { font-size: .875rem; color: var(--tbb-mm-fg-muted); }

/* Brands */
.tbb-mm-brands__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .75rem; }
.tbb-mm-brands__item { display: flex; align-items: center; gap: .75rem; transition: color .15s; }
.tbb-mm-brands__item:hover { color: var(--tbb-mm-accent); }
.tbb-mm-brands__swatch { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--tbb-mm-surface-2) 50%, transparent); }
.tbb-mm-brands__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbb-mm-brands__name { font-size: .875rem; }

/* Spotlight */
.tbb-mm-spotlight { display: flex; flex-direction: column; }
.tbb-mm-spotlight__hero, .tbb-mm-spotlight__mini { margin-top: 1rem; }
.tbb-mm-spotlight__hero { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--tbb-mm-surface); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.tbb-mm-spotlight__badge { position: absolute; top: .75rem; left: .75rem; z-index: 1; background: var(--tbb-mm-gold); color: var(--tbb-mm-dark-green); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 999px; padding: .25rem .75rem; }
.tbb-mm-spotlight__hero-img { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: color-mix(in srgb, var(--tbb-mm-surface-2) 40%, transparent); }
.tbb-mm-spotlight__hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbb-mm-spotlight__hero-body { display: block; padding: 1rem; }
.tbb-mm-spotlight__hero-name { display: block; font-weight: 600; line-height: 1.2; }
.tbb-mm-spotlight__hero-desc { display: block; font-size: .875rem; color: var(--tbb-mm-fg-muted); margin-top: .25rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tbb-mm-spotlight__price { display: block; color: var(--tbb-mm-accent); font-weight: 700; margin-top: .25rem; }
.tbb-mm-spotlight__mini { display: flex; align-items: center; gap: .75rem; border-radius: 12px; background: var(--tbb-mm-surface); padding: .75rem; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: box-shadow .15s; }
.tbb-mm-spotlight__mini:hover { box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.tbb-mm-spotlight__mini-img { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--tbb-mm-surface-2) 40%, transparent); }
.tbb-mm-spotlight__mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbb-mm-spotlight__mini-body { min-width: 0; flex: 1; }
.tbb-mm-spotlight__mini-name { display: block; font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbb-mm-spotlight__mini .tbb-mm-spotlight__price { font-size: .8rem; margin-top: 0; }

/* Categories (mega col-2) */
.tbb-mm-cats__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .5rem; }
.tbb-mm-cats__item { display: block; font-size: .875rem; padding: .15rem 0; transition: color .15s; }
.tbb-mm-cats__item:hover { color: var(--tbb-mm-accent); }

/* Responsive: keep the mega columns usable as the panel narrows (theme shows mega down to ~1024px). */
@media (max-width: 1024px) {
  .tbb-mm-cats__item { padding: .4rem 0; }       /* comfortable tap targets */
  .tbb-mm-brands__item { padding: .3rem 0; }
  .tbb-mm-spotlight__mini-name { white-space: normal; } /* wrap instead of clip on narrow */
  .tbb-mm-spotlight__hero-img { aspect-ratio: 16 / 9; }  /* shorter hero on small widths */
}
