/*
 * ModernBlack shared product-card rental-rate containment.
 * Applies to both category and catalog-search product cards.
 */
.mb-category-preview .mb-product-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mb-category-preview .mb-product-grid > .mb-product-card {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    overflow: hidden;
}

.mb-category-preview .mb-product-card__image {
    min-width: 0;
    max-width: 42%;
}

.mb-category-preview .mb-product-card__body {
    min-width: 0 !important;
    max-width: 58%;
    overflow: hidden;
}

.mb-category-preview .mb-product-card__pricing,
.mb-category-preview .mb-product-card__price-block,
.mb-category-preview .mb-product-card__rental-block,
.mb-category-preview .mb-product-card__rental-price {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
}

.mb-category-preview .mb-product-card__rental-price {
    overflow: hidden;
}

.mb-category-preview .mb-product-card__rental-price table,
.mb-category-preview .mb-product-card__price-block table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
}

.mb-category-preview .mb-product-card__rental-price tbody,
.mb-category-preview .mb-product-card__rental-price thead,
.mb-category-preview .mb-product-card__rental-price tr {
    max-width: 100% !important;
}

.mb-category-preview .mb-product-card__rental-price th,
.mb-category-preview .mb-product-card__rental-price td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 4px 3px !important;
    box-sizing: border-box !important;
    font-size: clamp(11px, .95vw, 16px) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

.mb-category-preview .mb-product-card__rental-price .price,
.mb-category-preview .mb-product-card__rental-price span,
.mb-category-preview .mb-product-card__rental-price strong {
    max-width: 100% !important;
    font-size: inherit !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 1050px) {
    .mb-category-preview .mb-product-card__image {
        max-width: 40%;
        flex-basis: 40%;
    }

    .mb-category-preview .mb-product-card__body {
        max-width: 60%;
    }
}

@media (max-width: 800px) {
    .mb-category-preview .mb-product-grid {
        grid-template-columns: 1fr;
    }

    .mb-category-preview .mb-product-card__image,
    .mb-category-preview .mb-product-card__body {
        max-width: none;
    }
}

/* Tighten rental-rate typography so prices stay on one line */
.mb-category-preview .mb-product-card__rental-price th {
    font-size: 16px !important;
    white-space: nowrap !important;
    letter-spacing: 1px !important;
}

.mb-category-preview .mb-product-card__rental-price td,
.mb-category-preview .mb-product-card__rental-price td .price,
.mb-category-preview .mb-product-card__rental-price td span,
.mb-category-preview .mb-product-card__rental-price td strong {
    font-size: 12px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
}

@media (max-width: 1200px) {
    .mb-category-preview .mb-product-card__rental-price td,
    .mb-category-preview .mb-product-card__rental-price td .price,
    .mb-category-preview .mb-product-card__rental-price td span,
    .mb-category-preview .mb-product-card__rental-price td strong {
        font-size: 11px !important;
    }
}
