@charset "UTF-8";
/* ============================================================
   THEME STYLE — entry point. Partiale przez @use (sass scala je przy kompilacji).
   Kompilacja: npx sass theme-style.scss:theme-style.css --style=expanded --no-source-map
   ============================================================ */
/* ============================================================
   DESIGN TOKENS — krótkie aliasy do presetów z theme.json.
   Źródło prawdy: theme.json (settings.spacing.spacingSizes + settings.custom).
   W komponentach używamy var(--space-*), var(--radius-*) itd. — nie sztywnych px.
   ============================================================ */
:root {
  /* Spacing — 1:1 do theme.json spacingSizes (xs4 sm8 md16 lg24 xl40 2xl64 3xl96 4xl128) */
  --space-xs: var(--wp--preset--spacing--xs);
  --space-sm: var(--wp--preset--spacing--sm);
  --space-md: var(--wp--preset--spacing--md);
  --space-lg: var(--wp--preset--spacing--lg);
  --space-xl: var(--wp--preset--spacing--xl);
  --space-2xl: var(--wp--preset--spacing--2-xl);
  --space-3xl: var(--wp--preset--spacing--3-xl);
  --space-4xl: var(--wp--preset--spacing--4-xl);
  /* Radius */
  --radius-sm: var(--wp--custom--radius--sm);
  --radius-md: var(--wp--custom--radius--md);
  --radius-lg: var(--wp--custom--radius--lg);
  --radius-xl: var(--wp--custom--radius--xl);
  --radius-full: var(--wp--custom--radius--full);
  /* Shadow */
  --shadow-sm: var(--wp--custom--shadow--sm);
  --shadow-md: var(--wp--custom--shadow--md);
  --shadow-lg: var(--wp--custom--shadow--lg);
  --shadow-ring: var(--wp--custom--shadow--ring);
  /* Motion */
  --transition: var(--wp--custom--transition--duration) var(--wp--custom--transition--ease);
  /* Layout (szerokości kontenerów) */
  --layout-narrow: var(--wp--custom--layout--narrow);
  --layout-content: var(--wp--custom--layout--content);
  --layout-wide: var(--wp--custom--layout--wide);
}

/* ============================================================
   TYPOGRAFIA — nagłówki (.heading-N / .has-hN-font-size) i tekst (.has-text-*).
   Rozmiar/interlinia nadaje preset (kontroler "Rozmiar liter"), nie znacznik h1-h6
   (reset gołych tagów jest w assets/scss/global.scss). Źródło presetów: theme.json.
   ============================================================ */
