/* The collection page (koleksiyon.html): a category's pieces on a page of
   their own — the bar with the breadcrumbs and the filter toggle, the row
   of categories, the filters, the head with the name and the count, the
   pieces one to a row with the photo beside the words (the reference lists
   its pieces as full rows too). Built on product-page.css (header, footer,
   buttons, tokens); the corners follow the corner style like every other
   surface. */
.cl { padding-block: 0 clamp(56px, 7vw, 110px); }

/* The bar: breadcrumbs left, the filter toggle right. */
.cl-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding-block: 10px; border-bottom: 1px solid rgb(var(--theme-line-rgb) / .6); }
.cl-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 12px; letter-spacing: .3px; color: var(--pp-muted); }
.cl-crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.cl-crumbs li + li::before { content: '›'; margin-inline: 9px; color: var(--pp-muted); opacity: .7; }
.cl-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--pp-muted); }
.cl-crumbs a:hover { color: var(--pp-olive); }
.cl-crumbs [aria-current="page"] { color: var(--pp-ink); }
.cl-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px 8px 16px; border: 1px solid var(--theme-line-strong); border-radius: var(--button-radius, 30px); font-size: 12px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; transition: border-color 150ms ease, background 150ms ease; }
.cl-toggle:hover { border-color: var(--pp-olive); background: var(--accent-mist); }
.cl-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms ease; }
.cl-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.cl-toggle-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 6px; border-radius: 50%; background: var(--pp-olive); color: #fffef8; font-size: 11px; font-weight: 600; letter-spacing: 0; }

/* The row of categories, right under the bar so it is in view on a phone
   where the header menu is folded away; the current one filled. */
.cl-categories { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 14px; border-bottom: 1px solid rgb(var(--theme-line-rgb) / .6); }
.cl-categories a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--theme-line-strong); border-radius: var(--button-radius, 30px); font-size: 13px; transition: border-color 150ms ease, background 150ms ease, color 150ms ease; }
.cl-categories a span { font-size: 11px; color: var(--pp-muted); font-variant-numeric: tabular-nums; }
.cl-categories a:hover { border-color: var(--pp-olive); }
.cl-categories a[aria-current="page"] { background: var(--pp-olive); border-color: var(--pp-olive); color: #fffef8; }
.cl-categories a[aria-current="page"] span { color: #fffef8; }

/* The filters: the types with their counts, the name search. */
.cl-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 22px 40px; padding: 22px 0 26px; border-bottom: 1px solid rgb(var(--theme-line-rgb) / .6); }
.cl-filter-label { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--pp-muted); }
.cl-types { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.cl-type { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px 6px 12px; border: 1px solid var(--theme-line-strong); border-radius: calc(8px * var(--corner-scale, 1)); background: var(--theme-card); cursor: pointer; font-size: 13px; transition: border-color 150ms ease, background 150ms ease; }
.cl-type:hover { border-color: var(--pp-olive); }
.cl-type input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.cl-type-box { width: 16px; height: 16px; border: 1.5px solid var(--theme-line-strong); border-radius: calc(4px * var(--corner-scale, 1)); display: grid; place-items: center; transition: background 150ms ease, border-color 150ms ease; }
.cl-type-box::after { content: ''; width: 8px; height: 5px; border-left: 2px solid #fffef8; border-bottom: 2px solid #fffef8; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.cl-type input:checked ~ .cl-type-box { background: var(--pp-olive); border-color: var(--pp-olive); }
.cl-type input:checked ~ .cl-type-box::after { opacity: 1; }
.cl-type input:focus-visible ~ .cl-type-box { outline: 2px solid var(--pp-olive); outline-offset: 3px; }
.cl-type input:checked ~ .cl-type-text { color: var(--pp-ink); font-weight: 600; }
.cl-type-num { font-size: 11px; color: var(--pp-muted); font-variant-numeric: tabular-nums; }
.cl-types-empty { margin: 0; font-size: 13px; color: var(--pp-muted); }
.cl-filter-search { display: flex; flex-direction: column; gap: 12px; }
.cl-search { position: relative; display: block; }
.cl-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; color: var(--pp-muted); pointer-events: none; }
.cl-search input { width: 100%; min-height: 46px; padding: 10px 14px 10px 42px; border: 1px solid var(--theme-line-strong); border-radius: calc(8px * var(--corner-scale, 1)); background: var(--theme-field); font-size: 16px; }
.cl-search input:focus { outline: none; border-color: var(--pp-olive); box-shadow: 0 0 0 3px var(--accent-halo); }
.cl-search input::placeholder { color: var(--pp-muted); }
.cl-clear { align-self: flex-start; min-height: 44px; padding: 8px 2px; font-size: 12px; font-weight: 500; letter-spacing: .3px; color: var(--accent-strong); text-decoration: underline; text-underline-offset: 4px; }

/* The head: the eyebrow and the name left, the count right — as the
   reference sets it, uppercase, tracked. */
.cl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(30px, 4.4vw, 60px) 0 clamp(22px, 3vw, 36px); }
.cl-eyebrow { margin: 0 0 8px; font-size: clamp(12px, 1.2vw, 15px); letter-spacing: 3px; text-transform: uppercase; color: var(--pp-muted); }
.cl-head h1 { margin: 0; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -1.4px; font-weight: 300; text-transform: uppercase; }
.cl-result { font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; font-variant-numeric: tabular-nums; text-align: right; color: var(--pp-ink); }

