/* Both views render the same server results, prices and product links. */
.tenant-polunek #pk-catalog-listing { scroll-margin-top: 190px; }
.tenant-polunek .pk-toolbar-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 16px; }
.tenant-polunek .pk-view-switch { display: inline-flex; flex: none; gap: 3px; padding: 3px; border: 1px solid var(--pk-line); border-radius: 7px; background: #fff; }
.tenant-polunek .pk-view-switch a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 11px; border-radius: 4px; color: var(--pk-muted); font-size: 12px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.tenant-polunek .pk-view-switch a:hover { background: #f3f5f0; color: var(--pk-olive); }
.tenant-polunek .pk-view-switch a[aria-current] { background: var(--pk-olive); color: #fff; }
.tenant-polunek .pk-view-switch a:focus-visible { outline: 3px solid var(--pk-olive); outline-offset: 3px; }
.tenant-polunek .pk-view-switch svg { flex: none; }
.tenant-polunek .pk-toolbar-controls .pk-sort { width: auto; }
.tenant-polunek .pk-toolbar-controls .pk-sort .pk-custom-select { width: 170px; }
.tenant-polunek .pk-toolbar-controls .pk-sort .pk-button { min-height: 44px; padding: 10px 14px; font-size: 11px; }
.tenant-polunek .pk-category-tree--sidebar .pk-tree-link>.pk-tree-count { flex: none; font-size: 10px; color: var(--pk-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.tenant-polunek .pk-tree-all[aria-current=page] { color: var(--pk-olive); font-weight: 700; }
#polunek-catalog .pk-catalog-sidebar .pk-server-filters { margin-top: 20px; }
.tenant-polunek #pk-catalog-listing .polunek-product__summary { margin: 0 0 10px; color: var(--pk-muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=grid] .polunek-product__summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* A horizontal product row: photo, product information, price and action. */
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .pk-product-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product { min-width: 0; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__link { display: grid; grid-template-columns: 170px minmax(0,1fr); min-height: 164px; height: 100%; align-items: center; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__image { width: 100%; height: 164px; aspect-ratio: auto; padding: 16px; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__image img { width: 100%; height: 100%; object-fit: contain; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__copy { display: grid; grid-template-columns: minmax(0,1fr) 180px; grid-template-areas: 'category stock' 'name price' 'summary price' 'specs action'; column-gap: 26px; row-gap: 6px; align-items: center; min-width: 0; padding: 16px 20px; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__summary { grid-area: summary; margin: 0; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__category { grid-area: category; font-size: 11px; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product h3 { grid-area: name; margin: 0; min-height: 0; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__specs { grid-area: specs; display: flex; flex-wrap: wrap; margin: 0; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__stock { grid-area: stock; font-size: 10px; margin: 0; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__price { grid-area: price; margin: 0; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__price strong { font-size: 24px; }
.tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__cta { grid-area: action; margin: 0; min-height: 44px; }
@media (max-width: 1200px) {
    .tenant-polunek .pk-toolbar-controls { gap: 12px; }
    .tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__link { grid-template-columns: 140px minmax(0,1fr); }
    .tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__copy { grid-template-columns: minmax(0,1fr) 150px; gap: 6px 16px; padding: 14px 16px; }
    .tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product h3 { font-size: 14px; }
    .tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__price strong { font-size: 21px; }
}
@media (max-width: 800px) {
    .tenant-polunek #pk-catalog-listing { scroll-margin-top: 135px; }
    .tenant-polunek .pk-toolbar-controls { width: 100%; justify-content: space-between; }
    .tenant-polunek .pk-toolbar-controls .pk-sort { flex: 1; }
}
@media (max-width: 620px) {
    .tenant-polunek .pk-toolbar-controls { gap: 12px; }
    .tenant-polunek .pk-toolbar-controls .pk-sort { flex-basis: 100%; justify-content: flex-start; }
    .tenant-polunek .pk-toolbar-controls .pk-sort .pk-custom-select { flex: 1; width: auto; }
    .tenant-polunek .pk-view-switch { margin-left: auto; }
    .tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__link { grid-template-columns: 84px minmax(0,1fr) 144px; grid-template-areas: 'image category category' 'image name name' 'summary summary summary' 'specs specs specs' 'stock stock stock' 'price price action'; gap: 8px 10px; align-items: center; padding: 14px; }
    .tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__image { grid-area: image; height: 84px; padding: 4px; }
    .tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__copy { display: contents; }
    .tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__category { font-size: 10px; }
    .tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product h3 { font-size: 13px; }
    .tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__price strong { font-size: 20px; }
    .tenant-polunek #pk-catalog-listing[data-catalog-view=list] .polunek-product__cta { padding: 10px; gap: 6px; font-size: 10px; }
}