body .heading,
body .heading * {
  font-family: var(--ffont);
}
body .heading-1,
body .heading-1 *,
body .has-heading-1-font-size {
  font-size: 60px;
  font-weight: 400;
  line-height: 150%;
  font-family: var(--ffont);
}
body .heading-2,
body .heading-2 *,
body .has-heading-2-font-size {
  font-size: 30px;
  font-weight: bold;
  line-height: 150%;
  font-family: var(--ffont);
}
body .heading-3,
body .heading-3 *,
body .has-heading-3-font-size {
  font-size: 24px;
  font-weight: bold;
  line-height: 150%;
  font-family: var(--ffont);
}
body .heading-4,
body .heading-4 *,
body .has-heading-4-font-size {
  font-size: 19px;
  font-weight: bold;
  line-height: 150%;
  font-family: var(--ffont);
}
body .heading-5,
body .heading-5 *,
body .has-heading-5-font-size {
  font-size: 16px;
  font-weight: bold;
  line-height: 150%;
  font-family: var(--ffont);
}
body .heading-6,
body .heading-6 *,
body .has-heading-6-font-size {
  font-size: 14px;
  font-weight: bold;
  line-height: 150%;
  font-family: var(--ffont);
}
body .description {
  line-height: 24px;
}
body .has-text-xs-font-size {
  font-size: 12px;
  line-height: 18px;
  font-family: var(--sfont);
}
body .has-text-smaller-font-size {
  font-size: 14px;
  line-height: 22px;
  font-family: var(--sfont);
}
body .has-text-font-size {
  font-size: 16px;
  line-height: 24px;
  font-family: var(--sfont);
}
body .has-text-bigger-font-size {
  font-size: 20px;
  line-height: 30px;
  font-family: var(--sfont);
}
body .has-text-l-font-size {
  font-size: 24px;
  line-height: 34px;
  font-family: var(--sfont);
}
body .has-text-xl-font-size {
  font-size: 30px;
  line-height: 40px;
  font-family: var(--sfont);
}
@media only screen and (max-width: 781px) {
  body .heading-1,
  body .heading-1 *,
  body .has-heading-1-font-size,
  body .wp-block-heading.has-heading-1-font-size {
    font-size: 36px !important;
    line-height: 130%;
  }
  body .heading-2,
  body .heading-2 *,
  body .has-heading-2-font-size,
  body .wp-block-heading.has-heading-2-font-size {
    font-size: 24px !important;
    line-height: 140%;
  }
  body .heading-3,
  body .heading-3 *,
  body .has-heading-3-font-size,
  body .wp-block-heading.has-heading-3-font-size {
    font-size: 20px !important;
  }
  body .heading-4,
  body .heading-4 *,
  body .has-heading-4-font-size,
  body .wp-block-heading.has-heading-4-font-size {
    font-size: 17px !important;
  }
  body .has-text-xl-font-size {
    font-size: 22px !important;
    line-height: 32px;
  }
  body .has-text-l-font-size {
    font-size: 20px !important;
    line-height: 28px;
  }
  body .has-text-bigger-font-size {
    font-size: 18px !important;
    line-height: 26px;
  }
}

/* ============================================================
   PRZYCISKI — Gutenberg core/button. 4 warianty (Typ 1/2 + Outline)
   zarejestrowane w includes/cli/button-styles.php (is-style-typ-*). theme.json
   NIE definiuje wyglądu przycisku (filtr usuwa core elements.button). Wygląd
   w całości tutaj, po klasach, na tokenach.
   ============================================================ */
body .wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border-style: solid;
  border-width: 1px;
  transition: var(--transition);
}
body .wp-block-button .wp-block-button__link::after {
  content: "→";
  font-size: 1.1em;
  line-height: 1;
  transition: transform var(--wp--custom--transition--duration) var(--wp--custom--transition--ease);
}
body .wp-block-button .wp-block-button__link:hover::after {
  transform: translateX(4px);
}
body .wp-block-button.is-style-typ-1 .wp-block-button__link {
  background: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}
body .wp-block-button.is-style-typ-1 .wp-block-button__link:hover {
  background: transparent;
  color: var(--wp--preset--color--primary);
}
body .wp-block-button.is-style-typ-1-outline .wp-block-button__link {
  background: transparent;
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}
body .wp-block-button.is-style-typ-1-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}
body .wp-block-button.is-style-typ-2 .wp-block-button__link {
  background: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--black);
}
body .wp-block-button.is-style-typ-2 .wp-block-button__link:hover {
  background: transparent;
  color: var(--wp--preset--color--white);
}
body .wp-block-button.is-style-typ-2-outline .wp-block-button__link {
  background: transparent;
  border-color: var(--wp--preset--color--gray);
  color: var(--wp--preset--color--white);
}
body .wp-block-button.is-style-typ-2-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--white);
}

/* ============================================================
   SEPARATOR — krótka pozioma kreska pod nagłówkiem (core/separator).
   Element REUŻYWALNY między blokami (hero, sekcje tekstowe...).
   W template bloku wstawiasz goły ["core/separator", {}] — wygląd jest tu,
   globalnie. NIE stylujemy separatora per-blok.
   ============================================================ */
body .wp-block-separator {
  border: none;
  border-top: 3px solid var(--wp--preset--color--primary);
  width: var(--space-2xl);
  margin-inline: auto;
  opacity: 1;
}
body .wp-block-separator.is-style-wide {
  width: min(90%, var(--layout-content));
  background-color: #c1c1c1;
  border: solid 0px;
  margin: 0 auto;
  height: 1px;
}

