/* Favorites. Heart fill is the only new color. */
:root { --heart: #ff3b6b; }

.fav-nav { display: inline-flex; align-items: center; gap: 6px; }
.fav-nav svg { width: 18px; height: 18px; fill: var(--heart); stroke: var(--heart); }
.fav-nav.fav-on { color: var(--violet, #6842F4); }
.fav-count {
  background: var(--heart); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 999px; min-width: 16px; padding: 0 6px; line-height: 16px; text-align: center;
}
.tab[data-fav-link].fav-on { color: var(--violet, #6842F4); }
.tab .fav-count { position: absolute; top: 2px; margin-left: 18px; }

.heart.on svg, .fav.on svg, .heart-btn.on svg, .save.on svg, .fav-btn.on svg {
  fill: var(--heart); stroke: var(--heart);
}
.heart.pop, .fav-btn.pop, .heart-btn.pop, .save.pop {
  animation: fav-pop .45s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes fav-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .heart.pop, .fav-btn.pop, .heart-btn.pop, .save.pop { animation: none; }
}

.fans .fav-btn { width: 28px; height: 28px; box-shadow: none; background: transparent; }
.fav-btn, .heart-btn.fav-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(23, 21, 45, .15);
}
.fav-btn svg, .heart-btn.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: #17152d; stroke-width: 2; }
.perf .fav-btn { justify-self: end; }
@media (max-width: 640px) {
  .perf .fav-btn { grid-area: heart; grid-column: 3; justify-self: center; align-self: center; }
}

.fav-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: #17152d; color: #fff; border-radius: 14px; padding: 12px 14px 12px 16px;
  display: flex; align-items: center; gap: 14px; z-index: 80;
  box-shadow: 0 24px 64px rgba(23, 21, 45, .22); font-size: 14px; font-weight: 600;
}
.fav-toast a { color: #d9ff65; font-weight: 800; text-decoration: none; }
.fav-toast button { color: #fff; opacity: .7; font-weight: 600; background: none; border: 0; cursor: pointer; }

.fav-dim {
  position: fixed; inset: 0; background: rgba(23, 21, 45, .45); z-index: 70;
  display: grid; place-items: center; padding: 16px;
}
.fav-modal {
  width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 26px;
  box-shadow: 0 24px 64px rgba(23, 21, 45, .22); position: relative; color: #17152d;
}
.fav-modal h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.02em; }
.fav-modal .x {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: #f5f3ff; cursor: pointer;
}
.fav-big {
  width: 56px; height: 56px; border-radius: 50%; background: #ffe8ee;
  display: grid; place-items: center; margin-bottom: 12px;
}
.fav-big svg { width: 28px; height: 28px; fill: var(--heart); }
.fav-ben { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 14px; color: #3c365c; }
.fav-ben li::before { content: "✓"; color: #0f9d58; font-weight: 800; margin-right: 8px; }
.fav-primary {
  width: 100%; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; cursor: pointer;
  background: #6842f4; color: #fff;
}
.fav-primary:hover { background: #5428e0; }
.fav-not { display: block; text-align: center; margin-top: 14px; color: #6842f4; font-weight: 700; background: none; border: 0; cursor: pointer; }
.fav-off { display: block; text-align: center; margin-top: 12px; color: #d4253b; font-weight: 700; background: none; border: 0; cursor: pointer; }
.fav-hint { font-size: 12px; color: #6e6888; text-align: center; margin: 8px 0 0; }
.fav-sub { color: #6e6888; font-size: 14px; margin: 0 0 16px; }

.fav-page { max-width: 1120px; margin: 0 auto; padding: 28px 24px 80px; }
.fav-page h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; }
.fav-page .lead { color: #6e6888; font-size: 14px; margin: 0 0 18px; }
.fav-tabs { display: flex; gap: 4px; background: #fff; border: 1px solid #e6e4f2; border-radius: 14px; padding: 4px; width: max-content; margin: 10px 0 20px; }
.fav-tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 10px; font-weight: 700; color: #6e6888; cursor: pointer; }
.fav-tabs button.on { background: #6842f4; color: #fff; }
.fav-tabs .c { opacity: .7; margin-left: 4px; }
.fav-tools { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.fav-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fav-chip, .fav-sort {
  border: 1px solid #d4d0e6; background: #fff; border-radius: 999px; padding: 7px 13px;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.fav-sort { border-radius: 10px; }
.fav-chip.on { background: #17152d; color: #fff; border-color: #17152d; }

.fav-arow, .fav-erow {
  display: grid; gap: 16px; align-items: center; background: #fff; border: 1px solid #e6e4f2;
  border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(23, 21, 45, .06);
}
.fav-arow { grid-template-columns: 72px 1fr auto auto; }
.fav-erow { grid-template-columns: 70px 1fr auto; }
.fav-erow.past { opacity: .55; }
.fav-ph { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: #2b1d6b; }
.fav-arow h3, .fav-erow h3 { margin: 0 0 3px; font-size: 16px; }
.fav-arow p, .fav-erow p { margin: 0; color: #6e6888; font-size: 13px; }
.fav-new { display: inline-block; background: #d9ff65; color: #17152d; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.fav-tgl { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #6e6888; }
.fav-sw { width: 38px; height: 22px; border-radius: 999px; background: #6842f4; border: 0; position: relative; cursor: pointer; }
.fav-sw::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.fav-sw.off { background: #d4d0e6; }
.fav-sw.off::after { right: auto; left: 3px; }
.fav-date { background: #f5f3ff; border-radius: 12px; text-align: center; padding: 9px 0; color: #5428e0; }
.fav-date b { display: block; font-size: 22px; line-height: 1; }
.fav-date small { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.fav-price { text-align: right; }
.fav-price .from { font-size: 11px; color: #6e6888; font-weight: 700; }
.fav-price b { display: block; font-size: 18px; }
.fav-drop { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 8px; margin-top: 4px; }
.fav-drop.down { background: #e7f7ee; color: #0f9d58; }
.fav-drop.up { background: #ffe8ec; color: #d4253b; }
.fav-drop.low { background: #fff3d6; color: #8a5a00; }
.fav-acts { display: flex; gap: 8px; margin-top: 8px; justify-content: flex-end; align-items: center; }
.fav-icon {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid #d4d0e6; background: #fff; cursor: pointer;
}
.fav-see { border: 0; border-radius: 10px; padding: 8px 13px; background: #6842f4; color: #fff; font-weight: 700; text-decoration: none; font-size: 13px; }
.fav-link { color: #6842f4; font-weight: 700; text-decoration: none; font-size: 13px; }

.fav-empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed #d4d0e6; border-radius: 22px; }
.fav-empty .fav-big { margin: 0 auto 14px; }
.fav-sugg { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.fav-sugg button {
  display: flex; align-items: center; gap: 8px; border: 1px solid #d4d0e6; border-radius: 999px;
  padding: 6px 12px 6px 6px; font-weight: 700; font-size: 13px; background: #fff; cursor: pointer;
}
.fav-sugg img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.fav-explore { display: inline-block; margin-top: 16px; }

.fav-skel { height: 96px; border-radius: 18px; margin-bottom: 10px; background: linear-gradient(90deg, #eeeaf8 25%, #f7f5ff 37%, #eeeaf8 63%); background-size: 400% 100%; animation: fav-shimmer 1.2s ease infinite; }
@media (prefers-reduced-motion: reduce) { .fav-skel { animation: none; } }
@keyframes fav-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.fav-field { margin-bottom: 14px; }
.fav-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.fav-money { position: relative; }
.fav-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: #6e6888; }
.fav-input, .fav-field select {
  width: 100%; border: 1.5px solid #d4d0e6; border-radius: 12px; padding: 12px 14px; font-size: 15px; background: #fff;
}
.fav-money .fav-input { padding-left: 32px; }
.fav-input:focus, .fav-field select:focus { outline: none; border-color: #6842f4; box-shadow: 0 0 0 4px rgba(104, 66, 244, .14); }
.fav-qty { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.fav-qty button { border: 1.5px solid #d4d0e6; background: #fff; border-radius: 10px; padding: 9px 0; font-weight: 800; cursor: pointer; }
.fav-qty button.on { background: #17152d; color: #fff; border-color: #17152d; }

@media (max-width: 760px) {
  .fav-arow { grid-template-columns: 56px 1fr; }
  .fav-ph { width: 56px; height: 56px; }
  .fav-tgl, .fav-arow .fav-btn { grid-column: 2; }
  .fav-erow { grid-template-columns: 56px 1fr; }
  .fav-price { grid-column: 1 / -1; text-align: left; }
  .fav-acts { justify-content: flex-start; }
  .fav-toast { left: 8px; right: 8px; bottom: 16px; transform: none; }
  .fav-dim { align-items: end; padding: 0; }
  .fav-modal { max-width: none; border-radius: 22px 22px 0 0; }
}
