/* com_kolorowanki – katalog (scoped to .kol-catalog) */
.kol-catalog {
  --kol-primary: #3b82f6;
  --kol-primary-hover: #2563eb;
  --kol-primary-soft: #dbeafe;
  --kol-hero-bg: #e8f3ff;
  --kol-page-bg: #f4f7fb;
  --kol-card-background: #ffffff;
  --kol-text: #1e293b;
  --kol-heading: #1e3a5f;
  --kol-muted: #64748b;
  --kol-border: #e2e8f0;
  --kol-radius: 16px;
  --kol-radius-sm: 12px;
  --kol-shadow: 0 10px 30px rgba(30, 58, 95, 0.08);
  --kol-shadow-sm: 0 4px 14px rgba(30, 58, 95, 0.06);
  --kol-cta-bg: #fff8e8;
  --kol-cta-btn: #f05a45;
  --kol-cta-btn-hover: #e04530;
  --kol-chip-1: #d1fae5;
  --kol-chip-2: #fef3c7;
  --kol-chip-3: #dbeafe;
  --kol-chip-4: #ede9fe;
  --kol-chip-5: #ffedd5;
  --kol-chip-6: #fee2e2;
  --kol-chip-7: #fce7f3;
  --kol-tag-age: #d1fae5;
  --kol-tag-cat: #dbeafe;
  container-type: inline-size;
  container-name: kol;
  width: 100%;
  max-width: 100%;
  color: var(--kol-text);
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.5;
}

.kol-catalog *,
.kol-catalog *::before,
.kol-catalog *::after {
  box-sizing: border-box;
}

.kol-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Breadcrumbs */
.kol-breadcrumbs {
  margin: 0 0 1rem;
}

.kol-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--kol-muted);
  font-size: 0.875rem;
}

.kol-breadcrumbs__list a {
  color: var(--kol-muted);
  text-decoration: none;
}

.kol-breadcrumbs__list a:hover {
  color: var(--kol-primary);
}

.kol-breadcrumbs__list li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  opacity: 0.6;
}

/* Hero + sticky toolbar */
.kol-hero {
  --kol-sticky-top: 0px;
  position: relative;
  background-color: #e8f4ff;
  background-image: url("../images/hero-search.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  border-radius: var(--kol-radius);
  padding: 0.85rem 1rem 0.9rem;
  padding-right: clamp(1rem, 24vw, 13rem);
  margin-bottom: 1.15rem;
  box-shadow: var(--kol-shadow-sm);
}

.kol-hero__intro {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 38rem;
}

.kol-hero__title,
.kol-catalog h1.kol-hero__title {
  margin: 0 0 0.2rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.2;
  color: var(--kol-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kol-hero__lead {
  margin: 0 0 0.55rem;
  color: var(--kol-muted);
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.35;
}

.kol-share {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 5;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.3rem 0.45rem 0.3rem 0.65rem;
  max-width: none;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--kol-border) 70%, transparent);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.kol-share__label {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--kol-muted);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.kol-share__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.22rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kol-share__list > li {
  flex-shrink: 0;
}

.kol-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.kol-share__btn:hover,
.kol-share__btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.kol-share__btn:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 28%, transparent);
}

