/* KreaStore 7.36 – Katalógus Pro / Cédrus kategóriakártyák */
.theme-cedrus .ks-cedrus-featured-categories{margin:26px 0 34px}
.theme-cedrus .ks-cedrus-featured-categories .ks-section-top{margin-bottom:18px}
.theme-cedrus .ks-cedrus-featured-categories .ks-section-top h2{font-size:24px;font-weight:800;letter-spacing:-.5px;margin:0}
.theme-cedrus .ks-cedrus-featured-categories .ks-section-top h2:after{content:"";display:block;width:48px;height:4px;background:#ec443c;border-radius:3px;margin-top:10px}
.theme-cedrus .ks-cedrus-category-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.theme-cedrus .ks-cedrus-category-cards .ks-cedrus-category-card{display:flex;flex-direction:column;min-width:0;text-decoration:none;color:#142b41;background:#fff;border:1px solid #e7eaf0;border-radius:10px;overflow:hidden;box-shadow:0 5px 17px rgba(13,37,57,.055);transition:transform .2s,box-shadow .2s}
.theme-cedrus .ks-cedrus-category-cards .ks-cedrus-category-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(13,37,57,.12)}
.theme-cedrus .ks-cedrus-category-cards .ks-category-image-wrap{display:block;aspect-ratio:485/286;overflow:hidden;background:#e8edf1;width:100%}
.theme-cedrus .ks-cedrus-category-cards .ks-category-image-wrap img{display:block;width:100%;height:100%;object-fit:cover}
.theme-cedrus .ks-cedrus-category-cards .ks-category-image-fallback{display:grid;place-items:center;height:100%;font-size:64px;color:#a7b8c8;background:linear-gradient(135deg,#e9f1f7,#d8e4ed)}
.theme-cedrus .ks-cedrus-category-cards .ks-category-info{display:flex;align-items:center;gap:10px;padding:15px 12px;min-height:98px;width:100%;box-sizing:border-box}
.theme-cedrus .ks-cedrus-category-cards .ks-category-icon{display:grid;place-items:center;flex:0 0 39px;height:39px;border-radius:50%;font-size:24px;color:#0c3b5b;background:#e7f2fa}
.theme-cedrus .ks-cedrus-category-cards .ks-category-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0;text-align:left}
.theme-cedrus .ks-cedrus-category-cards .ks-category-copy strong{font-size:15px;font-weight:800;color:#11263b;line-height:1.2}
.theme-cedrus .ks-cedrus-category-cards .ks-category-copy small{font-size:11px;line-height:1.45;color:#526679}
.theme-cedrus .ks-cedrus-category-cards .ks-category-cta{flex:0 0 auto;padding:9px 10px;border-radius:7px;background:#0e4160;color:white;font-size:11px;font-weight:700;white-space:nowrap}
.theme-cedrus .ks-category-tone-2 .ks-category-cta{background:#288b60}.theme-cedrus .ks-category-tone-3 .ks-category-cta{background:#ef7800}.theme-cedrus .ks-category-tone-4 .ks-category-cta{background:#087dce}.theme-cedrus .ks-category-tone-5 .ks-category-cta{background:#e63644}.theme-cedrus .ks-category-tone-6 .ks-category-cta{background:#5222cc}
.theme-cedrus .ks-category-tone-2 .ks-category-icon{background:#e1f5e9}.theme-cedrus .ks-category-tone-3 .ks-category-icon{background:#fff0df}.theme-cedrus .ks-category-tone-4 .ks-category-icon{background:#e1f3ff}.theme-cedrus .ks-category-tone-5 .ks-category-icon{background:#ffeaed}.theme-cedrus .ks-category-tone-6 .ks-category-icon{background:#eee8ff}
.theme-cedrus .ks-cedrus-category-cards .ks-cedrus-category-card:focus-visible{outline:3px solid #1679d3;outline-offset:3px}
@media(max-width:1150px){.theme-cedrus .ks-cedrus-category-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.theme-cedrus .ks-cedrus-category-cards{grid-template-columns:1fr;gap:14px}.theme-cedrus .ks-cedrus-category-cards .ks-category-info{min-height:88px}}

/* 7.37: the featured grid spans the entire content width below the hero. */
.theme-cedrus .ks-cedrus-featured-categories{width:100%;max-width:100%;box-sizing:border-box;margin:28px 0 38px}
.theme-cedrus .ks-cedrus-category-cards{gap:18px}
.theme-cedrus .ks-cedrus-category-cards .ks-category-image-wrap{aspect-ratio:485/287;background:#fff}
.theme-cedrus .ks-cedrus-category-cards .ks-category-image-wrap img{width:100%;height:100%;object-fit:cover;object-position:center}
.theme-cedrus .ks-cedrus-category-cards .ks-category-info{padding:19px 16px;min-height:110px;gap:12px}
.theme-cedrus .ks-cedrus-category-cards .ks-category-icon{flex-basis:46px;height:46px;font-size:26px}
.theme-cedrus .ks-cedrus-category-cards .ks-category-copy strong{font-size:17px}
.theme-cedrus .ks-cedrus-category-cards .ks-category-copy small{font-size:12px;line-height:1.5}
.theme-cedrus .ks-cedrus-category-cards .ks-category-cta{font-size:12px;padding:11px 12px}
@media(max-width:800px){.theme-cedrus .ks-cedrus-category-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.theme-cedrus .ks-cedrus-category-cards{grid-template-columns:1fr}.theme-cedrus .ks-cedrus-category-cards .ks-category-info{padding:14px 12px;min-height:94px}}

/* 7.38 – Force category photography to fill the whole card image region.
   Overrides legacy theme image rules that restrict intrinsic width. */
.theme-cedrus .ks-cedrus-featured-categories .ks-cedrus-category-cards .ks-cedrus-category-card .ks-category-image-wrap {
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:970 / 574;
  overflow:hidden;
  flex:none;
}
.theme-cedrus .ks-cedrus-featured-categories .ks-cedrus-category-cards .ks-cedrus-category-card .ks-category-image-wrap > img {
  position:absolute !important;
  inset:0 !important;
  display:block !important;
  width:100% !important;
  max-width:none !important;
  min-width:100% !important;
  height:100% !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center center !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  transform:none !important;
}

/* 7.39: compact vertical spacing on the Cedrus Pro homepage only. */
.theme-cedrus .ks-home-cedrus .ks-cedrus-featured-categories {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.theme-cedrus .ks-home-cedrus .ks-cedrus-catalog {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
@media (max-width: 650px) {
  .theme-cedrus .ks-home-cedrus .ks-cedrus-featured-categories {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }
}