/* ============================================================
   KARTA WPISU BLOGA (.tb-karta-wpisu) — wspólny komponent.
   Markup: tb_post_card() (includes/theme-functions.php).
   Używana w sliderze porady-eksperta, listingu bloga i bloku
   acf/karta-wpisu — JEDEN styl, zero duplikacji per blok.
   ============================================================ */
body .tb-karta-wpisu {
  display: grid;
  align-content: start;
  gap: var(--space-md);
  text-align: left;
}
body .tb-karta-wpisu h3 {
  margin-top: var(--space-sm);
}
body .tb-karta-wpisu h3 a {
  color: var(--wp--preset--color--black);
  transition: var(--transition);
}
body .tb-karta-wpisu h3 a:hover {
  color: var(--wp--preset--color--primary);
}
body .tb-karta-wpisu .wp-block-separator {
  margin-inline: 0;
}
body .tb-karta-wpisu p {
  color: var(--wp--preset--color--gray-dark);
}
body .tb-karta-wpisu__image {
  position: relative;
  display: block;
}
body .tb-karta-wpisu__image img {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  filter: grayscale(1);
  transition: var(--transition);
}
body .tb-karta-wpisu__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wp--preset--color--white);
  opacity: 0.55;
  transition: var(--transition);
}
body .tb-karta-wpisu:hover .tb-karta-wpisu__image img {
  filter: grayscale(0);
}
body .tb-karta-wpisu:hover .tb-karta-wpisu__image::after {
  opacity: 0;
}

/* ============================================================
   KARTA PRODUKTU (.tb-karta-produktu) — wspólny komponent.
   Markup: tb_product_card() (includes/theme-functions.php).
   Używana na stronie linii produktowej (taksonomia linia-produktowa)
   i w "Pozostałe produkty" na single produktu. Wygląd spójny z kartą
   w bloku linie-produktowe (ramka + cień), ale klikalna.
   ============================================================ */
body .tb-karta-produktu {
  display: grid;
  gap: var(--space-md);
  align-content: start;
  justify-items: start;
  padding: var(--space-lg);
  border: 1px solid var(--wp--preset--color--gray-light);
  box-shadow: var(--shadow-sm);
  background: var(--wp--preset--color--white);
  transition: var(--transition);
}
body .tb-karta-produktu:hover {
  box-shadow: var(--shadow-md);
}
body .tb-karta-produktu h3 a {
  color: var(--wp--preset--color--black);
  transition: var(--transition);
}
body .tb-karta-produktu h3 a:hover {
  color: var(--wp--preset--color--primary);
}
body .tb-karta-produktu__image {
  display: block;
  justify-self: center;
}
body .tb-karta-produktu__image img {
  display: block;
  max-width: 100%;
  height: auto;
}
body .tb-karta-produktu p {
  color: var(--wp--preset--color--gray-dark);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
body .tb-karta-produktu__more {
  color: var(--wp--preset--color--primary);
  font-weight: 700;
}

/* ============================================================
   TREŚĆ Z EDYTORA (.tb-content) — wspólne dla single wpisu bloga
   i single produktu. Globalny reset motywu neutralizuje gołe tagi
   (h1-h6/p/listy/tabele), a klient w edytorze używa domyślnych bloków
   WP bez presetów — tu przywracamy im typografię. Rozmiary lustrzane
   do presetów z theme.json.

   Front: .tb-content (theme-style.scss → theme-style.css).
   Edytor: assets/scss/editor-content.scss → .editor-styles-wrapper
   (includes/editor-content-styles.php, tylko post + produkty).
   Zmieniasz TU — oba arkusze zaciągają te same mixiny.
   ============================================================ */
/* ============================================================
   OKRUSZKI (.tb-breadcrumbs) — katalog produktów (single produktu,
   strona linii). Markup: tb_breadcrumbs() (includes/theme-functions.php).
   ============================================================ */
body .tb-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  color: var(--wp--preset--color--gray);
}
body .tb-breadcrumbs li + li::before {
  content: "›";
  margin-right: var(--space-xs);
  color: var(--wp--preset--color--gray);
}
body .tb-breadcrumbs a {
  color: var(--wp--preset--color--primary);
  transition: var(--transition);
}
body .tb-breadcrumbs a:hover {
  text-decoration: underline;
}
body .tb-breadcrumbs [aria-current=page] {
  color: var(--wp--preset--color--gray-dark);
}

