/* --------------------------------------------------------------------------
   Homepage commerce preview 2026 — premium marketplace redesign
   Scoped to ?preview=commerce-home only (body.home.tl-home-commerce-preview).
   Searcher / hero / #top are NOT styled here.
   -------------------------------------------------------------------------- */
body.home.tl-home-commerce-preview {
  --tlc-ink: #14222f;
  --tlc-ink-soft: #3a4d5c;
  --tlc-muted: #6a7886;
  --tlc-faint: #9aa6b1;
  --tlc-card: #ffffff;
  --tlc-surface: #f6f8f9;
  --tlc-green: #198f46;
  --tlc-green-deep: #0f7a3a;
  --tlc-teal: #0b7370;
  --tlc-blue: #225f8f;
  --tlc-amber: #f7b928;
  --tlc-hair: rgba(20, 34, 47, 0.09);
  --tlc-hair-strong: rgba(20, 34, 47, 0.14);
  --tlc-radius-img: 16px;
  --tlc-radius-sm: 11px;
  --tlc-shadow-card: 0 1px 2px rgba(20, 34, 47, 0.05);
  --tlc-shadow-lift: 0 18px 38px -16px rgba(20, 34, 47, 0.28);
  --tlc-max: 1200px;
  color: var(--tlc-ink);
  text-rendering: optimizeLegibility;
}

body.home.tl-home-commerce-preview #content_wrapper.container,
body.home.tl-home-commerce-preview .featured-articles.full_width,
body.home.tl-home-commerce-preview .mdb.mod-okazje.in-content {
  box-sizing: border-box;
  max-width: var(--tlc-max) !important;
  width: min(100%, var(--tlc-max)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.home.tl-home-commerce-preview #content_wrapper.container {
  padding: 1.4rem 1.15rem 0 !important;
}

body.home.tl-home-commerce-preview .content-container {
  gap: 0;
}

body.home.tl-home-commerce-preview .sendy-newsletter-overlay {
  display: none !important;
}

/* ---- section rhythm ------------------------------------------------------ */
body.home.tl-home-commerce-preview .tl-commerce-home {
  display: grid;
  gap: 2.4rem;
  margin: 0 0 2.6rem;
}

body.home.tl-home-commerce-preview .tl-commerce-shell,
body.home.tl-home-commerce-preview .tl-commerce-live,
body.home.tl-home-commerce-preview .tl-commerce-flights {
  min-width: 0;
  max-width: 100%;
  background: transparent;
}

body.home.tl-home-commerce-preview .tl-commerce-shell {
  padding: 0;
}

body.home.tl-home-commerce-preview .tl-commerce-live,
body.home.tl-home-commerce-preview .tl-commerce-flights {
  padding-top: 2rem;
  border-top: 1px solid var(--tlc-hair);
}

/* ---- primary header (calm) ---------------------------------------------- */
body.home.tl-home-commerce-preview .tl-commerce-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.4rem 1.4rem;
}

body.home.tl-home-commerce-preview .tl-commerce-head > div {
  min-width: 0;
}

body.home.tl-home-commerce-preview .tl-commerce-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0 0 0.5rem;
  color: var(--tlc-teal);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.home.tl-home-commerce-preview .tl-commerce-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tlc-green);
  box-shadow: 0 0 0 3px rgba(25, 143, 70, 0.16);
}

body.home.tl-home-commerce-preview .tl-commerce-head h2 {
  margin: 0;
  color: var(--tlc-ink);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.018em;
}

body.home.tl-home-commerce-preview .tl-commerce-head p {
  max-width: 680px;
  margin: 0.55rem 0 0;
  color: var(--tlc-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

body.home.tl-home-commerce-preview .tl-commerce-head .tl-commerce-freshness-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: auto;
  max-width: 100%;
  margin-top: 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tlc-faint);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

body.home.tl-home-commerce-preview .tl-commerce-freshness-line time {
  color: var(--tlc-green-deep);
}

body.home.tl-home-commerce-preview .tl-commerce-head__link {
  flex: 0 0 auto;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--tlc-blue);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}

body.home.tl-home-commerce-preview .tl-commerce-head__link::after {
  content: "→";
  transition: transform 160ms ease;
}

