/* =========================================================
   Katalog książek
   Układ bazowy: jeden produkt w wierszu
   ========================================================= */


/* =========================================================
   1. Lista produktów
   ========================================================= */

.woocommerce ul.products,
.woocommerce-page ul.products,
.ast-woocommerce-container ul.products {
    display: block !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.ast-woocommerce-container ul.products li.product {
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 2rem;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 1.5rem 0 !important;

    float: none !important;

    border-bottom: 1px solid #ddd;
}


/* =========================================================
   2. Okładka
   ========================================================= */

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
    grid-column: 1;

    width: 190px;
    margin: 0;
}

.woocommerce ul.products li.product img {
    display: block;

    width: 190px;
    height: auto;

    max-width: 100%;
    max-height: 280px;

    object-fit: contain;
    object-position: top center;
}


/* Ukrywamy przyciski Astry nakładane na okładkę */

.woocommerce ul.products li.product .ast-on-card-button,
.woocommerce ul.products li.product .ast-select-options-trigger {
    display: none !important;
}


/* =========================================================
   3. Treść produktu
   ========================================================= */

.woocommerce ul.products li.product .astra-shop-summary-wrap {
    grid-column: 2;

    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 0;
}


/* Tytuł */

.woocommerce ul.products li.product
.woocommerce-loop-product__title {
    display: -webkit-box;
    overflow: hidden;

    margin: 0 0 .75rem;

    font-size: 1.55rem;
    line-height: 1.25;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* Ukrywamy kategorię generowaną przez Astrę */

.woocommerce ul.products li.product
.ast-woo-product-category {
    display: none !important;
}


/* =========================================================
   4. Format publikacji + kategorie
   ========================================================= */

.vst-catalog-meta-line {
    order: 10;

    display: flex;
    align-items: center;
    gap: .6rem;

    min-width: 0;
    margin: 0 0 .45rem;
}

.vst-catalog-badges {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;

    margin: 0 .55rem 0 0;
}

.vst-catalog-meta-line .vst-format-badge,
.vst-catalog-meta-line .vst-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 20px !important;
    height: 20px;

    margin: 0 !important;
    padding: 0 .42rem !important;

    border-radius: 3px;
    box-sizing: border-box;

    font-size: .68rem !important;
    line-height: 1 !important;
    white-space: nowrap;
    vertical-align: middle;
}

