/**
 * Customers Also Bought — isolated storefront grid (theme-agnostic)
 */
.tm-cab {
    box-sizing: border-box;
    clear: both;
    margin: 3rem 0;
    max-width: 100%;
    width: 100%;
}

.tm-cab *,
.tm-cab *::before,
.tm-cab *::after {
    box-sizing: border-box;
}

.tm-cab__header {
    border-bottom: 1px solid #e8e8e8;
    margin: 0 0 2rem;
    padding: 0;
}

.tm-cab__title {
    color: #333;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    padding: 0 0 1rem;
}

.tm-cab__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

@media (max-width: 1200px) {
    .tm-cab__grid {
        gap: 1.5rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .tm-cab__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .tm-cab__grid {
        grid-template-columns: 1fr;
    }
}

.tm-cab__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    list-style: none;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tm-cab__card:hover {
    border-color: #d1d5db;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.tm-cab__image-link {
    color: inherit;
    display: block;
    flex-shrink: 0;
    text-decoration: none;
}

.tm-cab__media {
    align-items: center;
    aspect-ratio: 1;
    background: #f9fafb;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 1.25rem;
    width: 100%;
}

.tm-cab__image {
    display: block;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.tm-cab__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem;
}

.tm-cab__name {
    color: #333;
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    text-decoration: none;
}

.tm-cab__name:hover {
    color: #1979c3;
}

.tm-cab__price {
    color: #111;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.15rem 0 0;
}

.tm-cab__meta {
    color: #6b7280;
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 0.5rem 0 0;
}

.tm-cab__actions {
    margin-top: auto;
    padding-top: 1rem;
}

.tm-cab__form {
    margin: 0;
}

.tm-cab__btn {
    appearance: none;
    background: #1979c3;
    border: 1px solid #1979c3;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: block;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    padding: 0.85rem 1rem;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    width: 100%;
}

.tm-cab__btn:hover {
    background: #1667a6;
    border-color: #1667a6;
    color: #fff;
}

.tm-cab--cart {
    margin-top: 2rem;
}

/* Neutralize Luma/theme leakage when block wrapper classes remain on parent containers */
.block.tm-cab .block-title,
.block.tm-cab .block-content,
.tm-cab .products-grid,
.tm-cab .product-items,
.tm-cab .product-item {
    border: none;
    float: none;
    margin: 0;
    padding: 0;
    width: auto;
}

.tm-cab .product-item::before,
.tm-cab .product-item::after {
    display: none;
}