/* ---- tabs (refined segmented control) ----------------------------------- */
body.home.tl-home-commerce-preview .tl-commerce-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  gap: 0.2rem;
  margin: 1.35rem 0 1.25rem;
  padding: 0.28rem;
  border: 1px solid var(--tlc-hair);
  border-radius: 999px;
  background: var(--tlc-surface);
  overflow-x: auto;
  scrollbar-width: none;
}

body.home.tl-home-commerce-preview .tl-commerce-tabs::-webkit-scrollbar {
  display: none;
}

body.home.tl-home-commerce-preview .tl-commerce-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tlc-muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

body.home.tl-home-commerce-preview .tl-commerce-tab.is-active {
  background: var(--tlc-card);
  color: var(--tlc-green-deep);
  box-shadow: var(--tlc-shadow-card), 0 1px 0 rgba(20, 34, 47, 0.04);
}

body.home.tl-home-commerce-preview .tl-commerce-panel[hidden] {
  display: none;
}

/* ---- deal grid: bento with a dominant lead ------------------------------ */
body.home.tl-home-commerce-preview .tl-commerce-deal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.15rem;
}

/* show a clean 1 lead + 4 supporting bento above the fold */
body.home.tl-home-commerce-preview .tl-commerce-deal-grid > .tl-commerce-deal-card:nth-child(n + 6) {
  display: none;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 0;
  border-radius: var(--tlc-radius-img);
  background: transparent;
  color: var(--tlc-ink);
  text-decoration: none;
  transition: transform 200ms ease;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card--lead {
  grid-column: span 2;
  grid-row: span 2;
}

/* media ------------------------------------------------------------------- */
body.home.tl-home-commerce-preview .tl-commerce-deal-card__media,
body.home.tl-home-commerce-preview .tl-commerce-live-card__image,
body.home.tl-home-commerce-preview .tl-commerce-flight-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--tlc-radius-img);
  background: #e9f0ec;
  box-shadow: var(--tlc-shadow-card);
  transition: box-shadow 200ms ease;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card__media {
  aspect-ratio: 16 / 10;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card--lead .tl-commerce-deal-card__media {
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: 290px;
}

/* safety net: if a tab has fewer than 5 cards (sparse data day), drop the
   2x2 lead span so the grid never shows an empty bento cell. */
body.home.tl-home-commerce-preview .tl-commerce-deal-grid:not(:has(> .tl-commerce-deal-card:nth-child(5))) .tl-commerce-deal-card--lead {
  grid-column: auto;
  grid-row: auto;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-grid:not(:has(> .tl-commerce-deal-card:nth-child(5))) .tl-commerce-deal-card--lead .tl-commerce-deal-card__media {
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  min-height: 0;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-grid:not(:has(> .tl-commerce-deal-card:nth-child(5))) .tl-commerce-deal-card--lead strong {
  font-size: 1.02rem;
  line-height: 1.26;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-grid:not(:has(> .tl-commerce-deal-card:nth-child(5))) .tl-commerce-deal-card--lead .tl-commerce-deal-card__meta > span:last-child b {
  font-size: 1.28rem;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-grid:not(:has(> .tl-commerce-deal-card:nth-child(5))) .tl-commerce-deal-card--lead .tl-commerce-deal-card__cta {
  display: none;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-grid:not(:has(> .tl-commerce-deal-card:nth-child(5))) .tl-commerce-deal-card--lead .tl-commerce-deal-card__badge {
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.32rem 0.6rem;
  font-size: 0.72rem;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 22, 31, 0.34) 0%, rgba(12, 22, 31, 0) 32%, rgba(12, 22, 31, 0) 70%, rgba(12, 22, 31, 0.04) 100%);
  pointer-events: none;
}

body.home.tl-home-commerce-preview .tl-commerce-defer-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.03);
  transition: transform 420ms ease;
}

body.home.tl-home-commerce-preview .tl-commerce-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(25, 143, 70, 0.14), rgba(11, 115, 112, 0.1)), #eef7f2;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card__badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  max-width: calc(100% - 1.4rem);
  padding: 0.32rem 0.6rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(11, 22, 31, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card--lead .tl-commerce-deal-card__badge {
  top: 0.95rem;
  left: 0.95rem;
  font-size: 0.78rem;
  padding: 0.42rem 0.78rem;
}

/* body -------------------------------------------------------------------- */
body.home.tl-home-commerce-preview .tl-commerce-deal-card__body {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 0.85rem 0.15rem 0.2rem;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card--lead .tl-commerce-deal-card__body {
  padding: 1rem 0.25rem 0.3rem;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card__fresh {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  margin: 0 0 0.4rem;
  overflow: hidden;
  color: var(--tlc-faint);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card__fresh::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tlc-green);
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--tlc-ink);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.008em;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card--lead strong {
  font-size: 1.5rem;
  line-height: 1.16;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* price + count ----------------------------------------------------------- */
body.home.tl-home-commerce-preview .tl-commerce-deal-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.7rem;
  margin-top: 0.55rem;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card__meta > span {
  color: var(--tlc-faint);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

/* price span is rendered last in markup → pull it first and emphasise it */
body.home.tl-home-commerce-preview .tl-commerce-deal-card__meta > span:last-child {
  order: -1;
  color: var(--tlc-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card__meta > span:last-child b {
  color: var(--tlc-green-deep);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card--lead .tl-commerce-deal-card__meta > span:last-child b {
  font-size: 1.65rem;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card__cta {
  display: none;
  width: max-content;
  max-width: 100%;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  background: var(--tlc-ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card--lead .tl-commerce-deal-card__cta {
  display: inline-flex;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-card__cta::after {
  content: "→";
  margin-left: 0.45rem;
}

/* ---- secondary sections: live + flights (subtler) ----------------------- */
body.home.tl-home-commerce-preview .tl-commerce-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

body.home.tl-home-commerce-preview .tl-commerce-section-head span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0 0 0.32rem;
  color: var(--tlc-teal);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.home.tl-home-commerce-preview .tl-commerce-section-head h2 {
  margin: 0;
  color: var(--tlc-ink-soft);
  font-size: 1.26rem;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

body.home.tl-home-commerce-preview .tl-commerce-section-head a {
  flex: 0 0 auto;
  align-self: flex-end;
  color: var(--tlc-blue);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}

body.home.tl-home-commerce-preview .tl-commerce-section-head a::after {
  content: "→";
  margin-left: 0.34rem;
}

body.home.tl-home-commerce-preview .tl-commerce-live-grid,
body.home.tl-home-commerce-preview .tl-commerce-flight-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

body.home.tl-home-commerce-preview .tl-commerce-live-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.home.tl-home-commerce-preview .tl-commerce-flight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.home.tl-home-commerce-preview .tl-commerce-live-card,
body.home.tl-home-commerce-preview .tl-commerce-flight-card {
  display: flex;
  min-width: 0;
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem;
  border: 0;
  border-radius: var(--tlc-radius-sm);
  background: transparent;
  color: var(--tlc-ink);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

body.home.tl-home-commerce-preview .tl-commerce-live-card__image,
body.home.tl-home-commerce-preview .tl-commerce-flight-card__media {
  flex: 0 0 96px;
  align-self: stretch;
  min-height: 84px;
  border-radius: var(--tlc-radius-sm);
  box-shadow: none;
}

body.home.tl-home-commerce-preview .tl-commerce-live-card__image::after,
body.home.tl-home-commerce-preview .tl-commerce-flight-card__media::after {
  display: none;
}

body.home.tl-home-commerce-preview .tl-commerce-live-card__body,
body.home.tl-home-commerce-preview .tl-commerce-flight-card__body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  padding: 0.1rem 0.2rem 0.1rem 0;
}

body.home.tl-home-commerce-preview .tl-commerce-flight-card__body > time,
body.home.tl-home-commerce-preview .tl-commerce-flight-card__body > span,
body.home.tl-home-commerce-preview .tl-commerce-live-card__body > span {
  display: block;
  margin: 0 0 0.22rem;
  overflow: hidden;
  color: var(--tlc-faint);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home.tl-home-commerce-preview .tl-commerce-live-card strong,
body.home.tl-home-commerce-preview .tl-commerce-flight-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--tlc-ink);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.005em;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

body.home.tl-home-commerce-preview .tl-commerce-live-card small,
body.home.tl-home-commerce-preview .tl-commerce-flight-card small {
  display: block;
  min-height: 1.1em;
  margin: 0.26rem 0 0;
  overflow: hidden;
  color: var(--tlc-muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home.tl-home-commerce-preview .tl-commerce-live-card b,
body.home.tl-home-commerce-preview .tl-commerce-flight-card b {
  display: block;
  margin-top: 0.32rem;
  color: var(--tlc-green-deep);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---- czytelnia "zobacz też" (kept subtle) ------------------------------- */
body.home.tl-home-commerce-preview .featured-articles.full_width {
  margin-top: 2.4rem !important;
  margin-bottom: 2.75rem !important;
}

body.home.tl-home-commerce-preview .featured-articles.full_width::before {
  content: "Inspiracje z Czytelni";
  grid-column: 1 / -1;
  display: block;
  margin: 0 0 0.85rem;
  color: var(--tlc-ink);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

body.home.tl-home-commerce-preview .tl-commerce-czytelnia {
  box-sizing: border-box;
  max-width: var(--tlc-max);
  width: min(100%, var(--tlc-max));
  margin: 2.4rem auto 2.75rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--tlc-hair);
}

body.home.tl-home-commerce-preview .tl-commerce-section-head--compact h2 {
  font-size: 1.2rem;
}

body.home.tl-home-commerce-preview .tl-commerce-czytelnia-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

body.home.tl-home-commerce-preview .tl-commerce-czytelnia-item {
  min-width: 0;
}

body.home.tl-home-commerce-preview .tl-commerce-czytelnia-item a {
  display: flex;
  min-width: 0;
  min-height: 88px;
  gap: 0.7rem;
  align-items: center;
  padding: 0.5rem;
  border: 0;
  border-radius: var(--tlc-radius-sm);
  background: transparent;
  color: var(--tlc-ink);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

body.home.tl-home-commerce-preview .tl-commerce-czytelnia-item img {
  flex: 0 0 84px;
  width: 84px;
  height: 64px;
  border-radius: 9px;
  object-fit: cover;
}

body.home.tl-home-commerce-preview .tl-commerce-czytelnia-item span {
  display: block;
  min-width: 0;
}

body.home.tl-home-commerce-preview .tl-commerce-czytelnia-item small {
  display: block;
  margin-bottom: 0.24rem;
  overflow: hidden;
  color: var(--tlc-teal);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

body.home.tl-home-commerce-preview .tl-commerce-czytelnia-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--tlc-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.005em;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ---- focus + hover ------------------------------------------------------ */
body.home.tl-home-commerce-preview a:focus-visible,
body.home.tl-home-commerce-preview button:focus-visible,
body.home.tl-home-commerce-preview input:focus-visible {
  outline: 3px solid rgba(247, 185, 40, 0.8);
  outline-offset: 3px;
}

@media (hover: hover) {
  body.home.tl-home-commerce-preview .tl-commerce-deal-card:hover {
    transform: translateY(-4px);
  }

  body.home.tl-home-commerce-preview .tl-commerce-deal-card:hover .tl-commerce-deal-card__media {
    box-shadow: var(--tlc-shadow-lift);
  }

  body.home.tl-home-commerce-preview .tl-commerce-deal-card:hover .tl-commerce-defer-img {
    transform: scale(1.045);
  }

  body.home.tl-home-commerce-preview .tl-commerce-live-card:hover,
  body.home.tl-home-commerce-preview .tl-commerce-flight-card:hover,
  body.home.tl-home-commerce-preview .tl-commerce-czytelnia-item a:hover {
    background: var(--tlc-surface);
  }

  body.home.tl-home-commerce-preview .tl-commerce-head__link:hover::after,
  body.home.tl-home-commerce-preview .tl-commerce-section-head a:hover::after {
    transform: translateX(3px);
  }
}

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  body.home.tl-home-commerce-preview .tl-commerce-deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home.tl-home-commerce-preview .tl-commerce-deal-card--lead {
    grid-column: span 2;
    grid-row: auto;
  }

  body.home.tl-home-commerce-preview .tl-commerce-deal-card--lead .tl-commerce-deal-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  body.home.tl-home-commerce-preview .tl-commerce-live-grid,
  body.home.tl-home-commerce-preview .tl-commerce-flight-grid,
  body.home.tl-home-commerce-preview .tl-commerce-czytelnia-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.home.tl-home-commerce-preview #content_wrapper.container {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  body.home.tl-home-commerce-preview .tl-commerce-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.home.tl-home-commerce-preview .tl-commerce-head__link {
    align-self: start;
    margin-top: 0.65rem;
  }

  body.home.tl-home-commerce-preview .tl-commerce-head h2 {
    font-size: 1.7rem;
  }

  body.home.tl-home-commerce-preview .tl-commerce-deal-card--lead strong {
    font-size: 1.32rem;
  }
}

@media (max-width: 600px) {
  body.home.tl-home-commerce-preview .tl-commerce-deal-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  body.home.tl-home-commerce-preview .tl-commerce-deal-card--lead {
    grid-column: auto;
  }

  body.home.tl-home-commerce-preview .tl-commerce-deal-grid > .tl-commerce-deal-card:nth-child(n + 5) {
    display: none;
  }

  body.home.tl-home-commerce-preview .tl-commerce-deal-card__media {
    aspect-ratio: 16 / 10;
  }

  body.home.tl-home-commerce-preview .tl-commerce-live-grid,
  body.home.tl-home-commerce-preview .tl-commerce-flight-grid,
  body.home.tl-home-commerce-preview .tl-commerce-czytelnia-list {
    grid-template-columns: 1fr;
  }

  body.home.tl-home-commerce-preview .tl-commerce-tabs {
    width: 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home.tl-home-commerce-preview .tl-commerce-deal-card,
  body.home.tl-home-commerce-preview .tl-commerce-defer-img,
  body.home.tl-home-commerce-preview .tl-commerce-live-card,
  body.home.tl-home-commerce-preview .tl-commerce-flight-card,
  body.home.tl-home-commerce-preview .tl-commerce-czytelnia-item a,
  body.home.tl-home-commerce-preview .tl-commerce-tab,
  body.home.tl-home-commerce-preview .tl-commerce-head__link::after,
  body.home.tl-home-commerce-preview .tl-commerce-section-head a::after {
    transition: none;
  }
}

/* ---- commerce discovery v2 (concept: 019f54f8...) ---------------------- */
body.home.tl-home-commerce-preview #content_wrapper.container,
body.home.tl-home-premium-v2.tl-home-polish-v3.tl-home-commerce-preview #content_wrapper.container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home.tl-home-commerce-preview .tl-commerce-home {
  display: block;
  margin-bottom: 2.8rem;
}

body.home.tl-home-commerce-preview .tl-commerce-proofbar {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid var(--tlc-hair);
  border-bottom: 1px solid var(--tlc-hair);
  background: rgba(255, 255, 255, 0.96);
}

body.home.tl-home-commerce-preview .tl-commerce-proofbar__inner {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 0;
  padding: 0 1.15rem;
}

body.home.tl-home-commerce-preview .tl-commerce-proofbar__inner > span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 1.35rem;
  border-right: 1px solid var(--tlc-hair-strong);
  color: var(--tlc-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

body.home.tl-home-commerce-preview .tl-commerce-proofbar__inner > span:first-child {
  padding-left: 0;
}

body.home.tl-home-commerce-preview .tl-commerce-proofbar__inner > span:last-child {
  border-right: 0;
}

body.home.tl-home-commerce-preview .tl-commerce-proofbar__fresh {
  margin-left: auto;
  padding-right: 0 !important;
}

body.home.tl-home-commerce-preview .tl-commerce-proofbar__fresh i {
  width: 6px;
  height: 6px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--tlc-green);
  box-shadow: 0 0 0 3px rgba(25, 143, 70, 0.12);
}

body.home.tl-home-commerce-preview .tl-commerce-proofbar__fresh time {
  margin-left: 0.5rem;
  color: var(--tlc-faint);
}

body.home.tl-home-commerce-preview #tl-commerce-deals {
  padding-top: 1.3rem;
}

body.home.tl-home-commerce-preview .tl-commerce-head--discovery {
  display: block;
}

body.home.tl-home-commerce-preview .tl-commerce-head--discovery h2 {
  font-size: 1.78rem;
}

body.home.tl-home-commerce-preview .tl-commerce-head--discovery p {
  max-width: 760px;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

body.home.tl-home-commerce-preview .tl-commerce-product-tabs {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.24rem;
  border-radius: 10px;
  background: #eef2f6;
}

body.home.tl-home-commerce-preview .tl-commerce-product-tab {
  min-width: 116px;
  min-height: 38px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tlc-ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: none;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

body.home.tl-home-commerce-preview .tl-commerce-product-tab.is-active {
  background: #0b67d3;
  color: #fff;
  box-shadow: 0 5px 14px rgba(11, 103, 211, 0.2);
}

body.home.tl-home-commerce-preview .tl-commerce-product-panel[hidden],
body.home.tl-home-commerce-preview .tl-commerce-intent-panel[hidden] {
  display: none !important;
}

body.home.tl-home-commerce-preview .tl-commerce-discovery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.65rem;
  align-items: start;
  margin-top: 0.75rem;
}

body.home.tl-home-commerce-preview .tl-commerce-discovery-main {
  min-width: 0;
}

body.home.tl-home-commerce-preview .tl-commerce-intent-tabs {
  display: flex;
  max-width: 100%;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
  overflow-x: auto;
  scrollbar-width: none;
}

body.home.tl-home-commerce-preview .tl-commerce-intent-tabs::-webkit-scrollbar {
  display: none;
}

body.home.tl-home-commerce-preview .tl-commerce-intent-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 0.9rem;
  border: 1px solid var(--tlc-hair-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--tlc-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
  transition: border 150ms ease, color 150ms ease, background 150ms ease;
}

body.home.tl-home-commerce-preview .tl-commerce-intent-tab.is-active {
  border-color: rgba(11, 103, 211, 0.38);
  background: #f4f8ff;
  color: #0b67d3;
}

body.home.tl-home-commerce-preview .tl-commerce-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--tlc-hair-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--tlc-ink);
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(20, 34, 47, 0.035);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e7eef2;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 22, 31, 0.16), transparent 36%);
  pointer-events: none;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__badge {
  position: absolute;
  z-index: 1;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.32rem 0.55rem;
  border-radius: 6px;
  background: #d91669;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0.72rem 0.72rem 0.68rem;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__location {
  overflow: hidden;
  color: var(--tlc-muted);
  font-size: 0.68rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card strong {
  display: -webkit-box;
  min-height: 2.45em;
  margin-top: 0.28rem;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__stars {
  margin-left: 0.25rem;
  color: #1d2b36;
  font-size: 0.65rem;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__facts {
  display: flex;
  min-height: 3.35em;
  flex-direction: column;
  gap: 0.17rem;
  margin-top: 0.45rem;
  color: var(--tlc-muted);
  font-size: 0.67rem;
  line-height: 1.22;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__date {
  color: var(--tlc-ink-soft);
  font-weight: 750;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__rating {
  align-self: flex-start;
  margin-top: 0.4rem;
  color: var(--tlc-muted);
  font-size: 0.67rem;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__rating b {
  display: inline-flex;
  min-width: 27px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  margin-right: 0.25rem;
  border-radius: 5px;
  background: #087d83;
  color: #fff;
  font-size: 0.66rem;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.45rem;
  margin: auto -0.72rem -0.68rem;
  padding: 0.58rem 0.72rem;
  border-top: 1px solid var(--tlc-hair);
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__footer > b {
  color: var(--tlc-green-deep);
  font-size: 0.96rem;
  font-weight: 900;
  white-space: nowrap;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__footer > b small {
  font-size: 0.62rem;
  font-weight: 700;
}

body.home.tl-home-commerce-preview .tl-commerce-package-card__footer > span {
  overflow: hidden;
  color: var(--tlc-faint);
  font-size: 0.57rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-grid--compact .tl-commerce-deal-card {
  grid-column: auto;
  grid-row: auto;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-grid--compact .tl-commerce-deal-card__media {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

body.home.tl-home-commerce-preview .tl-commerce-deal-grid--compact .tl-commerce-deal-card__cta {
  display: none;
}

body.home.tl-home-commerce-preview .tl-commerce-more-link {
  display: table;
  margin: 0.9rem auto 0;
  color: #0b67d3;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

body.home.tl-home-commerce-preview .tl-commerce-more-link::after {
  content: " →";
}

body.home.tl-home-commerce-preview .tl-commerce-flight-rail {
  overflow: hidden;
  border: 1px solid var(--tlc-hair-strong);
  border-radius: 14px;
  background: #fff;
}

body.home.tl-home-commerce-preview .tl-commerce-flight-rail h3 {
  margin: 0;
  padding: 0.95rem 1rem 0.75rem;
  color: var(--tlc-ink);
  font-size: 1rem;
  font-weight: 850;
}

body.home.tl-home-commerce-preview .tl-commerce-flight-rail__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 10px;
  gap: 0.45rem;
  align-items: center;
  min-height: 62px;
  padding: 0.65rem 0.8rem;
  border-top: 1px solid var(--tlc-hair);
  color: var(--tlc-ink);
  text-decoration: none;
  transition: background 150ms ease;
}

body.home.tl-home-commerce-preview .tl-commerce-flight-rail__route,
body.home.tl-home-commerce-preview .tl-commerce-flight-rail__price {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.22rem;
}

body.home.tl-home-commerce-preview .tl-commerce-flight-rail__route strong {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home.tl-home-commerce-preview .tl-commerce-flight-rail__route small,
body.home.tl-home-commerce-preview .tl-commerce-flight-rail__price small {
  overflow: hidden;
  color: var(--tlc-faint);
  font-size: 0.59rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home.tl-home-commerce-preview .tl-commerce-flight-rail__price {
  align-items: flex-end;
}

body.home.tl-home-commerce-preview .tl-commerce-flight-rail__price b {
  color: var(--tlc-green-deep);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

body.home.tl-home-commerce-preview .tl-commerce-flight-rail__arrow {
  color: var(--tlc-faint);
  font-size: 1.2rem;
}

body.home.tl-home-commerce-preview .tl-commerce-flight-rail__more {
  display: block;
  padding: 0.8rem;
  border-top: 1px solid var(--tlc-hair);
  color: #0b67d3;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

body.home.tl-home-commerce-preview .tl-commerce-flights-focus {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0.8rem;
}

body.home.tl-home-commerce-preview .tl-commerce-flights-focus h3 {
  margin: 0.1rem 0 0;
  font-size: 1.08rem;
  font-weight: 850;
}

body.home.tl-home-commerce-preview .tl-commerce-flights-focus > a {
  color: #0b67d3;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

body.home.tl-home-commerce-preview .tl-commerce-flight-grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

body.home.tl-home-commerce-preview .tl-commerce-popular-links {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tlc-hair);
}

body.home.tl-home-commerce-preview .tl-commerce-popular-links > strong {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  font-weight: 850;
}

body.home.tl-home-commerce-preview .tl-commerce-popular-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
}

body.home.tl-home-commerce-preview .tl-commerce-popular-links a {
  padding: 0 0.85rem;
  border-right: 1px solid var(--tlc-hair-strong);
  color: #0b67d3;
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
}

body.home.tl-home-commerce-preview .tl-commerce-popular-links a:first-child {
  padding-left: 0;
}

body.home.tl-home-commerce-preview .tl-commerce-popular-links a:last-child {
  border-right: 0;
}

body.home.tl-home-commerce-preview .tl-commerce-popular-links small {
  color: var(--tlc-muted);
  font-size: 0.66rem;
  font-weight: 600;
}

@media (hover: hover) {
  body.home.tl-home-commerce-preview .tl-commerce-package-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tlc-shadow-lift);
  }

  body.home.tl-home-commerce-preview .tl-commerce-package-card:hover .tl-commerce-defer-img {
    transform: scale(1.035);
  }

  body.home.tl-home-commerce-preview .tl-commerce-flight-rail__item:hover {
    background: #f7f9fb;
  }
}

@media (max-width: 1080px) {
  body.home.tl-home-commerce-preview .tl-commerce-discovery-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  body.home.tl-home-commerce-preview .tl-commerce-package-grid,
  body.home.tl-home-commerce-preview .tl-commerce-deal-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home.tl-home-commerce-preview .tl-commerce-proofbar__inner > span:nth-child(3) {
    display: none;
  }
}

@media (max-width: 820px) {
  body.home.tl-home-commerce-preview .tl-commerce-proofbar__inner {
    min-height: 44px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.home.tl-home-commerce-preview .tl-commerce-proofbar__inner::-webkit-scrollbar {
    display: none;
  }

  body.home.tl-home-commerce-preview .tl-commerce-proofbar__inner > span {
    flex: 0 0 auto;
    padding: 0 0.8rem;
    font-size: 0.66rem;
  }

  body.home.tl-home-commerce-preview .tl-commerce-proofbar__fresh {
    margin-left: 0;
  }

  body.home.tl-home-commerce-preview .tl-commerce-proofbar__fresh time {
    display: none;
  }

  body.home.tl-home-commerce-preview .tl-commerce-head--discovery h2 {
    font-size: 1.45rem;
  }

  body.home.tl-home-commerce-preview .tl-commerce-discovery-grid {
    grid-template-columns: 1fr;
  }

  body.home.tl-home-commerce-preview .tl-commerce-flight-rail {
    margin-top: 0.25rem;
  }
}

@media (max-width: 600px) {
  body.home.tl-home-commerce-preview #content_wrapper.container,
  body.home.tl-home-premium-v2.tl-home-polish-v3.tl-home-commerce-preview #content_wrapper.container {
    margin-top: 0 !important;
    padding-right: 0.9rem !important;
    padding-left: 0.9rem !important;
    padding-top: 0 !important;
  }

  body.home.tl-home-commerce-preview #tl-commerce-deals {
    padding-top: 1.05rem;
  }

  body.home.tl-home-commerce-preview .tl-commerce-proofbar__inner {
    justify-content: center;
  }

  body.home.tl-home-commerce-preview .tl-commerce-proofbar__inner > span:nth-child(1),
  body.home.tl-home-commerce-preview .tl-commerce-proofbar__inner > span:nth-child(2),
  body.home.tl-home-commerce-preview .tl-commerce-proofbar__inner > span:nth-child(3) {
    display: none;
  }

  body.home.tl-home-commerce-preview .tl-commerce-proofbar__fresh {
    margin-left: 0;
    padding: 0 !important;
    border-right: 0;
  }

  body.home.tl-home-commerce-preview .tl-commerce-head--discovery p {
    font-size: 0.8rem;
  }

  body.home.tl-home-commerce-preview .tl-commerce-product-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.home.tl-home-commerce-preview .tl-commerce-product-tab {
    min-width: 0;
  }

  body.home.tl-home-commerce-preview .tl-commerce-package-grid,
  body.home.tl-home-commerce-preview .tl-commerce-deal-grid--compact {
    display: grid;
    grid-auto-columns: min(82vw, 310px);
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0 0 0.35rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.home.tl-home-commerce-preview .tl-commerce-package-grid::-webkit-scrollbar,
  body.home.tl-home-commerce-preview .tl-commerce-deal-grid--compact::-webkit-scrollbar {
    display: none;
  }

  body.home.tl-home-commerce-preview .tl-commerce-package-card,
  body.home.tl-home-commerce-preview .tl-commerce-deal-grid--compact .tl-commerce-deal-card {
    scroll-snap-align: start;
  }

  body.home.tl-home-commerce-preview .tl-commerce-flight-grid--featured {
    grid-template-columns: 1fr;
  }

  body.home.tl-home-commerce-preview .tl-commerce-flights-focus {
    align-items: start;
    flex-direction: column;
  }

  body.home.tl-home-commerce-preview .tl-commerce-popular-links > div {
    gap: 0.55rem;
  }

  body.home.tl-home-commerce-preview .tl-commerce-popular-links a {
    padding: 0;
    border-right: 0;
  }
}