.kol-share__btn--facebook { color: #1877f2; }
.kol-share__btn--x { color: #111827; }
.kol-share__btn--whatsapp { color: #128c7e; }
.kol-share__btn--linkedin { color: #0a66c2; }
.kol-share__btn--email { color: #c2410c; }
.kol-share__btn--copy { color: #0f766e; }

.kol-share__btn--facebook:hover,
.kol-share__btn--facebook:focus-visible { background: #eff6ff; }
.kol-share__btn--x:hover,
.kol-share__btn--x:focus-visible { background: #f3f4f6; }
.kol-share__btn--whatsapp:hover,
.kol-share__btn--whatsapp:focus-visible { background: #ecfdf5; }
.kol-share__btn--linkedin:hover,
.kol-share__btn--linkedin:focus-visible { background: #eff6ff; }
.kol-share__btn--email:hover,
.kol-share__btn--email:focus-visible { background: #fff7ed; }
.kol-share__btn--copy:hover,
.kol-share__btn--copy:focus-visible { background: #f0fdfa; }

.kol-share__btn.is-copied {
  background: #ecfdf5;
  color: #047857;
}

.kol-share__copied {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #047857;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.2rem 0.45rem;
  box-shadow: var(--kol-shadow-sm);
  white-space: nowrap;
}

.kol-hero__art {
  display: none;
}

.kol-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 38rem;
  margin-top: 0.45rem;
}

.kol-toolbar__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.45rem;
  border-top: 1px solid color-mix(in srgb, var(--kol-border) 70%, transparent);
}

/* Search */
.kol-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--kol-border);
  border-radius: 999px;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
  box-shadow: var(--kol-shadow-sm);
  width: 100%;
  max-width: 28rem;
}

.kol-search__icon {
  color: var(--kol-muted);
  flex-shrink: 0;
  font-size: 0.875rem;
}

.kol-catalog .kol-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.3rem;
  font: inherit;
  font-size: 0.925rem;
  color: var(--kol-text);
  outline: none;
}

.kol-catalog .kol-search__input::placeholder {
  color: #94a3b8;
}

.kol-search .kol-button {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
  min-height: 0;
}

/* Popular chips */
.kol-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.kol-popular__label {
  font-size: 0.8rem;
  color: var(--kol-muted);
  font-weight: 600;
}

.kol-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kol-heading);
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kol-chip__icon {
  display: inline-flex;
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0.9;
}

.kol-catalog a.kol-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--kol-shadow-sm);
  color: var(--kol-heading);
}

.kol-chip.is-active {
  outline: 2px solid var(--kol-primary);
  outline-offset: 1px;
}

.kol-chip:nth-child(2) { background: var(--kol-chip-1); color: #047857; }
.kol-chip:nth-child(3) { background: var(--kol-chip-2); color: #b45309; }
.kol-chip:nth-child(4) { background: var(--kol-chip-3); color: #1d4ed8; }
.kol-chip:nth-child(5) { background: var(--kol-chip-4); color: #6d28d9; }
.kol-chip:nth-child(6) { background: var(--kol-chip-5); color: #c2410c; }
.kol-chip:nth-child(7) { background: var(--kol-chip-6); color: #be123c; }
.kol-chip:nth-child(8) { background: var(--kol-chip-7); color: #9d174d; }
.kol-chip:nth-child(n+9) { background: var(--kol-chip-3); color: #1d4ed8; }

/* Layout */
.kol-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Filters sidebar */
.kol-filters {
  background: var(--kol-card-background);
  border: 1px solid var(--kol-border);
  border-radius: var(--kol-radius);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--kol-shadow-sm);
  position: sticky;
  top: 1rem;
}

.kol-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.kol-filters__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kol-heading);
}

.kol-filters__close {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--kol-muted);
}

.kol-filter-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  column-gap: 0.35rem;
  row-gap: 0.15rem;
  align-items: start;
  border: 0;
  margin: 0 0 1.1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--kol-border);
}

.kol-filter-group:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.kol-filter-group > legend {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--kol-heading);
  margin-bottom: 0.5rem;
  padding: 0;
}

.kol-filter-group__icon {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.kol-filter-group__icon--age { background: #dbeafe; color: #2563eb; }
.kol-filter-group__icon--cat { background: #d1fae5; color: #059669; }
.kol-filter-group__icon--diff { background: #fef3c7; color: #d97706; }
.kol-filter-group__icon--skill { background: #fee2e2; color: #dc2626; }

.kol-check {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  padding: 0.3rem 0.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  min-width: 0;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.kol-check__label {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.925rem;
  cursor: pointer;
  color: var(--kol-text);
}

.kol-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--kol-primary);
  flex-shrink: 0;
}

.kol-check__text {
  line-height: 1.3;
}

.kol-check.is-checked,
.kol-check:has(input:checked) {
  background: var(--kol-primary-soft);
  border-color: color-mix(in srgb, var(--kol-primary) 45%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kol-primary) 20%, transparent);
}

.kol-check.is-checked .kol-check__text,
.kol-check:has(input:checked) .kol-check__text {
  font-weight: 700;
  color: var(--kol-heading);
}

.kol-check__clear {
  display: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0.15rem 0.45rem;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--kol-primary-hover);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.kol-check__clear {
  text-decoration: underline;
}

.kol-check.is-checked .kol-check__clear,
.kol-check:has(input:checked) .kol-check__clear {
  display: inline-flex;
  align-items: center;
}

.kol-check__clear:hover,
.kol-check__clear:focus-visible {
  color: #1d4ed8;
  background: #eff6ff;
  outline: 2px solid var(--kol-primary);
  outline-offset: 1px;
}

.kol-filters__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.kol-filters__actions .kol-button {
  width: 100%;
}

.kol-filters-backdrop {
  display: none;
}

/* Results toolbar (inside hero) */
.kol-toolbar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.75rem;
  min-width: 0;
  flex: 0 1 auto;
}

.kol-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0;
  min-width: 0;
}

.kol-results__count {
  margin: 0;
  font-weight: 700;
  color: var(--kol-heading);
  font-size: 0.925rem;
}

.kol-results__n {
  color: var(--kol-primary);
}

.kol-catalog .kol-button.kol-filters-open {
  display: none;
}

.kol-catalog .kol-button.kol-button--filters {
  gap: 0.45rem;
}

.kol-filters-open__icon {
  display: inline-flex;
}

.kol-toolbar__clear {
  display: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kol-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.kol-toolbar__clear:hover,
.kol-toolbar__clear:focus-visible {
  color: var(--kol-primary-hover);
}

.kol-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--kol-muted);
  font-size: 0.925rem;
  margin: 0;
  min-width: 0;
}

.kol-sort__label {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--kol-heading);
  white-space: nowrap;
}

.kol-catalog .kol-sort select {
  border: 1px solid var(--kol-border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: #fff;
  font: inherit;
  color: var(--kol-text);
  max-width: 100%;
}

/* Grid + cards */
.kol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.kol-card {
  container-type: inline-size;
  container-name: kol-card;
  background: var(--kol-card-background);
  border: 1px solid var(--kol-border);
  border-radius: var(--kol-radius);
  box-shadow: var(--kol-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 0;
}

.kol-card:hover {
  box-shadow: var(--kol-shadow);
  transform: translateY(-2px);
}

.kol-chip.is-active {
  outline: 2px solid var(--kol-primary);
  outline-offset: 1px;
}

.kol-card__media {
  display: block;
  width: 100%;
  background: #f8fafc;
  aspect-ratio: 1 / 1.15;
  padding: 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--kol-border);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.kol-card__media:focus-visible {
  outline: 2px solid var(--kol-primary);
  outline-offset: -2px;
}

.kol-catalog .kol-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kol-card__body {
  padding: 0.7rem 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.kol-card__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--kol-heading);
  line-height: 1.3;
}

.kol-catalog .kol-card__title a {
  color: var(--kol-heading);
  text-decoration: none;
}

.kol-catalog .kol-card__title a:hover {
  color: var(--kol-primary);
}

.kol-card__desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--kol-muted);
}

.kol-card__tags,
.kol-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.kol-tag {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--kol-primary-soft);
  color: var(--kol-heading);
}

.kol-tag--age {
  background: var(--kol-tag-age);
}

.kol-tag--cat {
  background: var(--kol-tag-cat);
}

.kol-tag--downloads {
  gap: 0.3rem;
  align-items: center;
  background: #f3f4f6;
  color: var(--kol-muted);
  font-variant-numeric: tabular-nums;
}

.kol-tag--downloads .fa-download {
  font-size: 0.65em;
  opacity: 0.85;
}

.kol-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-top: auto;
}

.kol-catalog .kol-card__actions .kol-button,
.kol-catalog .kol-card__actions a.kol-button,
.kol-catalog .kol-card__actions button.kol-button {
  width: 100%;
  min-height: 1.85rem;
  padding: 0.28rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  border-width: 1.5px;
  gap: 0.25rem;
  white-space: nowrap;
}

.kol-catalog .kol-card__actions .kol-button i {
  font-size: 0.7rem;
}

@container kol-card (max-width: 220px) {
  .kol-card__actions {
    grid-template-columns: 1fr;
  }
}

/* Buttons – beat template link colors */
.kol-catalog .kol-button,
.kol-catalog a.kol-button,
.kol-catalog button.kol-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.kol-catalog .kol-button--primary,
.kol-catalog a.kol-button--primary {
  background: var(--kol-primary);
  color: #fff;
  border-color: var(--kol-primary);
}

.kol-catalog .kol-button--primary:hover,
.kol-catalog a.kol-button--primary:hover {
  background: var(--kol-primary-hover);
  border-color: var(--kol-primary-hover);
  color: #fff;
}

.kol-catalog .kol-button--ghost,
.kol-catalog a.kol-button--ghost,
.kol-catalog button.kol-button--ghost {
  background: #fff;
  border-color: var(--kol-primary);
  color: var(--kol-primary);
}

.kol-catalog .kol-button--ghost:hover,
.kol-catalog a.kol-button--ghost:hover,
.kol-catalog button.kol-button--ghost:hover {
  background: var(--kol-primary-soft);
  color: var(--kol-primary-hover);
  border-color: var(--kol-primary-hover);
}

.kol-catalog .kol-button--soft,
.kol-catalog a.kol-button--soft {
  background: var(--kol-primary-soft);
  color: var(--kol-primary);
  border-color: transparent;
}

.kol-catalog .kol-button--soft:hover,
.kol-catalog a.kol-button--soft:hover {
  background: #bfdbfe;
  color: var(--kol-primary-hover);
}

.kol-catalog .kol-button--cta,
.kol-catalog a.kol-button--cta {
  background: var(--kol-cta-btn);
  color: #fff;
  border-color: transparent;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(240, 90, 69, 0.28);
  white-space: nowrap;
}

.kol-catalog .kol-button--cta:hover,
.kol-catalog a.kol-button--cta:hover {
  background: var(--kol-cta-btn-hover);
  color: #fff;
}

.kol-catalog .kol-button:focus-visible {
  outline: 2px solid var(--kol-primary);
  outline-offset: 2px;
}

/* Pagination */
.kol-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  justify-content: center;
  align-items: center;
}

