/* NORTIA TEAM – Oblíbené odměny: heart toggles and the /oblibene page (design preview).
   Tokens: themes/interior/assets/css/nortia-shell.css. */

/* ---------- heart toggle ---------- */

.nt-fav {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--nt-line);
  border-radius: 0;
  background: #fff;
  color: var(--nt-ink);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}

.nt-fav:hover {
  background: #f1f3f6;
}

.nt-fav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.nt-fav.is-on {
  color: var(--nt-red);
}

.nt-fav.is-on svg {
  fill: currentColor;
}

.nt-fav[aria-busy="true"] {
  cursor: progress;
}

.nt-fav:focus-visible {
  outline: 2px solid var(--nt-blue);
  outline-offset: 2px;
}

/* product page: heart with its label */
.nt-fav--label {
  display: inline-flex;
  gap: 8px;
  width: auto;
  height: 40px;
  padding: 0 14px;
  font: 600 14px var(--nt-font);
}

.ntp-buy .nt-fav--label {
  margin-top: 12px;
}

.nt-fav--label.is-on .nt-fav__text {
  color: var(--nt-ink);
}

/* cards: the heart sits over the image, outside the card link */
.nt-favwrap {
  position: relative;
  display: flex;
  height: 100%;
}

.nt-favwrap > a {
  flex: 1;
  min-width: 0;
}

.nt-favwrap > .nt-fav,
.product-miniature .thumbnail-wrapper > .nt-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.product-miniature .thumbnail-wrapper {
  position: relative;
}

/* ---------- /oblibene ---------- */

.nfav-page #content.nfav-content {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.nfav-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 8px 0 20px;
}

.nfav-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--nt-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nfav-eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: currentColor;
}

.nfav-head h1 {
  margin: 0;
  color: var(--nt-ink);
  font-family: var(--nt-font);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-transform: none;
}

.nfav-balance {
  margin: 0;
  padding: 10px 16px;
  background: var(--nt-navy);
  color: #c4d0e0;
  font-size: 14px;
}

.nfav-balance b {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.nfav-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid #d9e5f4;
  background: #edf3fb;
  color: var(--nt-text);
  font-size: 15px;
}

.nfav-summary p {
  margin: 0;
}

.nfav-summary b {
  color: var(--nt-ink);
}

.nfav-list {
  margin: 0;
  padding: 0;
  border: 1px solid var(--nt-line);
  background: #fff;
  list-style: none;
}

.nfav-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
  padding: 16px;
  transition: background-color .12s;
}

.nfav-item + .nfav-item {
  border-top: 1px solid var(--nt-line-soft);
}

.nfav-item:hover {
  background: #fafbfc;
}

.nfav-item__media {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--nt-line-soft);
  background: #fff;
}

.nfav-item__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.nfav-item__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.nfav-item__name {
  color: var(--nt-ink);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
}

.nfav-item__name:hover {
  color: var(--nt-blue-600);
}

.nfav-item__points {
  margin: 0;
  color: var(--nt-muted);
  font-size: 13px;
}

.nfav-item__points b {
  color: var(--nt-ink);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.nfav-item__bar {
  height: 6px;
  max-width: 360px;
  overflow: hidden;
  background: #dce6f5;
}

.nfav-item__bar span {
  display: block;
  height: 100%;
  background: var(--nt-blue);
}

.is-affordable .nfav-item__bar span {
  background: var(--nt-success);
}

.nfav-item__state {
  margin: 0;
  color: var(--nt-blue-600);
  font-size: 14px;
  font-weight: 600;
}

.nfav-item__state--ok {
  color: var(--nt-success);
}

.nfav-item__state--muted {
  color: var(--nt-muted);
  font-weight: 500;
}

.nfav-item__actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
}

.nfav-item__actions form {
  flex: 1;
  margin: 0;
}

.nfav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--nt-blue);
  border-radius: 0;
  background: var(--nt-blue);
  color: #fff;
  font: 700 14px var(--nt-font);
  cursor: pointer;
  transition: background-color .15s;
}

.nfav-btn:hover {
  background: var(--nt-blue-600);
  color: #fff;
}

.nfav-btn--line {
  flex: 1;
  border-color: var(--nt-line);
  background: #fff;
  color: var(--nt-ink);
}

.nfav-btn--line:hover {
  background: #f1f3f6;
  color: var(--nt-ink);
}

.nfav-item__actions .nt-fav {
  flex: none;
  width: 40px;
  height: 40px;
}

.nfav-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 44px 20px;
  border: 1px solid var(--nt-line);
  background: #f9fafc;
  text-align: center;
}

.nfav-empty svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--nt-blue);
  stroke-width: 1.6;
}

.nfav-empty .nfav-empty__title {
  margin: 0;
  color: var(--nt-ink);
  font-size: 18px;
  font-weight: 800;
}

.nfav-empty p {
  margin: 0;
  color: var(--nt-muted);
}

.nfav-empty .nfav-btn {
  width: auto;
  margin-top: 8px;
}

/* account list icon (Váš účet) */
.nt-fav-ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

@media (min-width: 768px) {
  .nfav-item {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    padding: 16px 20px;
  }

  .nfav-item__media {
    width: 96px;
    height: 96px;
  }

  .nfav-item__actions {
    grid-column: auto;
    gap: 10px;
  }

  .nfav-btn {
    width: 150px;
  }

  .nfav-btn--line {
    flex: none;
  }

  .nfav-item__actions form {
    flex: none;
  }

  .nfav-head h1 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nt-fav,
  .nfav-item {
    transition: none;
  }
}