body img,
body svg {
  max-width: 100%;
  height: auto;
}
body a {
  color: #000;
  text-decoration: none;
}
body ol {
  list-style-type: auto;
  padding-left: 15px;
  margin: 15px 0px;
}
body ul {
  padding-left: 15px;
  list-style-type: disc;
  margin: 15px 0px;
}
body table {
  width: 100%;
}
body .container {
  width: min(90%, var(--layout-content));
  margin-inline: auto;
}
body * {
  font-family: var(--sfont);
}
body strong,
body b {
  font-weight: 700;
}

:root :where(.is-layout-flow) > * {
  margin: 0;
}

.tb-content {
  width: 100%;
  min-width: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--wp--preset--color--gray-dark);
}
.tb-content .is-layout-flow > * ~ *,
.tb-content .wp-block-column > * ~ *,
.tb-content .wp-block-group > * ~ * {
  margin-top: var(--space-md);
}
.tb-content .is-layout-flow > * ~ h2,
.tb-content .is-layout-flow > * ~ h3,
.tb-content .is-layout-flow > * ~ h4,
.tb-content .wp-block-column > * ~ h2,
.tb-content .wp-block-column > * ~ h3,
.tb-content .wp-block-column > * ~ h4,
.tb-content .wp-block-group > * ~ h2,
.tb-content .wp-block-group > * ~ h3,
.tb-content .wp-block-group > * ~ h4 {
  margin-top: var(--space-xl);
}
.tb-content h2,
.tb-content h3,
.tb-content h4,
.tb-content h5,
.tb-content h6 {
  color: var(--wp--preset--color--black);
  font-family: var(--ffont);
  font-weight: 700;
  line-height: 140%;
}
.tb-content h2 {
  font-size: 30px;
}
.tb-content h3 {
  font-size: 24px;
}
.tb-content h4 {
  font-size: 19px;
}
.tb-content h5,
.tb-content h6 {
  font-size: 16px;
}
.tb-content p {
  line-height: 24px;
}
.tb-content a:not(.wp-block-button__link) {
  color: var(--wp--preset--color--primary);
  font-weight: 700;
}
.tb-content a:not(.wp-block-button__link):hover {
  text-decoration: underline;
}
.tb-content .wp-block-button.is-style-typ-1-outline .wp-block-button__link {
  color: var(--wp--preset--color--primary);
}
.tb-content .wp-block-button.is-style-typ-1-outline .wp-block-button__link:hover {
  color: var(--wp--preset--color--white);
}
.tb-content .wp-block-button.is-style-typ-2-outline .wp-block-button__link {
  color: var(--wp--preset--color--gray-dark);
  border-color: var(--wp--preset--color--gray);
}
.tb-content .wp-block-button.is-style-typ-2-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--gray-dark);
  border-color: var(--wp--preset--color--gray-dark);
  color: var(--wp--preset--color--white);
}
.tb-content .wp-block-button.is-style-typ-2 .wp-block-button__link {
  border-color: var(--wp--preset--color--gray);
}
.tb-content ul,
.tb-content ol {
  padding-left: var(--space-lg);
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}
.tb-content ul li::marker,
.tb-content ol li::marker {
  color: var(--wp--preset--color--primary);
}
.tb-content ul ul,
.tb-content ul ol,
.tb-content ol ul,
.tb-content ol ol {
  margin-top: var(--space-sm);
}
.tb-content ul {
  list-style: disc;
}
.tb-content ol {
  list-style: decimal;
}
.tb-content blockquote,
.tb-content .wp-block-quote {
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--wp--preset--color--primary);
  background: var(--wp--preset--color--bg);
  border-radius: var(--radius-sm);
}
.tb-content blockquote cite,
.tb-content .wp-block-quote cite {
  display: block;
  margin-top: var(--space-sm);
  font-size: 14px;
  font-style: normal;
  color: var(--wp--preset--color--gray);
}
.tb-content .wp-block-image img,
.tb-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.tb-content .wp-block-image figcaption,
.tb-content figure figcaption {
  margin-top: var(--space-sm);
  text-align: center;
  font-size: 14px;
  color: var(--wp--preset--color--gray);
}
.tb-content .wp-block-gallery {
  gap: var(--space-md);
}
.tb-content .wp-block-embed__wrapper iframe,
.tb-content video {
  max-width: 100%;
  border-radius: var(--radius-md);
}
.tb-content .wp-block-table {
  overflow-x: auto;
}
.tb-content .wp-block-table table,
.tb-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}
.tb-content .wp-block-table table th,
.tb-content .wp-block-table table td,
.tb-content table th,
.tb-content table td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--wp--preset--color--gray-light);
  text-align: left;
  vertical-align: top;
  min-width: 90px;
}
.tb-content .wp-block-table table td,
.tb-content table td {
  white-space: nowrap;
}
.tb-content .wp-block-table table.has-fixed-layout th,
.tb-content .wp-block-table table.has-fixed-layout td,
.tb-content table.has-fixed-layout th,
.tb-content table.has-fixed-layout td {
  white-space: normal;
  overflow-wrap: break-word;
  min-width: 0;
  max-width: none;
}
.tb-content .wp-block-table table th,
.tb-content table th {
  max-width: 160px;
}
.tb-content .wp-block-table table th,
.tb-content .wp-block-table table thead td,
.tb-content table th,
.tb-content table thead td {
  background: var(--wp--preset--color--bg);
  color: var(--wp--preset--color--black);
  font-weight: 700;
}
.tb-content .wp-block-table table tbody tr:nth-child(even) td,
.tb-content table tbody tr:nth-child(even) td {
  background: var(--wp--preset--color--bg);
}
.tb-content .wp-block-table table tbody td:first-child,
.tb-content table tbody td:first-child {
  font-weight: 700;
  color: var(--wp--preset--color--black);
}
.tb-content code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--wp--preset--color--bg);
  padding: 0 var(--space-xs);
  border-radius: var(--radius-sm);
}
.tb-content pre,
.tb-content .wp-block-code {
  padding: var(--space-md) var(--space-lg);
  background: var(--wp--preset--color--bg);
  border: 1px solid var(--wp--preset--color--gray-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.tb-content pre code,
.tb-content .wp-block-code code {
  padding: 0;
  background: none;
}
.tb-content .wp-block-columns {
  gap: var(--space-lg);
}
.tb-content strong,
.tb-content b {
  color: var(--wp--preset--color--black);
}
@media only screen and (max-width: 781px) {
  .tb-content table.has-fixed-layout {
    min-width: 640px;
  }
  .tb-content h2 {
    font-size: 24px;
  }
  .tb-content h3 {
    font-size: 20px;
  }
  .tb-content h4 {
    font-size: 17px;
  }
}
.tb-content > * ~ * {
  margin-top: var(--space-md);
}
.tb-content > * ~ h2,
.tb-content > * ~ h3,
.tb-content > * ~ h4 {
  margin-top: var(--space-xl);
}
.tb-content .aligncenter,
.tb-content .is-layout-flow > .aligncenter {
  float: none;
  margin-left: auto;
  margin-right: auto;
}
.tb-content .alignleft,
.tb-content .is-layout-flow > .alignleft {
  float: none;
  margin-left: 0;
  margin-right: auto;
}
.tb-content .alignright,
.tb-content .is-layout-flow > .alignright {
  float: none;
  margin-left: auto;
  margin-right: 0;
}
