.header__fav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background: #fff;
  border: 2px solid var(--color-primary);
}

.header__fav-link:hover {
  background: var(--color-primary);
  color: #fff;
}

.header__fav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #94a3b8;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.fav-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.fav-btn:hover,
.fav-btn.is-active {
  color: #e11d48;
}

.fav-btn.is-active svg {
  fill: #e11d48;
  stroke: #e11d48;
}

.product-card--small .fav-btn {
  width: 34px;
  height: 34px;
  top: 8px;
  right: 8px;
}

.product-card--small .fav-btn svg {
  width: 18px;
  height: 18px;
}

.fav-btn--product {
  position: static;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: none;
  background: #fff;
}

.fav-btn--gallery {
  top: 12px;
  right: 12px;
}

.issue-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.issue-btn:hover {
  color: #fff;
  background: var(--color-primary);
}

.product-card--small .issue-btn {
  width: 34px;
  height: 34px;
  bottom: 8px;
  right: 8px;
  font-size: 18px;
}

.fav-select {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 14px;
  font-weight: 600;
}

.account-favorites__list .products-grid {
  margin-top: 8px;
}

.account-favorites .product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

.account-favorites .product-card__badges .product-card__badge {
  position: static;
  margin: 0;
}

.account-favorites .product-card__badge--promo {
  background: #ff8a00;
  color: #fff;
}

.account-favorites .product-card__badge--special {
  background: #7c3aed;
  color: #fff;
}

.account-favorites .product-card__badge--liquidation {
  background: #dc2626;
  color: #fff;
}

.account-favorites .product-card__badge--limited_quantity {
  background: #0ea5e9;
  color: #fff;
}

.fav-row {
  display: grid;
  grid-template-columns: auto 84px minmax(0, 1fr) 180px auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

.fav-row--oos {
  background: #fafafa;
}

.fav-row__pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fav-check {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.fav-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.fav-check__box {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

.fav-check input:checked + .fav-check__box {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 3px #fff;
}

.fav-check--off {
  width: 22px;
  height: 22px;
}

.fav-qty {
  width: 64px;
  height: 36px;
  text-align: center;
  font-weight: 700;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.fav-row__photo {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}

.fav-row__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fav-row__codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.fav-row__code {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.fav-row__sku {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.fav-row__name {
  display: block;
  font-weight: 650;
  color: inherit;
  text-decoration: none;
  margin-bottom: 6px;
}

.fav-row__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.fav-row__price-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.fav-row__price strong {
  font-size: 20px;
}

.fav-row__old {
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-size: 13px;
}

.fav-row__discount {
  color: #e11d48;
  font-weight: 800;
  font-size: 13px;
}

.fav-stock {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.fav-stock--in {
  color: #166534;
  background: #dcfce7;
}

.fav-stock--out {
  color: #9a3412;
  background: #ffedd5;
}

.fav-remove {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-weight: 700;
  cursor: pointer;
}

.fav-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

.fav-toast__undo {
  border: 0;
  background: transparent;
  color: #fda4af;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 860px) {
  .fav-row {
    grid-template-columns: auto 72px minmax(0, 1fr);
  }

  .fav-row__price,
  .fav-row__actions {
    grid-column: 2 / -1;
  }
}
