/* ======================================================================
   Hand-mapped fitment brand tab — manual.tab.cfm
   One tab per brand whose parts were linked to this vehicle by hand in
   the Admin Part KType Mapper (Octane's own kits, King Springs, Formula...).
   Same responsive flex grid as the other brand tabs (4->3->2->1 columns),
   namespaced under .mft- so it cannot clash with the vehicle page chrome.
   The brand's own colour is applied inline per tab (badge, logo plate).
   ====================================================================== */

.mft-intro {
    text-align: center;
    margin: 8px auto 0;
}
.mft-logo {
    display: block;
    max-height: 70px;
    width: auto;
    max-width: 60%;
    margin: 30px auto 14px;
}
.mft-intro p {
    color: #555;
    font-size: 1rem;
    margin: 0 auto 8px;
    max-width: 760px;
}

/* ---- Grid ---------------------------------------------------------- */
.mft-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 32px 24px;
}
.mft-card {
    flex: 1 0 calc(25% - 20px);
    max-width: calc((100% - 60px) / 4);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}
.mft-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.mft-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    text-decoration: none;
    color: inherit;
}

/* ---- Image: fixed band so cards line up across a row ---------------- */
.mft-image {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.mft-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.mft-image img.is-tiny {
    max-height: 60px;
}

/* ---- Category badge ------------------------------------------------ */
.mft-badge-row {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.mft-badge {
    display: inline-block;
    background: #f15a29;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
}

/* ---- Titles -------------------------------------------------------- */
.mft-titles { margin-bottom: 8px; }
.mft-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #11171f;
}
.mft-partnumber {
    font-size: 0.9375rem;
    color: #666;
    margin-top: 3px;
}
/* fitting position + supplier note (Supplier-sourced rows, e.g. Whiteline) */
.mft-fitment {
    font-size: 0.875rem;
    color: #6b4e12;
    margin-top: 3px;
    line-height: 1.35;
}
.mft-desc {
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #555;
    margin-bottom: 10px;
}
.mft-stock {
    font-size: 0.9375rem;
    margin: 0 0 10px;
}
.mft-card .price-container { margin-top: auto; }

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 1200px) {
    .mft-card { flex-basis: calc(33.333% - 20px); max-width: calc((100% - 40px) / 3); }
}
@media (max-width: 900px) {
    .mft-card { flex-basis: calc(50% - 20px); max-width: calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
    .mft-grid { margin: 24px 12px; }
    .mft-card { flex-basis: 100%; max-width: 100%; }
}
