/* Saved page tabs (favorites.js): Deals · Brands · Recently viewed. */
.fav-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin: 6px 0 18px;
  background: var(--cr-gray-100, #f2f4f7); border-radius: 999px;
}
.fav-tab {
  border: 0; background: none; cursor: pointer;
  padding: 8px 16px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; color: #475467;
}
.fav-tab[aria-selected="true"] { background: #fff; color: #101828; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.fav-tab:focus-visible { outline: 2px solid var(--cr-brand, #2450e9); outline-offset: 2px; }
.fav-count { color: #98a2b3; font-weight: 600; margin-left: 2px; }
.fav-count:empty { display: none; }

/* Followed brands */
.fav-brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.fav-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid #e4e7ec; border-radius: 14px; background: #fff;
  transition: opacity .2s;
}
.fav-brand.is-unfollowed { opacity: .55; }
.fav-brand-link { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.fav-brand-art {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 12px; overflow: hidden;
  background: #f6f8ff; display: grid; place-items: center;
}
.fav-brand-art img { width: 100%; height: 100%; object-fit: contain; }
.fav-brand-text { min-width: 0; display: flex; flex-direction: column; }
.fav-brand-name { font-weight: 700; font-size: 15px; color: #101828; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-brand-sub { font-size: 13px; color: #667085; }
.fav-brand-link:hover .fav-brand-name { color: var(--cr-brand, #2450e9); }
.fav-unfollow {
  flex: 0 0 auto; border: 1px solid #d0d5dd; background: #fff; color: #344054;
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.fav-unfollow.is-off { background: var(--cr-brand, #2450e9); border-color: var(--cr-brand, #2450e9); color: #fff; }
.fav-brand-skel { height: 78px; border-radius: 14px; background: #f2f4f7; animation: favSkel 1.2s ease-in-out infinite; }
@keyframes favSkel { 50% { opacity: .5; } }
.fav-sub-h { font-size: 15px; margin: 24px 0 10px; color: #344054; }
.fav-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fav-chip { border: 1px solid #d0d5dd; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #344054; text-decoration: none; }
.fav-chip:hover { border-color: var(--cr-brand, #2450e9); color: var(--cr-brand, #2450e9); }

/* Recently viewed */
.fav-viewed { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: #667085; }

@media (max-width: 640px) {
  .fav-tabs { display: flex; width: 100%; }
  .fav-tab { flex: 1 1 0; padding: 8px 6px; font-size: 13px; }
  .fav-brands { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .fav-brand-skel { animation: none; } }