/* The pieces: one to a row, the photo in one half and the words in the
   other, the direction turning row by row; the name as a small tracked
   badge over the photo. On phones the photo alone, the words beneath. */
.cl-grid { display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 36px); }
.cl-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; border: 1px solid rgb(var(--theme-line-rgb) / .8); border-radius: calc(13px * var(--corner-scale, 1)); background: var(--theme-card); overflow: hidden; transition: border-color 200ms ease; }
.cl-card:nth-child(2n) .cl-card-media { order: 2; }
.cl-card:hover { border-color: var(--accent-edge); }
.cl-card:focus-visible { outline: 2px solid var(--pp-olive); outline-offset: 4px; }
.cl-card-name { position: absolute; z-index: 2; top: 18px; left: 20px; max-width: calc(50% - 40px); padding: 6px 11px; border-radius: calc(6px * var(--corner-scale, 1)); background: rgb(var(--theme-paper-rgb) / .88); font-size: 11px; font-weight: 500; letter-spacing: 2.6px; text-transform: uppercase; line-height: 1.3; color: var(--pp-ink); }
.cl-card:nth-child(2n) .cl-card-name { left: auto; right: 20px; }
.cl-card-media { display: block; aspect-ratio: 3 / 2; min-height: 100%; background: var(--theme-band); }
.cl-card-media picture, .cl-card-media img { width: 100%; height: 100%; }
.cl-card-media img { object-fit: cover; transition: transform 600ms cubic-bezier(.22, 1, .36, 1); }
.cl-card:hover .cl-card-media img { transform: scale(1.03); }
.cl-card-words { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: clamp(24px, 3.4vw, 48px) clamp(24px, 3.6vw, 56px); background: var(--theme-band-soft); }
.cl-card-type { font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--pp-muted); }
.cl-card-title { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.8px; font-weight: 300; }
.cl-card-price { margin-top: 6px; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cl-card-more { margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: .3px; color: var(--accent-strong); }
.cl-card-more span { display: inline-block; transition: transform 200ms ease; }
.cl-card:hover .cl-card-more span { transform: translateX(3px); }
.cl-card.is-sold-out .cl-card-media img { filter: grayscale(.4); opacity: .78; }
.cl-card.is-sold-out .cl-card-price { color: var(--pp-muted); font-weight: 400; }

/* Nothing to show: a category with no piece yet, or a narrowing that
   matched none — each says so and offers a way on. */
.cl-empty { padding: clamp(40px, 6vw, 80px) 0; text-align: center; }
.cl-empty p { margin: 0 0 20px; font-size: 18px; letter-spacing: -.3px; }
.cl-empty .pp-button { width: auto; display: inline-flex; }
.cl-empty-doors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cl-empty-doors a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--theme-line-strong); border-radius: var(--button-radius, 30px); font-size: 13px; }
.cl-empty-doors a:hover { border-color: var(--pp-olive); }

@media (max-width: 900px) {
  .cl-filters { grid-template-columns: 1fr; gap: 18px; }
  .cl-card, .cl-card:nth-child(2n) { grid-template-columns: 1fr; }
  .cl-card:nth-child(2n) .cl-card-media { order: 0; }
  .cl-card-media { min-height: 0; }
  .cl-card-name, .cl-card:nth-child(2n) .cl-card-name { left: 14px; right: auto; top: 14px; max-width: calc(100% - 28px); }
  .cl-card-words { padding: 18px 20px 22px; gap: 5px; }
  .cl-card-title { font-size: 22px; }
}
@media (max-width: 900px) {
  /* No purchase bar on this page, so the footer needs no room for one. */
  .collection-page .pp-footer { padding-bottom: 25px; }
}
@media (max-width: 760px) {
  .cl-bar { flex-wrap: wrap; min-height: 0; padding-block: 8px 10px; }
  .cl-toggle { width: 100%; justify-content: space-between; }
  .cl-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cl-result { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-card, .cl-card-media img, .cl-card-more span, .cl-toggle svg { transition: none; }
  .cl-card:hover .cl-card-media img { transform: none; }
}
