/* Shared by category, search, modules, manufacturer, stock and aircraft cards. */
.product-thumb.pp-card {
    --pp-title-height: 60px;
    --pp-model-height: 22px;
    --pp-stock-height: 22px;
    --pp-price-height: 42px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 22px;
}

.product-thumb.pp-card .pp-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.product-thumb.pp-card > .image {
    flex: 0 0 auto;
    float: none;
    width: 100%;
    padding: 0;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

.product-thumb.pp-card > .image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-thumb.pp-card > .image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.product-thumb.pp-card .caption {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows:
        var(--pp-title-height)
        var(--pp-model-height)
        var(--pp-stock-height)
        var(--pp-price-height)
        28px;
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    font-size: 13px;
    line-height: 22px;
    text-align: left;
}

.product-thumb.pp-card .caption .pp-card-title {
    grid-area: 1 / 1 / 2 / -1;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 60px;
    height: auto !important;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 19px;
    text-align: left;
}

.product-thumb.pp-card .caption .pp-card-title a {
    display: block;
    width: 100%;
    max-height: none;
    overflow: visible;
    font-size: 15px;
    font-weight: 700;
    line-height: 19px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
    -webkit-line-clamp: unset;
}

.product-thumb.pp-card .caption .pp-card-model,
.product-thumb.pp-card .caption .pp-card-stock {
    align-self: center;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 22px;
    overflow-wrap: anywhere;
}

.product-thumb.pp-card .caption .pp-card-model { grid-area: 2 / 1; }
.product-thumb.pp-card .caption .pp-card-stock { grid-area: 3 / 1; text-align: left; }

.product-thumb.pp-card .caption .price {
    grid-area: 4 / 1 / 5 / -1;
    align-self: center;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 21px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.product-thumb.pp-card .price .price-value,
.product-thumb.pp-card .price .price-new {
    font-size: 16px;
    line-height: 21px;
}

.product-thumb.pp-card .price .price-old {
    font-size: 13px;
    line-height: 21px;
}

.product-thumb.pp-card .price .price-tax {
    font-size: 12px;
    line-height: 18px;
}

.product-thumb.pp-card .caption .rating {
    grid-area: 5 / 1 / 6 / -1;
    align-self: center;
    height: 22px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 22px;
    white-space: nowrap;
}

.product-thumb.pp-card .rating .fa-stack {
    width: 18px;
    height: 20px;
    font-size: 9px;
    line-height: 20px;
    vertical-align: middle;
}

.product-thumb.pp-card .button-group {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    min-height: 43px;
    margin: auto 0 0;
    border-left: 0;
    overflow: visible;
}

.product-thumb.pp-card .button-group button {
    display: block;
    flex: 3 1 0%;
    float: none;
    width: auto !important;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 0 6px;
    font-family: inherit;
    font-size: 12px;
    line-height: 42px;
    white-space: nowrap;
}

.product-thumb.pp-card .button-group button + button {
    flex: 1 1 0%;
}

.product-thumb.pp-card .button-group button span {
    font-size: 12px;
    line-height: inherit;
}

.product-thumb.pp-card .button-group button .fa {
    font-size: 13px;
}

.product-thumb.pp-card .pp-card-extra {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 20px;
}

/* Keep the existing list switch as a horizontal product presentation. */
@media (min-width: 768px) {
    .product-list .product-thumb.pp-card {
        display: grid;
        grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
    }

    .product-list .product-thumb.pp-card > .image {
        align-self: start;
    }
}

@media (max-width: 1199px) {
    .product-thumb.pp-card .caption {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }
}

/* Showcase uses its own template and has no product actions or rating rows. */
#product-showcase .showcase-card .showcase-card-link {
    display: none;
}

#product-showcase .showcase-card .showcase-card-body {
    min-height: 0;
    padding: 14px 20px;
}

#product-showcase .showcase-card .showcase-card-title {
    margin-bottom: 0;
}

#product-showcase .showcase-card .showcase-card-text {
    margin: 10px 0 0;
}

#product-showcase .showcase-grid-single .showcase-card {
    min-height: 0;
}

#product-showcase .showcase-grid-single .showcase-card .showcase-card-body {
    padding: 20px;
}
