.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 13px;
  color: var(--color-forest-950);
  background: transparent;
  border: 1px solid var(--color-sand-200);
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.favorite-button span { font-size: 20px; line-height: 1; }
.favorite-button em { font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.favorite-button--icon { width: 44px; padding: 0; }
.favorite-button--icon em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.favorite-button:hover,.favorite-button:focus-visible,.favorite-button.is-favorite { color: #fff; background: var(--color-heath-500); border-color: var(--color-heath-500); }
.favorite-button:focus-visible,.favorites-launcher:focus-visible,.favorites-drawer button:focus-visible,.favorites-drawer a:focus-visible { outline: 3px solid var(--color-heath-500); outline-offset: 3px; }
.archive-feature .favorite-button { color: #fff; border-color: rgba(255,255,255,.3); }
.archive-feature .favorite-button:hover,.archive-feature .favorite-button.is-favorite { color: var(--color-forest-950); background: #fff; border-color: #fff; }

.favorites-launcher {
  position: fixed;
  z-index: 145;
  right: 22px;
  bottom: 22px;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 14px;
  color: #fff;
  background: var(--color-forest-950);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  box-shadow: 0 12px 38px rgba(18,35,28,.24);
  cursor: pointer;
}
.favorites-launcher > span { font-size: 19px; }
.favorites-launcher strong { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.favorites-launcher em { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; color: var(--color-forest-950); background: var(--color-sand-50); border-radius: 50%; font-size: 10px; font-style: normal; }
.favorites-launcher.has-favorites > span { color: #e8a58f; }
.favorites-backdrop { position: fixed; z-index: 175; inset: 0; background: rgba(8,17,13,.55); backdrop-filter: blur(4px); }
.favorites-drawer {
  position: fixed;
  z-index: 180;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(480px, 100%);
  height: 100dvh;
  padding: 34px;
  color: var(--color-charcoal);
  background: var(--color-sand-50);
  box-shadow: -20px 0 60px rgba(11,25,18,.22);
}
.favorites-drawer[hidden],.favorites-backdrop[hidden] { display: none; }
.favorites-open { overflow: hidden; }
.favorites-drawer__head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--color-sand-200); }
.favorites-drawer__head span { color: var(--color-muted); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.favorites-drawer__head h2 { margin: 7px 0 0; font-size: 2.25rem; }
.favorites-drawer__head button,.favorites-item > button { width: 44px; height: 44px; color: var(--color-charcoal); background: transparent; border: 1px solid var(--color-sand-200); border-radius: 50%; font-size: 23px; cursor: pointer; }
.favorites-drawer__list { padding: 18px 0; overflow-y: auto; }
.favorites-drawer__list article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--color-sand-200); }
.favorites-item__link { display: grid; grid-template-columns: 92px minmax(0,1fr); align-items: center; gap: 17px; }
.favorites-item__link img { width: 92px; aspect-ratio: 4/3; object-fit: cover; background: var(--color-mist-300); }
.favorites-item__link strong,.favorites-item__link small { display: block; }
.favorites-item__link strong { font: 600 15px/1.3 Barlow,system-ui,sans-serif; }
.favorites-item__link small { margin-top: 5px; color: var(--color-muted); font-size: 10px; }
.favorites-drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--color-sand-200); }
.favorites-drawer__foot button,.favorites-drawer__foot a { min-height: 44px; padding: 0; color: var(--color-charcoal); background: transparent; border: 0; border-bottom: 1px solid; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.favorites-empty { display: grid; place-items: center; min-height: 60vh; padding: 30px; text-align: center; }
.favorites-empty span { font-size: 54px; }
.favorites-empty h3 { margin: 18px 0 10px; font-size: 2rem; }
.favorites-empty p { max-width: 320px; margin: 0; color: var(--color-muted); font-size: 14px; line-height: 1.6; }
@media (max-width:600px) {
  .favorites-launcher { right: 14px; bottom: 14px; min-height: 46px; }
  .single-page .favorites-launcher { bottom: 82px; }
  .favorites-launcher strong { display: none; }
  .favorites-drawer { padding: 24px 20px 18px; }
  .favorites-drawer__head h2 { font-size: 1.9rem; }
  .favorites-item__link { grid-template-columns: 74px minmax(0,1fr); gap: 13px; }
  .favorites-item__link img { width: 74px; }
}
@media (prefers-reduced-motion:reduce) { .favorite-button { transition: none; } }