.vst-catalog-meta-categories {
    flex: 1 1 auto;
    min-width: 0;

    overflow: hidden;

    font-size: .85rem;
    line-height: 1.4;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   5. Kolejność i zawartość danych produktu
   ========================================================= */

/* Domyślny link Astry zawierający tytuł */

.woocommerce ul.products li.product
.astra-shop-summary-wrap > .ast-loop-product__link {
    order: 20;
}


/* Autor / redakcja */

.vst-catalog-people {
    order: 30;

    overflow: hidden;

    margin: 0 0 .5rem;

    font-size: .92rem;
    line-height: 1.45;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.vst-catalog-people-label {
    font-weight: 600;
}


/* Krótki opis */

.vst-catalog-description {
    order: 40;

    display: -webkit-box;
    overflow: hidden;

    margin: 0 0 .8rem;

    font-size: .95rem;
    line-height: 1.5;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.vst-catalog-description-long {
    -webkit-line-clamp: 5;
}


/* Cena */

.woocommerce ul.products li.product
.astra-shop-summary-wrap > .price {
    order: 50;
}


/* Przycisk zakupu */

.woocommerce ul.products li.product
.astra-shop-summary-wrap > .button {
    order: 60;

    align-self: flex-start;

    width: auto !important;
}


/* =========================================================
   6. Wyszukiwanie i filtry katalogu
   ========================================================= */

.vst-catalog-number-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px 10px;

    width: 100%;
    margin: 0 0 1.5rem;
}

.vst-catalog-number-search label {
    grid-column: 1 / -1;

    margin: 0;

    font-weight: 600;
}

.vst-catalog-number-search input[type="search"] {
    grid-column: 1;

    width: 100%;
    min-width: 0;
    margin: 0;
}

.vst-catalog-number-search > button {
    grid-column: 2;
    grid-row: 2;

    width: auto;
    min-height: 42px;

    margin: 0;
    padding: 0 24px;

    white-space: nowrap;
}

.vst-catalog-reset {
    grid-column: 3;
    grid-row: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    min-height: 42px;

    border: 1px solid #cbd0d6;
    border-radius: 2px;

    background: #f1f1f1;
    color: #555;

    font-size: 18px;
    text-decoration: none;
}

.vst-catalog-reset:hover {
    background: #e5e5e5;
    color: #222;
}

.vst-catalog-reset svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vst-catalog-filter-row {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;

    width: 100%;
    max-width: 900px;
}

.vst-catalog-filter-row select {
    width: 100%;
    min-width: 0;
}

/* =========================================================
   Podpowiedź wyszukiwarki
   ========================================================= */

.vst-catalog-search-help {
    grid-column: 1 / -1;

    margin: -2px 0 2px;

    color: #667085;
    font-size: .84rem;
    line-height: 1.4;
}


/* =========================================================
   Rozwijany opis
   ========================================================= */

.vst-catalog-description-toggle {
    order: 45;

    display: none;

    align-self: flex-start;

    min-height: 40px;
    margin: 0 0 .6rem;
    padding: .45rem .85rem;

    border: 1px solid #0674d8;
    border-radius: 4px;

    background: transparent;
    color: #0674d8;

    font-size: .86rem;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;
}

.vst-catalog-description-toggle:hover,
.vst-catalog-description-toggle:focus {
    background: #f0f7ff;
    color: #0568c2;
    border-color: #0568c2;
}


/* =========================================================
   Stronicowanie nad katalogiem
   ========================================================= */

.vst-catalog-pagination-top {
    clear: both;

    width: 100%;
    margin: 0 0 1.25rem;
}

.vst-catalog-pagination-top:empty {
    display: none;
}


/* =========================================================
   Nakładka WooCommerce/Astra "Brak w magazynie"
   ========================================================= */

.woocommerce ul.products li.product
.ast-shop-product-out-of-stock {
    padding: .45rem .6rem !important;

    font-size: .8rem !important;
    line-height: 1.15 !important;
}

/* =========================================================
   RESPONSYWNOŚĆ
   Każdy breakpoint jest kompletnym blokiem.
   Przy dalszych zmianach zastępuj cały blok @media.
   ========================================================= */


/* ---------------------------------------------------------
   Do 900 px - tablet
   --------------------------------------------------------- */
@media (max-width: 920px) {

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .ast-woocommerce-container ul.products li.product {
        grid-template-columns:
            150px minmax(0, 1fr) !important;

        gap: 1.25rem;

        padding: 1.25rem 0 !important;
    }

    .woocommerce ul.products li.product
    .astra-shop-thumbnail-wrap {
        grid-column: 1 !important;

        width: 150px;
    }

    .woocommerce ul.products li.product
    .astra-shop-summary-wrap {
        grid-column: 2 !important;

        min-width: 0;
        width: auto !important;
        max-width: none !important;
    }

    .woocommerce ul.products li.product img {
        width: 150px;
        max-height: 230px;
    }

    .woocommerce ul.products li.product
    .woocommerce-loop-product__title {
        margin-bottom: .55rem;

        font-size: 1.25rem;

        -webkit-line-clamp: 3;
    }

    .vst-catalog-people {
        display: -webkit-box;

        white-space: normal;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;

        overflow: hidden;
    }

    /*
     * Na tabletach opis jest zwinięty.
     */

    .vst-catalog-description,
    .vst-catalog-description-long {
        display: none;

        margin-bottom: .55rem;

        font-size: .9rem;
        line-height: 1.45;
    }

    .vst-catalog-description.is-expanded,
    .vst-catalog-description-long.is-expanded {
        display: -webkit-box;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 10;

        overflow: hidden;
    }

    .vst-catalog-description-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /*
     * Trzy filtry nadal w jednym rzędzie.
     */

    .vst-catalog-filter-row {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        max-width: 100%;
    }

}

/* ---------------------------------------------------------
   Do 700 px - mały tablet
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .ast-woocommerce-container ul.products li.product {
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 1rem;

        padding: 1rem 0 !important;
    }

    .woocommerce ul.products li.product
    .astra-shop-thumbnail-wrap {
        width: 125px;
    }

    .woocommerce ul.products li.product img {
        width: 125px;
        max-height: 195px;
    }

    .woocommerce ul.products li.product
    .woocommerce-loop-product__title {
        margin-bottom: .45rem;

        font-size: 1.05rem;
        line-height: 1.3;
    }

    /*
     * Badge'e mogą przechodzić do następnej linii.
     * Kategorie są osobnym wierszem pod nimi.
     */

    .vst-catalog-meta-line {
        display: block;

        margin-bottom: .4rem;
    }

    .vst-catalog-badges {
        display: flex;
        flex-wrap: wrap;
        gap: .3rem;

        margin: 0 0 .3rem;
    }

    .vst-catalog-meta-categories {
        display: block;

        width: 100%;

        overflow: hidden;

        font-size: .82rem;
        line-height: 1.35;

        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .vst-catalog-people {
        display: -webkit-box;

        margin-bottom: .4rem;

        font-size: .86rem;
        line-height: 1.4;

        white-space: normal;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;

        overflow: hidden;
    }

    .vst-catalog-description.is-expanded,
    .vst-catalog-description-long.is-expanded {
        -webkit-line-clamp: 10;
    }

    /*
     * Nadal 3 filtry w jednym wierszu.
     */

    .vst-catalog-filter-row {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 8px;

        max-width: 100%;
    }

    .vst-catalog-filter-row select {
        font-size: .85rem;
    }

    .woocommerce ul.products li.product
    .ast-shop-product-out-of-stock {
        padding: .35rem .45rem !important;

        font-size: .7rem !important;
        line-height: 1.1 !important;
    }

}

/* ---------------------------------------------------------
   Do 600 px - telefon
   Karta pozioma: okładka po lewej, dane po prawej.
   --------------------------------------------------------- */

@media (max-width: 600px) {

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .ast-woocommerce-container ul.products li.product {
        grid-template-columns:
            105px minmax(0, 1fr) !important;

        gap: .75rem;

        padding: .9rem 0 !important;
    }

    .woocommerce ul.products li.product
    .astra-shop-thumbnail-wrap {
        grid-column: 1 !important;

        width: 105px;
    }

    .woocommerce ul.products li.product
    .astra-shop-summary-wrap {
        grid-column: 2 !important;

        min-width: 0;
        width: auto !important;
        max-width: none !important;
    }

    .woocommerce ul.products li.product img {
        width: 105px;
        max-height: 160px;
    }

    .woocommerce ul.products li.product
    .woocommerce-loop-product__title {
        margin-bottom: .35rem;

        font-size: .94rem;
        line-height: 1.3;

        -webkit-line-clamp: 2;
    }

    .vst-catalog-meta-line {
        display: block;

        margin-bottom: .35rem;
    }

    .vst-catalog-badges {
        display: flex;
        flex-wrap: wrap;
        gap: .25rem;

        margin: 0 0 .3rem;
    }

    .vst-catalog-meta-categories {
        display: block;

        width: 100%;

        overflow: hidden;

        font-size: .75rem;
        line-height: 1.3;

        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .vst-catalog-people {
        margin-bottom: .35rem;

        font-size: .78rem;
        line-height: 1.35;

        -webkit-line-clamp: 2;
    }

    .vst-catalog-description.is-expanded,
    .vst-catalog-description-long.is-expanded {
        margin-bottom: .4rem;

        font-size: .78rem;
        line-height: 1.35;

        -webkit-line-clamp: 10;
    }

    .vst-catalog-description-toggle {
        min-height: 40px;

        margin-bottom: .45rem;
        padding: .45rem .75rem;

        font-size: .78rem;
    }

    .woocommerce ul.products li.product
    .astra-shop-summary-wrap > .price {
        margin-bottom: .4rem;

        font-size: .9rem;
        line-height: 1.3;
    }

    .woocommerce ul.products li.product
    .astra-shop-summary-wrap > .button {
        min-height: 34px;

        padding: .45rem .8rem !important;

        font-size: .78rem;
        line-height: 1.2;
    }

    /*
     * Od 600 px w dół filtry przechodzą
     * do jednej kolumny.
     */

    .vst-catalog-filter-row {
        grid-template-columns: 1fr;
        gap: 8px;

        max-width: 100%;
    }

    .vst-catalog-number-search {
        grid-template-columns:
            minmax(0, 1fr) auto auto;

        gap: 8px;
    }

    .vst-catalog-number-search > button {
        min-height: 40px;
        padding: 0 14px;
    }

    .vst-catalog-reset {
        width: 40px;
        min-height: 40px;
    }

    .vst-catalog-search-help {
        font-size: .78rem;
    }

    .woocommerce ul.products li.product
    .ast-shop-product-out-of-stock {
        padding: .3rem .4rem !important;

        font-size: .65rem !important;
    }

}

/* ---------------------------------------------------------
   Do 420 px - bardzo mały telefon
   --------------------------------------------------------- */

@media (max-width: 420px) {

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .ast-woocommerce-container ul.products li.product {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: .65rem;
    }

    .woocommerce ul.products li.product
    .astra-shop-thumbnail-wrap {
        width: 92px;
    }

    .woocommerce ul.products li.product img {
        width: 92px;
        max-height: 145px;
    }

    .woocommerce ul.products li.product
    .woocommerce-loop-product__title {
        font-size: .9rem;
    }

    .vst-catalog-description,
    .vst-catalog-description-long {
        -webkit-line-clamp: 2;
    }

    /*
     * Przy bardzo małej szerokości przyciski wyszukiwania
     * przechodzą pod pole tekstowe.
     */

    .vst-catalog-number-search {
        grid-template-columns: 1fr auto;
    }

    .vst-catalog-number-search input[type="search"] {
        grid-column: 1 / -1;
    }

    .vst-catalog-number-search > button {
        grid-column: 1;
        grid-row: 3;

        width: 100%;
    }

    .vst-catalog-reset {
        grid-column: 2;
        grid-row: 3;
    }

}

/* =========================================================
   VST 1.1 - rok/osoby i rozwijany opis katalogu
   ========================================================= */

.vst-person-name-short {
    display: none;
}

.vst-catalog-year {
    white-space: nowrap;
}

.vst-catalog-description.is-expanded,
.vst-catalog-description-long.is-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

@media (min-width: 921px) {
    .vst-catalog-description-toggle {
        display: inline-flex;
        align-items: center;
        min-height: 0;
        margin: -.35rem 0 .8rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: #667085;
        font-size: .82rem;
        font-weight: 500;
        line-height: 1.35;
        text-decoration: underline;
        text-underline-offset: .15em;
    }

    .vst-catalog-description-toggle:hover,
    .vst-catalog-description-toggle:focus {
        border: 0;
        background: transparent;
        color: #0674d8;
    }
}

@media (max-width: 920px) {
    .vst-person-name-full {
        display: none;
    }

    .vst-person-name-short {
        display: inline;
    }

    .vst-catalog-description-toggle {
        border: 1px solid #0674d8;
        background: transparent;
        color: #0674d8;
        text-decoration: none;
    }
}

/* Inicjały tylko na smartfonie; tablet zachowuje pełne imiona. */
@media (min-width: 601px) and (max-width: 920px) {
    .vst-person-name-full {
        display: inline;
    }

    .vst-person-name-short {
        display: none;
    }
}

/* =========================================================
   VST 1.1.4 - katalog: metadane, opis i mobilne akcje
   ========================================================= */

.vst-catalog-people-label {
    font-weight: 400;
}

.vst-catalog-year-value,
.vst-catalog-people .vst-person-name-full,
.vst-catalog-people .vst-person-name-short {
    font-weight: 600;
}

.vst-catalog-description-toggle[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .woocommerce ul.products li.product .astra-shop-summary-wrap,
    .woocommerce-page ul.products li.product .astra-shop-summary-wrap,
    .ast-woocommerce-container ul.products li.product .astra-shop-summary-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: .5rem;
        align-items: start;
    }

    .woocommerce ul.products li.product .astra-shop-summary-wrap > *,
    .woocommerce-page ul.products li.product .astra-shop-summary-wrap > *,
    .ast-woocommerce-container ul.products li.product .astra-shop-summary-wrap > * {
        grid-column: 1 / -1;
    }

    .woocommerce ul.products li.product .astra-shop-summary-wrap > .price {
        order: 40;
        grid-column: 1 / -1;
        margin: .1rem 0 .45rem;
    }

    .vst-catalog-description-toggle {
        order: 50;
        grid-column: 1;
        align-self: stretch;
        width: 100%;
        min-height: 36px;
        margin: 0;
        padding: .42rem .55rem;
    }

    .woocommerce ul.products li.product .astra-shop-summary-wrap > .button {
        order: 50;
        grid-column: 2;
        align-self: stretch;
        width: 100% !important;
        min-height: 36px;
        margin: 0 !important;
        padding: .42rem .55rem !important;
        text-align: center;
    }

    .vst-catalog-description,
    .vst-catalog-description-long {
        order: 60;
        grid-column: 1 / -1;
        margin: .5rem 0 0;
    }
}


/* =========================================================
   VST 1.1.5 - korekta metadanych i mobilnych akcji katalogu
   ========================================================= */

/*
 * Metadane Rok/Autor/Redakcja mają być zwykłym przepływem tekstu.
 * Nie używamy tu -webkit-box, bo bezpośrednie elementy potomne
 * były traktowane jak osobne pionowe boksy i rozbijały wiersz.
 */
.vst-catalog-people {
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
}

.vst-catalog-people-label {
    display: inline !important;
    font-weight: 400;
}

.vst-catalog-year-value,
.vst-catalog-people .vst-person-name-full,
.vst-catalog-people .vst-person-name-short {
    display: inline;
    font-weight: 600;
}

/* Domyślnie zawsze pełne imiona. */
.vst-catalog-people .vst-person-name-short {
    display: none !important;
}

.vst-catalog-people .vst-person-name-full {
    display: inline !important;
}

@media (max-width: 600px) {
    /* Na smartfonie używamy wyłącznie inicjałów. */
    .vst-catalog-people .vst-person-name-full {
        display: none !important;
    }

    .vst-catalog-people .vst-person-name-short {
        display: inline !important;
    }

    /*
     * Cena nad akcjami. Pokaż opis + Dodaj do koszyka
     * zajmują po połowie wiersza, jeśli oba są dostępne.
     */
    .woocommerce ul.products li.product .astra-shop-summary-wrap,
    .woocommerce-page ul.products li.product .astra-shop-summary-wrap,
    .ast-woocommerce-container ul.products li.product .astra-shop-summary-wrap {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: .5rem !important;
        row-gap: .45rem !important;
    }

    .woocommerce ul.products li.product .astra-shop-summary-wrap > *,
    .woocommerce-page ul.products li.product .astra-shop-summary-wrap > *,
    .ast-woocommerce-container ul.products li.product .astra-shop-summary-wrap > * {
        grid-column: 1 / -1;
    }

    .woocommerce ul.products li.product .astra-shop-summary-wrap > .price,
    .woocommerce-page ul.products li.product .astra-shop-summary-wrap > .price,
    .ast-woocommerce-container ul.products li.product .astra-shop-summary-wrap > .price {
        order: 40 !important;
        grid-column: 1 / -1 !important;
        margin: .1rem 0 0 !important;
    }

    .vst-catalog-description-toggle {
        order: 50 !important;
        grid-column: 1 !important;
        align-self: stretch !important;
        width: 100% !important;
        min-height: 36px !important;
        margin: 0 !important;
        padding: .42rem .55rem !important;
    }

    .woocommerce ul.products li.product .astra-shop-summary-wrap > .button,
    .woocommerce-page ul.products li.product .astra-shop-summary-wrap > .button,
    .ast-woocommerce-container ul.products li.product .astra-shop-summary-wrap > .button {
        order: 50 !important;
        grid-column: 2 !important;
        align-self: stretch !important;
        width: 100% !important;
        min-height: 36px !important;
        margin: 0 !important;
        padding: .42rem .55rem !important;
        text-align: center !important;
    }

    /* Gdy jest tylko jedna akcja, zajmuje cały wiersz. */
    .astra-shop-summary-wrap.vst-catalog-only-toggle > .vst-catalog-description-toggle,
    .astra-shop-summary-wrap.vst-catalog-only-cart > .button {
        grid-column: 1 / -1 !important;
    }

    .vst-catalog-description,
    .vst-catalog-description-long {
        order: 60 !important;
        grid-column: 1 / -1 !important;
        margin: 0 !important;
    }
}


/* =========================================================
   VST 1.1.6 - stabilny wiersz metadanych + opis wykorzystujący
   dostępną wysokość okładki na desktopie
   ========================================================= */

.vst-catalog-people,
.vst-catalog-people * {
    white-space: normal !important;
}

.vst-catalog-people-label,
.vst-catalog-year-value,
.vst-catalog-people .vst-person-name-full,
.vst-catalog-people .vst-person-name-short {
    display: inline !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: baseline !important;
}

.vst-catalog-people .vst-person-name-short {
    display: none !important;
}

@media (max-width: 600px) {
    .vst-catalog-people .vst-person-name-full {
        display: none !important;
    }

    .vst-catalog-people .vst-person-name-short {
        display: inline !important;
    }
}

@media (min-width: 921px) {
    .vst-catalog-description,
    .vst-catalog-description-long {
        display: block !important;
        overflow: hidden !important;
        max-height: var(--vst-catalog-description-max-height, 4.5em);
        -webkit-box-orient: initial !important;
        -webkit-line-clamp: unset !important;
    }

    .vst-catalog-description.is-expanded,
    .vst-catalog-description-long.is-expanded {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* =========================================================
   VST 1.1.8 - stabilny limit opisu na desktopie
   ========================================================= */
@media (min-width: 921px) {
    .vst-catalog-description,
    .vst-catalog-description-long {
        /* 6 linii przy line-height 1.5; JS ustawia dokładną wartość px. */
        max-height: var(--vst-catalog-description-max-height, 9em);
    }
}
