/* ---- serduszko „Dodaj do ulubionych” ---- */
.lvt-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b5b5b5;
  cursor: pointer;
  line-height: 1;
  transition: color .15s, transform .15s;
}
.lvt-fav[hidden] { display: none; }
.lvt-fav svg { width: 22px; height: 22px; fill: transparent; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: fill .15s; }
.lvt-fav:hover { color: #f39c12; }
.lvt-fav:active { transform: scale(.9); }
.lvt-fav.is-on { color: #f39c12; }
.lvt-fav.is-on svg { fill: currentColor; }
.lvt-fav:focus { outline: none; }
.lvt-fav:focus-visible { outline: 2px solid #222; outline-offset: 2px; }

/* kafelek: „Porównaj” lewo, serce prawo (wrapper z product-listgrid.tpl) */
.lvt-card-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.lvt-card-tools .lvt-cmp { margin: 0; }
.lvt-card-tools .lvt-fav { margin-left: auto; }
/* karta produktu (blok wish_comp) */
.wish_comp .lvt-fav { vertical-align: middle; margin-left: 12px; }

/* ---- strona „Ulubione produkty” (układ i style jak lvtostatniezamowienia/views/css/front.css) ---- */
.lvt-fav-list { background: #fff; border-radius: 4px; padding: 24px 28px; margin-bottom: 24px; }
.lvt-fav-list__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.lvt-fav-list__h1 { font-size: 24px; margin: 0 0 4px; }
.lvt-fav-list__back { white-space: nowrap; color: #777; text-decoration: underline; }
.lvt-fav-list__empty { padding: 24px 0; color: #777; }

.lvt-fav-list__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(128px, 1.3fr) minmax(0, 1fr) minmax(0, 1.5fr) 262px 40px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #eee; }
.lvt-fav-list__row--head { border-top: 0; border-bottom: 2px solid #f28c00; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #555; padding-bottom: 8px; }
.lvt-fav-list__name { display: flex; align-items: center; gap: 12px; }
.lvt-fav-list__thumb { flex: none; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.lvt-fav-list__thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.lvt-fav-list__title { color: #222; font-weight: 500; }
.lvt-fav-list__cell { min-width: 0; overflow-wrap: anywhere; }
.lvt-fav-list__ean { overflow-wrap: normal; white-space: nowrap; } /* EAN w jednej linii */

.lvt-fav-list__price { font-weight: 600; white-space: nowrap; }

.lvt-fav-list__buy { display: flex; gap: 8px; align-items: center; }
.lvt-fav-list__none { color: #aaa; }

.lvt-fav-list__msg { grid-column: 1 / -1; color: #b3261e; font-size: 13px; }
.lvt-fav-list__row--err { background: #fff6f5; }

.lvt-fav-list__pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid #eee; }
.lvt-fav-list__pager a { color: #f28c00; font-weight: 500; }
.lvt-fav-list__pageno { color: #777; }

/* tablet i telefon (do 1199 px): układ kart zamiast tabeli — jak lvtostatniezamowienia; tabela z kolumną
   przycisków nie mieści się w 768–991 px i dusiła nazwę produktu do jednego znaku w linii */
@media (max-width: 1199px) {
  .lvt-fav-list__row--head { display: none; }
  .lvt-fav-list__row { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px 0; position: relative; }
  .lvt-fav-list__name { grid-column: 1 / -1; padding-right: 40px; }
  .lvt-fav-list__cell[data-label]::before { content: attr(data-label) ": "; color: #888; font-size: 12px; display: block; }
  .lvt-fav-list__buy { grid-column: 1 / -1; }
  .lvt-fav-list__rm { position: absolute; top: 14px; right: 0; }
}

@media (max-width: 767px) {
  .lvt-fav-list { padding: 16px; }
  .lvt-fav-list__head { flex-direction: column; }
  .lvt-fav-list__row { grid-template-columns: 1fr 1fr; padding: 14px 0; }
  .lvt-fav-list__name { grid-column: 1 / -1; }
  .lvt-fav-list__cell[data-label]::before { content: attr(data-label) ": "; color: #888; font-size: 12px; display: block; }
  .lvt-fav-list__buy { grid-column: 1 / -1; }
  .lvt-fav-list__add { flex: 1; }
  .lvt-fav-list__thumb { width: 80px; height: 80px; }
}

/* przycisk „Dodaj” identyczny jak na kafelku listingu (pomarańczowy, ikona koszyka, wersaliki) */
.lvt-fav-list__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  min-width: 118px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: #f28f22;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease;
}
.lvt-fav-list__add:hover { background: #e07f12; color: #fff; }
.lvt-fav-list__add .icon {
  flex: none;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--lvt-cart-icon) center / 24px no-repeat;
  mask: var(--lvt-cart-icon) center / 24px no-repeat;
}
/* po dodaniu: wyszarzony na 2 s, potem wraca */
.lvt-fav-list__add:disabled,
.lvt-fav-list__add.is-cooldown { background: #c9c9c9; color: #fff; cursor: default; pointer-events: none; }

/* dostępność jak na kafelku: kropka + tekst, bez tła */
.lvt-fav-list__avail { display: inline-flex; align-items: flex-start; gap: 7px; font-size: 13px; line-height: 1.35; font-weight: 400; background: none; padding: 0; }
.lvt-fav-list__avail::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: currentColor; }
.lvt-fav-list__avail--ok { color: #008000; }
.lvt-fav-list__avail--out { color: #b3261e; }

/* stepper ilości jak na kafelku: [-] [ 1 ] [+] */
.lvt-fav-list__stepper { display: flex; align-items: stretch; flex: none; height: 44px; }
.lvt-fav-list__step {
  position: relative;
  width: 36px;
  padding: 0;
  border: 1px solid #e5e5e5;
  background: #f5f5f5;
  color: #222;
  cursor: pointer;
  transition: background-color .15s ease;
}
.lvt-fav-list__step:hover { background: #ebebeb; }
.lvt-fav-list__step--down { border-radius: 4px 0 0 4px; }
.lvt-fav-list__step--up { border-radius: 0 4px 4px 0; }
.lvt-fav-list__step::after { content: "+"; font-size: 16px; font-weight: 500; line-height: 1; }
.lvt-fav-list__step--down::after { content: "\2212"; }
.lvt-fav-list__qty {
  width: 56px;
  height: 44px;
  padding: 0 4px;
  border: 1px solid #e5e5e5;
  border-width: 1px 0;
  border-radius: 0;
  background: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  -moz-appearance: textfield;
  appearance: textfield;
}
.lvt-fav-list__qty::-webkit-outer-spin-button,
.lvt-fav-list__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* produkt, którego nie da się już dodać (stan wyczerpany przez koszyk): kontrolki wyszarzone */
.lvt-fav-list__step:disabled { opacity: .45; cursor: default; }
.lvt-fav-list__qty:disabled { background: #f5f5f5; color: #999; }

/* ulubione: serduszko usuwania w ostatniej kolumnie, link do wariantów */
.lvt-fav-list__rm { text-align: right; }
.lvt-fav-list__options { color: #f28c00; font-weight: 500; text-decoration: underline; }
