.ks-showroom {
    --ks-bg: #f7f7f5;
    --ks-card: #fff;
    --ks-text: #171717;
    --ks-muted: #6b6b68;
    --ks-border: #e5e5e0;
    --ks-accent: #171717;
    color: var(--ks-text);
    margin: 0 auto;
    max-width: 1440px;
    padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 56px);
}

.ks-showroom *,
.ks-showroom *::before,
.ks-showroom *::after {
    box-sizing: border-box;
}

.ks-showroom__header {
    margin: 0 auto 24px;
    max-width: 780px;
    text-align: center;
}

.ks-showroom__eyebrow {
    color: var(--ks-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    margin: 0 0 14px;
}

.ks-showroom__header h2 {
    color: var(--ks-text);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1.02;
    margin: 0;
}

.ks-showroom__subtitle {
    color: var(--ks-muted);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.6;
    margin: 20px auto 0;
    max-width: 620px;
}

.ks-showroom__delivery-note {
    background: #f7f7f7;
    border: 1px solid var(--ks-border);
    border-left: 4px solid #e30613;
    border-radius: 12px;
    color: var(--ks-text);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px;
    padding: 16px 20px;
}

.ks-showroom__delivery-note p {
    margin: 0;
}

.ks-showroom__delivery-note strong {
    font-weight: 700;
}

.ks-showroom__filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    position: relative;
    z-index: 20;
}

.ks-showroom-filter {
    flex: 0 1 224px;
    min-width: 180px;
    position: relative;
}

.ks-showroom-filter__trigger {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(20, 20, 18, .08);
    color: var(--ks-text);
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 4px;
    height: 48px;
    justify-content: flex-start;
    margin: 0;
    min-width: 0;
    outline: none;
    padding: 0 14px;
    text-align: left;
    width: 100%;
}

.ks-showroom-filter__trigger:hover,
.ks-showroom-filter__trigger:focus-visible,
.ks-showroom-filter__trigger[aria-expanded="true"] {
    border-color: #c9c9c3;
    box-shadow: 0 0 0 2px rgba(23, 23, 23, .08);
}

.ks-showroom-filter__trigger span:first-child {
    color: #454542;
    white-space: nowrap;
}

.ks-showroom-filter__trigger strong {
    font-weight: 600;
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ks-showroom-filter__chevron {
    border-bottom: 1.5px solid #7a7a76;
    border-right: 1.5px solid #7a7a76;
    height: 7px;
    margin-left: auto;
    margin-right: 2px;
    margin-top: -4px;
    transform: rotate(45deg);
    transition: transform .18s ease;
    width: 7px;
}

.ks-showroom-filter__trigger[aria-expanded="true"] .ks-showroom-filter__chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}

.ks-showroom-filter__menu {
    background: #fff;
    border: 1px solid var(--ks-border);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(20, 20, 18, .16);
    left: 0;
    margin-top: 5px;
    max-height: min(420px, 70vh);
    min-width: 100%;
    overflow-y: auto;
    padding: 5px;
    position: absolute;
    top: 100%;
    width: max-content;
    z-index: 100;
}

.ks-showroom-filter__menu[hidden] {
    display: none !important;
}

.ks-showroom-filter__option {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--ks-text);
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 22px;
    justify-content: space-between;
    line-height: 1.25;
    min-height: 36px;
    min-width: 205px;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
}

.ks-showroom-filter__option:hover,
.ks-showroom-filter__option:focus-visible,
.ks-showroom-filter__option.is-selected {
    background: #f0f0ee;
    outline: none;
}

.ks-showroom-filter__option.is-selected::after {
    content: "✓";
    font-size: 16px;
    line-height: 1;
}

.ks-showroom__count {
    color: var(--ks-muted);
    font-size: 13px;
    margin-left: auto;
    min-width: 82px;
    text-align: right;
}

