/* Skarpetoraj — blog (lista wpisów i wpis). Pod .sk-shop: te same tokeny, karty produktów i okruszki co w sklepie. */

.skb { background: #fff; }
/* main.css ma overflow-x: hidden na body - wtedy body przewija się samo i pasek boczny wpisu nie „przykleja się”.
   clip też chowa poziomy pasek przewijania, ale nie psuje position: sticky. */
@supports (overflow: clip) { body.single-post { overflow-x: clip; } }
.skb a { color: inherit; }

/* ── Wspólne ── */
.skb-eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cta); text-decoration: none; margin-bottom: 12px;
}
.skb-h1 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; color: var(--ink);
  font-size: clamp(40px, 9vw, 76px); line-height: .92; letter-spacing: .005em; margin: 0 0 16px; text-wrap: balance;
}
.skb-h2 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; color: var(--ink);
  font-size: clamp(30px, 5vw, 44px); line-height: .95; margin: 0; text-wrap: balance;
}
.skb-lead { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 680px; text-wrap: pretty; }
.skb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.skb-meta > * + *::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line); margin-right: 14px; vertical-align: middle; }
.skb-meta__cat { font-weight: 700; color: var(--cta) !important; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.skb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  background: var(--cta); color: #fff !important; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; font-size: 19px; letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 0 8px 20px -8px rgba(214,24,63,.6); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.skb-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(214,24,63,.7); }
.skb-btn--ink { background: var(--ink); box-shadow: none; }
.skb-btn--ink:hover { background: #33263b; box-shadow: none; }
.skb-btn--hi { background: var(--hi); color: var(--ink) !important; box-shadow: none; }
.skb-btn--hi:hover { box-shadow: 0 10px 24px -10px rgba(255,214,74,.7); }

.skb-section { padding: 48px 0; }
.skb-section--soft { background: var(--soft); padding: 28px 0; }
.skb-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.skb-section__hint { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.skb-section__link { font-weight: 700; color: var(--cta) !important; text-underline-offset: 3px; }

/* ── Korzyści sklepu ── */
.skb-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.skb-perks li { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.skb-perks svg { flex: none; }
.skb-perks b { display: block; color: var(--ink); font-size: 14.5px; }

/* ══ Lista wpisów ══ */
.skb-list__head { padding: 18px 0 28px; }
.skb-list__head .skb-h1 { margin-top: 14px; }
.skb-chips { display: flex; gap: 8px; overflow-x: auto; margin: 22px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.skb-chips::-webkit-scrollbar { display: none; }
.skb-chips a {
  flex: none; height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px;
  border: 2px solid var(--line); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink); background: #fff;
}
.skb-chips a:hover { border-color: var(--ink); }
.skb-chips a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.skb-empty { padding: 40px 0; color: var(--muted); }

.skb-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.skb-card__img { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--soft); }
.skb-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.skb-card:hover .skb-card__img img { transform: scale(1.04); }
.skb-card__body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.skb-card__title { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 27px; line-height: .98; text-wrap: balance; }
.skb-card__title a { text-decoration: none; }
.skb-card__title a:hover { color: var(--cta); }
.skb-card__excerpt { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.skb-card--big { margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.skb-card--big .skb-card__img { aspect-ratio: 16 / 10; }
.skb-card--big .skb-card__title { font-size: clamp(34px, 6vw, 52px); line-height: .94; }
.skb-card--big .skb-card__excerpt { font-size: 17px; }
.skb-card--big .skb-btn { margin-top: 6px; }
.skb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 28px; }
.skb-pages { display: flex; justify-content: center; gap: 6px; margin: 44px 0 8px; flex-wrap: wrap; }
.skb-pages .page-numbers {
  min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line); border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skb-pages .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ══ Wpis ══ */
.skb-hero { padding: 18px 0 8px; }
.skb-hero__text { max-width: 860px; margin: 30px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.skb-hero .skb-lead { margin: 0 auto; }
.skb-meta--hero { justify-content: center; margin-top: 22px; }
.skb-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.skb-author img { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); }
.skb-hero__img { margin: 32px -16px 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.skb-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.skb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 56px; }
.skb-side { display: none; }

/* Treść */
.skb-content { font-size: 17.5px; line-height: 1.72; color: #2c2232; max-width: 720px; width: 100%; margin: 0 auto; }
.skb-content > *:first-child { margin-top: 0; }
.skb-content p { margin: 0 0 1.15em; text-wrap: pretty; }
.skb-content a:not(.skb-btn):not(.skc__name) { color: var(--cta); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.skb-content a:not(.skb-btn):not(.skc__name):hover { color: var(--ink); }
.skb-content strong, .skb-content b { color: var(--ink); }
.skb-content h2 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; color: var(--ink);
  font-size: clamp(32px, 5.5vw, 42px); line-height: .96; margin: 1.6em 0 .55em; scroll-margin-top: 90px; text-wrap: balance;
}
.skb-content h3 { font-family: var(--f-body); font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--ink); margin: 1.5em 0 .5em; }
.skb-content ul, .skb-content ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.skb-content li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.skb-content ul li::before { content: ''; position: absolute; left: 6px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--cta); transform: rotate(45deg); }
.skb-content ol { counter-reset: skb; }
.skb-content ol li { counter-increment: skb; }
.skb-content ol li::before {
  content: counter(skb); position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 22px; text-align: center;
}
.skb-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--cta); font-size: 21px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.skb-content blockquote p:last-child { margin: 0; }
.skb-content figure { margin: 1.8em 0; }
.skb-content figure img, .skb-content p > img { width: 100%; border-radius: 14px; }
.skb-content figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; text-align: center; }
.skb-content .wp-block-image.alignwide, .skb-content .alignwide { margin-left: 0; margin-right: 0; }
.skb-content hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }

