/* The complete catalogue has its own compact category strip. Homepage cards stay independent. */
#polunek-catalog .pk-overview-heading { padding-block: 22px 24px; }
#polunek-catalog .pk-overview-heading .pk-breadcrumbs { margin: 0 0 20px; }
#polunek-catalog .pk-overview-heading h1 { margin: 0 0 8px; color: var(--pk-olive); font-size: 32px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
#polunek-catalog .pk-overview-heading p { margin: 0; color: var(--pk-muted); font-size: 14px; line-height: 1.65; }
#polunek-catalog .pk-overview-categories ul { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
#polunek-catalog .pk-overview-categories li { min-width: 0; }
#polunek-catalog .pk-overview-categories a { display: flex; flex-direction: column; align-items: stretch; position: relative; height: 100%; border: 1px solid var(--pk-line); border-radius: 5px; background: #fff; color: var(--pk-olive); text-decoration: none; }
#polunek-catalog .pk-overview-category-image { display: block; aspect-ratio: 2.1; border-radius: 4px 4px 0 0; overflow: hidden; background: #fff; }
#polunek-catalog .pk-overview-category-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 54%; }
#polunek-catalog .pk-overview-category-name { padding: 12px 12px 30px; font-size: 13px; line-height: 1.45; font-weight: 650; }
#polunek-catalog .pk-overview-category-arrow { position: absolute; left: 12px; bottom: 10px; color: var(--pk-muted); }
#polunek-catalog .pk-overview-categories a:is(:hover,:focus-visible) { border-color: var(--pk-olive); color: var(--pk-olive); box-shadow: 0 4px 12px rgba(52,64,50,.07); }
#polunek-catalog .pk-overview-categories a:focus-visible { outline: 3px solid var(--pk-olive); outline-offset: 3px; }
#polunek-catalog .pk-overview-categories a:is(:hover,:focus-visible) .pk-overview-category-arrow { color: var(--pk-olive); transform: translateX(3px); }
#polunek-catalog .pk-overview-products { padding-top: 32px; }
#polunek-catalog .pk-catalog-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 28px; align-items: start; }
#polunek-catalog .pk-product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
#polunek-catalog .pk-catalog-results .pk-toolbar { min-height: 60px; padding: 0 0 16px; border-top: 0; margin-bottom: 20px; }
#polunek-catalog .pk-server-filters { margin-top: 0; }
#polunek-catalog .pk-catalog-sidebar { min-width: 0; }
#polunek-catalog .pk-overview-filter-help { margin: 18px 0 0; color: var(--pk-muted); font-size: 12px; line-height: 1.7; }
#polunek-catalog .pk-overview-filter-help a { color: var(--pk-olive); text-underline-offset: 3px; text-decoration: underline; }
#polunek-catalog .pk-filter-price { padding-bottom: 20px; margin-bottom: 22px; }
#polunek-catalog .pk-filter-price input { min-height: 44px!important; }
#polunek-catalog .pk-filter-price legend { font-size: 12px; }
#polunek-catalog .pk-filter-price label { font-size: 11px; }
#polunek-catalog .pk-product-grid .polunek-product__copy { padding: 12px; }
#polunek-catalog .pk-product-grid .polunek-product__image { padding: 16px 16px 4px; }
#polunek-catalog .pk-product-grid .polunek-product__cta { min-height: 44px; }
#polunek-catalog .pk-product-grid .polunek-product__stock { font-size: 11px; }
#polunek-catalog .pk-product-grid .polunek-product__specs { flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
    #polunek-catalog .pk-overview-categories a { transition: border-color .18s, box-shadow .18s; }
    #polunek-catalog .pk-overview-category-arrow { transition: transform .18s; }
}
@media (min-width: 1700px) { #polunek-catalog .pk-product-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 1200px) {
    #polunek-catalog .pk-overview-categories ul { gap: 8px; }
    #polunek-catalog .pk-overview-category-name { padding-inline: 9px; font-size: 12px; }
    #polunek-catalog .pk-overview-category-arrow { left: 9px; }
    #polunek-catalog .pk-catalog-layout { grid-template-columns: 220px minmax(0,1fr); gap: 22px; }
    #polunek-catalog .pk-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    #polunek-catalog .pk-sort { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 1023px) {
    #polunek-catalog .pk-overview-categories ul { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
}
@media (max-width: 800px) {
    #polunek-catalog .pk-catalog-layout { grid-template-columns: 1fr; gap: 20px; }
    #polunek-catalog .pk-overview-products { padding-top: 24px; }
    #polunek-catalog .pk-overview-filter-help { display: none; }
    #polunek-catalog .pk-server-filters { margin-bottom: 0; }
    #polunek-catalog .pk-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
    #polunek-catalog .pk-overview-heading { padding-block: 18px 24px; }
    #polunek-catalog .pk-overview-heading h1 { font-size: 27px; }
    #polunek-catalog .pk-overview-heading p { font-size: 13px; }
    #polunek-catalog .pk-overview-categories ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    #polunek-catalog .pk-overview-category-name { padding: 10px 28px 12px 10px; font-size: 12px; }
    #polunek-catalog .pk-overview-category-arrow { left: auto; right: 9px; bottom: 12px; }
    #polunek-catalog .pk-product-grid { gap: 10px; }
    #polunek-catalog .pk-product-grid .polunek-product__copy { padding: 10px; }
    #polunek-catalog .pk-product-grid .polunek-product__image { padding: 12px 12px 0; }
    #polunek-catalog .pk-sort { justify-content: flex-start; }
}

