body.zk-catalogue-gallery {
    --zk-gallery-ink: #282624;
    --zk-gallery-muted: #625d57;
    --zk-gallery-line: #e8e3dd;
    --zk-gallery-red: #b91d26;
    --zk-gallery-max: 1400px;
    --zk-gallery-gutter: clamp(18px, 3.4vw, 48px);
}

body.zk-catalogue-gallery:has(.zk-gallery-hero) #content {
    padding-top: var(--zk-gallery-nav-height, 0px);
}

body.zk-catalogue-gallery #content .ast-container {
    max-width: none;
    padding-inline: 0;
}

.zk-catalogue-gallery #content .zk-gallery-hero {
    display: flex;
    align-items: flex-end;
    margin-top: 0;
    min-height: clamp(280px, 28vw, 480px);
    background: linear-gradient(90deg, rgb(23 22 18 / .68), rgb(23 22 18 / .1) 72%),
        #514c43 url('/wp-content/uploads/zk-commerce-pilot/zk-catalogue-header.webp?v=2') center 52% / cover no-repeat;
}

.zk-catalogue-gallery .zk-gallery-hero > :is(.elementor-container, .elementor-background-overlay, .jet-parallax-section__layout) {
    display: none;
}

.zk-catalogue-gallery .zk-gallery-hero-copy {
    box-sizing: border-box;
    width: min(100%, var(--zk-gallery-max));
    margin-inline: auto;
    padding: 36px var(--zk-gallery-gutter) clamp(26px, 4.4vw, 64px);
    color: #fff;
}

.zk-catalogue-gallery .zk-gallery-hero-copy h1 {
    margin: 0 0 8px;
    color: inherit;
    font-size: clamp(41px, 5vw, 72px);
    line-height: 1.06;
    font-weight: 500;
    letter-spacing: -.045em;
}

.zk-catalogue-gallery .zk-gallery-hero-copy p {
    margin: 0;
    font-size: clamp(14px, 1.3vw, 18px);
}

.zk-catalogue-gallery #content .zk-gallery-body {
    margin: 0;
    padding: 0;
    background: #fff;
}

.zk-catalogue-gallery #content .zk-gallery-body > .elementor-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: var(--zk-gallery-max);
    padding-inline: var(--zk-gallery-gutter);
}

.zk-catalogue-gallery #content .zk-gallery-body :is(.zk-gallery-sidebar, .zk-gallery-products) {
    width: 100%;
    max-width: none;
}

.zk-catalogue-gallery #content .zk-gallery-body :is(.zk-gallery-sidebar, .zk-gallery-products) > .elementor-widget-wrap {
    margin: 0;
    padding: 0;
    background: transparent;
}

.zk-catalogue-gallery #content .zk-gallery-sidebar {
    z-index: 4;
    margin: 0 0 22px;
    border-bottom: 1px solid var(--zk-gallery-line);
}

.zk-catalogue-gallery #content .zk-gallery-body .zk-gallery-sidebar > .elementor-widget-wrap {
    justify-content: space-between;
    align-items: center;
    gap: 8px 22px;
    padding-block: 14px;
}

.zk-gallery-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.zk-gallery-filters details {
    position: relative;
}

.zk-gallery-filters summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 6px 12px;
    border: 1px solid var(--zk-gallery-line);
    border-radius: 4px;
    background: #fff;
    color: var(--zk-gallery-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    list-style: none;
    cursor: pointer;
}

.zk-gallery-filters summary::-webkit-details-marker {
    display: none;
}

.zk-gallery-filters summary::after {
    content: "";
    width: 6px;
    height: 6px;
    margin: -3px 3px 0 1px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}

.zk-gallery-filters details[open] summary {
    border-color: #ae9d90;
    background: #f7f4f1;
}

.zk-gallery-filter-count:not([hidden]) {
    min-width: 1.55em;
    padding: 2px 3px;
    border-radius: 99px;
    background: #eee8e2;
    text-align: center;
}

.zk-gallery-filter-panel {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 5;
    width: min(270px, calc(100vw - 42px));
    max-height: 55vh;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 13px;
    border: 1px solid var(--zk-gallery-line);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 8px 28px #211a1421;
}

.zk-gallery-filter-panel .elementor-widget-container {
    margin: 0 !important;
}

.zk-gallery-filters > .elementor-widget {
    width: auto;
    margin: 0;
}

.zk-catalogue-gallery #content .zk-gallery-actions {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.zk-gallery-actions > .elementor-widget-wrap {
    padding: 0 !important;
}