/* Tabela (np. porównanie materiałów) */
.skb-content .wp-block-table, .skb-content .skb-table { margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.skb-content table { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.skb-content th { background: var(--ink); color: #fff; text-align: left; font-weight: 700; padding: 12px 14px; font-size: 13.5px; letter-spacing: .02em; }
.skb-content td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.skb-content tr:nth-child(even) td { background: #fffafb; }
.skb-content td:first-child { font-weight: 700; color: var(--ink); }
/* Telefon: tabela jako karty - pierwsza kolumna to nagłówek karty, reszta jako „etykieta: wartość” (data-label z inc/blog.php) */
@media (max-width: 699px) {
  .skb-content .wp-block-table, .skb-content .skb-table { overflow: visible; }
  .skb-content table:has(td[data-label]) { min-width: 0; border: 0; border-radius: 0; overflow: visible; display: block; }
  .skb-content table:has(td[data-label]) thead { display: none; }
  .skb-content table:has(td[data-label]) tbody { display: flex; flex-direction: column; gap: 10px; }
  .skb-content table:has(td[data-label]) tr { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
  .skb-content table:has(td[data-label]) td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 10px 14px; background: #fff !important; border-top: 1px solid var(--line); font-size: 15px; }
  .skb-content table:has(td[data-label]) td::before { content: attr(data-label); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
  .skb-content table:has(td[data-label]) td:first-child { display: block; border-top: 0; background: var(--ink) !important; color: #fff; font-family: var(--f-display); font-weight: 900; font-size: 22px; line-height: 1; text-transform: uppercase; padding: 13px 14px; }
  .skb-content table:has(td[data-label]) td:first-child::before { display: none; }
}

/* Spis treści w treści (telefon, tablet) */
.skb-toc--inline { margin: 0 0 32px; border: 1px solid var(--line); border-radius: 14px; background: #fffafb; }
.skb-toc--inline summary {
  list-style: none; cursor: pointer; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--f-display); font-weight: 900; font-size: 20px; text-transform: uppercase;
}
.skb-toc--inline summary::-webkit-details-marker { display: none; }
.skb-toc--inline summary span { font-family: var(--f-body); font-size: 13px; font-weight: 600; text-transform: none; color: var(--muted); }
.skb-toc--inline summary::after { content: '+'; font-family: var(--f-body); font-size: 24px; font-weight: 400; line-height: 1; color: var(--muted); transition: transform .2s; }
.skb-toc--inline[open] summary::after { transform: rotate(45deg); }
.skb-toc--inline ol { margin: 0; padding: 0 18px 16px; }
.skb .skb-toc ol { list-style: none; counter-reset: toc; margin-bottom: 0; }
.skb .skb-toc li { counter-increment: toc; padding: 0; margin: 0; }
.skb .skb-toc li::before { display: none; }
.skb-toc a {
  display: flex; gap: 10px; padding: 7px 0; font-size: 15px; line-height: 1.35; font-weight: 600;
  color: var(--ink) !important; text-decoration: none !important;
}
.skb-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-display); font-weight: 900; font-size: 15px; color: var(--cta); flex: none; width: 22px; }
.skb-toc a:hover, .skb-toc a.is-on { color: var(--cta) !important; }

/* Karty produktów w treści */
.skb-products { margin: 2em 0; padding: 22px 16px; background: #fffafb; border: 1px solid var(--line); border-radius: 16px; }
.skb-products__title { margin: 0 0 16px !important; font-family: var(--f-display); font-weight: 900; font-size: 24px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.skb-content .skc__name { font-size: 18px; }
.skb-content .skc__size { font-size: 15px; }
.skb-content .skb-products__grid--1 { grid-template-columns: minmax(0, 1fr); max-width: 300px; }

/* Polecany zestaw (duża karta) */
.skb-pick {
  margin: 2.2em 0; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 18px; overflow: hidden;
  background: var(--ink); color: #fff; box-shadow: 0 18px 40px -22px rgba(27,19,32,.55);
}
.skb-pick__img { display: block; aspect-ratio: 4 / 3; background: var(--soft); }
.skb-pick__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.skb-pick__body { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.skb-pick__tag { background: var(--hi); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.skb-pick__name { font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: .95; text-transform: uppercase; color: #fff !important; text-decoration: none !important; text-wrap: balance; }
.skb-pick__name:hover { color: var(--hi) !important; }
.skb-content .skb-pick__points { margin: 0; }
.skb-pick__points li { font-size: 15.5px; line-height: 1.45; color: var(--dark-muted); margin-bottom: 6px; padding-left: 26px; }
.skb-pick__points li::before { content: '' !important; left: 2px !important; top: .3em !important; width: 14px !important; height: 8px !important; border-radius: 0 !important; background: none !important; border-left: 2.5px solid var(--hi); border-bottom: 2.5px solid var(--hi); transform: rotate(-45deg) !important; }
.skb-pick__buy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; width: 100%; margin-top: 4px; }
.skb-pick__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.skb-pick__now { font-family: var(--f-display); font-weight: 900; font-size: 38px; line-height: .9; color: #fff; }
.skb-pick__per { background: var(--hi); color: var(--ink); font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 4px; }
.skb-pick__out { font-size: 13.5px; color: var(--dark-muted); }

/* Wskazówka */
.skb-tip { margin: 1.8em 0; padding: 18px 20px 4px; background: #fff7d6; border-radius: 14px; border-left: 5px solid var(--hi); font-size: 16.5px; }
.skb-tip__title { margin: 0 0 6px !important; font-family: var(--f-display); font-weight: 900; font-size: 21px; text-transform: uppercase; color: var(--ink); }

/* Pas „para gratis” */
.skb-band { background: var(--ink); color: #fff; padding: 40px 0; }
.skb-band__in { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.skb-band__title { margin: 0 0 8px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 6vw, 50px); line-height: .95; }
.skb-band__title em { font-style: normal; color: var(--hi); }
.skb-band__text { margin: 0; color: var(--dark-muted); font-size: 16px; max-width: 620px; }

/* Pasek z zestawem na dole (telefon) */
.skb-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(27,19,32,.08);
  animation: skb-up .25s ease;
}
.skb-sticky[hidden] { display: none; }
.skb-sticky img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.skb-sticky__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.skb-sticky__name { font-weight: 700; font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skb-sticky__price { font-family: var(--f-display); font-weight: 900; font-size: 22px; line-height: 1; color: var(--cta); }
.skb-sticky .skb-btn { min-height: 44px; padding: 0 18px; font-size: 17px; }
body.skb-bar-on .cky-btn-revisit-wrapper { bottom: calc(82px + env(safe-area-inset-bottom)) !important; transition: bottom .25s ease; }
@keyframes skb-up { from { transform: translateY(100%); } to { transform: none; } }

/* ══ Tablet / komputer ══ */
@media (min-width: 700px) {
  .skb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skb-perks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .skb-pick { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .skb-pick__img { aspect-ratio: auto; min-height: 100%; }
  .skb-pick__body { padding: 28px 28px 28px 26px; justify-content: center; }
  .skb-content .skb-products__grid--2, .skb-content .skb-products__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .skb-content .skb-products__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skb-products { padding: 26px 24px; }
  .skb-hero__img { margin: 36px 0 0; border-radius: 20px; aspect-ratio: 16 / 8; }
  .skb-band__in { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
}
@media (min-width: 941px) {
  .skb-chips { margin: 26px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .skb-list__head { padding: 22px 0 40px; }
  .skb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 32px; }
  .skb-card--big { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: center; margin-bottom: 56px; padding-bottom: 56px; }
  .skb-card--big .skb-card__img { border-radius: 20px; }
  .skb-section { padding: 64px 0; }
  .skb-section--soft { padding: 32px 0; }
  .skb-band { padding: 52px 0; }
  .skb-sticky { display: none !important; }
}
@media (min-width: 1100px) {
  .skb-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding-top: 52px; padding-bottom: 72px; }
  .skb-content { margin: 0; justify-self: end; }
  .skb-toc--inline { display: none; }
  .skb-side { display: block; }
  .skb-side__sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 28px; }
  .skb-side__title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .skb-side .skb-toc { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .skb-side__product .skc__name { font-size: 20px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skb-card__img img, .skb-btn, .skb-sticky { transition: none; animation: none; }
}
