/* ============================================================
   Shortcode [wariant] — karta produktu w treści wpisu/strony (inc/wariant.php).
   Styl spójny z „Polecane produkty" artykułu (mist, radius-lg, obwódka border).
   Selektory podbite przez .tech-article__prose / .entry-content tam, gdzie prose
   nadpisuje p/ul/img/a.
   ============================================================ */

.tech-wariant {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  margin: 2rem 0; padding: 1.25rem;
  background: var(--tech-mist); border: 1px solid var(--tech-border);
  border-radius: var(--tech-radius-lg);
  color: var(--tech-ink); font-family: var(--tech-font-sans);
}
@media (min-width: 640px) {
  .tech-wariant { grid-template-columns: 13rem 1fr; align-items: center; gap: 1.75rem; padding: 1.5rem; }
}

/* Zdjęcie: biały kafel */
.tech-wariant__media {
  display: block; background: var(--tech-white); border: 1px solid var(--tech-border);
  border-radius: var(--tech-radius); overflow: hidden; max-width: 11rem; width: 100%; margin-inline: auto;
}
@media (min-width: 640px) { .tech-wariant__media { max-width: none; } }
.tech-wariant .tech-wariant__img,
.tech-article__prose .tech-wariant .tech-wariant__img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  margin: 0; border-radius: 0;
}

.tech-wariant__body { min-width: 0; }
.tech-wariant__eyebrow {
  display: inline-block; margin-bottom: .5rem; padding: .2rem .65rem;
  border-radius: var(--tech-radius-pill); background: var(--tech-white); border: 1px solid var(--tech-border);
  font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-semibold); color: var(--tech-slate);
}

.tech-wariant .tech-wariant__title,
.tech-article__prose .tech-wariant .tech-wariant__title {
  margin: 0 0 .35rem; font-size: var(--tech-fs-xl); font-weight: var(--tech-fw-bold);
  letter-spacing: var(--tech-tracking-tight); line-height: var(--tech-lh-snug); color: var(--tech-ink);
}
.tech-wariant .tech-wariant__title a,
.tech-article__prose .tech-wariant .tech-wariant__title a { color: var(--tech-ink); text-decoration: none; }
.tech-wariant .tech-wariant__title a:hover { color: var(--tech-slate); }

.tech-wariant .tech-wariant__desc,
.tech-article__prose .tech-wariant .tech-wariant__desc {
  margin: 0 0 .75rem; font-size: var(--tech-fs-sm); line-height: var(--tech-lh-normal); color: var(--tech-slate);
}

/* Lista korzyści z checkiem */
.tech-wariant .tech-wariant__list,
.tech-article__prose .tech-wariant .tech-wariant__list {
  list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .45rem;
}
.tech-wariant .tech-wariant__list li,
.tech-article__prose .tech-wariant .tech-wariant__list li {
  position: relative; margin: 0; padding-left: 1.6rem;
  font-size: var(--tech-fs-sm); line-height: 1.5; color: var(--tech-slate);
}
.tech-wariant__list li::before {
  content: ""; position: absolute; left: 0; top: .1rem; width: 1.1rem; height: 1.1rem;
  border-radius: 50%; background: var(--tech-mint-100);
  /* check (mint) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232FAF98' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: .8rem;
}

/* Cena + CTA */
.tech-wariant__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.tech-wariant__price { font-size: var(--tech-fs-xl); font-weight: var(--tech-fw-bold); color: var(--tech-ink); }
.tech-wariant__price .tech-card__from { font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-medium); color: var(--tech-slate); }
.tech-wariant__price del { font-size: var(--tech-fs-sm); color: var(--tech-slate); font-weight: var(--tech-fw-medium); margin-right: .35rem; }
.tech-wariant__price ins { text-decoration: none; }

.tech-wariant a.tech-wariant__btn,
.tech-article__prose .tech-wariant a.tech-wariant__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.75rem; border-radius: var(--tech-radius-pill);
  background: var(--tech-ink); color: var(--tech-white);
  font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold);
  text-decoration: none; border: 0; transition: background .2s ease;
}
.tech-wariant a.tech-wariant__btn:hover,
.tech-wariant a.tech-wariant__btn:focus-visible { background: var(--tech-ink-hover); color: var(--tech-white); text-decoration: none; }
.tech-wariant a.tech-wariant__btn:focus-visible { outline: 2px solid var(--tech-ink); outline-offset: 2px; }

.tech-wariant .tech-wariant__note,
.tech-article__prose .tech-wariant .tech-wariant__note {
  margin: .75rem 0 0; font-size: var(--tech-fs-xs); line-height: 1.5; color: var(--tech-slate);
}

@media (max-width: 639px) {
  .tech-wariant__foot { flex-direction: column; align-items: stretch; }
  .tech-wariant a.tech-wariant__btn { width: 100%; }
}