.kol-pagination a,
.kol-pagination span {
  display: inline-flex;
  min-width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--kol-border);
  text-decoration: none;
  color: var(--kol-heading);
  padding: 0 0.35rem;
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
}

.kol-pagination a:hover {
  border-color: var(--kol-primary);
  color: var(--kol-primary);
}

.kol-pagination [aria-current="page"] {
  background: var(--kol-primary);
  color: #fff;
  border-color: var(--kol-primary);
}

.kol-pagination__ellipsis {
  border: none;
  background: transparent;
  min-width: 1.25rem;
  padding: 0;
  font-weight: 500;
  color: var(--kol-muted, #6b7280);
  pointer-events: none;
}

.kol-pagination__nav {
  font-size: 1.15rem;
  font-weight: 500;
}

/* SEO / FAQ / CTA */
.kol-seo-below,
.kol-seo-content,
.kol-faq {
  margin-top: 2rem;
}

.kol-seo-content {
  max-width: none;
  width: 100%;
  color: var(--kol-text);
}

.kol-seo-content h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--kol-heading);
  line-height: 1.3;
  break-after: avoid;
  break-inside: avoid;
}

.kol-seo-content h2:first-child {
  margin-top: 0;
  column-span: all;
}

.kol-seo-content p {
  margin: 0 0 0.9rem;
  color: var(--kol-muted);
  line-height: 1.65;
  break-inside: avoid;
}

