/* Keep the theme's even-grid layout effective beside the older global overrides. */
.homasteb-home-products .wd-product {
    margin-bottom: 0 !important;
}

.homasteb-home-products .wd-product .price {
    display: grid;
    grid-template-columns: max-content max-content;
    grid-auto-rows: 1.5em;
    justify-content: center;
    align-items: baseline;
    align-content: end;
    column-gap: 4px;
    min-block-size: 3em;
    line-height: 1.5;
    margin-block-start: auto !important;
}

.homasteb-home-products .price > del {
    grid-area: 1 / 1 / 2 / -1;
}

.homasteb-home-products .price > ins,
.homasteb-home-products .price > .amount {
    grid-area: 2 / 1;
}

.homasteb-home-products .price > .wd-price-unit {
    grid-area: 2 / 2;
    margin-inline: 0;
}

.homasteb-home-products .price .amount {
    white-space: nowrap;
}

@media (max-width: 359px) {
    .homasteb-home-products .wd-product .price {
        font-size: 12px;
    }
}

.homasteb-home-products .wd-product .wd-add-btn {
    margin-block-start: auto !important;
}

.homasteb-home-products .wd-product .price + .wd-add-btn {
    margin-block-start: 0 !important;
}

.homasteb-home-products .wd-product.wd-hover-standard .wd-add-btn > a {
    width: 100%;
    min-height: 48px;
    padding-inline: 8px;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
}

.homasteb-home-posts .wd-carousel-wrap {
    align-items: stretch;
}

.homasteb-home-posts .wd-carousel-item {
    display: flex;
    height: auto;
}

.homasteb-home-posts .wd-post {
    width: 100%;
}

.homasteb-home-posts .wd-post-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.homasteb-home-posts .wd-post-content {
    flex: 1;
}

.homasteb-home-posts .wd-post .wd-post-title {
    color: var(--wd-entities-title-color);
    font-size: 16px;
    line-height: 1.8;
    min-block-size: 3.6em;
    text-align: center !important;
}