.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 22px);
    margin: 0;
}

.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-products__item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
}

.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-products__inner-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--zk-gallery-line);
    border-radius: 4px;
    background: #fff;
}

.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-products__thumb-wrap {
    position: relative;
    order: 0;
    margin: 0;
}

.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-product-thumbnail {
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    aspect-ratio: 1.22;
    overflow: hidden;
    margin: 0;
    background: #f6f5f3;
}

.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-product-thumbnail > a {
    display: block;
    min-height: 0;
}

.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-product-thumbnail > a,
.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-product-thumbs,
.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-product-thumbs__inner {
    width: 100%;
    height: 100%;
}

.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-product-title {
    order: 1;
    margin: 0;
    padding: 10px 11px 2px;
    text-align: left;
    color: var(--zk-gallery-ink);
    font-size: clamp(14px, 1.24vw, 19px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
}

.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-product-title a {
    color: inherit;
    font-weight: inherit;
}

.zk-gallery-card-meta {
    order: 2;
    flex: 1;
    padding: 0 11px 10px;
    color: var(--zk-gallery-muted);
    text-align: left;
    line-height: 1.35;
    font-size: clamp(12px, 1vw, 15px);
}

.zk-gallery-price {
    order: 3;
    display: flex;
    align-items: baseline;
    padding: 7px 11px;
    border-top: 1px solid var(--zk-gallery-line);
    background: #f3f0ec;
    color: var(--zk-gallery-ink);
    font-size: clamp(16px, 1.42vw, 22px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    white-space: nowrap;
}

.zk-gallery-price :is(.woocommerce-Price-currencySymbol, small) {
    font-size: .72em;
    font-weight: 700;
}

.zk-catalogue-gallery #content .zk-gallery-products .jet-woo-products__thumb-wrap > .hovered-content {
    inset: 8px 8px auto;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    width: auto;
    max-width: none;
    pointer-events: none;
}

.zk-catalogue-gallery #content .zk-gallery-products .hovered-content > :is(.jet-compare-button__container, .jet-wishlist-button__container) {
    flex: 0 0 auto;
    width: auto;
}

.zk-catalogue-gallery #content .zk-gallery-products .hovered-content > .jet-compare-button__container {
    order: 0;
}

.zk-catalogue-gallery #content .zk-gallery-products .hovered-content > .jet-wishlist-button__container {
    order: 1;
}

.zk-catalogue-gallery #content .zk-gallery-products .hovered-content :is(.jet-compare-button__link, .jet-wishlist-button__link) {
    display: grid;
    place-items: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    pointer-events: auto;
}

.zk-catalogue-gallery #content .zk-gallery-products .hovered-content .jet-compare-button__link .jet-compare-button__state {
    display: none;
}

.zk-catalogue-gallery #content .zk-gallery-products .hovered-content .jet-compare-button__link::after {
    content: "";
    width: 15px;
    height: 15px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    mask:
        linear-gradient(#000 0 0) left top / 30% 30% no-repeat,
        linear-gradient(#000 0 0) right top / 30% 30% no-repeat,
        linear-gradient(#000 0 0) left bottom / 30% 30% no-repeat,
        linear-gradient(#000 0 0) right bottom / 30% 30% no-repeat;
}

.zk-catalogue-gallery #content .zk-gallery-products .hovered-content .jet-wishlist-button__link .jet-wishlist-button__state {
    display: none;
}

.zk-catalogue-gallery #content .zk-gallery-products .hovered-content .jet-wishlist-button__link::after {
    content: "" !important;
    display: block;
    width: 17px;
    height: 17px;
    margin: 0;
    background-color: currentColor;
    clip-path: polygon(18% 6%, 82% 6%, 82% 96%, 50% 74%, 18% 96%, 18% 6%, 29% 17%, 29% 75%, 50% 61%, 71% 75%, 71% 17%, 29% 17%);
}

.zk-catalogue-gallery #content .zk-gallery-products .hovered-content .jet-wishlist-button__link.added-to-wishlist::after {
    clip-path: polygon(18% 6%, 82% 6%, 82% 96%, 50% 74%, 18% 96%);
}