.kol-seo-content strong {
  color: var(--kol-heading);
  font-weight: 700;
}

@container kol (min-width: 900px) {
  .kol-seo-content {
    column-count: 2;
    column-gap: clamp(1.5rem, 3vw, 2.75rem);
  }
}

.kol-cta {
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(7.5rem, 14vw, 9.5rem);
  padding: 1rem clamp(7.5rem, 14vw, 11rem) 1rem clamp(8rem, 15vw, 12rem);
  border-radius: 22px;
  border: 1px solid #f5e6c0;
  background-color: var(--kol-cta-bg);
  background-image: url("../images/cta-banner.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  box-shadow: var(--kol-shadow-sm);
}

.kol-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.kol-cta__visual,
.kol-cta__mascot {
  display: none;
}

.kol-cta__text {
  min-width: 0;
}

.kol-cta__copy {
  margin: 0;
  color: var(--kol-heading);
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  line-height: 1.4;
  max-width: 36rem;
}

.kol-cta__title {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: 800;
  color: var(--kol-heading);
}

.kol-cta__lead {
  display: inline;
  margin: 0;
  color: var(--kol-heading);
  font-size: inherit;
  font-weight: 500;
}

.kol-cta__action {
  justify-self: end;
  flex-shrink: 0;
}

/* Modal preview */
html.kol-modal-open {
  overflow: hidden;
}

.kol-modal[hidden] {
  display: none !important;
}

.kol-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100vw;
  padding: 0.75rem;
  overflow: hidden;
}

.kol-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.kol-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100vw - 1.5rem));
  max-width: 100%;
  max-height: calc(100vh - 1.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 1.1rem 1.1rem 1.2rem;
}

