/* blog-produkty-v5.css — bloky produktů v článcích blogu (blog-produkty-v5.js; v2: nejvýš 4 karty = jedna řada, místo se drží na jednu řadu) + sjednocené dlaždice výpisu článků /blog/, /sk/blog/.
 * v5: výpis /blog/ pod html.bp-blog-vypis (testovací režim nebo přepínač „Výpis ostře“) — přebije doplněk dlaždic jen když je aktivní.
 * v4: datum se skrývá jen se zapnutým krokem 1 (třída bp-blog-k1 na <html>: testovací režim nebo přepínač v appce); ostatní prvky
 *     kroku 1 bez něj skript vůbec nevykreslí.
 * v3 (7. 11. 2026): „Zobrazit všechny … →“ nad kartami, box „Vše pro … → Do kategorie“ (uprostřed a na konci článku), „Mohlo by Vás zajímat“,
 * skryté datum vydání v detailu článku. Box světle modrý #f2f9fc, zaoblení 14 px; na mobilu vše pod sebou.
 * Vše jen pod html.bp-blog-on (zapíná inline skript v Záhlaví: testovací režim ?bp_blog=test, ostrý režim pro všechny).
 * Písmo Exo 2, konverzní #2CA2C6, po najetí #8880B4, světle fialová #B0ABCB. Kód je vlastní, nic z doplňků. */

/* ── Staré bloky doplňku „Produkty v článcích“: inline skript v Záhlaví je při načítání přejmenuje .dmproducts → .bp-dm
   (doplněk je pak nenajde). Do vykreslení našeho bloku jen drží místo (neviditelné), pak pryč. Nepřejmenované = skrýt. ── */
html.bp-blog-on body .bp-dm:not(.bp-dm-off) {
  display: block !important; visibility: hidden !important; overflow: hidden !important;
  height: 350px !important; min-height: 0 !important; margin: 20px 0 !important; padding: 0 !important;
}
html.bp-blog-on body .bp-dm.bp-dm-off, html.bp-blog-on body .bp-dm .bp-dm, html.bp-blog-on body .dmproducts { display: none !important; }

/* ── Značka bloku: místo držené do načtení dat, prázdný / neznámý blok se skryje ── */
html.bp-blog-on .bp-products { display: block; min-height: 350px; margin: 20px 0; }
html.bp-blog-on .bp-products.bp-done { min-height: 0; }
html.bp-blog-on .bp-products.bp-empty { display: none !important; }
.bp-products:empty { margin: 0; }

