@font-face {
    font-family: 'Catalog Manrope';
    src: url('manrope-cyrillic-wght-normal.woff2') format('woff2');
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
    font-family: 'Catalog Manrope';
    src: url('manrope-latin-wght-normal.woff2') format('woff2');
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

.s96ip-gallery {
    --ink: #1a1c1a;
    --muted: #5f635e;
    --gallery-accent: #1f5c43;
    --gallery-line: #e7e8e3;
    --gallery-soft: #f3f4f1;
    --gallery-selected: #e8f1ec;
    max-width: 1320px;
    width: 100%;
    min-width: 0;
    margin-inline: auto;
    font: 16px/1.45 'Catalog Manrope', system-ui, sans-serif;
}

.s96ip-gallery .s96ip-gallery-back { margin: 0 0 7px; font-size: 14px; }
.s96ip-gallery-back a { color: var(--muted); text-decoration: none; }
.s96ip-gallery-back a:hover { text-decoration: underline; }
.s96ip-gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 24px;
}
.s96ip-gallery .s96ip-gallery-heading h1 {
    margin: 0;
    color: var(--ink);
    font-family: inherit;
    font-size: clamp(29px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.045em;
}
.s96ip-gallery-heading p { max-width: 350px; margin: 0; color: var(--muted); font-size: 14px; }

.s96ip-gallery-filters { border-top: 1px solid var(--gallery-line); margin: 0 0 24px; padding-top: 16px; }
.s96ip-gallery-toolbar, .s96ip-gallery-facets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.s96ip-gallery-toolbar { gap: 8px 12px; }
.s96ip-gallery-facet-slot { min-width: 0; }
.s96ip-gallery-facets fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.s96ip-gallery-products {
    display: flex;
    max-width: 100%;
    align-items: center;
    border-radius: 999px;
    background: var(--gallery-soft);
    padding: 4px !important;
}
.s96ip-gallery-products label, .s96ip-gallery-chip { position: relative; cursor: pointer; }
.s96ip-gallery-products input[type="radio"], .s96ip-gallery-chip input[type="radio"], .s96ip-gallery-chip input[type="checkbox"] {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
}
.s96ip-gallery-products span {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}
.s96ip-gallery-products input:checked + span {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 4px rgb(26 28 26 / .13);
}
.s96ip-gallery-products input:focus-visible + span, .s96ip-gallery-chip input:focus-visible + span {
    outline: 2px solid var(--gallery-accent);
    outline-offset: 2px;
}

.s96ip-gallery-dropdown { position: relative; }
.s96ip-gallery-dropdown summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 7px 12px;
    border: 1px solid var(--gallery-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}
.s96ip-gallery-dropdown summary::-webkit-details-marker { display: none; }
.s96ip-gallery-dropdown summary:hover { border-color: #acb8af; }
.s96ip-gallery-dropdown[open] summary { border-color: var(--ink); }
.s96ip-gallery-dropdown summary:has(.s96ip-gallery-filter-count) { background: var(--gallery-selected); border-color: #b8cec0; }
.s96ip-gallery-filter-count {
    min-width: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gallery-accent);
    color: #fff;
    font-size: 11px;
    text-align: center;
}
.s96ip-gallery-chevron {
    width: 6px;
    height: 6px;
    margin: -3px 2px 0;
    border: solid currentColor;
    border-width: 0 1.4px 1.4px 0;
    transform: rotate(45deg);
}
.s96ip-gallery-dropdown[open] .s96ip-gallery-chevron { margin-top: 3px; transform: rotate(225deg); }
.s96ip-gallery-popover {
    position: absolute;
    z-index: 12;
    top: calc(100% + 9px);
    inset-inline-start: 0;
    width: min(330px, calc(100vw - 44px));
    padding: 16px;
    border: 1px solid var(--gallery-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 35px rgb(26 28 26 / .13);
}
.s96ip-gallery-popover:has(.s96ip-gallery-color-group) { width: min(448px, calc(100vw - 44px)); }
.s96ip-gallery-dropdown[data-align-end] .s96ip-gallery-popover { inset-inline: auto 0; }
.s96ip-gallery-popover-actions, .s96ip-gallery-drawer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--gallery-line);
}
.s96ip-gallery .s96ip-button {
    border-color: var(--gallery-accent);
    background: var(--gallery-accent);
    font-size: 14px;
    font-weight: 750;
}
.s96ip-gallery-reset {
    padding: 5px 0;
    border: 0;
    background: none;
    color: var(--gallery-accent);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.s96ip-gallery-chip-group + .s96ip-gallery-chip-group { margin-top: 13px; }
.s96ip-gallery-chip-group legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.s96ip-gallery-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.s96ip-gallery-chip { display: inline-flex; max-width: 100%; }
.s96ip-gallery-chip span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    padding: 5px 14px;
    border: 1px solid var(--gallery-line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 13px;
    text-align: center;
    overflow-wrap: anywhere;
}
.s96ip-gallery-chip span::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 8px;
    height: 5px;
    border: solid currentColor;
    border-width: 0 0 1.5px 1.5px;
    transform: translateY(-65%) rotate(-45deg);
    opacity: 0;
}
.s96ip-gallery-chip:hover span { border-color: #9cad9f; }
.s96ip-gallery-chip input:checked + span {
    padding-inline: 22px 6px;
    background: var(--gallery-selected);
    border-color: #8dab96;
    color: var(--gallery-accent);
}
.s96ip-gallery-chip input:checked + span::before { opacity: 1; }
.s96ip-gallery-color-group .s96ip-gallery-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.s96ip-gallery-color-group .s96ip-gallery-chip { display: block; }
.s96ip-gallery-color-group .s96ip-gallery-chip span {
    flex-direction: column;
    gap: 5px;
    padding: 4px 1px;
    border-color: transparent;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.25;
}
.s96ip-gallery-color-group .s96ip-gallery-chip span::before { display: none; }
.s96ip-gallery-color-group .s96ip-gallery-chip i {
    width: clamp(32px, 5vw, 44px);
    aspect-ratio: 1;
    border: 1px solid var(--gallery-line);
    border-radius: 50%;
}
.s96ip-tone-white { background: #f5f3ef; }
.s96ip-tone-beige { background: #e7decb; }
.s96ip-tone-gray { background: #9fa49e; }
.s96ip-tone-dark { background: #252825; }
.s96ip-tone-marble { background: linear-gradient(132deg, #ecece8 40%, #cfd2cd 47%, #f5f4ef 54%); }

.s96ip-gallery-stone { position: relative; flex: 1 1 168px; min-width: 0; margin-inline-start: auto; }
.s96ip-gallery-search { position: relative; }
.s96ip .s96ip-gallery-search input[type="search"] {
    appearance: none;
    min-height: 44px;
    margin: 0;
    padding: 8px 36px 8px 38px;
    border-color: var(--gallery-line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 14px;
}
.s96ip-gallery-search input::-webkit-search-cancel-button { display: none; }
.s96ip-gallery-search-submit, .s96ip-gallery-search-clear {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.s96ip-gallery-search-clear { inset: 0 1px 0 auto; font-size: 20px; }
.s96ip-gallery-search-icon {
    position: absolute;
    top: calc(50% - 7px);
    left: 13px;
    width: 13px;
    height: 13px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    pointer-events: none;
}
.s96ip-gallery-search-icon::after {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 6px;
    height: 1.5px;
    background: currentColor;
    content: '';
    transform: rotate(45deg);
    transform-origin: left center;
}
.s96ip-gallery-suggestions {
    position: absolute;
    z-index: 13;
    top: calc(100% + 5px);
    inset-inline: 0;
    max-height: 232px;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 5px;
    border: 1px solid var(--gallery-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 26px rgb(26 28 26 / .12);
}
.s96ip-gallery-suggestions [role="option"], .s96ip-gallery-suggestions p {
    margin: 0;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.s96ip-gallery-suggestions [role="option"] { cursor: pointer; }
.s96ip-gallery-suggestions [role="option"]:hover, .s96ip-gallery-suggestions [aria-selected="true"] {
    background: var(--gallery-selected);
    color: var(--gallery-accent);
}

.s96ip-gallery-results, .s96ip-gallery-summary, .s96ip-gallery-active, .s96ip-gallery-sort {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.s96ip-gallery-results { justify-content: space-between; padding-block: 14px; border-bottom: 1px solid var(--gallery-line); }
.s96ip-gallery-count { margin: 0; color: var(--muted); font-size: 13px; }
.s96ip-gallery-active { gap: 6px; }
.s96ip-gallery-active a:not(.s96ip-gallery-reset) {
    display: inline-block;
    max-width: 100%;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.s96ip-gallery-active a span { margin-inline-start: 3px; }
.s96ip-gallery-active .s96ip-gallery-reset { padding-inline: 3px; }
.s96ip-gallery-sort { margin-left: auto; color: var(--muted); font-size: 13px; }
.s96ip .s96ip-gallery-sort select {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 5px 9px;
    border-color: var(--gallery-line);
    border-radius: 9px;
    color: var(--ink);
    font-size: 13px;
}
.s96ip-gallery-drawer-trigger, .s96ip-gallery-drawer { display: none; }
.s96ip-gallery-empty { padding: 20px; border: 1px dashed var(--gallery-line); border-radius: 12px; }

.s96ip-gallery .s96ip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.s96ip-gallery .s96ip-grid article { border: 0; border-radius: 0; background: transparent; text-align: start; }
.s96ip-gallery .s96ip-grid article:hover { box-shadow: none; }
.s96ip-gallery .s96ip-grid article > a { display: flex; flex-direction: column; gap: 13px; }
.s96ip-gallery .s96ip-grid article:has(a:focus-visible) { outline: 2px solid var(--gallery-accent); outline-offset: 3px; box-shadow: none; }
.s96ip-gallery .s96ip-grid article a:focus-visible { outline: none; }
.s96ip-gallery-image { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: #e7e5e0; }
.s96ip-gallery-image img { height: 100%; transition: transform .35s ease; }
.s96ip-gallery-type {
    position: absolute;
    top: 11px;
    left: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fffffff5;
    color: var(--gallery-accent);
    font-size: 11px;
    font-weight: 800;
}
.s96ip-gallery .s96ip-grid article .s96ip-gallery-card-info { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 0 2px; }
.s96ip-gallery .s96ip-grid h3 { color: var(--ink); font: 800 18px/1.25 'Catalog Manrope', system-ui, sans-serif; overflow-wrap: anywhere; }
.s96ip-gallery .s96ip-grid .s96ip-gallery-material { display: flex; align-items: center; gap: 9px; margin: auto 0 0; color: var(--muted); font-size: 12px; }
.s96ip-gallery-material strong { color: var(--ink); font-size: 13px; }
.s96ip-gallery-material > span { display: grid; align-self: end; overflow-wrap: anywhere; }
.s96ip-gallery .s96ip-gallery-material img { flex: none; width: 32px; height: 32px; aspect-ratio: 1; border: 1px solid var(--gallery-line); border-radius: 50%; }
.s96ip-gallery-card-foot {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    align-items: center;
    min-height: 30px;
    margin-top: auto;
    padding-top: 7px;
    border-top: 1px solid var(--gallery-line);
    color: var(--muted);
    font-size: 12px;
}
.s96ip-gallery-material + .s96ip-gallery-card-foot { margin-top: 0; }
.s96ip-gallery-location { display: flex; gap: 6px; align-items: baseline; overflow-wrap: anywhere; }
.s96ip-gallery-location::before { content: '⌖'; color: var(--gallery-accent); }
.s96ip-gallery-card-arrow { margin-inline-start: auto; color: var(--gallery-accent); font-size: 16px; }

.s96ip-gallery > .s96ip-gallery-more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 18px;
    margin: 0;
}
.s96ip-gallery > .s96ip-gallery-more:has(a:not([hidden])) { margin-top: clamp(30px, 3.4vw, 48px); }
.s96ip-gallery .s96ip-gallery-more .s96ip-button { min-width: 154px; border-color: var(--gallery-soft); background: var(--gallery-soft); color: var(--ink); }
.s96ip-gallery-more [aria-disabled="true"] { opacity: .65; cursor: wait; }
.s96ip-gallery-error:empty { display: none; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .s96ip-gallery .s96ip-grid a:hover .s96ip-gallery-image img { transform: scale(1.035); }
    .s96ip-gallery-chip span { transition: padding .16s ease, background-color .16s ease, border-color .16s ease; }
}

@media (max-width: 1070px) {
    .s96ip-gallery .s96ip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
}
@media (max-width: 740px) {
    .s96ip-gallery .s96ip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .s96ip-gallery-heading { margin-bottom: 16px; }
    .s96ip-gallery-heading p { display: none; }
    .s96ip-gallery-filters { margin-bottom: 17px; padding-top: 0; border-top: 0; }
    .s96ip-gallery-toolbar { display: block; }
    .s96ip-gallery-enhanced .s96ip-gallery-facet-slot { display: none; }
    .s96ip-gallery-results { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: 9px 0; border-bottom: 0; }
    .s96ip-gallery-summary { grid-row: 2; grid-column: 1 / -1; align-items: flex-start; flex-direction: column-reverse; }
    .s96ip-gallery-active a:not(.s96ip-gallery-reset) { background: var(--gallery-selected); color: var(--gallery-accent); font-weight: 750; }
    .s96ip-gallery-sort { grid-row: 1; grid-column: 2; }
    .s96ip-gallery-sort > span { display: none; }
    .s96ip .s96ip-gallery-sort select { min-height: 44px; }
    .s96ip-gallery-enhanced .s96ip-gallery-drawer-trigger {
        display: block;
        min-height: 44px;
        padding: 8px 10px;
        border: 0;
        border-radius: 10px;
        background: var(--ink);
        color: white;
        font: inherit;
        font-size: 14px;
        font-weight: 750;
        cursor: pointer;
    }
    .s96ip-gallery-drawer[open] {
        position: fixed;
        inset: auto 0 0;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        width: 100%;
        max-width: none;
        max-height: 88dvh;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 20px 20px 0 0;
        background: white;
        color: var(--ink);
    }
    .s96ip-gallery-drawer::backdrop { background: rgb(24 31 27 / .52); }
    body:has(.s96ip-gallery-drawer[open]) { overflow: hidden; }
    .s96ip-gallery-drawer-head, .s96ip-gallery-drawer-fields, .s96ip-gallery-drawer-actions { padding: 13px 16px; }
    .s96ip-gallery-drawer-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gallery-line); }
    .s96ip-gallery-drawer-head h2 { margin: 0; color: var(--ink); font: 800 22px/1.3 'Catalog Manrope', system-ui, sans-serif; }
    .s96ip-gallery-drawer-head button {
        display: grid;
        place-items: center;
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--gallery-soft);
        color: var(--ink);
        font: 400 23px/1 system-ui, sans-serif;
        cursor: pointer;
    }
    .s96ip-gallery-drawer-fields { min-height: 0; overflow: auto; overscroll-behavior: contain; }
    .s96ip-gallery-drawer .s96ip-gallery-facets { display: block; }
    .s96ip-gallery-drawer .s96ip-gallery-products { width: max-content; }
    .s96ip-gallery-drawer .s96ip-gallery-dropdown { margin-top: 12px; border-top: 1px solid var(--gallery-line); }
    .s96ip-gallery-drawer .s96ip-gallery-dropdown summary { justify-content: space-between; padding-inline: 0; border: 0; background: transparent; }
    .s96ip-gallery-drawer .s96ip-gallery-filter-count { margin-inline-start: auto; }
    .s96ip-gallery-drawer .s96ip-gallery-popover { position: static; width: auto; padding: 0 0 5px; border: 0; box-shadow: none; }
    .s96ip-gallery-drawer .s96ip-gallery-popover-actions { display: none; }
    .s96ip-gallery-drawer .s96ip-gallery-chip span { min-height: 44px; }
    .s96ip-gallery-drawer .s96ip-gallery-chip-group:only-of-type legend { position: absolute; clip-path: inset(50%); white-space: nowrap; }
    .s96ip-gallery-drawer-actions { margin: 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
    .s96ip-gallery-drawer-actions .s96ip-button { flex: 1 1 auto; }
}
@media (max-width: 560px) {
    .s96ip-gallery .s96ip-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