.kol-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--kol-heading);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.kol-modal__close:hover {
  background: #e2e8f0;
}

.kol-modal__title {
  margin: 0 2rem 0.85rem 0;
  font-size: 1.2rem;
  color: var(--kol-heading);
}

.kol-modal__body {
  background: #f8fafc;
  border: 1px solid var(--kol-border);
  border-radius: 14px;
  padding: 0.65rem;
  margin-bottom: 1rem;
  overflow: hidden;
  max-width: 100%;
}

.kol-modal__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(52vh, 480px);
  object-fit: contain;
  margin: 0 auto;
}

.kol-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 100%;
}

.kol-modal__actions .kol-button {
  min-height: 2.35rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

/* Item page */
.kol-item__preview {
  margin: 0 0 1rem;
  background: #fff;
  border: 1px solid var(--kol-border);
  border-radius: var(--kol-radius);
  padding: 0.75rem;
  box-shadow: var(--kol-shadow-sm);
}

.kol-catalog .kol-item__preview img {
  width: 100%;
  height: auto;
  display: block;
}

.kol-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--kol-muted);
  background: #fff;
  border: 1px dashed var(--kol-border);
  border-radius: var(--kol-radius);
}

/* Responsive – container queries */
@container kol (max-width: 1100px) {
  .kol-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container kol (max-width: 900px) {
  .kol-hero {
    padding-right: 1rem;
    background-position: 85% center;
  }

  .kol-hero__intro,
  .kol-toolbar {
    max-width: none;
  }

  .kol-layout {
    grid-template-columns: 1fr;
  }

  .kol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kol-filters {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(100%, 320px);
    z-index: 1000;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    overflow: auto;
    top: 0;
    border-radius: 0 var(--kol-radius) var(--kol-radius) 0;
  }

  .kol-filters.is-open {
    transform: translateX(0);
  }

  .kol-filters-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.45);
    border: 0;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .kol-filters-backdrop.is-visible {
    display: block;
  }

  html.kol-filters-open,
  html.kol-filters-open body {
    overflow: hidden;
  }

  .kol-filters__close {
    display: inline-flex;
  }

  .kol-catalog .kol-button.kol-filters-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .kol-cta {
    min-height: 0;
    padding: 1.1rem 1.15rem 4.5rem;
    background-size: cover;
    background-position: left center;
  }

  .kol-cta__inner {
    grid-template-columns: 1fr;
  }

  .kol-cta__action {
    justify-self: start;
  }

  .kol-cta__action .kol-button {
    width: auto;
  }

  .kol-modal__dialog {
    width: calc(100vw - 1.25rem);
    max-height: calc(100vh - 1.25rem);
  }

  .kol-modal__img {
    max-height: min(48vh, 420px);
  }
}

@container kol (max-width: 520px) {
  .kol-hero {
    padding: 0.75rem 0.85rem 0.8rem;
    background-position: right 28% center;
    background-size: auto 115%;
  }

  .kol-hero__title,
  .kol-catalog h1.kol-hero__title {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
  }

  .kol-hero__lead {
    display: none;
  }

  .kol-toolbar {
    gap: 0.5rem;
  }

  .kol-popular__label {
    display: none;
  }

  .kol-chip {
    padding: 0.28rem 0.6rem;
    font-size: 0.78rem;
  }

  .kol-search {
    max-width: none;
    flex-wrap: nowrap;
    border-radius: 999px;
    padding: 0.2rem 0.2rem 0.2rem 0.7rem;
  }

  .kol-search .kol-button {
    width: auto;
    padding: 0.5rem 0.85rem;
  }

  .kol-toolbar__bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding-top: 0.55rem;
  }

  .kol-toolbar__meta {
    width: 100%;
    margin: 0;
  }

  .kol-toolbar__actions {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
  }

  .kol-catalog .kol-button.kol-filters-open {
    display: inline-flex;
  }

  .kol-catalog .kol-button.kol-button--filters {
    width: 100%;
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    background: var(--kol-cta-btn);
    color: #fff;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(240, 90, 69, 0.28);
  }

  .kol-catalog .kol-button.kol-button--filters:hover,
  .kol-catalog .kol-button.kol-button--filters:focus-visible {
    background: var(--kol-cta-btn-hover);
    color: #fff;
  }

  .kol-toolbar__clear {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
  }

  .kol-results__count {
    font-size: 0.8rem;
    font-weight: 600;
  }

  .kol-sort {
    margin: 0;
    width: 100%;
    min-width: 0;
    font-size: 0.85rem;
    gap: 0;
  }

  .kol-sort__label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .kol-catalog .kol-sort select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .kol-grid {
    grid-template-columns: 1fr;
  }
}

