/* Compact featured catalogue cards without changing the full catalogue grid. */
.ee-catalogue-featured {
    padding: 28px 24px 30px;
}

.ee-catalogue-featured__heading {
    margin-bottom: 20px;
}

.ee-catalogue-featured .ee-product-card {
    grid-template-rows: 148px 1fr;
}

.ee-catalogue-featured .ee-product-card__media {
    height: 148px;
}

.ee-catalogue-featured .ee-product-card__body {
    padding: 13px;
}

.ee-catalogue-featured .ee-product-card h2 {
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.22;
}

.ee-catalogue-featured .ee-product-card__excerpt {
    font-size: 13.5px;
    line-height: 1.45;
}

.ee-catalogue-featured .ee-product-card__excerpt p {
    display: -webkit-box;
    margin-bottom: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (min-width: 1100px) {
    .ee-catalogue-featured .ee-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .ee-catalogue-featured .ee-product-card__footer {
        gap: 6px;
    }

    .ee-catalogue-featured .ee-product-picker--card {
        min-width: 0;
        gap: 5px;
    }

    .ee-catalogue-featured .ee-product-picker--card .ee-quantity-stepper {
        width: 84px;
        min-width: 84px;
        grid-template-columns: 26px 32px 26px;
    }

    .ee-catalogue-featured .ee-product-picker--card .ee-selection-add,
    .ee-catalogue-featured .ee-product-card__configure {
        min-width: 0;
        padding-inline: 7px;
        font-size: 13px;
    }
}

@media (min-width: 621px) and (max-width: 899px) {
    .ee-catalogue-featured .ee-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) and (max-width: 1099px) {
    .ee-catalogue-featured .ee-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .ee-catalogue-featured {
        padding: 22px 16px;
    }

    .ee-catalogue-featured .ee-product-grid {
        gap: 12px;
    }

    .ee-catalogue-featured .ee-product-card {
        display: grid;
        min-height: 0;
        grid-template-columns: 108px minmax(0, 1fr);
        grid-template-rows: auto auto auto auto auto;
        column-gap: 12px;
    }

    .ee-catalogue-featured .ee-product-card__media {
        grid-column: 1;
        grid-row: 1 / 5;
        width: 96px;
        height: 108px;
        min-height: 108px;
        align-self: start;
        margin: 12px 0 0 12px;
        padding: 5px;
        border: 0;
        border-radius: 4px;
        background: #f3f8f8;
    }

    .ee-catalogue-featured .ee-product-card__image {
        inset: 5px;
        width: calc(100% - 10px);
        height: calc(100% - 10px);
    }

    .ee-catalogue-featured .ee-product-card__body {
        display: contents;
    }

    .ee-catalogue-featured .ee-product-card__chips {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        margin: 12px 12px 5px 0;
    }

    .ee-catalogue-featured .ee-product-card h2 {
        grid-column: 2;
        grid-row: 3;
        margin: 0 12px 5px 0;
    }

    .ee-catalogue-featured .ee-product-card__deposit {
        grid-column: 2;
        grid-row: 2;
        min-height: 0;
        margin: 0 12px 5px 0;
    }

    .ee-catalogue-featured .ee-product-card__excerpt {
        grid-column: 2;
        grid-row: 4;
        margin-right: 12px;
    }

    .ee-catalogue-featured .ee-product-card__excerpt p {
        margin: 0;
        -webkit-line-clamp: 2;
    }

    .ee-catalogue-featured .ee-product-card__footer {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 5;
        width: auto;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        margin: 10px 12px 12px;
        gap: 8px;
    }

    .ee-catalogue-featured .ee-product-card__link {
        display: inline-flex;
        margin: 0;
    }

    .ee-catalogue-featured .ee-product-picker--card {
        display: grid;
        width: 100%;
        grid-column: 2;
        grid-template-columns: 110px minmax(0, 1fr);
        align-items: stretch;
        gap: 8px;
    }

    .ee-catalogue-featured .ee-product-picker--card .ee-quantity-stepper {
        width: 110px;
        min-width: 110px;
        grid-template-columns: 32px 46px 32px;
    }

    .ee-catalogue-featured .ee-product-picker--card .ee-selection-add {
        width: auto;
        min-width: 0;
        grid-column: 1 / -1;
    }

    .ee-catalogue-featured .ee-product-picker--card .ee-quantity-stepper + .ee-selection-add {
        grid-column: auto;
    }

    .ee-catalogue-featured .ee-product-card__configure {
        width: 100%;
        grid-column: 2;
    }
}