.zk-catalogue-gallery #content .zk-gallery-products .hovered-content a:focus-visible,
.zk-gallery-filters summary:focus-visible {
    outline: 2px solid var(--zk-gallery-red);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .zk-catalogue-gallery #content .zk-gallery-products .jet-woo-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .zk-catalogue-gallery #content .zk-gallery-hero {
        min-height: 232px;
        background-position: center, 92% center;
    }

    .zk-catalogue-gallery #content .zk-gallery-products .jet-woo-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zk-catalogue-gallery #content .zk-gallery-products .hovered-content :is(.jet-compare-button__link, .jet-wishlist-button__link) {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }

    .zk-gallery-filters {
        position: relative;
    }

    .zk-gallery-filters details {
        position: static;
    }

    .zk-gallery-filter-panel {
        right: 0;
        width: auto;
    }
}

.zk-gallery-products .jet-smart-filters-pagination .jet-filters-pagination {
    display: flex;
    justify-content: center;
    margin-block: 14px 28px;
}

.zk-gallery-products .jet-smart-filters-pagination .jet-filters-pagination__load-more {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--zk-gallery-line);
    border-radius: 5px;
    background: #fff;
    color: var(--zk-gallery-ink);
    cursor: pointer;
}

.zk-gallery-products .jet-smart-filters-pagination .jet-filters-pagination__load-more .jet-filters-pagination__link {
    padding: 8px 20px;
}

.zk-gallery-products .jet-filters-pagination__load-more:focus-visible {
    outline: 2px solid var(--zk-gallery-red);
    outline-offset: 2px;
}

.zk-gallery-products .jet-smart-filters-pagination[aria-busy="true"] .jet-filters-pagination__load-more {
    opacity: .6;
    cursor: progress;
}

.zk-gallery-pagination-status:not(:empty) {
    margin-top: 18px;
    text-align: center;
    color: var(--zk-gallery-muted);
    font-size: 14px;
}

.zk-catalogue-gallery #content .zk-gallery-hero {
    align-items: center;
    min-height: 120px;
    background-position: center, center 64%;
}

.zk-catalogue-gallery .zk-gallery-hero-copy {
    padding: 12px var(--zk-gallery-gutter);
}

.zk-catalogue-gallery .zk-gallery-hero-copy h1 {
    margin-bottom: 4px;
    font-size: clamp(40px, 3.4vw, 48px);
}

.zk-catalogue-gallery .zk-gallery-hero-copy p {
    font-size: 14px;
}

.zk-catalogue-gallery #content .zk-gallery-body .zk-gallery-sidebar > .elementor-widget-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px 14px;
    padding-block: 8px;
}

.zk-gallery-results-tools {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px 12px;
    flex-wrap: wrap;
}

.zk-gallery-results-tools .zk-gallery-actions {
    margin-inline-start: auto;
}

.zk-gallery-mobile-trigger,
.zk-gallery-chip,
.zk-gallery-drawer :is(.zk-gallery-drawer-close, .zk-gallery-drawer-done) {
    min-height: 44px;
    padding: 5px 11px;
    border: 1px solid var(--zk-gallery-line);
    border-radius: 5px;
    background: #fff;
    color: var(--zk-gallery-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
}

.zk-gallery-active-filters:not([hidden]),
.zk-gallery-chip-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.zk-gallery-chip {
    min-height: 34px;
    border-radius: 999px;
    background: #f5f1ed;
}

.zk-gallery-active-filters > .elementor-widget {
    width: auto;
    margin: 0;
}

.zk-gallery-total,
.zk-gallery-progress {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--zk-gallery-muted);
    white-space: nowrap;
}

.zk-gallery-progress {
    margin: 14px auto 0;
    text-align: center;
}

.zk-gallery-sorting .jet-sorting-select {
    width: auto;
    min-height: 42px;
    padding: 5px 26px 5px 9px;
    border: 1px solid var(--zk-gallery-line);
    border-radius: 4px;
    color: var(--zk-gallery-ink);
    background-color: #fff;
    font-size: 13px;
}

.zk-gallery-purpose .jet-checkboxes-list__item {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    font-size: 13px;
}

.zk-gallery-purpose .jet-checkboxes-list__input {
    position: static;
    width: 15px;
    height: 15px;
    opacity: 1;
    margin: 0;
    clip-path: none;
    accent-color: var(--zk-gallery-red);
}

.zk-gallery-swatch {
    position: relative;
}

.zk-gallery-swatches .jet-checkboxes-list .zk-gallery-swatch .jet-checkboxes-list__input {
    display: block;
    visibility: visible;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    clip-path: inset(50%);
}

.zk-gallery-swatch .jet-checkboxes-list__button {
    min-height: 44px;
    justify-content: center;
}

.zk-gallery-swatches .jet-checkboxes-list-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
}

