.listing-main,
.product-grid,
.product-card,
.product-card .product-body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.product-grid > *,
.product-card .product-image,
.product-card .product-image img {
    min-width: 0;
    max-width: 100%;
}

.product-card .product-image {
    display: grid;
    place-items: center;
}

.product-card .product-image > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 24px);
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #6f8198;
    line-height: 1.2;
    text-align: center;
}

.product-card .product-body small,
.product-card .product-body h3,
.product-card .product-body a,
.product-card .product-code {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (max-width: 640px) {
    .product-grid,
    .category-listing .product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .product-card {
        display: block;
        min-height: 0;
        overflow: hidden;
    }

    .product-card .product-image {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
        border-radius: 0;
    }

    .product-card .product-body {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 148px;
        padding: 16px 17px 18px;
    }

    .product-card .product-body h3 {
        margin: 8px 0 10px;
        font-size: 18px;
        line-height: 1.3;
    }

    .product-card .product-body p {
        display: none;
    }

    .product-card .product-body .text-link {
        margin-top: auto;
        padding-top: 12px;
        font-size: 12px;
    }

    .category-listing {
        width: min(100% - 28px, 1420px);
        grid-template-columns: minmax(0, 1fr);
    }

    .subcategory-navigation,
    .listing-main {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .subcategory-navigation {
        overflow: hidden;
    }

    .result-head {
        display: grid;
        align-items: stretch;
        gap: 13px;
    }

    .result-head form,
    .result-head select {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .product-card .product-body {
        min-height: 142px;
        padding-inline: 14px;
    }

    .product-card .product-body h3 {
        font-size: 17px;
    }
}
