/* The product catalogue: product tiles, the category pages and the breadcrumbs. */

  /* ——— Product tiles (category pages) ——— */

  .kl__tile { display: block; color: var(--ink); }
  .kl__tile-img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--sky); transition: opacity .2s ease; }
  .kl__tile:hover .kl__tile-img { opacity: .9; }
  .kl__tile-name { display: block; margin-top: 12px; font-size: .94rem; letter-spacing: .01em; transition: color .15s ease; }
  .kl__tile:hover .kl__tile-name { color: var(--accent); }

  /* The tile of a product without a photo (Product#photo) keeps its square: a bracelet outline in a hairline, with
     one garnet bead, on sky. The price line is used by the category pages only. */
  .kl__tile-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--sky);
  }
  .kl__tile-placeholder::before {
    content: "";
    width: 44%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--accent-pale);
    border-radius: 50%;
    transition: border-color .2s ease;
  }
  /* The bead hangs on the bottom of the outline: a 44% ring centred in the tile ends 28% above its bottom edge. */
  .kl__tile-placeholder::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 28%;
    width: 6%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--accent);
    translate: -50% 50%;
  }
  .kl__tile:hover .kl__tile-placeholder::before { border-color: var(--accent); }
  .kl__tile-price { display: block; margin-top: 2px; font-family: var(--font-display); font-size: .94rem; color: var(--ink-soft); }

  /* ——— Product catalogue: category pages (/produkty/kategoria/:id) ——— */

  .kl__catalog { padding: 44px 0 76px; }
  .kl__catalog-head { margin-bottom: clamp(28px, 4vw, 44px); padding-bottom: clamp(22px, 3vw, 30px); border-bottom: 1px solid var(--hairline); }
  .kl__catalog-eyebrow { margin: 0 0 10px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
  .kl__catalog-title { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); margin: 0 0 10px; }
  .kl__catalog-lead { margin: 0; color: var(--muted); }
  .kl__catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

  /* Sidebar: a glass card that stays under the sticky navbar while the tiles scroll. */
  .kl__catalog-nav { position: sticky; top: calc(var(--nav-stuck) + 24px); padding: 20px 22px 10px; }
  .kl__catalog-nav-title { margin: 0 0 6px; font-size: .6875rem; font-family: var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .kl__catalog-categories { list-style: none; margin: 0; padding: 0; }
  .kl__catalog-categories li + li { border-top: 1px solid var(--hairline); }
  /* Every category has a hairline dot; the current one (aria-current="page") is the selected one — its dot fills with
     garnet, like a checked radio button. */
  .kl__catalog-category { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: .96rem; color: var(--ink-soft); transition: color .15s ease; }
  .kl__catalog-category::before { content: ""; flex: none; width: 9px; height: 9px; border: 1px solid var(--accent-pale); border-radius: 50%; transition: background-color .15s ease, border-color .15s ease; }
  .kl__catalog-category:hover { color: var(--accent); }
  .kl__catalog-category:hover::before { border-color: var(--accent); }
  .kl__catalog-category[aria-current="page"] { color: var(--ink); font-weight: 500; }
  .kl__catalog-category[aria-current="page"]::before { border-color: var(--accent); background: var(--accent); }

  .kl__catalog-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3.4vw, 40px) clamp(14px, 2vw, 24px); }
  .kl__catalog-empty { padding: clamp(32px, 5vw, 56px) 24px; text-align: center; }
  .kl__catalog-empty-text { margin: 0 0 18px; color: var(--muted); }

  /* ——— Breadcrumbs (shared/_breadcrumbs) ——— */

  .kl__crumbs { margin-bottom: 22px; font-size: .8125rem; line-height: normal; color: var(--muted); }
  .kl__crumbs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
  .kl__crumbs-item { display: inline-flex; gap: 8px; min-width: 0; }
  /* The separator is drawn, not read: the empty alternative text keeps it out of the accessibility tree. */
  .kl__crumbs-item + .kl__crumbs-item::before { content: "/"; content: "/" / ""; }
  .kl__crumbs-link { color: var(--accent); transition: color .15s ease; }
  .kl__crumbs-link:hover { color: var(--accent-dark); }
