/*
 * Listing produktów według projektu z public/project_katalog (eksport InDesign, płótno 1920 px).
 * Ładowany po home.css (kroje, .page ze skalowaniem przez zoom, nagłówek, stopka, .more, .u, .arr).
 * Wymiary w pikselach płótna. Bloki płyną jeden pod drugim (liczba produktów i filtrów jest zmienna),
 * a odstępy są z projektu: karta 2-kolumnowa 490 × 660, 4-kolumnowa 380 × 510, rząd co 74,9 px pod podpisem.
 */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header on white: black marks and the main menu on the right. */
.top-dark { color: #000; }
.top-dark .menu-btn span { background: #000; }
.top-dark .logo img { filter: invert(1); }
.top-dark .lang ul { color: #fff; }
.top-nav { position: absolute; left: 1546.7px; top: 198.2px; line-height: 36px; text-transform: uppercase; }
.top-nav a:hover, .top-nav a:focus-visible { opacity: .6; }

/* Filters (left) and the first six products (right); the design starts both at 480 px. */
.cat-top { display: grid; grid-template-columns: 588px 1060px; column-gap: 112px; align-items: start; padding: 480px 80px 0; }
.cat-blocks { display: flex; flex-direction: column; gap: 74.9px; padding: 74.9px 80px 0; }
.cat-row { display: flex; justify-content: space-between; align-items: flex-start; }
[data-results] { transition: opacity .2s; }
.is-loading [data-results] { opacity: .45; }
.cat-empty { font-size: 24px; line-height: 28.8px; }

/* Product cards. */
.grid { display: grid; row-gap: 74.9px; align-content: start; }
.grid[hidden] { display: none; }
.grid-2 { grid-template-columns: 490px 490px; column-gap: 80px; --ph: 660px; }
.grid-4 { grid-template-columns: repeat(4, 380px); column-gap: 80px; }
.grid-side { grid-template-columns: 380px; }
.pc { position: relative; min-width: 0; }
.pc-photo { display: block; height: var(--ph, 510px); background: #e9e7e4; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; }
.pc h3 { margin-top: 40px; padding: 0 84px 6px 0; margin-bottom: -6px; font-size: 35px; line-height: 35px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { display: flex; justify-content: space-between; gap: 20px; min-height: 18px; margin-top: 12.1px; line-height: 18px; white-space: nowrap; }
.pc-meta span:first-child { overflow: hidden; text-overflow: ellipsis; }
.pc-icons { position: absolute; right: 0; top: calc(var(--ph, 510px) + 40px); display: flex; gap: 16.2px; }
.pc-icons svg { display: block; width: 33.1px; height: 21.9px; overflow: visible; }
.pc-icons img { width: 24.8px; height: 21.9px; }

/* Photo banners with slides: A = inspirations (title bottom left), B = advice (title stepping right). */
.banner { position: relative; flex: none; height: 1300px; overflow: hidden; background: #000; color: #fff; }
.banner-a { width: 1270px; }
.banner-b { width: 1300px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide > img { width: 100%; height: 100%; object-fit: cover; }
.banner-title { position: absolute; left: 80px; display: block; }
.banner-a .banner-title { bottom: 73.5px; }
.banner-b .banner-title { bottom: 78.9px; }
.banner .dots { display: flex; gap: 30px; margin: 0; font-size: 18px; line-height: 18px; }
.banner .dots button.is-on::before { content: "( "; }
.banner .dots button.is-on::after { content: " )"; }
.banner-a .dots { left: 84px; bottom: 94.9px; }
.banner-b .dots { left: 987.6px; top: 14.9px; }
.banner-a .more { left: 1026.7px; bottom: 94.9px; }
.banner-b .more { left: 420px; bottom: 99.9px; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* „Załaduj więcej produktów”: 55 px under the last row, the arrows 14 px lower, the footer after 154.9 px. */
.cat-more { position: relative; height: 80px; }
.cat-more:has(.load-more) { height: 154.9px; }
.load-more { position: absolute; left: 0; top: 0; width: 1920px; height: 130px; padding-top: 55px; text-align: center; line-height: 18px; }
.load-more .hero-arrows { top: 87px; }
.load-more .hero-arrows::before { background: #000; }
.load-more .hero-arrows img { filter: invert(1); }
.load-more.is-loading { opacity: .45; pointer-events: none; }

.cat-text { max-width: 1160px; padding: 0 80px 80px; }
.cat-text :where(p, ul, ol, h2, h3) { margin: 0 0 21.6px; }
.cat-text :where(h2, h3) { font-size: 24px; line-height: 28.8px; }
.cat-text a { text-decoration: underline; text-underline-offset: 4px; }

/* Filters. */
.filters { position: relative; width: 588px; }
.f-head { position: relative; display: flex; align-items: flex-start; height: 35px; }
/* The design's „H3 W Extended”, exactly as the export draws it: the page's 45 Light stretched to 110 % of its width. */
/* The stretch is a transform, which takes no room: the grid's second column (a tenth of the word) reserves it,
   so the icon and „wyczyść” follow the word at the design's distances whatever its length in a language. */
.f-head h2 { display: inline-grid; grid-template-columns: 1fr .1fr; flex: none; font-size: 35px; line-height: 35px; letter-spacing: -.68px; white-space: nowrap; }
.f-head h2 span { transform: scaleX(1.1); transform-origin: 0 50%; }
/* „i” in a circle; its text opens under it on hover, focus or touch. */
.info { position: relative; display: inline-block; vertical-align: top; width: 22.9px; height: 22.9px; border: 1px solid currentColor; border-radius: 50%; font-size: 14px; line-height: 21px; text-align: center; text-transform: none; cursor: help; }
.f-head .info { flex: none; margin: -4px 0 0 15.5px; }
.f-group h3 .info { top: -2px; margin-left: 2px; }
.info-tip { display: none; position: absolute; z-index: 4; left: -1px; top: 31px; width: 340px; padding: 14px 16px; border: 1px solid #6f6f6f; background: #fff; font-size: 14px; line-height: 19px; text-align: left; white-space: normal; cursor: default; }
.info:hover .info-tip, .info:focus .info-tip, .info:focus-within .info-tip { display: block; }
.f-clear { flex: none; margin: 13px 0 0 20.1px; line-height: 18px; white-space: nowrap; }
.f-count { position: absolute; right: 0; top: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; line-height: 35px; }
.f-count strong { font-weight: inherit; font-size: 35px; }
.f-count span { font-size: 24px; }

.f-group { margin-top: 30.5px; }
.f-head + .f-group { margin-top: 44.2px; }
.f-range + .f-group { margin-top: 34.8px; }
.f-select + .f-group { margin-top: 39.7px; }
.f-group h3 { font-size: 35px; line-height: 35px; text-transform: lowercase; white-space: nowrap; }
.f-group h3 small { font-size: 18px; text-transform: none; }

.f-checks { padding-top: 21.5px; text-transform: lowercase; }
.f-checks-2 { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 4), 36px); grid-template-columns: 291px 291px; }
.check { position: relative; display: block; height: 36px; padding-left: 39.9px; line-height: 36px; white-space: nowrap; cursor: pointer; }
.check input { position: absolute; left: 0; top: 5.2px; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.check span { display: block; overflow: hidden; text-overflow: ellipsis; }
.check span::before { content: ""; position: absolute; left: 0; top: 5.2px; width: 20px; height: 20px; border: 1px solid #000; }
.check input:checked + span::after { content: ""; position: absolute; left: 5px; top: 10.2px; width: 10px; height: 10px; background: #000; }
.check input:focus-visible + span::before { outline: 2px solid #000; outline-offset: 2px; }

/* Slider: a 1 px line with two 10.6 px knobs (two range inputs over each other). */
.f-slider { position: relative; width: 586px; height: 10.6px; margin-top: 20px; }
.f-slider::before { content: ""; position: absolute; left: 5.3px; right: 5.3px; top: 5px; height: 1px; background: #000; }
.f-slider input { position: absolute; left: 0; top: 0; width: 100%; height: 10.6px; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.f-slider input::-webkit-slider-runnable-track { height: 10.6px; background: none; }
.f-slider input::-moz-range-track { height: 10.6px; background: none; }
.f-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 10.6px; height: 10.6px; border: 0; border-radius: 50%; background: #000; cursor: pointer; pointer-events: auto; }
.f-slider input::-moz-range-thumb { width: 10.6px; height: 10.6px; border: 0; border-radius: 50%; background: #000; cursor: pointer; pointer-events: auto; }
.f-slider input:focus-visible { outline: 1px solid #000; outline-offset: 6px; }
.f-values { display: flex; justify-content: space-between; margin-top: 11.6px; line-height: 18px; }

/* Drop-down: the design's box; the list of tick boxes opens under it, over the page. */
.f-select { position: relative; }
.f-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 586px; height: 62.3px; margin-top: 24px; padding: 0 20px 0 20.7px; border: 1px solid #6f6f6f; background: #fff; line-height: 22px; text-align: left; }
.f-box span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.f-box svg { flex: none; transition: transform .2s; }
.f-box[aria-expanded="true"] svg { transform: rotate(180deg); }
.f-options { position: absolute; z-index: 3; left: 0; top: 100%; width: 586px; max-height: 336px; margin-top: -1px; padding: 12px 20.7px; overflow-y: auto; border: 1px solid #6f6f6f; background: #fff; }
.f-options[hidden] { display: none; }
.f-submit { margin-top: 30px; padding: 0 24px; height: 62.3px; border: 1px solid #000; }