/* ── Blok a karty ── */
html.bp-blog-on .bp-blog { margin: 20px 0; font-family: 'Exo 2', sans-serif; clear: both; }
html.bp-blog-on .bp-products > .bp-blog { margin: 0; }
html.bp-blog-on .bp-blog .bp-products-title { font-size: 18px; font-weight: 700; line-height: 1.3; color: #222; margin: 0 0 10px; }
html.bp-blog-on .bp-blog .bp-blog-row.products-block {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin: 0 !important; padding: 0 !important; border: 0 !important; width: auto !important; float: none !important;
}
html.bp-blog-on .bp-blog .bp-blog-row.products-block > .product {
  width: auto !important; max-width: none !important; min-width: 0; flex: none !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; float: none !important; background: none !important; box-shadow: none !important;
}
html.bp-blog-on .bp-blog .product > .p {
  position: relative; height: 100%; display: flex; flex-direction: column; box-sizing: border-box;
  background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 12px; margin: 0; text-align: center;
}
html.bp-blog-on .bp-blog .product > .p:hover { border-color: #b0abcb; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
html.bp-blog-on .bp-blog .product > .p > a.image {
  position: relative; display: flex !important; align-items: center; justify-content: center; height: 170px; margin: 0 0 10px !important;
  padding: 0 !important; border: 0 !important; background: #fff; overflow: visible;
}
html.bp-blog-on .bp-blog .product > .p > a.image img {
  max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; object-fit: contain; margin: 0 auto;
}
html.bp-blog-on .bp-blog a.bp-blog-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
  font-size: 14px; font-weight: 600; line-height: 1.35; color: #333; text-decoration: none;
}
html.bp-blog-on .bp-blog a.bp-blog-name:hover { color: #2ca2c6; }
html.bp-blog-on .bp-blog .bp-blog-av { font-size: 13px; line-height: 1.3; color: #009901; margin: 6px 0 2px; min-height: 1.3em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.bp-blog-on .bp-blog .bp-blog-price { font-size: 17px; font-weight: 700; color: #2ca2c6; margin: 2px 0 10px; white-space: nowrap; }
html.bp-blog-on .bp-blog .bp-blog-skrt { font-size: 13px; font-weight: 400; color: #999; }
/* Šablona stylije každé „.products … button“ a odkazy v kartách → vzhled s !important. */
html.bp-blog-on .bp-blog .product .bp-blog-add {
  margin-top: auto !important; display: block !important; width: 100% !important; height: auto !important; min-height: 38px; box-sizing: border-box;
  text-align: center; background: #2ca2c6 !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
  padding: 9px 10px !important; font: 600 14px/1.2 'Exo 2', sans-serif !important; cursor: pointer; text-decoration: none !important;
  text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important;
}
html.bp-blog-on .bp-blog .product .bp-blog-add:hover, html.bp-blog-on .bp-blog .product .bp-blog-add.bp-done { background: #8880b4 !important; color: #fff !important; }
html.bp-blog-on .bp-blog .product .bp-blog-add[disabled] { opacity: .65; cursor: default; }
/* Srdíčko Oblíbených (oblibene-vN.js) — styly jen pro naše karty (třída .products šablony se nepoužívá). */
html.bp-blog-on .bp-blog .product .bp-fav-heart {
  position: absolute !important; top: 0 !important; left: 0 !important; right: auto !important; bottom: auto !important; z-index: 3;
  width: 36px !important; height: 36px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
  display: flex !important; align-items: center; justify-content: center; border-radius: 50% !important; border: 1px solid #dcd9e8 !important;
  background: rgba(255, 255, 255, .88) !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .12) !important; cursor: pointer;
  line-height: 0 !important; font-size: 0 !important; color: #8880b4 !important;
}
html.bp-blog-on .bp-blog .product .bp-fav-heart svg { width: 18px; height: 18px; }
html.bp-blog-on .bp-blog .product .bp-fav-heart:hover { background: #fff !important; transform: scale(1.06); }

/* Mobil a úzké sloupce: vodorovně posuvný pás (≈ 2,2 karty), stejná výška karet */
@media (max-width: 767px) {
  html.bp-blog-on .bp-blog .bp-blog-row.products-block {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 6px !important;
  }
  html.bp-blog-on .bp-blog .bp-blog-row.products-block > .product { flex: 0 0 44% !important; width: 44% !important; scroll-snap-align: start; }
  html.bp-blog-on .bp-blog .product > .p > a.image { height: 140px; }
  html.bp-blog-on .bp-products { min-height: 320px; }
  html.bp-blog-on body .bp-dm:not(.bp-dm-off) { height: 320px !important; }
}

/* ── Výpis článků /blog/, /sk/blog/ (doplněk „Zobrazení článků v dlaždicích“): obrázek v rámu 4:3, ořez na střed ── */
html.bp-blog-on body .news-wrapper .news-item .image {
  aspect-ratio: 4 / 3 !important; height: auto !important; max-height: none !important; width: 100% !important;
  overflow: hidden !important; background: #fff !important; position: relative !important;
}
html.bp-blog-on body .news-wrapper .news-item .image > a { display: block !important; width: 100% !important; height: 100% !important; }
html.bp-blog-on body .news-wrapper .news-item .image img {
  display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
  object-fit: cover !important; object-position: 50% 50% !important; aspect-ratio: auto !important;
}

/* ── v3: stránka článku ─────────────────────────────────────────────────────────────── */
/* Datum vydání v detailu článku se nezobrazuje (nic místo něj). */
html.bp-blog-on.bp-blog-k1 .news-item-detail > time { display: none !important; }

/* Hlavička bloku: nadpis vlevo, „Zobrazit všechny … →“ vpravo nad kartami */
html.bp-blog-on .bp-blog .bp-blog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin: 0 0 10px; }
html.bp-blog-on .bp-blog .bp-blog-head .bp-products-title { margin: 0; flex: 1 1 auto; min-width: 0; }
html.bp-blog-on .bp-blog .bp-blog-head .bp-products-title:empty { flex: 1 1 0; }
html.bp-blog-on .bp-blog a.bp-blog-all {
  flex: 0 1 auto; font: 600 15px/1.35 'Exo 2', sans-serif; color: #1f7f9e; text-decoration: none; text-align: right; overflow-wrap: anywhere;
}
html.bp-blog-on .bp-blog a.bp-blog-all::after { content: ' →'; white-space: nowrap; }
html.bp-blog-on .bp-blog a.bp-blog-all:hover { color: #8880b4; text-decoration: underline; }

/* Box kategorie (uprostřed a závěrečný) */
html.bp-blog-on .bp-blog-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; box-sizing: border-box;
  max-width: 100%; margin: 24px 0 28px; padding: 20px 24px; border-radius: 14px; background: #f2f9fc;
  font-family: 'Exo 2', sans-serif; color: #1d2433 !important; text-decoration: none !important; clear: both;
}
html.bp-blog-on a.bp-blog-box:hover { background: #e6f4f9; }
html.bp-blog-on .news-item-detail > .text > .bp-blog-box:last-child { margin-bottom: 0; }   /* pod ním okraj těla článku (šablona 40 px) */
html.bp-blog-on .bp-blog-box-t { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; min-width: 0; }
html.bp-blog-on .bp-blog-box-l { font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #1f7f9e; }
html.bp-blog-on .bp-blog-box-h { font-size: 19px; font-weight: 700; line-height: 1.3; color: #1d2433; overflow-wrap: anywhere; }
html.bp-blog-on .bp-blog-box-b {
  flex: 0 0 auto; display: inline-block; box-sizing: border-box; padding: 12px 22px; border-radius: 22px; background: #2ca2c6;
  color: #fff !important; font: 700 16px/1.2 'Exo 2', sans-serif; text-decoration: none !important; white-space: nowrap; text-align: center;
}
html.bp-blog-on .bp-blog-box-b::after { content: ' →'; }
html.bp-blog-on a.bp-blog-box:hover .bp-blog-box-b, html.bp-blog-on a.bp-blog-box-b:hover { background: #8880b4; }
html.bp-blog-on .bp-blog-box-chips { display: flex; flex-wrap: wrap; gap: 8px; }
html.bp-blog-on .bp-blog-box-multi .bp-blog-box-b { padding: 10px 18px; font-size: 15px; }

/* Mohlo by Vás zajímat */
html.bp-blog-on .bp-blog-rel { margin: 0 0 32px; font-family: 'Exo 2', sans-serif; clear: both; }
html.bp-blog-on .bp-blog-rel .bp-blog-rel-h { font-size: 24px; font-weight: 700; line-height: 1.3; margin: 0 0 16px; color: #1d2433; }
html.bp-blog-on .bp-blog-rel-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
html.bp-blog-on a.bp-blog-rel-c { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #1d2433 !important; text-decoration: none !important; }
html.bp-blog-on .bp-blog-rel-f { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #dcf0f7; }
html.bp-blog-on .bp-blog-rel-f img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: 50% 50%; }
html.bp-blog-on .bp-blog-rel-t { font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #1f7f9e; }
html.bp-blog-on .bp-blog-rel-n { font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
html.bp-blog-on a.bp-blog-rel-c:hover .bp-blog-rel-n { color: #1f7f9e; text-decoration: underline; }

/* Mobil: vše pod sebou, box bez přetékání */
@media (max-width: 767px) {
  html.bp-blog-on .bp-blog .bp-blog-head { flex-direction: column; align-items: flex-start; }
  html.bp-blog-on .bp-blog a.bp-blog-all { text-align: left; }
  html.bp-blog-on .bp-blog-box { flex-direction: column; align-items: stretch; padding: 18px; }
  html.bp-blog-on .bp-blog-box-t { flex: 0 0 auto; }
  html.bp-blog-on .bp-blog-box-b { display: block; width: 100%; white-space: normal; }
  html.bp-blog-on .bp-blog-box-chips { flex-direction: column; }
  html.bp-blog-on .bp-blog-rel-g { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* ── v5: výpis článků /blog/, /sk/blog/ (jen html.bp-blog-vypis) ───────────────────── */
/* Mřížka 3 sloupce (mobil 1); #newsWrapper přebije doplněk „Zobrazení článků v dlaždicích“ (šířky s !important) */
html.bp-blog-on.bp-blog-vypis #newsWrapper.news-wrapper {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px !important;
  width: 100% !important; margin: 0 0 40px !important; padding: 0 !important; font-family: 'Exo 2', sans-serif;
}
html.bp-blog-on.bp-blog-vypis #newsWrapper.news-wrapper::before, html.bp-blog-on.bp-blog-vypis #newsWrapper.news-wrapper::after { display: none !important; }
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item {
  display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; gap: 12px; width: auto !important; max-width: none !important;
  min-width: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; float: none !important;
}
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item[hidden] { display: none !important; }
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item > * { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item .image { border-radius: 12px; aspect-ratio: 4 / 3 !important; overflow: hidden !important; }
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item .text {
  display: flex !important; flex-direction: column; gap: 8px; padding: 0 !important; margin: 0 !important; background: none !important; position: static !important;
}
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item .text > time { display: none !important; }   /* datum vydání se nezobrazuje */
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item a.title {
  order: 2; display: block; margin: 0 !important; padding: 0 !important; font: 600 19px/1.3 'Exo 2', sans-serif !important; color: #1d2433 !important; text-decoration: none !important;
}
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item:hover a.title { color: #1f7f9e !important; text-decoration: underline !important; }
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item .bp-v-meta { order: 1; }
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item .description { order: 3; margin: 0 !important; }
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item .description, html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item .description p {
  margin: 0 !important; font-size: 15px !important; line-height: 1.5 !important; color: #3b4456 !important;
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;   /* perex max 2 řádky */
}
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item .description p + p { display: none !important; }
html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item .read-article { display: none !important; }

/* Štítek techniky a čas čtení */
html.bp-blog-on .bp-v-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font: 600 12px/1.3 'Exo 2', sans-serif; letter-spacing: .5px; }
html.bp-blog-on .bp-v-tag { text-transform: uppercase; color: #5d5594; }
html.bp-blog-on .bp-v-tag[data-k="akryl"] { color: #b5541c; }
html.bp-blog-on .bp-v-tag[data-k="akvarel"] { color: #1f7f9e; }
html.bp-blog-on .bp-v-tag[data-k="kresba"] { color: #2f7a43; }
html.bp-blog-on .bp-v-tag[data-k="stetce"] { color: #8a6a10; }
html.bp-blog-on .bp-v-tag[data-k="kvas"] { color: #6d4a8f; }
html.bp-blog-on .bp-v-tag[data-k="olej"] { color: #7a4a24; }
html.bp-blog-on .bp-v-tag[data-k="navody"] { color: #a8344f; }
html.bp-blog-on .bp-v-min { color: #5b6475; font-weight: 500; letter-spacing: 0; }

/* Pruh „Začínáte?“ */
html.bp-blog-on .bp-v-start { background: #f2f9fc; border-radius: 16px; padding: 28px; margin: 8px 0 32px; font-family: 'Exo 2', sans-serif; }
html.bp-blog-on .bp-v-start-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 18px; }
html.bp-blog-on .bp-v-start .bp-v-start-h { margin: 0 !important; padding: 0 !important; font: 700 24px/1.3 'Exo 2', sans-serif !important; color: #1d2433 !important; }
html.bp-blog-on .bp-v-start-sub { font-size: 14px; color: #3b4456; }
html.bp-blog-on .bp-v-start-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
html.bp-blog-on a.bp-v-start-c {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; background: #fff; border: 1px solid #dbe9ef; border-radius: 12px;
  color: #1d2433 !important; text-decoration: none !important;
}
html.bp-blog-on a.bp-v-start-c:hover { border-color: #2ca2c6; }
html.bp-blog-on .bp-v-start-f { flex: 0 0 80px; height: 60px; border-radius: 8px; overflow: hidden; background: #dcf0f7; }
html.bp-blog-on .bp-v-start-f img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
html.bp-blog-on .bp-v-start-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html.bp-blog-on .bp-v-start-t .bp-v-tag { font: 600 12px/1.3 'Exo 2', sans-serif; letter-spacing: .4px; }
html.bp-blog-on .bp-v-start-n { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Filtr (tlačítka ≥ 44 px) */
html.bp-blog-on .bp-v-filtr { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
html.bp-blog-on .bp-v-chip {
  min-height: 44px; padding: 0 20px !important; border-radius: 22px !important; border: 1px solid #cfd6e0 !important; background: #fff !important; color: #1d2433 !important;
  font: 600 15px/1 'Exo 2', sans-serif !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important;
}
html.bp-blog-on .bp-v-chip:hover { border-color: #1f7f9e !important; }
html.bp-blog-on .bp-v-chip[aria-pressed="true"] { background: #1f7f9e !important; border-color: #1f7f9e !important; color: #fff !important; }
html.bp-blog-on .bp-v-chip:focus-visible { outline: 2px solid #1f7f9e; outline-offset: 2px; }

@media (max-width: 1023px) {
  html.bp-blog-on.bp-blog-vypis #newsWrapper.news-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.bp-blog-on .bp-v-start-g { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 767px) {
  html.bp-blog-on.bp-blog-vypis #newsWrapper.news-wrapper { grid-template-columns: minmax(0, 1fr); gap: 26px !important; }
  html.bp-blog-on.bp-blog-vypis #newsWrapper .news-item a.title { font-size: 18px !important; }
  html.bp-blog-on .bp-v-start { padding: 16px; border-radius: 14px; margin-bottom: 20px; }
  html.bp-blog-on .bp-v-start .bp-v-start-h { font-size: 18px !important; }
  html.bp-blog-on .bp-v-start-sub { display: none; }
  html.bp-blog-on a.bp-v-start-c { padding: 10px; gap: 10px; }
  html.bp-blog-on .bp-v-start-f { flex-basis: 64px; height: 48px; }
  html.bp-blog-on .bp-v-start-n { font-size: 15px; }
  html.bp-blog-on .bp-v-filtr { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 6px; margin-bottom: 18px; -webkit-overflow-scrolling: touch; }
  html.bp-blog-on .bp-v-chip { flex: 0 0 auto; padding: 0 16px !important; font-size: 14px !important; }
}