.zk-gallery-swatch-name {
    min-height: 24px;
    margin-top: 3px;
    padding: 2px 5px;
    text-align: center;
    color: var(--zk-gallery-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}

.zk-gallery-swatch :is(.jet-checkboxes-list__decorator, .jet-checkboxes-list__label, .jet-filters-counter) {
    display: none;
}

.zk-gallery-swatch .jet-checkboxes-list__button::after {
    content: "";
    width: 27px;
    height: 27px;
    border: 1px solid #211a1430;
    border-radius: 50%;
    background: var(--zk-swatch);
}

.zk-gallery-swatch input:checked + .jet-checkboxes-list__button::after,
.zk-gallery-swatch input:focus-visible + .jet-checkboxes-list__button::after {
    outline: 2px solid var(--zk-gallery-ink);
    outline-offset: 2px;
}

.zk-gallery-mobile-trigger,
.zk-gallery-drawer:not([open]) {
    display: none;
}

.zk-catalogue-gallery #content .zk-gallery-products .hovered-content :is(.jet-compare-button__link, .jet-wishlist-button__link) {
    width: 44px;
    min-width: 44px;
    height: 44px;
}

.zk-gallery-products .jet-woo-product-thumbs__inner > img:first-child {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

body.zk-catalogue-gallery #zk-language-offer {
    display: none;
}

html:not(.zk-consent-decided) body.zk-catalogue-gallery #zk-cookie-consent {
    display: flex;
    align-items: center;
    gap: 8px 16px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 8px clamp(12px, 3vw, 36px);
    border: 0;
    border-top: 1px solid #e8e3dd;
    border-radius: 0;
    box-shadow: 0 -4px 20px #0001;
}

body.zk-catalogue-gallery #zk-cookie-consent :is(h2, p) {
    margin: 0;
    font-size: 13px;
}

body.zk-catalogue-gallery #zk-cookie-consent h2 {
    flex: none;
}

body.zk-catalogue-gallery #zk-cookie-consent-actions {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    flex-wrap: nowrap;
}

body.zk-catalogue-gallery #zk-cookie-consent button {
    flex: none;
    padding: 7px 9px;
    min-height: 36px;
    font-size: 12px;
}

html:not(.zk-consent-decided) body.zk-catalogue-gallery #zorka-ai-widget-launcher {
    bottom: 66px;
}

@media (max-width: 700px) {
    .zk-catalogue-gallery #content .zk-gallery-hero {
        background-position: center, 75% 76%;
        background-size: auto, max(115%, 400px) auto;
    }

    .zk-gallery-sorting .jet-sorting-select {
        max-width: min(39vw, 155px);
    }

    .zk-catalogue-gallery #content .zk-gallery-body .zk-gallery-sidebar > .elementor-widget-wrap {
        grid-template-columns: minmax(0, 1fr) auto minmax(80px, auto);
        gap: 7px;
    }

    .zk-gallery-mobile-trigger {
        display: inline-flex;
        align-items: center;
    }

    .zk-gallery-filter-home > .zk-gallery-filters {
        display: none;
    }

    .zk-gallery-drawer {
        position: fixed;
        inset: auto 0 0;
        margin: 0;
        width: 100%;
        max-width: none;
        max-height: min(80dvh, 580px);
        padding: 16px 18px max(14px, env(safe-area-inset-bottom));
        border: 0;
        border-radius: 12px 12px 0 0;
        background: #fff;
        color: var(--zk-gallery-ink);
        overflow: auto;
    }

    .zk-gallery-drawer::backdrop {
        background: #29231e70;
    }

    .zk-gallery-drawer-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .zk-gallery-drawer-head h2 {
        margin: 0;
        font-size: 22px;
    }

    .zk-gallery-drawer .zk-gallery-filters {
        display: grid;
    }

    .zk-gallery-drawer .zk-gallery-filter-panel {
        position: static;
        width: 100%;
        max-height: none;
        box-shadow: none;
        border: 0;
        padding: 6px 0;
    }

    .zk-gallery-drawer .zk-gallery-drawer-done {
        width: 100%;
        margin-top: 10px;
        background: var(--zk-gallery-ink);
        color: #fff;
    }

    .zk-gallery-results-tools .zk-gallery-actions {
        margin-inline-start: auto;
    }

    html:not(.zk-consent-decided) body.zk-catalogue-gallery #zk-cookie-consent {
        flex-wrap: wrap;
    }

    body.zk-catalogue-gallery #zk-cookie-consent h2 {
        display: none;
    }

    html:not(.zk-consent-decided) body.zk-catalogue-gallery #zorka-ai-widget-launcher {
        bottom: 110px;
    }
}