.ks-showroom__grid {
    display: grid;
    gap: clamp(18px, 2vw, 28px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ks-showroom-card {
    background: var(--ks-card);
    border: 1px solid var(--ks-border);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.ks-showroom-card:hover {
    box-shadow: 0 18px 50px rgba(20, 20, 18, .09);
    transform: translateY(-2px);
}

.ks-showroom-card[hidden] {
    display: none;
}

.ks-showroom-card__media {
    aspect-ratio: 25 / 26;
    background: var(--ks-bg);
    overflow: hidden;
    position: relative;
}

.ks-showroom-card__image {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    height: 100%;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-decoration: none;
    width: 100%;
}

.ks-showroom-card__image img {
    display: block;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    transition: transform .4s ease;
    width: 100%;
}

.ks-showroom-card__gallery-link {
    display: none;
}

.ks-showroom-card__zoom {
    align-items: center;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, .88);
    border-radius: 50%;
    bottom: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    color: var(--ks-text);
    display: flex;
    font-size: 17px;
    height: 36px;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    right: 14px;
    transition: transform .2s ease, background .2s ease;
    width: 36px;
}

.ks-showroom-card__image:hover .ks-showroom-card__zoom {
    background: #fff;
    transform: scale(1.06);
}

.ks-showroom-card:hover .ks-showroom-card__image img {
    transform: scale(1.025);
}

.ks-showroom-card__discount,
.ks-showroom-card__sold {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    left: 16px;
    line-height: 1;
    padding: 8px 10px;
    position: absolute;
    top: 16px;
}

.ks-showroom-card__discount {
    background: var(--ks-accent);
    color: #fff;
}

.ks-showroom-card__discount.is-sale {
    background: #e30613;
}

.ks-showroom-card__sold {
    background: #fff;
    color: var(--ks-text);
    left: auto;
    right: 16px;
}

.ks-showroom-card.is-sold .ks-showroom-card__image img {
    filter: grayscale(1);
    opacity: .6;
}

.ks-showroom-card.is-reserved .ks-showroom-card__sold {
    background: #fff1b8;
}

.ks-showroom-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
}

.ks-showroom-card__id {
    color: var(--ks-muted);
    font-size: 11px;
    letter-spacing: .1em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ks-showroom-card h3 {
    color: var(--ks-text);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.25;
    margin: 0;
}

.ks-showroom-card__material,
.ks-showroom-card__location {
    color: var(--ks-muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 5px 0 0;
}

.ks-showroom-card__location {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 0;
}

.ks-showroom-card__location > i:first-child {
    color: var(--ks-text);
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
}

.ks-showroom-card__footer {
    align-items: end;
    border-top: 1px solid var(--ks-border);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
}

.ks-showroom-card__prices {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ks-showroom-card__prices del {
    color: var(--ks-muted);
    font-size: 12px;
    line-height: 1.2;
}

.ks-showroom-card__prices strong {
    color: var(--ks-text);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.3;
    white-space: nowrap;
}

.ks-showroom-card__button {
    align-items: center;
    background: var(--ks-accent);
    border: 1px solid var(--ks-accent);
    border-radius: 9px;
    color: #fff !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    line-height: 1;
    min-height: 42px;
    padding: 0 17px;
    text-decoration: none !important;
    transition: opacity .2s ease, background .2s ease;
    white-space: nowrap;
}

.ks-showroom-card__button > i {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
}

.ks-showroom-card__button:hover {
    opacity: .82;
}

.ks-showroom-card__button.loading {
    opacity: .55;
    pointer-events: none;
}

.ks-showroom-card__button.is-in-cart {
    background: #fff;
    color: var(--ks-text) !important;
}

.ks-showroom-card__button.is-disabled {
    background: var(--ks-border);
    border-color: var(--ks-border);
    color: var(--ks-muted) !important;
    cursor: not-allowed;
}

.ks-showroom .added_to_cart.wc-forward {
    display: none;
}

.ks-showroom__empty,
.ks-showroom__empty-static {
    color: var(--ks-muted);
    margin: 36px 0;
    text-align: center;
}

@media (max-width: 1050px) {
    .ks-showroom-filter {
        flex: 1 1 calc(50% - 6px);
    }

    .ks-showroom__count {
        margin-left: 0;
        text-align: left;
        width: 100%;
    }

    .ks-showroom__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ks-showroom {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ks-showroom__grid {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ks-showroom__delivery-note {
        font-size: 13px;
        line-height: 1.5;
        padding: 14px;
    }

    .ks-showroom-filter {
        flex-basis: 100%;
        min-width: 0;
    }

    .ks-showroom-filter__menu {
        max-width: calc(100vw - 24px);
        min-width: 100%;
        width: 100%;
    }

    .ks-showroom-card__body {
        gap: 12px;
        padding: 12px;
    }

    .ks-showroom-card__image img {
        padding: 0;
    }

    .ks-showroom-card__zoom {
        bottom: 8px;
        font-size: 14px;
        height: 30px;
        right: 8px;
        width: 30px;
    }

    .ks-showroom-card h3 {
        font-size: 16px;
    }

    .ks-showroom-card__material,
    .ks-showroom-card__location {
        font-size: 12px;
    }

    .ks-showroom-card__prices strong {
        font-size: 17px;
    }

    .ks-showroom-card__footer {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
    }

    .ks-showroom-card__button {
        font-size: 12px;
        gap: 6px;
        min-height: 38px;
        padding: 0 10px;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ks-showroom-card,
    .ks-showroom-card__image img,
    .ks-showroom-card__button {
        transition: none;
    }
}
