.catalog-taxonomy{margin:0 0 20px}
.catalog-primary-tabs,.catalog-category-tabs{display:flex;gap:9px;flex-wrap:wrap}
.catalog-primary-tabs{margin-bottom:15px}
.catalog-category-tabs{margin:0 0 12px}
.catalog-pill,.catalog-category-pill{font:inherit;cursor:pointer;border:1px solid #e4dce6;color:#34404b;background:#fffdfb;border-radius:12px;padding:11px 17px;font-size:14px;font-weight:750;line-height:1.4;transition:border-color .15s}
.catalog-category-pill{font-size:13px;padding:9px 13px;font-weight:650}
.catalog-pill:hover,.catalog-category-pill:hover{border-color:#81699a}
.catalog-pill.is-active{background:#7a5f93;color:#fff;border-color:#7a5f93}
.catalog-category-pill.is-active{background:#ece5f2;color:#49335d;border-color:#9b86ad}
.catalog-current-desc{font-size:14px;color:#607078;line-height:1.6;margin:10px 0 14px;max-width:790px}
.catalog-extra-filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:0 0 19px}
.catalog-filter-select{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#59646d;font-weight:700}
.catalog-filter-select select{font:inherit;min-height:41px;padding:8px 31px 8px 12px;font-size:14px;border-radius:12px;background:#fff;border:1px solid #dfd9df;color:#26313a;max-width:230px}
.catalog-filter-select[hidden]{display:none}
.catalog-result-count{font-size:13px;color:#59646d;margin:0 0 11px auto}
.catalog-filter-empty{text-align:center;padding:35px 12px;color:#52616a}
.catalog-filter-empty[hidden],.catalog-grid .catalog-card[hidden]{display:none!important}
@media(max-width:680px){.catalog-primary-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.catalog-pill{padding:10px 5px;font-size:12px}.catalog-category-tabs{gap:6px}.catalog-category-pill{font-size:12px;padding:8px 11px}.catalog-extra-filters{gap:8px}.catalog-filter-select select{max-width:190px}.catalog-result-count{margin-left:0}}


.catalog-category-pill{display:inline-flex;align-items:center;gap:9px;max-width:100%;min-height:42px;text-align:left}
.catalog-category-pill .specka-category-icon{width:27px;height:27px;flex-basis:27px;border-radius:9px}
.catalog-category-pill .specka-category-icon svg{width:17px;height:17px}
.catalog-category-pill.is-active .specka-category-icon{background:#fffafc}
@media(max-width:680px){
 .catalog-category-pill{gap:7px;padding:7px 10px;min-height:41px}
 .catalog-category-pill .specka-category-icon{width:26px;height:26px;flex-basis:26px}
}

/* Crawlable category navigation remains visible without JavaScript. */
.category-seo-nav{display:grid;gap:11px;margin:10px 0 22px;padding:16px 18px;background:#fffdf9;border:1px solid #e7e0e7;border-radius:17px}
.category-seo-nav strong{font-size:13px;color:#5e4c72}
.category-seo-nav>div{display:flex;flex-wrap:wrap;gap:8px}
.category-seo-nav a{display:inline-flex;align-items:center;padding:9px 12px;font-size:13px;font-weight:700;color:#5f4d70;text-decoration:none;border:1px solid #e4dce8;border-radius:10px;background:#faf7fb}
.category-seo-nav a[aria-current="page"]{color:#fff;background:#7a5f93;border-color:#7a5f93}
.category-seo-nav a:hover,.category-seo-nav a:focus-visible{border-color:#7a5f93}
.catalog-section:has(#catalogTaxonomy)>.category-seo-nav,.catalog-section:has(#catalogTaxonomy)>.category-seo-intro+.category-seo-nav{display:none}
.catalog-category-pill{text-decoration:none}
.catalog-category-pill:hover,.catalog-category-pill:focus-visible{text-decoration:none}
.category-breadcrumb{max-width:1100px;margin:21px auto 0;padding:0 18px;display:flex;align-items:center;gap:8px;font-size:13px;color:#65707a}
.category-breadcrumb a{color:#745c8c;font-weight:700;text-decoration:none}
.category-breadcrumb a:hover{text-decoration:underline}
.category-page-hero{padding-top:18px!important}
.category-seo-intro{margin:0 0 24px;max-width:850px;color:#5f6770;font-size:15px;line-height:1.75}
.category-seo-intro p{margin:0 0 12px}
@media(max-width:690px){.category-seo-nav{padding:13px}.category-seo-nav a{font-size:12px;padding:8px 10px}.category-breadcrumb{margin-top:14px}.category-seo-intro{font-size:14px}}


/* Mobile: never crop the selected skill, including long translated labels. */
.catalog-extra-filters{min-width:0;max-width:100%}
.catalog-filter-select{min-width:0;max-width:100%}
.catalog-filter-select select{box-sizing:border-box;width:min(100%,360px);max-width:100%;min-width:0;text-overflow:clip}
.catalog-extra-filters:has(.catalog-filter-select:not([hidden])) .catalog-result-count{align-self:end}
@media(max-width:680px){
  .catalog-extra-filters{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:11px;width:100%;margin-bottom:17px}
  .catalog-filter-select{width:100%;min-width:0}
  .catalog-filter-select select{width:100%;max-width:none;min-height:46px;padding:10px 38px 10px 12px;font-size:14px;line-height:1.3}
  .catalog-result-count{margin:0;justify-self:start;font-size:13px}
}


/* Brand-consistent pictograms: the three primary catalogue modes. */
.catalog-primary-tabs .catalog-pill{
  display:flex;align-items:center;justify-content:center;gap:10px;
  min-width:0;min-height:53px;text-align:center;
}
.catalog-primary-tabs .catalog-pill-label{min-width:0;overflow-wrap:break-word}
.catalog-primary-tabs .specka-category-icon{
  flex:0 0 32px;width:32px;height:32px;border-radius:10px;
}
.catalog-primary-tabs .specka-category-icon svg{width:20px;height:20px}
.catalog-primary-tabs .catalog-pill.is-active .specka-category-icon{background:#fffafc}
.specka-category-icon[data-category-icon="best"]{background:#fbf0e4;color:#bc8549}
.specka-category-icon[data-category-icon="new"]{background:#f0eaf6;color:#8565aa}
.specka-category-icon[data-category-icon="all"]{background:#e9f2ee;color:#5e917e}
@media(max-width:700px){
  .catalog-primary-tabs .catalog-pill{
    flex-direction:column;gap:7px;padding:10px 5px;min-height:92px;
  }
  .catalog-primary-tabs .catalog-pill-label{font-size:12px;line-height:1.28}
  .catalog-primary-tabs .specka-category-icon{width:33px;height:33px;flex-basis:33px}
}

/* One quiet category illustration beside the SEO heading on desktop,
   or as a compact corner motif on phones. No large images or added scroll. */
body[data-page="materials"] .category-page-hero{position:relative;align-items:center}
.category-page-hero .specka-category-hero-art{
  position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  flex:0 0 152px;width:152px;height:152px;
  border:1px solid #ede4e9;border-radius:34px;
  background:#f6f0f9;transform:rotate(4deg);
}
.category-page-hero .specka-category-hero-art::before,
.category-page-hero .specka-category-hero-art::after{
  content:"";position:absolute;border-radius:50%;background:#e4d5ec;pointer-events:none
}
.category-page-hero .specka-category-hero-art::before{width:10px;height:10px;top:20px;left:22px}
.category-page-hero .specka-category-hero-art::after{width:7px;height:7px;bottom:23px;right:23px}
.category-page-hero .specka-category-hero-art>.specka-category-icon{
  display:flex;align-items:center;justify-content:center;
  width:108px;height:108px;flex:0 0 108px;border-radius:28px;
  background:#fffafc;transform:rotate(-4deg);
}
.category-page-hero .specka-category-hero-art .specka-category-icon svg{
  width:74px;height:74px;stroke-width:1.4;
}
.category-page-hero .specka-category-hero-art:has([data-category-icon="telo-a-rtg"]){background:#edf5ef;border-color:#e3ebe4}
.category-page-hero .specka-category-hero-art:has([data-category-icon="telo-a-rtg"])::before,
.category-page-hero .specka-category-hero-art:has([data-category-icon="telo-a-rtg"])::after{background:#d4e7d9}
.category-page-hero .specka-category-hero-art:has([data-category-icon="pismena-a-cteni"]){background:#f9f0e8;border-color:#f0e4da}
.category-page-hero .specka-category-hero-art:has([data-category-icon="pocitani-a-cisla"]){background:#edf3f8;border-color:#e1e8f0}
.category-page-hero .specka-category-hero-art:has([data-category-icon="grafomotorika"]){background:#fbf1e8;border-color:#f1e5d9}
.category-page-hero .specka-category-hero-art:has([data-category-icon="other"]){background:#f3eff1}
@media(max-width:850px){
  body[data-page="materials"] .category-page-hero{display:block}
  .category-page-hero .specka-category-hero-art{
    position:absolute;top:18px;right:24px;
    width:60px;height:60px;min-width:0;min-height:0;flex-basis:auto;
    border-radius:16px;transform:rotate(3deg);
  }
  .category-page-hero .specka-category-hero-art::before{width:4px;height:4px;top:6px;left:8px}
  .category-page-hero .specka-category-hero-art::after{width:4px;height:4px;bottom:7px;right:7px}
  .category-page-hero .specka-category-hero-art>.specka-category-icon{
    width:43px;height:43px;flex-basis:43px;border-radius:12px;
  }
  .category-page-hero .specka-category-hero-art .specka-category-icon svg{width:28px;height:28px;stroke-width:1.8}
}
@media(max-width:390px){
  .category-page-hero .specka-category-hero-art{right:18px;width:53px;height:53px}
  .category-page-hero .specka-category-hero-art>.specka-category-icon{width:39px;height:39px;flex-basis:39px}
  .category-page-hero .specka-category-hero-art .specka-category-icon svg{width:25px;height:25px}
}


/* Compact three-filter catalogue. Legacy category styles above remain
   available for standalone SEO pages, but are not shown in this catalogue. */
.catalog-facets{margin:0 0 14px;min-width:0}
.catalog-facet-menus{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.catalog-facet-menu{position:relative;box-sizing:border-box;min-width:0;border:1px solid #ded8e4;border-radius:11px;background:#fff}
.catalog-facet-menu>summary{
  box-sizing:border-box;list-style:none;cursor:pointer;display:flex;
  align-items:center;justify-content:space-between;gap:10px;
  height:43px;min-height:43px;padding:0 14px;line-height:1.3;
  font-size:14px;font-weight:700;color:#28333e
}
.catalog-facet-menu>summary::-webkit-details-marker{display:none}
.catalog-facet-menu>summary:after{
  content:"";border:solid #655477;border-width:0 2px 2px 0;
  transform:rotate(45deg);padding:3px;margin-left:auto;flex:0 0 auto
}
.catalog-facet-menu[open]>summary:after{transform:rotate(225deg)}
.catalog-facet-menu.has-selection{border-color:#9a87a9;background:#faf7fc}
.catalog-facet-counter{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:100px;padding:0 5px;background:#ede6f3;color:#5f4476;font-size:12px}
.catalog-facet-counter[hidden]{display:none}
/* In-flow dropdowns never cover neighboring controls or the result toolbar. */
.catalog-facet-options{
  position:static;box-sizing:border-box;min-width:0;width:100%;max-height:260px;overflow:auto;
  padding:7px;background:#fff;border:0;border-top:1px solid #eee8f0;
  border-radius:0 0 11px 11px;box-shadow:none
}
.catalog-facet-option{display:flex;align-items:center;gap:10px;min-height:39px;padding:7px 9px;border-radius:8px;cursor:pointer;color:#303a43;font-size:14px;white-space:normal}
.catalog-facet-option:hover,.catalog-facet-option:focus-within{background:#f7f2fa}
.catalog-facet-option input{flex:0 0 auto;width:17px;height:17px;accent-color:#7a5f93}
.catalog-facet-empty{display:block;padding:14px}
.catalog-selected-filters{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.catalog-selected-filters:empty{display:none}
.catalog-filter-chip,.catalog-filter-clear{font:inherit;border:0;cursor:pointer;font-size:12px;line-height:1.4;padding:7px 10px}
.catalog-filter-chip{border-radius:20px;background:#eee8f5;color:#543e67;font-weight:700}
.catalog-filter-clear{color:#785f8f;background:transparent;text-decoration:underline}
/* Result count left, unboxed native sort select right — deliberately
   different from the three outlined facet controls. */
.catalog-facet-info{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:nowrap;gap:10px;min-width:0;min-height:54px;
  margin-top:12px;padding:10px 0;box-sizing:border-box;
  border-top:1px solid #eee7e8;border-bottom:1px solid #eee7e8
}
.catalog-facet-info .catalog-result-count{
  margin:0!important;min-width:0;flex:1 1 auto;text-align:left;
  font-size:13px;line-height:1.4;color:#53616c
}
.catalog-sort{
  position:relative;display:flex;align-items:center;justify-content:flex-end;
  width:min(45%,200px);min-width:0;flex:0 0 auto;color:#29343f
}
.catalog-sort>span{display:none}
.catalog-sort select{
  box-sizing:border-box;appearance:none;-webkit-appearance:none;
  display:block;width:100%;min-height:34px;max-width:100%;border:0;
  border-radius:6px;padding:5px 18px 5px 3px;background:transparent;
  color:#303a43;font:inherit;font-size:13px;font-weight:700;
  text-align:right;text-align-last:right;cursor:pointer
}
.catalog-sort:after{
  content:"";position:absolute;right:5px;top:calc(50% - 4px);
  width:6px;height:6px;border:solid #655477;border-width:0 1.7px 1.7px 0;
  transform:rotate(45deg);pointer-events:none
}
.catalog-sort select:focus-visible,.catalog-facet-menu>summary:focus-visible{
  outline:2px solid #816b98;outline-offset:2px
}
@media(max-width:580px){
  .catalog-facet-menus{grid-template-columns:minmax(0,1fr);gap:9px}
  .catalog-facet-info{gap:8px;margin-top:11px}
  .catalog-sort select{font-size:13px}
}
@media(max-width:370px){
  .catalog-facet-info .catalog-result-count{font-size:12px}
  .catalog-sort select{font-size:12px}
}
/* The catalogue offers only Věk, Dovednost, Téma, not a second category bar. */
.catalog-section>.category-seo-nav{display:none}


/* Desktop dropdowns float over the catalogue; selecting options never pushes
   product cards downward. Small screens retain the accessible in-flow list. */
@media(min-width:851px){
  .catalog-facets{position:relative;z-index:15}
  .catalog-facet-menu[open]{z-index:20;border-color:#ac97b8}
  .catalog-facet-menu .catalog-facet-options{
    position:absolute;left:-1px;top:calc(100% + 5px);
    z-index:40;box-sizing:border-box;min-width:calc(100% + 2px);
    width:max-content;max-width:min(330px,36vw);
    max-height:310px;overflow:auto;padding:8px;
    border:1px solid #ded8e4;border-radius:11px;
    background:#fff;box-shadow:0 11px 25px rgba(40,32,45,.13)
  }
}
@media(max-width:850px){
  .catalog-facet-menu .catalog-facet-options{
    position:static;width:100%;max-width:100%;max-height:260px;
    box-shadow:none;border:0;border-top:1px solid #eee8f0
  }
}