/* The department overview keeps image and cards together without a second category menu. */
#polunek-catalog .pk-overview-layout { padding-bottom: 52px; }
#polunek-catalog .pk-overview-section { display: grid; grid-template-columns: minmax(280px,.91fr) minmax(0,1.75fr); gap: clamp(20px,2vw,32px); min-width: 0; padding: 32px 0; border-top: 1px solid var(--pk-line); }
#polunek-catalog .pk-overview-scene { position: relative; display: block; min-height: 380px; overflow: hidden; isolation: isolate; border-radius: 5px; background: #23352a; color: #fff; text-decoration: none; }
#polunek-catalog .pk-overview-scene picture { position: absolute; inset: 0; z-index: -2; display: block; }
#polunek-catalog .pk-overview-scene img { display: block; width: 100%; height: 100%; object-fit: cover; }
#polunek-catalog .pk-overview-scene::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(10,22,14,.88),rgba(10,22,14,.54) 51%,rgba(10,22,14,.08)); pointer-events: none; }
#polunek-catalog .pk-overview-scene__content { position: absolute; right: 24px; bottom: 25px; left: 24px; display: flex; flex-direction: column; align-items: flex-start; max-width: 360px; }
#polunek-catalog .pk-overview-scene__kicker { font-size: 10px; font-weight: 700; letter-spacing: .23em; text-transform: uppercase; }
#polunek-catalog .pk-overview-scene__headline { margin: 15px 0 11px; font-family: Georgia,'Times New Roman',serif; font-size: clamp(28px,2.4vw,39px); line-height: 1.05; letter-spacing: -.025em; }
#polunek-catalog .pk-overview-scene__description { max-width: 280px; margin-bottom: 21px; color: #e7ece6; font-size: 14px; line-height: 1.45; }
#polunek-catalog .pk-overview-scene__cta { display: inline-flex; align-items: center; gap: 25px; min-height: 44px; padding: 10px 14px; border: 1px solid #c5d7c8; border-radius: 3px; background: rgba(18,46,31,.75); font-size: 12px; font-weight: 700; }
#polunek-catalog .pk-overview-scene__cta span { font-size: 19px; line-height: .7; }
#polunek-catalog .pk-overview-scene:focus-visible { outline: 3px solid var(--pk-olive); outline-offset: 3px; }
#polunek-catalog .pk-overview-section__products { min-width: 0; }
#polunek-catalog .pk-overview-section__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; min-height: 68px; }
#polunek-catalog .pk-overview-section h2 { margin: 0; color: var(--pk-olive); font-family: Georgia,'Times New Roman',serif; font-size: clamp(22px,1.8vw,29px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
#polunek-catalog .pk-overview-section__heading>a { flex: 0 0 auto; color: var(--pk-olive); font-size: 12px; text-underline-offset: 5px; }
#polunek-catalog .pk-overview-section__heading>a:focus-visible { outline: 2px solid var(--pk-olive); outline-offset: 3px; }
#polunek-catalog .pk-overview-rail { display: grid; grid-auto-columns: calc((100% - 24px)/3); grid-auto-flow: column; gap: 12px; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: 2px 2px 12px; scrollbar-width: thin; }
#polunek-catalog .pk-overview-rail__item { min-width: 0; scroll-snap-align: start; }
#polunek-catalog .pk-overview-product { display: flex; flex-direction: column; height: 100%; min-height: 300px; border: 1px solid var(--pk-line); border-radius: 5px; overflow: hidden; color: var(--pk-olive); background: #fff; text-decoration: none; }
#polunek-catalog .pk-overview-product:is(:hover,:focus-visible) { border-color: var(--pk-olive); box-shadow: 0 5px 18px rgba(30,50,32,.09); }
#polunek-catalog .pk-overview-product:focus-visible { outline: 2px solid var(--pk-olive); outline-offset: -2px; }
#polunek-catalog .pk-overview-product__image { display: grid; place-items: center; aspect-ratio: 1.3; overflow: hidden; background: #fff; }
#polunek-catalog .pk-overview-product__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
#polunek-catalog .pk-overview-product__name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; min-height: 4.2em; margin: 12px 12px 6px; font-size: 13px; line-height: 1.4; font-weight: 650; }
#polunek-catalog .pk-overview-product__availability { margin: 0 12px 10px; color: var(--pk-muted); font-size: 11px; }
#polunek-catalog .pk-overview-product__price { margin: auto 12px 14px; font-size: 15px; }
#polunek-catalog .pk-overview-product__price strong { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
    #polunek-catalog .pk-overview-scene img { transition: transform .35s ease; }
    #polunek-catalog .pk-overview-scene:hover img { transform: scale(1.025); }
}
@media (max-width: 1200px) {
    #polunek-catalog .pk-overview-section { display: block; }
    #polunek-catalog .pk-overview-scene { min-height: 260px; margin-bottom: 18px; }
    #polunek-catalog .pk-overview-scene img { object-position: right center; }
    #polunek-catalog .pk-overview-scene__content { right: 22px; bottom: 22px; left: 22px; }
    #polunek-catalog .pk-overview-scene__headline { margin: 8px 0; }
    #polunek-catalog .pk-overview-scene__description { display: none; }
    #polunek-catalog .pk-overview-section__heading { min-height: 56px; }
}
@media (max-width: 620px) {
    #polunek-catalog .pk-overview-layout { padding-bottom: 28px; }
    #polunek-catalog .pk-overview-section { padding: 23px 0 27px; }
    #polunek-catalog .pk-overview-scene { min-height: 215px; margin-bottom: 15px; }
    #polunek-catalog .pk-overview-scene__content { right: 17px; bottom: 18px; left: 17px; }
    #polunek-catalog .pk-overview-scene__headline { max-width: 250px; font-size: 30px; }
    #polunek-catalog .pk-overview-section__heading { align-items: center; min-height: 62px; }
    #polunek-catalog .pk-overview-section h2 { font-size: 21px; }
    #polunek-catalog .pk-overview-section__heading>a { font-size: 11px; text-align: right; }
    #polunek-catalog .pk-overview-rail { grid-auto-columns: minmax(165px,70%); gap: 10px; }
}
@media (max-width: 420px) {
    #polunek-catalog .pk-overview-scene { min-height: 0; aspect-ratio: 1.25; }
    #polunek-catalog .pk-overview-scene img { object-position: center 58%; }
}
