.autopjese-brand-grid {
    --apb-cols: 6;
    --apb-cols-tablet: 3;
    --apb-cols-mobile: 2;
    display: grid;
    grid-template-columns: repeat(var(--apb-cols), minmax(0, 1fr));
    border-top: 1px solid #e0e3e7;
    border-left: 1px solid #e0e3e7;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.autopjese-brand-card {
    min-width: 0;
    min-height: 135px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important;
    background: #fff;
    border-right: 1px solid #e0e3e7;
    border-bottom: 1px solid #e0e3e7;
    transition: background-color .2s ease, transform .2s ease;
}

.autopjese-brand-card:hover {
    background: #fafafa;
}

.autopjese-brand-logo {
    width: 100%;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autopjese-brand-image {
    display: block;
    max-width: 165px !important;
    max-height: 82px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.autopjese-brand-placeholder {
    opacity: .18;
}

.autopjese-brand-title {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 1024px) {
    .autopjese-brand-grid {
        grid-template-columns: repeat(var(--apb-cols-tablet), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .autopjese-brand-grid {
        grid-template-columns: repeat(var(--apb-cols-mobile), minmax(0, 1fr));
    }

    .autopjese-brand-card {
        min-height: 110px;
        padding: 16px;
    }

    .autopjese-brand-logo {
        height: 68px;
    }

    .autopjese-brand-image {
        max-width: 120px !important;
        max-height: 64px !important;
    }
}