/* Sticky search / filters / sort — viewport media (sticky ignores containers) */
@media (max-width: 768px) {
  /* body overflow-x:clip breaks native sticky; we use .is-fixed via JS */
  body.pp-site:has(.kol-catalog) {
    overflow-x: visible;
  }

  .kol-hero {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0;
    background: transparent;
    background-image: none;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0.85rem;
  }

  .kol-hero__intro {
    order: 1;
    background-color: #e8f4ff;
    background-image: url("../images/hero-search.jpg");
    background-repeat: no-repeat;
    background-position: right 30% center;
    background-size: auto 120%;
    border-radius: var(--kol-radius);
    padding: 0.7rem 0.85rem 0.75rem;
    max-width: none;
  }

  .kol-hero__intro .kol-popular {
    margin-top: 0.5rem;
  }

  .kol-toolbar {
    order: 2;
    position: relative;
    z-index: 180;
    max-width: none;
    margin-top: 0;
    padding: 0.6rem 0.85rem 0.7rem;
    background-color: #e8f4ff;
    border-radius: var(--kol-radius);
    box-shadow: var(--kol-shadow-sm);
    border: 1px solid color-mix(in srgb, var(--kol-border) 55%, transparent);
  }

  .kol-toolbar.is-fixed {
    position: fixed;
    top: var(--kol-sticky-top, 64px);
    left: 50%;
    transform: translateX(-50%);
    width: min(100% - 1.5rem, 72rem);
    z-index: 180;
    margin: 0;
  }

  .kol-toolbar-placeholder {
    display: none;
    pointer-events: none;
  }

  .kol-toolbar-placeholder.is-active {
    display: block;
  }

  .kol-hero__title,
  .kol-catalog h1.kol-hero__title {
    font-size: 1.15rem;
  }

  .kol-hero__lead {
    display: none;
  }

  .kol-hero--share .kol-hero__intro {
    padding-top: 0.7rem;
    padding-right: 0.85rem;
  }

  .kol-share {
    position: static;
    order: 3;
    align-self: stretch;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.45rem 0.65rem;
    border-radius: var(--kol-radius);
    box-shadow: var(--kol-shadow-sm);
  }

  .kol-share__label {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
    font-size: 0.8rem;
  }

  .kol-share__list {
    flex: 1;
    justify-content: flex-end;
  }

  .kol-share__btn {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }

  .kol-share__copied {
    top: auto;
    bottom: calc(100% + 0.3rem);
    right: 0.65rem;
  }

  .kol-popular__label {
    display: none;
  }

  .kol-search {
    max-width: none;
  }

  .kol-toolbar__bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding-top: 0.5rem;
  }

  .kol-toolbar__meta {
    width: 100%;
    margin: 0;
  }

  .kol-toolbar__actions {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
  }

  .kol-catalog .kol-button.kol-filters-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .kol-catalog .kol-button.kol-button--filters {
    width: 100%;
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    background: var(--kol-cta-btn);
    color: #fff;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(240, 90, 69, 0.28);
  }

  .kol-catalog .kol-button.kol-button--filters:hover,
  .kol-catalog .kol-button.kol-button--filters:focus-visible {
    background: var(--kol-cta-btn-hover);
    color: #fff;
  }

  .kol-toolbar__clear {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
  }

  .kol-results__count {
    font-size: 0.8rem;
    font-weight: 600;
  }

  .kol-sort {
    margin: 0;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .kol-sort__label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .kol-catalog .kol-sort select {
    width: 100%;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 520px) {
  .kol-hero__intro {
    padding: 0.65rem 0.8rem;
  }

  .kol-toolbar {
    padding: 0.55rem 0.7rem 0.65rem;
    gap: 0.45rem;
  }

  .kol-chip {
    padding: 0.26rem 0.55rem;
    font-size: 0.75rem;
  }

  .kol-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kol-card,
  .kol-chip,
  .kol-share__btn,
  .kol-catalog .kol-button {
    transition: none;
  }

  .kol-card:hover,
  .kol-chip:hover {
    transform: none;
  }
}
