.fav-header__content {
  width: 100%;
}

.fav-header__count {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.fav-main {
  padding-top: 20px;
}

.fav-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px 32px;
}

.fav-empty:not([hidden]) {
  display: flex;
}

.fav-list-section[hidden] {
  display: none !important;
}

.fav-empty__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.fav-empty__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.fav-empty__text {
  max-width: 26ch;
  margin: 0 0 22px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  color: #6b6b6b;
  text-wrap: pretty;
}

.fav-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition-property: transform, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.fav-empty__cta:active {
  transform: scale(0.96);
}

.fav-list {
  display: grid;
  gap: 10px;
}

.fav-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: default;
}

.fav-item__media {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 16px;
  background: transparent;
}

.fav-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}

.fav-item__media span {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
}

.fav-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fav-item__top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.fav-item__copy {
  min-width: 0;
  flex: 1;
}

.fav-item__cat {
  margin-bottom: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.fav-item__name {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.fav-item__desc {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b6b6b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fav-item__price {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fav-item__cart {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition-property: transform, background-color, color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.fav-item__cart:active {
  transform: scale(0.96);
}

.fav-item__cart.is-added {
  background: #f3f3f3;
  color: #111;
}

.fav-item__remove {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: #111;
  cursor: pointer;
  transition-property: transform, background-color, color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.fav-item__remove:active {
  transform: scale(0.94);
}

.fav-item__remove.is-on {
  background: #111;
  color: #fff;
}

.fav-item__remove svg {
  width: 16px;
  height: 16px;
}

.fav-toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 60;
  translate: -50% 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-out;
}

.fav-toast.is-visible {
  opacity: 1;
}

@media (min-width: 900px) {
  .fav-toast {
    bottom: 24px;
  }
}
